@syncfusion/ej2-maps 20.4.48 → 20.4.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * filename: ej2-maps.min.js
3
- * version : 20.4.48
3
+ * version : 20.4.49
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
9
  */
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSvgBase","SyncfusionData","SyncfusionPdfExport"],t):"object"==typeof exports?exports.SyncfusionMaps=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):e.SyncfusionMaps=t(e.SyncfusionBase,e.SyncfusionSvgBase,e.SyncfusionData,e.SyncfusionPdfExport)}(this,function(e,t,i,n){return function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,i){"use strict";function n(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function o(e){e.element.style.height=i.i(Xe.isNullOrUndefined)(e.height)?"auto":e.height,e.element.style.width=i.i(Xe.isNullOrUndefined)(e.width)?"auto":e.width;var t=e.element.clientWidth,o=e.element.clientHeight,a=n(e.element.style.width,t),r=n(e.element.style.height,o);new $e(0,0);return"0px"===e.width||"0%"===e.width||"0%"===e.height||"0px"===e.height?new $e(0,0):new $e(n(e.width,t)||t||a||600,n(e.height,o)||o||r||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):450))}function a(e){e.renderer=new Ye.SvgRenderer(e.element.id),e.availableSize=o(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),"0px"!==e.width&&"0%"!==e.width&&"0%"!==e.height&&"0px"!==e.height||(e.svgObject.setAttribute("height","0"),e.svgObject.setAttribute("width","0"))}function r(e,t,i){var n=i.getBoundingClientRect(),o=i.ownerDocument.defaultView.pageXOffset,a=i.ownerDocument.defaultView.pageYOffset,r=i.ownerDocument.documentElement.clientTop,l=i.ownerDocument.documentElement.clientLeft,s=n.left+o-l,d=n.top+a-r;return new ct(e-s,t-d)}function l(e){return e*(Math.PI/180)}function s(e){return e*(180/Math.PI)}function d(e,t,n,o,a){var r,d,p,g,y,b,v=new $e(a.mapAreaRect.width,a.mapAreaRect.height),S=a.baseMapBounds.longitude,_=a.baseMapBounds.latitude,x=l(e),O=l(t),M=a.projectionType,L=a.isTileMap?256*Math.pow(2,1):i.i(Xe.isNullOrUndefined)(n)?Math.min(v.width,v.height):Math.min(v.width,v.height)*n;if("Normal"===o.geometryType)r=i.i(Xe.isNullOrUndefined)(n)?t:Math.abs((t-S.min)*n),d=i.i(Xe.isNullOrUndefined)(n)?e:Math.abs((_.max-e)*n);else if("Geographic"===o.geometryType){switch(M){case"Mercator":var C=new et(L/2,L/2);r=C.x+t*(L/360);var w=f(Math.sin(l(e)),-.9999,.9999);d=C.y+.5*Math.log((1+w)/(1-w))*(-L/(2*Math.PI));break;case"Winkel3":p=u(O,x),y=(p.x+O/(Math.PI/2))/2,g=(p.y+x)/2;break;case"Miller":y=O,g=1.25*Math.log(Math.tan(Math.PI/4+.4*x));break;case"Eckert3":b=Math.sqrt(Math.PI*(4+Math.PI)),y=2/b*O*(1+Math.sqrt(1-4*x*x/(Math.PI*Math.PI))),g=4/b*x;break;case"AitOff":p=u(O,x),y=p.x,g=p.y;break;case"Eckert5":y=O*(1+Math.cos(x))/Math.sqrt(2+Math.PI),g=2*x/Math.sqrt(2+Math.PI);break;case"Equirectangular":y=O,g=x;break;case"Eckert6":;b=(1+Math.PI/2)*Math.sin(x);for(var P=1/0,T=0;T<10&&Math.abs(P)>1e-6;T++)P=(x+Math.sin(x)-b)/(1+Math.cos(x)),x-=P;b=Math.sqrt(2+Math.PI),y=O*(1+Math.cos(x))/b,g=2*x/b}r="Mercator"===M?r:m(h(a,s(y)),3),d="Mercator"===M?d:-m(c(a,s(g)),3)}return new et(r,d)}function p(e,t,i,n){var o=256*Math.pow(2,t),a=(e.x+180)/360,r=Math.sin(e.y*Math.PI/180),l=.5-Math.log((1+r)/(1-r))/(4*Math.PI),s=e.x,d=e.y;return n&&(s=a*o+.5+i.x,d=l*o+.5+i.y),{x:s,y:d}}function h(e,t){var n=e.baseMapBounds.longitude,o=i.i(Xe.isNullOrUndefined)(e.baseSize)?e.mapAreaRect.width:e.mapAreaRect.width+Math.abs(e.baseSize.width-e.mapAreaRect.width)/2;return Math.round(o*(t-n.min)/(n.max-n.min)*100)/100}function c(e,t){var i=e.baseMapBounds.latitude;return Math.round(e.mapAreaRect.height*(t-i.min)/(i.max-i.min)*100)/100}function u(e,t){var i=Math.cos(t),n=g(y(i*Math.cos(e/=2)));return new et(2*i*Math.sin(e)*n,Math.sin(t)*n)}function m(e,t){var i=Math.pow(10,t);return Math.round(e*i)/i}function g(e){return e/Math.sin(e)}function y(e){return Math.acos(e)}function f(e,t,n){return i.i(Xe.isNullOrUndefined)(t)||(e=Math.max(e,t)),i.i(Xe.isNullOrUndefined)(n)||(e=Math.min(e,n)),e}function b(e,t,n,o){i.i(Xe.createElement)("a",{attrs:{download:e+"."+t.toLocaleLowerCase(),href:n}}).dispatchEvent(new MouseEvent(o?"click":"move",{view:window,bubbles:!1,cancelable:!0}))}function v(e,t){var n=document.getElementById("mapsmeasuretext");return null===n&&(n=i.i(Xe.createElement)("text",{id:"mapsmeasuretext"}),document.body.appendChild(n)),n.innerHTML=e,n.style.position="absolute","number"==typeof t.size?n.style.fontSize=t.size+"px":n.style.fontSize=t.size,n.style.fontWeight=t.fontWeight,n.style.fontStyle=t.fontStyle,n.style.fontFamily=t.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal",new $e(n.clientWidth,n.clientHeight)}function S(e,t,i,n,o){void 0===o&&(o=!1);var a,r,l={id:e.id,x:e.x,y:e.y,fill:i,"font-size":t.size,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-weight":t.fontWeight,"text-anchor":e.anchor,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine},s="string"==typeof e.text||"number"==typeof e.text?e.text:o?e.text[e.text.length-1]:e.text[0],d=new Ye.SvgRenderer(""),p=d.createText(l,s);if(p.style["user-select"]="none",p.style["font-family"]=t.fontFamily,p.style["font-size"]=t.size,p.style["font-weight"]=t.fontWeight,p.style["font-color"]=t.color,p.style["-moz-user-select"]="none",p.style["-webkit-touch-callout"]="none",p.style["-webkit-user-select"]="none",p.style["-khtml-user-select"]="none",p.style["-ms-user-select"]="none",p.style["-o-user-select"]="none","string"!=typeof e.text&&e.text.length>1)for(var h=1,c=e.text.length;h<c;h++)r=v(e.text[h],t).height,a=d.createTSpan({x:e.x,id:e.id,y:e.y+(o?-h*r:h*r)},o?e.text[e.text.length-(h+1)]:e.text[h]),p.appendChild(a);return n.appendChild(p),p}function _(e,t,n,o,a){var r=i.i(Xe.createElement)("div",{id:t});r.style.cssText="position: absolute;pointer-events: auto;";for(var l=e.length;l>0;)r.appendChild(e[0]),l--;for(var s=r.innerHTML,d=Object.keys(n),p=RegExp,h=0;h<d.length;h++)"object"==typeof n[d[h]]?s=O(s,"",n,a):"latitude"!==d[h].toLowerCase()&&"longitude"!==d[h].toLowerCase()&&(s=s.replace(new p("{{:"+d[h]+"}}","g"),n[d[h].toString()]));return r.innerHTML=s,r}function x(e,t){var i,n;return t.format&&!isNaN(Number(e))?(n=t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator}),i=n(Number(e))):i=e,i}function O(e,t,i,n){for(var o=""===e?t:e,a=""===e?o.split("${"):o.split("{{:"),r=RegExp,l=0;l<a.length;l++)if(a[l].indexOf("}}")>-1&&a[l].indexOf(".")>-1||a[l].indexOf("}")>-1&&a[l].search(".")>-1)for(var s=""===e?a[l].split("}"):a[l].split("}}"),d=0;d<s.length;d++)if(s[d].indexOf(".")>-1){var p=C(i,s[d]).toString();o=""===e?o.split("${"+s[d]+"}").join(x(p,n)):o.replace(new r("{{:"+s[d]+"}}","g"),p)}return o}function M(e,t,n,o,a){for(var r=i.i(Xe.isNullOrUndefined)(e.childElementCount)?e[0]:e,l=r.outerHTML,s=Object.keys(n),d=RegExp,p=0;p<s.length;p++)l=l.replace(new d("{{:"+s[p]+"}}","g"),n[s[p].toString()]);var h=i.i(Xe.createElement)("div",{id:t,innerHTML:l});return h.style.position="absolute",h}function L(e,t,n,o,a,r,l){var s,d,p,h,c=a.size,u=a.borderColor,m=parseFloat(a.borderWidth),g=parseFloat(a.borderOpacity),y=a.fill,f=a.dashArray,b={color:u,width:m,opacity:g},v=a.opacity,S=new ot(o,y,m,u,v,g,f,"");if(c.width="string"==typeof c.width?parseInt(c.width,10):c.width,c.height="string"==typeof c.height?parseInt(c.height,10):c.height,"Circle"===e){var _=(c.width+c.height)/4,x=new lt(o,y,b,v,n.x,n.y,_,f);s=l.renderer.drawCircle(x)}else"Rectangle"===e?(d=n.x-c.width/2,p=n.y-c.height/2,h=new rt(o,y,b,v,new ut(d,p,c.width,c.height),null,null,"",f),s=l.renderer.drawRectangle(h)):"Image"===e?(d=n.x-c.width/2,p=n.y-c.height,i.i(Xe.merge)(S,{href:t,height:c.height,width:c.width,x:d,y:p}),s=l.renderer.drawImage(S)):s=H(l,e,S,c,n,r);return s}function C(e,t){if(!i.i(Xe.isNullOrUndefined)(e)&&!i.i(Xe.isNullOrUndefined)(t)){var n=t.replace(/\[/g,".").replace(/\]/g,"").split(".");if(1===n.length)e=e[n[0]];else for(var o=0;o<n.length&&!i.i(Xe.isNullOrUndefined)(e);o++)e=e[n[o]]}return e}function w(e,t){var n=i.i(Xe.isNullOrUndefined)(e.colorValuePath)?t[e.colorValuePath]:e.colorValuePath.indexOf(".")>-1?C(t,e.colorValuePath).toString():t[e.colorValuePath];return e.fill=i.i(Xe.isNullOrUndefined)(e.colorValuePath)||i.i(Xe.isNullOrUndefined)(n)?e.fill:e.colorValuePath.indexOf(".")>-1?C(t,e.colorValuePath).toString():t[e.colorValuePath],e}function P(e,t){if(i.i(Xe.isNullOrUndefined)(e.shapeValuePath)||i.i(Xe.isNullOrUndefined)(t[e.shapeValuePath])){var n=i.i(Xe.isNullOrUndefined)(e.shapeValuePath)?e.shape:e.shapeValuePath.indexOf(".")>-1?C(t,e.shapeValuePath).toString():e.shape;e.shape=""!==n.toString()?n:e.shape;var o=i.i(Xe.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?C(t,e.imageUrlValuePath).toString():i.i(Xe.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath];e.imageUrl=o}else{var a=e.shapeValuePath.indexOf(".")>-1?C(t,e.shapeValuePath).toString():t[e.shapeValuePath];e.shape=""!==a.toString()?a:e.shape,"Image"===t[e.shapeValuePath]&&(e.imageUrl=i.i(Xe.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?C(t,e.imageUrlValuePath).toString():i.i(Xe.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath])}return e}function T(e,t,n,o,a,r,l,s){var h,c,u,m,g,y,f,b=[],v=[],_=0,x=0,O=e.markerClusterSettings.labelStyle,M=0,w=[],P=e.markerClusterSettings,T=n.renderer.createGroup({id:n.element.id+"_LayerIndex_"+o+"_markerCluster"}),I={cancel:!1,name:Qe.r,fill:P.fill,height:P.height,width:P.width,imageUrl:P.imageUrl,shape:P.shape,data:void 0,maps:n,cluster:P,border:P.border};n.trigger("markerClusterRendering",I,function(P){for(var N=0;N<t.childElementCount;N++)if(w=[],"hidden"!==t.childNodes[N].style.visibility){if(f=t.childNodes[N],h=f.getBoundingClientRect(),w.push(N),!i.i(Xe.isNullOrUndefined)(h)){for(var k=N+1;k<t.childElementCount;k++)"hidden"!==t.childNodes[k].style.visibility&&(f=t.childNodes[k],c=f.getBoundingClientRect(),i.i(Xe.isNullOrUndefined)(c)||h.left>c.right||h.right<c.left||h.top>c.bottom||h.bottom<c.top||(b.push(c),t.childNodes[k].style.visibility="hidden",w.push(k)));if(_=h.left+h.width/2,x=h.top+h.height,b.length>0){w=w.filter(function(e,t,i){return i.indexOf(e)===t});var F=n.element.getBoundingClientRect();_-=F.left,x-=n.availableSize.height<=F.height?F.top:F.bottom-F.top;var E=(n.isTileMap?new Object:de(n,e,!1),parseInt(t.childNodes[N].id.split("_dataIndex_")[1].split("_")[0],10)),A=parseInt(t.childNodes[N].id.split("_MarkerIndex_")[1].split("_")[0],10),z=e.markerSettings[A],B=z.dataSource[E],j=void 0,U=void 0,R=i.i(Xe.isNullOrUndefined)(z.longitudeValuePath)?i.i(Xe.isNullOrUndefined)(B.longitude)?i.i(Xe.isNullOrUndefined)(B.Latitude)?0:parseFloat(B.Latitude):parseFloat(B.longitude):Number(C(B,z.longitudeValuePath)),D=i.i(Xe.isNullOrUndefined)(z.latitudeValuePath)?i.i(Xe.isNullOrUndefined)(B.latitude)?i.i(Xe.isNullOrUndefined)(B.Latitude)?0:parseFloat(B.Latitude):parseFloat(B.latitude):Number(C(B,z.latitudeValuePath));n.isTileMap?n.isTileMap&&!n.zoomSettings.enable&&(U=p(new et(R,D),n.tileZoomLevel,n.tileTranslatePoint,!0)):(j=n.mapLayerPanel.calculateFactor(e),U=d(D,R,j,e,n)),t.childNodes[N].style.visibility="hidden";var Z=e.markerClusterSettings;I.cancel?(y={size:new $e(Z.width,Z.height),fill:Z.fill,borderColor:Z.border.color,borderWidth:Z.border.width,opacity:Z.opacity,dashArray:Z.dashArray},y.fill=Z.fill,y.size.width=Z.width,y.size.height=Z.height,y.imageUrl=Z.imageUrl,y.shape=Z.shape,y.borderColor=Z.border.color,y.borderWidth=Z.border.width,y.borderOpacity=i.i(Xe.isNullOrUndefined)(Z.border.opacity)?Z.opacity:Z.border.opacity):(y={size:new $e(Z.width,Z.height),fill:Z.fill,borderColor:Z.border.color,borderWidth:Z.border.width,opacity:Z.opacity,dashArray:Z.dashArray},y.fill=I.fill,y.size.width=I.width,y.size.height=I.height,y.imageUrl=I.imageUrl,y.shape=I.shape,y.borderColor=I.border.color,y.borderWidth=I.border.width,y.borderOpacity=i.i(Xe.isNullOrUndefined)(I.border.opacity)?Z.opacity:I.border.opacity),_=n.isTileMap?_:t.id.indexOf("_Markers_Group")>-1?_:_+3.75-I.width/2,x=n.isTileMap?x:t.id.indexOf("_Markers_Group")>-1?x:x-I.height/2,n.isTileMap&&!n.zoomSettings.enable&&(_=U.x,x=U.y);var H=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+A+"_dataIndex_"+E+"_cluster_"+M,V=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+A+"_dataIndex_"+E+"_cluster_"+M+"_datalabel_"+M;M++;var G="Image"===y.shape?y.size.height/2:0,W=L(y.shape,y.imageUrl,{x:0,y:G},H,y,a,n);W.setAttribute("transform","translate( "+_+" "+x+" )"),"Balloon"===I.shape?W.children[0].innerHTML=w.toString():W.innerHTML=w.toString(),u=new nt(V,0,3.75,"middle",(b.length+1).toString(),"",""),m=S(u,O,O.color,a),m.setAttribute("transform","translate( "+_+" "+x+" )"),T.appendChild(m),T.appendChild(W)}}b=[]}r.appendChild(T),n.svgObject.appendChild(r),n.element.appendChild(n.svgObject);for(var N=0;N<T.childElementCount;N++)if("hidden"!==T.childNodes[N].style.visibility&&(f=T.childNodes[N],h=f.getBoundingClientRect(),!(i.i(Xe.isNullOrUndefined)(h)||f.id.indexOf("_datalabel_")>-1))){for(var k=N+1;k<T.childElementCount;k++)"hidden"!==T.childNodes[k].style.visibility&&(g=T.childNodes[k],c=g.getBoundingClientRect(),i.i(Xe.isNullOrUndefined)(c)||g.id.indexOf("_datalabel_")>-1||h.left>c.right||h.right<c.left||h.top>c.bottom||h.bottom<c.top||(v.push(g),v.push(T.childNodes[k-1]),T.childNodes[k].style.visibility="hidden",T.childNodes[k-1].style.visibility="hidden",w.push(k)));if(v.length>0){f=T.childNodes[N];for(var q=0;q<v.length;q++)"g"===f.tagName?f.childNodes[0].textContent=f.childNodes[0].textContent+","+v[q].textContent:f.textContent=f.textContent+","+v[q].textContent,T.childNodes[N-1].textContent=(+T.childNodes[N-1].textContent+ +v[q+1].textContent).toString(),q++}v=[]}for(;0<T.childNodes.length;)a.insertBefore(T.childNodes[0],a.firstChild);l?r.appendChild(a):(ce(n.element.id+"_Secondary_Element").appendChild(a),r.appendChild(a));var X=document.getElementById(n.element.id+"_LayerIndex_"+o+"_markerCluster");if(i.i(Xe.isNullOrUndefined)(X)||X.remove(),s){var Y=document.getElementById(n.element.id+"_Layer_Collections");i.i(Xe.isNullOrUndefined)(Y)||Y.appendChild(r)}})}function I(e,t,i){var n=e[0].layerIndex,o=e[0].targetClusterIndex,a=e[0].markerIndex,r=e[0].dataIndex,l=t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a,s=t.layers[n].markerSettings[a],d=l+"_dataIndex_"+r+"_cluster_"+o,p=ye("Balloon"===t.layers[n].markerClusterSettings.shape?d+"_Group":d),h=ye(d+"_datalabel_"+o);p.setAttribute("visibility","visible"),h.setAttribute("visibility","visible");for(var c,u=e[0].data.length,m=0;m<u;m++)c=ye("Balloon"===s.shape?l+"_dataIndex_"+e[0].data[m].index+"_Group":l+"_dataIndex_"+e[0].data[m].index),c.style.visibility="hidden";le(t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a+"_markerClusterConnectorLine")}function N(e,t,i,n){var o=e[0].layerIndex,a=e[0].markerIndex,r=e[0].targetClusterIndex,l=e[0].dataIndex,s=n?ye:i.querySelector.bind(i),d=n?"":"#",p=t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+a,h=t.layers[o].markerSettings[a],c=p+"_dataIndex_"+l+"_cluster_"+r,u=s("Balloon"===t.layers[o].markerClusterSettings.shape?d+""+c+"_Group":d+""+c),m=s(d+""+c+"_datalabel_"+r);u.setAttribute("visibility","hidden"),m.setAttribute("visibility","hidden");var g=s("Balloon"===h.shape?d+""+p+"_dataIndex_"+l+"_Group":d+""+p+"_dataIndex_"+l),y=g.parentElement.id.indexOf("Template_Group")>-1?g.getBoundingClientRect().height:h.height,f=g.parentElement.id.indexOf("Template_Group")>-1?g.getBoundingClientRect().width:h.width,b=+u.getAttribute("transform").split("translate(")[1].trim().split(" ")[0],v=+u.getAttribute("transform").split("translate(")[1].trim().split(" ")[1].split(")")[0].trim(),S=f+5,_=6.28*S,x=0,O=Math.round(_/f);x+=O;var M=e[0].data.length,L=Math.round(y/_*100);L=M<O?100/M:L;for(var C=L/100*360,w=M<O?45:0,P=1,T="M "+b+" "+v+" ",I="",N=0;N<M;N++){if(x===N||Math.round(w)>=360){for(P++,S=(f+5)*P,w=0,_=6.28*S,O=Math.round(_/y),L=Math.round(y/_*100);L*O<100;)O++;C=L/100*360,x+=O}var k=b+S*Math.sin(2*Math.PI*w/360),F=v+S*Math.cos(2*Math.PI*w/360);I+=T+"L "+k+" "+F+" ",g=s("Balloon"===h.shape?d+""+p+"_dataIndex_"+e[0].data[N].index+"_Group":d+""+p+"_dataIndex_"+e[0].data[N].index),g.parentElement.id.indexOf("Template_Group")>-1?(g.style.transform="",g.style.left=t.isTileMap?k-f/2+"px":k-f/2-10+"px",g.style.top=t.isTileMap?F-y/2+"px":F-y/2-10+"px",g.setAttribute("transform","translate( "+k+" "+F+")")):g.setAttribute("transform","translate( "+k+" "+F+")"),g.style.visibility="visible",w+=C}var E=t.layers[o].markerClusterSettings.connectorLineSettings,A={d:I,id:t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+a+"_dataIndex_"+l+"_markerClusterConnectorLine",stroke:E.color,"fill-opacity":E.opacity,"stroke-opacity":E.opacity,"stroke-width":E.width};i=n?s(t.element.id+"_Markers_Group"):i;var z=t.renderer.createGroup({id:t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+a+"_markerClusterConnectorLine"});z.appendChild(t.renderer.drawPath(A)),"Balloon"===h.shape?i.insertBefore(z,i.querySelector("#"+p+"_dataIndex_0_Group")):i.insertBefore(z,i.querySelector("#"+p+"_dataIndex_0"))}function k(e,t,n,o,a,r,l,s,d,p,h){var c={size:new $e(e.width,e.height),fill:e.fill,borderColor:e.border.color,borderWidth:e.border.width,opacity:t.opacity,dashArray:t.dashArray,borderOpacity:i.i(Xe.isNullOrUndefined)(e.border.opacity)?t.opacity:e.border.opacity};le(l);var u=L(e.shape,e.imageUrl,{x:0,y:0},l,c,h,p),m=(p.isTileMap?a.x:(a.x+r.x)*d)+s.x,g=(p.isTileMap?a.y:(a.y+r.y)*d)+s.y;u.setAttribute("transform","translate( "+m+" "+g+" )"),E(p.selectedMarkerElementId,p.markerSelectionClass,u,"MarkerselectionMapStyle"),h.appendChild(u);var y=n.length-1===o?"marker":null,f=new et(m,g);return t.animationDuration>0&&Ce(u,t.animationDelay,t.animationDuration,f,p,y),h}function F(e,t,i,n,o,a,r,l,s,d,p){if((t=ge(e.template,p))&&t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1).length){for(var h=t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1),c=_(h,i,n,o,p),u=0;u<c.children.length;u++)c.children[u].style.pointerEvents="none";if(c.style.left=(p.isTileMap?r.x:(r.x+l.x)*s)+d.x-p.mapAreaRect.x+"px",c.style.top=(p.isTileMap?r.y:(r.y+l.y)*s)+d.y-p.mapAreaRect.y+"px",a.appendChild(c),"GoogleStaticMap"===p.layers[p.baseLayerIndex].layerType){var m=ce(p.element.id+"_StaticGoogleMap").getBoundingClientRect(),g=c.getBoundingClientRect();(m.x>g.x||m.x+640<g.x+g.width)&&(m.y>g.y||m.y+m.height<g.y+g.height)&&(c.style.display="none")}}return a}function E(e,t,n,o){if(e)for(var a=0;a<e.length;a++)n.getAttribute("id")===e[a]&&(0!==a&&"g"!==n.tagName||(i.i(Xe.isNullOrUndefined)(t)||i.i(Xe.isNullOrUndefined)(t.id)||document.body.appendChild(t),n.id.indexOf("_MarkerIndex_")>-1&&n.childElementCount>0&&n.children[0].setAttribute("class",o)),n.setAttribute("class",o))}function A(e,t,n,o,a,r,l){if(!ye(e)){var s=i.i(Xe.createElement)("style",{id:e,innerHTML:"."+t+"{fill:"+n+";opacity:"+o+";stroke-width:"+r+";stroke:"+a+";}"});l.shapeSelectionClass=s,document.body.appendChild(s)}}function z(e,t){return t&&t.appendChild(e),e}function B(e,t,i){return z(e.renderer.drawCircle(t),i)}function j(e,t,i){return z(e.renderer.drawRectangle(t),i)}function U(e,t,i){return z(e.renderer.drawPath(t),i)}function R(e,t,i){return z(e.renderer.drawPolygon(t),i)}function D(e,t,i){return z(e.renderer.drawPolyline(t),i)}function Z(e,t,i){return z(e.renderer.drawLine(t),i)}function H(e,t,i,n,o,a){var r;switch(t){case"Balloon":r=J(e,i,n,o,"Marker",a);break;case"Cross":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"Diamond":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+o.y+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+o.y+" Z";break;case"Star":i.d="M "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x-n.width/3)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" Z";break;case"Triangle":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/2)+" Z";break;case"HorizontalLine":i.d=" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"VerticalLine":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2);break;case"InvertedTriangle":i.d="M "+(o.x-n.width/2)+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" Z";break;case"Pentagon":for(var l=void 0,s=void 0,d=0;d<5;d++)l=n.width/2*Math.cos(Math.PI/180*(72*d)),s=n.height/2*Math.sin(Math.PI/180*(72*d)),i.d+=(0===d?"M ":"L ")+(o.x+l)+" "+(o.y+s);i.d+=" Z"}return"Cross"!==t&&"HorizontalLine"!==t&&"VerticalLine"!==t||(i.stroke="transparent"===i.stroke?i.fill:i.stroke),"Balloon"===t?r:e.renderer.drawPath(i)}function V(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+n.y+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+n.y+" Z",z(e.renderer.drawPath(t),o)}function G(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/2)+" Z",z(e.renderer.drawPath(t),o)}function W(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,z(e.renderer.drawPath(t),o)}function q(e,t,i,n,o){return t.d=" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,z(e.renderer.drawPath(t),o)}function X(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2),z(e.renderer.drawPath(t),o)}function Y(e,t,i,n,o){return t.d="M "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x-i.width/3)+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" Z",z(e.renderer.drawPath(t),o)}function J(e,t,i,n,o,a){var r,l=i.width,s=i.height;n.x-=l/2,n.y-=s,t.d="M15,0C8.8,0,3.8,5,3.8,11.2C3.8,17.5,9.4,24.4,15,30c5.6-5.6,11.2-12.5,11.2-18.8C26.2,5,21.2,0,15,0z M15,16c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S17.8,16,15,16z";var d=e.renderer.drawPath(t),p=i.width/30,h=i.height/30;if(d.setAttribute("transform","translate("+n.x+", "+n.y+") scale("+p+", "+h+")"),"Marker"===o){var c=e.renderer.createGroup({id:t.id+"_Group"});z(d,c),r=z(c,a)}else r=d;return r}function Q(e,t,i,n){for(var o=e.renderer.createPattern(t,"pattern"),a=0,r=i;a<r.length;a++){z(r[a],o)}return z(o,n)}function K(e,t){for(var i,n=[],o=0,a=e;o<a.length;o++){var r=a[o];i={};for(var l=0,s=t;l<s.length;l++){var d=s[l];r[d]&&(i[d]=r[d])}n.push(i)}return n}function $(e,t,n,o,a){if(!i.i(Xe.isNullOrUndefined)(t))for(var r=0;r<e.length;r++){var l=n.indexOf(".")>-1?C(e[r],n):e[r][n],s=ee(l,o,t),d=!i.i(Xe.isNullOrUndefined)(l)&&isNaN(t[s])&&"string"==typeof l?l.toLowerCase():l,p=!i.i(Xe.isNullOrUndefined)(t[s])&&isNaN(t[s])?t[s].toLowerCase():t[s];if(d===p)return r}return null}function ee(e,t,n){if(!i.i(Xe.isNullOrUndefined)(e)&&!i.i(Xe.isNullOrUndefined)(n)&&!i.i(Xe.isNullOrUndefined)(t))for(var o="[object Array]"===Object.prototype.toString.call(t)?t:[t],a=0;a<o.length;a++){var r=i.i(Xe.isNullOrUndefined)(e)||"string"!=typeof e?e:e.toLowerCase(),l=!i.i(Xe.isNullOrUndefined)(n[o[a]])&&isNaN(n[o[a]])?n[o[a]].toLowerCase():n[o[a]];if(r===l)return o[a]}return null}function te(e,t,i){for(var n=[],o=0;o<e.length;o++){var a=e[o];t<=a.y&&i>=a.y&&n.push(a)}return n}function ie(e,t,i,n,o){var a=100/(o-n)*(i-n),r=(t-e)/100*a+e;return o===n&&(r=(t-e)/100+e),r}function ne(e,t,i){if(!e.length)return null;for(var n,o,a,r,l=e.length,s=0,d=0,p=0,h=0;h<=l-1;h++)n=e[h].x,o="Mercator"===t||"Normal"===i?e[h].y:-e[h].y,h===l-1?(a=e[0].x,r="Mercator"===t||"Normal"===i?e[0].y:-e[0].y):(a=e[h+1].x,r="Mercator"===t||"Normal"===i?e[h+1].y:-e[h+1].y),s+=Math.abs(n*r-a*o),d+=Math.abs((n+a)*(n*r-a*o)),p+=Math.abs((o+r)*(n*r-a*o));s*=.5,d*=1/(4*s),p*=1/(4*s);for(var c={x:0,y:0},u={x:0,y:0},m={x:0,y:0},g={x:0,y:0},y={x:0,y:0},f={x:0,y:0},b={x:0,y:0},v={x:0,y:0},S=0,h=0;h<=l-1;h++){var _=e[h];_.y="Mercator"===t||"Normal"===i?_.y:-_.y,_.y>p?_.x<d&&d-_.x<d-y.x?y={x:_.x,y:_.y}:_.x>d&&(0===f.x||_.x-d<f.x-d)&&(f={x:_.x,y:_.y}):_.x<d&&d-_.x<d-b.x?b={x:_.x,y:_.y}:_.x>d&&(0===v.x||_.x-d<v.x-d)&&(v={x:_.x,y:_.y}),S=f.y-v.y+(f.y-v.y)/4,_.x>d?_.y<p&&p-_.y<p-c.y?c={x:_.x,y:_.y}:_.y>p&&(0===u.y||_.y-p<u.y-p)&&(u={x:_.x,y:_.y}):_.y<p&&p-_.y<p-m.y?m={x:_.x,y:_.y}:_.y>p&&(0===g.y||_.y-p<g.y-p)&&(g={x:_.x,y:_.y})}return{x:d,y:p,rightMin:c,rightMax:u,leftMin:m,leftMax:g,points:e,topMax:v,topMin:b,bottomMax:f,bottomMin:y,height:S}}function oe(e){var t=!1;return"[object Array]"===Object.prototype.toString.call(e)&&Array.prototype.forEach.call(e,function(e,n){i.i(Xe.isNullOrUndefined)(e.geometry)||"Path"!==e.geometry.type||(t=!0)}),t}function ae(e,t,i){var n=t,o=v(t,i).width;if(o>e)for(var a=t.length,r=a-1;r>=0;--r)if(n=t.substring(0,r)+"...",(o=v(n,i).width)<=e||n.length<4)return n.length<4&&(n=" "),n;return n}function re(e,t,i,n){var o;switch(t){case"Near":o=e.x;break;case"Center":o="title"===n?e.width/2-i.width/2:e.x+e.width/2-i.width/2;break;case"Far":o="title"===n?e.width-e.y-i.width:e.x+e.width-i.width}var a="title"===n?e.y+i.height/2:e.y+e.height/2+i.height/2;return new et(o,a)}function le(e){var t=document.getElementById(e);return t?i.i(Xe.remove)(t):null}function se(e,t){var i=d(e.minLatOfGivenLocation,e.minLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),n=d(e.maxLatOfGivenLocation,e.maxLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),o=(i.x+n.x)/2,a=(i.y+n.y)/2;return new et(o,a)}function de(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i(Xe.isNullOrUndefined)(e.centerLatOfGivenLocation)&&!i.i(Xe.isNullOrUndefined)(e.centerLongOfGivenLocation)&&e.zoomNotApplied;i.i(Xe.isNullOrUndefined)(e.mapScaleValue)&&(e.mapScaleValue=a),e.zoomSettings.shouldZoomInitially&&e.zoomSettings.enable&&(e.mapScaleValue=o=a=(e.zoomSettings.shouldZoomInitially||e.enablePersistence)&&1===e.scale?e.scale:i.i(Xe.isNullOrUndefined)(e.markerZoomFactor)?1:e.markerZoomFactor,e.mapScaleValue===e.markerZoomFactor||e.enablePersistence||(e.mapScaleValue=a=e.markerZoomFactor),i.i(Xe.isNullOrUndefined)(e.markerCenterLatitude)||i.i(Xe.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h=i.i(Xe.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.min,c=i.i(Xe.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.max,u=n?1:e.mapScaleValue;i.i(Xe.isNullOrUndefined)(e.currentShapeDataLength)&&(e.currentShapeDataLength=i.i(Xe.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length);var m,g,y=e.totalRect&&e.legendSettings.visible?e.totalRect:e.mapAreaRect,f=e.availableSize;if(!i.i(Xe.isNullOrUndefined)(h)&&!i.i(Xe.isNullOrUndefined)(c)){var b=Math.abs(c.x-h.x),v=Math.abs(h.y-c.y),S=n?1:1===e.markerZoomFactor?e.mapScaleValue:a;if(r=e.zoomSettings.shouldZoomInitially&&e.markerZoomedState&&!e.zoomPersistence?e.markerZoomCenterPoint:e.centerPosition,!i.i(Xe.isNullOrUndefined)(s)&&!i.i(Xe.isNullOrUndefined)(l)||p){var _=((b+Math.abs(e.mapAreaRect.width-b))/2+e.mapAreaRect.x)/S,x=((v+Math.abs(e.mapAreaRect.height-v))/2+e.mapAreaRect.y)/S,O=p?se(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i(Xe.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType?(m=-O.x+_,g=-O.y+x,o=u):(1!==Math.floor(e.scale)&&e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x):e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x,o=u):(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y),o=e.mapScaleValue)}else if(i.i(Xe.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType){0!==v&&0!==b&&v!==b||(b=y.width/2,v=y.height),o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,v*=o;var M=0!==h.x&&"layers"===e.translateType?f.width-y.width:0;m=y.x+(-h.x+(y.width/2-b/2))-M,g=y.y+(-h.y+(y.height/2-v/2)),e.previousTranslate=new et(m,g)}else if(e.zoomSettings.shouldZoomInitially||1!==e.markerZoomFactor||1!==e.mapScaleValue)if(o=e.mapScaleValue<1?e.mapScaleValue+1:e.mapScaleValue,e.mapScaleValue=e.zoomSettings.enable&&1!==e.mapScaleValue?e.mapScaleValue:1,e.currentShapeDataLength!==(i.i(Xe.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length)&&"SubLayer"!==t.type){var L=parseFloat(Math.min(y.height/v,y.width/b).toFixed(2));v*=L,b*=L,g=y.y+(-h.y+(y.height/2-v/2)),o=L,m=y.x+(-h.x+(y.width/2-b/2))}else if(e.availableSize.height!==e.heightBeforeRefresh||e.widthBeforeRefresh!==e.availableSize.width){var C=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),w=b;w*=C;var P=v;P*=C;var T=y.x+(-h.x+(y.width/2-w/2)),I=y.y+(-h.y+(y.height/2-P/2)),N=(e.translatePoint.x-e.previousTranslate.x)/e.widthBeforeRefresh,k=(e.translatePoint.y-e.previousTranslate.y)/e.heightBeforeRefresh,F=N*e.availableSize.width,E=k*e.availableSize.height;m=T+F,g=I+E,e.previousTranslate=new et(T,I),e.zoomTranslatePoint.x=m,e.zoomTranslatePoint.y=g}else i.i(Xe.isNullOrUndefined)(e.previousProjection)||!(1===e.mapScaleValue||e.mapScaleValue<=1.05)||e.zoomModule.isDragZoom?(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y,o=e.scale):(o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,m=y.x+(-h.x+(y.width/2-b/2)),v*=o,g=y.y+(-h.y+(y.height/2-v/2)));else o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),v*=o,b*=o,g=y.y+(-h.y+(y.height/2-v/2)),m=y.x+(-h.x+(y.width/2-b/2));i.i(Xe.isNullOrUndefined)(e.translatePoint)||(m=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:m,g=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:g)}return o=e.enablePersistence?e.mapScaleValue>=1?e.mapScaleValue:1:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:o,location:new et(m,g)}}function pe(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i(Xe.isNullOrUndefined)(e.centerLongOfGivenLocation)&&!i.i(Xe.isNullOrUndefined)(e.centerLatOfGivenLocation)&&e.zoomNotApplied;i.i(Xe.isNullOrUndefined)(e.previousCenterLatitude)&&i.i(Xe.isNullOrUndefined)(e.previousCenterLongitude)?(e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.previousCenterLatitude!==e.centerPosition.latitude&&e.previousCenterLongitude!==e.centerPosition.longitude?(e.centerPositionChanged=!0,e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.centerPositionChanged=!1,(i.i(Xe.isNullOrUndefined)(e.mapScaleValue)||a>e.mapScaleValue)&&(e.isReset&&1===e.mapScaleValue?e.mapScaleValue=e.mapScaleValue:e.mapScaleValue=a),e.mapScaleValue=1!==e.zoomSettings.zoomFactor&&e.zoomSettings.zoomFactor===e.mapScaleValue?e.zoomSettings.zoomFactor:e.zoomSettings.zoomFactor===e.mapScaleValue||e.centerPositionChanged?e.zoomSettings.zoomFactor:e.mapScaleValue,e.zoomSettings.shouldZoomInitially&&!e.isZoomByPosition&&(e.mapScaleValue=a=o=(e.enablePersistence||e.zoomSettings.shouldZoomInitially)&&1===e.scale?e.scale:i.i(Xe.isNullOrUndefined)(e.markerZoomFactor)?e.mapScaleValue:e.markerZoomFactor,a=e.mapScaleValue,i.i(Xe.isNullOrUndefined)(e.markerCenterLatitude)||i.i(Xe.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h,c,u=n?1:e.mapScaleValue,m=e.mapAreaRect,g=e.baseMapRectBounds.min,y=e.baseMapRectBounds.max,f=n?1:e.mapScaleValue,b=Math.abs(y.x-g.x),v=Math.abs(g.y-y.y);if(!i.i(Xe.isNullOrUndefined)(s)&&!i.i(Xe.isNullOrUndefined)(l)||p){var S=(v+Math.abs(e.mapAreaRect.height-v))/2/f,_=(b+Math.abs(e.mapAreaRect.width-b))/2/f,x=p?se(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i(Xe.isNullOrUndefined)(e.zoomTranslatePoint)&&i.i(Xe.isNullOrUndefined)(e.previousProjection)||e.zoomNotApplied?(h=-x.x+_+e.mapAreaRect.x/u,c=-x.y+S+e.mapAreaRect.y/u):e.previousProjection!==e.projectionType?(h=-x.x+_,c=-x.y+S):(e.isZoomByPosition&&(e.zoomTranslatePoint.x=-x.x+_,e.zoomTranslatePoint.y=-x.y+S),h=e.zoomTranslatePoint.x,c=e.zoomTranslatePoint.y,a=u),i.i(Xe.isNullOrUndefined)(e.translatePoint)||(c=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:c,h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:h),o=0!==a?a:1}else{var O=0===e.zoomSettings.zoomFactor?1:e.zoomSettings.zoomFactor,M=e.zoomSettings.maxZoom;O=O>M?M:O,o=O;var L=0===e.mapScaleValue?1:e.mapScaleValue>M?M:e.mapScaleValue,_=m.x+(-g.x+(m.width/2-b/2)),S=m.y+(-g.y+(m.height/2-v/2));if(!i.i(Xe.isNullOrUndefined)(e.zoomTranslatePoint)||!i.i(Xe.isNullOrUndefined)(e.previousProjection))if(e.previousProjection!==e.projectionType){var C=[],w={x:_,y:S};C.push(w);for(var P=1;P<M;P++){var T=C[P-1].x-(m.width/P-m.width/(P+1))/2,I=C[P-1].y-(m.height/P-m.height/(P+1))/2;w={x:T,y:I},C.push(w)}_=C[O-1].x,S=C[O-1].y}else _=e.zoomTranslatePoint.x,S=e.zoomTranslatePoint.y,O!==L&&(o=L);i.i(Xe.isNullOrUndefined)(e.translatePoint)||(h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:_,c=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:S)}return o=e.enablePersistence?0===e.mapScaleValue?1:e.mapScaleValue:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:n?1:o,location:new et(h,c)}}function he(e){e.tileZoomScale=e.tileZoomLevel=Math.floor(e.availableSize.height/512)+1;var t="GoogleStaticMap"!==e.layers[e.baseLayerIndex].layerType?20:0,i=256*Math.pow(2,e.tileZoomLevel);e.tileTranslatePoint.x=e.availableSize.width/2-i/2,e.tileTranslatePoint.y=e.availableSize.height/2-i/2+t,e.previousTileWidth=e.availableSize.width,e.previousTileHeight=e.availableSize.height}function ce(e){return document.getElementById(e)}function ue(e){var t=document.getElementById(e);return i.i(Xe.isNullOrUndefined)(t)?null:t.getClientRects()[0]}function me(e,t){return e.formatFunction=e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator}),e.formatFunction(t)}function ge(e,t){var n=null;try{document.querySelectorAll(e).length?n=i.i(Xe.compile)(document.querySelector(e).innerHTML.trim()):(t.isVue||t.isVue3)&&(n=i.i(Xe.compile)(e))}catch(t){n=i.i(Xe.compile)(e)}return n}function ye(e){return document.getElementById(e)}function fe(e,t){var i,n=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),o=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),a=t.layersCollection[n],r=a.layerData[o].property;return a.dataSource&&(i=a.dataSource[$(a.dataSource,r,a.shapeDataPath,a.shapePropertyPath,a)]),{shapeData:r,data:i}}function be(e,t,n,o){var a=fe(e,n),r={color:t.border.color,opacity:t.border.opacity,width:t.border.width},l=t.enableMultiSelect?{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n,shapeDataCollection:n.shapeSelectionItem}:{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n};return n.trigger(o,l,function(){l.border.opacity=i.i(Xe.isNullOrUndefined)(l.border.opacity)?l.opacity:l.border.opacity}),l}function ve(e){return document.getElementsByClassName(e)}function Se(e,t){var i=null;return document.getElementById(t)&&(i=document.getElementById(t).querySelector("#"+e)),i}function _e(e,t,i,n){for(var o,a=n.layers[e].shapeData.features,r=0;r<a.length;r++)if(a[r].properties.name===t){o=n.element.id+"_LayerIndex_"+e+"_shapeIndex_"+r+"_dataIndex_undefined";break}return ye(o)}function xe(e,t,n){return i.i(Xe.createElement)("style",{id:e,innerHTML:"."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke:"+n.border.color+";}"})}function Oe(e,t,n){var o=ye(e);i.i(Xe.isNullOrUndefined)(o)||(o.innerHTML="."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke:"+n.border.color+"}")}function Me(e,t,n,o,a){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,name:Je.itemSelection,target:n.id,cancel:!1,shapeData:o,data:a,maps:t};t.trigger("itemSelection",l,function(n){l.border.opacity=i.i(Xe.isNullOrUndefined)(e.border.opacity)?e.opacity:e.border.opacity,t.shapeSelectionItem.push(l.shapeData),ye("ShapeselectionMap")?Oe("ShapeselectionMap","ShapeselectionMapStyle",l):document.body.appendChild(xe("ShapeselectionMap","ShapeselectionMapStyle",l))})}function Le(e){e.removeAttribute("class")}function Ce(e,t,n,o,a,r,l){void 0===l&&(l=0);var s=o.x,d=o.y,p=0,h=e.getAttribute("transform")||"";new Xe.Animation({}).animate(e,{duration:n,delay:t,progress:function(t){if(t.timeStamp>t.delay){if(a.isTileMap&&0===p){var n=document.querySelector(".GroupElement");i.i(Xe.isNullOrUndefined)(n)||(n.style.display="block")}p=(t.timeStamp-t.delay)/t.duration,e.setAttribute("transform","translate( "+(s-l*p)+" "+(d-l*p)+" ) scale("+p+")")}},end:function(t){if(e.setAttribute("transform",h),r){var i={cancel:!1,name:Qe.A,element:r,maps:a};a.trigger(Qe.A,i)}}})}function we(e){le(e)}function Pe(e,t,n,o,a,l,s,d,p){var h=r(n,o,d);i.i(Xe.isNullOrUndefined)(h)||(n=h.x,o=h.y);for(var c=document.getElementById(s),u=v(e,{fontFamily:"Segoe UI",size:"8px",fontStyle:"Normal",fontWeight:"Regular"}).width,m=e.split(" "),g=m[0].length,y=1;y<m.length;y++)g<m[y].length&&(g=m[y].length);c||(c=i.i(Xe.createElement)("div",{id:s}),c.style.cssText='background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(0, 0, 0); padding-left:5px;font-size:12px; font-family: "Segoe UI"; text-align:center'),n<a-u?n=n:n>a-u&&n<a-8*g?u=a-n:n>=a-8*g&&(n>u?n-=u:(u=n,n=0));var f=t.split("px");Te(c,e,n,o,f,u,a,d),c.clientHeight+2*parseInt(f[0],10)>l&&(u=n,n=0),Te(c,e,n,o,f,u,a,d),p&&setTimeout(we,5e3,s)}function Te(e,t,i,n,o,a,r,l){e.innerHTML=t,e.style.top=-1!==e.id.indexOf("_Legend")?(parseInt(o[0],10)+n).toString()+"px":(2*parseInt(o[0],10)).toString()+"px",e.style.left=i.toString()+"px",e.style.width=a.toString()+"px",e.style.maxWidth=r.toString()+"px",e.style.wordWrap="break-word",l.appendChild(e)}function Ie(e,t,n,o,a){var r=ye(e),l="top:"+n.toString()+"px;left:"+o.toString()+"px;color: #000000; background:#FFFFFF;z-index: 2;position:absolute;border:1px solid #707070;font-size:"+a+";border-radius:2px;";r?(r.innerHTML="&nbsp;"+t+"&nbsp;",r.style.cssText=l):(r=i.i(Xe.createElement)("div",{id:e,innerHTML:"&nbsp;"+t+"&nbsp;"}),r.style.cssText=l,document.body.appendChild(r))}function Ne(e,t,i,n,o){var a=new Ye.SvgRenderer(""),r=ke(e,i,t,o,n);return a["draw"+r.functionName](r.renderOption)}function ke(e,t,n,o,a){var r,l="Path",s=t.width,d=t.height,p=e.x,h=e.y,c=e.x+-s/2,u=e.y+-d/2;switch(o.stroke="HorizontalLine"===n||"VerticalLine"===n||"Cross"===n?o.fill:o.stroke,o["stroke-width"]=0!==o["stroke-width"]||"HorizontalLine"!==n&&"VerticalLine"!==n&&"Cross"!==n?o["stroke-width"]:1,n){case"Circle":case"Bubble":l="Ellipse",i.i(Xe.merge)(o,{rx:s/2,ry:d/2,cx:p,cy:h});break;case"VerticalLine":r="M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i(Xe.merge)(o,{d:r});break;case"HorizontalLine":r="M "+p+" "+h+" L "+(p+s/2)+" "+h,i.i(Xe.merge)(o,{d:r});break;case"Diamond":r="M "+c+" "+h+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+h+" L "+p+" "+(h+d/2)+" L "+c+" "+h+" z",i.i(Xe.merge)(o,{d:r});break;case"Rectangle":r="M "+c+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" L "+c+" "+(h+-d/2)+" z",i.i(Xe.merge)(o,{d:r});break;case"Triangle":r="M "+c+" "+(h+d/2)+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" z",i.i(Xe.merge)(o,{d:r});break;case"InvertedTriangle":r="M "+(p+s/2)+" "+(h-d/2)+" L "+p+" "+(h+d/2)+" L "+(p-s/2)+" "+(h-d/2)+" L "+(p+s/2)+" "+(h-d/2)+" z",i.i(Xe.merge)(o,{d:r});break;case"Pentagon":for(var m=void 0,g=void 0,y=0;y<=5;y++)m=s/2*Math.cos(Math.PI/180*(72*y)),g=s/2*Math.sin(Math.PI/180*(72*y)),r=0===y?"M "+(p+m)+" "+(h+g)+" ":r.concat("L "+(p+m)+" "+(h+g)+" ");r=r.concat("Z"),i.i(Xe.merge)(o,{d:r});break;case"Star":r="M "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" L "+(e.x-t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x+t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x-t.width/3)+" "+(e.y-t.height/2)+" L "+e.x+" "+(e.y+t.height/2)+" L "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" Z",i.i(Xe.merge)(o,{d:r});break;case"Cross":r="M "+c+" "+h+" L "+(p+s/2)+" "+h+" M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i(Xe.merge)(o,{d:r});break;case"Image":l="Image",i.i(Xe.merge)(o,{href:a,height:d,width:s,x:c,y:u})}return{renderOption:o,functionName:l}}function Fe(e,t){t.appendChild(e);var i=e.offsetWidth,n=e.offsetHeight;return t.removeChild(e),new $e(i,n)}function Ee(e,t,n,o){for(var a,r=0;r<e.childElementCount;r++)if(a=e.childNodes[r],a.id.indexOf("_NavigationGroup")>-1)Ae(a,t,n,o);else{var l=void 0,s=0,d=o.layersCollection[t].shapeSettings.borderWidthValuePath,p=o.layersCollection[t].shapeSettings.border.width,h=o.layersCollection[t].shapeSettings.circleRadius;o.layersCollection[t].shapeSettings.borderWidthValuePath?(s=$(o.layersCollection[t].dataSource,o.layersCollection[t].layerData[r].property,o.layersCollection[t].shapeDataPath,o.layersCollection[t].shapePropertyPath,o.layersCollection[t]),l=null!==s&&o.layersCollection[t].dataSource[s][d]?o.layersCollection[t].dataSource[s][d]:i.i(Xe.isNullOrUndefined)(p)?0:p):l=i.i(Xe.isNullOrUndefined)(p)?0:p,a.setAttribute("stroke-width",(l/n).toString()),(e.id.indexOf("_Point")>-1||e.id.indexOf("_MultiPoint")>-1)&&a.setAttribute("r",(h/n).toString())}}function Ae(e,t,i,n){for(var o,a=0;a<e.childElementCount;a++)if(o=e.childNodes[a],"path"===o.tagName){var r=n.layersCollection[t].navigationLineSettings[parseFloat(o.id.split("_NavigationIndex_")[1].split("_")[0])].width;o.setAttribute("stroke-width",(r/i).toString())}}function ze(e){for(var t=[],i=e.touches,n=0;n<i.length;n++)t.push({pageX:i[n].pageX,pageY:i[n].pageY});return t}function Be(e,t){var i=je(e[0],e[1]);return je(t[0],t[1])/i}function je(e,t){var i=e.pageX-t.pageX,n=e.pageY-t.pageY;return Math.sqrt(i*i+n*n)}function Ue(e,t){var i=t.element.getBoundingClientRect(),n=i.top+document.defaultView.pageXOffset,o=i.left+document.defaultView.pageYOffset;return Array.prototype.slice.call(e).map(function(e){return{x:e.pageX-o,y:e.pageY-n}})}function Re(e){return{x:e.map(function(e){return e.x}).reduce(De)/e.length,y:e.map(function(e){return e.y}).reduce(De)/e.length}}function De(e,t){return e+t}function Ze(e,t,i,n,o,a,r){var l=0,s=r.previousPoint,d=r.previousScale,p=o-d,h=new ct(0,0),c=1;if(o===d)return void e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )");var u=function(e,t){return e.x===t.x?null:(t.y-e.y)/(t.x-e.x)}(s,n),m=function(e,t){return null===t?e.x:e.y-t*e.x}(s,u),g=n.x-s.x,y=n.y-s.y;He(e,t,i,function(e){e.timeStamp>e.delay&&(l=(e.timeStamp-e.delay)/e.duration,c=d+l*p,h.x=s.x+l*g/(c/o),h.y=null==u?s.y+l*y:u*h.x+m,e.element.setAttribute("transform","scale( "+c+" ) translate( "+h.x+" "+h.y+" )"),r.translatePoint=h,r.scale=c,r.zoomModule.processTemplate(n.x,n.y,c,r))},function(){r.translatePoint=n,r.scale=o,e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )"),r.zoomModule.processTemplate(n.x,n.y,o,r)})}function He(e,t,i,n,o){var a,r=this,l=null,s=function(t){l||(l=t);var d=t-l;if(d<i)n.call(r,{element:e,delay:0,timeStamp:d,duration:i}),window.requestAnimationFrame(s);else if(window.cancelAnimationFrame(a),o.call(r,{element:e}),e.id.indexOf("Marker")>-1){var p=ce(e.id.split("_Layer")[0]+"_Markers_Group");p.style.cssText="visibility:visible"}};a=window.requestAnimationFrame(s)}function Ve(e,t,i,n){var o=0,a=e.getAttribute("transform").split(" ");2===a.length&&(a[2]=a[1].split(")")[0],a[1]=a[0].split("(")[1]);var r=new ct(parseInt(a[1],10),parseInt(a[2],10)),l=n.x-r.x,s=n.y-r.y,d=new ct(0,0);He(e,t,i,function(e){e.timeStamp>e.delay&&(o=(e.timeStamp-e.delay)/e.duration,d.x=r.x+o*l,d.y=r.y+o*s,e.element.setAttribute("transform","translate( "+d.x+" "+d.y+" )"))},function(){e.setAttribute("transform","translate( "+n.x+" "+n.y+" )")})}function Ge(e,t){var n=i.i(Xe.isNullOrUndefined)(t.shouldZoomPreviousFactor)?null:t.shouldZoomPreviousFactor,o=i.i(Xe.isNullOrUndefined)(t.shouldZoomCurrentFactor)?null:t.shouldZoomCurrentFactor;i.i(Xe.isNullOrUndefined)(o)?!i.i(Xe.isNullOrUndefined)(n)&&i.i(Xe.isNullOrUndefined)(o)&&t.shouldZoomPreviousFactor!==e?t.shouldZoomCurrentFactor=e:t.shouldZoomPreviousFactor=e:(t.shouldZoomCurrentFactor=null,t.shouldZoomPreviousFactor=null)}function We(e,t,i,n,o,a,r){var l,s,p=r.zoomSettings.maxZoom,h=Math.sin(t*Math.PI/180),c=Math.log((1+h)/(1-h))/2,u=Math.max(Math.min(c,Math.PI),-Math.PI)/2,m=Math.sin(e*Math.PI/180),g=Math.log((1+m)/(1-m))/2,y=Math.max(Math.min(g,Math.PI),-Math.PI)/2;if(r.zoomNotApplied&&!r.isTileMap){var f=Math.abs((r.baseMapBounds.latitude.max-r.baseMapBounds.latitude.min)/(t-e)),b=Math.abs((r.baseMapBounds.longitude.max-r.baseMapBounds.longitude.min)/(n-i));s=Math.min(f,b);d(e,i,1,r.layersCollection[0],r),d(t,n,1,r.layersCollection[0],r)}var v=(u-y)/Math.PI,S=n-i,_=(S<0?S+360:S)/360,x=Math.log(a/256/v)/Math.LN2,O=Math.log(o/256/_)/Math.LN2,M=r.zoomNotApplied&&!r.isTileMap?s:Math.min(x,O);return l=Math.min(M,p),l=r.isTileMap||!r.zoomNotApplied?Math.floor(l):l,r.isTileMap||Ge(l,r),l}function qe(e){var t,n=i.i(Xe.isNullOrUndefined)(e.result)?e.actual:e.result;return i.i(Xe.isNullOrUndefined)(n.length)?i.i(Xe.isNullOrUndefined)(n.Items)||(t=n.Items):t=n,t}i.d(t,"a",function(){return $e}),t.b=n,t.c=o,t.d=a,t.e=r,t.f=l,t.g=s,t.h=d,t.i=p,t.j=h,t.k=c,t.l=u,t.m=m,t.n=g,t.o=y,t.p=f,t.q=b,i.d(t,"r",function(){return et}),i.d(t,"s",function(){return tt}),i.d(t,"t",function(){return it}),t.u=v,i.d(t,"v",function(){return nt}),i.d(t,"w",function(){return ot}),i.d(t,"x",function(){return at}),i.d(t,"y",function(){return rt}),i.d(t,"z",function(){return lt}),i.d(t,"A",function(){return st}),i.d(t,"B",function(){return dt}),i.d(t,"C",function(){return pt}),i.d(t,"D",function(){return ht}),i.d(t,"E",function(){return ct}),i.d(t,"F",function(){return ut}),i.d(t,"G",function(){return mt}),t.H=S,t.I=_,t.J=x,t.K=O,t.L=M,t.M=L,t.N=C,t.O=w,t.P=P,t.Q=T,t.R=I,t.S=N,t.T=k,t.U=F,t.V=E,t.W=A,t.X=z,t.Y=B,t.Z=j,t._0=U,t._1=R,t._2=D,t._3=Z,t._4=H,t._5=V,t._6=G,t._7=W,t._8=q,t._9=X,t._10=Y,t._11=J,t._12=Q,t._13=K,t._14=$,t._15=ee,t._16=te,t._17=ie,t._18=ne,t._19=oe,t._20=ae,t._21=re,t._22=le,t._23=se,t._24=de,t._25=pe,t._26=he,t._27=ce,t._28=ue,t._29=me,t._30=ge,t._31=ye,t._32=fe,t._33=be,t._34=ve,t._35=Se,t._36=_e,t._37=xe,t._38=Oe,t._39=Me,t._40=Le,t._41=Ce,t._42=we,t._43=Pe,t._44=Te,t._45=Ie,t._46=Ne,t._47=ke,t._48=Fe,t._49=Ee,t._50=Ae,t._51=ze,t._52=Be,t._53=je,t._54=Ue,t._55=Re,t._56=De,t._57=Ze,t._58=He,i.d(t,"_59",function(){return gt}),t._60=Ve,t._61=Ge,t._62=We,t._63=qe;var Xe=i(1),Ye=(i.n(Xe),i(6)),Je=(i.n(Ye),i(7)),Qe=i(2),Ke=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$e=function(){function e(e,t){this.width=e,this.height=t}return e}(),et=function(){function e(e,t){this.x=e,this.y=t}return e}(),tt=function(){function e(e,t){this.min=e,this.max=t}return e}(),it=function(){function e(e,t){this.latitude=new tt(e.min,e.max),this.longitude=new tt(t.min,t.max)}return e}(),nt=function(){function e(e,t,i,n,o,a,r){void 0===a&&(a=""),this.transform="",this.baseLine="auto",this.id=e,this.text=o,this.transform=a,this.anchor=n,this.x=t,this.y=i,this.baseLine=r}return e}(),ot=function(){function e(e,t,i,n,o,a,r,l){this.id=e,this["fill-opacity"]=o,this["stroke-opacity"]=a,this.fill=t,this.stroke=n,this["stroke-width"]=i,this["stroke-dasharray"]=r,this.d=l}return e}(),at=function(){function e(e,t,i){this.r=e,this.g=t,this.b=i}return e}(),rt=function(e){function t(t,i,n,o,a,r,l,s,d){var p=e.call(this,t,i,n.width,n.color,o,n.opacity)||this;return p.y=a.y,p.x=a.x,p.height=a.height,p.width=a.width,p.rx=r||0,p.ry=l||0,p.transform=s||"",p["stroke-dasharray"]=d,p["fill-opacity"]=o,p["stroke-opacity"]=n.opacity,p}return Ke(t,e),t}(ot),lt=function(e){function t(t,i,n,o,a,r,l,s){var d=e.call(this,t,i,n.width,n.color,o,n.opacity,s)||this;return d.cy=r,d.cx=a,d.r=l,d["stroke-dasharray"]=s,d["fill-opacity"]=o,d["stroke-opacity"]=n.opacity,d}return Ke(t,e),t}(ot),st=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.points=i,d}return Ke(t,e),t}(ot),dt=function(e){function t(t,i,n,o,a,r,l,s){return void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s=""),e.call(this,t,i,n,o,a,r,l,s)||this}return Ke(t,e),t}(st),pt=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.x1=i.x1,d.y1=i.y1,d.x2=i.x2,d.y2=i.y2,d}return Ke(t,e),t}(ot),ht=function(){function e(e,t,i,n){this.x1=e,this.y1=t,this.x2=i,this.y2=n}return e}(),ct=function(){function e(e,t){this.x=e,this.y=t}return e}(),ut=function(){function e(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n}return e}(),mt=function(){function e(e,t,i,n,o,a,r,l,s){void 0===a&&(a="userSpaceOnUse"),void 0===r&&(r="userSpaceOnUse"),void 0===l&&(l=""),void 0===s&&(s=""),this.id=e,this.x=t,this.y=i,this.width=n,this.height=o,this.patternUnits=a,this.patternContentUnits=r,this.patternTransform=l,this.href=s}return e}(),gt=function(){function e(e,t,i,n,o){this.dataOptions=e,this.type=t||"GET",this.async=i||!0,this.contentType=n,this.sendData=o}return e}()},function(t,i){t.exports=e},function(e,t,i){"use strict";var n=i(17);i.d(t,"a",function(){return n.a});var o=i(3);i.d(t,"b",function(){return o.a}),i.d(t,"c",function(){return o.b}),i.d(t,"d",function(){return o.c}),i.d(t,"e",function(){return o.d}),i.d(t,"f",function(){return o.e}),i.d(t,"g",function(){return o.f}),i.d(t,"h",function(){return o.g}),i.d(t,"i",function(){return o.h}),i.d(t,"j",function(){return o.i}),i.d(t,"k",function(){return o.j}),i.d(t,"l",function(){return o.k}),i.d(t,"m",function(){return o.l}),i.d(t,"n",function(){return o.m}),i.d(t,"o",function(){return o.n}),i.d(t,"p",function(){return o.o}),i.d(t,"q",function(){return o.p}),i.d(t,"r",function(){return o.q}),i.d(t,"s",function(){return o.r}),i.d(t,"t",function(){return o.s}),i.d(t,"u",function(){return o.t}),i.d(t,"v",function(){return o.u}),i.d(t,"w",function(){return o.v}),i.d(t,"x",function(){return o.w}),i.d(t,"y",function(){return o.x}),i.d(t,"z",function(){return o.y}),i.d(t,"A",function(){return o.z}),i.d(t,"B",function(){return o.A}),i.d(t,"C",function(){return o.B}),i.d(t,"D",function(){return o.C}),i.d(t,"E",function(){return o.D}),i.d(t,"F",function(){return o.E}),i.d(t,"G",function(){return o.F}),i.d(t,"H",function(){return o.G}),i.d(t,"I",function(){return o.H});var a=i(4);i.d(t,"J",function(){return a.a}),i.d(t,"K",function(){return a.b}),i.d(t,"L",function(){return a.c}),i.d(t,"M",function(){return a.d}),i.d(t,"N",function(){return a.e}),i.d(t,"O",function(){return a.f}),i.d(t,"P",function(){return a.g}),i.d(t,"Q",function(){return a.h}),i.d(t,"R",function(){return a.i}),i.d(t,"S",function(){return a.j}),i.d(t,"T",function(){return a.k}),i.d(t,"U",function(){return a.l}),i.d(t,"V",function(){return a.m}),i.d(t,"W",function(){return a.n}),i.d(t,"X",function(){return a.o}),i.d(t,"Y",function(){return a.p}),i.d(t,"Z",function(){return a.q}),i.d(t,"_0",function(){return a.r}),i.d(t,"_1",function(){return a.s}),i.d(t,"_2",function(){return a.t}),i.d(t,"_3",function(){return a.u}),i.d(t,"_4",function(){return a.v}),i.d(t,"_5",function(){return a.w}),i.d(t,"_6",function(){return a.x}),i.d(t,"_7",function(){return a.y}),i.d(t,"_8",function(){return a.z}),i.d(t,"_9",function(){return a.A}),i.d(t,"_10",function(){return a.B}),i.d(t,"_11",function(){return a.C}),i.d(t,"_12",function(){return a.D});var r=i(0);i.d(t,"_13",function(){return r.a}),i.d(t,"_14",function(){return r.b}),i.d(t,"_15",function(){return r.c}),i.d(t,"_16",function(){return r.d}),i.d(t,"_17",function(){return r.e}),i.d(t,"_18",function(){return r.f}),i.d(t,"_19",function(){return r.g}),i.d(t,"_20",function(){return r.h}),i.d(t,"_21",function(){return r.i}),i.d(t,"_22",function(){return r.j}),i.d(t,"_23",function(){return r.k}),i.d(t,"_24",function(){return r.l}),i.d(t,"_25",function(){return r.m}),i.d(t,"_26",function(){return r.n}),i.d(t,"_27",function(){return r.o}),i.d(t,"_28",function(){return r.p}),i.d(t,"_29",function(){return r.q}),i.d(t,"_30",function(){return r.r}),i.d(t,"_31",function(){return r.s}),i.d(t,"_32",function(){return r.t}),i.d(t,"_33",function(){return r.u}),i.d(t,"_34",function(){return r.v}),i.d(t,"_35",function(){return r.w}),i.d(t,"_36",function(){return r.x}),i.d(t,"_37",function(){return r.y}),i.d(t,"_38",function(){return r.z}),i.d(t,"_39",function(){return r.A}),i.d(t,"_40",function(){return r.B}),i.d(t,"_41",function(){return r.C}),i.d(t,"_42",function(){return r.D}),i.d(t,"_43",function(){return r.E}),i.d(t,"_44",function(){return r.F}),i.d(t,"_45",function(){return r.G}),i.d(t,"_46",function(){return r.H}),i.d(t,"_47",function(){return r.I}),i.d(t,"_48",function(){return r.J}),i.d(t,"_49",function(){return r.K}),i.d(t,"_50",function(){return r.L}),i.d(t,"_51",function(){return r.M}),i.d(t,"_52",function(){return r.N}),i.d(t,"_53",function(){return r.O}),i.d(t,"_54",function(){return r.P}),i.d(t,"_55",function(){return r.Q}),i.d(t,"_56",function(){return r.R}),i.d(t,"_57",function(){return r.S}),i.d(t,"_58",function(){return r.T}),i.d(t,"_59",function(){return r.U}),i.d(t,"_60",function(){return r.V}),i.d(t,"_61",function(){return r.W}),i.d(t,"_62",function(){return r.X}),i.d(t,"_63",function(){return r.Y}),i.d(t,"_64",function(){return r.Z}),i.d(t,"_65",function(){return r._0}),i.d(t,"_66",function(){return r._1}),i.d(t,"_67",function(){return r._2}),i.d(t,"_68",function(){return r._3}),i.d(t,"_69",function(){return r._4}),i.d(t,"_70",function(){return r._5}),i.d(t,"_71",function(){return r._6}),i.d(t,"_72",function(){return r._7}),i.d(t,"_73",function(){return r._8}),i.d(t,"_74",function(){return r._9}),i.d(t,"_75",function(){return r._10}),i.d(t,"_76",function(){return r._11}),i.d(t,"_77",function(){return r._12}),i.d(t,"_78",function(){return r._13}),i.d(t,"_79",function(){return r._14}),i.d(t,"_80",function(){return r._15}),i.d(t,"_81",function(){return r._16}),i.d(t,"_82",function(){return r._17}),i.d(t,"_83",function(){return r._18}),i.d(t,"_84",function(){return r._19}),i.d(t,"_85",function(){return r._20}),i.d(t,"_86",function(){return r._21}),i.d(t,"_87",function(){return r._22}),i.d(t,"_88",function(){return r._23}),i.d(t,"_89",function(){return r._24}),i.d(t,"_90",function(){return r._25}),i.d(t,"_91",function(){return r._26}),i.d(t,"_92",function(){return r._27}),i.d(t,"_93",function(){return r._28}),i.d(t,"_94",function(){return r._29}),i.d(t,"_95",function(){return r._30}),i.d(t,"_96",function(){return r._31}),i.d(t,"_97",function(){return r._32}),i.d(t,"_98",function(){return r._33}),i.d(t,"_99",function(){return r._34}),i.d(t,"_100",function(){return r._35}),i.d(t,"_101",function(){return r._36}),i.d(t,"_102",function(){return r._37}),i.d(t,"_103",function(){return r._38}),i.d(t,"_104",function(){return r._39}),i.d(t,"_105",function(){return r._40}),i.d(t,"_106",function(){return r._41}),i.d(t,"_107",function(){return r._42}),i.d(t,"_108",function(){return r._43}),i.d(t,"_109",function(){return r._44}),i.d(t,"_110",function(){return r._45}),i.d(t,"_111",function(){return r._46}),i.d(t,"_112",function(){return r._47}),i.d(t,"_113",function(){return r._48}),i.d(t,"_114",function(){return r._49}),i.d(t,"_115",function(){return r._50}),i.d(t,"_116",function(){return r._51}),i.d(t,"_117",function(){return r._52}),i.d(t,"_118",function(){return r._53}),i.d(t,"_119",function(){return r._54}),i.d(t,"_120",function(){return r._55}),i.d(t,"_121",function(){return r._56}),i.d(t,"_122",function(){return r._57}),i.d(t,"_123",function(){return r._58}),i.d(t,"_124",function(){return r._59}),i.d(t,"_125",function(){return r._60}),i.d(t,"_126",function(){return r._61}),i.d(t,"_127",function(){return r._62}),i.d(t,"_128",function(){return r._63});var l=i(10);i.d(t,"_129",function(){return l.a});var s=i(13);i.d(t,"_130",function(){return s.a});var d=i(8);i.d(t,"_131",function(){return d.a});var p=i(11);i.d(t,"_132",function(){return p.a});var h=i(9);i.d(t,"_133",function(){return h.a});var c=i(14);i.d(t,"_134",function(){return c.a});var u=i(16);i.d(t,"_135",function(){return u.a});var m=i(15);i.d(t,"_136",function(){return m.a});var g=i(21);i.d(t,"_137",function(){return g.a});var y=i(22);i.d(t,"_138",function(){return y.a});var f=i(23);i.d(t,"_139",function(){return f.a});var b=i(24);i.d(t,"_140",function(){return b.a});var v=i(12);i.d(t,"_141",function(){return v.a});var S=i(20);i.d(t,"_142",function(){return S.a});var _=i(18);i.d(t,"_143",function(){return _.a});var x=i(19);i.d(t,"_144",function(){return x.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return n}),i.d(t,"b",function(){return o}),i.d(t,"c",function(){return a}),i.d(t,"d",function(){return r}),i.d(t,"e",function(){return l}),i.d(t,"f",function(){return s}),i.d(t,"g",function(){return d}),i.d(t,"h",function(){return p}),i.d(t,"i",function(){return h}),i.d(t,"j",function(){return c}),i.d(t,"k",function(){return u}),i.d(t,"l",function(){return m}),i.d(t,"m",function(){return g}),i.d(t,"n",function(){return y}),i.d(t,"o",function(){return f}),i.d(t,"p",function(){return b}),i.d(t,"q",function(){return v}),i.d(t,"r",function(){return S}),i.d(t,"s",function(){return _}),i.d(t,"t",function(){return x}),i.d(t,"u",function(){return O}),i.d(t,"v",function(){return M}),i.d(t,"w",function(){return L}),i.d(t,"x",function(){return C}),i.d(t,"y",function(){return w}),i.d(t,"z",function(){return P}),i.d(t,"A",function(){return T}),i.d(t,"B",function(){return I}),i.d(t,"C",function(){return N}),i.d(t,"D",function(){return k}),i.d(t,"E",function(){return F}),i.d(t,"F",function(){return E}),i.d(t,"G",function(){return A}),i.d(t,"H",function(){return z});var n="load",o="loaded",a="click",r="onclick",l="rightClick",s="doubleClick",d="resize",p="tooltipRender",h="shapeSelected",c="shapeHighlight",u="mousemove",m="mouseup",g="mousedown",y="layerRendering",f="shapeRendering",b="markerRendering",v="markerClusterRendering",S="markerClick",_="markerClusterClick",x="markerMouseMove",O="markerClusterMouseMove",M="dataLabelRendering",L="bubbleRendering",C="bubbleClick",w="bubbleMouseMove",P="animationComplete",T="legendRendering",I="annotationRendering",N="itemSelection",k="itemHighlight",F="beforePrint",E="zoomIn",A="zoomOut",z="pan"},function(e,t,i){"use strict";i.d(t,"a",function(){return s}),i.d(t,"b",function(){return d}),i.d(t,"c",function(){return p}),i.d(t,"d",function(){return h}),i.d(t,"e",function(){return c}),i.d(t,"f",function(){return u}),i.d(t,"g",function(){return m}),i.d(t,"h",function(){return g}),i.d(t,"i",function(){return y}),i.d(t,"j",function(){return f}),i.d(t,"k",function(){return b}),i.d(t,"l",function(){return v}),i.d(t,"m",function(){return S}),i.d(t,"n",function(){return _}),i.d(t,"o",function(){return x}),i.d(t,"p",function(){return O}),i.d(t,"q",function(){return M}),i.d(t,"r",function(){return L}),i.d(t,"s",function(){return C}),i.d(t,"t",function(){return w}),i.d(t,"u",function(){return P}),i.d(t,"v",function(){return T}),i.d(t,"w",function(){return I}),i.d(t,"x",function(){return N}),i.d(t,"y",function(){return k}),i.d(t,"z",function(){return F}),i.d(t,"A",function(){return E}),i.d(t,"B",function(){return A}),i.d(t,"C",function(){return z}),i.d(t,"D",function(){return B});var n=i(1),o=(i.n(n),i(5)),a=i(0),r=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"content",void 0),l([i.i(n.Property)("0px")],t.prototype,"x",void 0),l([i.i(n.Property)("0px")],t.prototype,"y",void 0),l([i.i(n.Property)("None")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)("None")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("-1")],t.prototype,"zIndex",void 0),t}(n.ChildProperty),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("Start")],t.prototype,"position",void 0),l([i.i(n.Property)("false")],t.prototype,"showArrow",void 0),l([i.i(n.Property)(2)],t.prototype,"size",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"offSet",void 0),t}(n.ChildProperty),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("12px")],t.prototype,"size",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)("Roboto, Noto, Sans-serif")],t.prototype,"fontFamily",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontWeight",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontStyle",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"opacity",void 0),t}(n.ChildProperty),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),l([i.i(n.Complex)(o.b.tooltipLabelFont,p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(null)],t.prototype,"format",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),t}(n.ChildProperty),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(10)],t.prototype,"left",void 0),l([i.i(n.Property)(10)],t.prototype,"right",void 0),l([i.i(n.Property)(10)],t.prototype,"top",void 0),l([i.i(n.Property)(10)],t.prototype,"bottom",void 0),t}(n.ChildProperty),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("#000000")],t.prototype,"color",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"allowClustering",void 0),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),l([i.i(n.Property)("#D2691E")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Rectangle")],t.prototype,"shape",void 0),l([i.i(n.Property)(12)],t.prototype,"width",void 0),l([i.i(n.Property)(12)],t.prototype,"height",void 0),l([i.i(n.Property)(new a.r(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Complex)({},p)],t.prototype,"labelStyle",void 0),l([i.i(n.Property)(!1)],t.prototype,"allowClusterExpand",void 0),l([i.i(n.Complex)({},g)],t.prototype,"connectorLineSettings",void 0),t}(n.ChildProperty),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n.ChildProperty),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"from",void 0),l([i.i(n.Property)(null)],t.prototype,"to",void 0),l([i.i(n.Property)(null)],t.prototype,"value",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"minOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"maxOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"label",void 0),l([i.i(n.Property)(!0)],t.prototype,"showLegend",void 0),t}(n.ChildProperty),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValue",void 0),t}(n.ChildProperty),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(!1)],t.prototype,"enableMultiSelect",void 0),l([i.i(n.Complex)({color:"transparent",width:0},h)],t.prototype,"border",void 0),t}(n.ChildProperty),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Complex)({color:"transparent",width:0},h)],t.prototype,"border",void 0),t}(n.ChildProperty),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"angle",void 0),l([i.i(n.Complex)({showArrow:!1,position:"Start",size:5,color:"black"},d)],t.prototype,"arrowSettings",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({},h)],t.prototype,"border",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"minRadius",void 0),l([i.i(n.Property)(20)],t.prototype,"maxRadius",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)("Circle")],t.prototype,"bubbleType",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Collection)([],b)],t.prototype,"colorMapping",void 0),l([i.i(n.Complex)({},u)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"text",void 0),l([i.i(n.Property)("")],t.prototype,"description",void 0),t}(n.ChildProperty),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),t}(L),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Complex)({},C)],t.prototype,"subtitleSettings",void 0),t}(L),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"enablePanning",void 0),l([i.i(n.Property)(!0)],t.prototype,"enableSelectionZooming",void 0),l([i.i(n.Property)("Horizontal")],t.prototype,"toolBarOrientation",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"highlightColor",void 0),l([i.i(n.Property)(null)],t.prototype,"selectionColor",void 0),l([i.i(n.Property)("Far")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("Near")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)(["ZoomIn","ZoomOut","Reset"])],t.prototype,"toolbars",void 0),l([i.i(n.Property)(!0)],t.prototype,"mouseWheelZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"doubleClickZoom",void 0),l([i.i(n.Property)(!0)],t.prototype,"pinchZooming",void 0),l([i.i(n.Property)(!1)],t.prototype,"zoomOnClick",void 0),l([i.i(n.Property)(1)],t.prototype,"zoomFactor",void 0),l([i.i(n.Property)(10)],t.prototype,"maxZoom",void 0),l([i.i(n.Property)(1)],t.prototype,"minZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"shouldZoomInitially",void 0),l([i.i(n.Property)(!0)],t.prototype,"resetToInitial",void 0),t}(n.ChildProperty),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"applyShapeSettings",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"",width:0},h)],t.prototype,"border",void 0),t}(n.ChildProperty),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"useMarkerShape",void 0),l([i.i(n.Property)(!1)],t.prototype,"toggleVisibility",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("transparent")],t.prototype,"background",void 0),l([i.i(n.Property)("Layers")],t.prototype,"type",void 0),l([i.i(n.Property)(!1)],t.prototype,"invertedPointer",void 0),l([i.i(n.Property)("After")],t.prototype,"labelPosition",void 0),l([i.i(n.Property)("None")],t.prototype,"labelDisplayMode",void 0),l([i.i(n.Property)("Circle")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"width",void 0),l([i.i(n.Property)("")],t.prototype,"height",void 0),l([i.i(n.Complex)({fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeWidth",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeHeight",void 0),l([i.i(n.Property)(10)],t.prototype,"shapePadding",void 0),l([i.i(n.Complex)({color:"#000000",width:0},h)],t.prototype,"border",void 0),l([i.i(n.Complex)({color:"#000000",width:0},h)],t.prototype,"shapeBorder",void 0),l([i.i(n.Complex)({},L)],t.prototype,"title",void 0),l([i.i(n.Complex)({size:o.b.legendTitleFont.size,color:o.b.legendTitleFont.color,fontStyle:o.b.legendTitleFont.fontStyle,fontWeight:o.b.legendTitleFont.fontWeight,fontFamily:null},p)],t.prototype,"titleStyle",void 0),l([i.i(n.Property)("Bottom")],t.prototype,"position",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Property)("None")],t.prototype,"orientation",void 0),l([i.i(n.Property)({x:0,y:0})],t.prototype,"location",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Default")],t.prototype,"mode",void 0),l([i.i(n.Property)(null)],t.prototype,"showLegendPath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)(!1)],t.prototype,"removeDuplicateLegend",void 0),l([i.i(n.Complex)({},T)],t.prototype,"toggleLegendSettings",void 0),t}(n.ChildProperty),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Complex)({width:0,color:"transparent"},h)],t.prototype,"border",void 0),l([i.i(n.Property)("black")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(5)],t.prototype,"rx",void 0),l([i.i(n.Property)(5)],t.prototype,"ry",void 0),l([i.i(n.Complex)({},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("")],t.prototype,"labelPath",void 0),l([i.i(n.Property)("None")],t.prototype,"smartLabelMode",void 0),l([i.i(n.Property)("None")],t.prototype,"intersectionAction",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),t}(n.ChildProperty),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)([])],t.prototype,"palette",void 0),l([i.i(n.Property)(5)],t.prototype,"circleRadius",void 0),l([i.i(n.Complex)({width:null,color:"#000000"},h)],t.prototype,"border",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderColorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderWidthValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Collection)([],b)],t.prototype,"colorMapping",void 0),l([i.i(n.Property)(!1)],t.prototype,"autofill",void 0),t}(n.ChildProperty),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),l([i.i(n.Property)(null)],t.prototype,"dashArray",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"height",void 0),l([i.i(n.Property)(10)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"imageUrlValuePath",void 0),l([i.i(n.Property)("Balloon")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"legendText",void 0),l([i.i(n.Property)(new a.r(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)(null)],t.prototype,"template",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},u)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),l([i.i(n.Property)(null)],t.prototype,"latitudeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"longitudeValuePath",void 0),l([i.i(n.Collection)([],v)],t.prototype,"initialMarkerSelection",void 0),t}(n.ChildProperty),E=function(e){function t(t,i,n,o){return e.call(this,t,i,n,o)||this}return r(t,e),t}(F),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isBaseLayer=!1,t}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapeData",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},k)],t.prototype,"shapeSettings",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)("Layer")],t.prototype,"type",void 0),l([i.i(n.Property)("Geographic")],t.prototype,"geometryType",void 0),l([i.i(n.Property)("Aerial")],t.prototype,"bingMapType",void 0),l([i.i(n.Property)("RoadMap")],t.prototype,"staticMapType",void 0),l([i.i(n.Property)("")],t.prototype,"key",void 0),l([i.i(n.Property)("Geometry")],t.prototype,"layerType",void 0),l([i.i(n.Property)("")],t.prototype,"urlTemplate",void 0),l([i.i(n.Property)(!0)],t.prototype,"visible",void 0),l([i.i(n.Property)("name")],t.prototype,"shapeDataPath",void 0),l([i.i(n.Property)("name")],t.prototype,"shapePropertyPath",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDuration",void 0),l([i.i(n.Collection)([],E)],t.prototype,"markerSettings",void 0),l([i.i(n.Complex)({},y)],t.prototype,"markerClusterSettings",void 0),l([i.i(n.Complex)({},N)],t.prototype,"dataLabelSettings",void 0),l([i.i(n.Collection)([],M)],t.prototype,"bubbleSettings",void 0),l([i.i(n.Collection)([],O)],t.prototype,"navigationLineSettings",void 0),l([i.i(n.Complex)({},u)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),l([i.i(n.Complex)({},T)],t.prototype,"toggleLegendSettings",void 0),l([i.i(n.Collection)([],S)],t.prototype,"initialShapeSelection",void 0),t}(n.ChildProperty),z=function(){function e(e,t,i,n,o,a,r){void 0===i&&(i=256),void 0===n&&(n=256),void 0===o&&(o=0),void 0===a&&(a=0),void 0===r&&(r=null),this.x=e,this.y=t,this.top=o,this.left=a,this.height=i,this.width=n,this.src=r}return e}(),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"background",void 0),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";function n(e){var t;switch(e.toLowerCase()){case"tailwind":t=["#0369A1","#14B8A6","#15803D","#334155","#5A61F6","#65A30D","#8B5CF6","#9333EA","#F59E0B","#F97316"];break;case"tailwinddark":t=["#10B981","#22D3EE","#2DD4BF","#4ADE80","#8B5CF6","#E879F9","#F472B6","#F87171","#F97316","#FCD34D"];break;case"bootstrap5":t=["#262E0B","#668E1F","#AF6E10","#862C0B","#1F2D50","#64680B","#311508","#4C4C81","#0C7DA0","#862C0B"];break;case"bootstrap5dark":t=["#5ECB9B","#A860F1","#EBA844","#557EF7","#E9599B","#BFC529","#3BC6CF","#7A68EC","#74B706","#EA6266"];break;case"fluent":t=["#614570","#4C6FB1","#CC6952","#3F579A","#4EA09B","#6E7A89","#D4515C","#E6AF5D","#639751","#9D4D69"];break;case"fluentdark":t=["#8AB113","#2A72D5","#43B786","#584EC6","#E85F9C","#6E7A89","#EA6266","#EBA844","#26BC7A","#BC4870"];break;default:t=["#B5E485","#7BC1E8","#DF819C","#EC9B79","#78D0D3","#D6D572","#9178E3","#A1E5B4","#87A4B4","#E4C16C"]}return t}function o(e){var t,i;switch(e.toLowerCase()){case"materialdark":i="#303030";break;case"fabricdark":i="#201F1F";break;case"bootstrapdark":i="#1A1A1A"}switch(e.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":t={backgroundColor:i,areaBackgroundColor:i,titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#DADADA",legendTextColor:"#DADADA",dataLabelFontColor:"#DADADA",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#363F4C",zoomFillColor:"#FFFFFF",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"};break;case"highcontrast":t={backgroundColor:"#000000",areaBackgroundColor:"#000000",titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#000000",tooltipFontColor:"#000000",tooltipFillColor:"#ffffff",zoomFillColor:"#FFFFFF",fontFamily:"Roboto, Noto, Sans-serif",labelFontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"};break;case"bootstrap4":t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#5B6269",fontFamily:"HelveticaNeue-Medium",titleFontSize:"16px",legendFontSize:"14px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"HelveticaNeue-Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"};break;case"tailwind":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#374151",subTitleFontColor:"#374151",legendTitleFontColor:"#374151",legendTextColor:"#6B7280",dataLabelFontColor:"#505967",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#111827",zoomFillColor:"#6b7280",fontFamily:"Inter",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#374151",shapeFill:"#E5E7EB"};break;case"tailwinddark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#D1D5DB",subTitleFontColor:"#D1D5DB",legendTitleFontColor:"#D1D5DB",legendTextColor:"#D1D5DB",dataLabelFontColor:"#D1D5DB",tooltipFontColor:"#1F2937",tooltipFillColor:"#F9FAFB",zoomFillColor:"#D1D5DB",fontFamily:"Inter",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#F3F4F6",shapeFill:"#374151"};break;case"bootstrap5":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#212529",zoomFillColor:"#6C757D",fontFamily:"Helvetica Neue",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#343A40",shapeFill:"#E9ECEF"};break;case"bootstrap5dark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",tooltipFontColor:"#212529",tooltipFillColor:"#E9ECEF",zoomFillColor:"#B5BABE",fontFamily:"Helvetica Neue",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#DEE2E6",shapeFill:"#495057"};break;case"fluent":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#201F1E",subTitleFontColor:"#201F1E",legendTitleFontColor:"#201F1E",legendTextColor:"#201F1E",dataLabelFontColor:"#201F1E",tooltipFontColor:"#323130",tooltipFillColor:"#FFFFFF",zoomFillColor:"#A19F9D",fontFamily:"Segoe UI",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#323130",shapeFill:"#F3F2F1"};break;case"fluentdark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#F3F2F1",subTitleFontColor:"#F3F2F1",legendTitleFontColor:"#F3F2F1",legendTextColor:"#F3F2F1",dataLabelFontColor:"#F3F2F1",tooltipFontColor:"#F3F2F1",tooltipFillColor:"#252423",zoomFillColor:"#484644",fontFamily:"Segoe UI",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#F3F2F1",shapeFill:"#252423"};break;default:t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#424242",titleFontSize:"14px",subTitleFontColor:"#424242",legendTitleFontColor:"#757575",legendTextColor:"#757575",dataLabelFontColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#737373",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"}}return t}i.d(t,"b",function(){return a}),t.a=n,t.c=o;var a;!function(e){e.mapsTitleFont={size:"14px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:null,fontStyle:"Regular",fontFamily:null},e.legendTitleFont={size:"12px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:null},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(a||(a={}));var r;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"}}(r||(r={}));var l;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"}}(l||(l={}));var s;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#000000",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(s||(s={}));var d;!function(e){e.mapsTitleFont={fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",size:"14px",fontStyle:"Medium",color:"#FFFFFF"},e.mapsSubTitleFont={size:"13px",color:"#FFFFFF",fontWeight:"Medium",fontFamily:"Roboto, Noto, Sans-serif",fontStyle:"Medium"},e.tooltipLabelFont={size:"12px",color:"#282727",fontWeight:"Regular",fontFamily:"Roboto",fontStyle:"Regular"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",color:"#DADADA",fontStyle:"Medium"}}(d||(d={}))},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);i.d(t,"Maps",function(){return n.a}),i.d(t,"load",function(){return n.b}),i.d(t,"loaded",function(){return n.c}),i.d(t,"click",function(){return n.d}),i.d(t,"onclick",function(){return n.e}),i.d(t,"rightClick",function(){return n.f}),i.d(t,"doubleClick",function(){return n.g}),i.d(t,"resize",function(){return n.h}),i.d(t,"tooltipRender",function(){return n.i}),i.d(t,"shapeSelected",function(){return n.j}),i.d(t,"shapeHighlight",function(){return n.k}),i.d(t,"mousemove",function(){return n.l}),i.d(t,"mouseup",function(){return n.m}),i.d(t,"mousedown",function(){return n.n}),i.d(t,"layerRendering",function(){return n.o}),i.d(t,"shapeRendering",function(){return n.p}),i.d(t,"markerRendering",function(){return n.q}),i.d(t,"markerClusterRendering",function(){return n.r}),i.d(t,"markerClick",function(){return n.s}),i.d(t,"markerClusterClick",function(){return n.t}),i.d(t,"markerMouseMove",function(){return n.u}),i.d(t,"markerClusterMouseMove",function(){return n.v}),i.d(t,"dataLabelRendering",function(){return n.w}),i.d(t,"bubbleRendering",function(){return n.x}),i.d(t,"bubbleClick",function(){return n.y}),i.d(t,"bubbleMouseMove",function(){return n.z}),i.d(t,"animationComplete",function(){return n.A}),i.d(t,"legendRendering",function(){return n.B}),i.d(t,"annotationRendering",function(){return n.C}),i.d(t,"itemSelection",function(){return n.D}),i.d(t,"itemHighlight",function(){return n.E}),i.d(t,"beforePrint",function(){return n.F}),i.d(t,"zoomIn",function(){return n.G}),i.d(t,"zoomOut",function(){return n.H}),i.d(t,"pan",function(){return n.I}),i.d(t,"Annotation",function(){return n.J}),i.d(t,"Arrow",function(){return n.K}),i.d(t,"Font",function(){return n.L}),i.d(t,"Border",function(){return n.M}),i.d(t,"CenterPosition",function(){return n.N}),i.d(t,"TooltipSettings",function(){return n.O}),i.d(t,"Margin",function(){return n.P}),i.d(t,"ConnectorLineSettings",function(){return n.Q}),i.d(t,"MarkerClusterSettings",function(){return n.R}),i.d(t,"MarkerClusterData",function(){return n.S}),i.d(t,"ColorMappingSettings",function(){return n.T}),i.d(t,"InitialMarkerSelectionSettings",function(){return n.U}),i.d(t,"InitialShapeSelectionSettings",function(){return n.V}),i.d(t,"SelectionSettings",function(){return n.W}),i.d(t,"HighlightSettings",function(){return n.X}),i.d(t,"NavigationLineSettings",function(){return n.Y}),i.d(t,"BubbleSettings",function(){return n.Z}),i.d(t,"CommonTitleSettings",function(){return n._0}),i.d(t,"SubTitleSettings",function(){return n._1}),i.d(t,"TitleSettings",function(){return n._2}),i.d(t,"ZoomSettings",function(){return n._3}),i.d(t,"ToggleLegendSettings",function(){return n._4}),i.d(t,"LegendSettings",function(){return n._5}),i.d(t,"DataLabelSettings",function(){return n._6}),i.d(t,"ShapeSettings",function(){return n._7}),i.d(t,"MarkerBase",function(){return n._8}),i.d(t,"MarkerSettings",function(){return n._9}),i.d(t,"LayerSettings",function(){return n._10}),i.d(t,"Tile",function(){return n._11}),i.d(t,"MapsAreaSettings",function(){return n._12}),i.d(t,"Size",function(){return n._13}),i.d(t,"stringToNumber",function(){return n._14}),i.d(t,"calculateSize",function(){return n._15}),i.d(t,"createSvg",function(){return n._16}),i.d(t,"getMousePosition",function(){return n._17}),i.d(t,"degreesToRadians",function(){return n._18}),i.d(t,"radiansToDegrees",function(){return n._19}),i.d(t,"convertGeoToPoint",function(){return n._20}),i.d(t,"convertTileLatLongToPoint",function(){return n._21}),i.d(t,"xToCoordinate",function(){return n._22}),i.d(t,"yToCoordinate",function(){return n._23}),i.d(t,"aitoff",function(){return n._24}),i.d(t,"roundTo",function(){return n._25}),i.d(t,"sinci",function(){return n._26}),i.d(t,"acos",function(){return n._27}),i.d(t,"calculateBound",function(){return n._28}),i.d(t,"triggerDownload",function(){return n._29}),i.d(t,"Point",function(){return n._30}),i.d(t,"MinMax",function(){return n._31}),i.d(t,"GeoLocation",function(){return n._32}),i.d(t,"measureText",function(){return n._33}),i.d(t,"TextOption",function(){return n._34}),i.d(t,"PathOption",function(){return n._35}),i.d(t,"ColorValue",function(){return n._36}),i.d(t,"RectOption",function(){return n._37}),i.d(t,"CircleOption",function(){return n._38}),i.d(t,"PolygonOption",function(){return n._39}),i.d(t,"PolylineOption",function(){return n._40}),i.d(t,"LineOption",function(){return n._41}),i.d(t,"Line",function(){return n._42}),i.d(t,"MapLocation",function(){return n._43}),i.d(t,"Rect",function(){return n._44}),i.d(t,"PatternOptions",function(){return n._45}),i.d(t,"renderTextElement",function(){return n._46}),i.d(t,"convertElement",function(){return n._47}),i.d(t,"formatValue",function(){return n._48}),i.d(t,"convertStringToValue",function(){return n._49}),i.d(t,"convertElementFromLabel",function(){return n._50}),i.d(t,"drawSymbols",function(){return n._51}),i.d(t,"getValueFromObject",function(){return n._52}),i.d(t,"markerColorChoose",function(){return n._53}),i.d(t,"markerShapeChoose",function(){return n._54}),i.d(t,"clusterTemplate",function(){return n._55}),i.d(t,"mergeSeparateCluster",function(){return n._56}),i.d(t,"clusterSeparate",function(){return n._57}),i.d(t,"marker",function(){return n._58}),i.d(t,"markerTemplate",function(){return n._59}),i.d(t,"maintainSelection",function(){return n._60}),i.d(t,"maintainStyleClass",function(){return n._61}),i.d(t,"appendShape",function(){return n._62}),i.d(t,"drawCircle",function(){return n._63}),i.d(t,"drawRectangle",function(){return n._64}),i.d(t,"drawPath",function(){return n._65}),i.d(t,"drawPolygon",function(){return n._66}),i.d(t,"drawPolyline",function(){return n._67}),i.d(t,"drawLine",function(){return n._68}),i.d(t,"calculateShapes",function(){return n._69}),i.d(t,"drawDiamond",function(){return n._70}),i.d(t,"drawTriangle",function(){return n._71}),i.d(t,"drawCross",function(){return n._72}),i.d(t,"drawHorizontalLine",function(){return n._73}),i.d(t,"drawVerticalLine",function(){return n._74}),i.d(t,"drawStar",function(){return n._75}),i.d(t,"drawBalloon",function(){return n._76}),i.d(t,"drawPattern",function(){return n._77}),i.d(t,"getFieldData",function(){return n._78}),i.d(t,"checkShapeDataFields",function(){return n._79}),i.d(t,"checkPropertyPath",function(){return n._80}),i.d(t,"filter",function(){return n._81}),i.d(t,"getRatioOfBubble",function(){return n._82}),i.d(t,"findMidPointOfPolygon",function(){return n._83}),i.d(t,"isCustomPath",function(){return n._84}),i.d(t,"textTrim",function(){return n._85}),i.d(t,"findPosition",function(){return n._86}),i.d(t,"removeElement",function(){return n._87}),i.d(t,"calculateCenterFromPixel",function(){return n._88}),i.d(t,"getTranslate",function(){return n._89}),i.d(t,"getZoomTranslate",function(){return n._90}),i.d(t,"fixInitialScaleForTile",function(){return n._91}),i.d(t,"getElementByID",function(){return n._92}),i.d(t,"getClientElement",function(){return n._93}),i.d(t,"Internalize",function(){return n._94}),i.d(t,"getTemplateFunction",function(){return n._95}),i.d(t,"getElement",function(){return n._96}),i.d(t,"getShapeData",function(){return n._97}),i.d(t,"triggerShapeEvent",function(){return n._98}),i.d(t,"getElementsByClassName",function(){return n._99}),i.d(t,"querySelector",function(){return n._100}),i.d(t,"getTargetElement",function(){return n._101}),i.d(t,"createStyle",function(){return n._102}),i.d(t,"customizeStyle",function(){return n._103}),i.d(t,"triggerItemSelectionEvent",function(){return n._104}),i.d(t,"removeClass",function(){return n._105}),i.d(t,"elementAnimate",function(){return n._106}),i.d(t,"timeout",function(){return n._107}),i.d(t,"showTooltip",function(){return n._108}),i.d(t,"wordWrap",function(){return n._109}),i.d(t,"createTooltip",function(){return n._110}),i.d(t,"drawSymbol",function(){return n._111}),i.d(t,"renderLegendShape",function(){return n._112}),i.d(t,"getElementOffset",function(){return n._113}),i.d(t,"changeBorderWidth",function(){return n._114}),i.d(t,"changeNavaigationLineWidth",function(){return n._115}),i.d(t,"targetTouches",function(){return n._116}),i.d(t,"calculateScale",function(){return n._117}),i.d(t,"getDistance",function(){return n._118}),i.d(t,"getTouches",function(){return n._119}),i.d(t,"getTouchCenter",function(){return n._120}),i.d(t,"sum",function(){return n._121}),i.d(t,"zoomAnimate",function(){return n._122}),i.d(t,"animate",function(){return n._123}),i.d(t,"MapAjax",function(){return n._124}),i.d(t,"smoothTranslate",function(){return n._125}),i.d(t,"compareZoomFactor",function(){return n._126}),i.d(t,"calculateZoomLevel",function(){return n._127}),i.d(t,"processResult",function(){return n._128}),i.d(t,"LayerPanel",function(){return n._129}),i.d(t,"Bubble",function(){return n._130}),i.d(t,"BingMap",function(){return n._131}),i.d(t,"Marker",function(){return n._132}),i.d(t,"ColorMapping",function(){return n._133}),i.d(t,"DataLabel",function(){return n._134}),i.d(t,"NavigationLine",function(){return n._135}),i.d(t,"Legend",function(){return n._136}),i.d(t,"Highlight",function(){return n._137}),i.d(t,"Selection",function(){return n._138}),i.d(t,"MapsTooltip",function(){return n._139}),i.d(t,"Zoom",function(){return n._140}),i.d(t,"Annotations",function(){return n._141}),i.d(t,"Print",function(){return n._142}),i.d(t,"ImageExport",function(){return n._143}),i.d(t,"PdfExport",function(){return n._144})},function(e,t,i){"use strict";i.d(t,"a",function(){return o});var n=i(1),o=(i.n(n),function(){function e(e){this.maps=e}return e.prototype.getBingMap=function(e,t,o,a,r,l){for(var s="",d=Math.min(this.maps.tileZoomLevel,parseInt(this.maxZoom,10)),p=d;p>0;p--){var h=0,c=1<<p-1;0!=(e.x&c)&&h++,0!=(e.y&c)&&(h+=2),s=s+""+h}if(i.i(n.isNullOrUndefined)(l))return"";var u=l[Math.min(parseInt(s.substr(s.length-1,1),10),l.length)];return r=r.replace("{quadkey}",s).replace("{subdomain}",u),r+="&mkt="+a+"&ur=IN&Key="+t},e.prototype.destroy=function(){this.maps=null,this.subDomains=[]},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e}return e.prototype.getShapeColorMapping=function(e,t,n){var r=e.colorValuePath?e.colorValuePath:e.valuePath,l=i.i(o.isNullOrUndefined)(r)?t[r]:r.indexOf(".")>-1?i.i(a.N)(t,r):t[r],s=Number(l),d=this.getColorByValue(e.colorMapping,s,l);return i.i(o.isNullOrUndefined)(d)?n:d},e.prototype.getColorByValue=function(e,t,n){if(isNaN(t)&&i.i(o.isNullOrUndefined)(n))return null;for(var a,r,l="",s=0,d=e;s<d.length;s++){var p=d[s];(!i.i(o.isNullOrUndefined)(p.from)&&!i.i(o.isNullOrUndefined)(p.to)&&t>=p.from&&t<=p.to||p.value===n)&&("[object Array]"===Object.prototype.toString.call(p.color)?i.i(o.isNullOrUndefined)(p.value)?(r=this.getColor(p,t),l=r):l=p.color[0]:l=p.color),(t>=p.from&&t<=p.to||p.value===n)&&!i.i(o.isNullOrUndefined)(p.minOpacity)&&!i.i(o.isNullOrUndefined)(p.maxOpacity)&&l&&(a=this.deSaturationColor(p,l,t,n)),(""===l||i.i(o.isNullOrUndefined)(l))&&i.i(o.isNullOrUndefined)(p.from)&&i.i(o.isNullOrUndefined)(p.to)&&i.i(o.isNullOrUndefined)(p.minOpacity)&&i.i(o.isNullOrUndefined)(p.maxOpacity)&&i.i(o.isNullOrUndefined)(p.value)&&(l="[object Array]"===Object.prototype.toString.call(p.color)?p.color[0]:p.color)}return{fill:l||(e.length?null:n),opacity:a}},e.prototype.deSaturationColor=function(e,t,i,n){var o=1;if(i>=e.from&&i<=e.to||e.value===n){o=(isNaN(i)?e.from/(e.to-e.from):(i-e.from)/(e.to-e.from))*(e.maxOpacity-e.minOpacity)+e.minOpacity}return o},e.prototype.rgbToHex=function(e,t,i){return"#"+this.componentToHex(e)+this.componentToHex(t)+this.componentToHex(i)},e.prototype.componentToHex=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t},e.prototype.getColor=function(e,t){var i,n="";return Number(t)===e.from?n=e.color[0]:Number(t)===e.to?n=e.color[e.color.length-1]:(i=this.getGradientColor(Number(t),e),n=this.rgbToHex(i.r,i.g,i.b)),n},e.prototype.getGradientColor=function(e,t){var i,n=t.from,o=t.to,a=0,r=o-n;a=(e-n)/r;var l,s;if(t.color.length<=2)l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);else{l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);for(var d=r/(t.color.length-1),p=void 0,h=void 0,c=t.color.length-1,u=[],m={},g=1;g<c;g++)h=g*d,p=n+h,m={b:p,color:t.color[g]},u.push(m);for(var y=0;y<u.length;y++)n<=e&&e<=u[y].b&&0===y?(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),s=i,a=e<u[y].b?1-Math.abs((e-u[y].b)/d):(e-u[y].b)/d):u[y].b<=e&&e<=o&&y===u.length-1&&(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),l=i,a=e<u[y].b?1-Math.abs((e-u[y].b)/d):(e-u[y].b)/d),y!==u.length-1&&y<u.length&&u[y].b<=e&&e<=u[y+1].b&&(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),l=i,s="#"===u[y+1].color.charAt(0)?u[y+1].color:this._colorNameToHex(u[y+1].color),a=Math.abs(e-u[y+1].b)/d)}return this.getPercentageColor(a,l,s)},e.prototype.getPercentageColor=function(e,t,i){var o=i.split("#")[1],a=t.split("#")[1],r=this.getPercentage(e,parseInt(a.substr(0,2),16),parseInt(o.substr(0,2),16)),l=this.getPercentage(e,parseInt(a.substr(2,2),16),parseInt(o.substr(2,2),16)),s=this.getPercentage(e,parseInt(a.substr(4,2),16),parseInt(o.substr(4,2),16));return new n._36(r,l,s)},e.prototype.getPercentage=function(e,t,i){var n=i-t;return Math.round(t+n*e)},e.prototype._colorNameToHex=function(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",orchid:"#da70d6",papayawhip:"#ffefd5",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"[object Array]"===Object.prototype.toString.call(e)?e:void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:e},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(1),o=(i.n(n),i(5)),a=i(0),r=i(4),l=i(8),s=i(9),d=i(2),p=function(){function e(e){this.isMapCoordinates=!0,this.horizontalPan=!1,this.horizontalPanXCount=0,this.mapObject=e,this.ajaxModule=new n.Ajax,this.ajaxResponse=[]}return e.prototype.measureLayerPanel=function(){var e=this,t=this.mapObject.layersCollection,o=this.mapObject.mapAreaRect,r=i.i(a._27)(this.mapObject.element.id+"_Secondary_Element");if(this.mapObject.isTileMap&&r){this.tileSvgObject=this.mapObject.renderer.createSvg({id:this.mapObject.element.id+"_Tile_SVG",width:o.width,height:o.height});var l=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_Tile_SVG_Parent"});l.style.cssText="position: absolute; height: "+o.height+"px; width: "+o.width+"px;",l.appendChild(this.tileSvgObject),r.appendChild(l)}if(this.layerGroup=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_Layer_Collections","clip-path":"url(#"+this.mapObject.element.id+"_MapArea_ClipRect)"}),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType){this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.y(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:(o.width-640)/2,y:0,width:640,height:o.height}))}else this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.y(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:this.mapObject.isTileMap?0:o.x,y:this.mapObject.isTileMap?0:o.y,width:o.width,height:o.height}));this.layerGroup.appendChild(this.clipRectElement),this.mapObject.baseMapBounds=null,this.mapObject.baseMapRectBounds=null,this.mapObject.baseSize=null,Array.prototype.forEach.call(t,function(t,i){e.currentLayer=t,e.processLayers(t,i)}),i.i(n.isNullOrUndefined)(this.mapObject.legendModule)||"Float"!==this.mapObject.legendSettings.position||(this.mapObject.isTileMap?this.layerGroup.appendChild(this.mapObject.legendModule.legendGroup):this.mapObject.svgObject.appendChild(this.mapObject.legendModule.legendGroup))},e.prototype.renderTileLayer=function(e,t,o,r){e.currentFactor=e.calculateFactor(t),e.mapObject.defaultState=!(1!==e.mapObject.zoomSettings.zoomFactor&&!i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel)&&1!==e.mapObject.tileZoomLevel),i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLatitude)&&i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLongitude)&&!e.mapObject.isZoomByPosition?(e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.previousCenterLatitude!==e.mapObject.centerPosition.latitude&&e.mapObject.previousCenterLongitude!==e.mapObject.centerPosition.longitude||e.mapObject.isZoomByPosition?(e.mapObject.centerPositionChanged=!0,e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.centerPositionChanged=!1;var l=new a.r(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude),s=l;this.mapObject.isTileMap&&e.mapObject.markerModule&&e.mapObject.zoomSettings.enable&&(e.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection),i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLatitude)||i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLongitude)||e.mapObject.isZoomByPosition||(s=new a.r(e.mapObject.markerCenterLongitude,e.mapObject.markerCenterLatitude))),l=!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.centerPosition.longitude&&e.mapObject.centerPosition.latitude&&!e.mapObject.zoomPersistence&&e.mapObject.defaultState?new a.r(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude):e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.markerZoomedState&&!e.mapObject.zoomPersistence&&!i.i(n.isNullOrUndefined)(e.mapObject.markerZoomCenterPoint)?new a.r(e.mapObject.markerZoomCenterPoint.longitude,e.mapObject.markerZoomCenterPoint.latitude):{x:null,y:null};var d=e.mapObject.zoomSettings.shouldZoomInitially&&!e.mapObject.isZoomByPosition?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?1:e.mapObject.markerZoomFactor:e.mapObject.zoomSettings.zoomFactor;if(d=e.mapObject.enablePersistence?i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue)?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?e.mapObject.zoomSettings.zoomFactor:e.mapObject.markerZoomFactor:e.mapObject.mapScaleValue:d,d=e.mapObject.zoomSettings.enable?d:e.mapObject.zoomSettings.zoomFactor,d=d>0?d:1,e.mapObject.defaultState=1===d,!e.mapObject.markerZoomedState&&e.mapObject.zoomSettings.shouldZoomInitially&&1===e.mapObject.zoomSettings.zoomFactor&&(e.mapObject.defaultState=!0),i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel))e.mapObject.tileZoomLevel=d,e.mapObject.previousZoomFactor=d;else if(this.mapObject.isReset&&1===e.mapObject.tileZoomLevel&&!e.mapObject.zoomSettings.shouldZoomInitially){var p=e.mapObject.tileZoomLevel;e.mapObject.tileZoomLevel=p}else 1!==e.mapObject.zoomSettings.zoomFactor||e.mapObject.zoomSettings.shouldZoomInitially?(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=e.mapObject.defaultState&&e.mapObject.zoomSettings.enable?e.mapObject.tileZoomLevel:e.mapObject.zoomSettings.shouldZoomInitially||e.mapObject.centerPositionChanged?d:e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor?e.mapObject.zoomSettings.zoomFactor:e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=1===d&&0===e.mapObject.zoomSettings.zoomFactor?d:e.mapObject.tileZoomLevel,!i.i(n.isNullOrUndefined)(e.mapObject.tileTranslatePoint)&&(e.mapObject.markerZoomFactor!==e.mapObject.mapScaleValue||i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)&&i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue))&&(e.mapObject.zoomSettings.zoomFactor<=1||e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor)&&(e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0)):e.mapObject.defaultState&&(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=d,e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0);if(d<=1&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.tileZoomLevel===e.mapObject.tileZoomScale&&this.mapObject.initialCheck&&i.i(a._26)(this.mapObject),i.i(n.isNullOrUndefined)(e.mapObject.centerLatOfGivenLocation)||i.i(n.isNullOrUndefined)(e.mapObject.centerLongOfGivenLocation)||!e.mapObject.zoomNotApplied||(s.y=e.mapObject.centerLatOfGivenLocation,s.x=e.mapObject.centerLongOfGivenLocation,e.mapObject.tileZoomLevel=e.mapObject.mapScaleValue=e.mapObject.scaleOfGivenLocation),e.mapObject.tileTranslatePoint=e.panTileMap(e.mapObject.availableSize.width,e.mapObject.availableSize.height,s),this.mapObject.zoomSettings.resetToInitial&&this.mapObject.initialCheck&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&this.mapObject.availableSize.height>512){this.mapObject.applyZoomReset=!0,this.mapObject.initialZoomLevel=Math.floor(this.mapObject.availableSize.height/512);var h="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?20:0,c=256*Math.pow(2,this.mapObject.initialZoomLevel);this.mapObject.initialTileTranslate.x=this.mapObject.availableSize.width/2-c/2,this.mapObject.initialTileTranslate.y=this.mapObject.availableSize.height/2-c/2+h}if(e.generateTiles(e.mapObject.tileZoomLevel,e.mapObject.tileTranslatePoint,null,r),i.i(n.isNullOrUndefined)(e.mapObject.previousZoomFactor)||e.mapObject.previousZoomFactor===e.mapObject.zoomSettings.zoomFactor||(e.mapObject.previousZoomFactor=e.mapObject.zoomSettings.zoomFactor),e.mapObject.navigationLineModule){var u=e.mapObject.navigationLineModule.renderNavigation(e.currentLayer,e.mapObject.tileZoomLevel,o);i.i(n.isNullOrUndefined)(u)||e.layerObject.appendChild(u)}e.mapObject.markerModule&&e.mapObject.markerModule.markerRender(this.mapObject,e.layerObject,o,e.mapObject.tileZoomLevel,null),e.translateLayerElements(e.layerObject,o),e.layerGroup.appendChild(e.layerObject)},e.prototype.processLayers=function(e,t){var o=this;if(this.layerObject=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+t}),!this.mapObject.enablePersistence){var r=this.mapObject.getModuleName()+this.mapObject.element.id;if(-1===navigator.userAgent.indexOf("Edge")){var s=void 0;try{s=window.localStorage}catch(e){s=null}!i.i(n.isNullOrUndefined)(s)&&window.localStorage.getItem(r)&&window.localStorage.removeItem(r)}}var p={cancel:!1,name:d.o,index:t,layer:e,maps:this.mapObject,visible:e.visible};this.mapObject.trigger("layerRendering",p,function(r){if(!p.cancel&&p.visible)if("OSM"===e.layerType&&(e.urlTemplate="https://a.tile.openstreetmap.org/level/tileX/tileY.png"),"Google"===e.layerType&&(e.urlTemplate="https://mt1.google.com/vt/lyrs=m@129&hl=en&x=tileX&y=tileY&z=level"),"Geometry"!==e.layerType||i.i(n.isNullOrUndefined)(e.shapeData)&&!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate){if("Bing"!==e.layerType||o.bing)if(!i.i(n.isNullOrUndefined)(e.urlTemplate)&&e.urlTemplate.indexOf("quadkey")>-1){var s=new l.a(o.mapObject);o.bingMapCalculation(e,t,o,s)}else o.renderTileLayer(o,e,t);else if(e.key&&e.key.length>1){var d=o,h=new l.a(o.mapObject),c="AerialWithLabel"===e.bingMapType?"AerialWithLabelsOnDemand":e.bingMapType,u="https://dev.virtualearth.net/REST/V1/Imagery/Metadata/"+c,m=new n.Ajax({url:u+"?output=json&include=ImageryProviders&urischeme=https&key="+e.key});m.onSuccess=function(i){var n=JSON.parse(i),a=n.resourceSets[0].resources[0],r=a.imageUrl,l=a.imageUrlSubdomains,s=a.zoomMax;null!==r&&void 0!==r&&r!==h.imageUrl&&(h.imageUrl=r),null!==l&&void 0!==l&&l!==h.subDomains&&(h.subDomains=l),null!==s&&void 0!==s&&s!==h.maxZoom&&(h.maxZoom=s),d.mapObject.bingMap=h,d.renderTileLayer(d,e,t,h),o.mapObject.arrangeTemplate(),o.mapObject.zoomModule&&o.mapObject.previousScale!==o.mapObject.scale&&o.mapObject.zoomModule.applyTransform(o.mapObject,!0)},m.send()}}else if(!(i.i(n.isNullOrUndefined)(e.shapeData)||i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&i.i(n.isNullOrUndefined)(e.shapeData.features))){var g=!i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&e.shapeData.geometries.length>0?e.shapeData.geometries:e.shapeData.features;e.layerData=[];var y=e.shapeData.bbox;!i.i(n.isNullOrUndefined)(y)&&e.isBaseLayer?o.mapObject.baseMapBounds=new a.t({min:y[0][1],max:y[1][1]},{min:y[0][0],max:y[1][0]}):i.i(n.isNullOrUndefined)(o.mapObject.baseMapBounds)&&!i.i(a._19)(g)&&o.calculateRectBounds(g),o.calculatePathCollection(t,g)}}),this.mapObject.isTileMap?this.tileSvgObject&&(this.tileSvgObject.appendChild(this.layerGroup),this.mapObject.baseMapBounds=null):this.mapObject.svgObject.appendChild(this.layerGroup)},e.prototype.bingMapCalculation=function(e,t,i,n){n.imageUrl=e.urlTemplate,n.subDomains=["t0","t1","t2","t3"],n.maxZoom="21",i.mapObject.bingMap=n,i.renderTileLayer(i,e,t,n),this.mapObject.arrangeTemplate(),this.mapObject.zoomModule&&this.mapObject.previousScale!==this.mapObject.scale&&this.mapObject.zoomModule.applyTransform(this.mapObject,!0)},e.prototype.bubbleCalculation=function(e,t){if(null!=e.dataSource&&null!=e)for(var o=e.dataSource,r=0;r<o.length;r++){var l=i.i(n.isNullOrUndefined)(e.valuePath)?parseFloat(e.dataSource[r][e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.N)(e.dataSource[r],e.valuePath)):parseFloat(e.dataSource[r][e.valuePath]);0!==r?l>t.max?t.max=l:l<t.min&&(t.min=l):t.max=t.min=l}},e.prototype.calculatePathCollection=function(e,t){var r=this;this.groupElements=[],i.i(a._19)(t)||(this.currentFactor=this.calculateFactor(this.currentLayer)),this.rectBounds=null;var l=this.currentLayer.shapeSettings;this.currentLayer.bubbleSettings;Array.prototype.forEach.call(t,function(e,t){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var o=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,a=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates,l=e.geometry,s=e.properties;r.generatePoints(o,a,l,s)}}),this.currentLayer.rectBounds=this.rectBounds,i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)&&this.currentLayer.isBaseLayer&&(this.mapObject.baseMapRectBounds=this.rectBounds);var s=l.palette.length>1?l.palette:i.i(o.a)(this.mapObject.theme),p=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_LayerIndex_"+e+"_Label_Template_Group",className:this.mapObject.element.id+"_template"});if(p.style.cssText="pointer-events: none; overflow: hidden; position: absolute;top:"+this.mapObject.mapAreaRect.y+"px;left:"+this.mapObject.mapAreaRect.x+"px;height:"+this.mapObject.mapAreaRect.height+"px;width:"+this.mapObject.mapAreaRect.width+"px;",0!==this.currentLayer.layerData.length)for(var h=this,c=0;c<this.currentLayer.layerData.length;c++)!function(o){var c,u,m,g=void 0,y={color:l.border.color,width:l.border.width,opacity:l.border.opacity},f=h.currentLayer.layerData[o],b="",v=l.autofill?s[o%s.length]:l.fill||h.mapObject.themeStyle.shapeFill;null===l.colorValuePath||i.i(n.isNullOrUndefined)(f.property)||(g=i.i(a._14)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer),null!==g&&0===l.colorMapping.length?v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.N)(h.currentLayer.dataSource[g],l.colorValuePath):h.currentLayer.dataSource[g][l.colorValuePath]:f.property[l.colorValuePath]&&0===h.currentLayer.dataSource.length&&0===l.colorMapping.length&&(v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.N)(f.property,l.colorValuePath):f.property[l.colorValuePath]),v=i.i(n.isNullOrUndefined)(v)?l.fill||h.mapObject.themeStyle.shapeFill:v);var S=h.mapObject.element.id+"_LayerIndex_"+e+"_shapeIndex_"+o+"_dataIndex_"+g,_=h.getShapeColorMapping(h.currentLayer,f.property,v);v="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.fill)?v:_.fill,(h.currentLayer.shapeSettings.borderColorValuePath||h.currentLayer.shapeSettings.borderWidthValuePath)&&null!==(g=i.i(a._14)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer))&&(h.currentLayer.dataSource[g][l.borderColorValuePath]&&(y.color=h.currentLayer.dataSource[g][l.borderColorValuePath]),h.currentLayer.dataSource[g][l.borderWidthValuePath]&&(y.width=h.currentLayer.dataSource[g][l.borderWidthValuePath]));var x="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.opacity)?l.opacity:_.opacity,O={cancel:!1,name:d.p,index:o,data:h.currentLayer.dataSource?h.currentLayer.dataSource[g]:null,maps:h.mapObject,shape:l,fill:v,border:{width:y.width,color:y.color,opacity:y.opacity}},M=function(d){var h=i.i(n.isNullOrUndefined)(f._isMultiPolygon)?i.i(n.isNullOrUndefined)(f.type)?f[0].type:f.type:"MultiPolygon";if(h="Polygon"===h||"MultiPolygon"===h?"Polygon":h,d.cancel?(d.fill=v,d.border.color=l.border.color,d.border.width=l.border.width,r.mapObject.layers[e].shapeSettings.border=l.border):(d.fill="#A6A6A6"===d.fill?d.shape.fill||r.mapObject.themeStyle.shapeFill:d.fill,d.border.color="#000000"===d.border.color?d.shape.border.color:d.border.color,d.border.width=0===d.border.width?d.shape.border.width:d.border.width,i.i(n.isNullOrUndefined)(l.borderColorValuePath)&&(r.mapObject.layers[e].shapeSettings.border.color=d.border.color),i.i(n.isNullOrUndefined)(l.borderWidthValuePath)&&(r.mapObject.layers[e].shapeSettings.border.width=d.border.width)),d.border.opacity=i.i(n.isNullOrUndefined)(d.border.opacity)?x:d.border.opacity,r.groupElements.length<1)m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group",transform:""}),r.groupElements.push(m);else for(var g=0;g<r.groupElements.length;g++){var y=r.groupElements[g];if(y.id.indexOf(h)>-1){m=y;break}if(g>=r.groupElements.length-1){m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group"}),r.groupElements.push(m);break}}var _;switch(h){case"Polygon":f._isMultiPolygon?b=r.generateMultiPolygonPath(f):(b+="M"+f[0].point.x+" "+f[0].point.y,f.map(function(e){b+=" L "+e.point.x+" "+e.point.y})),b+=" z ",b.length>3&&(c=new a.w(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"LineString":f.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "}),b.length>3&&(c=new a.w(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"MultiLineString":f.map(function(e){e.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "})}),b.length>3&&(c=new a.w(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"Point":var O=f.point,M="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);u=new a.z(S,d.fill,d.border,x,O.x,O.y,M,l.dashArray),_=r.mapObject.renderer.drawCircle(u);break;case"MultiPoint":f.map(function(t,i){var n=t.point,s="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);u=new a.z(S+"_multiLine_"+i,d.fill,d.border,x,n.x,n.y,s,l.dashArray),_=r.mapObject.renderer.drawCircle(u),r.pathAttributeCalculate(m,_,h,f,o)});break;case"Path":b=f.point,c=new a.w(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c)}i.i(n.isNullOrUndefined)(_)||"MultiPoint"===h||r.pathAttributeCalculate(m,_,h,f,o),o===r.currentLayer.layerData.length-1&&r.layerFeatures(e,s,t,p)};M.bind(h),h.mapObject.trigger("shapeRendering",O,M)}(c);else this.layerFeatures(e,s,t,p)},e.prototype.pathAttributeCalculate=function(e,t,o,r,l){for(var s,d="[object Array]"===Object.prototype.toString.call(this.currentLayer.shapePropertyPath)?this.currentLayer.shapePropertyPath:[this.currentLayer.shapePropertyPath],p=0;p<d.length;p++)if(!i.i(n.isNullOrUndefined)(r.property)){s=d[p];break}if(t.setAttribute("aria-label",i.i(n.isNullOrUndefined)(r.property)?"":r.property[s]),t.tabIndex=this.mapObject.tabIndex+l+3,t.setAttribute("role",""),"LineString"!==o&&"MultiLineString"!==o||(t.style.cssText="outline:none"),i.i(a.V)(this.mapObject.selectedElementId,this.mapObject.shapeSelectionClass,t,"ShapeselectionMapStyle"),this.mapObject.toggledShapeElementId)for(var p=0;p<this.mapObject.toggledShapeElementId.length;p++){var h=this.mapObject.legendSettings.toggleLegendSettings.applyShapeSettings?this.currentLayer.shapeSettings:this.mapObject.legendSettings.toggleLegendSettings;this.mapObject.toggledShapeElementId[p]===t.id&&(t.setAttribute("fill",h.fill),t.setAttribute("stroke",h.border.color),t.setAttribute("fill-opacity",h.opacity.toString()),t.setAttribute("stroke-opacity",(i.i(n.isNullOrUndefined)(h.border.opacity)?h.opacity:h.border.opacity).toString()),t.setAttribute("stroke-width",(i.i(n.isNullOrUndefined)(h.border.width)?0:h.border.width).toString()))}e.appendChild(t)},e.prototype.layerFeatures=function(e,t,i,n){var o,a=this;if(this.currentLayer.bubbleSettings.length&&this.mapObject.bubbleModule)for(var r,l=this.currentLayer.bubbleSettings.length,s=this,d=0;d<l;d++)!function(i){r=s.currentLayer.bubbleSettings[i],o=s.mapObject.renderer.createGroup({id:s.mapObject.element.id+"_LayerIndex_"+e+"_bubble_Group_"+i});var n={min:0,max:0};s.bubbleCalculation(r,n),r.dataSource.map(function(l,s){a.renderBubble(a.currentLayer,l,t[s%t.length],n,i,s,o,e,r)}),s.groupElements.push(o)}(d);this.mapObject.markerModule&&!this.mapObject.isTileMap&&this.mapObject.zoomSettings.enable&&this.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection);var p=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+e+"_dataLableIndex_Group"});if(p.style.pointerEvents="none",this.mapObject.dataLabelModule&&this.currentLayer.dataLabelSettings.visible){var h=[];i.map(function(t,i){a.renderLabel(a.currentLayer,e,t,p,i,n,h)}),this.groupElements.push(p)}this.mapObject.navigationLineModule&&this.groupElements.push(this.mapObject.navigationLineModule.renderNavigation(this.currentLayer,this.currentFactor,e)),this.groupElements.map(function(e){a.layerObject.appendChild(e)}),this.mapObject.markerModule&&this.mapObject.markerModule.markerRender(this.mapObject,this.layerObject,e,this.mapObject.isTileMap?Math.floor(this.currentFactor):this.currentFactor,null),this.translateLayerElements(this.layerObject,e),this.layerGroup.appendChild(this.layerObject)},e.prototype.renderLabel=function(e,t,i,n,o,a,r){this.mapObject.dataLabelModule.renderLabel(e,t,i,e.layerData,n,a,o,r)},e.prototype.generateMultiPolygonPath=function(e){for(var t,i="",n=0;n<e.length;n++)i+="M"+e[n][0].point.x+" "+e[n][0].point.y,t=e[n],t.map(function(e){i+=" L "+e.point.x+" "+e.point.y});return i},e.prototype.renderBubble=function(e,t,o,a,r,l,s,d,p){if(i.i(n.isNullOrUndefined)(this.mapObject.bubbleModule)||!p.visible)return null;o=p.fill?p.fill:o,this.mapObject.bubbleModule.id=this.mapObject.element.id+"_LayerIndex_"+d+"_BubbleIndex_"+r+"_dataIndex_"+l,this.mapObject.bubbleModule.renderBubble(p,t,o,a,r,l,d,e,s,this.mapObject.bubbleModule.id)},e.prototype.getShapeColorMapping=function(e,t,o){if(o=o||e.shapeSettings.fill,0===e.shapeSettings.colorMapping.length&&i.i(n.isNullOrUndefined)(e.dataSource))return o;var r=i.i(a._14)(e.dataSource,t,e.shapeDataPath,e.shapePropertyPath,e),l=new s.a(this.mapObject);return i.i(n.isNullOrUndefined)(e.dataSource[r])?o:l.getShapeColorMapping(e.shapeSettings,e.dataSource[r],o)},e.prototype.generatePoints=function(e,t,o,r){var l,s,d=this,p=[];switch(e.toLowerCase()){case"polygon":p=this.calculatePolygonBox(t[0],o,r),p.length>0&&(p.property=r,p.type=e,p._isMultiPolygon=!1,this.currentLayer.layerData.push(p));break;case"multipolygon":for(var h=[],c=0;c<t.length;c++)for(var u=0;u<t[c].length;u++)p=this.calculatePolygonBox(t[c][u],o,r),p.length>0&&h.push(p);h.property=r,h.type=e,h._isMultiPolygon=!0,this.currentLayer.layerData.push(h);break;case"linestring":var m=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width;t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,m),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"multilinestring":var g=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width,y=[];t.map(function(e){p=[],e.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,g),p.push({point:t,lat:l,lng:s})}),y.push(p)}),y.property=r,y.type=e,this.currentLayer.layerData.push(y);break;case"point":var f=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;l=t[1],s=t[0];var b=i.i(a.h)(l,s,this.currentFactor,this.currentLayer,this.mapObject);this.calculateBox(b,f),this.currentLayer.layerData.push({point:b,type:e,lat:l,lng:s,property:r});break;case"multipoint":var v=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;p=[],t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,v),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"path":this.currentLayer.layerData.push({point:o.d,type:e,property:r})}},e.prototype.calculateBox=function(e,t){i.i(n.isNullOrUndefined)(this.rectBounds)?this.rectBounds={min:{x:e.x-t,y:e.y-t},max:{x:e.x+t,y:e.y+t}}:(this.rectBounds.min.x=Math.min(this.rectBounds.min.x,e.x-t),this.rectBounds.min.y=Math.min(this.rectBounds.min.y,e.y-t),this.rectBounds.max.x=Math.max(this.rectBounds.max.x,e.x+t),this.rectBounds.max.y=Math.max(this.rectBounds.max.y,e.y+t))},e.prototype.calculateFactor=function(e){var t,n,o,r=1,l=this.mapObject.baseMapBounds,s=new a.a(this.mapObject.mapAreaRect.width,this.mapObject.mapAreaRect.height-5);if(l){var d=i.i(a.h)(l.latitude.min,l.longitude.min,null,e,this.mapObject),p=i.i(a.h)(l.latitude.max,l.longitude.max,null,e,this.mapObject);n=p.y-d.y,o=p.x-d.x,0!==n&&0!==o||(o=s.width/2,n=s.height)}else n=o=500;return t=n<s.height?parseFloat(Math.abs(100*Number(s.height/Number(n.toString()+"e+1"))).toString().split(".")[0])/10:s.height/n,r=o<s.width?parseFloat(Math.abs(100*Number(s.width/Number(o.toString()+"e+1"))).toString().split(".")[0])/10:s.width/o,Math.min(r,t)},e.prototype.translateLayerElements=function(e,t){var o;if(this.mapObject.translateType="layer",i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)){if(this.mapObject.isTileMap&&!i.i(n.isNullOrUndefined)(this.mapObject.scale))for(var r=0;r<e.childElementCount;r++)if(o=e.childNodes[r],!(o.id.indexOf("_Markers_Group")>-1||o.id.indexOf("_bubble_Group")>-1||o.id.indexOf("_dataLableIndex_Group")>-1||o.id.indexOf("_line_Group")>-1)){var l="scale( "+this.mapObject.scale+" ) translate( "+this.mapObject.translatePoint.x+" "+this.mapObject.translatePoint.y+" ) ";o.setAttribute("transform",l)}}else{var s=this.currentLayer.animationDuration,d=0!==s||i.i(n.isNullOrUndefined)(this.mapObject.zoomModule);this.mapObject.baseTranslatePoint=this.mapObject.zoomTranslatePoint;var p=void 0;p=this.mapObject.zoomSettings.zoomFactor>1&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)?i.i(a._25)(this.mapObject,this.currentLayer,d):i.i(a._24)(this.mapObject,this.currentLayer,d);var h=this.mapObject.previousScale=p.scale,c=this.mapObject.previousPoint=p.location;this.mapObject.baseTranslatePoint=this.mapObject.translatePoint=c,this.mapObject.baseScale=this.mapObject.scale=h;for(var u=0;u<e.childElementCount;u++)if(o=e.childNodes[u],!(o.id.indexOf("_Markers_Group")>-1||o.id.indexOf("_bubble_Group")>-1||o.id.indexOf("_dataLableIndex_Group")>-1)){var l="scale( "+h+" ) translate( "+c.x+" "+c.y+" ) ";o.setAttribute("transform",l),s>0&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)&&(p=this.mapObject.zoomSettings.zoomFactor>1?i.i(a._25)(this.mapObject,this.currentLayer):i.i(a._24)(this.mapObject,this.currentLayer),this.mapObject.scale=p.scale,this.mapObject.zoomTranslatePoint=this.mapObject.translatePoint=p.location)}}},e.prototype.calculateRectBounds=function(e){var t=this;Array.prototype.forEach.call(e,function(e,o){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var a=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,r=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates;switch(a.toLowerCase()){case"polygon":t.calculateRectBox(r[0]);break;case"multipolygon":r.map(function(e,i){t.calculateRectBox(e[0])});break;case"multilinestring":r.map(function(e,i){e.map(function(e,i){t.calculateRectBox(e,"multilinestring",0===i)})});break;case"linestring":r.map(function(e,i){t.calculateRectBox(e,"linestring",0===i)});break;case"point":t.calculateRectBox(r,"point");break;case"multipoint":r.map(function(e,i){t.calculateRectBox(e,"multipoint",0===i)})}}})},e.prototype.calculatePolygonBox=function(e,t,o){var r=this,l=[],s=this.mapObject.baseMapBounds;return e.map(function(e){var t=e[1],o=e[0];if(o>=s.longitude.min&&o<=s.longitude.max&&t>=s.latitude.min&&t<=s.latitude.max){var d=i.i(a.h)(t,o,r.currentFactor,r.currentLayer,r.mapObject);i.i(n.isNullOrUndefined)(r.rectBounds)?r.rectBounds={min:{x:d.x,y:d.y},max:{x:d.x,y:d.y}}:(r.rectBounds.min.x=Math.min(r.rectBounds.min.x,d.x),r.rectBounds.min.y=Math.min(r.rectBounds.min.y,d.y),r.rectBounds.max.x=Math.max(r.rectBounds.max.x,d.x),r.rectBounds.max.y=Math.max(r.rectBounds.max.y,d.y)),l.push({point:d,lat:t,lng:o})}}),l},e.prototype.calculateRectBox=function(e,t,o){var r=this;"linestring"!==t&&"multilinestring"!==t&&"point"!==t&&"multipoint"!==t?Array.prototype.forEach.call(e,function(e){i.i(n.isNullOrUndefined)(r.mapObject.baseMapBounds)?r.mapObject.baseMapBounds=new a.t({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(r.mapObject.baseMapBounds.latitude.min=Math.min(r.mapObject.baseMapBounds.latitude.min,e[1]),r.mapObject.baseMapBounds.latitude.max=Math.max(r.mapObject.baseMapBounds.latitude.max,e[1]),r.mapObject.baseMapBounds.longitude.min=Math.min(r.mapObject.baseMapBounds.longitude.min,e[0]),r.mapObject.baseMapBounds.longitude.max=Math.max(r.mapObject.baseMapBounds.longitude.max,e[0]))}):(o||"point"===t)&&i.i(n.isNullOrUndefined)(this.mapObject.baseMapBounds)?this.mapObject.baseMapBounds=new a.t({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(this.mapObject.baseMapBounds.latitude.min=Math.min(this.mapObject.baseMapBounds.latitude.min,e[1]),this.mapObject.baseMapBounds.latitude.max=Math.max(this.mapObject.baseMapBounds.latitude.max,e[1]),this.mapObject.baseMapBounds.longitude.min=Math.min(this.mapObject.baseMapBounds.longitude.min,e[0]),this.mapObject.baseMapBounds.longitude.max=Math.max(this.mapObject.baseMapBounds.longitude.max,e[0]))},e.prototype.generateTiles=function(e,t,o,a,s){var d=this.mapObject.locale,p=this.mapObject.availableSize;this.tiles=[];var h,c;h=c=Math.pow(2,e);var u=0,m=0;t.x+256*h<p.width&&(u=t.x>0?Math.ceil(t.x/256):0,m=t.x+256*h<p.width?Math.ceil((p.width-(t.x+256*h))/256):0),h+=u+m,"Pan"===o?(h=this.horizontalPanXCount>=h?this.horizontalPanXCount:h,this.horizontalPan=!1):(this.horizontalPanXCount=h,this.horizontalPan=!0);var g=this.mapObject.layers[this.mapObject.baseLayerIndex];this.urlTemplate=g.urlTemplate;var y=Math.min(c,(-t.y+p.height)/256+1),f=Math.min(h,(-t.x+p.width+256*m)/256+1),b=-(t.x+256*u+256)/256,v=-(t.y+256)/256;a=a||this.bing||this.mapObject.bingMap;for(var S=Math.round(b);S<Math.round(f);S++)for(var _=Math.round(v);_<Math.round(y);_++){var x=256*S+t.x,O=256*_+t.y;if(x>-256&&x<=p.width&&O>-256&&O<p.height&&_>=0){var M=S;S<0&&(M=M%c+c);var L=new r.C(M%c,_);if(L.left=Math.round(x),L.top=Math.round(O),"Bing"===g.layerType||a&&!i.i(n.isNullOrUndefined)(g.urlTemplate)&&""!==g.urlTemplate){var C=g.key;L.src=a.getBingMap(L,C,g.bingMapType,d,a.imageUrl,a.subDomains)}else L.src=this.urlTemplate.replace("level",e.toString()).replace("tileX",L.x.toString()).replace("tileY",L.y.toString());this.tiles.push(L)}}i.i(n.isNullOrUndefined)(o)||(o.indexOf("wheel")>1?(this.animateToZoomX=this.mapObject.availableSize.width/2-s.x-10,this.animateToZoomY=-s.y):(this.animateToZoomX=-10,this.animateToZoomY=10-(this.mapObject.availableSize.height/2+11.5)));for(var w=i.i(n.extend)([],this.tiles,[],!0),P=0,T=this.mapObject.layers;P<T.length;P++){var I=T[P];if("SubLayer"===I.type&&I.visible&&("Geometry"!==I.layerType&&"GoogleStaticMap"!==I.layerType||"Geometry"===I.layerType&&i.i(n.isNullOrUndefined)(I.shapeData)&&!i.i(n.isNullOrUndefined)(I.urlTemplate)&&""!==I.urlTemplate))for(var N=0,k=w;N<k.length;N++){var F=k[N],E=i.i(n.extend)({},F,{},!0);"Bing"===I.layerType?(a=new l.a(this.mapObject),E.src=a.getBingMap(E,I.key,I.bingMapType,d,a.imageUrl,a.subDomains)):E.src=I.urlTemplate.replace("level",e.toString()).replace("tileX",F.x.toString()).replace("tileY",F.y.toString()),this.tiles.push(E)}}(this.mapObject.previousScale!==this.mapObject.scale||this.mapObject.isReset||this.mapObject.isZoomByPosition||this.mapObject.zoomNotApplied)&&this.arrangeTiles(o,this.animateToZoomX,this.animateToZoomY)},e.prototype.arrangeTiles=function(e,t,o){var r,l=this,s=document.getElementById(this.mapObject.element.id+"_tile_parent"),d=document.getElementById(this.mapObject.element.id+"_tiles");i.i(n.isNullOrUndefined)(e)||"Pan"===e?r=0:(this.tileAnimation(e,t,o),r=this.mapObject.layersCollection[0].animationDuration),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?this.renderGoogleMap(this.mapObject.layers[0].key,this.mapObject.staticMapZoom):setTimeout(function(){s&&(s.style.zIndex="1"),d&&(d.style.zIndex="0");var t;!document.getElementById(l.mapObject.element.id+"_animated_tiles")&&s?(t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):"Pan"!==e&&d&&s?(d.appendChild(s.children[0]),l.mapObject.isAddLayer||i.i(n.isNullOrUndefined)(document.getElementById(l.mapObject.element.id+"_animated_tiles"))||(document.getElementById(l.mapObject.element.id+"_animated_tiles").id=l.mapObject.element.id+"_animated_tiles_old"),t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):t=s?s.children[0]:null;for(var o=0;o<l.tiles.length;o++){var r=l.tiles[o],p=null,h=l.mapObject.element.id;if("Pan"===e){var c=document.getElementById(h+"_tile_"+o),u=!1;i.i(n.isNullOrUndefined)(c)?(u=!0,c=i.i(n.createElement)("div",{id:h+"_tile_"+o}),p=i.i(n.createElement)("img")):(c.style.removeProperty("display"),p=c.children[0]),!u&&p&&p.src!==r.src&&(p.src=r.src),c.style.position="absolute",c.style.left=r.left+"px",c.style.top=r.top+"px",c.style.height=r.height+"px",c.style.width=r.width+"px",u&&(p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound")),c.appendChild(p),t.appendChild(c))}else{p=i.i(n.createElement)("img"),p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound"));var c=i.i(n.createElement)("div",{id:h+"_tile_"+o});c.style.position="absolute",c.style.left=r.left+"px",c.style.top=r.top+"px",c.style.height=r.height+"px",c.style.width=r.width+"px",c.appendChild(p),t&&t.appendChild(c)}o===l.tiles.length-1&&document.getElementById(l.mapObject.element.id+"_animated_tiles_old")&&i.i(a._22)(l.mapObject.element.id+"_animated_tiles_old")}if(!i.i(n.isNullOrUndefined)(l.mapObject.currentTiles))for(var m=l.tiles.length;m<t.childElementCount;m++){for(var g=!1,y=0;y<l.mapObject.currentTiles.childElementCount;y++)g||l.mapObject.currentTiles.children[y].id!==t.children[m].id||(g=!0);g?t.children[m].style.display="none":t.removeChild(t.children[m])}},r)},e.prototype.tileAnimation=function(e,t,o){var a=document.getElementById(this.mapObject.element.id+"_tile_parent"),r=document.getElementById(this.mapObject.element.id+"_animated_tiles"),l=document.getElementById(this.mapObject.element.id+"_tiles"),s="2";if(0===e.indexOf("ZoomOut")||"Reset"===e){for(l.style.zIndex="1",a.style.zIndex="0";l.childElementCount>=1;)l.removeChild(l.children[0]);t=0,o=document.getElementById(this.mapObject.element.id+"_tile_parent").getClientRects()[0].height/4,s=0===e.indexOf("ZoomOut")?"0.5":"0.2"}i.i(n.isNullOrUndefined)(r)||(r.style.transition=this.mapObject.layersCollection[0].animationDuration+"ms",r.style.transform="translate("+t+"px, "+o+"px) scale("+s+")")},e.prototype.renderGoogleMap=function(e,t){var o=this.mapObject;t=this.mapObject.tileZoomLevel;var r=256*Math.pow(2,t),l=o.mapAreaRect.width/2-r/2,s=o.mapAreaRect.height/2-r/2,d=new a.r(null,null),p=0,h=0,c=i.i(a.i)(d,t,{x:l,y:s},this.isMapCoordinates);o.zoomModule&&o.zoomSettings.enable&&(p=o.zoomModule.mouseDownLatLong.x-o.zoomModule.mouseMoveLatLong.x,h=o.zoomModule.mouseDownLatLong.y-o.zoomModule.mouseMoveLatLong.y);var u=o.pointToLatLong(c.x-p,c.y-h);o.centerPosition.latitude=u.latitude,o.centerPosition.longitude=u.longitude;var m,g;m=i.i(n.isNullOrUndefined)(parseInt(o.width,10))?parseInt(o.width,10)-22:Math.round(o.mapAreaRect.width),g=i.i(n.isNullOrUndefined)(parseInt(o.height,10))?parseInt(o.height,10)-22:Math.round(o.mapAreaRect.height);var y,f=m>640?(m-640)/2:0,b=g>640?(g-640)/2:0,v=o.layers[o.layers.length-1].staticMapType.toString().toLowerCase();y=o.centerPosition.latitude&&o.centerPosition.longitude?o.centerPosition.latitude.toString()+","+o.centerPosition.longitude.toString():"0,0";var S="https://maps.googleapis.com/maps/api/staticmap?size="+m+"x"+g+"&zoom="+t+"&center="+y+"&maptype="+v+"&key="+e;document.getElementById(this.mapObject.element.id+"_tile_parent").innerHTML='<div id="'+this.mapObject.element.id+'_StaticGoogleMap"style="position:absolute; left:'+f+"px; top:"+b+'px"><img src="'+S+'"alt="'+this.mapObject.getLocalizedLabel("ImageNotFound")+'"></div>'},e.prototype.panTileMap=function(e,t,o){this.mapObject.tileZoomLevel<=this.mapObject.tileZoomScale&&this.mapObject.initialCheck&&(this.mapObject.tileZoomLevel=this.mapObject.tileZoomScale);var r,l,s=this.mapObject.tileZoomLevel,d="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.layers.length-1].layerType?20:0,p=256*Math.pow(2,s);r=e/2-p/2,l=t/2-p/2;var h=i.i(a.i)(o,s,{x:r,y:l},this.isMapCoordinates);if(d=this.mapObject.zoomNotApplied?0:d,r-=h.x-e/2,l=l-(h.y-t/2)+d,this.mapObject.scale=Math.pow(2,s-1),(i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||0===this.mapObject.tileTranslatePoint.y&&0===this.mapObject.tileTranslatePoint.x||i.i(n.isNullOrUndefined)(this.mapObject.previousTileWidth)||i.i(n.isNullOrUndefined)(this.mapObject.previousTileHeight))&&(this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t),!i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)&&i.i(n.isNullOrUndefined)(o.x)&&(1===this.mapObject.zoomSettings.zoomFactor||this.mapObject.zoomSettings.zoomFactor!==s||!this.mapObject.defaultState)&&(e!==this.mapObject.previousTileWidth||t!==this.mapObject.previousTileHeight)){var c=r-(this.mapObject.previousTileWidth/2-p/2),u=l-(this.mapObject.previousTileHeight/2-p/2+d);this.mapObject.tileTranslatePoint.x=this.mapObject.tileTranslatePoint.x+c,this.mapObject.tileTranslatePoint.y=this.mapObject.tileTranslatePoint.y+u}return i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||this.mapObject.zoomNotApplied||(0===this.mapObject.tileTranslatePoint.x||this.mapObject.tileTranslatePoint.x===r||this.mapObject.centerPositionChanged||(r=this.mapObject.tileTranslatePoint.x),0===this.mapObject.tileTranslatePoint.y||this.mapObject.tileTranslatePoint.y===l||this.mapObject.centerPositionChanged||(l=this.mapObject.tileTranslatePoint.y)),this.mapObject.translatePoint=new a.r((r-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale,(l-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale),this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t,new a.r(r,l)},e.prototype.destroy=function(){this.mapObject=null,this.groupElements=[],this.layerObject=null,this.currentLayer=null,this.rectBounds=null,this.tiles=[],this.clipRectElement=null,this.tileSvgObject=null,this.ajaxModule=null,this.ajaxResponse=[],this.layerGroup=null,i.i(n.isNullOrUndefined)(this.bing)||this.bing.destroy(),this.bing=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.trackElements=[],this.sameMarkerData=[]}return e.prototype.markerRender=function(e,t,r,l,s){var d=this,p=0,h=0,c=0;e.translateType="marker";var u=e.layersCollection[r];this.markerSVGObject=e.renderer.createGroup({id:e.element.id+"_Markers_Group",class:"GroupElement"}),this.markerSVGObject.style.pointerEvents="auto";var m=i.i(o.createElement)("div",{id:e.element.id+"_LayerIndex_"+r+"_Markers_Template_Group",className:e.element.id+"_template"});m.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+e.mapAreaRect.y+"px;left:"+e.mapAreaRect.x+"px;height:"+e.mapAreaRect.height+"px;width:"+e.mapAreaRect.width+"px;",u.markerSettings.map(function(g,y){var f=g.dataSource;Array.prototype.forEach.call(f,function(b,v){e.markerNullCount=y>0&&0===v?0:e.markerNullCount;var S={cancel:!1,name:n.q,fill:g.fill,height:g.height,width:g.width,imageUrl:g.imageUrl,shape:g.shape,template:g.template,data:b,maps:e,marker:g,border:g.border,colorValuePath:g.colorValuePath,shapeValuePath:g.shapeValuePath,imageUrlValuePath:g.imageUrlValuePath};e.trigger("markerRendering",S,function(_){S=i.i(a.O)(S,b),S=i.i(a.P)(S,b);var x=i.i(o.isNullOrUndefined)(g.longitudeValuePath)?i.i(o.isNullOrUndefined)(b.longitude)?i.i(o.isNullOrUndefined)(b.Longitude)?null:parseFloat(b.Longitude):parseFloat(b.longitude):Number(i.i(a.N)(b,g.longitudeValuePath)),O=i.i(o.isNullOrUndefined)(g.latitudeValuePath)?i.i(o.isNullOrUndefined)(b.latitude)?i.i(o.isNullOrUndefined)(b.Latitude)?null:parseFloat(b.Latitude):parseFloat(b.latitude):Number(i.i(a.N)(b,g.latitudeValuePath)),M=g.offset;if(!S.cancel&&g.visible&&!i.i(o.isNullOrUndefined)(x)&&!i.i(o.isNullOrUndefined)(O)){var L=e.element.id+"_LayerIndex_"+r+"_MarkerIndex_"+y+"_dataIndex_"+v,C=e.isTileMap?i.i(n._21)(new n._43(x,O),l,e.tileTranslatePoint,!0):i.i(a.h)(O,x,l,u,e),w=0!==u.animationDuration||i.i(o.isNullOrUndefined)(e.zoomModule),P=e.isTileMap?"SubLayer"===u.type&&i.i(o.isNullOrUndefined)(e.zoomModule)?C=i.i(n._21)(new n._43(x,O),e.tileZoomLevel,e.tileTranslatePoint,!0):new Object:!i.i(o.isNullOrUndefined)(e.zoomModule)&&e.zoomSettings.zoomFactor>1?i.i(a._25)(e,u,w):i.i(a._24)(e,u,w),T="AddMarker"===s?e.scale:P.scale,I="AddMarker"===s?e.translatePoint:P.location;!S.template||isNaN(C.x)||isNaN(C.y)?S.template||isNaN(C.x)||isNaN(C.y)||(p++,i.i(a.T)(S,g,f,v,C,I,L,M,T,e,d.markerSVGObject)):(c++,i.i(a.U)(S,void 0,L,b,y,m,C,I,T,M,e),e.renderReactTemplates())}h+=isNaN(O)||isNaN(x)?1:0,c+=S.cancel?1:0,p+=S.cancel?1:0,e.markerNullCount=i.i(o.isNullOrUndefined)(x)||i.i(o.isNullOrUndefined)(O)?e.markerNullCount+1:e.markerNullCount;var N=f.length-e.markerNullCount;d.markerSVGObject.childElementCount===N-c-h&&"Template"!==s&&(t.appendChild(d.markerSVGObject),u.markerClusterSettings.allowClustering&&(e.svgObject.appendChild(d.markerSVGObject),e.element.appendChild(e.svgObject),("OSM"===u.layerType||-1!==u.urlTemplate.indexOf("openstreetmap")&&i.i(o.isNullOrUndefined)(u.shapeData))&&e.zoomSettings.enable?t.appendChild(d.markerSVGObject):i.i(a.Q)(u,d.markerSVGObject,e,r,d.markerSVGObject,t,!0,!1),e.renderReactTemplates())),m.childElementCount===N-p-h&&i.i(a._27)(e.element.id+"_Secondary_Element")&&(i.i(a._27)(e.element.id+"_Secondary_Element").appendChild(m),e.checkInitialRender&&u.markerClusterSettings.allowClustering&&(i.i(a.Q)(u,m,e,r,d.markerSVGObject,t,!1,!1),e.renderReactTemplates()))})})})},e.prototype.calculateIndividualLayerMarkerZoomLevel=function(e,t,n){var o,r,l=Math.abs(this.maps.baseMapBounds.latitude.max-this.maps.baseMapBounds.latitude.min),s=Math.abs(this.maps.baseMapBounds.longitude.max-this.maps.baseMapBounds.longitude.min);o=Math.floor(Math.log(t/l)),o=o>n?n:o,r=Math.floor(Math.log(e/s)),r=r>n?n:r;var d=Math.min(o,r),p=Math.min(d,n-1);return this.maps.isTileMap||i.i(a._61)(p,this.maps),p},e.prototype.calculateZoomCenterPositionAndFactor=function(e){if(!i.i(o.isNullOrUndefined)(this.maps))if(this.maps.zoomSettings.shouldZoomInitially&&this.maps.markerModule){var t,n,r,l,s=void 0,d=void 0,p=void 0,h=this.maps.zoomSettings.maxZoom,c=this.maps.mapAreaRect.width,u=this.maps.mapAreaRect.height;if(this.maps.markerZoomedState=this.maps.markerZoomedState?this.maps.markerZoomedState:i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?!this.maps.markerZoomedState:this.maps.markerZoomFactor>1?this.maps.markerZoomedState:!this.maps.markerZoomedState,this.maps.defaultState=this.maps.markerZoomedState?!this.maps.markerZoomedState:this.maps.defaultState,Array.prototype.forEach.call(e,function(e){0!==e.markerSettings.length&&Array.prototype.forEach.call(e.markerSettings,function(e){var a=e.dataSource;Array.prototype.forEach.call(a,function(e,a){var s=i.i(o.isNullOrUndefined)(e.latitude)?i.i(o.isNullOrUndefined)(e.Latitude)?null:parseFloat(e.Latitude):parseFloat(e.latitude),d=i.i(o.isNullOrUndefined)(e.longitude)?i.i(o.isNullOrUndefined)(e.Longitude)?null:parseFloat(e.Longitude):parseFloat(e.longitude);t=i.i(o.isNullOrUndefined)(t)&&0===a?d:t,n=i.i(o.isNullOrUndefined)(n)&&0===a?s:n,r=i.i(o.isNullOrUndefined)(r)&&0===a?s:r,l=i.i(o.isNullOrUndefined)(l)&&0===a?d:l,t>d&&(t=d),r>s&&(r=s),l<d&&(l=d),n<s&&(n=s)})})}),!(i.i(o.isNullOrUndefined)(r)||i.i(o.isNullOrUndefined)(t)||i.i(o.isNullOrUndefined)(l)||i.i(o.isNullOrUndefined)(n))){d=(r+n)/2,p=(t+l)/2,this.maps.markerCenterLatitude=d,this.maps.markerCenterLongitude=p,(i.i(o.isNullOrUndefined)(this.maps.markerZoomCenterPoint)||this.maps.markerZoomedState)&&(this.maps.markerZoomCenterPoint={latitude:d,longitude:p});var m=void 0;this.maps.isTileMap||0===this.maps.baseMapRectBounds.min.x?(s=i.i(a._62)(r,n,t,l,c,u,this.maps),this.maps.isTileMap?m=i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?s:i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue>1&&1!==this.maps.markerZoomFactor?this.maps.mapScaleValue:s:(m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:1!==Math.floor(this.maps.scale)&&this.maps.mapScaleValue!==s&&i.i(o.isNullOrUndefined)(this.maps.shouldZoomCurrentFactor)?this.maps.mapScaleValue:s)!==this.maps.mapScaleValue||1!==this.maps.markerZoomFactor&&1!==this.maps.mapScaleValue||this.maps.enablePersistence||(m=s)):(s=this.calculateIndividualLayerMarkerZoomLevel(c,u,h),m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue!==s?this.maps.mapScaleValue:s),this.maps.markerZoomFactor=m}}else this.maps.markerZoomedState=!1,this.maps.markerZoomFactor>1&&(this.maps.markerCenterLatitude=null,this.maps.markerCenterLongitude=null,this.maps.markerZoomFactor=1,this.maps.enablePersistence||(this.maps.mapScaleValue=1)),this.maps.isTileMap&&!this.maps.enablePersistence&&this.maps.mapScaleValue<=1&&(this.maps.tileZoomLevel=0===this.maps.mapScaleValue?this.maps.isZoomByPosition?this.maps.tileZoomLevel:1:this.maps.mapScaleValue,1===this.maps.mapScaleValue&&1===this.maps.markerZoomFactor&&(this.maps.tileTranslatePoint.x=0,this.maps.tileTranslatePoint.y=0))},e.prototype.markerClick=function(e){var t=e.target.id;if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var a=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.s,data:a.data,maps:this.maps,marker:a.marker,target:t,x:e.clientX,y:e.clientY,latitude:a.data.latitude||a.data.Latitude,longitude:a.data.longitude||a.data.Longitude,value:a.data.name};this.maps.trigger(n.s,r)}}},e.prototype.markerClusterClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var r=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(r)){r.clusterCollection.length>0&&this.maps.markerClusterExpand&&(i.i(a._31)(this.maps.element.id+"_mapsTooltip")&&this.maps.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._22)(this.maps.element.id+"_mapsTooltip"),this.sameMarkerData.length>0&&!this.maps.markerClusterExpandCheck?(this.maps.markerClusterExpandCheck=!0,i.i(a.R)(this.sameMarkerData,this.maps,this.markerSVGObject)):(this.sameMarkerData=r.clusterCollection,this.maps.markerClusterExpandCheck=!1,i.i(a.S)(this.sameMarkerData,this.maps,this.markerSVGObject,!0)));var l={cancel:!1,name:n.t,data:r,maps:this.maps,target:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,markerClusterCollection:r.markCollection};this.maps.trigger(n.t,l)}}},e.prototype.getMarker=function(e){var t,i,n=e.split("_LayerIndex_"),o=parseInt(n[1].split("_")[0],10),a=this.maps.layers[o],r=[],l=[];if(this.maps.markerClusterExpand=a.markerClusterSettings.allowClusterExpand,e.indexOf("_MarkerIndex_")>-1){var s=parseInt(n[1].split("_MarkerIndex_")[1].split("_")[0],10),d=parseInt(n[1].split("_dataIndex_")[1].split("_")[0],10);if(i=a.markerSettings[s],!isNaN(s)){t=i.dataSource[d];var p=[];if(!i.template&&e.indexOf("_cluster_")>-1&&this.maps.layers[o].markerClusterSettings.allowClusterExpand&&Array.prototype.forEach.call(i.dataSource,function(e,i){e.latitude===t.latitude&&e.longitude===t.longitude&&p.push({data:t,index:i})}),e.indexOf("_cluster_")>-1){var h=!1,c=document.getElementById(e.indexOf("_datalabel_")>-1?"Balloon"===a.markerClusterSettings.shape?e.split("_datalabel_")[0]+"_Group":e.split("_datalabel_")[0]:"Balloon"===a.markerClusterSettings.shape?e+"_Group":e),u="Balloon"===a.markerClusterSettings.shape?c.children[0].innerHTML.split(",").map(Number):c.innerHTML.split(",").map(Number);p=[];for(var m=0,g=u;m<g.length;m++){var y=g[m];p.push({data:i.dataSource[y],index:y}),r.push(i.dataSource[y])}h=!1,l.push({data:p,layerIndex:o,markerIndex:s,dataIndex:d,targetClusterIndex:+(e.split("_cluster_")[1].indexOf("_datalabel_")>-1?e.split("_cluster_")[1].split("_datalabel_")[0]:e.split("_cluster_")[1]),isClusterSame:h})}return{marker:i,data:t,clusterCollection:l,markCollection:r}}}return null},e.prototype.markerMove=function(e){var t=e.target.id;if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var a=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.u,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.u,r)}}},e.prototype.markerClusterMouseMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var a=this.getMarker(t);if(this.maps.markerClusterExpand&&(e.target.style.cursor="pointer"),!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.v,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.v,r)}}},e.prototype.getModuleName=function(){return"Marker"},e.prototype.destroy=function(){this.maps=null,this.trackElements=[],this.markerSVGObject=null,this.sameMarkerData=[]},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.map=e}return e.prototype.renderAnnotationElements=function(){var e=this,t=this.map.element.id+"_Secondary_Element",n=i.i(o.createElement)("div",{id:this.map.element.id+"_Annotations_Group"});n.style.position="absolute",n.style.top="0px",n.style.left="0px",this.map.annotations.map(function(t,i){null!==t.content&&e.createAnnotationTemplate(n,t,i)}),n.childElementCount>0&&!i.i(o.isNullOrUndefined)(i.i(a._27)(t))&&i.i(a._27)(t).appendChild(n),this.map.renderReactTemplates()},e.prototype.createAnnotationTemplate=function(e,t,r){var l,s,d,p,h=this,c=this.map,u=c.availableSize,m=(c.element.id,i.i(o.createElement)("div",{id:c.element.id+"_Annotation_"+r}));m.style.cssText="position: absolute; z-index:"+t.zIndex+";";var g={cancel:!1,name:n.C,content:t.content,annotation:t};this.map.trigger(n.C,g,function(e){if(!g.cancel)if((d=i.i(a._30)(g.content,h.map))&&d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r).length){p=Array.prototype.slice.call(d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r));for(var t=p.length,n=0;n<t;n++)m.appendChild(p[n])}else m.appendChild(i.i(o.createElement)("div",{innerHTML:g.content}))});var y=i.i(a._48)(m.cloneNode(!0),c.element),f=c.element.getBoundingClientRect(),b=c.svgObject.getBoundingClientRect();l=Math.abs(b.left-f.left),s=Math.abs(b.top-f.top);var v=t.x.indexOf("%")>-1?u.width/100*parseFloat(t.x):parseFloat(t.x),S=t.y.indexOf("%")>-1?u.height/100*parseFloat(t.y):parseFloat(t.y);switch(l="None"===t.horizontalAlignment?l+v:l,s="None"===t.verticalAlignment?s+S:s,t.verticalAlignment){case"Near":s+=S;break;case"Center":s=s+S+(b.height/2-y.height/2);break;case"Far":s=s+b.height+S-y.height}switch(t.horizontalAlignment){case"Near":l+=v;break;case"Center":l=l+v+(b.width/2-y.width/2);break;case"Far":l=l+b.width+v-y.width}m.style.left=l+"px",m.style.top=s+"px",e.appendChild(m)},e.prototype.getModuleName=function(){return"Annotations"},e.prototype.destroy=function(){this.map=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.id="",this.maps=e,this.bubbleCollection=[]}return e.prototype.renderBubble=function(e,t,r,l,s,d,p,h,c,u){var m,g,y=this,f=h.layerData,b=e.colorValuePath,v=i.i(o.isNullOrUndefined)(b)?t[b]:b.indexOf(".")>-1?i.i(a.N)(t,e.colorValuePath):t[b],S=i.i(o.isNullOrUndefined)(b)?Number(t[b]):b.indexOf(".")>-1?Number(i.i(a.N)(t,e.colorValuePath)):Number(t[b]),_=i.i(o.isNullOrUndefined)(e.valuePath)?Number(t[e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.N)(t,e.valuePath)):Number(t[e.valuePath]);if(isNaN(_)&&isNaN(S)&&i.i(o.isNullOrUndefined)(v))return null;var x=i.i(a._17)(e.minRadius,e.maxRadius,_,l.min,l.max),O=new n._133(this.maps),M=O.getColorByValue(e.colorMapping,S,v);g="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.fill)?r:M.fill,m="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.opacity)?e.opacity:M.opacity;var L=[[]];this.maps.translateType="bubble";for(var C=0,w=0,P=0,T=0,I=f.length;T<I;T++){var N=f[T];N=N.property;var k=i.i(a._15)(t[h.shapeDataPath],h.shapePropertyPath,N);if((!i.i(o.isNullOrUndefined)(t[h.shapeDataPath])&&isNaN(t[h.shapeDataPath])?t[h.shapeDataPath].toLowerCase():t[h.shapeDataPath])===(!i.i(o.isNullOrUndefined)(N[k])&&isNaN(N[k])?N[k].toLowerCase():N[k])&&"LineString"!==f[T].type&&"MultiLineString"!==f[T].type&&"Point"!==f[T].type&&"MultiPoint"!==f[T].type)if(f[T]._isMultiPolygon)for(var F=f[T],E=0;E<F.length;E++)L.push(this.getPoints(F[E],[])),P=L[L.length-1].length,w<P&&(w=P,C=L.length-1);else L.push(this.getPoints(f[T],[])),P=L[L.length-1].length,w<P&&(w=P,C=L.length-1)}var A,z,B=this.maps.projectionType,j={color:e.border.color,opacity:e.border.opacity,width:e.border.width},U=i.i(a._18)(L[C],B,h.geometryType);if(e.visible){if(i.i(o.isNullOrUndefined)(U)){var R=L.length-1;if(!L[R].x||!L[R].y)return;z={cancel:!1,name:n.x,border:j,cx:L[R].x,cy:L[R].y,data:t,fill:g,maps:this.maps,radius:x}}else A="Mercator"===this.maps.projectionType?U.y:-U.y,z={cancel:!1,name:n.x,border:j,cx:U.x,cy:A,data:t,fill:g,maps:this.maps,radius:x};this.maps.trigger("bubbleRendering",z,function(t){if(!z.cancel){var n;if(z.border.opacity=i.i(o.isNullOrUndefined)(z.border.opacity)?m:z.border.opacity,"Circle"===e.bubbleType){var r=new a.z(u,z.fill,z.border,m,0,0,z.radius,null);n=i.i(a.Y)(y.maps,r,c)}else{var l="Mercator"===y.maps.projectionType?z.cy-x:z.cy+x,g=new a.y(u,z.fill,z.border,m,new a.F(0,0,2*x,2*x),2,2);z.cx-=x,z.cy=l,n=i.i(a.Z)(y.maps,g,c)}i.i(a.V)(y.maps.selectedBubbleElementId,y.maps.bubbleSelectionClass,n,"BubbleselectionMapStyle"),y.bubbleCollection.push({LayerIndex:p,BubbleIndex:s,DataIndex:d,element:n,center:{x:z.cx,y:z.cy}});var f,b=0!==h.animationDuration||i.i(o.isNullOrUndefined)(y.maps.zoomModule);f=y.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(y.maps.zoomModule)&&!y.maps.isTileMap?i.i(a._25)(y.maps,h,b):i.i(a._24)(y.maps,h,b);var v=e.dataSource,S=f.scale,_=f.location,O=new a.E(y.maps.isTileMap?z.cx:(z.cx+_.x)*S,y.maps.isTileMap?z.cy:(z.cy+_.y)*S);n.setAttribute("transform","translate( "+O.x+" "+O.y+" )");var M=v.length-1===d?"bubble":null;"Square"===e.bubbleType?(O.x+=x,O.y+=x*("Mercator"===y.maps.projectionType?1:-1)):x=0,e.animationDuration>0&&i.i(a._41)(n,e.animationDelay,e.animationDuration,O,y.maps,M,x)}})}},e.prototype.getPoints=function(e,t){return i.i(o.isNullOrUndefined)(e.map)?t=e.point:e.map(function(e){t.push(new a.r(e.point.x,e.point.y))}),t},e.prototype.bubbleClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.y,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.y,r)}}},e.prototype.getbubble=function(e){var t=e.split("_LayerIndex_"),i=parseInt(t[1].split("_")[0],10),n=this.maps.layers[i];if(e.indexOf("_BubbleIndex_")>-1){var o=parseInt(t[1].split("_BubbleIndex_")[1],10),a=parseInt(t[1].split("_BubbleIndex_")[1].split("_dataIndex_")[1],10);if(!isNaN(o))return n.bubbleSettings[o].dataSource[a]}return null},e.prototype.bubbleMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.z,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.z,r)}}},e.prototype.getModuleName=function(){return"Bubble"},e.prototype.destroy=function(){this.bubbleCollection=[]},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(0),o=i(1),a=(i.n(o),i(3)),r=function(){function e(e){this.value={rightWidth:0,leftWidth:0,heightTop:0,heightBottom:0},this.maps=e,this.dataLabelCollections=[]}return e.prototype.getDataLabel=function(e,t,n,a){for(var r,l,s=0;s<e.length;s++){var d=e[s],p=!i.i(o.isNullOrUndefined)(d[a])&&isNaN(d[a])&&"string"==typeof d[a]?d[a].toLowerCase():d[a];if(n=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toString(),l=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toLowerCase(),p===l){r=d;break}}return r},e.prototype.renderLabel=function(e,t,r,l,s,d,p,h){var c,u,m,g,y,f,b,v,S=this,_=e.dataLabelSettings,x=e.dataLabelSettings.textStyle,O=e.dataLabelSettings,M=e.dataLabelSettings.labelPath,L=[[]],C=0,w=0,P=r,T="",I=0,N=!1,k=r.properties,F=this.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+p+"_LabelIndex_"+p,E=new n.r(0,0),A=l[p];x.fontFamily="material"!==this.maps.theme.toLowerCase()?this.maps.themeStyle.labelFontFamily:x.fontFamily,r=A.property;var z,B,j="[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)?e.shapePropertyPath:[e.shapePropertyPath],U=0!==e.animationDuration||i.i(o.isNullOrUndefined)(this.maps.zoomModule),R=this.maps.isTileMap?new Object:this.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(this.maps.zoomModule)?i.i(n._25)(this.maps,e,U):i.i(n._24)(this.maps,e,U),D=this.maps.isTileMap?this.maps.scale:R.scale,Z=this.maps.isTileMap?this.maps.translatePoint:R.location,H=this.maps.zoomTranslatePoint,V=i.i(o.isNullOrUndefined)(this.maps.scale)?1:Math.floor(this.maps.scale),G=this.maps.zoomSettings.enable?!i.i(o.isNullOrUndefined)(this.maps.zoomShapeCollection)&&this.maps.zoomShapeCollection.length>0&&!this.maps.isAddLayer:this.maps.zoomSettings.enable;this.maps.translateType="labels";for(var W=0;W<j.length&&!(k[j[W]]&&(z=j[W],g=this.getDataLabel(e.dataSource,e.shapeDataPath,P.properties[z],e.shapeDataPath)));W++);if(g=this.getDataLabel(e.dataSource,e.shapeDataPath,P.properties[z],e.shapeDataPath),!i.i(o.isNullOrUndefined)(A.property))if(L=[[]],l[p]._isMultiPolygon||"Point"===l[p].type||"MultiPoint"===l[p].type){if("Point"!==l[p].type&&"MultiPoint"!==l[p].type)for(var q=l[p],W=0;W<q.length;W++)L.push(this.getPoint(q[W],[])),I=L[L.length-1].length,w<I&&(w=I,C=L.length-1)}else L.push(this.getPoint(l[p],[])),I=L[L.length-1].length,w<I&&(w=I,C=L.length-1);if(T=i.i(o.isNullOrUndefined)(g)?P.properties[M]:i.i(o.isNullOrUndefined)(g[M])?g[e.shapeDataPath]:g[M].toString(),"[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)&&i.i(o.isNullOrUndefined)(T)&&0===e.dataSource.length)for(var X=0;X<e.shapePropertyPath.length;X++)if(P.properties[e.shapePropertyPath[X]]){T=P.properties[e.shapePropertyPath[X]];break}i.i(o.isNullOrUndefined)(T)&&""!==e.dataLabelSettings.template&&0===e.dataSource.length&&(T=P.properties[e.shapePropertyPath]);var Y=T,J=this.maps.projectionType;f=i.i(n._18)(L[C],J,e.geometryType);var Q=f;if(!i.i(o.isNullOrUndefined)(T)&&!i.i(o.isNullOrUndefined)(f)){if(G&&V>1&&!this.maps.zoomNotApplied&&""===_.template){if(t>0)for(var K=0;K<this.maps.zoomLabelPositions.length;K++)if(this.maps.zoomLabelPositions[K].dataLabelText===T){y=p,p=K,N=!0;break}b=f.x,v=f.y,f.x=(f.x+H.x)*D,f.y=(f.y+H.y)*D}f.y="Mercator"===this.maps.projectionType||"Normal"===e.geometryType?f.y:-f.y,i.i(o.isNullOrUndefined)(this.maps.format)||isNaN(parseFloat(T))||this.maps.useGroupingSeparator&&(T=i.i(n._29)(this.maps,parseFloat(T)),i.i(o.isNullOrUndefined)(g)||(g[M]=T));var $={name:a.v,maps:this.maps,cancel:!1,border:{color:_.border.color,width:_.border.width,opacity:_.border.opacity},datalabel:_,fill:_.fill,template:_.template,text:T,offsetX:0,offsetY:0};this.maps.trigger("dataLabelRendering",$,function(a){if(!$.cancel){var r=[],l=G&&V>1&&!S.maps.zoomNotApplied&&S.maps.zoomShapeCollection.length>p?S.maps.zoomShapeCollection[p].width:(f.rightMax.x-f.leftMax.x)*D;i.i(o.isNullOrUndefined)(S.maps.dataLabelShape)||(B=Q.rightMax.x-Q.leftMax.x,S.maps.dataLabelShape.push(B)),$.text===T||$.cancel||(T=$.text);var _=i.i(n.u)(T,x),M=T,w=_,I=f.y-_.height/4,k=f.y+_.height/4,A=(f.y+Z.y)*D-_.height/4,z=(f.y+Z.y)*D+_.height/4;if(r=i.i(n._16)(L[C],I,k),r.length>5&&"MultiPolygon"!==P.geometry.type&&"MultiPolygon"!==P.type){var j=i.i(n._18)(r,J,e.geometryType);G&&V>1&&!S.maps.zoomNotApplied&&""===$.template&&(j.x=(S.maps.zoomLabelPositions[p].location.x+H.x)*D,j.y=(S.maps.zoomLabelPositions[p].location.y+H.y)*D),b=j.x,f.x=j.x,l=G&&V>1&&!S.maps.zoomNotApplied&&S.maps.zoomShapeCollection.length>p?S.maps.zoomShapeCollection[p].width:(j.rightMax.x-j.leftMax.x)*D}var U=(f.x+Z.x)*D+_.width/2,R=(f.x+Z.x)*D-_.width/2;S.value[p]={rightWidth:U,leftWidth:R,heightTop:A,heightBottom:z};var W;if(""!==$.template){c=i.i(n._30)($.template,S.maps);var q=c?c(i.i(o.isNullOrUndefined)(g)?P.properties:g,S.maps,$.template,S.maps.element.id+"_LabelTemplate",!1):document.createElement("div");q.innerHTML=c?"":$.template,W=i.i(n.L)(q,F,i.i(o.isNullOrUndefined)(g)?P.properties:g,p,S.maps),S.maps.isTileMap?(W.style.left=(f.x+Z.x)*D-_.width/2+"px",W.style.top=(f.y+Z.y)*D-_.height+"px"):(W.style.left=Math.abs(S.maps.baseMapRectBounds.min.x-f.x)*D+a.offsetX+"px",W.style.top=Math.abs(S.maps.baseMapRectBounds.min.y-f.y)*D+a.offsetY+"px"),d.appendChild(W)}else{if("Trim"===O.smartLabelMode){var X="number"==typeof T?T.toString():T;M=i.i(n._20)(l,X,x),w=i.i(n.u)(M,x),u=new n.v(F,E.x,E.y,"middle",M,"","")}if("None"===O.smartLabelMode&&(u=new n.v(F,E.x,E.y,"middle",T,"","")),"Hide"===O.smartLabelMode&&(T=l>=_.width?T:"",u=new n.v(F,E.x,E.y,"middle",T,"","")),T=u.text,"Hide"===O.intersectionAction){for(var K=0;K<h.length;K++)if(!i.i(o.isNullOrUndefined)(h[K])&&!(S.value[p].leftWidth>h[K].rightWidth||S.value[p].rightWidth<h[K].leftWidth||S.value[p].heightTop>h[K].heightBottom||S.value[p].heightBottom<h[K].heightTop)){T="";break}h.push(S.value[p]),u=new n.v(F,E.x,E.y,"middle",T,"","")}var ee=void 0;if("Trim"===O.intersectionAction){for(var te=0;te<h.length;te++)if(!i.i(o.isNullOrUndefined)(h[te]))if(h[te].rightWidth<S.value[p].leftWidth||h[te].leftWidth>S.value[p].rightWidth||h[te].heightBottom<S.value[p].heightTop||h[te].heightTop>S.value[p].heightBottom)M=T,ee=0;else{if(S.value[p].leftWidth>h[te].leftWidth){l=h[te].rightWidth-S.value[p].leftWidth,ee=l-(S.value[p].rightWidth-S.value[p].leftWidth),M=i.i(n._20)(ee,T,x);break}if(S.value[p].leftWidth<h[te].leftWidth){l=S.value[p].rightWidth-h[te].leftWidth,ee=Math.abs(l-(S.value[p].rightWidth-S.value[p].leftWidth)),M=i.i(n._20)(ee,T,x);break}}w=i.i(n.u)(M,x),h.push(S.value[p]),u=new n.v(F,E.x,E.y,"middle",M,"","")}if("None"===O.intersectionAction&&(u=new n.v(F,E.x,E.y,"middle",T,"","")),M.length>1){var ie=$.border;if(ie.width>1){var ne=$.fill,oe=O.opacity,ae=O.rx,re=O.ry,le=void 0,se=void 0;G&&V>1&&!S.maps.zoomNotApplied?(le=f.x-_.width/2,se=f.y-_.height/2-5):(le=(f.x+Z.x)*D-_.width/2,se=(f.y+Z.y)*D-_.height/2),ie.opacity=i.i(o.isNullOrUndefined)(ie.opacity)?oe:ie.opacity;var de=new n.y(S.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+p+"_rectIndex_"+p,ne,ie,oe,new n.F(le+a.offsetX,se+a.offsetY,_.width,_.height),ae,re),pe=S.maps.renderer.drawRectangle(de);s.appendChild(pe)}}m=i.i(n.H)(u,x,x.color||S.maps.themeStyle.dataLabelFontColor,s),G&&V>1&&!S.maps.zoomNotApplied?(m.setAttribute("transform","translate( "+(f.x+a.offsetX)+" "+(f.y+a.offsetY)+" )"),f.x=b,f.y=v):m.setAttribute("transform","translate( "+((f.x+Z.x)*D+a.offsetX)+" "+((f.y+Z.y)*D+w.height/4+a.offsetY)+" )"),s.appendChild(m)}S.dataLabelCollections.push({location:{x:f.x+a.offsetX,y:f.y+a.offsetY},element:i.i(o.isNullOrUndefined)(W)?m:W,layerIndex:t,shapeIndex:N?y:p,labelIndex:N?y:p,dataLabelText:Y}),d.childElementCount>0&&!S.maps.element.contains(d)&&(document.getElementById(S.maps.element.id+"_Secondary_Element").appendChild(d),S.maps.renderReactTemplates())}})}},e.prototype.getPoint=function(e,t){return"MultiLineString"===e.type?e.map(function(e){e.map(function(e){t.push(new n.r(e.point.x,e.point.y))})}):e.map(function(e){t.push(new n.r(e.point.x,e.point.y))}),t},e.prototype.getModuleName=function(){return"DataLabel"},e.prototype.destroy=function(){this.dataLabelCollections=[],this.value=null,this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.legendBorderRect=new o.F(0,0,0,0),this.initialMapAreaRect=new o.F(0,0,0,0),this.legendTotalRect=new o.F(0,0,0,0),this.totalPages=[],this.page=0,this.currentPage=0,this.legendItemRect=new o.F(0,0,0,0),this.heightIncrement=0,this.widthIncrement=0,this.textMaxWidth=0,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.shapeToggled=!0,this.legendElement=null,this.maps=e,this.addEventListener()}return e.prototype.renderLegend=function(){this.legendRenderingCollections=[],this.legendCollection=[],this.totalPages=[],this.widthIncrement=0,this.heightIncrement=0,this.defsElement=this.maps.renderer.createDefs(),this.maps.svgObject.appendChild(this.defsElement),this.initialMapAreaRect=this.maps.mapAreaRect,this.calculateLegendBounds(),this.drawLegend()},e.prototype.calculateLegendBounds=function(){var e=this,t=this.maps,r=t.legendSettings;this.legendCollection=[];var l=t.mapAreaRect.y;if(this.legendRenderingCollections=[],Array.prototype.forEach.call(t.layersCollection,function(t,n){if(!i.i(a.isNullOrUndefined)(t.shapeData)){var o=t.shapeData.features,l=t.shapeDataPath,s=t.shapePropertyPath,d=t.dataSource,p=void 0,h=void 0;if("Layers"===r.type&&t.visible)p=t.shapeSettings.colorValuePath,h=t.shapeSettings.colorMapping,e.getLegends(n,o,h,d,l,p,s);else if("Bubbles"===r.type)for(var c=0,u=t.bubbleSettings;c<u.length;c++){var m=u[c];m.visible&&(p=m.colorValuePath,h=m.colorMapping,d=m.dataSource,e.getLegends(n,o,h,d,l,p,s))}}"Markers"===r.type&&e.getMarkersLegendCollections(n,t.markerSettings)}),this.legendCollection.length>0)for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s],p={name:n.B,cancel:!1,fill:d.fill,shape:r.shape,shapeBorder:r.shapeBorder,text:"number"==typeof d.text?d.text.toString():d.text};t.trigger("legendRendering",p),d.fill=p.fill,d.shape=p.shape,d.shapeBorder=p.shapeBorder,d.text=p.text,p.cancel&&(this.legendCollection.splice(s,1),s--)}var h=t.legendSettings.title.text,c=t.legendSettings.titleStyle;if(this.legendCollection.length>0){var u,m,g=r.mode,y=0,f=0,b=0,v=0,S=r.shapePadding,_=r.shapeHeight,x=r.shapeWidth,O=[],M=[],L=r.position,C=r.labelDisplayMode,w="None"===r.orientation?"Top"===L||"Bottom"===L?"Horizontal":"Vertical":r.orientation,P=r.width.length>1?r.width.indexOf("%")>-1?t.availableSize.width/100*parseInt(r.width,10):parseInt(r.width,10):null,T=r.height.length>1?r.height.indexOf("%")>-1?t.availableSize.height/100*parseInt(r.height,10):parseInt(r.height,10):null,I=0,N=0,k=i.i(o.u)(h,c);if("Interactive"===g){var F=r.textStyle,E=this.legendCollection.length,A="Horizontal"===w?i.i(a.isNullOrUndefined)(P)?t.mapAreaRect.width/E:P/E:i.i(a.isNullOrUndefined)(P)?25:P,z="Horizontal"===w?i.i(a.isNullOrUndefined)(T)?25:T:i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height/E:T/E;I=0,N=k.height+10;for(var B=r.labelPosition,j=0,U=0,R=0,D=0,Z=0,H=0,s=0;s<this.legendCollection.length;s++){I="Horizontal"===w?I+A:I,N="Horizontal"===w?N:N+z;var V=this.legendCollection[s].text,G=new o.a(0,0);"None"===C?G=i.i(o.u)(V,F):"Trim"===C?(V=i.i(o._20)("Horizontal"===w?A:z,V,F),G=i.i(o.u)(V,F)):V="",Z=Math.max(Z,G.height),H=Math.max(H,G.width),G.width>0&&G.height>0&&("Horizontal"===w?(j=I+A/2,U="After"===B?N+z+G.height/2+10:N-10):(j="After"===B?I-G.width/2-10:I+A+G.width/2+10,U=N+z/2+G.height/4)),0===s?(R="Horizontal"===w?I:"After"===B?j-G.width/2:I,D="Horizontal"===w?"After"===B?N:U-G.height/2:N,1===this.legendCollection.length&&(P="Horizontal"===w?Math.abs(I+A-R):A+H+10,T="Horizontal"===w?z+Z/2+10:Math.abs(N+z-D))):s===this.legendCollection.length-1&&(P="Horizontal"===w?Math.abs(I+A-R):A+H+10,T="Horizontal"===w?z+Z/2+10:Math.abs(N+z-D)),this.legendRenderingCollections.push({fill:this.legendCollection[s].fill,x:I,y:N,width:A,height:z,text:V,textX:j,textY:U,textWidth:G.width,textHeight:G.height,shapeBorder:this.legendCollection[s].shapeBorder})}1===this.legendCollection.length&&(T=z,P=A),this.legendItemRect={x:R,y:D,width:P,height:T}}else{P=i.i(a.isNullOrUndefined)(P)?t.mapAreaRect.width:P,T=i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height:T;var W=0;this.page=0;for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s];i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]});var q=i.i(o.u)(d.text,r.textStyle);if(this.textMaxWidth=Math.max(this.textMaxWidth,q.width),0===s)I=y=10+x/2,N=f=l+k.height+(_>q.height?_/2:q.height/4);else{var X=q.height>_?q.height:_;if("Horizontal"===w){var Y=M[W-1].x+M[W-1].width+10+x;if(Y+S+q.width>P){var J=(M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2)+l;J+X>T?(this.getPageChanged(),W=0,O=[],M=[],[],y=I,f=N):(y=O[0].x,f=J+X/2)}else y=Y-x/2,f=O[W-1].y}else{var Q=M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2;if(Q+l+X>T){var K=M[W-1].x+this.textMaxWidth+10;K+S+q.width>P?(y=I,f=N,[],M=[],O=[],this.getPageChanged(),W=0):(y=K+x/2,f=O[0].y)}else{y=O[W-1].x,f=Q+10+_/2}}}b=y+x/2+S,v=f+q.height/4,O.push({x:y,y:f}),M.push({x:b,y:v,width:q.width,height:q.height/2}),this.totalPages[this.page].Collection.push({DisplayText:d.text,ImageSrc:d.imageSrc,Shape:{x:y,y:f},Text:{x:b,y:v},Fill:d.fill,legendShape:d.shape,shapeBorder:d.shapeBorder,idIndex:s,Rect:{x:O[W].x-x/2,y:O[W].y-_/2<v-q.height?O[W].y-_/2:v-q.height,width:Math.abs(O[W].x-x/2-(b+q.width)),height:_>q.height?_:q.height}}),W++}var $=this.totalPages[0].Collection;Array.prototype.forEach.call($,function(t,i){var n=new o.F(t.Rect.x,t.Rect.y,t.Rect.width,t.Rect.height);0===i&&(u=n.x,m=n.y),e.widthIncrement=Math.max(e.widthIncrement,Math.abs(u-(n.x+n.width))),e.heightIncrement=Math.max(e.heightIncrement,Math.abs(m-(n.y+n.height)))}),P=this.widthIncrement<P?this.widthIncrement:P,T=this.heightIncrement<T?this.heightIncrement:T,this.legendItemRect={x:$[0].Rect.x,y:$[0].Rect.y,width:P,height:T}}}},e.prototype.getLegends=function(e,t,i,n,o,a,r){this.getRangeLegendCollection(e,t,i,n,o,a,r),this.getEqualLegendCollection(e,t,i,n,o,a,r),this.getDataLegendCollection(e,t,i,n,o,a,r)},e.prototype.getPageChanged=function(){this.page++,i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]})},e.prototype.legendTextTrim=function(e,t,n,a){var r=t,l=i.i(o.u)(t,n).width,s=a-l;if(a>e)for(var d=t.length,p=d-1;p>=0;--p){r=t.substring(0,p)+"...",l=i.i(o.u)(r,n).width;var h=s+l;if(h<=e||r.length<4)return r.length<4&&(r=" "),r}return r},e.prototype.drawLegend=function(){var e,t=this.maps,n=t.legendSettings,r=t.renderer,l={size:n.textStyle.size,color:n.textStyle.color,fontFamily:n.textStyle.fontFamily,fontWeight:n.textStyle.fontWeight,fontStyle:n.textStyle.fontStyle,opacity:n.textStyle.opacity};if(this.legendGroup=r.createGroup({id:t.element.id+"_Legend_Group"}),"Interactive"===n.mode)for(var s=0;s<this.legendRenderingCollections.length;s++){var d=t.element.id+"_Legend_Index_"+s,p=t.element.id+"_Legend_Index_"+s+"_Text",h=this.legendRenderingCollections[s],c=new o.F(h.x,h.y,h.width,h.height);0===s&&this.renderLegendBorder();var u=new o.r(h.textX,h.textY);l.color=null!==l.color?l.color:this.maps.themeStyle.legendTextColor;var m=new o.y(d,h.fill,h.shapeBorder,n.opacity,c);e=new o.v(p,u.x,u.y,"middle",h.text,"",""),l.fontFamily=i.i(a.isNullOrUndefined)(l.fontFamily)?this.maps.themeStyle.fontFamily:l.fontFamily,l.size=t.themeStyle.legendFontSize||l.size,i.i(o.H)(e,l,l.color,this.legendGroup),this.legendGroup.appendChild(r.drawRectangle(m)),this.legendToggle()}else this.drawLegendItem(this.currentPage)},e.prototype.drawLegendItem=function(e){var t,n=this.maps,r=n.legendSettings,l=new o.a(r.shapeWidth,r.shapeHeight),s=n.renderer,d=r.shape;if(e>=0&&e<this.totalPages.length){i.i(o._35)(this.legendGroup.id,this.maps.element.id)&&i.i(a.remove)(i.i(o._35)(this.legendGroup.id,this.maps.element.id));for(var p=0;p<this.totalPages[e].Collection.length;p++){var h=this.totalPages[e].Collection[p],c=h.shapeBorder,u=s.createGroup({id:n.element.id+"_Legend_Index_"+h.idIndex}),m=h.DisplayText,g=("Markers"===r.type?i.i(a.isNullOrUndefined)(h.ImageSrc)&&r.shape:h.legendShape,"HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape?i.i(a.isNullOrUndefined)(r.fill)?"#000000":r.fill:c.color),y=("HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape)&&0===c.width?1:c.width,f=n.element.id+"_Legend_Shape_Index_"+h.idIndex,b=n.element.id+"_Legend_Text_Index_"+h.idIndex,v=new o.r(h.Shape.x,h.Shape.y-4),S=new o.r(h.Text.x,h.Text.y-4),_=new o.w(f,h.Fill,y,g,r.opacity,i.i(a.isNullOrUndefined)(c.opacity)?r.opacity:c.opacity,""),x={fontFamily:r.textStyle.fontFamily,fontStyle:r.textStyle.fontStyle,fontWeight:r.textStyle.fontWeight,size:r.textStyle.size,color:r.textStyle.color,opacity:r.textStyle.opacity};if(x.color=null!==x.color?x.color:this.maps.themeStyle.legendTextColor,x.fontFamily=i.i(a.isNullOrUndefined)(x.fontFamily)?this.maps.themeStyle.fontFamily:x.fontFamily,x.size=n.themeStyle.legendFontSize||x.size,0===p&&this.renderLegendBorder(),"Markers"===r.type&&r.useMarkerShape){var O=this.legendCollection[h.idIndex].data[0],M=n.layers[O.layerIndex].markerSettings[O.markerIndex];d=i.i(a.isNullOrUndefined)(M.dataSource[O.dataIndex][M.shapeValuePath])||""===M.dataSource[O.dataIndex][M.shapeValuePath]?M.shape:M.dataSource[O.dataIndex][M.shapeValuePath]}"Balloon"===d?u.appendChild(i.i(o._11)(n,_,l,{x:v.x,y:v.y+5},"Legend")):u.appendChild(i.i(o._46)(v,d,l,h.ImageSrc,_));var L=h.Rect.x+h.Rect.width;if(L>this.legendBorderRect.width){m=this.legendTextTrim(this.legendBorderRect.width,m,x,L)}if(t=new o.v(b,S.x,S.y,"start",m,"",""),i.i(o.H)(t,x,x.color,u),this.legendGroup.appendChild(u),p===this.totalPages[e].Collection.length-1){var C=void 0;if(0!==this.page){var w=e+1+"/"+this.totalPages.length,P=r.textStyle,T=i.i(o.u)(w,P),I=this.legendItemRect.x+this.legendItemRect.width-T.width-20-20+2,N=this.legendItemRect.x+this.legendItemRect.width,k=N-10-T.width/2-5-4,F=this.legendItemRect.y+this.legendItemRect.height+2.5+10;C=s.createGroup({id:n.element.id+"_Legend_Paging_Group"});var E=s.createGroup({id:n.element.id+"_Legend_Left_Paging_Group"}),A=s.createGroup({id:n.element.id+"_Legend_Right_Paging_Group"}),z=" M "+N+" "+F+" L "+(N-10)+" "+(F-5)+" L "+(N-10)+" "+(F+5)+" z ",B=" M "+I+" "+F+" L "+(I+10)+" "+(F-5)+" L "+(I+10)+" "+(F+5)+" z ",j=new o.w(n.element.id+"_Left_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===1?.5:1,1,"",B);E.appendChild(s.drawPath(j));var U=new o.y(n.element.id+"_Left_Page_Rect","transparent",{},1,new o.F(I-5,F-10,20,20),null,null,"",""),R=s.drawRectangle(U);R.tabIndex=e+1===1?-1:n.tabIndex+1,E.appendChild(R),this.wireEvents(E);var D=new o.w(n.element.id+"_Right_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===this.totalPages.length?.5:1,1,"",z);A.appendChild(s.drawPath(D));var Z=new o.y(n.element.id+"_Right_Page_Rect","transparent",{},1,new o.F(N-10-5,F-10,20,20),null,null,"","");R=s.drawRectangle(Z),R.tabIndex=e+1===this.totalPages.length?-1:n.tabIndex+2,A.appendChild(R),this.wireEvents(A),C.appendChild(E),C.appendChild(A);var H={id:n.element.id+"_Paging_Text",x:k,y:F+T.height/4,fill:this.maps.themeStyle.legendTextColor,"font-size":"14px","font-style":P.fontStyle,"font-family":P.fontFamily,"font-weight":P.fontWeight,"text-anchor":"middle",transform:"",opacity:1,"dominant-baseline":""},V=s.createText(H,w);V.style.cssText="user-select: none;",C.appendChild(V),this.legendGroup.appendChild(C)}this.legendToggle()}}}},e.prototype.legendHighLightAndSelection=function(e,t){var n,o,r,l,s,d=this.maps.legendSettings,p="Default"===d.mode?document.getElementById(e.id.replace("Shape","Text")):document.getElementById(e.id+"_Text"),h=this.maps.legendModule.legendCollection,c=!i.i(a.isNullOrUndefined)(h[0].data[0].layerIndex)&&this.maps.layers[h[0].data[0].layerIndex].selectionSettings.enableMultiSelect,u=0,m=!0,g=parseFloat(e.id.charAt(e.id.length-1));this.updateLegendElement();var y=this.maps.toggledLegendId.indexOf(g);if(this.maps.legendSettings.toggleLegendSettings.enable&&"highlight"===t&&-1!==y){var f=this.getIndexofLegend(this.legendHighlightCollection,e);return-1!==f&&this.legendHighlightCollection.splice(f,1),this.removeLegendHighlightCollection(),null}if("selection"===t){if(this.shapeHighlightCollection=[],this.maps.shapeSelections||c||(this.removeAllSelections(),this.maps.shapeSelections=!0),this.maps.legendSelectionCollection.length>0&&(c||this.maps.shapeSelections))for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if(e===this.maps.legendSelectionCollection[b].legendElement){this.maps.legendSelectionCollection[b].legendElement=e,m=!1,this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(g),1),this.maps.legendSelectionCollection.splice(b,1),this.maps.legendSelection=!(this.maps.legendSelectionCollection.length>0);break}if(!c)if(this.maps.legendSelectionCollection.length>1){for(var v=0;v<this.maps.legendSelectionCollection.length;v++)this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[v].legendElement);this.maps.legendSelectionCollection=[]}else this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.legendSelectionCollection.splice(b,1)}}else{if(this.maps.legendSelectionCollection.length>0)for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if((e.id.indexOf("_Legend_Shape")>-1||e.id.indexOf("_Legend_Index"))&&e===this.maps.legendSelectionCollection[b].legendElement){m=!1;break}this.removeLegendHighlightCollection()}this.removeLegendHighlightCollection()}if(m)for(var S=0;S<h.length;S++){var _="Interactive"===this.maps.legendSettings.mode?parseFloat(e.id.split("_Legend_Index_")[1]):parseFloat(e.id.split("_Legend_Shape_Index_")[1]);if(p.textContent===h[S].text&&h[S].data.length>0&&_===S){var x=this.maps.layers[h[S].data[0].layerIndex],O=void 0,M=void 0,L=void 0;if(i.i(a.isNullOrUndefined)(x)||(O="selection"===t?x.selectionSettings.enable:x.highlightSettings.enable,M=void 0,M="selection"===t?x.selectionSettings:x.highlightSettings,L=h[S].data),O)for(var C=0;C<L.length;C++){var w=void 0;if(n=L[C].shapeIndex,o=L[C].layerIndex,r=L[C].dataIndex,l=L[C].pointIndex,null!==(w=-1===l?document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r):document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r+"_multiLine_"+l))){var P=!0;if(null!==this.maps.legendSelectionCollection)for(var T=0;T<this.maps.legendSelectionCollection.length;T++)if(this.maps.legendSelectionCollection[T].legendElement===e){P=!1;break}if("highlight"===t&&P){0===C&&(this.legendHighlightCollection=[],this.pushCollection(e,this.legendHighlightCollection,h[S],x.shapeSettings)),s=this.legendHighlightCollection.length;var I=this.legendHighlightCollection[s-1].legendOldFill;this.legendHighlightCollection[s-1].MapShapeCollection.Elements.push(w);var N=this.legendHighlightCollection[s-1].MapShapeCollection.Elements.length-1,k=w.getAttribute("fill"),F=w.getAttribute("fill-opacity");this.legendHighlightCollection[s-1].shapeOldFillColor.push(k),this.legendHighlightCollection[s-1].shapeOldOpacity=F;var E=this.legendHighlightCollection[s-1].shapeOldFillColor[N],A=this.legendHighlightCollection[s-1].shapeOldOpacity;this.shapePreviousColor=this.legendHighlightCollection[s-1].shapeOldFillColor,this.setColor(w,i.i(a.isNullOrUndefined)(M.fill)?E:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?A:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight"),this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?I:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?A:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight")}else if("selection"===t){this.legendHighlightCollection=[],this.maps.legendSelectionClass=M,0===C&&(this.pushCollection(e,this.maps.legendSelectionCollection,h[S],x.shapeSettings),c?this.maps.selectedLegendElementId.push(S):0===this.maps.selectedLegendElementId.length?this.maps.selectedLegendElementId.push(S):(this.maps.selectedLegendElementId=[],this.maps.selectedLegendElementId.push(S))),u=this.maps.legendSelectionCollection.length;var z=this.maps.legendSelectionCollection[u-1].legendOldFill;this.maps.legendSelectionCollection[u-1].MapShapeCollection.Elements.push(w),this.maps.legendSelectionCollection[u-1].shapeOldFillColor=this.shapePreviousColor,this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?z:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),this.setColor(w,i.i(a.isNullOrUndefined)(M.fill)?z:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),-1===this.maps.selectedElementId.indexOf(w.getAttribute("id"))&&this.maps.selectedElementId.push(w.getAttribute("id")),C===L.length-1&&(this.maps.legendSelection=!1,this.removeLegend(this.maps.legendSelectionCollection))}}}}}},e.prototype.setColor=function(e,t,n,a,r,l){var s=e.parentElement.id.indexOf("LineString")>-1;"selection"===l?(i.i(o.W)(s?"LineselectionMap":"ShapeselectionMap",s?"LineselectionMapStyle":"ShapeselectionMapStyle",s?"transparent":t,n,s?t:a,r,this.maps),e.setAttribute("class",s?"LineselectionMapStyle":"ShapeselectionMapStyle")):(e.setAttribute("fill",s?"transparent":t),e.setAttribute("fill-opacity",n),e.setAttribute("stroke",s?t:a),e.setAttribute("stroke-width",(Number(r)/this.maps.scale).toString()))},e.prototype.pushCollection=function(e,t,i,n){t.push({legendElement:e,legendOldFill:i.fill,legendOldOpacity:i.opacity,legendOldBorderColor:i.borderColor,legendOldBorderWidth:i.borderWidth,shapeOpacity:n.opacity,shapeOldBorderColor:n.border.color,shapeOldBorderWidth:n.border.width});var o=t.length;t[o-1].MapShapeCollection={Elements:[]},t[o-1].shapeOldFillColor=[],t[o-1].shapeOldOpacity=null},e.prototype.removeLegend=function(e){for(var t=0;t<e.length;t++){var n=e[t];this.setColor(n.legendElement,n.legendOldFill,n.legendOldOpacity,n.legendOldBorderColor,n.legendOldBorderWidth,"highlight");for(var o=n.MapShapeCollection.Elements.length,r=0;r<o;r++){var l=-1!==n.legendOldFill.indexOf("url")?n.shapeOldFillColor[r]:n.legendOldFill,s=i.i(a.isNullOrUndefined)(n.shapeOldOpacity)?n.shapeOpacity:n.shapeOldOpacity;this.setColor(n.MapShapeCollection.Elements[r],l,s,n.shapeOldBorderColor,n.shapeOldBorderWidth,"highlight")}}},e.prototype.removeLegendHighlightCollection=function(){this.legendHighlightCollection.length>0&&(this.removeLegend(this.legendHighlightCollection),this.legendHighlightCollection=[])},e.prototype.removeLegendSelectionCollection=function(e){if(this.maps.legendSelectionCollection.length>0){i.i(o._40)(e);for(var t=this.shapesOfLegend(e),n=t.length,a=0;a<n;a++){var r=i.i(o._31)(t[a]);if("ShapeselectionMapStyle"===r.getAttribute("class")||"LineselectionMapStyle"===r.getAttribute("class")){i.i(o._40)(r);var l=this.maps.selectedElementId.indexOf(r.id);-1!==l&&this.maps.selectedElementId.splice(l,1)}}}},e.prototype.removeShapeHighlightCollection=function(){if(this.shapeHighlightCollection.length>0)for(var e=0;e<this.shapeHighlightCollection.length;e++){for(var t=this.shapeHighlightCollection[e],i=!0,n=0;n<this.maps.legendSelectionCollection.length;n++)this.maps.legendSelectionCollection[n].legendElement===t.legendElement&&(i=!1);i&&this.setColor(t.legendElement,t.legendOldFill,t.legendOldOpacity,t.legendOldBorderColor,t.legendOldBorderWidth,"highlight")}},e.prototype.shapeHighLightAndSelection=function(e,t,n,r,l){if(void 0!==t){this.updateLegendElement(),this.shapeToggled=!0;var s=this.maps.legendModule.legendCollection,d=this.legendIndexOnShape(t,l),p=this.shapeDataOnLegend(e),h=this.maps.toggledLegendId.indexOf(d.actualIndex);if(this.maps.legendSettings.toggleLegendSettings.enable&&-1!==h){this.shapeToggled=!1,this.legendHighlightCollection=[];var c=this.getIndexofLegend(this.shapeHighlightCollection,p.LegendEle);return-1!==c&&this.shapeHighlightCollection.splice(c,1),this.removeShapeHighlightCollection(),null}if(void 0===d.currentIndex&&void 0===d.actualIndex)return this.removeShapeHighlightCollection(),null;if(void 0!==d.currentIndex||"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||"ShapeselectionMapStyle"===e.getAttribute("class")||(this.maps.legendSelection=!1),"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||this.maps.legendSelection||(this.removeAllSelections(),this.maps.legendSelection=!0),void 0===d.currentIndex){if("selection"===r&&void 0!==d.actualIndex){for(var u=0,m=0;m<p.Elements.length;m++)"ShapeselectionMapStyle"===p.Elements[m].getAttribute("class")&&u++;var g=this.maps.selectedLegendElementId.indexOf(d.actualIndex);-1===g?(this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n):u<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&(this.maps.layers[l].selectionSettings.enableMultiSelect?u<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&this.maps.selectedLegendElementId.splice(g,1):this.maps.selectedLegendElementId.splice(g,1))}return this.removeShapeHighlightCollection(),null}var y=s[d.actualIndex].text,f=void 0,b=void 0;"Default"===this.maps.legendSettings.mode?void 0!==d.currentIndex&&(f=document.getElementById(this.maps.element.id+"_Legend_Text_Index_"+d.actualIndex).textContent,b=document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d.actualIndex)):(f=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex+"_Text").textContent,b=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex)),this.oldShapeElement=p.LegendEle;var v=this.maps.legendSelectionCollection.length;if(y===f){var S=!0;if(this.maps.legendSelectionCollection)for(var m=0;m<this.maps.legendSelectionCollection.length;m++)if(this.maps.legendSelectionCollection[m].legendElement===p.LegendEle){S=!1;break}if("highlight"===r&&S){var _=this.isTargetSelected(p,this.shapeHighlightCollection);(void 0===_||_&&!_.IsSelected)&&this.pushCollection(b,this.shapeHighlightCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings);for(var x=0;x<this.shapeHighlightCollection.length;x++)p.LegendEle.id===this.shapeHighlightCollection[x].legendElement.id&&(this.shapeHighlightCollection[x].legendElement=p.LegendEle);if(v>0)for(var x=0;x<v;x++){if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement){this.maps.legendSelectionCollection[x].legendElement=p.LegendEle,this.removeShapeHighlightCollection();break}x===v-1&&(this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight"))}else this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight")}else if("selection"===r){var _=this.isTargetSelected(p,this.maps.legendSelectionCollection);if(v>0)for(var x=0;x<this.maps.legendSelectionCollection.length;)if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement||n.enableMultiSelect)x++;else{var O=this.maps.legendSelectionCollection[x],M=this.maps.selectedLegendElementId.indexOf(d.actualIndex);this.maps.selectedLegendElementId.splice(M,1),this.maps.legendSelectionCollection.splice(x,1),i.i(o._40)(O.legendElement),this.maps.shapeSelections=!0,x=0}if(_&&_.IsSelected&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))){var L=0;if(n.enableMultiSelect)for(var m=0;m<p.Elements.length;m++)e.getAttribute("class")===p.Elements[m].getAttribute("class")&&L++;L<=1&&(n.enableMultiSelect||this.maps.legendSelection)&&(this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(d.actualIndex),1),i.i(a.isNullOrUndefined)(p.LegendEle)||i.i(o._40)(p.LegendEle),this.maps.legendSelectionCollection.splice(_.SelectionIndex,1),this.maps.shapeSelections=!0)}else{if((void 0===_||_&&!_.IsSelected)&&!i.i(a.isNullOrUndefined)(b)){var C=this.getIndexofLegend(this.maps.legendSelectionCollection,b);-1===C&&this.pushCollection(b,this.maps.legendSelectionCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings)}for(var w=!0,m=0;m<this.maps.selectedLegendElementId.length;m++)d.actualIndex===this.maps.selectedLegendElementId[m]&&(w=!1);if(w&&this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n,this.removeLegend(this.shapeHighlightCollection),!i.i(a.isNullOrUndefined)(b)){this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"selection");var C=this.getIndexofLegend(this.maps.legendSelectionCollection,b);this.maps.legendSelectionCollection[C].MapShapeCollection.Elements.push(e)}this.maps.shapeSelections=!1}}else document.getElementsByClassName("highlightMapStyle").length>0&&(this.removeShapeHighlightCollection(),i.i(o._40)(document.getElementsByClassName("highlightMapStyle")[0]))}}else this.removeShapeHighlightCollection()},e.prototype.isTargetSelected=function(e,t){for(var n,o=0;o<t.length;o++)i.i(a.isNullOrUndefined)(e.LegendEle.getAttribute("id"))||e.LegendEle.getAttribute("id")!==t[o].legendElement.getAttribute("id")||(n={IsSelected:!0,SelectionIndex:o});return n},e.prototype.updateLegendElement=function(){for(var e=0;e<this.maps.legendSelectionCollection.length;e++)document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id)&&(this.maps.legendSelectionCollection[e].legendElement=document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id))},e.prototype.getIndexofLegend=function(e,t){return e.map(function(e){return e.legendElement}).indexOf(t)},e.prototype.removeAllSelections=function(){for(var e=0;e<this.maps.selectedElementId.length;e++){var t=document.getElementById(this.maps.selectedElementId[e]);i.i(o._40)(t)}for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var r="Interactive"===this.maps.legendSettings.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",t=r+this.maps.selectedLegendElementId[n],l=document.getElementById(t);i.i(a.isNullOrUndefined)(l)||i.i(o._40)(document.getElementById(t))}this.maps.legendSelectionCollection=[],this.maps.selectedLegendElementId=[],this.maps.selectedElementId=[]},e.prototype.legendIndexOnShape=function(e,t){var n,o,r,l=this.maps.layers[t].shapeDataPath,s=e[l],d=this.maps.legendSettings.mode,p=this.maps.legendModule.legendCollection;"Default"!==d||i.i(a.isNullOrUndefined)(this.maps.legendModule.totalPages)||(r=this.maps.legendModule.totalPages[this.maps.legendModule.currentPage].Collection);for(var h="Default"===d?r.length:1,c=0;c<p.length;c++){for(var u=p[c].data,m=0;m<h;m++)if("Default"!==d||p[c].text===r[m].DisplayText)for(var g=0;g<u.length;g++)s===u[g].name&&(n=m);for(var g=0;g<u.length;g++)s===u[g].name&&(o=c)}return{currentIndex:n,actualIndex:o}},e.prototype.shapeDataOnLegend=function(e){for(var t,n,o,r,l=this.maps.legendModule.legendCollection,s=this.maps.legendSettings,d=0;d<l.length;d++){for(var p=l[d].data,h=!1,c=[],u={Elements:[]},m=0;m<p.length;m++){var g=void 0;t=p[m].shapeIndex,n=p[m].layerIndex,o=p[m].dataIndex,r=p[m].pointIndex,g=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),e===g&&(h=!0),c.push(g)}if(h)return i.i(a.isNullOrUndefined)(u.LegendEle)&&(u.LegendEle="Default"===s.mode?document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d):document.getElementById(this.maps.element.id+"_Legend_Index_"+d)),u.Elements=c,u}return null},e.prototype.shapesOfLegend=function(e){for(var t,n,o,r,l=parseFloat(e.id.charAt(e.id.length-1)),s=this.maps.legendModule.legendCollection[l].data,d=[],p=0;p<s.length;p++){var h=void 0;t=s[p].shapeIndex,n=s[p].layerIndex,o=s[p].dataIndex,r=s[p].pointIndex,h=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),i.i(a.isNullOrUndefined)(h)||d.push(h.id)}return d},e.prototype.legendToggle=function(){var e=this.maps,t=e.legendSettings;if(this.maps.selectedLegendElementId)for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var o="Interactive"===t.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",r=e.svgObject.querySelector("#"+o+this.maps.selectedLegendElementId[n]);if(!i.i(a.isNullOrUndefined)(r)){var l=i.i(a.isNullOrUndefined)(this.maps.legendSelectionClass.fill)?r.getAttribute("fill"):this.maps.legendSelectionClass.fill;this.setColor(r,l,this.maps.legendSelectionClass.opacity.toString(),this.maps.legendSelectionClass.border.color,this.maps.legendSelectionClass.border.width.toString(),"selection");for(var s=0;s<this.maps.legendSelectionCollection.length;s++)this.maps.legendSelectionCollection[s].legendElement.id===r.id&&(this.maps.legendSelectionCollection[s].legendElement=r);var d=this.getIndexofLegend(this.maps.legendSelectionCollection,r);if(-1===d){var p=this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]].data[n].layerIndex;this.pushCollection(r,this.maps.legendSelectionCollection,this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]],this.maps.layers[p].shapeSettings)}}}if(this.maps.toggledLegendId)for(var n=0;n<this.maps.toggledLegendId.length;n++){var h="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]+"_Text":"#"+this.maps.element.id+"_Legend_Text_Index_"+this.maps.toggledLegendId[n],c=e.svgObject.querySelector(h);i.i(a.isNullOrUndefined)(c)||c.setAttribute("fill","#E5E5E5");var u="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]:"#"+this.maps.element.id+"_Legend_Shape_Index_"+this.maps.toggledLegendId[n],m=e.svgObject.querySelector(u);i.i(a.isNullOrUndefined)(m)||m.setAttribute("fill","#E5E5E5")}},e.prototype.renderLegendBorder=function(){var e,t=this.maps,n=t.legendSettings,r=n.title.text,l={fontFamily:n.titleStyle.fontFamily,fontStyle:n.titleStyle.fontStyle,fontWeight:n.titleStyle.fontWeight,size:n.titleStyle.size,color:n.titleStyle.color,opacity:n.titleStyle.opacity},s=i.i(o._20)(this.legendItemRect.width+20,r,l),d=i.i(o.u)(s,l);this.legendBorderRect=new o.F(this.legendItemRect.x-10,this.legendItemRect.y-10-d.height,this.legendItemRect.width+20,this.legendItemRect.height+20+d.height+("Interactive"===n.mode?0:0!==this.page?10:0));var p={color:n.border.color,width:n.border.width,opacity:n.border.opacity};p.opacity=i.i(a.isNullOrUndefined)(p.opacity)?1:p.opacity;var h=new o.y(t.element.id+"_Legend_Border",n.background,p,1,this.legendBorderRect,null,null,"","");this.legendGroup.appendChild(t.renderer.drawRectangle(h)),this.getLegendAlignment(t,this.legendBorderRect.width,this.legendBorderRect.height,n),this.legendGroup.setAttribute("transform","translate( "+(this.translate.x+-this.legendBorderRect.x)+" "+(this.translate.y+-this.legendBorderRect.y)+" )"),"Float"!==n.position&&t.svgObject.appendChild(this.legendGroup),r&&(l.color=null!==l.color?l.color:this.maps.themeStyle.legendTitleFontColor,l.fontFamily=i.i(a.isNullOrUndefined)(l.fontFamily)?this.maps.themeStyle.fontFamily:l.fontFamily,e=new o.v(t.element.id+"_LegendTitle",this.legendItemRect.x+this.legendItemRect.width/2,this.legendItemRect.y-d.height/2-5,"middle",s,""),i.i(o.H)(e,l,l.color,this.legendGroup))},e.prototype.changeNextPage=function(e){this.currentPage=e.target.id.indexOf("_Left_Page_")>-1?this.currentPage-1:this.currentPage+1,this.legendGroup=this.maps.renderer.createGroup({id:this.maps.element.id+"_Legend_Group"}),this.maps.mapAreaRect=this.initialMapAreaRect,this.drawLegendItem(this.currentPage),i.i(a.isNullOrUndefined)(this.maps.legendModule)||"Float"!==this.maps.legendSettings.position||(this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.legendModule.legendGroup):this.maps.svgObject.appendChild(this.maps.legendModule.legendGroup)),i.i(o._35)(this.maps.element.id+"_Legend_Border",this.maps.element.id)&&(i.i(o._35)(this.maps.element.id+"_Legend_Border",this.maps.element.id).style.pointerEvents="none")},e.prototype.getLegendAlignment=function(e,t,n,r){var l,s,d;d=i.i(a.extend)({},e.mapAreaRect,d,!0);var p=d.x,h=d.y,c=d.height,u=d.width,m=e.availableSize.width,g=e.availableSize.height,y=i.i(a.isNullOrUndefined)(r.location.x)?0:r.location.x,f=i.i(a.isNullOrUndefined)(r.location.y)?0:r.location.y;if("Float"===r.position)this.translate=e.isTileMap?new o.r(y,f+2.5):new o.r(y+e.mapAreaRect.x,f+e.mapAreaRect.y),this.legendTotalRect=e.mapAreaRect;else{switch(r.position){case"Top":case"Bottom":d.height="Top"===r.position?c-n:c-n-20,l=m/2-t/2,s="Top"===r.position?h:h+d.height,d.y="Top"===r.position?h+n+(e.isTileMap?5:10):h-5;break;case"Left":case"Right":d.width=u-t-e.mapAreaRect.x,l="Left"===r.position?p+5:p+d.width+10,s=g/2-n/2,d.x="Left"===r.position?p+t+10:p}switch(r.alignment){case"Near":"Top"===r.position||"Bottom"===r.position?l=d.x-("Interactive"===r.mode?10:0):s=d.y-(r.height&&r.width||"Interactive"!==r.mode?0:e.mapAreaRect.x);break;case"Far":"Top"===r.position||"Bottom"===r.position?l=m-t-("Interactive"===r.mode?0:10):s=g-n-("Default"===r.mode?10:0)}(r.height||r.width)&&"Interactive"!==r.mode?this.legendTotalRect=e.mapAreaRect=e.totalRect=d:(e.totalRect=null,(r.height||r.width)&&"Interactive"===r.mode&&(e.totalRect=d),this.legendTotalRect=e.mapAreaRect=d),"Left"===r.position&&(e.mapAreaRect.width=d.width),this.translate=new o.r(l,s)}},e.prototype.getMarkersLegendCollections=function(e,t){var n=this;Array.prototype.forEach.call(t,function(t,r){var l,s=t.dataSource,d=t.legendText;Array.prototype.forEach.call(s,function(s,p){var h=!!i.i(a.isNullOrUndefined)(s[n.maps.legendSettings.showLegendPath])||s[n.maps.legendSettings.showLegendPath];if(t.visible&&h&&!i.i(a.isNullOrUndefined)(s.latitude)&&!i.i(a.isNullOrUndefined)(s.longitude)){if(t.template){l=i.i(o._30)(t.template,n.maps);var c=l(n.maps);(i.i(a.isNullOrUndefined)(c.childElementCount)?c[0]:c).querySelector("img").src}var u=i.i(a.isNullOrUndefined)(s[d])?"":s[d],m=i.i(a.isNullOrUndefined)(t.colorValuePath)?t.fill:s[t.colorValuePath],g=[];n.maps.legendSettings.removeDuplicateLegend?(g.push(n.getMarkerLegendData(e,u,m)),n.getOverallLegendItemsCollection(u,m,g,h)):(g.push({layerIndex:e,markerIndex:r,dataIndex:p,value:m,name:u,shape:i.i(a.isNullOrUndefined)(t.shapeValuePath)||i.i(a.isNullOrUndefined)(s[t.shapeValuePath])||""===s[t.shapeValuePath]?n.maps.legendSettings.useMarkerShape?t.shape:n.maps.legendSettings.shape:s[t.shapeValuePath]}),n.getOverallLegendItemsCollection(u,m,g,h))}})})},e.prototype.getMarkerLegendData=function(e,t,n){var o=this,r=[];return this.maps.layers[e].markerSettings.map(function(l,s){var d=l.dataSource;Array.prototype.forEach.call(d,function(l,d){var p=o.maps.layers[e].markerSettings[s];t!==l[p.legendText]&&""!==t||n!==l[p.colorValuePath]||r.push({layerIndex:e,markerIndex:s,dataIndex:d,value:n,name:t,shape:i.i(a.isNullOrUndefined)(p.shapeValuePath)?p.shape:l[p.shapeValuePath]})})}),r},e.prototype.getRangeLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,c=0,u=this.maps.legendSettings.fill,m=[],g=this,y=0,f=n;y<f.length;y++){var b=f[y];!function(n){if(!i.i(a.isNullOrUndefined)(n.from)&&!i.i(a.isNullOrUndefined)(n.to)){p=i.i(a.isNullOrUndefined)(n.label)?n.from+" - "+n.to:n.label,m=[];var y=!1;Array.prototype.forEach.call(r,function(a,r){var p=s.indexOf(".")>-1?Number(i.i(o.N)(a,s)):parseFloat(a[s]);p>=n.from&&p<=n.to&&(y=!0,m.push(h.getLegendData(e,r,a,l,t,d,p)))}),y||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var f=i.i(a.isNullOrUndefined)(u)?"[object Array]"===Object.prototype.toString.call(n.color)?i.i(a.isNullOrUndefined)(n.value)?g.legendGradientColor(n,c):n.color[0]:n.color:u;c++,g.getOverallLegendItemsCollection(p,f,m,n.showLegend)}}(b)}},e.prototype.getOverallLegendItemsCollection=function(e,t,i,n){var o=[],a=this.maps.legendSettings;if(i.length>0&&n){for(var r=0;r<i.length;r++){var l=i[r];if(l.length>0)for(var s=0;s<l.length;s++)o.push(l[s]);else o.push(i[r]);o._isVisible=!0}if(!!this.maps.legendSettings.removeDuplicateLegend&&this.removeDuplicates(this.legendCollection,e,t))for(var r=0;r<this.legendCollection.length;r++)this.legendCollection[r].text===e&&this.legendCollection[r].fill===t&&this.legendCollection[r].data.push(o[0]);else this.legendCollection.push({text:e,fill:t,data:o,opacity:a.opacity,borderColor:a.shapeBorder.color,borderWidth:a.shapeBorder.width})}},e.prototype.removeDuplicates=function(e,t,i){for(var n=!1,o=0;o<e.length;o++)if((e[o].text===t||""===e[o].text)&&e[o].fill===i){n=!0;break}return n},e.prototype.getEqualLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,c=this.maps.legendSettings.fill,u=[],m=0,g=[],y=[],f=[],b=this,v=0,S=n;v<S.length;v++){var _=S[v];!function(v){if(i.i(a.isNullOrUndefined)(v.value)){if(i.i(a.isNullOrUndefined)(v.minOpacity)&&i.i(a.isNullOrUndefined)(v.maxOpacity)&&i.i(a.isNullOrUndefined)(v.value)&&i.i(a.isNullOrUndefined)(v.from)&&i.i(a.isNullOrUndefined)(v.to)&&!i.i(a.isNullOrUndefined)(v.color)){if(Array.prototype.forEach.call(r,function(n,a){for(var r=s.indexOf(".")>-1?i.i(o.N)(n,s):n[s],p=0;p<y.length;p++)r===y[p]&&f.push(h.getLegendData(e,a,n,l,t,d,r))}),0===y.length){var S=!1;Array.prototype.forEach.call(r,function(o,r){S=!1;for(var p=o[s],c=0;c<n.length;c++)i.i(a.isNullOrUndefined)(p)||isNaN(p)?S||(S=!1):p>=n[c].from&&p<=n[c].to&&(S=!0);S||f.push(h.getLegendData(e,r,o,l,t,d,p))})}p=i.i(a.isNullOrUndefined)(v.label)?"Others":v.label;var _="[object Array]"===Object.prototype.toString.call(v.color)?v.color[0]:v.color,x=_;m++,b.getOverallLegendItemsCollection(p,x,f,v.showLegend)}}else{p=i.i(a.isNullOrUndefined)(v.label)?v.value:v.label,g=[];var O=!1;Array.prototype.forEach.call(r,function(n,a){var r=s.indexOf(".")>-1?i.i(o.N)(n,s):n[s];r===v.value?(O=!0,-1===u.indexOf(r)&&u.push(r),g.push(h.getLegendData(e,a,n,l,t,d,r))):-1===y.indexOf(r)&&y.push(r)});for(var M=0;M<u.length;M++)for(var L=0;L<y.length;L++)if(u[M]===y[L]){var C=y.indexOf(u[M]);y.splice(C,1)}O||g.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var w=i.i(a.isNullOrUndefined)(c)?"[object Array]"===Object.prototype.toString.call(v.color)?v.color[0]:v.color:c;m++,b.getOverallLegendItemsCollection(p,w,g,v.showLegend)}}(_)}},e.prototype.getDataLegendCollection=function(e,t,n,r,l,s,d){var p,h=this,c=this.maps.legendSettings.fill,u=this.maps.legendSettings.valuePath;i.i(a.isNullOrUndefined)(s)||i.i(a.isNullOrUndefined)(r)||Array.prototype.forEach.call(r,function(r,m){var g=!!i.i(a.isNullOrUndefined)(h.maps.legendSettings.showLegendPath)||!i.i(a.isNullOrUndefined)(r[h.maps.legendSettings.showLegendPath])&&r[h.maps.legendSettings.showLegendPath],y=s.indexOf(".")>-1?i.i(o.N)(r,s):r[s],f=[],b=i.i(a.isNullOrUndefined)(c)?y:c;i.i(a.isNullOrUndefined)(y)||0!==n.length||(p=i.i(a.isNullOrUndefined)(r[u])?l.indexOf(".")>-1?i.i(o.N)(r,l):r[l]:u.indexOf(".")>-1?i.i(o.N)(r,u):r[u],f.push(h.getLegendData(e,m,r,l,t,d,y))),h.getOverallLegendItemsCollection(p,b,f,g)})},e.prototype.interactiveHandler=function(e){var t=e.target,n=this.maps.legendSettings,r=this.maps.element.id+"_Interactive_Legend",l="Layers"===n.type?"_shapeIndex_":"Markers"===n.type?"_MarkerIndex_":"_BubbleIndex_";if(t.id.indexOf(l)>1){var s=parseFloat(t.id.split("_LayerIndex_")[1].split("_")[0]),d=parseFloat(t.id.split(/_dataIndex_/i)[1].split("_")[0]),p=void 0,h=void 0,c=void 0;i.i(a.isNullOrUndefined)(i.i(o._35)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._35)(r,this.maps.element.id));var u=this.maps.layersCollection[s],m="Layers"===n.type?u.visible:"Markers"===n.type?u.markerSettings[parseFloat(t.id.split("_MarkerIndex_")[1].split("_")[0])].visible:this.maps.getBubbleVisible(this.maps.layersCollection[s]);if(n.visible&&this.legendRenderingCollections.length>0&&"Interactive"===n.mode&&m)for(var g=this.maps.svgObject.getBoundingClientRect(),y=0;y<this.legendCollection.length;y++){var f=this.legendCollection[y],b=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+y,this.maps.element.id),v=b.getBoundingClientRect(),S=new o.F(Math.abs(v.left-g.left),Math.abs(v.top-g.top),v.width,v.height);if(p=b.getAttribute("fill"),h=n.shapeBorder.color,c=n.shapeBorder.width,!i.i(a.isNullOrUndefined)(f.data))for(var _=f.data,x=0;x<_.length;x++)if(d===_[x].dataIndex&&s===_[x].layerIndex){this.renderInteractivePointer(n,p,h,r,c,S);break}}}else i.i(a.isNullOrUndefined)(i.i(o._35)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._35)(r,this.maps.element.id))},e.prototype.renderInteractivePointer=function(e,t,i,n,a,r){var l,s,d,p="None"===e.orientation?"Top"===e.position||"Bottom"===e.position?"Horizontal":"Vertical":e.orientation;r.y="Float"===e.position&&this.maps.isTileMap?r.y-this.maps.mapAreaRect.y:r.y,"Horizontal"===p?e.invertedPointer?(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height,l=" M "+s+" "+d+" L "+(s-10)+" "+(d+10)+" L "+(s+10)+" "+(d+10)+" Z "):(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s+10)+" "+(d-10)+" Z "):e.invertedPointer?(s=r.x-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s-10)+" "+(d+10)+" z "):(s=r.x+r.width-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s+10)+" "+(d-10)+" L "+(s+10)+" "+(d+10)+" z ");var h=new o.w(n,t,a,i,1,1,"",l);"Float"===e.position&&this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.renderer.drawPath(h)):this.maps.svgObject.appendChild(this.maps.renderer.drawPath(h))},e.prototype.wireEvents=function(e){a.EventHandler.add(e,a.Browser.touchStartEvent,this.changeNextPage,this)},e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(a.Browser.touchMoveEvent,this.interactiveHandler,this),this.maps.on(a.Browser.touchEndEvent,this.interactiveHandler,this),this.maps.on(n.d,this.legendClick,this))},e.prototype.markerToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].markerSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].markerSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].markerSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].markerSettings[n].border.opacity)?this.maps.layers[t].markerSettings[n].opacity:this.maps.layers[t].markerSettings[n].border.opacity).toString())},e.prototype.bubbleToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].bubbleSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].bubbleSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].bubbleSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].bubbleSettings[n].border.opacity)?this.maps.layers[t].bubbleSettings[n].opacity:this.maps.layers[t].bubbleSettings[n].border.opacity).toString())},e.prototype.legendClick=function(e){var t,n,r=this.maps.legendSettings.toggleLegendSettings.fill,l=this.maps.legendSettings.toggleLegendSettings.opacity,s=this.maps.legendSettings.toggleLegendSettings.border.color,d=this.maps.legendSettings.toggleLegendSettings.border.width,p=i.i(a.isNullOrUndefined)(this.maps.legendSettings.toggleLegendSettings.border.opacity)?this.maps.legendSettings.toggleLegendSettings.opacity:this.maps.legendSettings.toggleLegendSettings.border.opacity;if(e.parentNode.id.indexOf(this.maps.element.id+"_Legend_Index_")>-1){var h=void 0,c=parseFloat(e.parentElement.id.substr((this.maps.element.id+"_Legend_Index_").length)),u=this.legendCollection[c].data,m=u._isVisible,g=void 0;if(this.maps.legendSettings.toggleLegendSettings.enable&&("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type))for(var y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<u.length;b++)g=this.legendCollection[c].data[b],h="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex,this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(g.shape)||"Balloon"!==g.shape||(h="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id),h=h.children[0]),m&&null!==h?(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(h.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),h.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),h.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),h.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),h.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(h.setAttribute("fill",r),h.setAttribute("fill-opacity",l.toString()),h.setAttribute("stroke",s),h.setAttribute("stroke-width",d.toString()),h.setAttribute("stroke-opacity",p.toString())),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):("Markers"===this.maps.legendSettings.type?this.markerToggleSelection(h,y,f,c):this.bubbleToggleSelection(h,y,f,c),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575"),"HorizontalLine"!==this.maps.legendSettings.shape&&"VerticalLine"!==this.maps.legendSettings.shape&&"Cross"!==this.maps.legendSettings.shape||t.setAttribute("stroke",this.legendCollection[c].fill)));u._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var v=void 0;this.removeCollections(e,c);var S=this.maps.toggledLegendId.indexOf(c);-1!==S&&(m=!1);for(var f=0;f<this.maps.layers.length;f++)for(var b=0;b<u.length;b++)if(g=this.legendCollection[c].data[b],null!==(v=i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_shapeIndex_"+g.shapeIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id))){var _=this.maps.toggledShapeElementId.indexOf(v.id);m?(0===b&&this.maps.toggledLegendId.push(c),-1===_&&this.maps.toggledShapeElementId.push(v.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(v.setAttribute("fill",this.maps.layers[f].shapeSettings.fill),v.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),v.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),v.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),v.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString())):(v.setAttribute("fill",r),v.setAttribute("fill-opacity",l.toString()),v.setAttribute("stroke",s),v.setAttribute("stroke-width",d.toString()),v.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[f].shapeSettings.fill,this.maps.layers[f].shapeSettings.opacity,this.maps.layers[f].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity,this.maps.layers[f].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==S&&0===b&&this.maps.toggledLegendId.splice(S,1),-1!==_&&this.maps.toggledShapeElementId.splice(_,1),v.setAttribute("fill",this.legendCollection[c].fill),v.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString()),v.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),v.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),v.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575")))}u._isVisible=!m}}else if(!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_Text")){var x=void 0,c=parseFloat(e.id.split(this.maps.element.id+"_Legend_Index_")[1]),O=void 0,u=this.legendCollection[c].data,m=u._isVisible;if(("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type)&&this.maps.legendSettings.toggleLegendSettings.enable)for(var y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<u.length;b++)O=this.legendCollection[c].data[b],x="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+O.dataIndex,this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+O.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(O.shape)||"Balloon"!==O.shape||(x="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+O.dataIndex+"_Group",this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+O.dataIndex+"_Group",this.maps.element.id),x=x.children[0]),m&&null!==x?(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(x.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),x.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),x.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),x.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),x.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString())):(x.setAttribute("fill",r),x.setAttribute("fill-opacity",l.toString()),x.setAttribute("stroke",s),x.setAttribute("stroke-width",d.toString()),x.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):("Markers"===this.maps.legendSettings.type?this.markerToggleSelection(x,y,f,c):this.bubbleToggleSelection(x,y,f,c),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),t.setAttribute("fill",this.legendCollection[c].fill),t.setAttribute("fill-opacity",this.legendCollection[c].opacity),t.setAttribute("stroke",this.legendCollection[c].shapeBorder.color),t.setAttribute("stroke-width",this.legendCollection[c].shapeBorder.width),t.setAttribute("stroke-opacity",this.legendCollection[c].shapeBorder.opacity),n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),n.setAttribute("fill","#757575")));u._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var M=void 0;this.removeCollections(e,c);var L=this.maps.toggledLegendId.indexOf(c);-1!==L&&(m=!1);for(var y=0;y<this.maps.layers.length;y++)for(var b=0;b<u.length;b++)if(O=this.legendCollection[c].data[b],null!==(M=i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_shapeIndex_"+O.shapeIndex+"_dataIndex_"+O.dataIndex,this.maps.element.id))){var _=this.maps.toggledShapeElementId.indexOf(M.id);m?(0===b&&this.maps.toggledLegendId.push(c),-1===_&&this.maps.toggledShapeElementId.push(M.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(M.setAttribute("fill",this.maps.layers[0].shapeSettings.fill),M.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),M.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),M.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),M.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(M.setAttribute("fill",r),M.setAttribute("fill-opacity",l.toString()),M.setAttribute("stroke",s),M.setAttribute("stroke-width",d.toString()),M.setAttribute("stroke-opacity",p.toString())),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[0].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[0].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[0].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==L&&0===b&&this.maps.toggledLegendId.splice(L,1),-1!==_&&this.maps.toggledShapeElementId.splice(_,1),M.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),M.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),M.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),M.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),M.setAttribute("fill",this.legendCollection[c].fill),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575")))}u._isVisible=!m}}},e.prototype.removeCollections=function(e,t){this.removeLegendSelectionCollection(e);var i=this.getIndexofLegend(this.maps.legendSelectionCollection,e);-1!==i&&this.maps.legendSelectionCollection.splice(i,1),-1!==this.getIndexofLegend(this.legendHighlightCollection,e)&&this.legendHighlightCollection.splice(i,1);var n=this.getIndexofLegend(this.shapeHighlightCollection,e);-1!==n&&this.shapeHighlightCollection.splice(n,1);var o=this.maps.selectedLegendElementId.indexOf(t);-1!==o&&this.maps.selectedLegendElementId.splice(o,1)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(a.Browser.touchMoveEvent,this.interactiveHandler),this.maps.off(a.Browser.touchEndEvent,this.interactiveHandler),this.maps.off(n.d,this.legendClick))},e.prototype.getLegendData=function(e,t,n,r,l,s,d){var p=[];if("[object Array]"===Object.prototype.toString.call(l))for(var h=0;h<l.length;h++){var c=l[h],u=r.indexOf(".")>-1?i.i(o.N)(n,r):n[r],m=i.i(o._15)(n[r],s,c.properties),g=i.i(a.isNullOrUndefined)(u)||"string"!=typeof u?u:u.toLowerCase(),y=!i.i(a.isNullOrUndefined)(c.properties[m])&&isNaN(c.properties[m])?c.properties[m].toLowerCase():c.properties[m];if(y===g)if("MultiPoint"!==c.geometry.type)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:-1});else for(var f=0;f<c.geometry.coordinates.length;f++)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:f})}return p},e.prototype.setToggleAttributes=function(e,t,n,o,r,l,s,d){e.setAttribute("fill",d),t.setAttribute("fill",n),t.setAttribute("fill-opacity",o.toString()),t.setAttribute("stroke",r),t.setAttribute("stroke-width",l.toString()),i.i(a.isNullOrUndefined)(s)||t.setAttribute("stroke-opacity",s.toString())},e.prototype.legendGradientColor=function(e,t){var n,o="http://www.w3.org/2000/svg";if(!i.i(a.isNullOrUndefined)(e.color)&&"object"==typeof e.color){var r=document.createElementNS(o,"linearGradient"),l=1,s=this.maps.legendSettings.position,d="Top"===s||"Bottom"===s?"100":"0",p="Top"===s||"Bottom"===s?"0":"100";r.setAttribute("id","linear_"+t+"_"+this.maps.element.id),r.setAttribute("x1","0%"),r.setAttribute("y1","0%"),r.setAttribute("x2",d+"%"),r.setAttribute("y2",p+"%");for(var h=0;h<e.color.length;h++){var c=100/(e.color.length-1),u=document.createElementNS(o,"stop");u.setAttribute("offset",h*c+"%"),u.setAttribute("stop-color",e.color[h]),u.setAttribute("stop-opacity",l.toString()),r.appendChild(u)}this.legendLinearGradient=r;var m="url(#linear_"+t+"_"+this.maps.element.id+")";this.defsElement.appendChild(r),n=m}return n},e.prototype.getModuleName=function(){return"Legend"},e.prototype.destroy=function(){this.legendCollection=[],this.legendRenderingCollections=[],this.translate=null,this.legendBorderRect=null,this.initialMapAreaRect=null,this.legendTotalRect=null,this.totalPages=[],this.legendItemRect=null,this.legendGroup=null,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.legendLinearGradient=null,this.currentLayer=null,this.defsElement=null,this.legendElement=[],this.oldShapeElement=null,this.removeEventListener(),this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e}return e.prototype.renderNavigation=function(e,t,r){var l;if(!i.i(a.isNullOrUndefined)(this.maps)){var s=void 0,d=e.navigationLineSettings,p=void 0,h=[],c=void 0,u=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=void 0,v=void 0,S=void 0,_=void 0,x=void 0,O=void 0,M=void 0,L=void 0,C=void 0,w=void 0,P=void 0,T=void 0,I=void 0;l=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_line_Group"});for(var N=0;N<d.length;N++){if(c=d[N].properties.latitude,p=d[N].properties.longitude,u=d[N].properties.visible,m=d[N].angle,g=d[N].width||1,y=d[N].color,f=d[N].properties.dashArray,O=d[N].properties.arrowSettings,S=!i.i(a.isNullOrUndefined)(O)&&O.properties.showArrow,p.length===c.length&&u)for(var k=0;k<p.length;k++){var F=this.maps.isTileMap?i.i(n._21)(new o.r(p[k],c[k]),t,this.maps.tileTranslatePoint,!0):i.i(o.h)(c[k],p[k],t,e,this.maps);h.push(F)}T=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_NavigationGroup"+N});for(var E=0;E<h.length-1;E++){m=-1>m?-1:m,m=1<m?1:m;var A=this.maps.element.id+"_LayerIndex_"+r+"_NavigationIndex_"+N+"_Line"+E,z=this.convertRadius(h[E],h[E+1]);if(m<=1&&m>0&&(v=0,h[E].x>h[E+1].x&&(v=1)),m>=-1&&m<0&&(v=1,h[E].x>h[E+1].x&&(v=0)),S){_=O.properties.color,x=O.properties.size,P=void 0===O.properties.offSet?0:O.properties.offSet;var B=Math.round(x/2);M=O.properties.position,L="Start"===M?"url(#triangle"+N+")":null,C="End"===M?"url(#triangle"+N+")":null,0!==w&&0===m&&(w="Start"===M?P:-P),w=i.i(a.isNullOrUndefined)(w)?0:w;var j=this.maps.element.id+"_triangle",U=this.maps.renderer.createDefs();U.innerHTML+='<marker id="triangle'+N+'"></marker>';var R=U.querySelector("#triangle"+N);R.setAttribute("markerWidth",x.toString()),R.setAttribute("markerHeight",x.toString()),R.setAttribute("refX",(B-w).toString()),R.setAttribute("refY",B.toString()),R.setAttribute("orient","auto");var D="M 0,0 L 0,"+x+" L "+B+", "+B+" Z";b=new o.w(j,_,g,y,1,1,f,D),s=this.maps.renderer.drawPath(b),R.appendChild(s),U.appendChild(R),T.appendChild(U)}if(m=Math.abs(m),I=0===m?"M "+h[E].x+","+h[E].y+"L "+h[E+1].x+","+h[E+1].y+" ":"M "+h[E].x+","+h[E].y+" A "+(z/2+(1-m)*z/(10*m))+" "+(z/2+(1-m)*z/(10*m))+" 0,0,"+v+" , "+h[E+1].x+","+h[E+1].y+" ",b=new o.w(A,"none",g,y,1,1,f,I),s=this.maps.renderer.drawPath(b),!i.i(a.isNullOrUndefined)(M)){"Start"===M?s.setAttribute("marker-start",L):s.setAttribute("marker-end",C)}i.i(o.V)(this.maps.selectedNavigationElementId,this.maps.navigationSelectionClass,s,"navigationlineselectionMapStyle"),T.appendChild(s),l.appendChild(T)}h=[]}}return l},e.prototype.convertRadius=function(e,t){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))},e.prototype.getModuleName=function(){return"NavigationLine"},e.prototype.destroy=function(){this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return f});var n=i(1),o=(i.n(n),i(6)),a=(i.n(o),i(0)),r=i(4),l=i(11),s=i(3),d=i(5),p=i(10),h=i(0),c=i(12),u=i(2),m=i(25),g=(i.n(m),this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()),y=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},f=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.isTileMap=!1,r.isResize=!1,r.isReset=!1,r.baseSize=new a.a(0,0),r.translatePoint=new a.r(0,0),r.baseTranslatePoint=new a.r(0,0),r.zoomTranslatePoint=new a.r(0,0),r.markerZoomedState=!0,r.zoomPersistence=!1,r.defaultState=!0,r.centerPositionChanged=!1,r.isTileMapSubLayer=!1,r.markerNullCount=0,r.tileTranslatePoint=new a.r(0,0),r.baseTileTranslatePoint=new a.r(0,0),r.isDevice=!1,r.staticMapZoom=r.zoomSettings.enable?r.zoomSettings.zoomFactor:0,r.zoomNotApplied=!1,r.dataLabelShape=[],r.zoomShapeCollection=[],r.zoomLabelPositions=[],r.mouseDownEvent={x:null,y:null},r.mouseClickEvent={x:null,y:null},r.selectedElementId=[],r.selectedMarkerElementId=[],r.selectedBubbleElementId=[],r.selectedNavigationElementId=[],r.selectedLegendElementId=[],r.legendSelectionCollection=[],r.shapeSelections=!0,r.legendSelection=!0,r.toggledLegendId=[],r.toggledShapeElementId=[],r.checkInitialRender=!0,r.initialTileTranslate=new a.r(0,0),r.initialCheck=!0,r.applyZoomReset=!1,r.markerClusterExpandCheck=!1,r.markerClusterExpand=!1,r.shapeSelectionItem=[],i.i(n.setValue)("mergePersistData",r.mergePersistMapsData,r),r}return g(t,e),Object.defineProperty(t.prototype,"isShapeSelected",{get:function(){return this.mapSelect},enumerable:!0,configurable:!0}),t.prototype.mergePersistMapsData=function(){var e,t;try{t=window.localStorage}catch(e){t=null}if(i.i(n.isNullOrUndefined)(t)||(e=window.localStorage.getItem(this.getModuleName()+this.element.id)),!i.i(n.isNullOrUndefined)(e)&&""!==e){var o=JSON.parse(e),a=Object.keys(o);this.isProtectedOnChange=!0;for(var r=0,l=a;r<l.length;r++){var s=l[r];"object"!=typeof this[s]||i.i(n.isNullOrUndefined)(this[s])?this[s]=o[s]:i.i(n.extend)(this[s],o[s])}this.isProtectedOnChange=!1}},t.prototype.getLocalizedLabel=function(e){return this.localeObject.getConstant(e)},t.prototype.preRender=function(){this.isDevice=n.Browser.isDevice,this.initPrivateVariable(),this.allowServerDataBinding=!1,this.unWireEVents(),this.wireEVents(),this.setCulture()},t.prototype.renderElements=function(){this.isDestroyed||(this.trigger(s.a,{maps:this}),this.createSVG(),this.findBaseAndSubLayers(),this.createSecondaryElement(),this.addTabIndex(),this.themeStyle=i.i(d.c)(this.theme),this.renderBorder(),this.renderTitle(this.titleSettings,"title",null,null),this.renderArea(),this.processRequestJsonData(),this.renderComplete(),this.isAddLayer=!!this.isTileMap&&this.isAddLayer)},t.prototype.render=function(){this.renderElements()},t.prototype.processRequestJsonData=function(){var e=this,t=this.layersCollection.length-1;this.serverProcess={request:0,response:0};var o,a;Array.prototype.forEach.call(this.layersCollection,function(r,l){if(r.shapeData instanceof m.DataManager){e.serverProcess.request++,a=r.shapeData,o=r.query instanceof m.Query?r.query:new m.Query;var s=a.executeQuery(o);s.then(function(t){e.processResponseJsonData("DataManager",t,r,"ShapeData")})}else(r.shapeData instanceof h._59||r.shapeData)&&(i.i(n.isNullOrUndefined)(r.shapeData.dataOptions)||e.processAjaxRequest(r,r.shapeData,"ShapeData"));if(r.dataSource instanceof m.DataManager){e.serverProcess.request++,a=r.dataSource,o=r.query instanceof m.Query?r.query:new m.Query;var s=a.executeQuery(o);s.then(function(e){r.dataSource=i.i(h._63)(e)})}if(r.markerSettings.length>0)for(var d=0;d<r.markerSettings.length;d++)!function(t){if(r.markerSettings[t].dataSource instanceof m.DataManager){e.serverProcess.request++,a=r.markerSettings[t].dataSource,o=r.markerSettings[t].query instanceof m.Query?r.markerSettings[t].query:new m.Query;a.executeQuery(o).then(function(e){r.markerSettings[t].dataSource=i.i(h._63)(e)})}}(d);if(r.bubbleSettings.length>0)for(var d=0;d<r.bubbleSettings.length;d++)!function(t){if(r.bubbleSettings[t].dataSource instanceof m.DataManager){e.serverProcess.request++,a=r.bubbleSettings[t].dataSource,o=r.bubbleSettings[t].query instanceof m.Query?r.bubbleSettings[t].query:new m.Query;a.executeQuery(o).then(function(e){r.bubbleSettings[t].dataSource=i.i(h._63)(e)})}}(d);(r.dataSource instanceof h._59||!i.i(n.isNullOrUndefined)(r.dataSource.dataOptions))&&e.processAjaxRequest(r,r.dataSource,"DataSource"),e.serverProcess.request===e.serverProcess.response&&t===l&&e.processResponseJsonData(null)})},t.prototype.processAjaxRequest=function(e,t,i){var o=this;this.serverProcess.request++;var a=new n.Ajax(t.dataOptions,t.type,t.async,t.contentType);a.onSuccess=function(t){o.processResponseJsonData("Ajax",t,e,i)},a.send(t.sendData)},t.prototype.processResponseJsonData=function(e,t,o,a){if(this.serverProcess.response++,e&&("ShapeData"===a?o.shapeData="DataManager"===e?i.i(h._63)(t):JSON.parse(t):o.dataSource="DataManager"===e?i.i(h._63)(t):JSON.parse("["+t+"]")[0]),i.i(n.isNullOrUndefined)(e)||this.serverProcess.request!==this.serverProcess.response)i.i(n.isNullOrUndefined)(e)&&this.renderMap();else{var r=this.layersCollection;this.layersCollection=[];for(var l=0;l<r.length;l++)r[l].isBaseLayer&&this.layersCollection.push(r[l]);for(var s=0;s<r.length;s++)r[s].isBaseLayer||this.layersCollection.push(r[s]);this.renderMap()}},t.prototype.renderMap=function(){this.legendModule&&this.legendSettings.visible&&this.legendModule.renderLegend(),this.createTile(),this.zoomSettings.enable&&this.zoomModule&&this.zoomModule.createZoomingToolbars(),i.i(n.isNullOrUndefined)(this.dataLabelModule)||(this.dataLabelModule.dataLabelCollections=[],this.dataLabelShape=[]),this.mapLayerPanel.measureLayerPanel(),i.i(n.isNullOrUndefined)(this.svgObject)||this.element.appendChild(this.svgObject);for(var e=this.getExtraPosition(),t=0;t<this.layers.length;t++){if(0!==e.x||0!==e.y){var o=document.getElementById(this.element.id+"_LayerIndex_"+t+"_Markers_Template_Group");i.i(n.isNullOrUndefined)(o)||(o.style.top=this.mapAreaRect.y+e.y+"px",o.style.left=this.mapAreaRect.x+e.x+"px")}if(this.layers[t].selectionSettings&&this.layers[t].selectionSettings.enable&&this.layers[t].initialShapeSelection.length>0&&this.checkInitialRender){var a=this.layers[t].selectionSettings.enableMultiSelect;this.layers[t].selectionSettings.enableMultiSelect=a||!0;for(var r=this.layers[t].initialShapeSelection,l=0;l<this.layers[t].initialShapeSelection.length;l++)this.shapeSelection(t,r[l].shapePath,r[l].shapeValue,!0);this.layers[t].selectionSettings.enableMultiSelect=a,t===this.layers.length-1&&(this.checkInitialRender=!1)}if(!this.isResize)for(var d=0;d<this.layers[t].markerSettings.length;d++)if(this.layers[t].markerSettings[d].selectionSettings&&this.layers[t].markerSettings[d].selectionSettings.enable&&this.layers[t].markerSettings[d].initialMarkerSelection.length>0)for(var p=this.layers[t].markerSettings[d].initialMarkerSelection,l=0;l<p.length;l++)this.markerInitialSelection(t,d,this.layers[t].markerSettings[d],p[l].latitude,p[l].longitude)}if(!i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_tile_parent"))){var c,u=this.svgObject.getBoundingClientRect(),m=document.getElementById(this.element.id),g=document.getElementById(this.element.id+"_tile_parent"),y=document.getElementById(this.element.id+"_tiles"),f=g.getBoundingClientRect(),b=void 0,v=void 0;v=parseFloat(g.style.left)+m.offsetLeft;var S=i.i(h.u)(this.titleSettings.text,this.titleSettings.textStyle),_=i.i(h.u)(this.titleSettings.subtitleSettings.text,this.titleSettings.subtitleSettings.textStyle);this.isTileMap&&this.isTileMapSubLayer&&"Bottom"===this.legendSettings.position&&this.legendSettings.visible?"Default"!==this.legendSettings.mode?c=0!==S.width&&0!==S.height?parseFloat(g.style.top)+m.offsetTop+_.height/2-this.legendModule.legendBorderRect.height/2:parseFloat(g.style.top)+m.offsetTop-this.mapAreaRect.y:(v=this.legendModule.legendBorderRect.x,c=0!==S.width&&0!==S.height?parseFloat(g.style.top)+m.offsetTop+_.height/2-this.legendModule.legendBorderRect.y:parseFloat(g.style.top)+m.offsetTop+_.height/2):(b=u.bottom-f.bottom-m.offsetTop,c=parseFloat(g.style.top)+m.offsetTop),c=b<=11?c:i.i(n.isNullOrUndefined)(this.legendModule)||"Bottom"!==this.legendSettings.position?2*c:this.mapAreaRect.y,v=b<=11?v:i.i(n.isNullOrUndefined)(this.legendModule)?2*v:v,g.style.top=c+"px",g.style.left=v+"px",y.style.top=c+"px",y.style.left=v+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(g.style.height=y.style.height=this.legendModule.legendTotalRect.height+"px",g.style.width=y.style.width=this.legendModule.legendTotalRect.width+"px")}this.arrangeTemplate(),this.annotationsModule&&"0px"!==this.width&&"0px"!==this.height&&"0%"!==this.width&&"0%"!==this.height&&this.annotationsModule.renderAnnotationElements(),this.element.style.outline="none";for(var t=0;t<document.getElementsByTagName("path").length-1;t++)document.getElementsByTagName("path")[t].id.indexOf("shapeIndex")>-1&&(document.getElementsByTagName("path")[t].style.outline="none");this.zoomingChange(),this.isZoomByPosition||this.zoomNotApplied||this.trigger(s.b,{maps:this,isResized:this.isResize}),this.isResize=!1},t.prototype.markerSelection=function(e,t,n,o){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,target:n.id,cancel:!1,data:o,maps:t};i.i(a._31)("MarkerselectionMap")?i.i(a._38)("MarkerselectionMap","MarkerselectionMapStyle",l):document.body.appendChild(i.i(a._37)("MarkerselectionMap","MarkerselectionMapStyle",l)),(0===this.selectedMarkerElementId.length||e.enableMultiSelect)&&("g"===n.tagName?(n.children[0].setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.children[0].id)):(n.setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.id)))},t.prototype.markerInitialSelection=function(e,t,n,o,r){var l=n.selectionSettings;if(l.enable)for(var s=0;s<n.dataSource.length;s++){var d=n.dataSource[s];if(d.latitude===o&&d.longitude===r){var p=this.element.id+"_LayerIndex_"+e+"_MarkerIndex_"+t+"_dataIndex_"+s;this.markerSelection(l,this,i.i(a._31)(p),d)}}},t.prototype.renderArea=function(){var e=this.mapsArea.border.width,t=this.mapsArea.background;if(e>0||t||this.themeStyle.areaBackgroundColor){var o={opacity:i.i(n.isNullOrUndefined)(this.mapsArea.border.opacity)?1:this.mapsArea.border.opacity,color:this.mapsArea.border.color,width:this.mapsArea.border.width},a=new h.y(this.element.id+"_MapAreaBorder",t||this.themeStyle.areaBackgroundColor,o,1,this.mapAreaRect);this.svgObject.appendChild(this.renderer.drawRectangle(a))}},t.prototype.addTabIndex=function(){this.element.setAttribute("aria-label",this.description||"Maps Element"),this.element.setAttribute("role",""),this.element.tabIndex=this.tabIndex},t.prototype.zoomingChange=function(){var e,t;if(i.i(h._27)(this.element.id+"_Layer_Collections")&&this.zoomModule&&(this.zoomModule.layerCollectionEle=i.i(h._27)(this.element.id+"_Layer_Collections")),this.isTileMap&&i.i(h._27)(this.element.id+"_Tile_SVG")&&i.i(h._27)(this.element.id+"_tile_parent")){var o=i.i(h._27)(this.element.id+"_tile_parent"),a=i.i(h._27)(this.element.id+"_Tile_SVG"),r=i.i(h._27)(this.element.id+"_Tile_SVG_Parent"),l=o.getBoundingClientRect(),s=a.getBoundingClientRect();e=l.left-s.left,t=l.top-s.top,r.style.left=e+"px",r.style.top=t+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(o.style.width=a.style.width=this.legendModule.legendTotalRect.width.toString(),o.style.height=a.style.height=this.legendModule.legendTotalRect.height.toString(),r.style.width=this.legendModule.legendTotalRect.width+"px",r.style.height=this.legendModule.legendTotalRect.height+"px");var d=document.getElementsByClassName("template");if(!i.i(n.isNullOrUndefined)(d)&&d.length>0)for(var p=0;p<d.length;p++){var c=d[p];c.style.left=e+"px",c.style.top=t+"px"}}if(this.zoomSettings.zoomFactor>=0){this.zoomModule&&this.zoomModule.toolBarGroup&&this.zoomSettings.enable&&this.zoomModule.alignToolBar();var m=document.getElementById(this.element.id+"_Layer_Collections");if(!i.i(n.isNullOrUndefined)(m)&&m.childElementCount>0)for(var p=0;p<m.childNodes.length;p++){var g=m.childNodes[p];if("g"===g.tagName&&-1===g.id.indexOf("_Legend_Group"))for(var y=parseFloat(g.id.split("_LayerIndex_")[1].split("_")[0]),f=0;f<g.childNodes.length;f++){var b=g.childNodes[f];b.id.indexOf("_Markers_Group")>-1||b.id.indexOf("_bubble_Group")>-1||b.id.indexOf("_dataLableIndex_Group")>-1||i.i(u._114)(b,y,this.scale,this)}}this.zoomModule&&(this.previousScale!==this.scale||this.zoomNotApplied||this.isZoomByPosition)&&this.zoomModule.applyTransform(this,!0)}},t.prototype.createSecondaryElement=function(){if(i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_Secondary_Element"))){var e=i.i(n.createElement)("div",{id:this.element.id+"_Secondary_Element"});e.style.cssText="position: absolute;z-index:2;",this.element.appendChild(e)}},t.prototype.arrangeTemplate=function(){document.getElementById(this.element.id+"_Legend_Border")&&(document.getElementById(this.element.id+"_Legend_Border").style.pointerEvents="none");var e=document.getElementsByClassName(this.element.id+"_template");if(!i.i(n.isNullOrUndefined)(e)&&e.length>0&&i.i(h._27)(this.element.id+"_Layer_Collections")&&!this.isTileMap)for(var t=0;t<e.length;t++){var o=0,a=0,r=e[t];if(!i.i(n.isNullOrUndefined)(r)&&r.childElementCount>0){var l=i.i(h._27)(this.element.id+"_Layer_Collections").getBoundingClientRect(),s=i.i(h._27)(r.id).getBoundingClientRect();-1===r.id.indexOf("Marker")&&(o=this.isTileMap?0:l.left<s.left?-Math.abs(s.left-l.left):Math.abs(s.left-l.left),a=this.isTileMap?0:l.top<s.top?-Math.abs(s.top-l.top):Math.abs(s.top-l.top));for(var d=0;d<r.childElementCount;d++){var p=r.childNodes[d];if(-1!==p.id.indexOf("Marker")){var c=i.i(h._27)(p.id).getBoundingClientRect();p.style.left=parseFloat(p.style.left)-(this.isTileMap?0:c.width/2)+"px",p.style.top=parseFloat(p.style.top)-(this.isTileMap?0:c.height/2)+"px"}else p.style.left=parseFloat(p.style.left)+o+"px",p.style.top=parseFloat(p.style.top)+a+"px",p.style.transform="translate(-50%, -50%)"}}}},t.prototype.createTile=function(){var e=this.layersCollection[0];if(e.isBaseLayer&&("OSM"===e.layerType||"Bing"===e.layerType||"GoogleStaticMap"===e.layerType||"Google"===e.layerType||!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate)){i.i(a._22)(this.element.id+"_tile_parent"),i.i(a._22)(this.element.id+"_tiles"),i.i(a._22)("animated_tiles");var t=i.i(n.createElement)("div",{id:this.element.id+"_tile_parent"});t.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;";var o=i.i(n.createElement)("div",{id:this.element.id+"_tiles"});o.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;",this.element.appendChild(t),this.element.appendChild(o)}},t.prototype.initPrivateVariable=function(){if(""===this.element.id){var e=document.getElementsByClassName("e-maps").length;this.element.id="maps_control_"+e}this.renderer=new o.SvgRenderer(this.element.id),this.mapLayerPanel=new p.a(this)},t.prototype.findBaseAndSubLayers=function(){var e=this,t=this.baseLayerIndex,o=[],a=[];this.layersCollection=[],Array.prototype.forEach.call(this.layers,function(e){"Layer"===e.type?o.push(e):a.push(e)});for(var r=0;r<o.length;r++){var l=o[r];if(l.visible&&t===r){l.isBaseLayer=!0,this.isTileMap=!("Geometry"===l.layerType&&!i.i(n.isNullOrUndefined)(l.shapeData)),this.layersCollection.push(l);break}if(r===o.length-1){this.layersCollection.push(o[0]);break}}a.map(function(t){t.visible&&e.layersCollection.push(t)})},t.prototype.renderBorder=function(){var e=this.border.width,t=this.svgObject.querySelector("#"+this.element.id+"_MapBorder");if((e>0||this.background||this.themeStyle.backgroundColor)&&i.i(n.isNullOrUndefined)(t)){var o={opacity:i.i(n.isNullOrUndefined)(this.border.opacity)?1:this.border.opacity,color:this.border.color,width:this.border.width},a=new h.y(this.element.id+"_MapBorder",this.background||this.themeStyle.backgroundColor,o,1,new h.F(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e));this.svgObject.appendChild(this.renderer.drawRectangle(a))}else t.setAttribute("fill",this.background||this.themeStyle.backgroundColor)},t.prototype.renderTitle=function(e,t,o,a){var r,l={size:e.textStyle.size,color:e.textStyle.color,fontFamily:e.textStyle.fontFamily,fontWeight:e.textStyle.fontWeight,fontStyle:e.textStyle.fontStyle,opacity:e.textStyle.opacity},s=Math.abs(this.margin.left+this.margin.right-this.availableSize.width);if(l.fontFamily=i.i(n.isNullOrUndefined)(l.fontFamily)?this.themeStyle.fontFamily:l.fontFamily,l.fontWeight=l.fontWeight||this.themeStyle.titleFontWeight,l.size="title"===t?l.size||this.themeStyle.titleFontSize:l.size||d.b.mapsSubTitleFont.size,e.text){i.i(n.isNullOrUndefined)(a)&&(a=this.renderer.createGroup({id:this.element.id+"_Title_Group"}));var p=i.i(h._20)(s,e.text,l),c=i.i(h.u)(p,l),u=i.i(n.isNullOrUndefined)(o)?new h.F(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height):o,m=i.i(h._21)(u,e.alignment,c,t),g=new h.v(this.element.id+"_Map_"+t,m.x,m.y,"start",p),y=new h.F(m.x,m.y,c.width,c.height),f=i.i(h.H)(g,l,l.color||("title"===t?this.themeStyle.titleFontColor:this.themeStyle.subTitleFontColor),a);f.setAttribute("aria-label",this.description||e.text),f.setAttribute("role",""),("title"===t&&!e.subtitleSettings.text||"subtitle"===t)&&(r=Math.abs(y.y+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new h.F(this.margin.left,y.y+10,s,r-10)),"subtitle"!==t&&e.subtitleSettings.text?this.renderTitle(e.subtitleSettings,"subtitle",y,a):this.svgObject.appendChild(a)}else r=Math.abs(this.margin.top+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new h.F(this.margin.left,this.margin.top,s,r)},t.prototype.createSVG=function(){this.removeSvg(),i.i(a.d)(this)},t.prototype.removeSvg=function(){if(i.i(a._22)(this.element.id+"_Secondary_Element"),i.i(a._22)(this.element.id+"_tile_parent"),i.i(a._22)(this.element.id+"_tiles"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&i.i(n.remove)(this.svgObject)}this.clearTemplate()},t.prototype.wireEVents=function(){n.EventHandler.add(this.element,"click",this.mapsOnClick,this),n.EventHandler.add(this.element,"dblclick",this.mapsOnDoubleClick,this),n.EventHandler.add(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap,this),n.EventHandler.add(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap,this),n.EventHandler.add(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap,this),n.EventHandler.add(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap,this),n.EventHandler.add(this.element,"keydown",this.keyDownHandler,this),n.EventHandler.add(this.element,"keyup",this.keyUpHandler,this),this.resizeEvent=this.mapsOnResize.bind(this),window.addEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.unWireEVents=function(){n.EventHandler.remove(this.element,"click",this.mapsOnClick),n.EventHandler.remove(this.element,"dblclick",this.mapsOnDoubleClick),n.EventHandler.remove(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap),n.EventHandler.remove(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap),n.EventHandler.remove(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap),n.EventHandler.remove(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap),n.EventHandler.remove(this.element,"keydown",this.keyDownHandler),n.EventHandler.remove(this.element,"keyup",this.keyUpHandler),window.removeEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.mouseLeaveOnMap=function(e){document.getElementsByClassName("highlightMapStyle").length>0&&this.legendModule&&(this.legendModule.removeShapeHighlightCollection(),i.i(a._40)(document.getElementsByClassName("highlightMapStyle")[0]))},t.prototype.keyUpHandler=function(e){var t=e.target.id;this.isTileMap&&this.removeTileMap(),"Tab"===e.code&&t.indexOf("_LayerIndex_")>-1&&t.indexOf("shapeIndex")>-1?this.keyboardHighlightSelection(t,e.type):-1===t.indexOf("_LayerIndex_")&&-1===t.indexOf("shapeIndex")&&i.i(h._34)("highlightMapStyle").length>0&&(i.i(a._40)(i.i(h._34)("highlightMapStyle")[0]),this.legendSettings.visible&&this.legendModule&&this.legendModule.removeShapeHighlightCollection())},t.prototype.keyboardHighlightSelection=function(e,t){var o=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),a=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),r=this.layers[o].shapeData.features.length>a?this.layers[o].shapeData.features[a].properties:null,l=parseInt(e.split("_dataIndex_")[1].split("_")[0],10),s=i.i(n.isNullOrUndefined)(l)?null:this.layers[o].dataSource[l];this.layers[o].selectionSettings.enable&&"keydown"===t&&this.selectionModule?(this.selectionModule.selectionsettings=this.layers[o].selectionSettings,this.selectionModule.selectionType="Shape",this.selectionModule.selectElement(event.target,o,s,r)):this.highlightModule&&this.layers[o].highlightSettings.enable&&"keyup"===t&&!event.target.classList.contains("ShapeselectionMapStyle")&&(this.highlightModule.highlightSettings=this.layers[o].highlightSettings,this.highlightModule.handleHighlight(event.target,o,s,r))},t.prototype.keyDownHandler=function(e){var t=this.zoomModule;if(("ArrowUp"===e.code||"ArrowDown"===e.code||"ArrowLeft"===e.code||"ArrowRight"===e.code)&&t){var o=document.getElementById(this.element.id+"_animated_tiles");this.isTileMap&&!i.i(n.isNullOrUndefined)(o)&&(this.currentTiles=o.cloneNode(!0))}if("+"!==e.key&&"Equal"!==e.code||!t)if("-"!==e.key&&"Minus"!==e.code||!t)if(82===e.keyCode&&t)t.performZoomingByToolBar("reset");else if("ArrowUp"!==e.code&&"ArrowDown"!==e.code||!t)if("ArrowLeft"!==e.code&&"ArrowRight"!==e.code||!t){if("Enter"===e.code){var r=e.target.id;if(e.preventDefault(),this.legendModule&&(r.indexOf("_Left_Page_Rect")>-1||r.indexOf("_Right_Page_Rect")>-1)){this.mapAreaRect=this.legendModule.initialMapAreaRect,this.legendModule.currentPage=r.indexOf("_Left_Page_")>-1?this.legendModule.currentPage-1:this.legendModule.currentPage+1,this.legendModule.legendGroup=this.renderer.createGroup({id:this.element.id+"_Legend_Group"}),this.legendModule.drawLegendItem(this.legendModule.currentPage);var l=document.getElementById(this.element.id+"_Paging_Text").textContent,s=l.split("/").map(Number);r.indexOf("_Left_Page_Rect")>-1?(1!==s[0]&&e.target.focus(),e.target.style.outlineColor=s[0]-1!==s[1]?"":"transparent"):r.indexOf("_Right_Page_Rect")>-1&&(s[0]!==s[1]&&e.target.focus(),e.target.style.outlineColor=s[0]!==s[1]+1?"":"transparent"),i.i(a._35)(this.element.id+"_Legend_Border",this.element.id)&&(i.i(a._35)(this.element.id+"_Legend_Border",this.element.id).style.pointerEvents="none")}r.indexOf("shapeIndex")>-1&&this.keyboardHighlightSelection(r,e.type)}}else e.preventDefault(),t.mouseDownLatLong.y=0,t.mouseMoveLatLong.x=this.mapAreaRect.width/7,t.panning("None","ArrowLeft"===e.code?-t.mouseMoveLatLong.x:t.mouseMoveLatLong.x,t.mouseDownLatLong.y,e),t.mouseDownLatLong.x=t.mouseMoveLatLong.x;else e.preventDefault(),t.mouseDownLatLong.x=0,t.mouseMoveLatLong.y=this.mapAreaRect.height/7,t.panning("None",t.mouseDownLatLong.x,"ArrowUp"===e.code?-t.mouseMoveLatLong.y:t.mouseMoveLatLong.y,e),t.mouseDownLatLong.y=t.mouseMoveLatLong.y;else t.performZoomingByToolBar("zoomout");else t.performZoomingByToolBar("zoomin")},t.prototype.SelectedElement=function(e){var t=!1;return"ShapeselectionMapStyle"===e.getAttribute("class")&&(t=!0),t},t.prototype.mapsOnClick=function(e){var t=this,o=e.target,a=o.id,r=null,l=null;if(this.mouseClickEvent={x:e.x,y:e.y},-1===o.id.indexOf("_ToolBar")){var d=this.getClickLocation(a,e.pageX,e.pageY,o,e.layerX,e.layerY);i.i(n.isNullOrUndefined)(d)||(r=d.latitude,l=d.longitude);var p={cancel:!1,name:s.c,target:a,x:e.clientX,y:e.clientY,latitude:r,longitude:l,isShapeSelected:this.SelectedElement(o)};this.onclick?(p.name=s.d,this.trigger("onclick",p,function(i){t.clickHandler(e,p,o)})):this.trigger("click",p,function(i){t.clickHandler(e,p,o)})}},t.prototype.clickHandler=function(e,t,n){n.id.indexOf("shapeIndex")>-1&&(this.mergeCluster(),i.i(a._31)(this.element.id+"_mapsTooltip")&&this.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._22)(this.element.id+"_mapsTooltip")),this.markerModule&&this.markerModule.markerClusterClick(e),t.cancel||this.notify(s.c,n),t.cancel||-1===n.id.indexOf("shapeIndex")||this.triggerShapeSelection(n)},t.prototype.triggerShapeSelection=function(e){var t=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),o=i.i(a._33)(e.id,this.layers[t].selectionSettings,this,s.i);o.cancel||!this.selectionModule||i.i(n.isNullOrUndefined)(this.shapeSelected)?o.cancel&&this.selectionModule&&i.i(n.isNullOrUndefined)(o.data)&&(i.i(a._40)(e),this.selectionModule.removedSelectionList(e)):i.i(a._38)(this.selectionModule.selectionType+"selectionMap",this.selectionModule.selectionType+"selectionMapStyle",o)},t.prototype.getClickLocation=function(e,t,n,o,r,l){var s,d=0;if(-1===e.indexOf("_LayerIndex_")||this.isTileMap||parseInt(this.mouseDownEvent.x,10)!==parseInt(this.mouseClickEvent.x,10)||parseInt(this.mouseDownEvent.y,10)!==parseInt(this.mouseClickEvent.y,10))this.isTileMap&&parseInt(this.mouseDownEvent.x,10)===parseInt(this.mouseClickEvent.x,10)&&parseInt(this.mouseDownEvent.y,10)===parseInt(this.mouseClickEvent.y,10)&&(s=this.getTileGeoLocation(r,l));else if(d=parseFloat(e.split("_LayerIndex_")[1].split("_")[0]),"Normal"===this.layers[d].geometryType)if(e.indexOf("_shapeIndex_")>-1){var p=i.i(a.e)(t,n,o.parentElement),h=Math.abs(-this.baseMapBounds.longitude.min*this.mapLayerPanel.currentFactor),c=Math.abs(this.baseMapBounds.latitude.max*this.mapLayerPanel.currentFactor);s={latitude:Math.abs(this.baseMapBounds.latitude.max-p.y/this.mapLayerPanel.currentFactor),longitude:Math.abs(p.x/this.mapLayerPanel.currentFactor+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&h>p.x&&(s.longitude=-s.longitude),this.baseMapBounds.latitude.min<0&&c>p.y&&(s.latitude=-s.latitude)}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule){var u=parseInt(e.split("_MarkerIndex_")[1].split("_")[0],10),m=parseInt(e.split("_dataIndex_")[1].split("_")[0],10);if(isNaN(u)||isNaN(m))s={latitude:null,longitude:null};else{var g=this.layers[d].markerSettings[u].dataSource[m];s={latitude:g.latitude,longitude:g.longitude}}}else s={latitude:null,longitude:null};else s=this.getGeoLocation(d,r,l);return s},t.prototype.removeTileMap=function(){var e=document.getElementById(this.element.id+"_animated_tiles");if(!i.i(n.isNullOrUndefined)(this.currentTiles)&&e.childElementCount<this.currentTiles.childElementCount)for(var t=e.childElementCount-1;t>=this.currentTiles.childElementCount;t--)e.removeChild(e.children[t]);this.currentTiles=null},t.prototype.mouseEndOnMap=function(e){var t,o,a,r=e.target,l=r.id;this.element.getBoundingClientRect(),e.target;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,a=e,t=a.changedTouches[0].pageX,o=a.changedTouches[0].pageY,a.target,this.mouseClickEvent={x:t,y:o}):(this.isTouch="touch"===e.pointerType,t=e.pageX,o=e.pageY,e.target),this.isTileMap&&this.removeTileMap(),this.isTouch){if(-1===r.id.indexOf("_ToolBar")){var s=this.getClickLocation(l,t,o,r,t,o);i.i(n.isNullOrUndefined)(s)||(s.latitude,s.longitude)}this.titleTooltip(e,t,o,!0),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)}return this.notify(n.Browser.touchEndEvent,e),e.cancelable&&!this.isTouch&&e.preventDefault(),!1},t.prototype.mouseDownOnMap=function(e){this.mouseDownEvent={x:e.x,y:e.y},-1!==e.type.indexOf("touch")&&e.changedTouches&&(this.mouseDownEvent={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY});var t=(this.element.getBoundingClientRect(),e.target),o=document.getElementById(this.element.id+"_animated_tiles");if(this.isTileMap&&!i.i(n.isNullOrUndefined)(o)&&(this.currentTiles=o.cloneNode(!0)),-1===t.id.indexOf("_ToolBar")){var a=this.markerModule;(t.id.indexOf("shapeIndex")>-1||t.id.indexOf("Tile")>-1)&&this.mergeCluster(),a&&(a.markerClick(e),a.markerClusterClick(e)),this.bubbleModule&&this.bubbleModule.bubbleClick(e)}this.notify(n.Browser.touchStartEvent,e)},t.prototype.mergeCluster=function(){this.markerModule&&this.markerModule.sameMarkerData.length>0&&(!this.zoomModule||this.zoomModule.isSingleClick)&&(i.i(a.R)(this.markerModule.sameMarkerData,this,i.i(a._31)(this.element.id+"_Markers_Group")),this.markerModule.sameMarkerData=[])},t.prototype.mapsOnDoubleClick=function(e){this.notify("dblclick",e);var t,i=e.target,n=i.id,o=0,a=null,r=null;if(-1===i.id.indexOf("_ToolBar")){-1===i.id.indexOf("_LayerIndex_")||this.isTileMap||this.mouseDownEvent.x!==e.clientX||this.mouseDownEvent.y!==e.clientY?this.isTileMap&&this.mouseDownEvent.x===e.clientX&&this.mouseDownEvent.y===e.clientY&&(t=this.getTileGeoLocation(e.layerX,e.layerY),a=t.latitude,r=t.longitude):(o=parseFloat(i.id.split("_LayerIndex_")[1].split("_")[0]),t=this.getGeoLocation(o,e.layerX,e.layerY),a=t.latitude,r=t.longitude);var l={cancel:!1,name:s.f,x:e.clientX,y:e.clientY,target:n,latitude:a,longitude:r,isShapeSelected:null};this.trigger("doubleClick",l)}},t.prototype.mouseMoveOnMap=function(e){"touchmove"===e.type?e.target:e.target,this.markerModule&&(this.markerModule.markerMove(e),this.markerModule.markerClusterMouseMove(e)),this.bubbleModule&&this.bubbleModule.bubbleMove(e),this.onMouseMove(e),this.notify(n.Browser.touchMoveEvent,e)},t.prototype.onMouseMove=function(e){e.target;return this.isTouch||(this.titleTooltip(e,e.pageX,e.pageY),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)),!1},t.prototype.legendTooltip=function(e,t,n,o){var r,l,s=e.target.id,d=this.legendModule.currentPage,p=e.target.id.split("_Index_")[1];d=this.legendModule.totalPages.length<=this.legendModule.currentPage?this.legendModule.totalPages.length-1:this.legendModule.currentPage<0?0:this.legendModule.currentPage;for(var h=0!==this.legendModule.totalPages.length?this.legendModule.totalPages[d].Collection.length:this.legendModule.totalPages.length,c=0;c<h;c++)l=this.legendModule.totalPages[d].Collection[c],r=l.DisplayText,s=e.target.id,p=e.target.id.split("_Index_")[1],s===this.element.id+"_Legend_Text_Index_"+p&&e.target.textContent.indexOf("...")>-1&&l.idIndex===parseInt(p,10)&&i.i(a._43)(r,this.legendSettings.textStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Legend_Text_Tooltip",i.i(a._31)(this.element.id+"_Secondary_Element"),o);s!==this.element.id+"_Legend_Text_Index_"+p&&i.i(a._22)(this.element.id+"_EJ2_Legend_Text_Tooltip")},t.prototype.titleTooltip=function(e,t,n,o){var r=e.target.id;r===this.element.id+"_LegendTitle"&&e.target.textContent.indexOf("...")>-1?i.i(a._43)(this.legendSettings.title.text,this.legendSettings.titleStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_LegendTitle_Tooltip",i.i(a._31)(this.element.id+"_Secondary_Element"),o):i.i(a._22)(this.element.id+"_EJ2_LegendTitle_Tooltip"),r===this.element.id+"_Map_title"&&e.target.textContent.indexOf("...")>-1?i.i(a._43)(this.titleSettings.text,this.titleSettings.textStyle.size||this.themeStyle.titleFontSize,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Title_Tooltip",i.i(a._31)(this.element.id+"_Secondary_Element"),o):i.i(a._22)(this.element.id+"_EJ2_Title_Tooltip")},t.prototype.mapsOnResize=function(e){var t=this;if(!this.isDestroyed){this.isResize=this.isReset=!0;var o={cancel:!1,name:s.g,previousSize:this.availableSize,currentSize:i.i(a.c)(this),maps:this};this.trigger(s.g,o),o.cancel||(this.resizeTo&&clearTimeout(this.resizeTo),!i.i(n.isNullOrUndefined)(this.element)&&this.element.classList.contains("e-maps")&&(this.resizeTo=setTimeout(function(){t.unWireEVents(),t.createSVG(),t.refreshing=!0,t.wireEVents(),t.render(),t.refreshing=!1},500)))}return!1},t.prototype.zoomByPosition=function(e,t){if(!this.isDestroyed){this.zoomNotApplied=!1;var o=this.zoomSettings.zoomFactor===t;!this.isTileMap&&this.zoomModule?i.i(n.isNullOrUndefined)(e)?(this.zoomSettings.zoomFactor=t,this.isZoomByPosition=!0,this.mapScaleValue=null):(this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0,this.mapScaleValue=null):this.zoomModule&&(this.tileZoomLevel=this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0),o&&this.refresh()}},t.prototype.panByDirection=function(e,t){if(!this.isDestroyed){var i=0,n=0;switch(e){case"Left":i=-this.mapAreaRect.width/7;break;case"Right":i=this.mapAreaRect.width/7;break;case"Top":n=-this.mapAreaRect.height/7;break;case"Bottom":n=this.mapAreaRect.height/7}this.zoomModule&&this.zoomModule.panning(e,i,n,t)}},t.prototype.addLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.push(e),this.isAddLayer=!0,this.layers=t}},t.prototype.removeLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.splice(e,1),this.layers=t}},t.prototype.addMarker=function(e,t){if(!this.isDestroyed){var i=document.getElementById(this.element.id+"_LayerIndex_"+e);if(t.length>0&&i){for(var n=0,o=t;n<o.length;n++){var a=o[n];this.layersCollection[e].markerSettings.push(new u._9(this,"markerSettings",a))}new l.a(this).markerRender(this,i,e,this.mapLayerPanel.currentFactor,"AddMarker"),this.arrangeTemplate()}}},t.prototype.shapeSelection=function(e,t,o,r){if(!this.isDestroyed){var l=void 0,s=void 0,d=Array.isArray(t)?t:Array(t);i.i(n.isNullOrUndefined)(r)&&(r=!0);var p=this.layers[e].selectionSettings;if(!p.enableMultiSelect&&this.legendSelection&&r&&this.removeShapeSelection(),"SubLayer"===this.layers[e].type)for(var h=0;h<this.layersCollection.length;h++)if(this.layersCollection[h].shapeData===this.layers[e].shapeData){s=h;break}if(p.enable)for(var c=void 0,u=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=this.layers[e].shapeData.features,h=0;h<b.length;h++)for(var v=0;v<d.length;v++){var S=!i.i(n.isNullOrUndefined)(b[h].properties[d[v]])&&isNaN(b[h].properties[d[v]])?b[h].properties[d[v]].toLowerCase():b[h].properties[d[v]],_=i.i(n.isNullOrUndefined)(o)||"string"!=typeof o?o:o.toLowerCase(),x=void 0;if(S===_){i.i(n.isNullOrUndefined)(this.layers[e].shapeSettings.colorValuePath)||(x=i.i(a._14)(this.layers[e].dataSource,b[h].properties,this.layers[e].shapeDataPath,this.layers[e].shapePropertyPath,this.layers[e]));var O=this.layers[e];if(this.baseLayerIndex>=0&&O.isBaseLayer?g=0:"SubLayer"===this.layers[e].type&&(g=s),c=this.element.id+"_LayerIndex_"+g+"_shapeIndex_"+h+"_dataIndex_"+x,l=i.i(a._31)(c),i.i(n.isNullOrUndefined)(x)&&i.i(n.isNullOrUndefined)(l)&&(c=this.element.id+"_LayerIndex_"+e+"_shapeIndex_"+h+"_dataIndex_null",l=i.i(a._31)(c)),m=parseInt(l.id.split("_shapeIndex_")[1].split("_")[0],10),y=this.layers[e].shapeData.features.length>m?this.layers[e].shapeData.features[m].properties:null,u=parseInt(l.id.split("_dataIndex_")[1].split("_")[0],10),f=i.i(n.isNullOrUndefined)(u)?null:this.layers[e].dataSource[u],r){i.i(a._39)(p,this,l,y,f),this.shapeSelectionClass=i.i(a._31)("ShapeselectionMap"),this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M&&(l.setAttribute("class","ShapeselectionMapStyle"),-1===this.selectedElementId.indexOf(l.getAttribute("id"))&&this.selectedElementId.push(l.getAttribute("id")),!p.enableMultiSelect))return}else{this.legendSelection=!p.enableMultiSelect&&!this.legendSelection||this.legendSelection,this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&"ShapeselectionMapStyle"===l.getAttribute("class")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M){i.i(a._40)(l);var L=this.selectedElementId.indexOf(l.getAttribute("id"));-1!==L&&(this.selectedElementId.splice(L,1),!p.enableMultiSelect&&this.legendSelection&&this.selectedElementId.length>0&&this.removeShapeSelection())}}}}}},t.prototype.zoomToCoordinates=function(e,t,o,a){var r,l;if(!this.isDestroyed){var d=void 0,p=void 0,c=!1;this.centerPosition={latitude:null,longitude:null},this.isZoomByPosition=!1,(i.i(n.isNullOrUndefined)(o)&&i.i(n.isNullOrUndefined)(a)||i.i(n.isNullOrUndefined)(e)&&i.i(n.isNullOrUndefined)(t))&&(e=i.i(n.isNullOrUndefined)(e)?0:e,t=i.i(n.isNullOrUndefined)(e)?0:t,o=i.i(n.isNullOrUndefined)(o)?e:o,a=i.i(n.isNullOrUndefined)(a)?t:a,c=!0),e>o&&(r=[o,e],e=r[0],o=r[1]),t>a&&(l=[a,t],t=l[0],a=l[1]),c?(d=e+o,p=t+a):(d=(e+o)/2,p=(t+a)/2),this.centerLatOfGivenLocation=d,this.centerLongOfGivenLocation=p,this.minLatOfGivenLocation=e,this.minLongOfGivenLocation=t,this.maxLatOfGivenLocation=o,this.maxLongOfGivenLocation=a,this.zoomNotApplied=!0,this.scaleOfGivenLocation=i.i(h._62)(e,o,t,a,this.mapAreaRect.width,this.mapAreaRect.height,this);var u={cancel:!1,name:"zoom",type:s.F,maps:this,tileTranslatePoint:{},translatePoint:{},tileZoomLevel:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{},scale:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{previous:this.scale,current:this.scaleOfGivenLocation}};this.trigger("zoom",u),this.refresh()}},t.prototype.removeShapeSelection=function(){for(var e=this.selectedElementId.length,t=0;t<e;t++)i.i(a._40)(i.i(h._27)(this.selectedElementId[0])),this.selectedElementId.splice(0,1);if(this.legendSettings.visible)for(var n=this.legendSelectionCollection.length,t=0;t<n;t++)i.i(a._40)(i.i(h._27)(this.legendSelectionCollection[t].legendElement.id)),this.selectedLegendElementId.splice(0,1);this.shapeSelectionItem=[],this.legendSelectionCollection=[]},t.prototype.setCulture=function(){this.intl=new n.Internationalization,this.setLocaleConstants(),this.localeObject=new n.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},t.prototype.setLocaleConstants=function(){this.defaultLocalConstants={ZoomIn:"Zoom in",Zoom:"Zoom",ZoomOut:"Zoom out",Pan:"Pan",Reset:"Reset",ImageNotFound:"Image Not Found"}},t.prototype.destroy=function(){this.unWireEVents(),i.i(n.isNullOrUndefined)(this.mapsTooltipModule)||this.mapsTooltipModule.removeEventListener(),e.prototype.destroy.call(this),this.shapeSelectionItem=[],this.toggledShapeElementId=[],this.toggledLegendId=[],this.legendSelectionCollection=[],this.selectedLegendElementId=[],this.selectedNavigationElementId=[],this.selectedBubbleElementId=[],this.selectedMarkerElementId=[],this.selectedElementId=[],this.dataLabelShape=[],this.zoomShapeCollection=[],this.zoomLabelPositions=[],this.mouseDownEvent={x:null,y:null},this.mouseClickEvent={x:null,y:null},this.formatFunction=null,this.availableSize=new a.a(0,0),document.getElementById("mapsmeasuretext")&&document.getElementById("mapsmeasuretext").remove(),this.removeSvg()},t.prototype.getModuleName=function(){return"maps"},t.prototype.getPersistData=function(){var e=["translatePoint","zoomSettings","mapScaleValue","tileTranslatePoint","baseTranslatePoint","scale","zoomPersistence","defaultState","markerZoomedState","initialCheck","initialZoomLevel","initialTileTranslate","applyZoomReset","markerZoomFactor"];return this.addOnPersist(e)},t.prototype.onPropertyChanged=function(t,o){if(!this.isDestroyed){var r=!1,l=!1,s=!1,d=!1;if(t.layers){var p=Object.keys(t.layers).length;document.getElementById(this.element.id+"_LayerIndex_"+(p-1))}for(var h=0,c=Object.keys(t);h<c.length;h++){var u=c[h];switch(u){case"background":this.renderBorder();break;case"height":case"width":case"layers":case"projectionType":case"centerPosition":case"legendSettings":case"baseLayerIndex":if("layers"===u){s=!0;for(var m=Object.keys(t.layers).length,g=0;g<m;g++)if(!i.i(n.isNullOrUndefined)(t.layers[g]))for(var y=Object.keys(t.layers[g]),f=0,b=y;f<b.length;f++){var v=b[f];"layerType"===v&&"Geometry"!==t.layers[g].layerType||i.i(n.isNullOrUndefined)(this.layers[g].shapeData)&&!i.i(n.isNullOrUndefined)(this.layers[g].urlTemplate)&&""!==this.layers[g].urlTemplate?this.isReset=!0:"markerSettings"===v?l=!0:"staticMapType"===v&&(d=!0)}}r=!0;break;case"zoomSettings":i.i(n.isNullOrUndefined)(o.zoomSettings)||(t.zoomSettings.zoomFactor===o.zoomSettings.zoomFactor||s?t.zoomSettings.shouldZoomInitially!==o.zoomSettings.shouldZoomInitially?(this.zoomSettings.zoomFactor=1,r=!0):t.zoomSettings.enable!==o.zoomSettings.enable?(this.zoomSettings.zoomFactor=1,r=!0):r=!0:r=!1);break;case"locale":case"currencyCode":e.prototype.refresh.call(this)}}r&&(t.layers&&l?(i.i(a._22)(this.element.id+"_Markers_Group"),this.isTileMap?this.mapLayerPanel.renderTileLayer(this.mapLayerPanel,this.layers.currentFactor,this.layers.length-1):this.render()):t.layers&&d?this.mapLayerPanel.renderGoogleMap(this.layers[this.layers.length-1].key,this.staticMapZoom):(this.createSVG(),this.renderElements()))}},t.prototype.requiredModules=function(){var e=[],t=this.findVisibleLayers(this.layers),i=!1;return this.annotations.map(function(e){i=null!=e.content}),this.isBubbleVisible()&&e.push({member:"Bubble",args:[this]}),t.highlight&&e.push({member:"Highlight",args:[this]}),t.selection&&e.push({member:"Selection",args:[this]}),this.legendSettings.visible&&e.push({member:"Legend",args:[this]}),(this.zoomSettings.enable||this.zoomSettings.zoomFactor>this.zoomSettings.minZoom)&&e.push({member:"Zoom",args:[this]}),this.isMarkersVisible()&&e.push({member:"Marker",args:[this]}),this.isDataLabelVisible()&&e.push({member:"DataLabel",args:[this]}),this.isNavigationVisible()&&e.push({member:"NavigationLine",args:[this]}),t.tooltip&&e.push({member:"MapsTooltip",args:[this]}),i&&e.push({member:"Annotations",args:[this,c.a]}),this.allowPrint&&e.push({member:"Print",args:[this]}),this.allowImageExport&&e.push({member:"ImageExport",args:[this]}),this.allowPdfExport&&e.push({member:"PdfExport",args:[this]}),e},t.prototype.isMarkersVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.markerSettings.length;i++)if(t.markerSettings[i].visible){e=!0;break}}),e},t.prototype.isDataLabelVisible=function(){for(var e=!1,t=0;t<this.layers.length;t++)if(this.layers[t].dataLabelSettings.visible){e=!0;break}return e},t.prototype.isNavigationVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.navigationLineSettings.length;i++)if(t.navigationLineSettings[i].visible){e=!0;break}}),e},t.prototype.getExtraPosition=function(){var e=0,t=0,o=i.i(a._31)(this.element.id+"_svg");if(!i.i(n.isNullOrUndefined)(o)){var r=o.getClientRects(),l=i.i(a._31)(this.element.id+"_Secondary_Element").getClientRects();if(0!==r.length&&0!==l.length){var s=r[0],d=l[0];e=s.top-d.top,t=s.left-d.left}}return new a.r(t,e)},t.prototype.isBubbleVisible=function(){for(var e=!1,t=0,i=this.layers;t<i.length;t++){var n=i[t];if(this.getBubbleVisible(n)){e=!0;break}}return e},t.prototype.getBubbleVisible=function(e){for(var t=!1,i=0,n=e.bubbleSettings;i<n.length;i++){if(n[i].visible){t=!0;break}}return t},t.prototype.print=function(e){this.allowPrint&&this.printModule&&!this.isDestroyed&&this.printModule.print(this,e)},t.prototype.export=function(e,t,o,a){var r=this;if(!this.isDestroyed){if(i.i(n.isNullOrUndefined)(a)&&(a=!0),"PDF"!==e&&this.allowImageExport&&this.imageExportModule)return new Promise(function(i,n){i(r.imageExportModule.export(r,e,t,a))});if(this.allowPdfExport&&this.pdfExportModule)return new Promise(function(i,n){i(r.pdfExportModule.export(r,e,t,a,o))})}return null},t.prototype.getBingUrlTemplate=function(e){var t;return this.isDestroyed||(t=new Promise(function(t,i){var o=new n.Ajax({url:e});o.onSuccess=function(e){var i=JSON.parse(e),n=i.resourceSets[0].resources[0];t(n.imageUrl)},o.send()})),t},t.prototype.findVisibleLayers=function(e,t,i,n,o,a){void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),void 0===o&&(o=!1),void 0===a&&(a=!1);for(var r,l,s,d=0,p=e;d<p.length;d++){var h=p[d];if(t=h.visible||t,h.visible){r=h.bubbleSettings,l=h.markerSettings,s=h.navigationLineSettings;for(var c=0,u=s;c<u.length;c++){var m=u[c];m.visible&&(o=m.highlightSettings.enable||o,a=m.selectionSettings.enable||a)}for(var g=0,y=l;g<y.length;g++){var f=y[g];if(f.visible&&(n=f.tooltipSettings.visible||n,o=f.selectionSettings.enable||o,a=f.highlightSettings.enable||a),n)break}for(var b=0,v=r;b<v.length;b++){var S=v[b];if(S.visible&&(n=S.tooltipSettings.visible||n,o=S.selectionSettings.enable||o,a=S.highlightSettings.enable||a),n)break}n=h.tooltipSettings.visible||n,o=h.selectionSettings.enable||o,a=h.highlightSettings.enable||a}if(t&&i&&n)break}return{layer:t,bubble:i,tooltip:n,selection:o,highlight:a}},t.prototype.getGeoLocation=function(e,t,n){var o=0,r=0;if(!this.isDestroyed){var l=document.getElementById(this.element.id),s=t-l.offsetLeft,d=n-l.offsetTop,p=this.layersCollection[e],h=i.i(a._24)(this,p,!1),c=h.location,u=c.x*this.scale,m=c.y*this.scale,g=Math.min(this.mapAreaRect.height,this.mapAreaRect.width)*this.mapLayerPanel.currentFactor*this.scale,y=this.clip(s-u,0,g-1)/g-.5,f=.5-this.clip(d-m,0,g-1)/g;o=90-360*Math.atan(Math.exp(2*-f*Math.PI))/Math.PI,r=360*y}return{latitude:o,longitude:r}},t.prototype.clip=function(e,t,i){return Math.min(Math.max(e,t),i)},t.prototype.getTileGeoLocation=function(e,t){var i=0,n=0;if(!this.isDestroyed){var o=document.getElementById(this.element.id),a=document.getElementById(this.element.id+"_tile_parent"),r=this.pointToLatLong(e+this.mapAreaRect.x-(a.offsetLeft-o.offsetLeft),t+this.mapAreaRect.y-(a.offsetTop-o.offsetTop));i=r.latitude,n=r.longitude}return{latitude:i,longitude:n}},t.prototype.pointToLatLong=function(e,t){var i=0,n=0;if(!this.isDestroyed){var o="GoogleStaticMap"===this.layers[this.layers.length-1].layerType?0:10;t=this.zoomSettings.enable?t+o:t;var a=256*Math.pow(2,this.tileZoomLevel),r=this.clip(e-this.translatePoint.x*this.scale,0,a-1)/a-.5,l=.5-this.clip(t-this.translatePoint.y*this.scale,0,a-1)/a;i=90-360*Math.atan(Math.exp(2*-l*Math.PI))/Math.PI,n=360*r}return{latitude:i,longitude:n}},y([i.i(n.Property)(null)],t.prototype,"background",void 0),y([i.i(n.Property)(!1)],t.prototype,"useGroupingSeparator",void 0),y([i.i(n.Property)(null)],t.prototype,"format",void 0),y([i.i(n.Property)(null)],t.prototype,"width",void 0),y([i.i(n.Property)(null)],t.prototype,"height",void 0),y([i.i(n.Property)("MouseMove")],t.prototype,"tooltipDisplayMode",void 0),y([i.i(n.Property)(!1)],t.prototype,"allowPrint",void 0),y([i.i(n.Property)(!1)],t.prototype,"allowImageExport",void 0),y([i.i(n.Property)(!1)],t.prototype,"allowPdfExport",void 0),y([i.i(n.Complex)({},r.t)],t.prototype,"titleSettings",void 0),y([i.i(n.Complex)({},r.u)],t.prototype,"zoomSettings",void 0),y([i.i(n.Complex)({},r.w)],t.prototype,"legendSettings",void 0),y([i.i(n.Collection)([],r.B)],t.prototype,"layers",void 0),y([i.i(n.Collection)([],r.a)],t.prototype,"annotations",void 0),y([i.i(n.Complex)({},r.g)],t.prototype,"margin",void 0),y([i.i(n.Complex)({color:"#DDDDDD",width:0},r.d)],t.prototype,"border",void 0),y([i.i(n.Property)("Material")],t.prototype,"theme",void 0),y([i.i(n.Property)("Mercator")],t.prototype,"projectionType",void 0),y([i.i(n.Property)(0)],t.prototype,"baseLayerIndex",void 0),y([i.i(n.Property)(null)],t.prototype,"description",void 0),y([i.i(n.Property)(1)],t.prototype,"tabIndex",void 0),y([i.i(n.Complex)({latitude:null,longitude:null},r.e)],t.prototype,"centerPosition",void 0),y([i.i(n.Complex)({},r.D)],t.prototype,"mapsArea",void 0),y([i.i(n.Event)()],t.prototype,"load",void 0),y([i.i(n.Event)()],t.prototype,"beforePrint",void 0),y([i.i(n.Event)()],t.prototype,"loaded",void 0),y([i.i(n.Event)()],t.prototype,"click",void 0),y([i.i(n.Event)()],t.prototype,"onclick",void 0),y([i.i(n.Event)()],t.prototype,"doubleClick",void 0),y([i.i(n.Event)()],t.prototype,"rightClick",void 0),y([i.i(n.Event)()],t.prototype,"resize",void 0),y([i.i(n.Event)()],t.prototype,"tooltipRender",void 0),y([i.i(n.Event)()],t.prototype,"legendRendering",void 0),y([i.i(n.Event)()],t.prototype,"tooltipRenderComplete",void 0),y([i.i(n.Event)()],t.prototype,"shapeSelected",void 0),y([i.i(n.Event)()],t.prototype,"itemSelection",void 0),y([i.i(n.Event)()],t.prototype,"itemHighlight",void 0),y([i.i(n.Event)()],t.prototype,"shapeHighlight",void 0),y([i.i(n.Event)()],t.prototype,"layerRendering",void 0),y([i.i(n.Event)()],t.prototype,"shapeRendering",void 0),y([i.i(n.Event)()],t.prototype,"markerRendering",void 0),y([i.i(n.Event)()],t.prototype,"markerClusterRendering",void 0),y([i.i(n.Event)()],t.prototype,"markerClick",void 0),y([i.i(n.Event)()],t.prototype,"markerClusterClick",void 0),y([i.i(n.Event)()],t.prototype,"markerClusterMouseMove",void 0),y([i.i(n.Event)()],t.prototype,"markerMouseMove",void 0),y([i.i(n.Event)()],t.prototype,"dataLabelRendering",void 0),y([i.i(n.Event)()],t.prototype,"bubbleRendering",void 0),y([i.i(n.Event)()],t.prototype,"bubbleClick",void 0),y([i.i(n.Event)()],t.prototype,"bubbleMouseMove",void 0),y([i.i(n.Event)()],t.prototype,"animationComplete",void 0),y([i.i(n.Event)()],t.prototype,"annotationRendering",void 0),y([i.i(n.Event)()],t.prototype,"zoom",void 0),y([i.i(n.Event)()],t.prototype,"pan",void 0),t=y([n.NotifyPropertyChanges],t)}(n.Component)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(0)),a=function(){function e(e){}return e.prototype.export=function(e,t,a,r){return new Promise(function(l,s){var d,p,h=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}}),c=!(n.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1),u=document.getElementById(e.element.id+"_Tile_SVG_Parent"),m=i.i(o._27)(e.element.id+"_svg").cloneNode(!0);e.isTileMap?(p=i.i(o._27)(e.element.id+"_Tile_SVG").cloneNode(!0),d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+p.outerHTML+"</svg>"):d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+e.svgObject.outerHTML+"</svg>";var g=window.URL.createObjectURL(new Blob("SVG"===t?[d]:[(new XMLSerializer).serializeToString(m)],{type:"image/svg+xml"}));if("SVG"===t)r?i.i(o.q)(a,t,g,c):l(null);else{var y=new Image,f=h.getContext("2d");if(e.isTileMap)for(var b=document.getElementById(e.element.id+"_MapAreaBorder"),v=parseFloat(b.getAttribute("y")),S=parseFloat(b.getAttribute("x")),_=new XMLHttpRequest,x=e.mapLayerPanel.tiles.length,O=0;O<=x+1;O++)!function(s){var d=document.getElementById(e.element.id+"_tile_"+(s-1)),m=new Image;m.crossOrigin="Anonymous",f.fillStyle=e.background?e.background:"#FFFFFF",f.fillRect(0,0,e.availableSize.width,e.availableSize.height),f.font=e.titleSettings.textStyle.size+" Arial";var y=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(y)||(f.fillStyle=y.getAttribute("fill"),f.fillText(e.titleSettings.text,parseFloat(y.getAttribute("x")),parseFloat(y.getAttribute("y")))),m.onload=function(){if(0===s||s===x+1?0===s?(f.setTransform(1,0,0,1,0,0),f.rect(0,v,parseFloat(u.style.width),parseFloat(u.style.height)),f.clip()):f.setTransform(1,0,0,1,S,v):f.setTransform(1,0,0,1,parseFloat(d.style.left)+S,parseFloat(d.style.top)+v),f.drawImage(m,0,0),s===x+1){localStorage.setItem("local-canvasImage",h.toDataURL("image/png"));var e=localStorage.getItem("local-canvasImage");r?(i.i(o.q)(a,t,e,c),localStorage.removeItem("local-canvasImage")):"PNG"===t?l(e):"JPEG"===t&&l(h.toDataURL("image/jpeg"))}},0===s||s===x+1?0===s?m.src=g:setTimeout(function(){m.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(p)],{type:"image/svg+xml"}))},300):(_.open("GET",d.children[0].getAttribute("src"),!0),_.send(),m.src=d.children[0].getAttribute("src"))}(O);else y.onload=function(){f.drawImage(y,0,0),window.URL.revokeObjectURL(g),r?i.i(o.q)(a,t,h.toDataURL("image/png").replace("image/png","image/octet-stream"),c):"PNG"===t?l(h.toDataURL("image/png")):"JPEG"===t&&l(h.toDataURL("image/jpeg"))},y.src=g}})},e.prototype.getModuleName=function(){return"ImageExport"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(26)),a=(i.n(o),function(){function e(){}return e.prototype.export=function(e,t,a,r,l){return new Promise(function(s,d){var p=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}});l=i.i(n.isNullOrUndefined)(l)?o.PdfPageOrientation.Landscape:l;var h=document.getElementById(e.element.id+"_Tile_SVG_Parent"),c=e.svgObject.cloneNode(!0),u=c.childNodes[0],m=u.getAttribute("fill");"Tailwind"!==e.theme&&"TailwindDark"!==e.theme&&"Bootstrap5"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"Fluent"!==e.theme&&"FluentDark"!==e.theme||"rgba(255,255,255, 0.0)"!==m&&"transparent"!==m||c.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)");var g=window.URL.createObjectURL(new Blob("SVG"===t?[void 0]:[(new XMLSerializer).serializeToString(c)],{type:"image/svg+xml"})),y=new o.PdfDocument,f=new Image,b=p.getContext("2d");if(e.isTileMap)for(var v=document.getElementById(e.element.id+"_MapAreaBorder"),S=parseFloat(v.getAttribute("y")),_=parseFloat(v.getAttribute("x")),x=new XMLHttpRequest,O=e.mapLayerPanel.tiles.length,M=0;M<=O+1;M++)!function(d){var c=document.getElementById(e.element.id+"_tile_"+(d-1)),u=new Image;u.crossOrigin="Anonymous",b.fillStyle=e.background?e.background:"#FFFFFF",b.fillRect(0,0,e.availableSize.width,e.availableSize.height),b.font=e.titleSettings.textStyle.size+" Arial";var m=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(m)||(b.fillStyle=m.getAttribute("fill"),b.fillText(e.titleSettings.text,parseFloat(m.getAttribute("x")),parseFloat(m.getAttribute("y")))),u.onload=function(){if(0===d||d===O+1?0===d?(b.setTransform(1,0,0,1,0,0),b.rect(0,S,parseFloat(h.style.width),parseFloat(h.style.height)),b.clip()):b.setTransform(1,0,0,1,_,S):b.setTransform(1,0,0,1,parseFloat(c.style.left)+_,parseFloat(c.style.top)+S),b.drawImage(u,0,0),d===O+1&&"PDF"===t){localStorage.setItem("saved-image-example",p.toDataURL("image/jpeg"));var i=localStorage.getItem("saved-image-example");y.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),y.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),r?(y.save(a+".pdf"),y.destroy()):s(null)}},0===d||d===O+1?0===d?u.src=g:setTimeout(function(){var t=document.getElementById(e.element.id+"_Tile_SVG");u.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(t)],{type:"image/svg+xml"}))},300):(x.open("GET",c.children[0].getAttribute("src"),!0),x.send(),u.src=c.children[0].getAttribute("src"))}(M);else f.onload=function(){if(b.drawImage(f,0,0),window.URL.revokeObjectURL(g),"PDF"===t){var i=p.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");y.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),y.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),r?(y.save(a+".pdf"),y.destroy()):s(null)}},f.src=g})},e.prototype.getModuleName=function(){return"PdfExport"},e.prototype.destroy=function(){},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(1),o=(i.n(n),i(0)),a=i(3),r=function(){function e(e){}return e.prototype.print=function(e,t){var o=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no");o.moveTo(0,0),o.resizeTo(screen.availWidth,screen.availHeight);var r={cancel:!1,htmlContent:this.getHTMLContent(e,t),name:a.E};e.trigger("beforePrint",r,function(e){r.cancel||i.i(n.print)(r.htmlContent,o)})},e.prototype.getHTMLContent=function(e,t){var a=i.i(n.createElement)("div"),r=e.element.cloneNode(!0);if(e.isTileMap)for(var l=0;l<r.childElementCount;l++)if(r.children[l].id===e.element.id+"_tile_parent"){r.children[l].style.removeProperty("height"),r.children[l].style.removeProperty("width"),r.children[l].style.removeProperty("top"),r.children[l].style.removeProperty("left"),r.children[l].style.removeProperty("right"),r.children[l].style.removeProperty("overflow");var s=document.getElementById(e.element.id+"_Tile_SVG_Parent");r.children[l].children[0].style.overflow="hidden",r.children[l].children[0].style.position="absolute",r.children[l].children[0].style.height=s.style.height,r.children[l].children[0].style.width=s.style.width,r.children[l].children[0].style.left=s.style.left,r.children[l].children[0].style.top=s.style.top;break}return t?t instanceof Array?Array.prototype.forEach.call(t,function(e){a.appendChild(i.i(o._31)(e).cloneNode(!0))}):t instanceof Element?a.appendChild(t.cloneNode(!0)):a.appendChild(i.i(o._31)(t).cloneNode(!0)):a.appendChild(r),a},e.prototype.getModuleName=function(){return"Print"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(o.Browser.touchMoveEvent,this.mouseMove,this),this.maps.on(o.Browser.touchStartEvent,this.mouseMove,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(o.Browser.touchMoveEvent,this.mouseMove),this.maps.off(o.Browser.touchStartEvent,this.mouseMove))},e.prototype.addHighlight=function(e,t,n){var o=i.i(a._36)(e,t,n,this.maps);n?this.mapHighlight(o,null,null):i.i(a._40)(o)},e.prototype.mouseMove=function(e){var t,n=e.target,r="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1;if((-1!==n.id.indexOf("LayerIndex")||n.id.indexOf("NavigationIndex")>-1)&&"ShapeselectionMapStyle"!==n.getAttribute("class")&&!r&&"MarkerselectionMapStyle"!==n.getAttribute("class")&&"BubbleselectionMapStyle"!==n.getAttribute("class")&&"navigationlineselectionMapStyle"!==n.getAttribute("class")&&"LineselectionMapStyle"!==n.getAttribute("class")){t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10);var l=void 0,s=void 0,d=void 0,p=void 0;if(n.id.indexOf("shapeIndex")>-1)d=parseInt(n.id.split("_shapeIndex_")[1].split("_")[0],10),l=this.maps.layers[t].shapeData.features&&!i.i(o.isNullOrUndefined)(this.maps.layersCollection[t].layerData[d])?this.maps.layersCollection[t].layerData[d].property:null,p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=i.i(o.isNullOrUndefined)(p)?null:this.maps.layers[t].dataSource[p],this.highlightSettings=this.maps.layers[t].highlightSettings;else if(n.id.indexOf("BubbleIndex")>-1){var h=parseInt(n.id.split("_BubbleIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].bubbleSettings[h].dataSource[p],this.highlightSettings=this.maps.layers[t].bubbleSettings[h].highlightSettings}else if(n.id.indexOf("MarkerIndex")>-1){var c=parseInt(n.id.split("_MarkerIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].markerSettings[c].dataSource[p],this.highlightSettings=this.maps.layers[t].markerSettings[c].highlightSettings}else{var u=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10),l=null,s={latitude:this.maps.layers[t].navigationLineSettings[u].latitude,longitude:this.maps.layers[t].navigationLineSettings[u].longitude},this.highlightSettings=this.maps.layers[t].navigationLineSettings[u].highlightSettings}if(this.highlightSettings.enable)this.handleHighlight(n,t,s,l);else{var m=document.getElementsByClassName("highlightMapStyle")[0];if(!i.i(o.isNullOrUndefined)(m)&&(i.i(a._40)(m),m.id.indexOf("NavigationIndex")>-1)){var u=parseInt(m.id.split("_NavigationIndex_")[1].split("_")[0],10),g=parseInt(m.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);m.setAttribute("stroke-width",this.maps.layers[g].navigationLineSettings[u].width.toString()),m.setAttribute("stroke",this.maps.layers[g].navigationLineSettings[u].color)}}}else if(i.i(a._34)("highlightMapStyle").length>0){if(n=i.i(a._34)("highlightMapStyle")[0],n.id.indexOf("NavigationIndex")>-1){var u=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10),n.setAttribute("stroke-width",this.maps.layers[t].navigationLineSettings[u].width.toString()),n.setAttribute("stroke",this.maps.layers[t].navigationLineSettings[u].color)}i.i(a._40)(n),this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeShapeHighlightCollection()}else(-1!==n.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")||-1!==n.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule&&this.maps.legendSettings.visible&&-1===n.id.indexOf("_Text")?this.maps.legendModule.legendHighLightAndSelection(n,"highlight"):this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeLegendHighlightCollection()},e.prototype.handleHighlight=function(e,t,i,n){this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule&&"Layers"===this.maps.legendSettings.type&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.highlightSettings,"highlight",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.mapHighlight(e,n,i)},e.prototype.mapHighlight=function(e,t,a){var r=this,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),s=!1;if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);s=this.maps.layers[l].markerSettings[d].highlightSettings.enable}var p=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.color:this.highlightSettings.fill||this.highlightSettings.border.color,h=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.width/(s?1:this.maps.scale):this.highlightSettings.border.width/this.maps.scale,c=i.i(o.isNullOrUndefined)(this.highlightSettings.border.opacity)?this.highlightSettings.opacity:this.highlightSettings.border.opacity,u={opacity:this.highlightSettings.opacity,fill:-1===e.parentElement.id.indexOf("LineString")?-1===e.id.indexOf("NavigationIndex")?i.i(o.isNullOrUndefined)(this.highlightSettings.fill)?e.getAttribute("fill"):this.highlightSettings.fill:"none":"transparent",border:{color:p,width:h,opacity:c},cancel:!1},m={opacity:u.opacity,fill:u.fill,border:{color:p,width:h,opacity:c},name:n.k,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};e.id.indexOf("shapeIndex")>-1&&this.maps.trigger(n.k,m,function(){});var g={opacity:u.opacity,fill:u.fill,border:{color:p,width:h,opacity:c},name:n.E,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};this.maps.trigger(n.E,g,function(){g.cancel=u.cancel!==g.cancel?g.cancel:e.id.indexOf("shapeIndex")>-1?m.cancel:u.cancel,g.fill=u.fill!==g.fill?g.fill:e.id.indexOf("shapeIndex")>-1?m.fill:u.fill,g.opacity=u.opacity!==g.opacity?g.opacity:e.id.indexOf("shapeIndex")>-1?m.opacity:u.opacity,g.border.color=u.border.color!==g.border.color?g.border.color:e.id.indexOf("shapeIndex")>-1?m.border.color:u.border.color,g.border.width=u.border.width!==g.border.width?g.border.width:e.id.indexOf("shapeIndex")>-1?m.border.width:u.border.width,g.border.opacity=u.border.opacity!==g.border.opacity?g.border.opacity:e.id.indexOf("shapeIndex")>-1?m.border.opacity:u.border.opacity,r.highlightMap(e,g)})},e.prototype.highlightMap=function(e,t){if("highlightMapStyle"!==e.getAttribute("class")&&!t.cancel){if(i.i(a._34)("highlightMapStyle").length>0){var n=i.i(a._34)("highlightMapStyle")[0];if(i.i(a._40)(n),n.id.indexOf("NavigationIndex")>-1){var o=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10),r=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);n.setAttribute("stroke-width",this.maps.layers[r].navigationLineSettings[o].width.toString()),n.setAttribute("stroke",this.maps.layers[r].navigationLineSettings[o].color)}}i.i(a._31)("highlightMap")?i.i(a._38)("highlightMap","highlightMapStyle",t):document.body.appendChild(i.i(a._37)("highlightMap","highlightMapStyle",t)),e.setAttribute("class","highlightMapStyle")}},e.prototype.getModuleName=function(){return"Highlight"},e.prototype.destroy=function(){this.highlightSettings=null,this.removeEventListener(),this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||this.maps.on(n.d,this.mouseClick,this)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||this.maps.off(n.d,this.mouseClick)},e.prototype.mouseClick=function(e){if(!i.i(a.isNullOrUndefined)(e.type)&&-1!==e.type.indexOf("touch")&&i.i(a.isNullOrUndefined)(e.id)&&(e=e.target),!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf("LayerIndex")>-1||e.id.indexOf("NavigationIndex")>-1)){var t=void 0,n=void 0,o=void 0,r=void 0,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10);if(e.id.indexOf("shapeIndex")>-1)o=parseInt(e.id.split("_shapeIndex_")[1].split("_")[0],10),t=!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.features)&&this.maps.layers[l].shapeData.features.length>o?this.maps.layers[l].shapeData.features[o].properties:!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.geometries)&&this.maps.layers[l].shapeData.geometries.length>o?this.maps.layers[l].shapeData.geometries[o].properties:null,r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=i.i(a.isNullOrUndefined)(r)?null:this.maps.layers[l].dataSource[r],this.selectionsettings=this.maps.layers[l].selectionSettings,this.selectionType="Shape";else if(e.id.indexOf("BubbleIndex")>-1){var s=parseInt(e.id.split("_BubbleIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].bubbleSettings[s].dataSource[r],this.selectionsettings=this.maps.layers[l].bubbleSettings[s].selectionSettings,this.selectionType="Bubble"}else if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].markerSettings[d].dataSource[r],this.selectionsettings=this.maps.layers[l].markerSettings[d].selectionSettings,this.selectionType="Marker"}else{var p=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10);t=null,n={latitude:this.maps.layers[l].navigationLineSettings[p].latitude,longitude:this.maps.layers[l].navigationLineSettings[p].longitude},this.selectionsettings=this.maps.layers[l].navigationLineSettings[p].selectionSettings,this.selectionType="navigationline"}this.selectionsettings.enable&&this.selectElement(e,l,n,t)}else this.maps.legendSettings.visible&&!this.maps.legendSettings.toggleLegendSettings.enable&&this.maps.legendModule&&!i.i(a.isNullOrUndefined)(e.id)&&-1===e.id.indexOf("_Text")&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule.legendHighLightAndSelection(e,"selection")},e.prototype.selectElement=function(e,t,i,n){this.maps.mapSelect=!!e,this.maps.legendModule&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.selectionsettings,"selection",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.selectMap(e,n,i)},e.prototype.addSelection=function(e,t,n){var a=i.i(o._36)(e,t,n,this.maps);n?this.selectMap(a,null,null):i.i(o._40)(a)},e.prototype.selectMap=function(e,t,r){var l=this,s=(parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),e.parentElement.id.indexOf("LineString")>-1),d=(this.selectionsettings,{color:s?this.selectionsettings.fill||this.selectionsettings.border.color:this.selectionsettings.border.color,width:s?this.selectionsettings.border.width/this.maps.scale:this.selectionsettings.border.width/("Marker"===this.selectionType?1:this.maps.scale),opacity:this.selectionsettings.border.opacity}),p={opacity:this.selectionsettings.opacity,fill:s?"transparent":"navigationline"!==this.selectionType?this.selectionsettings.fill:"none",border:d,name:n.D,target:e.id,cancel:!1,shapeData:t,data:r,maps:this.maps};this.maps.trigger("itemSelection",p,function(t){if(p.border.opacity=i.i(a.isNullOrUndefined)(l.selectionsettings.border.opacity)?l.selectionsettings.opacity:l.selectionsettings.border.opacity,!p.cancel)if(e.getAttribute("class")===l.selectionType+"selectionMapStyle"||"LineselectionMapStyle"===e.getAttribute("class")){i.i(o._40)(e),l.removedSelectionList(e);for(var n=0;n<l.maps.shapeSelectionItem.length;n++)if(l.maps.shapeSelectionItem[n]===p.shapeData){l.maps.shapeSelectionItem.splice(n,1);break}if(e.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),d=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);e.setAttribute("stroke-width",l.maps.layers[d].navigationLineSettings[r].width.toString()),e.setAttribute("stroke",l.maps.layers[d].navigationLineSettings[r].color)}}else{var h=i.i(o._27)(l.maps.element.id+"_Layer_Collections");if(!l.selectionsettings.enableMultiSelect&&(h.getElementsByClassName(l.selectionType+"selectionMapStyle").length>0||h.getElementsByClassName("LineselectionMapStyle").length>0)){for(var c=h.getElementsByClassName(l.selectionType+"selectionMapStyle").length,u=void 0,m=0;m<c;m++)u=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._40)(u),l.removedSelectionList(u);if(h.getElementsByClassName("LineselectionMapStyle").length>0){c=h.getElementsByClassName("LineselectionMapStyle").length;for(var m=0;m<c;m++)u=h.getElementsByClassName("LineselectionMapStyle")[0],i.i(o._40)(u),l.removedSelectionList(u)}if("Shape"===l.selectionType){l.maps.shapeSelectionItem=[];for(var g=l.maps.selectedElementId.length,y=0;y<g;y++){u=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._40)(u);var f=l.maps.selectedElementId.indexOf(u.getAttribute("id"));l.maps.selectedElementId.splice(f,1)}}if(u.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),b=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);u.setAttribute("stroke-width",l.maps.layers[b].navigationLineSettings[r].width.toString()),u.setAttribute("stroke",l.maps.layers[b].navigationLineSettings[r].color)}}s?(i.i(o._31)("LineselectionMap")?i.i(o._38)("LineselectionMap","LineselectionMapStyle",p):document.body.appendChild(i.i(o._37)("LineselectionMap","LineselectionMapStyle",p)),e.setAttribute("class","LineselectionMapStyle")):(i.i(o._31)(l.selectionType+"selectionMap")?i.i(o._38)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p):document.body.appendChild(i.i(o._37)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p)),e.setAttribute("class",l.selectionType+"selectionMapStyle")),"ShapeselectionMapStyle"===e.getAttribute("class")&&(l.maps.shapeSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedElementId.push(e.getAttribute("id")),l.maps.shapeSelectionItem.push(p.shapeData)),"MarkerselectionMapStyle"===e.getAttribute("class")&&(l.maps.markerSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedMarkerElementId.push(e.getAttribute("id"))),"BubbleselectionMapStyle"===e.getAttribute("class")&&(l.maps.bubbleSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedBubbleElementId.push(e.getAttribute("id"))),"navigationlineselectionMapStyle"===e.getAttribute("class")&&(l.maps.navigationSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedNavigationElementId.push(e.getAttribute("id")))}})},e.prototype.removedSelectionList=function(e){"Shape"===this.selectionType&&this.maps.selectedElementId.splice(this.maps.selectedElementId.indexOf(e.getAttribute("id")),1),"Bubble"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1),"Marker"===this.selectionType&&this.maps.selectedMarkerElementId.splice(this.maps.selectedMarkerElementId.indexOf(e.getAttribute("id")),1),"navigationline"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1)},e.prototype.getModuleName=function(){return"Selection"},e.prototype.destroy=function(){this.selectionsettings=null,this.removeEventListener(),this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return s});var n=i(2),o=i(6),a=(i.n(o),i(1)),r=(i.n(a),i(0)),l=i(3),s=function(){function e(e){this.maps=e,this.tooltipId=this.maps.element.id+"_mapsTooltip",this.addEventListener()}return e.prototype.renderTooltip=function(e){var t,s,d,p,h,c,u=this;-1!==e.type.indexOf("touch")?(this.isTouch=!0,p=e,t=p.changedTouches[0].pageX,s=p.changedTouches[0].pageY,d=p.target):(this.isTouch="touch"===e.pointerType,t=e.pageX,s=e.pageY,d=e.target);var m,g,y,f="",b=d.id,v=[],S=b.indexOf("_LayerIndex_")>-1&&parseFloat(b.split("_LayerIndex_")[1].split("_")[0]),_=this.maps.layersCollection[S],x=[],O=i.i(r.e)(t,s,this.maps.svgObject);if(this.tooltipTargetID=b,b.indexOf("_shapeIndex_")>-1||b.indexOf("_MarkerIndex_")>-1||b.indexOf("_BubbleIndex_")>-1){if(b.indexOf("_shapeIndex_")>-1){m=_.tooltipSettings;var M=parseInt(b.split("_shapeIndex_")[1].split("_")[0],10);if(i.i(a.isNullOrUndefined)(_.layerData)||i.i(a.isNullOrUndefined)(_.layerData[M]))return;var L=_.layerData[M].property,C=!1,w="[object Array]"===Object.prototype.toString.call(_.shapePropertyPath)?_.shapePropertyPath:[_.shapePropertyPath];if(!i.i(a.isNullOrUndefined)(w)){for(var P=0;P<w.length;P++)for(var T=0;T<_.dataSource.length;T++){var I=_.dataSource[T],N=_.shapeDataPath.indexOf(".")>-1?i.i(r.N)(I,_.shapeDataPath):I[_.shapeDataPath],k=!i.i(a.isNullOrUndefined)(N)&&isNaN(I[_.shapeDataPath])?N.toLowerCase():N,F=!i.i(a.isNullOrUndefined)(L[w[P]])&&isNaN(L[w[P]])?L[w[P]].toLowerCase():L[w[P]];if(k===F){C=!0,S=T,P=w.length;break}}if(S=C?S:null,!i.i(a.isNullOrUndefined)(_.dataSource[S])){v=JSON.parse(JSON.stringify(_.dataSource[S]));for(y in L)v.hasOwnProperty(y)||(v[y]=L[y])}}if(m.visible&&(!i.i(a.isNullOrUndefined)(S)&&!isNaN(S)||!i.i(a.isNullOrUndefined)(L)))if(_.tooltipSettings.format)f=this.formatter(_.tooltipSettings.format,v);else{var E=i.i(r._15)(_.shapeDataPath,_.shapePropertyPath,L);f=i.i(a.isNullOrUndefined)(_.dataSource)||i.i(a.isNullOrUndefined)(S)?L[E]:i.i(r.J)(m.valuePath.indexOf(".")>-1?i.i(r.N)(_.dataSource[S],m.valuePath):_.dataSource[S][m.valuePath],this.maps),i.i(a.isNullOrUndefined)(f)&&(f=m.valuePath.indexOf(".")>-1?i.i(r.N)(L,m.valuePath):L[m.valuePath])}}else if(b.indexOf("_MarkerIndex_")>-1){var A=parseInt(b.split("_MarkerIndex_")[1].split("_")[0],10),z=parseInt(b.split("_MarkerIndex_")[1].split("_")[2],10),B=_.markerSettings[A];m=B.tooltipSettings,v=B.dataSource[z],m.visible&&!isNaN(A)&&(f=B.tooltipSettings.format?this.formatter(B.tooltipSettings.format,B.dataSource[z]):B.template&&!B.tooltipSettings.valuePath?B.template.split(">")[1].split("<")[0]:i.i(r.J)(B.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.N)(B.dataSource[z],B.tooltipSettings.valuePath):B.dataSource[z][B.tooltipSettings.valuePath],this.maps))}else if(b.indexOf("_BubbleIndex_")>-1){var j=parseInt(b.split("_BubbleIndex_")[1].split("_")[0],10),z=parseInt(b.split("_BubbleIndex_")[1].split("_")[2],10),U=_.bubbleSettings[j];m=U.tooltipSettings,v=U.dataSource[z],m.visible&&!isNaN(z)&&(f=U.tooltipSettings.format?this.formatter(U.tooltipSettings.format,U.dataSource[z]):i.i(r.J)(U.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.N)(U.dataSource[z],U.tooltipSettings.valuePath):U.dataSource[z][U.tooltipSettings.valuePath],this.maps))}document.getElementById(this.tooltipId)?g=document.getElementById(this.tooltipId):(g=i.i(a.createElement)("div",{id:this.maps.element.id+"_mapsTooltip",className:"EJ2-maps-Tooltip"}),g.style.cssText="position: absolute;pointer-events:none;",document.getElementById(this.maps.element.id+"_Secondary_Element").appendChild(g)),null!==m.template&&1===Object.keys("object"==typeof m.template?m.template:{}).length&&(m.template=m.template[Object.keys(m.template)[0]]),v=this.setTooltipContent(m,v);var R={color:m.textStyle.color,fontFamily:m.textStyle.fontFamily,fontStyle:m.textStyle.fontStyle,fontWeight:m.textStyle.fontWeight,opacity:m.textStyle.opacity,size:m.textStyle.size},D={location:O,text:x,data:v,textStyle:R,template:m.template};h={cancel:!1,name:n.i,options:D,fill:m.fill,maps:this.maps,element:d,eventArgs:e,content:i.i(a.isNullOrUndefined)(f)?"":f.toString()},this.maps.trigger(n.i,h,function(e){if(h.cancel||!m.visible||i.i(a.isNullOrUndefined)(f)||-1!==b.indexOf("_cluster_")||-1!==b.indexOf("_dataLabel_"))u.clearTooltip();else if(u.maps.isProtectedOnChange=!0,h.options.textStyle.color=h.options.textStyle.color||u.maps.themeStyle.tooltipFontColor,h.options.textStyle.fontFamily=h.options.textStyle.fontFamily||u.maps.themeStyle.fontFamily,h.options.textStyle.opacity=h.options.textStyle.opacity||u.maps.themeStyle.tooltipTextOpacity,h.cancel?u.svgTooltip=new o.Tooltip({enable:!0,header:"",data:m.data,template:m.template,content:h.content.toString()!==f.toString()?[h.content.toString()]:[f.toString()],shapes:[],location:m.location,palette:[void 0],areaBounds:u.maps.mapAreaRect,textStyle:m.textStyle,availableSize:u.maps.availableSize,fill:m.fill||u.maps.themeStyle.tooltipFillColor}):u.svgTooltip=new o.Tooltip({enable:!0,header:"",data:h.options.data,template:h.options.template,content:h.content.toString()!==f.toString()?[h.content.toString()]:[f.toString()],shapes:[],location:h.options.location,palette:[void 0],areaBounds:u.maps.mapAreaRect,textStyle:h.options.textStyle,availableSize:u.maps.availableSize,fill:h.fill||u.maps.themeStyle.tooltipFillColor}),(u.maps.isVue||u.maps.isVue3)&&(u.svgTooltip.controlInstance=u.maps),u.svgTooltip.opacity=u.maps.themeStyle.tooltipFillOpacity||u.svgTooltip.opacity,u.svgTooltip.appendTo(g),u.maps.renderReactTemplates(),null!==(c=document.getElementById(u.maps.element.id+"_mapsTooltip"))&&-1!==c.innerHTML.indexOf("href")&&-1!==c.innerHTML.indexOf("</a>")){var t=c.getAttribute("style");t=t.replace("pointer-events: none;","position-events:all;"),c.style.cssText=t}}),this.svgTooltip&&this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:D,element:this.svgTooltip.element}),this.svgTooltip?this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:D,element:this.svgTooltip.element}):this.clearTooltip()}else c=document.getElementById(this.maps.element.id+"_mapsTooltip"),null!==c&&-1!==c.innerHTML.indexOf("href")&&-1!==c.innerHTML.indexOf("</a>")?this.maps.notify(l.c,this):this.clearTooltip()},e.prototype.setTooltipContent=function(e,t){var n=i.i(a.extend)({},t,null,!0);return this.maps.format&&!isNaN(Number(n[e.valuePath]))?n[e.valuePath]=i.i(r._29)(this.maps,Number(n[e.valuePath])):n=Object.keys(n).length?n:void 0,n},e.prototype.formatter=function(e,t){void 0===t&&(t={});for(var n=Object.keys(t),o=0,a=n;o<a.length;o++){var l=a[o];e="object"==typeof t[l]?i.i(r.K)("",e,t,this.maps):e.split("${"+l+"}").join(i.i(r.J)(t[l],this.maps))}return e},e.prototype.mouseUpHandler=function(e){this.renderTooltip(e),"MouseMove"===this.maps.tooltipDisplayMode&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3))},e.prototype.removeTooltip=function(){var e=!1;return document.getElementsByClassName("EJ2-maps-Tooltip").length>0&&(i.i(a.remove)(document.getElementsByClassName("EJ2-maps-Tooltip")[0]),e=!0),e},e.prototype.clearTooltip=function(){this.removeTooltip()&&this.maps.clearTemplate()},e.prototype.addEventListener=function(){this.maps.isDestroyed||("DoubleClick"===this.maps.tooltipDisplayMode?this.maps.on("dblclick",this.renderTooltip,this):"Click"===this.maps.tooltipDisplayMode?this.maps.on(a.Browser.touchEndEvent,this.mouseUpHandler,this):this.maps.on(a.Browser.touchMoveEvent,this.renderTooltip,this),this.maps.on(a.Browser.touchCancelEvent,this.removeTooltip,this),this.maps.element.addEventListener("contextmenu",this.removeTooltip))},e.prototype.removeEventListener=function(){if(this.maps){if(this.maps.isDestroyed)return;"DoubleClick"===this.maps.tooltipDisplayMode?this.maps.off("dblclick",this.removeTooltip):"Click"===this.maps.tooltipDisplayMode?this.maps.off(a.Browser.touchEndEvent,this.mouseUpHandler):this.maps.off(a.Browser.touchMoveEvent,this.renderTooltip),this.maps.off(a.Browser.touchCancelEvent,this.removeTooltip),this.maps.element.removeEventListener("contextmenu",this.removeTooltip)}},e.prototype.getModuleName=function(){return"MapsTooltip"},e.prototype.destroy=function(){i.i(a.isNullOrUndefined)(this.svgTooltip)||this.svgTooltip.destroy(),this.svgTooltip=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(0),o=i(1),a=(i.n(o),i(2)),r=i(3),l=function(){function e(e){this.isPanning=!1,this.mouseEnter=!1,this.isTouch=!1,this.rectZoomingStart=!1,this.browserName=o.Browser.info.name,this.isPointer=o.Browser.isPointer,this.handled=!1,this.pinchFactor=1,this.startTouches=[],this.intersect=[],this.mouseDownLatLong={x:0,y:0},this.mouseMoveLatLong={x:0,y:0},this.isSingleClick=!1,this.maps=e,this.wheelEvent="mozilla"===this.browserName?this.isPointer?"mousewheel":"DOMMouseScroll":"mousewheel",this.cancelEvent=this.isPointer?"pointerleave":"mouseleave",this.selectionColor=this.maps.zoomSettings.selectionColor,this.fillColor=this.maps.zoomSettings.color,this.addEventListener()}return e.prototype.performZooming=function(e,t,i){var o=this,a=this.maps;a.previousProjection=a.projectionType,a.defaultState=!1,a.initialCheck=!1,a.markerZoomedState=!1,a.zoomPersistence=a.enablePersistence;var r=a.tileZoomLevel,l=a.previousScale=a.scale,s=a.zoomSettings.maxZoom,d=a.zoomSettings.minZoom;t=d>t&&"ZoomIn"===i?d+1:t;var p=a.tileTranslatePoint;if(a.isTileMap||!("ZoomIn"===i?t>=d&&t<=s:t>=d)&&!a.isReset){if(a.isTileMap&&t>=d&&t<=s)if(this.getTileTranslatePosition(r,t,e,i),a.tileZoomLevel=t,a.zoomSettings.zoomFactor=t,a.scale=Math.pow(2,t-1),"ZoomOut"===i&&a.zoomSettings.resetToInitial&&a.applyZoomReset&&t<=a.initialZoomLevel&&(a.initialCheck=!0,a.zoomPersistence=!1,a.tileTranslatePoint.x=a.initialTileTranslate.x,a.tileTranslatePoint.y=a.initialTileTranslate.y,t=a.tileZoomLevel=a.mapScaleValue=a.initialZoomLevel,a.scale=Math.pow(2,t-1)),a.translatePoint.y=(a.tileTranslatePoint.y-.01*a.mapScaleValue)/a.scale,a.translatePoint.x=(a.tileTranslatePoint.x-.01*a.mapScaleValue)/a.scale,this.triggerZoomEvent(p,r,i))a.translatePoint=a.tileTranslatePoint=new n.r(0,0),a.scale=a.previousScale,a.tileZoomLevel=r,a.zoomSettings.zoomFactor=a.previousScale;else{document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),this.markerLineAnimation(a),a.mapLayerPanel.generateTiles(t,a.tileTranslatePoint,i+"wheel",null,e);var h=(document.getElementById(this.maps.element.id+"_tiles"),this.maps.layersCollection[0].animationDuration);setTimeout(function(){o.applyTransform(o.maps),document.getElementById(o.maps.element.id+"_LayerIndex_1")&&(document.getElementById(o.maps.element.id+"_LayerIndex_1").style.display="block")},h)}}else{var c=a.mapAreaRect,u=a.baseMapRectBounds.min,m=a.baseMapRectBounds.max,g=Math.abs(u.x-m.x),y=Math.abs(u.y-m.y),f=void 0,b=void 0;if(t<1.2&&"Eckert5"!==a.projectionType)0!==g&&0!==y&&g!==y||(g=c.width/2,y=c.height),t=parseFloat(Math.min(c.width/g,c.height/y).toFixed(2)),t=t>1.05?1:t,a.translatePoint=this.calculateInitalZoomTranslatePoint(t,g,y,c,u,a);else{var v=a.translatePoint;f=v.x-(c.width/l-c.width/t)/(c.width/e.x),b=v.y-(c.height/l-c.height/t)/(c.height/e.y);var S=Math.abs(a.baseMapRectBounds.max.y-a.baseMapRectBounds.min.y)*t;f=S<a.mapAreaRect.height?c.x+(-u.x+(c.width/2-g/2)):f,b=S<a.mapAreaRect.height?c.y+(-u.y+(c.height/2-y/2)):b,a.translatePoint=new n.r(f,b)}a.scale=t,this.triggerZoomEvent(p,r,i)?(a.translatePoint=a.previousPoint,a.scale=a.mapScaleValue=a.previousScale):this.applyTransform(a)}this.maps.zoomNotApplied=!1},e.prototype.calculateInitalZoomTranslatePoint=function(e,t,i,o,a,r){t*=e,i*=e;var l=0!==a.x&&"layers"===r.translateType?r.availableSize.width-o.width:0,s=o.x+(-a.x+(o.width/2-t/2))-l,d=o.y+(-a.y+(o.height/2-i/2));return new n.r(s,d)},e.prototype.triggerZoomEvent=function(e,t,i){var n,o=this.maps;return n=o.isTileMap?{cancel:!1,name:"zoom",type:i,maps:o,tileTranslatePoint:{previous:e,current:o.tileTranslatePoint},translatePoint:{previous:o.previousPoint,current:o.translatePoint},tileZoomLevel:{previous:t,current:o.tileZoomLevel},scale:{previous:o.previousScale,current:o.scale}}:{cancel:!1,name:"zoom",type:i,maps:o,tileTranslatePoint:{},translatePoint:{previous:o.previousPoint,current:o.translatePoint},tileZoomLevel:{},scale:{previous:o.previousScale,current:o.scale}},o.trigger("zoom",n),n.cancel},e.prototype.getTileTranslatePosition=function(e,t,i,n){var o=this.maps,a="ZoomOut"===n?10:"Reset"===n&&t>1?0:10,r=o.availableSize,l=256*Math.pow(2,e),s=256*Math.pow(2,t),d=(i.x-o.tileTranslatePoint.x)/l*100,p=(i.y-o.tileTranslatePoint.y)/l*100;o.tileTranslatePoint.x=1===t?r.width/2-256:i.x-d*s/100,o.tileTranslatePoint.y=1===t?r.height/2-256+2*a:i.y-p*s/100},e.prototype.performRectZooming=function(){this.isDragZoom=!0;var e=this.maps,t=e.availableSize;e.previousProjection=e.projectionType;var i,o=e.tileZoomLevel,a=e.tileTranslatePoint,r=this.zoomingRect,l=e.zoomSettings.maxZoom,s=e.zoomSettings.minZoom;if(r.height>0&&r.width>0){var d=this.zoomingRect.x+this.zoomingRect.width/2,p=this.zoomingRect.y+this.zoomingRect.height/2,h=void 0;if(e.isTileMap)h=o+Math.round(o+(t.width/r.width+t.height/r.height)/2),h=h>=s&&h<=l?h:l,e.zoomSettings.zoomFactor=h,this.getTileTranslatePosition(o,h,{x:d,y:p}),e.tileZoomLevel=h,e.translatePoint.x=(e.tileTranslatePoint.x-.5*Math.pow(2,h))/Math.pow(2,h),e.translatePoint.y=(e.tileTranslatePoint.y-.5*Math.pow(2,h))/Math.pow(2,h),e.scale=Math.pow(2,h),i=this.triggerZoomEvent(a,o,""),i?(e.translatePoint=e.tileTranslatePoint=new n.r(0,0),e.scale=e.tileZoomLevel=e.zoomSettings.zoomFactor=o):e.mapLayerPanel.generateTiles(h,e.tileTranslatePoint);else{var c=e.previousScale=e.scale;h=c+Math.round((t.width/r.width+t.height/r.height)/2);var u=e.previousPoint=e.translatePoint,m=u.x-(t.width/c-t.width/h)/(t.width/d),g=u.y-(t.height/c-t.height/h)/(t.height/p);e.translatePoint=new n.r(m,g),e.scale=h,i=this.triggerZoomEvent(a,o,""),i&&(e.translatePoint=e.previousPoint,e.scale=e.previousScale)}i||(e.mapScaleValue=h,this.applyTransform(e,!0),this.maps.zoomNotApplied=!1,this.zoomingRect=null)}},e.prototype.setInteraction=function(e){this.lastScale=1,this.interaction=e},e.prototype.updateInteraction=function(){2===this.fingers?this.setInteraction("zoom"):this.setInteraction(null)},e.prototype.performPinchZooming=function(e){var t=this.maps,o=t.tileZoomLevel,a=t.mapAreaRect;t.previousScale=t.scale,t.previousPoint=t.translatePoint;var r=t.tileTranslatePoint,l=i.i(n._52)(this.touchStartList,this.touchMoveList),s=i.i(n._55)(i.i(n._54)(this.touchMoveList,this.maps)),d=l/this.lastScale;this.lastScale=l,this.pinchFactor*=d,this.pinchFactor=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.pinchFactor,this.maps.zoomSettings.minZoom));var p,h=this.pinchFactor;if(t.isTileMap){var c=h;this.getTileTranslatePosition(o,c,{x:s.x,y:s.y}),t.tileZoomLevel=c,t.translatePoint.x=(t.tileTranslatePoint.x-.5*Math.pow(2,c))/Math.pow(2,c),t.translatePoint.y=(t.tileTranslatePoint.y-.5*Math.pow(2,c))/Math.pow(2,c),t.scale=Math.pow(2,c),p=this.triggerZoomEvent(r,o,""),p?(t.translatePoint=t.tileTranslatePoint=new n.r(0,0),t.scale=t.previousScale,t.tileZoomLevel=o,t.zoomSettings.zoomFactor=t.previousScale):t.mapLayerPanel.generateTiles(c,t.tileTranslatePoint)}else{var u=t.baseMapRectBounds.min,m=t.baseMapRectBounds.max,g=Math.abs(u.y-m.y),y=Math.abs(u.x-m.x),f=t.translatePoint,b=void 0,v=void 0;if(h<1.2&&"Eckert5"!==t.projectionType)0!==y&&0!==g&&y!==g||(y=a.width/2,g=a.height),h=parseFloat(Math.min(a.width/y,a.height/g).toFixed(2)),h=h>1.05?1:h,t.translatePoint=this.calculateInitalZoomTranslatePoint(h,y,g,a,u,t);else{var S=Math.abs(t.baseMapRectBounds.max.y-t.baseMapRectBounds.min.y)*h;b=f.x-(a.width/t.scale-a.width/h)/(a.width/s.x),v=f.y-(a.height/t.scale-a.height/h)/(a.height/s.y),b=S<t.mapAreaRect.height?a.x+(-u.x+(a.width/2-y/2)):b,v=S<t.mapAreaRect.height?a.y+(-u.y+(a.height/2-g/2)):v,t.translatePoint=new n.r(b,v)}t.scale=h,p=this.triggerZoomEvent(r,o,""),p&&(t.translatePoint=t.previousPoint,t.scale=t.previousScale)}p||this.applyTransform(t)},e.prototype.drawZoomRectangle=function(){var e=this.maps,t=this.mouseDownPoints,o=this.mouseMovePoints,a={width:1,color:"#009900"},r=Math.abs(o.x-t.x),l=Math.abs(o.y-t.y),s=o.x>t.x?t.x:t.x-r,d=o.y>t.y?t.y:t.y-l;i.i(n._27)(e.element.id).getBoundingClientRect();if(s>e.mapAreaRect.x&&s<e.mapAreaRect.x+e.mapAreaRect.width&&d>e.mapAreaRect.y&&d<e.mapAreaRect.y+e.mapAreaRect.height){this.zoomingRect=new n.F(s,d,r,l);var p=e.renderer.createSvg({id:e.element.id+"_Selection_Rect_Zooming",width:e.availableSize.width,height:e.availableSize.height}),h=new n.y(e.element.id+"_ZoomRect","#d3d3d3",a,.5,this.zoomingRect,0,0,"","3");p.appendChild(e.renderer.drawRectangle(h)),i.i(n._27)(e.element.id+"_Secondary_Element").appendChild(p)}},e.prototype.animateTransform=function(e,t,o,a,r){var l=this.currentLayer.animationDuration;if(!t||0===l||this.maps.isTileMap)return void e.setAttribute("transform","scale("+r+") translate( "+o+" "+a+" )");this.maps.isTileMap||i.i(n._57)(e,0,l,new n.E(o,a),r,this.maps.mapAreaRect,this.maps)},e.prototype.applyTransform=function(e,t){var r;this.templateCount=0;var l,s=e.scale,d=e.translatePoint.x,p=e.translatePoint.y;if(e.zoomShapeCollection=[],document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._22)(e.element.id+"_mapsTooltip"),this.layerCollectionEle){for(var h=0;h<this.layerCollectionEle.childElementCount;h++){var c=this.layerCollectionEle.childNodes[h];if("g"===c.tagName){this.templateCount++,this.index=c.id.indexOf("_LayerIndex_")>-1&&parseFloat(c.id.split("_LayerIndex_")[1].split("_")[0]),this.currentLayer=e.layersCollection[this.index];for(var u=e.mapLayerPanel.calculateFactor(this.currentLayer),m=c.childElementCount,g=0;g<m;g++){var y=c.childNodes[g];if(y.id.indexOf("_Markers_Group")>-1||y.id.indexOf("_bubble_Group")>-1||y.id.indexOf("_dataLableIndex_Group")>-1){if(y.id.indexOf("_Markers_Group")>-1){this.isPanning||i.i(o.isNullOrUndefined)(y.childNodes[0])||this.markerTranslates(y.childNodes[0],u,d,p,s,"Marker",c,t),y=c.childNodes[g];var f=void 0;if(!i.i(o.isNullOrUndefined)(y)&&-1!==y.id.indexOf("Markers")){for(var b=0;b<y.childElementCount;b++){this.markerTranslate(y.childNodes[b],u,d,p,s,"Marker",t);var v=(parseInt(y.childNodes[b].id.split("_LayerIndex_")[1].split("_")[0],10),parseInt(y.childNodes[b].id.split("_dataIndex_")[1].split("_")[0],10)),S=parseInt(y.childNodes[b].id.split("_MarkerIndex_")[1].split("_")[0],10);f=this.currentLayer.markerSettings[S].animationDuration>0;for(var _=this.currentLayer.markerSettings[S].dataSource[v],x=0;x<this.currentLayer.markerSettings[S].initialMarkerSelection.length;x++)this.currentLayer.markerSettings[S].initialMarkerSelection[x].latitude!==_.latitude&&this.currentLayer.markerSettings[S].initialMarkerSelection[x].longitude!==_.longitude||e.markerSelection(this.currentLayer.markerSettings[S].selectionSettings,e,y.children[b],this.currentLayer.markerSettings[S].dataSource[v]);if((this.currentLayer.animationDuration>0||e.layersCollection[0].animationDuration>0&&"SubLayer"===this.currentLayer.type)&&!this.isPanning)if(e.isTileMap){var O=document.querySelector(".GroupElement");O&&!document.querySelector(".ClusterGroupElement")&&f&&(O.style.display="none")}else l="visibility:hidden",y.style.cssText=l}if(this.isPanning&&e.markerModule.sameMarkerData.length>0?i.i(n.S)(e.markerModule.sameMarkerData,e,y,!0):e.markerModule.sameMarkerData.length>0&&(e.markerModule.sameMarkerData=[],document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._22)(e.element.id+"_mapsTooltip")),document.getElementById(e.element.id+"_mapsTooltip")&&e.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")&&!this.isPanning){var M=e.mapsTooltipModule,L=y.querySelector("#"+M.tooltipTargetID);if(!i.i(o.isNullOrUndefined)(L))if("hidden"===L.style.visibility)i.i(n._22)(e.element.id+"_mapsTooltip");else{var C=parseFloat(L.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[1]),w=parseFloat(L.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[2]);e.isTileMap&&(C+=+i.i(n._31)(e.element.id+"_tile_parent").style.left.split("px")[0],w+=+i.i(n._31)(e.element.id+"_tile_parent").style.top.split("px")[0]),M.svgTooltip.location.x=C,M.svgTooltip.location.y=w,M.svgTooltip.enableAnimation=!1}}}}else if(y.id.indexOf("_bubble_Group")>-1)for(var P=void 0,b=0;b<y.childElementCount;b++){P=y.childNodes[b],r=parseFloat(P.id.split("_LayerIndex_")[1].split("_")[0]);for(var T=parseFloat(P.id.split("_BubbleIndex_")[1].split("_")[0]),v=parseFloat(P.id.split("_BubbleIndex_")[1].split("_")[2]),I=0;I<e.bubbleModule.bubbleCollection.length;I++){var N=e.bubbleModule.bubbleCollection[I];if(N.LayerIndex===r&&N.BubbleIndex===T&&N.DataIndex===v){var k=N.center.x,F=N.center.y,E=(k+d)*s,A=(F+p)*s,z=this.currentLayer.animationDuration;t&&0!==z?i.i(n._60)(P,0,z,new n.E(E,A)):P.setAttribute("transform","translate( "+E+" "+A+" )");break}}}else if(y.id.indexOf("_dataLableIndex_Group")>-1&&!i.i(o.isNullOrUndefined)(e.layers[this.index])){this.intersect=[],e.zoomLabelPositions=[],e.zoomLabelPositions=e.dataLabelModule.dataLabelCollections;for(var B=!e.isTileMap&&t,b=0;b<y.childElementCount;b++)if(y.childNodes[b].id.indexOf("_LabelIndex_")>-1){var j=parseFloat(y.childNodes[b].id.split("_LabelIndex_")[1].split("_")[0]);this.zoomshapewidth=y.childNodes[b].getBoundingClientRect(),e.zoomShapeCollection.push(this.zoomshapewidth),this.dataLabelTranslate(y.childNodes[b],u,d,p,s,"DataLabel",B);var U=e.layers[this.index].dataLabelSettings,R=U.border;if(b>0&&R.width>1&&y.childNodes[b-1].id.indexOf("_rectIndex_")>-1&&!i.i(o.isNullOrUndefined)(e.zoomLabelPositions[j])){var D=(e.zoomLabelPositions[j].location.x+d)*s,Z=(e.zoomLabelPositions[j].location.y+p)*s,H=y.childNodes[b].innerHTML,V=e.layers[this.index].dataLabelSettings.textStyle,G=i.i(n.u)(H,V),W=y.childNodes[b-1],q=D-G.width/2,X=Z-G.height/2-5;W.setAttribute("x",q),W.setAttribute("y",X)}}}}else e.isTileMap&&y.id.indexOf("_line_Group")>-1?(y.remove(),c.children.length>0&&c.children[0]?c.insertBefore(e.navigationLineModule.renderNavigation(this.currentLayer,e.tileZoomLevel,this.index),c.children[1]):c.appendChild(e.navigationLineModule.renderNavigation(this.currentLayer,e.tileZoomLevel,this.index))):-1===y.id.indexOf("Legend")&&(i.i(a._114)(y,this.index,s,e),e.zoomTranslatePoint=e.translatePoint,this.animateTransform(y,t,d,p,s))}}e.arrangeTemplate()}i.i(o.isNullOrUndefined)(this.currentLayer)||t&&0!==this.currentLayer.animationDuration&&!e.isTileMap||this.processTemplate(d,p,s,e)}},e.prototype.markerTranslates=function(e,t,r,l,s,d,p,h){var c=this;void 0===h&&(h=!1);var u=0,m=0,g=0,y=parseInt((e||p).id.split("_LayerIndex_")[1].split("_")[0],10),f=this.maps.renderer.createGroup({id:this.maps.element.id+"_Markers_Group",class:"GroupElement"});f.style.pointerEvents="auto",document.getElementById(f.id)&&i.i(n._22)(f.id);var b=this.maps.mapAreaRect,v=i.i(o.createElement)("div",{id:this.maps.element.id+"_LayerIndex_"+y+"_Markers_Template_Group",className:"template"});v.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+b.y+"px;left:"+b.x+"px;height:"+b.height+"px;width:"+b.width+"px;",document.getElementById(v.id)&&i.i(n._22)(v.id);var S=this.maps.layersCollection[y];S.markerSettings.map(function(e,h){var b=e.dataSource;Array.prototype.forEach.call(b,function(_,x){c.maps.markerNullCount=h>=0&&0===x?0:c.maps.markerNullCount;var O={template:e.template,data:_,maps:c.maps,marker:e,cancel:!1,name:a.q,fill:e.fill,colorValuePath:e.colorValuePath,shapeValuePath:e.shapeValuePath,height:e.height,width:e.width,imageUrl:e.imageUrl,imageUrlValuePath:e.imageUrlValuePath,shape:e.shape,border:e.border};O=i.i(n.P)(O,_),O=i.i(n.O)(O,_),c.maps.trigger("markerRendering",O,function(a){e.shapeValuePath!==O.shapeValuePath&&(O=i.i(n.P)(O,_)),e.colorValuePath!==O.colorValuePath&&(O=i.i(n.O)(O,_));var M=i.i(o.isNullOrUndefined)(e.latitudeValuePath)?i.i(o.isNullOrUndefined)(_.latitude)?i.i(o.isNullOrUndefined)(_.Latitude)?null:_.Latitude:parseFloat(_.latitude):Number(i.i(n.N)(_,e.latitudeValuePath)),L=i.i(o.isNullOrUndefined)(e.longitudeValuePath)?i.i(o.isNullOrUndefined)(_.longitude)?i.i(o.isNullOrUndefined)(_.Longitude)?null:_.Longitude:parseFloat(_.longitude):Number(i.i(n.N)(_,e.longitudeValuePath)),C=e.offset;if(!O.cancel&&e.visible&&!i.i(o.isNullOrUndefined)(L)&&!i.i(o.isNullOrUndefined)(M)){var w=c.maps.element.id+"_LayerIndex_"+y+"_MarkerIndex_"+h+"_dataIndex_"+x,P=c.maps.isTileMap?i.i(n.i)(new n.E(L,M),c.maps.tileZoomLevel,c.maps.tileTranslatePoint,!0):i.i(n.h)(M,L,t,S,c.maps),T={x:r,y:l};!O.template||isNaN(P.x)||isNaN(P.y)?O.template||isNaN(P.x)||isNaN(P.y)||(m++,i.i(n.T)(O,e,b,x,P,T,w,C,s,c.maps,f)):(g++,i.i(n.U)(O,void 0,w,_,h,v,P,T,s,C,c.maps))}u+=isNaN(M)||isNaN(L)?1:0,g+=O.cancel?1:0,m+=O.cancel?1:0,c.maps.markerNullCount=i.i(o.isNullOrUndefined)(M)||i.i(o.isNullOrUndefined)(L)?c.maps.markerNullCount+1:c.maps.markerNullCount;var I=b.length-c.maps.markerNullCount;f.childElementCount===I-g-u&&"Template"!==d&&(p.appendChild(f),S.markerClusterSettings.allowClustering&&(c.maps.svgObject.appendChild(f),c.maps.element.appendChild(c.maps.svgObject),i.i(n.Q)(S,f,c.maps,y,f,p,!0,!0))),v.childElementCount===I-m-u&&i.i(n._27)(c.maps.element.id+"_Secondary_Element")&&(i.i(n._27)(c.maps.element.id+"_Secondary_Element").appendChild(v),s>=1&&S.markerClusterSettings.allowClustering&&i.i(n.Q)(S,v,c.maps,y,f,p,!1,!0))})})})},e.prototype.processTemplate=function(e,t,a,r){for(var l=0;l<this.templateCount;l++){var s=r.mapLayerPanel.calculateFactor(this.currentLayer),d=i.i(n._27)(r.element.id+"_LayerIndex_"+l+"_Markers_Template_Group"),p=i.i(n._27)(r.element.id+"_LayerIndex_"+l+"_Label_Template_Group");if(!i.i(o.isNullOrUndefined)(d)&&d.childElementCount>0)for(var h=0;h<d.childElementCount;h++)this.markerTranslate(d.childNodes[h],s,e,t,a,"Template");if(!i.i(o.isNullOrUndefined)(p)&&p.childElementCount>0)for(var h=0;h<p.childElementCount;h++)this.dataLabelTranslate(p.childNodes[h],s,e,t,a,"Template")}},e.prototype.dataLabelTranslate=function(e,t,a,r,l,s,d){void 0===d&&(d=!1);var p,h,c,u,m,g,y=this.maps.dataLabelModule.dataLabelCollections,f=this.maps.layers[this.index].dataLabelSettings.textStyle,b=parseFloat(e.id.split("_LayerIndex_")[1].split("_")[0]),v=parseFloat(e.id.split("_shapeIndex_")[1].split("_")[0]);e.id.indexOf("_LabelIndex_")>-1&&(g=parseFloat(e.id.split("_LabelIndex_")[1].split("_")[0]));for(var S=this.currentLayer.animationDuration,_=0;_<y.length;_++){var x=y[_];if(x.layerIndex===b&&x.shapeIndex===v&&x.labelIndex===g){var O=x.location.x,M=x.location.y;if("Template"===s){var L=0,C=0;if(this.maps.isTileMap)c=x.dataLabelText,u=i.i(n.u)(c,f),L=(O+a)*l-u.width/2,C=(M+r)*l-u.height;else{var w=i.i(n._27)(this.maps.element.id+"_Layer_Collections");O=Math.abs(this.maps.baseMapRectBounds.min.x-O)*l,M=Math.abs(this.maps.baseMapRectBounds.min.y-M)*l;var P=w.getBoundingClientRect(),T=e.parentElement.getBoundingClientRect();L=O+(P.left-T.left),C=M+(P.top-T.top)}e.style.left=L+"px",e.style.top=C+"px"}else{O=(O+a)*l,M=(M+r)*l,c=x.dataLabelText,u=i.i(n.u)(c,f);var I=M-u.height/4,N=M+u.height/4,k=O+u.width/2,F=O-u.width/2,E={rightWidth:k,leftWidth:F,heightTop:I,heightBottom:N};if(d&&0!==S||e.setAttribute("transform","translate( "+O+" "+M+" )"),"Hide"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(p=this.maps.dataLabelShape[_]*l>=u.width?c:"",e.innerHTML=p):(p=this.maps.dataLabelShape[_]>=u.width?c:"",e.innerHTML=p)),"Trim"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(m=i.i(n._20)(this.maps.dataLabelShape[_]*l,c,f),p=m,e.innerHTML=p):(m=i.i(n._20)(this.maps.dataLabelShape[_],c,f),p=m,e.innerHTML=p)),"Hide"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var A=0;A<this.intersect.length;A++)if(!i.i(o.isNullOrUndefined)(this.intersect[A])){if(!(E.leftWidth>this.intersect[A].rightWidth||E.rightWidth<this.intersect[A].leftWidth||E.heightTop>this.intersect[A].heightBottom||E.heightBottom<this.intersect[A].heightTop)){p="",e.innerHTML=p;break}p=i.i(o.isNullOrUndefined)(p)?c:p,e.innerHTML=p}this.intersect.push(E)}if("Trim"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var z=0;z<this.intersect.length;z++)if(!i.i(o.isNullOrUndefined)(this.intersect[z]))if(E.rightWidth<this.intersect[z].leftWidth||E.leftWidth>this.intersect[z].rightWidth||E.heightBottom<this.intersect[z].heightTop||E.heightTop>this.intersect[z].heightBottom)h=i.i(o.isNullOrUndefined)(p)?c:p,l>1&&(h=i.i(n._20)(this.maps.dataLabelShape[_]*l,h,f)),e.innerHTML=h;else{if(E.leftWidth>this.intersect[z].leftWidth){var B=this.intersect[z].rightWidth-E.leftWidth,j=B-(E.rightWidth-E.leftWidth);p=i.i(o.isNullOrUndefined)(p)?c:p,h=i.i(n._20)(j,p,f),e.innerHTML=h;break}if(E.leftWidth<this.intersect[z].leftWidth){var B=E.rightWidth-this.intersect[z].leftWidth,j=Math.abs(B-(E.rightWidth-E.leftWidth));p=i.i(o.isNullOrUndefined)(p)?c:p,h=i.i(n._20)(j,p,f),e.innerHTML=h;break}}this.intersect.push(E),i.i(o.isNullOrUndefined)(h)&&(h=i.i(n._20)(this.maps.dataLabelShape[_]*l,c,f),e.innerHTML=h)}(d||S>0)&&i.i(n._60)(e,0,S,new n.E(O,M))}}}},e.prototype.markerTranslate=function(e,t,a,r,l,s,d){void 0===d&&(d=!1);var p=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),h=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10),c=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),u=this.maps.layersCollection[p],m=u.markerSettings[h];if(!i.i(o.isNullOrUndefined)(m)&&!i.i(o.isNullOrUndefined)(m.dataSource)&&!i.i(o.isNullOrUndefined)(m.dataSource[c])){var g=i.i(o.isNullOrUndefined)(m.longitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[c].longitude)?i.i(o.isNullOrUndefined)(m.dataSource[c].Latitude)?0:parseFloat(m.dataSource[c].Latitude):parseFloat(m.dataSource[c].longitude):Number(i.i(n.N)(m.dataSource[c],m.longitudeValuePath)),y=i.i(o.isNullOrUndefined)(m.latitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[c].latitude)?i.i(o.isNullOrUndefined)(m.dataSource[c].Latitude)?0:parseFloat(m.dataSource[c].Latitude):parseFloat(m.dataSource[c].latitude):Number(i.i(n.N)(m.dataSource[c],m.latitudeValuePath)),f=this.currentLayer.animationDuration,b=this.maps.isTileMap?i.i(n.i)(new n.r(g,y),this.maps.tileZoomLevel,this.maps.tileTranslatePoint,!0):i.i(n.h)(y,g,t,u,this.maps);if(this.maps.isTileMap)if("Template"===s){var v=e.getBoundingClientRect();if(e.style.left=b.x-v.width/2+m.offset.x+"px",e.style.top=b.y-v.height/2+m.offset.y+"px","GoogleStaticMap"===this.maps.layers[this.maps.baseLayerIndex].layerType){var S=i.i(n._27)(this.maps.element.id+"_StaticGoogleMap").getBoundingClientRect();"none"!==e.style.display&&((S.x>v.x||S.x+640<v.x+v.width)&&(S.y>v.y||S.y+S.height<v.y+v.height)?e.style.display="none":(S.x>v.x||S.x+640<v.x+v.width)&&(e.style.display="none"))}}else b.x+=m.offset.x,b.y+=m.offset.y,e.setAttribute("transform","translate( "+b.x+" "+b.y+" )");else if("Template"===s)if(f>0){b.x=Math.abs(this.maps.baseMapRectBounds.min.x-b.x)*l,b.y=Math.abs(this.maps.baseMapRectBounds.min.y-b.y)*l;var _=i.i(n._27)(this.maps.element.id+"_Layer_Collections").getBoundingClientRect(),x=e.parentElement.getBoundingClientRect();e.style.left=b.x+(_.left-x.left)+m.offset.x+"px",e.style.top=b.y+(_.top-x.top)+m.offset.y+"px",e.style.transform="translate(-50%, -50%)"}else{var x=e.getBoundingClientRect();e.style.left=(b.x+a)*l+m.offset.x-this.maps.mapAreaRect.x-x.width/2+"px",e.style.top=(b.y+r)*l+m.offset.y-this.maps.mapAreaRect.y-x.height/2+"px"}else b.x=(b.x+a)*l+m.offset.x,b.y=(b.y+r)*l+m.offset.y,d&&0!==f?i.i(n._60)(e,0,f,b):e.setAttribute("transform","translate( "+b.x+" "+b.y+" )")}},e.prototype.markerLineAnimation=function(e){if(e.isTileMap)for(var t=0;t<e.layersCollection.length;t++){var a=i.i(n._27)(this.maps.element.id+"_LayerIndex_"+t+"_Markers_Template_Group"),r=i.i(n._27)(this.maps.element.id+"_LayerIndex_"+t+"_line_Group");i.i(o.isNullOrUndefined)(a)||(a.style.visibility="hidden"),i.i(o.isNullOrUndefined)(r)||(r.style.visibility="hidden")}},e.prototype.panning=function(e,t,a,l){var s,d=this.maps,p=this.mouseDownPoints,h=this.mouseMovePoints,c=d.scale;d.markerZoomedState=!1,d.zoomPersistence=d.enablePersistence,d.defaultState=!1,d.initialCheck=!1;var u,m,g=d.translatePoint,y=d.tileTranslatePoint;if(t=i.i(o.isNullOrUndefined)(t)?p.x-h.x:t,a=i.i(o.isNullOrUndefined)(a)?p.y-h.y:a,this.maps.mergeCluster(),d.isTileMap){if(this.maps.tileZoomLevel>1){u=d.tileTranslatePoint.x-t,m=d.tileTranslatePoint.y-a,this.distanceX=u-d.tileTranslatePoint.x,this.distanceY=m-d.tileTranslatePoint.y,d.tileTranslatePoint.x=u,d.tileTranslatePoint.y=m,(d.tileTranslatePoint.y>-10&&a<0||d.tileTranslatePoint.y<-256*(Math.pow(2,this.maps.tileZoomLevel)-2)&&a>0)&&(d.tileTranslatePoint.x=u+t,d.tileTranslatePoint.y=m+a),d.translatePoint.x=(d.tileTranslatePoint.x-t)/d.scale,d.translatePoint.y=(d.tileTranslatePoint.y-a)/d.scale;var f=this.maps.getTileGeoLocation(l.layerX,l.layerY);s={cancel:!1,name:r.H,maps:d,tileTranslatePoint:{previous:y,current:d.tileTranslatePoint},translatePoint:{previous:g,current:d.translatePoint},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:f.latitude,longitude:f.longitude},d.trigger(r.H,s),d.mapLayerPanel.generateTiles(d.tileZoomLevel,d.tileTranslatePoint,"Pan"),this.applyTransform(d)}}else{var b=document.getElementById(d.element.id+"_Legend_Group"),v=i.i(o.isNullOrUndefined)(b)?0:b.getClientRects()[0].height;u=g.x-t/c,m=g.y-a/c;var S=i.i(n._27)(d.element.id+"_Layer_Collections").getBoundingClientRect(),_=i.i(n._27)(d.element.id+"_svg").getBoundingClientRect(),x=t<0?S.left<=_.left+d.mapAreaRect.x:S.left+S.width+d.mapAreaRect.x>=_.width,O=a<0?S.top<=_.top+d.mapAreaRect.y:S.top+S.height+v+d.margin.top>=_.top+_.height,M=this.maps.getGeoLocation(this.maps.layersCollection.length-1,l.layerX,l.layerY);s={cancel:!1,name:r.H,maps:d,tileTranslatePoint:{},translatePoint:{previous:g,current:new n.r(u,m)},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:M.latitude,longitude:M.longitude},d.trigger(r.H,s),s.cancel||(x&&O?(d.translatePoint=new n.r(u,m),this.applyTransform(d)):x?(d.translatePoint=new n.r(u,d.translatePoint.y),this.applyTransform(d)):O&&(d.translatePoint=new n.r(d.translatePoint.x,m),this.applyTransform(d))),this.maps.zoomNotApplied=!1}d.zoomTranslatePoint=d.translatePoint,this.mouseDownPoints=this.mouseMovePoints,this.isSingleClick=!1},e.prototype.toAlignSublayer=function(){this.maps.translatePoint.x=i.i(o.isNullOrUndefined)(this.distanceX)?this.maps.translatePoint.x:this.maps.translatePoint.x-this.distanceX/this.maps.scale,this.maps.translatePoint.y=i.i(o.isNullOrUndefined)(this.distanceY)?this.maps.translatePoint.y:this.maps.translatePoint.y-this.distanceY/this.maps.scale,this.applyTransform(this.maps,!1)},e.prototype.toolBarZooming=function(e,t){var i=this,o=this.maps;o.initialCheck=!1,o.defaultState="Reset"===t&&1===e&&!(o.zoomSettings.resetToInitial&&o.applyZoomReset)||"ZoomOut"===t&&1===e;var a=o.tileZoomLevel,r=o.previousScale=o.scale;o.markerZoomedState=!1,o.zoomPersistence=o.enablePersistence,o.mapScaleValue=e;var l=o.zoomSettings.maxZoom,s=o.zoomSettings.minZoom,d=o.mapAreaRect,p=o.previousPoint=o.translatePoint,h=o.tileTranslatePoint;o.previousProjection=o.projectionType,e="ZoomOut"===t&&1===Math.round(e)?1:e,e="Reset"===t?1:0===Math.round(e)?1:e,e=s>e&&"ZoomIn"===t?s+1:e;if(!o.isTileMap&&("ZoomIn"===t?e>=s&&e<=l:e>=s||o.isReset)){var c=o.baseMapRectBounds.min,u=o.baseMapRectBounds.max,m=Math.abs(u.x-c.x),g=Math.abs(c.y-u.y),y=void 0,f=void 0;if(e<1.2&&"Eckert5"!==o.projectionType)0!==g&&0!==m&&g!==m||(m=d.width/2,g=d.height),e=parseFloat(Math.min(d.width/m,d.height/g).toFixed(2)),e=e>1.05?1:e,o.translatePoint=this.calculateInitalZoomTranslatePoint(e,m,g,d,c,o);else{y=p.x-(d.width/r-d.width/e)/2,f=p.y-(d.height/r-d.height/e)/2;var b=Math.abs(o.baseMapRectBounds.max.y-o.baseMapRectBounds.min.y)*e;y=b<o.mapAreaRect.height?d.x+(-c.x+(d.width/2-m/2)):y,f=b<o.mapAreaRect.height?d.y+(-c.y+(d.height/2-g/2)):f,o.translatePoint=new n.r(y,f)}o.zoomTranslatePoint=o.translatePoint,o.scale=e,this.triggerZoomEvent(h,a,t)?(o.translatePoint=o.zoomTranslatePoint=o.previousPoint,o.scale=o.previousScale):this.applyTransform(o,!0)}else if(o.isTileMap&&(e>=s&&e<=l||o.isReset)){var v=a<s&&!o.isReset?s:e;if(o.scale=Math.pow(2,v-1),o.tileZoomLevel=v,o.previousScale!==o.scale||o.isReset){o.zoomSettings.zoomFactor=e;var S={x:o.availableSize.width/2,y:o.availableSize.height/2};if(this.getTileTranslatePosition(a,v,S,t),(o.zoomSettings.resetToInitial&&o.applyZoomReset&&"Reset"===t||"ZoomOut"===t&&o.zoomSettings.resetToInitial&&o.applyZoomReset&&v<=o.initialZoomLevel)&&(o.initialCheck=!0,o.zoomPersistence=!1,o.tileTranslatePoint.x=o.initialTileTranslate.x,o.tileTranslatePoint.y=o.initialTileTranslate.y,v=o.tileZoomLevel=o.mapScaleValue=o.initialZoomLevel),this.triggerZoomEvent(h,a,t))o.translatePoint=o.tileTranslatePoint=new n.r(0,0),o.scale=o.previousScale,o.tileZoomLevel=a,o.zoomSettings.zoomFactor=o.previousScale;else{o.translatePoint.y=(o.tileTranslatePoint.y-.01*o.mapScaleValue)/o.scale,o.translatePoint.x=(o.tileTranslatePoint.x-.01*o.mapScaleValue)/o.scale,document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),this.markerLineAnimation(o),o.mapLayerPanel.generateTiles(v,o.tileTranslatePoint,t);var _=(document.getElementById(this.maps.element.id+"_tiles"),this.maps.layersCollection[0].animationDuration);setTimeout(function(){i.applyTransform(i.maps,!0),document.getElementById(i.maps.element.id+"_LayerIndex_1")&&(document.getElementById(i.maps.element.id+"_LayerIndex_1").style.display="block"),i.maps.isAddLayer=!1},_)}}this.maps.zoomNotApplied=!1}},e.prototype.createZoomingToolbars=function(){var e=this.maps;this.toolBarGroup=e.renderer.createGroup({id:e.element.id+"_Zooming_KitCollection",opacity:"fluentdark"===e.theme.toLowerCase()?.6:.3});var t=15,i=15,o=e.zoomSettings.toolBarOrientation,a=e.zoomSettings.toolbars,r='<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/>';r+='<feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/>',r+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var l=e.zoomSettings.toolbars.length,s="Horizontal"===e.zoomSettings.toolBarOrientation?16*l+20*l:32,d="Horizontal"===e.zoomSettings.toolBarOrientation?32:16*l+20*l,p=e.renderer.createDefs();p.innerHTML=r,this.toolBarGroup.appendChild(p);var h=e.renderer.drawRectangle(new n.y(e.element.id+"_Zooming_Rect","transparent",{color:"transparent",width:1},.1,new n.F(0,0,s,d),0,0));h.setAttribute("filter","url(#chart_shadow)"),this.toolBarGroup.appendChild(h);for(var c=0;c<a.length;c++){var u=a[c];this.currentToolbarEle=e.renderer.createGroup({id:e.element.id+"_Zooming_ToolBar_"+u+"_Group",transform:"translate( "+t+" "+i+" ) "}),this.currentToolbarEle.setAttribute("class","e-maps-toolbar");var m="transparent",g="";switch(this.selectionColor=this.maps.zoomSettings.selectionColor||this.maps.themeStyle.zoomSelectionColor,u.toLowerCase()){case"zoom":var y=void 0,f=void 0;g="M0.001,14.629L1.372,16l4.571-4.571v-0.685l0.228-0.274c1.051,0.868,2.423,1.417,3.885,1.417c3.291,0,",g+="5.943-2.651,5.943-5.943S13.395,0,10.103,0S4.16,2.651,4.16,5.943c0,1.508,0.503,2.834,1.417,3.885l-0.274,0.228H4.571",g+="L0.001,14.629L0.001,14.629z M5.943,5.943c0-2.285,1.828-4.114,4.114-4.114s4.114,1.828,4.114,",this.maps.zoomSettings.enablePanning&&!this.maps.zoomSettings.enableSelectionZooming?(y=m,f=this.maps.themeStyle.zoomFillColor):this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(y=m,f=this.maps.themeStyle.zoomFillColor):this.maps.zoomSettings.enablePanning||this.maps.zoomSettings.enableSelectionZooming?(y=this.selectionColor,f=this.selectionColor):(y=m,f=this.maps.themeStyle.zoomFillColor),this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,y,1,f,1,1,null,g+"4.114s-1.828,4.114-4.114,4.114S5.943,8.229,5.943,5.943z"))),this.zoomElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomin":g="M 8, 0 L 8, 16 M 0, 8 L 16, 8",this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u+"_Path",m,3,this.maps.themeStyle.zoomFillColor,1,1,null,g))),this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomout":g="M 0, 8 L 16, 8",this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,m,3,this.maps.themeStyle.zoomFillColor,1,1,null,g))),this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"pan":var b=void 0;g="M5,3h2.3L7.275,5.875h1.4L8.65,3H11L8,0L5,3z M3,11V8.7l2.875,0.025v-1.4L3,7.35V5L0,8L3,",g+="11z M11,13H8.7l0.025-2.875h-1.4L7.35,13H5l3,3L11,13z M13,5v2.3l-2.875-0.025v1.4L13,8.65V11l3-3L13,5z",this.maps.zoomSettings.enablePanning&&this.maps.zoomModule.isDragZoom?b="#737373":this.maps.zoomSettings.enablePanning?b=this.selectionColor:(b="#737373",this.currentToolbarEle.setAttribute("class","")),this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,b,1,b,1,1,null,g))),this.panColor=b,this.panElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"reset":g="M12.364,8h-2.182l2.909,3.25L16,8h-2.182c0-3.575-2.618-6.5-5.818-6.5c-1.128,0-2.218,0.366-3.091,",g+="1.016l1.055,1.178C6.581,3.328,7.272,3.125,8,3.125C10.4,3.125,12.363,5.319,12.364,8L12.364,8z M11.091,",g+="13.484l-1.055-1.178C9.419,12.672,8.728,12.875,8,12.875c-2.4,0-4.364-2.194-4.364-4.875h2.182L2.909,4.75L0,8h2.182c0,",this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,this.fillColor,null,this.maps.themeStyle.zoomFillColor,1,1,null,g+"3.575,2.618,6.5,5.818,6.5C9.128,14.5,10.219,14.134,11.091,13.484L11.091,13.484z"))),this.wireEvents(this.currentToolbarEle,this.performToolBarAction)}this.currentToolbarEle.appendChild(e.renderer.drawCircle(new n.z(e.element.id+"_Zooming_ToolBar_"+u+"_Rect",m,{color:this.maps.themeStyle.zoomFillColor,width:1},1,8,8,16,""))),t="Horizontal"===o?t+36:t,i="Horizontal"===o?i:i+36,this.toolBarGroup.appendChild(this.currentToolbarEle)}},e.prototype.performToolBarAction=function(e){var t=e.target;e.stopImmediatePropagation();var i="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1,n=t.id.split("_Zooming_ToolBar_")[1].split("_")[0];i?(this.handled=!0,this.performZoomingByToolBar(n)):"mousedown"!==e.type&&"pointerdown"!==e.type||this.handled?this.handled=!1:(this.handled=!1,this.performZoomingByToolBar(n))},e.prototype.performZoomingByToolBar=function(e){var t=this.maps;switch(t.isReset=!1,e.toLowerCase()){case"zoom":this.panColor=this.fillColor,this.zoomColor=this.selectionColor,this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.fillColor);break;case"pan":this.maps.zoomSettings.enablePanning?this.panColor=this.selectionColor:this.panColor="#737373",this.zoomColor=this.fillColor,this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,this.fillColor),this.applySelection(this.panElements,this.panColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.panColor));break;case"zoomin":t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<22&&(t.staticMapZoom+=1),this.toolBarZooming((t.isTileMap?t.tileZoomLevel:t.scale)+1,"ZoomIn");break;case"zoomout":t.staticMapZoom=t.tileZoomLevel,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.toolBarZooming((t.isTileMap?t.tileZoomLevel:t.scale)-1,"ZoomOut");break;case"reset":t.staticMapZoom=t.zoomSettings.enable?t.zoomSettings.zoomFactor:0,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.toolBarZooming(1,"Reset"),this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,this.fillColor),this.applySelection(this.panElements,this.selectionColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,"#737373"))}this.panningStyle(e.toLowerCase())},e.prototype.panningStyle=function(e){var t=i.i(n._27)(this.maps.element.id+"_svg");"pan"===e||this.isPanning?t.setAttribute("class","e-maps-panning"):t.setAttribute("class","")},e.prototype.applySelection=function(e,t){if(e)for(var i,n=0;n<e.childElementCount;n++)i=e.childNodes[n],"circle"!==i.tagName&&(i.setAttribute("fill",t),i.setAttribute("stroke",t))},e.prototype.showTooltip=function(e){var t=e.target.id.split("_Zooming_ToolBar_")[1].split("_")[0];this.isTouch||i.i(n._45)("EJ2_Map_Toolbar_Tip",this.maps.getLocalizedLabel(t),e.pageY+10,e.pageX+10,"10px")},e.prototype.removeTooltip=function(){i.i(n._27)("EJ2_Map_Toolbar_Tip")&&i.i(o.remove)(i.i(n._27)("EJ2_Map_Toolbar_Tip"))},e.prototype.alignToolBar=function(){var e=this.maps,t=i.i(o.createElement)("div",{id:e.element.id+"_ToolBar"});t.style.cssText="position:absolute;z-index:2";var a=e.renderer.createSvg({id:e.element.id+"_Zooming_ToolBar",width:10,height:10});a.appendChild(this.toolBarGroup),t.appendChild(a),i.i(n._27)(e.element.id+"_Secondary_Element")&&i.i(n._27)(e.element.id+"_Secondary_Element").appendChild(t);var r=this.toolBarGroup.getBoundingClientRect();a.setAttribute("height",(r.height+5).toString()),a.setAttribute("width",(r.width+5).toString());var l=i.i(o.isNullOrUndefined)(e.totalRect)?e.mapAreaRect:e.totalRect,s=0,d=0;switch(e.zoomSettings.verticalAlignment){case"Near":d=l.y;break;case"Center":d=l.height/2-r.height/2;break;case"Far":d=l.height-r.height-10}switch(e.zoomSettings.horizontalAlignment){case"Near":s=l.x;break;case"Center":s=l.width/2-r.width/2;break;case"Far":s=i.i(o.isNullOrUndefined)(e.legendModule)||"Left"!==e.legendSettings.position?l.width-r.width-10:l.width+l.x-r.width-10}var p=e.getExtraPosition();t.style.left=s+p.x+"px",t.style.top=d+p.y+"px";var h=this.maps.zoomSettings.highlightColor||this.maps.themeStyle.zoomSelectionColor,c=" .e-maps-toolbar:hover > circle { stroke:"+h+"; } .e-maps-toolbar:hover > path { fill: "+h+" ; stroke: "+h+"; }.e-maps-toolbar:hover { cursor: pointer; } .e-maps-cursor-disable:hover { cursor: not-allowed; } .e-maps-panning:hover { cursor: pointer; } .e-maps-popup-close { display: block; opacity: 0; }",u=document.createElement("style");u.appendChild(document.createTextNode(c)),t.appendChild(u)},e.prototype.wireEvents=function(e,t){o.EventHandler.add(e,o.Browser.touchStartEvent,t,this),o.EventHandler.add(e,"mouseover",this.showTooltip,this),o.EventHandler.add(e,"mouseout",this.removeTooltip,this)},e.prototype.mapMouseWheel=function(e){if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.mouseWheelZoom){var t=this.maps;t.availableSize;t.markerZoomedState=!1,t.zoomPersistence=t.enablePersistence;var i=this.getMousePosition(e.pageX,e.pageY),n=t.tileZoomLevel,o=t.scale,a=t.isTileMap?n:o;if(i.x>t.mapAreaRect.x&&i.x<t.mapAreaRect.x+t.mapAreaRect.width&&i.y>t.mapAreaRect.y&&i.y<t.mapAreaRect.y+t.mapAreaRect.height){e.preventDefault();var r="mozilla"!==this.browserName||this.isPointer?e.wheelDelta/120>0?"ZoomIn":"ZoomOut":-e.detail/3>0?"ZoomIn":"ZoomOut";"ZoomIn"===r?(t.mapScaleValue=a+1,t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<22&&(t.staticMapZoom+=1),this.performZooming(i,a+1,r)):(t.mapScaleValue=a-1,t.isReset=t.mapScaleValue<1,t.staticMapZoom=t.tileZoomLevel,1===t.mapScaleValue&&(t.markerCenterLatitude=null,t.markerCenterLongitude=null),t.staticMapZoom>1&&t.staticMapZoom<22&&(t.staticMapZoom-=1),this.performZooming(i,a-1,r))}}},e.prototype.doubleClick=function(e){var t=e.pageX,i=e.pageY;e.target;if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.doubleClickZoom&&!(e.target.id.indexOf("_Zooming_")>-1)){var n=this.getMousePosition(t,i),o=this.maps,a=(o.availableSize,o.tileZoomLevel),r=o.scale;o.mapScaleValue=o.mapScaleValue+1;var l=o.isTileMap?a:r;n.x>o.mapAreaRect.x&&n.x<o.mapAreaRect.x+o.mapAreaRect.width&&n.y>o.mapAreaRect.y&&n.y<o.mapAreaRect.y+o.mapAreaRect.height&&this.performZooming(n,l+1,"ZoomIn")}},e.prototype.mouseDownHandler=function(e){var t,i,n=null;e.target;"touchstart"===e.type?(this.isTouch=!0,n=e.touches,e.target,t=n[0].clientX,i=n[0].clientY):(t=e.pageX,i=e.pageY,e.target),this.maps.zoomSettings.enablePanning?this.isPanning=this.panColor===this.selectionColor?this.maps.zoomSettings.enablePanning:this.zoomColor!==this.selectionColor:this.isPanning=this.panColor!==this.selectionColor?this.maps.zoomSettings.enablePanning:this.zoomColor===this.selectionColor,this.mouseDownLatLong={x:t,y:i},this.rectZoomingStart=!this.isPanning&&this.maps.zoomSettings.enable,this.mouseDownPoints=this.getMousePosition(t,i),this.isTouch&&(this.firstMove=!0,this.pinchFactor=this.maps.scale,this.fingers=n.length),this.isSingleClick=!0},e.prototype.mouseMoveHandler=function(e){var t,a,r,l=this.maps,s=null,d=this.maps.zoomSettings;"touchmove"===e.type?(this.isTouch=!0,r=e.target,s=e.touches,t=s[0].clientX,a=s[0].clientY):(t=e.pageX,a=e.pageY,r=e.target),i.i(n._27)(l.element.id+"_Zooming_KitCollection")&&(r.id.indexOf("_Zooming_")>-1?(i.i(n._27)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","1"),document.getElementById(l.element.id+"_Zooming_ToolBar_Pan_Group")&&(this.maps.zoomSettings.enablePanning||(r.id.indexOf("_Zooming_ToolBar")>-1||r.id.indexOf("_Zooming_Rect")>-1)&&(i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan_Rect").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3"),i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3")))):(i.i(n._27)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3"),!this.maps.zoomSettings.enablePanning&&document.getElementById(l.element.id+"_Zooming_ToolBar_Pan_Group")&&(i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan_Rect").setAttribute("opacity","1"),i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan").setAttribute("opacity","1")))),this.isTouch&&this.maps.zoomSettings.pinchZooming&&(this.firstMove&&2===s.length?(this.rectZoomingStart=!1,this.updateInteraction(),this.touchStartList=i.i(n._51)(e)):2===s.length&&2===this.touchStartList.length&&(this.touchMoveList=i.i(n._51)(e),e.preventDefault(),this.rectZoomingStart=!1,this.performPinchZooming(e)),this.firstMove=!1),this.mouseMovePoints=this.getMousePosition(t,a);e.target.id,e.target;d.enable&&this.isPanning&&(o.Browser.isDevice&&s.length>=1||!o.Browser.isDevice)&&(e.preventDefault(),this.maps.element.style.cursor="pointer",this.mouseMoveLatLong={x:t,y:a},this.mouseDownLatLong.x!==this.mouseMoveLatLong.x&&this.mouseDownLatLong.y!==this.mouseMoveLatLong.y&&(this.maps.zoomSettings.enablePanning&&this.panning("None",null,null,e),this.mouseDownLatLong.x=t,this.mouseDownLatLong.y=a)),(this.isTouch?1===s.length&&this.rectZoomingStart:this.rectZoomingStart)&&(e.preventDefault(),this.maps.zoomSettings.enableSelectionZooming&&this.drawZoomRectangle())},e.prototype.mouseUpHandler=function(e){this.maps;this.rectZoomingStart=!1,this.isPanning=!1,this.isSingleClick=!!this.isSingleClick,this.isTouch=!1,this.touchStartList=[],this.touchMoveList=[],this.lastScale=1,this.maps.element.style.cursor="auto",i.i(o.isNullOrUndefined)(this.distanceX)&&i.i(o.isNullOrUndefined)(this.distanceY)||i.i(o.isNullOrUndefined)(this.currentLayer)||"SubLayer"!==this.currentLayer.type||(this.toAlignSublayer(),this.distanceX=this.distanceY=null);var t=i.i(n._27)(this.maps.element.id+"_Selection_Rect_Zooming");t&&this.maps.zoomSettings.enable&&this.maps.zoomSettings.enableSelectionZooming&&(!0,i.i(o.remove)(t),this.performRectZooming()),this.mouseMoveLatLong={x:0,y:0},this.mouseDownLatLong={x:0,y:0}},e.prototype.mouseCancelHandler=function(e){this.isPanning=!1,this.isTouch=!1,this.rectZoomingStart=!1;var t=i.i(n._27)(this.maps.element.id+"_Selection_Rect_Zooming");t&&this.maps.zoomSettings.enable&&(i.i(o.remove)(t),this.performRectZooming())},e.prototype.click=function(e){var t=this.maps;if(t.markerModule&&t.markerModule.sameMarkerData.length>0||e.target.id.indexOf("MarkerIndex")>-1&&-1===e.target.id.indexOf("cluster"))return null;if(this.isSingleClick&&t.zoomSettings.zoomOnClick&&!(e.target.id.indexOf("_Zooming_")>-1)&&!t.zoomSettings.doubleClickZoom&&this.zoomColor!==this.selectionColor){var i=e.pageX,n=e.pageY,o=this.getMousePosition(i,n),a=t.tileZoomLevel,r=t.scale;t.mapScaleValue=t.mapScaleValue+1;var l=t.isTileMap?a:r;o.x>t.mapAreaRect.x&&o.x<t.mapAreaRect.x+t.mapAreaRect.width&&o.y>t.mapAreaRect.y&&o.y<t.mapAreaRect.y+t.mapAreaRect.height&&this.performZooming(o,l+1,"ZoomIn")}},e.prototype.getMousePosition=function(e,t){var i=this.maps,o=i.element.getBoundingClientRect(),a=i.element.ownerDocument.defaultView.pageXOffset,r=i.element.ownerDocument.defaultView.pageYOffset,l=i.element.ownerDocument.documentElement.clientTop,s=i.element.ownerDocument.documentElement.clientLeft,d=o.left+a-s,p=o.top+r-l;return new n.r(Math.abs(e-d),Math.abs(t-p))},e.prototype.addEventListener=function(){this.maps.isDestroyed||(o.EventHandler.add(this.maps.element,this.wheelEvent,this.mapMouseWheel,this),o.EventHandler.add(this.maps.element,"click",this.click,this),o.EventHandler.add(this.maps.element,"dblclick",this.doubleClick,this),this.maps.on(o.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.maps.on(o.Browser.touchStartEvent,this.mouseDownHandler,this),this.maps.on(o.Browser.touchEndEvent,this.mouseUpHandler,this),o.EventHandler.add(this.maps.element,this.cancelEvent,this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(o.EventHandler.remove(this.maps.element,this.wheelEvent,this.mapMouseWheel),o.EventHandler.remove(this.maps.element,"click",this.click),o.EventHandler.remove(this.maps.element,"dblclick",this.doubleClick),this.maps.off(o.Browser.touchMoveEvent,this.mouseMoveHandler),this.maps.off(o.Browser.touchStartEvent,this.mouseDownHandler),this.maps.off(o.Browser.touchEndEvent,this.mouseUpHandler),this.maps.off(this.cancelEvent,this.mouseCancelHandler))},e.prototype.getModuleName=function(){return"Zoom"},e.prototype.destroy=function(){this.toolBarGroup=null,this.currentToolbarEle=null,this.zoomingRect=null,this.zoomElements=null,this.panElements=null,this.baseTranslatePoint=null,this.touchStartList=null,this.touchMoveList=null,this.previousTouchMoveList=null,this.mouseDownPoints=null,this.mouseMovePoints=null,this.startTouches=[],this.zoomshapewidth=null,this.intersect=[],this.mouseDownLatLong=null,this.mouseMoveLatLong=null,this.removeEventListener(),this.currentLayer=null},e}()},function(e,t){e.exports=i},function(e,t){e.exports=n}])});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSvgBase","SyncfusionData","SyncfusionPdfExport"],t):"object"==typeof exports?exports.SyncfusionMaps=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):e.SyncfusionMaps=t(e.SyncfusionBase,e.SyncfusionSvgBase,e.SyncfusionData,e.SyncfusionPdfExport)}(this,function(e,t,i,n){return function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,i){"use strict";function n(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function o(e){e.element.style.height=i.i(Xe.isNullOrUndefined)(e.height)?"auto":e.height,e.element.style.width=i.i(Xe.isNullOrUndefined)(e.width)?"auto":e.width;var t=e.element.clientWidth,o=e.element.clientHeight,a=n(e.element.style.width,t),r=n(e.element.style.height,o);new $e(0,0);return"0px"===e.width||"0%"===e.width||"0%"===e.height||"0px"===e.height?new $e(0,0):new $e(n(e.width,t)||t||a||600,n(e.height,o)||o||r||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):450))}function a(e){e.renderer=new Ye.SvgRenderer(e.element.id),e.availableSize=o(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),"0px"!==e.width&&"0%"!==e.width&&"0%"!==e.height&&"0px"!==e.height||(e.svgObject.setAttribute("height","0"),e.svgObject.setAttribute("width","0"))}function r(e,t,i){var n=i.getBoundingClientRect(),o=i.ownerDocument.defaultView.pageXOffset,a=i.ownerDocument.defaultView.pageYOffset,r=i.ownerDocument.documentElement.clientTop,l=i.ownerDocument.documentElement.clientLeft,s=n.left+o-l,d=n.top+a-r;return new ct(e-s,t-d)}function l(e){return e*(Math.PI/180)}function s(e){return e*(180/Math.PI)}function d(e,t,n,o,a){var r,d,p,g,y,b,v=new $e(a.mapAreaRect.width,a.mapAreaRect.height),S=a.baseMapBounds.longitude,_=a.baseMapBounds.latitude,x=l(e),O=l(t),M=a.projectionType,L=a.isTileMap?256*Math.pow(2,1):i.i(Xe.isNullOrUndefined)(n)?Math.min(v.width,v.height):Math.min(v.width,v.height)*n;if("Normal"===o.geometryType)r=i.i(Xe.isNullOrUndefined)(n)?t:Math.abs((t-S.min)*n),d=i.i(Xe.isNullOrUndefined)(n)?e:Math.abs((_.max-e)*n);else if("Geographic"===o.geometryType){switch(M){case"Mercator":var C=new et(L/2,L/2);r=C.x+t*(L/360);var w=f(Math.sin(l(e)),-.9999,.9999);d=C.y+.5*Math.log((1+w)/(1-w))*(-L/(2*Math.PI));break;case"Winkel3":p=u(O,x),y=(p.x+O/(Math.PI/2))/2,g=(p.y+x)/2;break;case"Miller":y=O,g=1.25*Math.log(Math.tan(Math.PI/4+.4*x));break;case"Eckert3":b=Math.sqrt(Math.PI*(4+Math.PI)),y=2/b*O*(1+Math.sqrt(1-4*x*x/(Math.PI*Math.PI))),g=4/b*x;break;case"AitOff":p=u(O,x),y=p.x,g=p.y;break;case"Eckert5":y=O*(1+Math.cos(x))/Math.sqrt(2+Math.PI),g=2*x/Math.sqrt(2+Math.PI);break;case"Equirectangular":y=O,g=x;break;case"Eckert6":;b=(1+Math.PI/2)*Math.sin(x);for(var P=1/0,T=0;T<10&&Math.abs(P)>1e-6;T++)P=(x+Math.sin(x)-b)/(1+Math.cos(x)),x-=P;b=Math.sqrt(2+Math.PI),y=O*(1+Math.cos(x))/b,g=2*x/b}r="Mercator"===M?r:m(h(a,s(y)),3),d="Mercator"===M?d:-m(c(a,s(g)),3)}return new et(r,d)}function p(e,t,i,n){var o=256*Math.pow(2,t),a=(e.x+180)/360,r=Math.sin(e.y*Math.PI/180),l=.5-Math.log((1+r)/(1-r))/(4*Math.PI),s=e.x,d=e.y;return n&&(s=a*o+.5+i.x,d=l*o+.5+i.y),{x:s,y:d}}function h(e,t){var n=e.baseMapBounds.longitude,o=i.i(Xe.isNullOrUndefined)(e.baseSize)?e.mapAreaRect.width:e.mapAreaRect.width+Math.abs(e.baseSize.width-e.mapAreaRect.width)/2;return Math.round(o*(t-n.min)/(n.max-n.min)*100)/100}function c(e,t){var i=e.baseMapBounds.latitude;return Math.round(e.mapAreaRect.height*(t-i.min)/(i.max-i.min)*100)/100}function u(e,t){var i=Math.cos(t),n=g(y(i*Math.cos(e/=2)));return new et(2*i*Math.sin(e)*n,Math.sin(t)*n)}function m(e,t){var i=Math.pow(10,t);return Math.round(e*i)/i}function g(e){return e/Math.sin(e)}function y(e){return Math.acos(e)}function f(e,t,n){return i.i(Xe.isNullOrUndefined)(t)||(e=Math.max(e,t)),i.i(Xe.isNullOrUndefined)(n)||(e=Math.min(e,n)),e}function b(e,t,n,o){i.i(Xe.createElement)("a",{attrs:{download:e+"."+t.toLocaleLowerCase(),href:n}}).dispatchEvent(new MouseEvent(o?"click":"move",{view:window,bubbles:!1,cancelable:!0}))}function v(e,t){var n=document.getElementById("mapsmeasuretext");return null===n&&(n=i.i(Xe.createElement)("text",{id:"mapsmeasuretext"}),document.body.appendChild(n)),n.innerHTML=e,n.style.position="absolute","number"==typeof t.size?n.style.fontSize=t.size+"px":n.style.fontSize=t.size,n.style.fontWeight=t.fontWeight,n.style.fontStyle=t.fontStyle,n.style.fontFamily=t.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal",new $e(n.clientWidth,n.clientHeight)}function S(e,t,i,n,o){void 0===o&&(o=!1);var a,r,l={id:e.id,x:e.x,y:e.y,fill:i,"font-size":t.size,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-weight":t.fontWeight,"text-anchor":e.anchor,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine},s="string"==typeof e.text||"number"==typeof e.text?e.text:o?e.text[e.text.length-1]:e.text[0],d=new Ye.SvgRenderer(""),p=d.createText(l,s);if(p.style["user-select"]="none",p.style["font-family"]=t.fontFamily,p.style["font-size"]=t.size,p.style["font-weight"]=t.fontWeight,p.style["font-color"]=t.color,p.style["-moz-user-select"]="none",p.style["-webkit-touch-callout"]="none",p.style["-webkit-user-select"]="none",p.style["-khtml-user-select"]="none",p.style["-ms-user-select"]="none",p.style["-o-user-select"]="none","string"!=typeof e.text&&e.text.length>1)for(var h=1,c=e.text.length;h<c;h++)r=v(e.text[h],t).height,a=d.createTSpan({x:e.x,id:e.id,y:e.y+(o?-h*r:h*r)},o?e.text[e.text.length-(h+1)]:e.text[h]),p.appendChild(a);return n.appendChild(p),p}function _(e,t,n,o,a){var r=i.i(Xe.createElement)("div",{id:t});r.style.cssText="position: absolute;pointer-events: auto;";for(var l=e.length;l>0;)r.appendChild(e[0]),l--;for(var s=r.innerHTML,d=Object.keys(n),p=RegExp,h=0;h<d.length;h++)"object"==typeof n[d[h]]?s=O(s,"",n,a):"latitude"!==d[h].toLowerCase()&&"longitude"!==d[h].toLowerCase()&&(s=s.replace(new p("{{:"+d[h]+"}}","g"),n[d[h].toString()]));return r.innerHTML=s,r}function x(e,t){var i,n;return t.format&&!isNaN(Number(e))?(n=t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator}),i=n(Number(e))):i=e,i}function O(e,t,i,n){for(var o=""===e?t:e,a=""===e?o.split("${"):o.split("{{:"),r=RegExp,l=0;l<a.length;l++)if(a[l].indexOf("}}")>-1&&a[l].indexOf(".")>-1||a[l].indexOf("}")>-1&&a[l].search(".")>-1)for(var s=""===e?a[l].split("}"):a[l].split("}}"),d=0;d<s.length;d++)if(s[d].indexOf(".")>-1){var p=C(i,s[d]).toString();o=""===e?o.split("${"+s[d]+"}").join(x(p,n)):o.replace(new r("{{:"+s[d]+"}}","g"),p)}return o}function M(e,t,n,o,a){for(var r=i.i(Xe.isNullOrUndefined)(e.childElementCount)?e[0]:e,l=r.outerHTML,s=Object.keys(n),d=RegExp,p=0;p<s.length;p++)l=l.replace(new d("{{:"+s[p]+"}}","g"),n[s[p].toString()]);var h=i.i(Xe.createElement)("div",{id:t,innerHTML:l});return h.style.position="absolute",h}function L(e,t,n,o,a,r,l){var s,d,p,h,c=a.size,u=a.borderColor,m=parseFloat(a.borderWidth),g=parseFloat(a.borderOpacity),y=a.fill,f=a.dashArray,b={color:u,width:m,opacity:g},v=a.opacity,S=new ot(o,y,m,u,v,g,f,"");if(c.width="string"==typeof c.width?parseInt(c.width,10):c.width,c.height="string"==typeof c.height?parseInt(c.height,10):c.height,"Circle"===e){var _=(c.width+c.height)/4,x=new lt(o,y,b,v,n.x,n.y,_,f);s=l.renderer.drawCircle(x)}else"Rectangle"===e?(d=n.x-c.width/2,p=n.y-c.height/2,h=new rt(o,y,b,v,new ut(d,p,c.width,c.height),null,null,"",f),s=l.renderer.drawRectangle(h)):"Image"===e?(d=n.x-c.width/2,p=n.y-c.height,i.i(Xe.merge)(S,{href:t,height:c.height,width:c.width,x:d,y:p}),s=l.renderer.drawImage(S)):s=H(l,e,S,c,n,r);return s}function C(e,t){if(!i.i(Xe.isNullOrUndefined)(e)&&!i.i(Xe.isNullOrUndefined)(t)){var n=t.replace(/\[/g,".").replace(/\]/g,"").split(".");if(1===n.length)e=e[n[0]];else for(var o=0;o<n.length&&!i.i(Xe.isNullOrUndefined)(e);o++)e=e[n[o]]}return e}function w(e,t){var n=i.i(Xe.isNullOrUndefined)(e.colorValuePath)?t[e.colorValuePath]:e.colorValuePath.indexOf(".")>-1?C(t,e.colorValuePath).toString():t[e.colorValuePath];return e.fill=i.i(Xe.isNullOrUndefined)(e.colorValuePath)||i.i(Xe.isNullOrUndefined)(n)?e.fill:e.colorValuePath.indexOf(".")>-1?C(t,e.colorValuePath).toString():t[e.colorValuePath],e}function P(e,t){if(i.i(Xe.isNullOrUndefined)(e.shapeValuePath)||i.i(Xe.isNullOrUndefined)(t[e.shapeValuePath])){var n=i.i(Xe.isNullOrUndefined)(e.shapeValuePath)?e.shape:e.shapeValuePath.indexOf(".")>-1?C(t,e.shapeValuePath).toString():e.shape;e.shape=""!==n.toString()?n:e.shape;var o=i.i(Xe.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?C(t,e.imageUrlValuePath).toString():i.i(Xe.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath];e.imageUrl=o}else{var a=e.shapeValuePath.indexOf(".")>-1?C(t,e.shapeValuePath).toString():t[e.shapeValuePath];e.shape=""!==a.toString()?a:e.shape,"Image"===t[e.shapeValuePath]&&(e.imageUrl=i.i(Xe.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?C(t,e.imageUrlValuePath).toString():i.i(Xe.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath])}return e}function T(e,t,n,o,a,r,l,s){var h,c,u,m,g,y,f,b=[],v=[],_=0,x=0,O=e.markerClusterSettings.labelStyle,M=0,w=[],P=e.markerClusterSettings,T=n.renderer.createGroup({id:n.element.id+"_LayerIndex_"+o+"_markerCluster"}),I={cancel:!1,name:Qe.r,fill:P.fill,height:P.height,width:P.width,imageUrl:P.imageUrl,shape:P.shape,data:void 0,maps:n,cluster:P,border:P.border};n.trigger("markerClusterRendering",I,function(P){for(var N=0;N<t.childElementCount;N++)if(w=[],"hidden"!==t.childNodes[N].style.visibility){if(f=t.childNodes[N],h=f.getBoundingClientRect(),w.push(N),!i.i(Xe.isNullOrUndefined)(h)){for(var k=N+1;k<t.childElementCount;k++)"hidden"!==t.childNodes[k].style.visibility&&(f=t.childNodes[k],c=f.getBoundingClientRect(),i.i(Xe.isNullOrUndefined)(c)||h.left>c.right||h.right<c.left||h.top>c.bottom||h.bottom<c.top||(b.push(c),t.childNodes[k].style.visibility="hidden",w.push(k)));if(_=h.left+h.width/2,x=h.top+h.height,b.length>0){w=w.filter(function(e,t,i){return i.indexOf(e)===t});var F=n.element.getBoundingClientRect();_-=F.left,x-=n.availableSize.height<=F.height?F.top:F.bottom-F.top;var E=(n.isTileMap?new Object:de(n,e,!1),parseInt(t.childNodes[N].id.split("_dataIndex_")[1].split("_")[0],10)),A=parseInt(t.childNodes[N].id.split("_MarkerIndex_")[1].split("_")[0],10),z=e.markerSettings[A],B=z.dataSource[E],j=void 0,U=void 0,R=i.i(Xe.isNullOrUndefined)(z.longitudeValuePath)?i.i(Xe.isNullOrUndefined)(B.longitude)?i.i(Xe.isNullOrUndefined)(B.Latitude)?0:parseFloat(B.Latitude):parseFloat(B.longitude):Number(C(B,z.longitudeValuePath)),D=i.i(Xe.isNullOrUndefined)(z.latitudeValuePath)?i.i(Xe.isNullOrUndefined)(B.latitude)?i.i(Xe.isNullOrUndefined)(B.Latitude)?0:parseFloat(B.Latitude):parseFloat(B.latitude):Number(C(B,z.latitudeValuePath));n.isTileMap?n.isTileMap&&!n.zoomSettings.enable&&(U=p(new et(R,D),n.tileZoomLevel,n.tileTranslatePoint,!0)):(j=n.mapLayerPanel.calculateFactor(e),U=d(D,R,j,e,n)),t.childNodes[N].style.visibility="hidden";var Z=e.markerClusterSettings;I.cancel?(y={size:new $e(Z.width,Z.height),fill:Z.fill,borderColor:Z.border.color,borderWidth:Z.border.width,opacity:Z.opacity,dashArray:Z.dashArray},y.fill=Z.fill,y.size.width=Z.width,y.size.height=Z.height,y.imageUrl=Z.imageUrl,y.shape=Z.shape,y.borderColor=Z.border.color,y.borderWidth=Z.border.width,y.borderOpacity=i.i(Xe.isNullOrUndefined)(Z.border.opacity)?Z.opacity:Z.border.opacity):(y={size:new $e(Z.width,Z.height),fill:Z.fill,borderColor:Z.border.color,borderWidth:Z.border.width,opacity:Z.opacity,dashArray:Z.dashArray},y.fill=I.fill,y.size.width=I.width,y.size.height=I.height,y.imageUrl=I.imageUrl,y.shape=I.shape,y.borderColor=I.border.color,y.borderWidth=I.border.width,y.borderOpacity=i.i(Xe.isNullOrUndefined)(I.border.opacity)?Z.opacity:I.border.opacity),_=n.isTileMap?_:t.id.indexOf("_Markers_Group")>-1?_:_+3.75-I.width/2,x=n.isTileMap?x:t.id.indexOf("_Markers_Group")>-1?x:x-I.height/2,n.isTileMap&&!n.zoomSettings.enable&&(_=U.x,x=U.y);var H=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+A+"_dataIndex_"+E+"_cluster_"+M,V=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+A+"_dataIndex_"+E+"_cluster_"+M+"_datalabel_"+M;M++;var G="Image"===y.shape?y.size.height/2:0,W=L(y.shape,y.imageUrl,{x:0,y:G},H,y,a,n);W.setAttribute("transform","translate( "+_+" "+x+" )"),"Balloon"===I.shape?W.children[0].innerHTML=w.toString():W.innerHTML=w.toString(),u=new nt(V,0,3.75,"middle",(b.length+1).toString(),"",""),m=S(u,O,O.color,a),m.setAttribute("transform","translate( "+_+" "+x+" )"),T.appendChild(m),T.appendChild(W)}}b=[]}r.appendChild(T),n.svgObject.appendChild(r),n.element.appendChild(n.svgObject);for(var N=0;N<T.childElementCount;N++)if("hidden"!==T.childNodes[N].style.visibility&&(f=T.childNodes[N],h=f.getBoundingClientRect(),!(i.i(Xe.isNullOrUndefined)(h)||f.id.indexOf("_datalabel_")>-1))){for(var k=N+1;k<T.childElementCount;k++)"hidden"!==T.childNodes[k].style.visibility&&(g=T.childNodes[k],c=g.getBoundingClientRect(),i.i(Xe.isNullOrUndefined)(c)||g.id.indexOf("_datalabel_")>-1||h.left>c.right||h.right<c.left||h.top>c.bottom||h.bottom<c.top||(v.push(g),v.push(T.childNodes[k-1]),T.childNodes[k].style.visibility="hidden",T.childNodes[k-1].style.visibility="hidden",w.push(k)));if(v.length>0){f=T.childNodes[N];for(var q=0;q<v.length;q++)"g"===f.tagName?f.childNodes[0].textContent=f.childNodes[0].textContent+","+v[q].textContent:f.textContent=f.textContent+","+v[q].textContent,T.childNodes[N-1].textContent=(+T.childNodes[N-1].textContent+ +v[q+1].textContent).toString(),q++}v=[]}for(;0<T.childNodes.length;)a.insertBefore(T.childNodes[0],a.firstChild);l?r.appendChild(a):(ce(n.element.id+"_Secondary_Element").appendChild(a),r.appendChild(a));var X=document.getElementById(n.element.id+"_LayerIndex_"+o+"_markerCluster");if(i.i(Xe.isNullOrUndefined)(X)||X.remove(),s){var Y=document.getElementById(n.element.id+"_Layer_Collections");i.i(Xe.isNullOrUndefined)(Y)||Y.appendChild(r)}})}function I(e,t,i){var n=e[0].layerIndex,o=e[0].targetClusterIndex,a=e[0].markerIndex,r=e[0].dataIndex,l=t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a,s=t.layers[n].markerSettings[a],d=l+"_dataIndex_"+r+"_cluster_"+o,p=ye("Balloon"===t.layers[n].markerClusterSettings.shape?d+"_Group":d),h=ye(d+"_datalabel_"+o);p.setAttribute("visibility","visible"),h.setAttribute("visibility","visible");for(var c,u=e[0].data.length,m=0;m<u;m++)c=ye("Balloon"===s.shape?l+"_dataIndex_"+e[0].data[m].index+"_Group":l+"_dataIndex_"+e[0].data[m].index),c.style.visibility="hidden";le(t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a+"_markerClusterConnectorLine")}function N(e,t,i,n){var o=e[0].layerIndex,a=e[0].markerIndex,r=e[0].targetClusterIndex,l=e[0].dataIndex,s=n?ye:i.querySelector.bind(i),d=n?"":"#",p=t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+a,h=t.layers[o].markerSettings[a],c=p+"_dataIndex_"+l+"_cluster_"+r,u=s("Balloon"===t.layers[o].markerClusterSettings.shape?d+""+c+"_Group":d+""+c),m=s(d+""+c+"_datalabel_"+r);u.setAttribute("visibility","hidden"),m.setAttribute("visibility","hidden");var g=s("Balloon"===h.shape?d+""+p+"_dataIndex_"+l+"_Group":d+""+p+"_dataIndex_"+l),y=g.parentElement.id.indexOf("Template_Group")>-1?g.getBoundingClientRect().height:h.height,f=g.parentElement.id.indexOf("Template_Group")>-1?g.getBoundingClientRect().width:h.width,b=+u.getAttribute("transform").split("translate(")[1].trim().split(" ")[0],v=+u.getAttribute("transform").split("translate(")[1].trim().split(" ")[1].split(")")[0].trim(),S=f+5,_=6.28*S,x=0,O=Math.round(_/f);x+=O;var M=e[0].data.length,L=Math.round(y/_*100);L=M<O?100/M:L;for(var C=L/100*360,w=M<O?45:0,P=1,T="M "+b+" "+v+" ",I="",N=0;N<M;N++){if(x===N||Math.round(w)>=360){for(P++,S=(f+5)*P,w=0,_=6.28*S,O=Math.round(_/y),L=Math.round(y/_*100);L*O<100;)O++;C=L/100*360,x+=O}var k=b+S*Math.sin(2*Math.PI*w/360),F=v+S*Math.cos(2*Math.PI*w/360);I+=T+"L "+k+" "+F+" ",g=s("Balloon"===h.shape?d+""+p+"_dataIndex_"+e[0].data[N].index+"_Group":d+""+p+"_dataIndex_"+e[0].data[N].index),g.parentElement.id.indexOf("Template_Group")>-1?(g.style.transform="",g.style.left=t.isTileMap?k-f/2+"px":k-f/2-10+"px",g.style.top=t.isTileMap?F-y/2+"px":F-y/2-10+"px",g.setAttribute("transform","translate( "+k+" "+F+")")):g.setAttribute("transform","translate( "+k+" "+F+")"),g.style.visibility="visible",w+=C}var E=t.layers[o].markerClusterSettings.connectorLineSettings,A={d:I,id:t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+a+"_dataIndex_"+l+"_markerClusterConnectorLine",stroke:E.color,"fill-opacity":E.opacity,"stroke-opacity":E.opacity,"stroke-width":E.width};i=n?s(t.element.id+"_Markers_Group"):i;var z=t.renderer.createGroup({id:t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+a+"_markerClusterConnectorLine"});z.appendChild(t.renderer.drawPath(A)),"Balloon"===h.shape?i.insertBefore(z,i.querySelector("#"+p+"_dataIndex_0_Group")):i.insertBefore(z,i.querySelector("#"+p+"_dataIndex_0"))}function k(e,t,n,o,a,r,l,s,d,p,h){var c={size:new $e(e.width,e.height),fill:e.fill,borderColor:e.border.color,borderWidth:e.border.width,opacity:t.opacity,dashArray:t.dashArray,borderOpacity:i.i(Xe.isNullOrUndefined)(e.border.opacity)?t.opacity:e.border.opacity};le(l);var u=L(e.shape,e.imageUrl,{x:0,y:0},l,c,h,p),m=(p.isTileMap?a.x:(a.x+r.x)*d)+s.x,g=(p.isTileMap?a.y:(a.y+r.y)*d)+s.y;u.setAttribute("transform","translate( "+m+" "+g+" )"),E(p.selectedMarkerElementId,p.markerSelectionClass,u,"MarkerselectionMapStyle"),h.appendChild(u);var y=n.length-1===o?"marker":null,f=new et(m,g);return t.animationDuration>0&&Ce(u,t.animationDelay,t.animationDuration,f,p,y),h}function F(e,t,i,n,o,a,r,l,s,d,p){if((t=ge(e.template,p))&&t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1).length){for(var h=t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1),c=_(h,i,n,o,p),u=0;u<c.children.length;u++)c.children[u].style.pointerEvents="none";if(c.style.left=(p.isTileMap?r.x:(r.x+l.x)*s)+d.x-p.mapAreaRect.x+"px",c.style.top=(p.isTileMap?r.y:(r.y+l.y)*s)+d.y-p.mapAreaRect.y+"px",a.appendChild(c),"GoogleStaticMap"===p.layers[p.baseLayerIndex].layerType){var m=ce(p.element.id+"_StaticGoogleMap").getBoundingClientRect(),g=c.getBoundingClientRect();(m.x>g.x||m.x+640<g.x+g.width)&&(m.y>g.y||m.y+m.height<g.y+g.height)&&(c.style.display="none")}}return a}function E(e,t,n,o){if(e)for(var a=0;a<e.length;a++)n.getAttribute("id")===e[a]&&(0!==a&&"g"!==n.tagName||(i.i(Xe.isNullOrUndefined)(t)||i.i(Xe.isNullOrUndefined)(t.id)||document.body.appendChild(t),n.id.indexOf("_MarkerIndex_")>-1&&n.childElementCount>0&&n.children[0].setAttribute("class",o)),n.setAttribute("class",o))}function A(e,t,n,o,a,r,l){if(!ye(e)){var s=i.i(Xe.createElement)("style",{id:e,innerHTML:"."+t+"{fill:"+n+";opacity:"+o+";stroke-width:"+r+";stroke:"+a+";}"});l.shapeSelectionClass=s,document.body.appendChild(s)}}function z(e,t){return t&&t.appendChild(e),e}function B(e,t,i){return z(e.renderer.drawCircle(t),i)}function j(e,t,i){return z(e.renderer.drawRectangle(t),i)}function U(e,t,i){return z(e.renderer.drawPath(t),i)}function R(e,t,i){return z(e.renderer.drawPolygon(t),i)}function D(e,t,i){return z(e.renderer.drawPolyline(t),i)}function Z(e,t,i){return z(e.renderer.drawLine(t),i)}function H(e,t,i,n,o,a){var r;switch(t){case"Balloon":r=J(e,i,n,o,"Marker",a);break;case"Cross":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"Diamond":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+o.y+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+o.y+" Z";break;case"Star":i.d="M "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x-n.width/3)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" Z";break;case"Triangle":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/2)+" Z";break;case"HorizontalLine":i.d=" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"VerticalLine":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2);break;case"InvertedTriangle":i.d="M "+(o.x-n.width/2)+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" Z";break;case"Pentagon":for(var l=void 0,s=void 0,d=0;d<5;d++)l=n.width/2*Math.cos(Math.PI/180*(72*d)),s=n.height/2*Math.sin(Math.PI/180*(72*d)),i.d+=(0===d?"M ":"L ")+(o.x+l)+" "+(o.y+s);i.d+=" Z"}return"Cross"!==t&&"HorizontalLine"!==t&&"VerticalLine"!==t||(i.stroke="transparent"===i.stroke?i.fill:i.stroke),"Balloon"===t?r:e.renderer.drawPath(i)}function V(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+n.y+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+n.y+" Z",z(e.renderer.drawPath(t),o)}function G(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/2)+" Z",z(e.renderer.drawPath(t),o)}function W(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,z(e.renderer.drawPath(t),o)}function q(e,t,i,n,o){return t.d=" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,z(e.renderer.drawPath(t),o)}function X(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2),z(e.renderer.drawPath(t),o)}function Y(e,t,i,n,o){return t.d="M "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x-i.width/3)+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" Z",z(e.renderer.drawPath(t),o)}function J(e,t,i,n,o,a){var r,l=i.width,s=i.height;n.x-=l/2,n.y-=s,t.d="M15,0C8.8,0,3.8,5,3.8,11.2C3.8,17.5,9.4,24.4,15,30c5.6-5.6,11.2-12.5,11.2-18.8C26.2,5,21.2,0,15,0z M15,16c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S17.8,16,15,16z";var d=e.renderer.drawPath(t),p=i.width/30,h=i.height/30;if(d.setAttribute("transform","translate("+n.x+", "+n.y+") scale("+p+", "+h+")"),"Marker"===o){var c=e.renderer.createGroup({id:t.id+"_Group"});z(d,c),r=z(c,a)}else r=d;return r}function Q(e,t,i,n){for(var o=e.renderer.createPattern(t,"pattern"),a=0,r=i;a<r.length;a++){z(r[a],o)}return z(o,n)}function K(e,t){for(var i,n=[],o=0,a=e;o<a.length;o++){var r=a[o];i={};for(var l=0,s=t;l<s.length;l++){var d=s[l];r[d]&&(i[d]=r[d])}n.push(i)}return n}function $(e,t,n,o,a){if(!i.i(Xe.isNullOrUndefined)(t))for(var r=0;r<e.length;r++){var l=n.indexOf(".")>-1?C(e[r],n):e[r][n],s=ee(l,o,t),d=!i.i(Xe.isNullOrUndefined)(l)&&isNaN(t[s])&&"string"==typeof l?l.toLowerCase():l,p=!i.i(Xe.isNullOrUndefined)(t[s])&&isNaN(t[s])?t[s].toLowerCase():t[s];if(d===p)return r}return null}function ee(e,t,n){if(!i.i(Xe.isNullOrUndefined)(e)&&!i.i(Xe.isNullOrUndefined)(n)&&!i.i(Xe.isNullOrUndefined)(t))for(var o="[object Array]"===Object.prototype.toString.call(t)?t:[t],a=0;a<o.length;a++){var r=i.i(Xe.isNullOrUndefined)(e)||"string"!=typeof e?e:e.toLowerCase(),l=!i.i(Xe.isNullOrUndefined)(n[o[a]])&&isNaN(n[o[a]])?n[o[a]].toLowerCase():n[o[a]];if(r===l)return o[a]}return null}function te(e,t,i){for(var n=[],o=0;o<e.length;o++){var a=e[o];t<=a.y&&i>=a.y&&n.push(a)}return n}function ie(e,t,i,n,o){var a=100/(o-n)*(i-n),r=(t-e)/100*a+e;return o===n&&(r=(t-e)/100+e),r}function ne(e,t,i){if(!e.length)return null;for(var n,o,a,r,l=e.length,s=0,d=0,p=0,h=0;h<=l-1;h++)n=e[h].x,o="Mercator"===t||"Normal"===i?e[h].y:-e[h].y,h===l-1?(a=e[0].x,r="Mercator"===t||"Normal"===i?e[0].y:-e[0].y):(a=e[h+1].x,r="Mercator"===t||"Normal"===i?e[h+1].y:-e[h+1].y),s+=Math.abs(n*r-a*o),d+=Math.abs((n+a)*(n*r-a*o)),p+=Math.abs((o+r)*(n*r-a*o));s*=.5,d*=1/(4*s),p*=1/(4*s);for(var c={x:0,y:0},u={x:0,y:0},m={x:0,y:0},g={x:0,y:0},y={x:0,y:0},f={x:0,y:0},b={x:0,y:0},v={x:0,y:0},S=0,h=0;h<=l-1;h++){var _=e[h];_.y="Mercator"===t||"Normal"===i?_.y:-_.y,_.y>p?_.x<d&&d-_.x<d-y.x?y={x:_.x,y:_.y}:_.x>d&&(0===f.x||_.x-d<f.x-d)&&(f={x:_.x,y:_.y}):_.x<d&&d-_.x<d-b.x?b={x:_.x,y:_.y}:_.x>d&&(0===v.x||_.x-d<v.x-d)&&(v={x:_.x,y:_.y}),S=f.y-v.y+(f.y-v.y)/4,_.x>d?_.y<p&&p-_.y<p-c.y?c={x:_.x,y:_.y}:_.y>p&&(0===u.y||_.y-p<u.y-p)&&(u={x:_.x,y:_.y}):_.y<p&&p-_.y<p-m.y?m={x:_.x,y:_.y}:_.y>p&&(0===g.y||_.y-p<g.y-p)&&(g={x:_.x,y:_.y})}return{x:d,y:p,rightMin:c,rightMax:u,leftMin:m,leftMax:g,points:e,topMax:v,topMin:b,bottomMax:f,bottomMin:y,height:S}}function oe(e){var t=!1;return"[object Array]"===Object.prototype.toString.call(e)&&Array.prototype.forEach.call(e,function(e,n){i.i(Xe.isNullOrUndefined)(e.geometry)||"Path"!==e.geometry.type||(t=!0)}),t}function ae(e,t,i){var n=t,o=v(t,i).width;if(o>e)for(var a=t.length,r=a-1;r>=0;--r)if(n=t.substring(0,r)+"...",(o=v(n,i).width)<=e||n.length<4)return n.length<4&&(n=" "),n;return n}function re(e,t,i,n){var o;switch(t){case"Near":o=e.x;break;case"Center":o="title"===n?e.width/2-i.width/2:e.x+e.width/2-i.width/2;break;case"Far":o="title"===n?e.width-e.y-i.width:e.x+e.width-i.width}var a="title"===n?e.y+i.height/2:e.y+e.height/2+i.height/2;return new et(o,a)}function le(e){var t=document.getElementById(e);return t?i.i(Xe.remove)(t):null}function se(e,t){var i=d(e.minLatOfGivenLocation,e.minLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),n=d(e.maxLatOfGivenLocation,e.maxLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),o=(i.x+n.x)/2,a=(i.y+n.y)/2;return new et(o,a)}function de(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i(Xe.isNullOrUndefined)(e.centerLatOfGivenLocation)&&!i.i(Xe.isNullOrUndefined)(e.centerLongOfGivenLocation)&&e.zoomNotApplied;i.i(Xe.isNullOrUndefined)(e.mapScaleValue)&&(e.mapScaleValue=a),e.zoomSettings.shouldZoomInitially&&e.zoomSettings.enable&&(e.mapScaleValue=o=a=(e.zoomSettings.shouldZoomInitially||e.enablePersistence)&&1===e.scale?e.scale:i.i(Xe.isNullOrUndefined)(e.markerZoomFactor)?1:e.markerZoomFactor,e.mapScaleValue===e.markerZoomFactor||e.enablePersistence||(e.mapScaleValue=a=e.markerZoomFactor),i.i(Xe.isNullOrUndefined)(e.markerCenterLatitude)||i.i(Xe.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h=i.i(Xe.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.min,c=i.i(Xe.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.max,u=n?1:e.mapScaleValue;i.i(Xe.isNullOrUndefined)(e.currentShapeDataLength)&&(e.currentShapeDataLength=i.i(Xe.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length);var m,g,y=e.totalRect&&e.legendSettings.visible?e.totalRect:e.mapAreaRect,f=e.availableSize;if(!i.i(Xe.isNullOrUndefined)(h)&&!i.i(Xe.isNullOrUndefined)(c)){var b=Math.abs(c.x-h.x),v=Math.abs(h.y-c.y),S=n?1:1===e.markerZoomFactor?e.mapScaleValue:a;if(r=e.zoomSettings.shouldZoomInitially&&e.markerZoomedState&&!e.zoomPersistence?e.markerZoomCenterPoint:e.centerPosition,!i.i(Xe.isNullOrUndefined)(s)&&0!==s&&!i.i(Xe.isNullOrUndefined)(l)&&0!==l||p){var _=((b+Math.abs(e.mapAreaRect.width-b))/2+e.mapAreaRect.x)/S,x=((v+Math.abs(e.mapAreaRect.height-v))/2+e.mapAreaRect.y)/S,O=p?se(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i(Xe.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType?(m=-O.x+_,g=-O.y+x,o=u):(1!==Math.floor(e.scale)&&e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x):e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x,o=u):(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y),o=e.mapScaleValue)}else if(i.i(Xe.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType){0!==v&&0!==b&&v!==b||(b=y.width/2,v=y.height),o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,v*=o;var M=0!==h.x&&"layers"===e.translateType?f.width-y.width:0;m=y.x+(-h.x+(y.width/2-b/2))-M,g=y.y+(-h.y+(y.height/2-v/2)),e.previousTranslate=new et(m,g)}else if(e.zoomSettings.shouldZoomInitially||1!==e.markerZoomFactor||1!==e.mapScaleValue)if(o=e.mapScaleValue<1?e.mapScaleValue+1:e.mapScaleValue,e.mapScaleValue=e.zoomSettings.enable&&1!==e.mapScaleValue?e.mapScaleValue:1,e.currentShapeDataLength!==(i.i(Xe.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length)&&"SubLayer"!==t.type){var L=parseFloat(Math.min(y.height/v,y.width/b).toFixed(2));v*=L,b*=L,g=y.y+(-h.y+(y.height/2-v/2)),o=L,m=y.x+(-h.x+(y.width/2-b/2))}else if(e.availableSize.height!==e.heightBeforeRefresh||e.widthBeforeRefresh!==e.availableSize.width){var C=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),w=b;w*=C;var P=v;P*=C;var T=y.x+(-h.x+(y.width/2-w/2)),I=y.y+(-h.y+(y.height/2-P/2)),N=(e.translatePoint.x-e.previousTranslate.x)/e.widthBeforeRefresh,k=(e.translatePoint.y-e.previousTranslate.y)/e.heightBeforeRefresh,F=N*e.availableSize.width,E=k*e.availableSize.height;m=T+F,g=I+E,e.previousTranslate=new et(T,I),e.zoomTranslatePoint.x=m,e.zoomTranslatePoint.y=g}else i.i(Xe.isNullOrUndefined)(e.previousProjection)||!(1===e.mapScaleValue||e.mapScaleValue<=1.05)||e.zoomModule.isDragZoom?(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y,o=e.scale):(o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,m=y.x+(-h.x+(y.width/2-b/2)),v*=o,g=y.y+(-h.y+(y.height/2-v/2)));else o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),v*=o,b*=o,g=y.y+(-h.y+(y.height/2-v/2)),m=y.x+(-h.x+(y.width/2-b/2));i.i(Xe.isNullOrUndefined)(e.translatePoint)||(m=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:m,g=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:g)}return o=e.enablePersistence?e.mapScaleValue>=1?e.mapScaleValue:1:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:o,location:new et(m,g)}}function pe(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i(Xe.isNullOrUndefined)(e.centerLongOfGivenLocation)&&!i.i(Xe.isNullOrUndefined)(e.centerLatOfGivenLocation)&&e.zoomNotApplied;i.i(Xe.isNullOrUndefined)(e.previousCenterLatitude)&&i.i(Xe.isNullOrUndefined)(e.previousCenterLongitude)?(e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.previousCenterLatitude!==e.centerPosition.latitude&&e.previousCenterLongitude!==e.centerPosition.longitude?(e.centerPositionChanged=!0,e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.centerPositionChanged=!1,(i.i(Xe.isNullOrUndefined)(e.mapScaleValue)||a>e.mapScaleValue)&&(e.isReset&&1===e.mapScaleValue?e.mapScaleValue=e.mapScaleValue:e.mapScaleValue=a),e.mapScaleValue=1!==e.zoomSettings.zoomFactor&&e.zoomSettings.zoomFactor===e.mapScaleValue?e.zoomSettings.zoomFactor:e.zoomSettings.zoomFactor===e.mapScaleValue||e.centerPositionChanged?e.zoomSettings.zoomFactor:e.mapScaleValue,e.zoomSettings.shouldZoomInitially&&!e.isZoomByPosition&&(e.mapScaleValue=a=o=(e.enablePersistence||e.zoomSettings.shouldZoomInitially)&&1===e.scale?e.scale:i.i(Xe.isNullOrUndefined)(e.markerZoomFactor)?e.mapScaleValue:e.markerZoomFactor,a=e.mapScaleValue,i.i(Xe.isNullOrUndefined)(e.markerCenterLatitude)||i.i(Xe.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h,c,u=n?1:e.mapScaleValue,m=e.mapAreaRect,g=e.baseMapRectBounds.min,y=e.baseMapRectBounds.max,f=n?1:e.mapScaleValue,b=Math.abs(y.x-g.x),v=Math.abs(g.y-y.y);if(!i.i(Xe.isNullOrUndefined)(s)&&0!==s&&!i.i(Xe.isNullOrUndefined)(l)&&0!==l||p){var S=(v+Math.abs(e.mapAreaRect.height-v))/2/f,_=(b+Math.abs(e.mapAreaRect.width-b))/2/f,x=p?se(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i(Xe.isNullOrUndefined)(e.zoomTranslatePoint)&&i.i(Xe.isNullOrUndefined)(e.previousProjection)||e.zoomNotApplied?(h=-x.x+_+e.mapAreaRect.x/u,c=-x.y+S+e.mapAreaRect.y/u):e.previousProjection!==e.projectionType?(h=-x.x+_,c=-x.y+S):(e.isZoomByPosition&&(e.zoomTranslatePoint.x=-x.x+_,e.zoomTranslatePoint.y=-x.y+S),h=e.zoomTranslatePoint.x,c=e.zoomTranslatePoint.y,a=u),i.i(Xe.isNullOrUndefined)(e.translatePoint)||(c=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:c,h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:h),o=0!==a?a:1}else{var O=0===e.zoomSettings.zoomFactor?1:e.zoomSettings.zoomFactor,M=e.zoomSettings.maxZoom;O=O>M?M:O,o=O;var L=0===e.mapScaleValue?1:e.mapScaleValue>M?M:e.mapScaleValue,_=m.x+(-g.x+(m.width/2-b/2)),S=m.y+(-g.y+(m.height/2-v/2));if(!i.i(Xe.isNullOrUndefined)(e.zoomTranslatePoint)||!i.i(Xe.isNullOrUndefined)(e.previousProjection))if(e.previousProjection!==e.projectionType){var C=[],w={x:_,y:S};C.push(w);for(var P=1;P<M;P++){var T=C[P-1].x-(m.width/P-m.width/(P+1))/2,I=C[P-1].y-(m.height/P-m.height/(P+1))/2;w={x:T,y:I},C.push(w)}_=C[O-1].x,S=C[O-1].y}else _=e.zoomTranslatePoint.x,S=e.zoomTranslatePoint.y,O!==L&&(o=L);i.i(Xe.isNullOrUndefined)(e.translatePoint)||(h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:_,c=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:S)}return o=e.enablePersistence?0===e.mapScaleValue?1:e.mapScaleValue:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:n?1:o,location:new et(h,c)}}function he(e){e.tileZoomScale=e.tileZoomLevel=Math.floor(e.availableSize.height/512)+1;var t="GoogleStaticMap"!==e.layers[e.baseLayerIndex].layerType?20:0,i=256*Math.pow(2,e.tileZoomLevel);e.tileTranslatePoint.x=e.availableSize.width/2-i/2,e.tileTranslatePoint.y=e.availableSize.height/2-i/2+t,e.previousTileWidth=e.availableSize.width,e.previousTileHeight=e.availableSize.height}function ce(e){return document.getElementById(e)}function ue(e){var t=document.getElementById(e);return i.i(Xe.isNullOrUndefined)(t)?null:t.getClientRects()[0]}function me(e,t){return e.formatFunction=e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator}),e.formatFunction(t)}function ge(e,t){var n=null;try{document.querySelectorAll(e).length?n=i.i(Xe.compile)(document.querySelector(e).innerHTML.trim()):(t.isVue||t.isVue3)&&(n=i.i(Xe.compile)(e))}catch(t){n=i.i(Xe.compile)(e)}return n}function ye(e){return document.getElementById(e)}function fe(e,t){var i,n=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),o=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),a=t.layersCollection[n],r=a.layerData[o].property;return a.dataSource&&(i=a.dataSource[$(a.dataSource,r,a.shapeDataPath,a.shapePropertyPath,a)]),{shapeData:r,data:i}}function be(e,t,n,o){var a=fe(e,n),r={color:t.border.color,opacity:t.border.opacity,width:t.border.width},l=t.enableMultiSelect?{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n,shapeDataCollection:n.shapeSelectionItem}:{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n};return n.trigger(o,l,function(){l.border.opacity=i.i(Xe.isNullOrUndefined)(l.border.opacity)?l.opacity:l.border.opacity}),l}function ve(e){return document.getElementsByClassName(e)}function Se(e,t){var i=null;return document.getElementById(t)&&(i=document.getElementById(t).querySelector("#"+e)),i}function _e(e,t,i,n){for(var o,a=n.layers[e].shapeData.features,r=0;r<a.length;r++)if(a[r].properties.name===t){o=n.element.id+"_LayerIndex_"+e+"_shapeIndex_"+r+"_dataIndex_undefined";break}return ye(o)}function xe(e,t,n){return i.i(Xe.createElement)("style",{id:e,innerHTML:"."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke:"+n.border.color+";}"})}function Oe(e,t,n){var o=ye(e);i.i(Xe.isNullOrUndefined)(o)||(o.innerHTML="."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke:"+n.border.color+"}")}function Me(e,t,n,o,a){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,name:Je.itemSelection,target:n.id,cancel:!1,shapeData:o,data:a,maps:t};t.trigger("itemSelection",l,function(n){l.border.opacity=i.i(Xe.isNullOrUndefined)(e.border.opacity)?e.opacity:e.border.opacity,t.shapeSelectionItem.push(l.shapeData),ye("ShapeselectionMap")?Oe("ShapeselectionMap","ShapeselectionMapStyle",l):document.body.appendChild(xe("ShapeselectionMap","ShapeselectionMapStyle",l))})}function Le(e){e.removeAttribute("class")}function Ce(e,t,n,o,a,r,l){void 0===l&&(l=0);var s=o.x,d=o.y,p=0,h=e.getAttribute("transform")||"";new Xe.Animation({}).animate(e,{duration:n,delay:t,progress:function(t){if(t.timeStamp>t.delay){if(a.isTileMap&&0===p){var n=document.querySelector(".GroupElement");i.i(Xe.isNullOrUndefined)(n)||(n.style.display="block")}p=(t.timeStamp-t.delay)/t.duration,e.setAttribute("transform","translate( "+(s-l*p)+" "+(d-l*p)+" ) scale("+p+")")}},end:function(t){if(e.setAttribute("transform",h),r){var i={cancel:!1,name:Qe.A,element:r,maps:a};a.trigger(Qe.A,i)}}})}function we(e){le(e)}function Pe(e,t,n,o,a,l,s,d,p){var h=r(n,o,d);i.i(Xe.isNullOrUndefined)(h)||(n=h.x,o=h.y);for(var c=document.getElementById(s),u=v(e,{fontFamily:"Segoe UI",size:"8px",fontStyle:"Normal",fontWeight:"Regular"}).width,m=e.split(" "),g=m[0].length,y=1;y<m.length;y++)g<m[y].length&&(g=m[y].length);c||(c=i.i(Xe.createElement)("div",{id:s}),c.style.cssText='background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(0, 0, 0); padding-left:5px;font-size:12px; font-family: "Segoe UI"; text-align:center'),n<a-u?n=n:n>a-u&&n<a-8*g?u=a-n:n>=a-8*g&&(n>u?n-=u:(u=n,n=0));var f=t.split("px");Te(c,e,n,o,f,u,a,d),c.clientHeight+2*parseInt(f[0],10)>l&&(u=n,n=0),Te(c,e,n,o,f,u,a,d),p&&setTimeout(we,5e3,s)}function Te(e,t,i,n,o,a,r,l){e.innerHTML=t,e.style.top=-1!==e.id.indexOf("_Legend")?(parseInt(o[0],10)+n).toString()+"px":(2*parseInt(o[0],10)).toString()+"px",e.style.left=i.toString()+"px",e.style.width=a.toString()+"px",e.style.maxWidth=r.toString()+"px",e.style.wordWrap="break-word",l.appendChild(e)}function Ie(e,t,n,o,a){var r=ye(e),l="top:"+n.toString()+"px;left:"+o.toString()+"px;color: #000000; background:#FFFFFF;z-index: 2;position:absolute;border:1px solid #707070;font-size:"+a+";border-radius:2px;";r?(r.innerHTML="&nbsp;"+t+"&nbsp;",r.style.cssText=l):(r=i.i(Xe.createElement)("div",{id:e,innerHTML:"&nbsp;"+t+"&nbsp;"}),r.style.cssText=l,document.body.appendChild(r))}function Ne(e,t,i,n,o){var a=new Ye.SvgRenderer(""),r=ke(e,i,t,o,n);return a["draw"+r.functionName](r.renderOption)}function ke(e,t,n,o,a){var r,l="Path",s=t.width,d=t.height,p=e.x,h=e.y,c=e.x+-s/2,u=e.y+-d/2;switch(o.stroke="HorizontalLine"===n||"VerticalLine"===n||"Cross"===n?o.fill:o.stroke,o["stroke-width"]=0!==o["stroke-width"]||"HorizontalLine"!==n&&"VerticalLine"!==n&&"Cross"!==n?o["stroke-width"]:1,n){case"Circle":case"Bubble":l="Ellipse",i.i(Xe.merge)(o,{rx:s/2,ry:d/2,cx:p,cy:h});break;case"VerticalLine":r="M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i(Xe.merge)(o,{d:r});break;case"HorizontalLine":r="M "+p+" "+h+" L "+(p+s/2)+" "+h,i.i(Xe.merge)(o,{d:r});break;case"Diamond":r="M "+c+" "+h+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+h+" L "+p+" "+(h+d/2)+" L "+c+" "+h+" z",i.i(Xe.merge)(o,{d:r});break;case"Rectangle":r="M "+c+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" L "+c+" "+(h+-d/2)+" z",i.i(Xe.merge)(o,{d:r});break;case"Triangle":r="M "+c+" "+(h+d/2)+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" z",i.i(Xe.merge)(o,{d:r});break;case"InvertedTriangle":r="M "+(p+s/2)+" "+(h-d/2)+" L "+p+" "+(h+d/2)+" L "+(p-s/2)+" "+(h-d/2)+" L "+(p+s/2)+" "+(h-d/2)+" z",i.i(Xe.merge)(o,{d:r});break;case"Pentagon":for(var m=void 0,g=void 0,y=0;y<=5;y++)m=s/2*Math.cos(Math.PI/180*(72*y)),g=s/2*Math.sin(Math.PI/180*(72*y)),r=0===y?"M "+(p+m)+" "+(h+g)+" ":r.concat("L "+(p+m)+" "+(h+g)+" ");r=r.concat("Z"),i.i(Xe.merge)(o,{d:r});break;case"Star":r="M "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" L "+(e.x-t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x+t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x-t.width/3)+" "+(e.y-t.height/2)+" L "+e.x+" "+(e.y+t.height/2)+" L "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" Z",i.i(Xe.merge)(o,{d:r});break;case"Cross":r="M "+c+" "+h+" L "+(p+s/2)+" "+h+" M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i(Xe.merge)(o,{d:r});break;case"Image":l="Image",i.i(Xe.merge)(o,{href:a,height:d,width:s,x:c,y:u})}return{renderOption:o,functionName:l}}function Fe(e,t){t.appendChild(e);var i=e.offsetWidth,n=e.offsetHeight;return t.removeChild(e),new $e(i,n)}function Ee(e,t,n,o){for(var a,r=0;r<e.childElementCount;r++)if(a=e.childNodes[r],a.id.indexOf("_NavigationGroup")>-1)Ae(a,t,n,o);else{var l=void 0,s=0,d=o.layersCollection[t].shapeSettings.borderWidthValuePath,p=o.layersCollection[t].shapeSettings.border.width,h=o.layersCollection[t].shapeSettings.circleRadius;o.layersCollection[t].shapeSettings.borderWidthValuePath?(s=$(o.layersCollection[t].dataSource,o.layersCollection[t].layerData[r].property,o.layersCollection[t].shapeDataPath,o.layersCollection[t].shapePropertyPath,o.layersCollection[t]),l=null!==s&&o.layersCollection[t].dataSource[s][d]?o.layersCollection[t].dataSource[s][d]:i.i(Xe.isNullOrUndefined)(p)?0:p):l=i.i(Xe.isNullOrUndefined)(p)?0:p,a.setAttribute("stroke-width",(l/n).toString()),(e.id.indexOf("_Point")>-1||e.id.indexOf("_MultiPoint")>-1)&&a.setAttribute("r",(h/n).toString())}}function Ae(e,t,i,n){for(var o,a=0;a<e.childElementCount;a++)if(o=e.childNodes[a],"path"===o.tagName){var r=n.layersCollection[t].navigationLineSettings[parseFloat(o.id.split("_NavigationIndex_")[1].split("_")[0])].width;o.setAttribute("stroke-width",(r/i).toString())}}function ze(e){for(var t=[],i=e.touches,n=0;n<i.length;n++)t.push({pageX:i[n].pageX,pageY:i[n].pageY});return t}function Be(e,t){var i=je(e[0],e[1]);return je(t[0],t[1])/i}function je(e,t){var i=e.pageX-t.pageX,n=e.pageY-t.pageY;return Math.sqrt(i*i+n*n)}function Ue(e,t){var i=t.element.getBoundingClientRect(),n=i.top+document.defaultView.pageXOffset,o=i.left+document.defaultView.pageYOffset;return Array.prototype.slice.call(e).map(function(e){return{x:e.pageX-o,y:e.pageY-n}})}function Re(e){return{x:e.map(function(e){return e.x}).reduce(De)/e.length,y:e.map(function(e){return e.y}).reduce(De)/e.length}}function De(e,t){return e+t}function Ze(e,t,i,n,o,a,r){var l=0,s=r.previousPoint,d=r.previousScale,p=o-d,h=new ct(0,0),c=1;if(o===d)return void e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )");var u=function(e,t){return e.x===t.x?null:(t.y-e.y)/(t.x-e.x)}(s,n),m=function(e,t){return null===t?e.x:e.y-t*e.x}(s,u),g=n.x-s.x,y=n.y-s.y;He(e,t,i,function(e){e.timeStamp>e.delay&&(l=(e.timeStamp-e.delay)/e.duration,c=d+l*p,h.x=s.x+l*g/(c/o),h.y=null==u?s.y+l*y:u*h.x+m,e.element.setAttribute("transform","scale( "+c+" ) translate( "+h.x+" "+h.y+" )"),r.translatePoint=h,r.scale=c,r.zoomModule.processTemplate(n.x,n.y,c,r))},function(){r.translatePoint=n,r.scale=o,e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )"),r.zoomModule.processTemplate(n.x,n.y,o,r)})}function He(e,t,i,n,o){var a,r=this,l=null,s=function(t){l||(l=t);var d=t-l;if(d<i)n.call(r,{element:e,delay:0,timeStamp:d,duration:i}),window.requestAnimationFrame(s);else if(window.cancelAnimationFrame(a),o.call(r,{element:e}),e.id.indexOf("Marker")>-1){var p=ce(e.id.split("_Layer")[0]+"_Markers_Group");p.style.cssText="visibility:visible"}};a=window.requestAnimationFrame(s)}function Ve(e,t,i,n){var o=0,a=e.getAttribute("transform").split(" ");2===a.length&&(a[2]=a[1].split(")")[0],a[1]=a[0].split("(")[1]);var r=new ct(parseInt(a[1],10),parseInt(a[2],10)),l=n.x-r.x,s=n.y-r.y,d=new ct(0,0);He(e,t,i,function(e){e.timeStamp>e.delay&&(o=(e.timeStamp-e.delay)/e.duration,d.x=r.x+o*l,d.y=r.y+o*s,e.element.setAttribute("transform","translate( "+d.x+" "+d.y+" )"))},function(){e.setAttribute("transform","translate( "+n.x+" "+n.y+" )")})}function Ge(e,t){var n=i.i(Xe.isNullOrUndefined)(t.shouldZoomPreviousFactor)?null:t.shouldZoomPreviousFactor,o=i.i(Xe.isNullOrUndefined)(t.shouldZoomCurrentFactor)?null:t.shouldZoomCurrentFactor;i.i(Xe.isNullOrUndefined)(o)?!i.i(Xe.isNullOrUndefined)(n)&&i.i(Xe.isNullOrUndefined)(o)&&t.shouldZoomPreviousFactor!==e?t.shouldZoomCurrentFactor=e:t.shouldZoomPreviousFactor=e:(t.shouldZoomCurrentFactor=null,t.shouldZoomPreviousFactor=null)}function We(e,t,i,n,o,a,r){var l,s,p=r.zoomSettings.maxZoom,h=Math.sin(t*Math.PI/180),c=Math.log((1+h)/(1-h))/2,u=Math.max(Math.min(c,Math.PI),-Math.PI)/2,m=Math.sin(e*Math.PI/180),g=Math.log((1+m)/(1-m))/2,y=Math.max(Math.min(g,Math.PI),-Math.PI)/2;if(r.zoomNotApplied&&!r.isTileMap){var f=Math.abs((r.baseMapBounds.latitude.max-r.baseMapBounds.latitude.min)/(t-e)),b=Math.abs((r.baseMapBounds.longitude.max-r.baseMapBounds.longitude.min)/(n-i));s=Math.min(f,b);d(e,i,1,r.layersCollection[0],r),d(t,n,1,r.layersCollection[0],r)}var v=(u-y)/Math.PI,S=n-i,_=(S<0?S+360:S)/360,x=Math.log(a/256/v)/Math.LN2,O=Math.log(o/256/_)/Math.LN2,M=r.zoomNotApplied&&!r.isTileMap?s:Math.min(x,O);return l=Math.min(M,p),l=r.isTileMap||!r.zoomNotApplied?Math.floor(l):l,r.isTileMap||Ge(l,r),l}function qe(e){var t,n=i.i(Xe.isNullOrUndefined)(e.result)?e.actual:e.result;return i.i(Xe.isNullOrUndefined)(n.length)?i.i(Xe.isNullOrUndefined)(n.Items)||(t=n.Items):t=n,t}i.d(t,"a",function(){return $e}),t.b=n,t.c=o,t.d=a,t.e=r,t.f=l,t.g=s,t.h=d,t.i=p,t.j=h,t.k=c,t.l=u,t.m=m,t.n=g,t.o=y,t.p=f,t.q=b,i.d(t,"r",function(){return et}),i.d(t,"s",function(){return tt}),i.d(t,"t",function(){return it}),t.u=v,i.d(t,"v",function(){return nt}),i.d(t,"w",function(){return ot}),i.d(t,"x",function(){return at}),i.d(t,"y",function(){return rt}),i.d(t,"z",function(){return lt}),i.d(t,"A",function(){return st}),i.d(t,"B",function(){return dt}),i.d(t,"C",function(){return pt}),i.d(t,"D",function(){return ht}),i.d(t,"E",function(){return ct}),i.d(t,"F",function(){return ut}),i.d(t,"G",function(){return mt}),t.H=S,t.I=_,t.J=x,t.K=O,t.L=M,t.M=L,t.N=C,t.O=w,t.P=P,t.Q=T,t.R=I,t.S=N,t.T=k,t.U=F,t.V=E,t.W=A,t.X=z,t.Y=B,t.Z=j,t._0=U,t._1=R,t._2=D,t._3=Z,t._4=H,t._5=V,t._6=G,t._7=W,t._8=q,t._9=X,t._10=Y,t._11=J,t._12=Q,t._13=K,t._14=$,t._15=ee,t._16=te,t._17=ie,t._18=ne,t._19=oe,t._20=ae,t._21=re,t._22=le,t._23=se,t._24=de,t._25=pe,t._26=he,t._27=ce,t._28=ue,t._29=me,t._30=ge,t._31=ye,t._32=fe,t._33=be,t._34=ve,t._35=Se,t._36=_e,t._37=xe,t._38=Oe,t._39=Me,t._40=Le,t._41=Ce,t._42=we,t._43=Pe,t._44=Te,t._45=Ie,t._46=Ne,t._47=ke,t._48=Fe,t._49=Ee,t._50=Ae,t._51=ze,t._52=Be,t._53=je,t._54=Ue,t._55=Re,t._56=De,t._57=Ze,t._58=He,i.d(t,"_59",function(){return gt}),t._60=Ve,t._61=Ge,t._62=We,t._63=qe;var Xe=i(1),Ye=(i.n(Xe),i(6)),Je=(i.n(Ye),i(7)),Qe=i(2),Ke=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$e=function(){function e(e,t){this.width=e,this.height=t}return e}(),et=function(){function e(e,t){this.x=e,this.y=t}return e}(),tt=function(){function e(e,t){this.min=e,this.max=t}return e}(),it=function(){function e(e,t){this.latitude=new tt(e.min,e.max),this.longitude=new tt(t.min,t.max)}return e}(),nt=function(){function e(e,t,i,n,o,a,r){void 0===a&&(a=""),this.transform="",this.baseLine="auto",this.id=e,this.text=o,this.transform=a,this.anchor=n,this.x=t,this.y=i,this.baseLine=r}return e}(),ot=function(){function e(e,t,i,n,o,a,r,l){this.id=e,this["fill-opacity"]=o,this["stroke-opacity"]=a,this.fill=t,this.stroke=n,this["stroke-width"]=i,this["stroke-dasharray"]=r,this.d=l}return e}(),at=function(){function e(e,t,i){this.r=e,this.g=t,this.b=i}return e}(),rt=function(e){function t(t,i,n,o,a,r,l,s,d){var p=e.call(this,t,i,n.width,n.color,o,n.opacity)||this;return p.y=a.y,p.x=a.x,p.height=a.height,p.width=a.width,p.rx=r||0,p.ry=l||0,p.transform=s||"",p["stroke-dasharray"]=d,p["fill-opacity"]=o,p["stroke-opacity"]=n.opacity,p}return Ke(t,e),t}(ot),lt=function(e){function t(t,i,n,o,a,r,l,s){var d=e.call(this,t,i,n.width,n.color,o,n.opacity,s)||this;return d.cy=r,d.cx=a,d.r=l,d["stroke-dasharray"]=s,d["fill-opacity"]=o,d["stroke-opacity"]=n.opacity,d}return Ke(t,e),t}(ot),st=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.points=i,d}return Ke(t,e),t}(ot),dt=function(e){function t(t,i,n,o,a,r,l,s){return void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s=""),e.call(this,t,i,n,o,a,r,l,s)||this}return Ke(t,e),t}(st),pt=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.x1=i.x1,d.y1=i.y1,d.x2=i.x2,d.y2=i.y2,d}return Ke(t,e),t}(ot),ht=function(){function e(e,t,i,n){this.x1=e,this.y1=t,this.x2=i,this.y2=n}return e}(),ct=function(){function e(e,t){this.x=e,this.y=t}return e}(),ut=function(){function e(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n}return e}(),mt=function(){function e(e,t,i,n,o,a,r,l,s){void 0===a&&(a="userSpaceOnUse"),void 0===r&&(r="userSpaceOnUse"),void 0===l&&(l=""),void 0===s&&(s=""),this.id=e,this.x=t,this.y=i,this.width=n,this.height=o,this.patternUnits=a,this.patternContentUnits=r,this.patternTransform=l,this.href=s}return e}(),gt=function(){function e(e,t,i,n,o){this.dataOptions=e,this.type=t||"GET",this.async=i||!0,this.contentType=n,this.sendData=o}return e}()},function(t,i){t.exports=e},function(e,t,i){"use strict";var n=i(17);i.d(t,"a",function(){return n.a});var o=i(3);i.d(t,"b",function(){return o.a}),i.d(t,"c",function(){return o.b}),i.d(t,"d",function(){return o.c}),i.d(t,"e",function(){return o.d}),i.d(t,"f",function(){return o.e}),i.d(t,"g",function(){return o.f}),i.d(t,"h",function(){return o.g}),i.d(t,"i",function(){return o.h}),i.d(t,"j",function(){return o.i}),i.d(t,"k",function(){return o.j}),i.d(t,"l",function(){return o.k}),i.d(t,"m",function(){return o.l}),i.d(t,"n",function(){return o.m}),i.d(t,"o",function(){return o.n}),i.d(t,"p",function(){return o.o}),i.d(t,"q",function(){return o.p}),i.d(t,"r",function(){return o.q}),i.d(t,"s",function(){return o.r}),i.d(t,"t",function(){return o.s}),i.d(t,"u",function(){return o.t}),i.d(t,"v",function(){return o.u}),i.d(t,"w",function(){return o.v}),i.d(t,"x",function(){return o.w}),i.d(t,"y",function(){return o.x}),i.d(t,"z",function(){return o.y}),i.d(t,"A",function(){return o.z}),i.d(t,"B",function(){return o.A}),i.d(t,"C",function(){return o.B}),i.d(t,"D",function(){return o.C}),i.d(t,"E",function(){return o.D}),i.d(t,"F",function(){return o.E}),i.d(t,"G",function(){return o.F}),i.d(t,"H",function(){return o.G}),i.d(t,"I",function(){return o.H});var a=i(4);i.d(t,"J",function(){return a.a}),i.d(t,"K",function(){return a.b}),i.d(t,"L",function(){return a.c}),i.d(t,"M",function(){return a.d}),i.d(t,"N",function(){return a.e}),i.d(t,"O",function(){return a.f}),i.d(t,"P",function(){return a.g}),i.d(t,"Q",function(){return a.h}),i.d(t,"R",function(){return a.i}),i.d(t,"S",function(){return a.j}),i.d(t,"T",function(){return a.k}),i.d(t,"U",function(){return a.l}),i.d(t,"V",function(){return a.m}),i.d(t,"W",function(){return a.n}),i.d(t,"X",function(){return a.o}),i.d(t,"Y",function(){return a.p}),i.d(t,"Z",function(){return a.q}),i.d(t,"_0",function(){return a.r}),i.d(t,"_1",function(){return a.s}),i.d(t,"_2",function(){return a.t}),i.d(t,"_3",function(){return a.u}),i.d(t,"_4",function(){return a.v}),i.d(t,"_5",function(){return a.w}),i.d(t,"_6",function(){return a.x}),i.d(t,"_7",function(){return a.y}),i.d(t,"_8",function(){return a.z}),i.d(t,"_9",function(){return a.A}),i.d(t,"_10",function(){return a.B}),i.d(t,"_11",function(){return a.C}),i.d(t,"_12",function(){return a.D});var r=i(0);i.d(t,"_13",function(){return r.a}),i.d(t,"_14",function(){return r.b}),i.d(t,"_15",function(){return r.c}),i.d(t,"_16",function(){return r.d}),i.d(t,"_17",function(){return r.e}),i.d(t,"_18",function(){return r.f}),i.d(t,"_19",function(){return r.g}),i.d(t,"_20",function(){return r.h}),i.d(t,"_21",function(){return r.i}),i.d(t,"_22",function(){return r.j}),i.d(t,"_23",function(){return r.k}),i.d(t,"_24",function(){return r.l}),i.d(t,"_25",function(){return r.m}),i.d(t,"_26",function(){return r.n}),i.d(t,"_27",function(){return r.o}),i.d(t,"_28",function(){return r.p}),i.d(t,"_29",function(){return r.q}),i.d(t,"_30",function(){return r.r}),i.d(t,"_31",function(){return r.s}),i.d(t,"_32",function(){return r.t}),i.d(t,"_33",function(){return r.u}),i.d(t,"_34",function(){return r.v}),i.d(t,"_35",function(){return r.w}),i.d(t,"_36",function(){return r.x}),i.d(t,"_37",function(){return r.y}),i.d(t,"_38",function(){return r.z}),i.d(t,"_39",function(){return r.A}),i.d(t,"_40",function(){return r.B}),i.d(t,"_41",function(){return r.C}),i.d(t,"_42",function(){return r.D}),i.d(t,"_43",function(){return r.E}),i.d(t,"_44",function(){return r.F}),i.d(t,"_45",function(){return r.G}),i.d(t,"_46",function(){return r.H}),i.d(t,"_47",function(){return r.I}),i.d(t,"_48",function(){return r.J}),i.d(t,"_49",function(){return r.K}),i.d(t,"_50",function(){return r.L}),i.d(t,"_51",function(){return r.M}),i.d(t,"_52",function(){return r.N}),i.d(t,"_53",function(){return r.O}),i.d(t,"_54",function(){return r.P}),i.d(t,"_55",function(){return r.Q}),i.d(t,"_56",function(){return r.R}),i.d(t,"_57",function(){return r.S}),i.d(t,"_58",function(){return r.T}),i.d(t,"_59",function(){return r.U}),i.d(t,"_60",function(){return r.V}),i.d(t,"_61",function(){return r.W}),i.d(t,"_62",function(){return r.X}),i.d(t,"_63",function(){return r.Y}),i.d(t,"_64",function(){return r.Z}),i.d(t,"_65",function(){return r._0}),i.d(t,"_66",function(){return r._1}),i.d(t,"_67",function(){return r._2}),i.d(t,"_68",function(){return r._3}),i.d(t,"_69",function(){return r._4}),i.d(t,"_70",function(){return r._5}),i.d(t,"_71",function(){return r._6}),i.d(t,"_72",function(){return r._7}),i.d(t,"_73",function(){return r._8}),i.d(t,"_74",function(){return r._9}),i.d(t,"_75",function(){return r._10}),i.d(t,"_76",function(){return r._11}),i.d(t,"_77",function(){return r._12}),i.d(t,"_78",function(){return r._13}),i.d(t,"_79",function(){return r._14}),i.d(t,"_80",function(){return r._15}),i.d(t,"_81",function(){return r._16}),i.d(t,"_82",function(){return r._17}),i.d(t,"_83",function(){return r._18}),i.d(t,"_84",function(){return r._19}),i.d(t,"_85",function(){return r._20}),i.d(t,"_86",function(){return r._21}),i.d(t,"_87",function(){return r._22}),i.d(t,"_88",function(){return r._23}),i.d(t,"_89",function(){return r._24}),i.d(t,"_90",function(){return r._25}),i.d(t,"_91",function(){return r._26}),i.d(t,"_92",function(){return r._27}),i.d(t,"_93",function(){return r._28}),i.d(t,"_94",function(){return r._29}),i.d(t,"_95",function(){return r._30}),i.d(t,"_96",function(){return r._31}),i.d(t,"_97",function(){return r._32}),i.d(t,"_98",function(){return r._33}),i.d(t,"_99",function(){return r._34}),i.d(t,"_100",function(){return r._35}),i.d(t,"_101",function(){return r._36}),i.d(t,"_102",function(){return r._37}),i.d(t,"_103",function(){return r._38}),i.d(t,"_104",function(){return r._39}),i.d(t,"_105",function(){return r._40}),i.d(t,"_106",function(){return r._41}),i.d(t,"_107",function(){return r._42}),i.d(t,"_108",function(){return r._43}),i.d(t,"_109",function(){return r._44}),i.d(t,"_110",function(){return r._45}),i.d(t,"_111",function(){return r._46}),i.d(t,"_112",function(){return r._47}),i.d(t,"_113",function(){return r._48}),i.d(t,"_114",function(){return r._49}),i.d(t,"_115",function(){return r._50}),i.d(t,"_116",function(){return r._51}),i.d(t,"_117",function(){return r._52}),i.d(t,"_118",function(){return r._53}),i.d(t,"_119",function(){return r._54}),i.d(t,"_120",function(){return r._55}),i.d(t,"_121",function(){return r._56}),i.d(t,"_122",function(){return r._57}),i.d(t,"_123",function(){return r._58}),i.d(t,"_124",function(){return r._59}),i.d(t,"_125",function(){return r._60}),i.d(t,"_126",function(){return r._61}),i.d(t,"_127",function(){return r._62}),i.d(t,"_128",function(){return r._63});var l=i(10);i.d(t,"_129",function(){return l.a});var s=i(13);i.d(t,"_130",function(){return s.a});var d=i(8);i.d(t,"_131",function(){return d.a});var p=i(11);i.d(t,"_132",function(){return p.a});var h=i(9);i.d(t,"_133",function(){return h.a});var c=i(14);i.d(t,"_134",function(){return c.a});var u=i(16);i.d(t,"_135",function(){return u.a});var m=i(15);i.d(t,"_136",function(){return m.a});var g=i(21);i.d(t,"_137",function(){return g.a});var y=i(22);i.d(t,"_138",function(){return y.a});var f=i(23);i.d(t,"_139",function(){return f.a});var b=i(24);i.d(t,"_140",function(){return b.a});var v=i(12);i.d(t,"_141",function(){return v.a});var S=i(20);i.d(t,"_142",function(){return S.a});var _=i(18);i.d(t,"_143",function(){return _.a});var x=i(19);i.d(t,"_144",function(){return x.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return n}),i.d(t,"b",function(){return o}),i.d(t,"c",function(){return a}),i.d(t,"d",function(){return r}),i.d(t,"e",function(){return l}),i.d(t,"f",function(){return s}),i.d(t,"g",function(){return d}),i.d(t,"h",function(){return p}),i.d(t,"i",function(){return h}),i.d(t,"j",function(){return c}),i.d(t,"k",function(){return u}),i.d(t,"l",function(){return m}),i.d(t,"m",function(){return g}),i.d(t,"n",function(){return y}),i.d(t,"o",function(){return f}),i.d(t,"p",function(){return b}),i.d(t,"q",function(){return v}),i.d(t,"r",function(){return S}),i.d(t,"s",function(){return _}),i.d(t,"t",function(){return x}),i.d(t,"u",function(){return O}),i.d(t,"v",function(){return M}),i.d(t,"w",function(){return L}),i.d(t,"x",function(){return C}),i.d(t,"y",function(){return w}),i.d(t,"z",function(){return P}),i.d(t,"A",function(){return T}),i.d(t,"B",function(){return I}),i.d(t,"C",function(){return N}),i.d(t,"D",function(){return k}),i.d(t,"E",function(){return F}),i.d(t,"F",function(){return E}),i.d(t,"G",function(){return A}),i.d(t,"H",function(){return z});var n="load",o="loaded",a="click",r="onclick",l="rightClick",s="doubleClick",d="resize",p="tooltipRender",h="shapeSelected",c="shapeHighlight",u="mousemove",m="mouseup",g="mousedown",y="layerRendering",f="shapeRendering",b="markerRendering",v="markerClusterRendering",S="markerClick",_="markerClusterClick",x="markerMouseMove",O="markerClusterMouseMove",M="dataLabelRendering",L="bubbleRendering",C="bubbleClick",w="bubbleMouseMove",P="animationComplete",T="legendRendering",I="annotationRendering",N="itemSelection",k="itemHighlight",F="beforePrint",E="zoomIn",A="zoomOut",z="pan"},function(e,t,i){"use strict";i.d(t,"a",function(){return s}),i.d(t,"b",function(){return d}),i.d(t,"c",function(){return p}),i.d(t,"d",function(){return h}),i.d(t,"e",function(){return c}),i.d(t,"f",function(){return u}),i.d(t,"g",function(){return m}),i.d(t,"h",function(){return g}),i.d(t,"i",function(){return y}),i.d(t,"j",function(){return f}),i.d(t,"k",function(){return b}),i.d(t,"l",function(){return v}),i.d(t,"m",function(){return S}),i.d(t,"n",function(){return _}),i.d(t,"o",function(){return x}),i.d(t,"p",function(){return O}),i.d(t,"q",function(){return M}),i.d(t,"r",function(){return L}),i.d(t,"s",function(){return C}),i.d(t,"t",function(){return w}),i.d(t,"u",function(){return P}),i.d(t,"v",function(){return T}),i.d(t,"w",function(){return I}),i.d(t,"x",function(){return N}),i.d(t,"y",function(){return k}),i.d(t,"z",function(){return F}),i.d(t,"A",function(){return E}),i.d(t,"B",function(){return A}),i.d(t,"C",function(){return z}),i.d(t,"D",function(){return B});var n=i(1),o=(i.n(n),i(5)),a=i(0),r=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"content",void 0),l([i.i(n.Property)("0px")],t.prototype,"x",void 0),l([i.i(n.Property)("0px")],t.prototype,"y",void 0),l([i.i(n.Property)("None")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)("None")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("-1")],t.prototype,"zIndex",void 0),t}(n.ChildProperty),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("Start")],t.prototype,"position",void 0),l([i.i(n.Property)("false")],t.prototype,"showArrow",void 0),l([i.i(n.Property)(2)],t.prototype,"size",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"offSet",void 0),t}(n.ChildProperty),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("12px")],t.prototype,"size",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)("Roboto, Noto, Sans-serif")],t.prototype,"fontFamily",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontWeight",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontStyle",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"opacity",void 0),t}(n.ChildProperty),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),l([i.i(n.Complex)(o.b.tooltipLabelFont,p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(null)],t.prototype,"format",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),t}(n.ChildProperty),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(10)],t.prototype,"left",void 0),l([i.i(n.Property)(10)],t.prototype,"right",void 0),l([i.i(n.Property)(10)],t.prototype,"top",void 0),l([i.i(n.Property)(10)],t.prototype,"bottom",void 0),t}(n.ChildProperty),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("#000000")],t.prototype,"color",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"allowClustering",void 0),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),l([i.i(n.Property)("#D2691E")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Rectangle")],t.prototype,"shape",void 0),l([i.i(n.Property)(12)],t.prototype,"width",void 0),l([i.i(n.Property)(12)],t.prototype,"height",void 0),l([i.i(n.Property)(new a.r(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Complex)({},p)],t.prototype,"labelStyle",void 0),l([i.i(n.Property)(!1)],t.prototype,"allowClusterExpand",void 0),l([i.i(n.Complex)({},g)],t.prototype,"connectorLineSettings",void 0),t}(n.ChildProperty),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n.ChildProperty),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"from",void 0),l([i.i(n.Property)(null)],t.prototype,"to",void 0),l([i.i(n.Property)(null)],t.prototype,"value",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"minOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"maxOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"label",void 0),l([i.i(n.Property)(!0)],t.prototype,"showLegend",void 0),t}(n.ChildProperty),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValue",void 0),t}(n.ChildProperty),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(!1)],t.prototype,"enableMultiSelect",void 0),l([i.i(n.Complex)({color:"transparent",width:0},h)],t.prototype,"border",void 0),t}(n.ChildProperty),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Complex)({color:"transparent",width:0},h)],t.prototype,"border",void 0),t}(n.ChildProperty),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"angle",void 0),l([i.i(n.Complex)({showArrow:!1,position:"Start",size:5,color:"black"},d)],t.prototype,"arrowSettings",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({},h)],t.prototype,"border",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"minRadius",void 0),l([i.i(n.Property)(20)],t.prototype,"maxRadius",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)("Circle")],t.prototype,"bubbleType",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Collection)([],b)],t.prototype,"colorMapping",void 0),l([i.i(n.Complex)({},u)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"text",void 0),l([i.i(n.Property)("")],t.prototype,"description",void 0),t}(n.ChildProperty),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),t}(L),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Complex)({},C)],t.prototype,"subtitleSettings",void 0),t}(L),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"enablePanning",void 0),l([i.i(n.Property)(!0)],t.prototype,"enableSelectionZooming",void 0),l([i.i(n.Property)("Horizontal")],t.prototype,"toolBarOrientation",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"highlightColor",void 0),l([i.i(n.Property)(null)],t.prototype,"selectionColor",void 0),l([i.i(n.Property)("Far")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("Near")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)(["ZoomIn","ZoomOut","Reset"])],t.prototype,"toolbars",void 0),l([i.i(n.Property)(!0)],t.prototype,"mouseWheelZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"doubleClickZoom",void 0),l([i.i(n.Property)(!0)],t.prototype,"pinchZooming",void 0),l([i.i(n.Property)(!1)],t.prototype,"zoomOnClick",void 0),l([i.i(n.Property)(1)],t.prototype,"zoomFactor",void 0),l([i.i(n.Property)(10)],t.prototype,"maxZoom",void 0),l([i.i(n.Property)(1)],t.prototype,"minZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"shouldZoomInitially",void 0),l([i.i(n.Property)(!0)],t.prototype,"resetToInitial",void 0),t}(n.ChildProperty),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"applyShapeSettings",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"",width:0},h)],t.prototype,"border",void 0),t}(n.ChildProperty),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"useMarkerShape",void 0),l([i.i(n.Property)(!1)],t.prototype,"toggleVisibility",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("transparent")],t.prototype,"background",void 0),l([i.i(n.Property)("Layers")],t.prototype,"type",void 0),l([i.i(n.Property)(!1)],t.prototype,"invertedPointer",void 0),l([i.i(n.Property)("After")],t.prototype,"labelPosition",void 0),l([i.i(n.Property)("None")],t.prototype,"labelDisplayMode",void 0),l([i.i(n.Property)("Circle")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"width",void 0),l([i.i(n.Property)("")],t.prototype,"height",void 0),l([i.i(n.Complex)({fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeWidth",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeHeight",void 0),l([i.i(n.Property)(10)],t.prototype,"shapePadding",void 0),l([i.i(n.Complex)({color:"#000000",width:0},h)],t.prototype,"border",void 0),l([i.i(n.Complex)({color:"#000000",width:0},h)],t.prototype,"shapeBorder",void 0),l([i.i(n.Complex)({},L)],t.prototype,"title",void 0),l([i.i(n.Complex)({size:o.b.legendTitleFont.size,color:o.b.legendTitleFont.color,fontStyle:o.b.legendTitleFont.fontStyle,fontWeight:o.b.legendTitleFont.fontWeight,fontFamily:null},p)],t.prototype,"titleStyle",void 0),l([i.i(n.Property)("Bottom")],t.prototype,"position",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Property)("None")],t.prototype,"orientation",void 0),l([i.i(n.Property)({x:0,y:0})],t.prototype,"location",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Default")],t.prototype,"mode",void 0),l([i.i(n.Property)(null)],t.prototype,"showLegendPath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)(!1)],t.prototype,"removeDuplicateLegend",void 0),l([i.i(n.Complex)({},T)],t.prototype,"toggleLegendSettings",void 0),t}(n.ChildProperty),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Complex)({width:0,color:"transparent"},h)],t.prototype,"border",void 0),l([i.i(n.Property)("black")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(5)],t.prototype,"rx",void 0),l([i.i(n.Property)(5)],t.prototype,"ry",void 0),l([i.i(n.Complex)({},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("")],t.prototype,"labelPath",void 0),l([i.i(n.Property)("None")],t.prototype,"smartLabelMode",void 0),l([i.i(n.Property)("None")],t.prototype,"intersectionAction",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),t}(n.ChildProperty),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)([])],t.prototype,"palette",void 0),l([i.i(n.Property)(5)],t.prototype,"circleRadius",void 0),l([i.i(n.Complex)({width:null,color:"#000000"},h)],t.prototype,"border",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderColorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderWidthValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Collection)([],b)],t.prototype,"colorMapping",void 0),l([i.i(n.Property)(!1)],t.prototype,"autofill",void 0),t}(n.ChildProperty),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),l([i.i(n.Property)(null)],t.prototype,"dashArray",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"height",void 0),l([i.i(n.Property)(10)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"imageUrlValuePath",void 0),l([i.i(n.Property)("Balloon")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"legendText",void 0),l([i.i(n.Property)(new a.r(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)(null)],t.prototype,"template",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},u)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),l([i.i(n.Property)(null)],t.prototype,"latitudeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"longitudeValuePath",void 0),l([i.i(n.Collection)([],v)],t.prototype,"initialMarkerSelection",void 0),t}(n.ChildProperty),E=function(e){function t(t,i,n,o){return e.call(this,t,i,n,o)||this}return r(t,e),t}(F),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isBaseLayer=!1,t}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapeData",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},k)],t.prototype,"shapeSettings",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)("Layer")],t.prototype,"type",void 0),l([i.i(n.Property)("Geographic")],t.prototype,"geometryType",void 0),l([i.i(n.Property)("Aerial")],t.prototype,"bingMapType",void 0),l([i.i(n.Property)("RoadMap")],t.prototype,"staticMapType",void 0),l([i.i(n.Property)("")],t.prototype,"key",void 0),l([i.i(n.Property)("Geometry")],t.prototype,"layerType",void 0),l([i.i(n.Property)("")],t.prototype,"urlTemplate",void 0),l([i.i(n.Property)(!0)],t.prototype,"visible",void 0),l([i.i(n.Property)("name")],t.prototype,"shapeDataPath",void 0),l([i.i(n.Property)("name")],t.prototype,"shapePropertyPath",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDuration",void 0),l([i.i(n.Collection)([],E)],t.prototype,"markerSettings",void 0),l([i.i(n.Complex)({},y)],t.prototype,"markerClusterSettings",void 0),l([i.i(n.Complex)({},N)],t.prototype,"dataLabelSettings",void 0),l([i.i(n.Collection)([],M)],t.prototype,"bubbleSettings",void 0),l([i.i(n.Collection)([],O)],t.prototype,"navigationLineSettings",void 0),l([i.i(n.Complex)({},u)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},_)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},x)],t.prototype,"highlightSettings",void 0),l([i.i(n.Complex)({},T)],t.prototype,"toggleLegendSettings",void 0),l([i.i(n.Collection)([],S)],t.prototype,"initialShapeSelection",void 0),t}(n.ChildProperty),z=function(){function e(e,t,i,n,o,a,r){void 0===i&&(i=256),void 0===n&&(n=256),void 0===o&&(o=0),void 0===a&&(a=0),void 0===r&&(r=null),this.x=e,this.y=t,this.top=o,this.left=a,this.height=i,this.width=n,this.src=r}return e}(),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"background",void 0),l([i.i(n.Complex)({color:"transparent",width:1},h)],t.prototype,"border",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";function n(e){var t;switch(e.toLowerCase()){case"tailwind":t=["#0369A1","#14B8A6","#15803D","#334155","#5A61F6","#65A30D","#8B5CF6","#9333EA","#F59E0B","#F97316"];break;case"tailwinddark":t=["#10B981","#22D3EE","#2DD4BF","#4ADE80","#8B5CF6","#E879F9","#F472B6","#F87171","#F97316","#FCD34D"];break;case"bootstrap5":t=["#262E0B","#668E1F","#AF6E10","#862C0B","#1F2D50","#64680B","#311508","#4C4C81","#0C7DA0","#862C0B"];break;case"bootstrap5dark":t=["#5ECB9B","#A860F1","#EBA844","#557EF7","#E9599B","#BFC529","#3BC6CF","#7A68EC","#74B706","#EA6266"];break;case"fluent":t=["#614570","#4C6FB1","#CC6952","#3F579A","#4EA09B","#6E7A89","#D4515C","#E6AF5D","#639751","#9D4D69"];break;case"fluentdark":t=["#8AB113","#2A72D5","#43B786","#584EC6","#E85F9C","#6E7A89","#EA6266","#EBA844","#26BC7A","#BC4870"];break;default:t=["#B5E485","#7BC1E8","#DF819C","#EC9B79","#78D0D3","#D6D572","#9178E3","#A1E5B4","#87A4B4","#E4C16C"]}return t}function o(e){var t,i;switch(e.toLowerCase()){case"materialdark":i="#303030";break;case"fabricdark":i="#201F1F";break;case"bootstrapdark":i="#1A1A1A"}switch(e.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":t={backgroundColor:i,areaBackgroundColor:i,titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#DADADA",legendTextColor:"#DADADA",dataLabelFontColor:"#DADADA",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#363F4C",zoomFillColor:"#FFFFFF",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"};break;case"highcontrast":t={backgroundColor:"#000000",areaBackgroundColor:"#000000",titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#000000",tooltipFontColor:"#000000",tooltipFillColor:"#ffffff",zoomFillColor:"#FFFFFF",fontFamily:"Roboto, Noto, Sans-serif",labelFontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"};break;case"bootstrap4":t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#5B6269",fontFamily:"HelveticaNeue-Medium",titleFontSize:"16px",legendFontSize:"14px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"HelveticaNeue-Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"};break;case"tailwind":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#374151",subTitleFontColor:"#374151",legendTitleFontColor:"#374151",legendTextColor:"#6B7280",dataLabelFontColor:"#505967",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#111827",zoomFillColor:"#6b7280",fontFamily:"Inter",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#374151",shapeFill:"#E5E7EB"};break;case"tailwinddark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#D1D5DB",subTitleFontColor:"#D1D5DB",legendTitleFontColor:"#D1D5DB",legendTextColor:"#D1D5DB",dataLabelFontColor:"#D1D5DB",tooltipFontColor:"#1F2937",tooltipFillColor:"#F9FAFB",zoomFillColor:"#D1D5DB",fontFamily:"Inter",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#F3F4F6",shapeFill:"#374151"};break;case"bootstrap5":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#212529",zoomFillColor:"#6C757D",fontFamily:"Helvetica Neue",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#343A40",shapeFill:"#E9ECEF"};break;case"bootstrap5dark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",tooltipFontColor:"#212529",tooltipFillColor:"#E9ECEF",zoomFillColor:"#B5BABE",fontFamily:"Helvetica Neue",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#DEE2E6",shapeFill:"#495057"};break;case"fluent":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#201F1E",subTitleFontColor:"#201F1E",legendTitleFontColor:"#201F1E",legendTextColor:"#201F1E",dataLabelFontColor:"#201F1E",tooltipFontColor:"#323130",tooltipFillColor:"#FFFFFF",zoomFillColor:"#A19F9D",fontFamily:"Segoe UI",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#323130",shapeFill:"#F3F2F1"};break;case"fluentdark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#F3F2F1",subTitleFontColor:"#F3F2F1",legendTitleFontColor:"#F3F2F1",legendTextColor:"#F3F2F1",dataLabelFontColor:"#F3F2F1",tooltipFontColor:"#F3F2F1",tooltipFillColor:"#252423",zoomFillColor:"#484644",fontFamily:"Segoe UI",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#F3F2F1",shapeFill:"#252423"};break;default:t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#424242",titleFontSize:"14px",subTitleFontColor:"#424242",legendTitleFontColor:"#757575",legendTextColor:"#757575",dataLabelFontColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#737373",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6"}}return t}i.d(t,"b",function(){return a}),t.a=n,t.c=o;var a;!function(e){e.mapsTitleFont={size:"14px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:null,fontStyle:"Regular",fontFamily:null},e.legendTitleFont={size:"12px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:null},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(a||(a={}));var r;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"}}(r||(r={}));var l;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"}}(l||(l={}));var s;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#000000",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(s||(s={}));var d;!function(e){e.mapsTitleFont={fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",size:"14px",fontStyle:"Medium",color:"#FFFFFF"},e.mapsSubTitleFont={size:"13px",color:"#FFFFFF",fontWeight:"Medium",fontFamily:"Roboto, Noto, Sans-serif",fontStyle:"Medium"},e.tooltipLabelFont={size:"12px",color:"#282727",fontWeight:"Regular",fontFamily:"Roboto",fontStyle:"Regular"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",color:"#DADADA",fontStyle:"Medium"}}(d||(d={}))},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);i.d(t,"Maps",function(){return n.a}),i.d(t,"load",function(){return n.b}),i.d(t,"loaded",function(){return n.c}),i.d(t,"click",function(){return n.d}),i.d(t,"onclick",function(){return n.e}),i.d(t,"rightClick",function(){return n.f}),i.d(t,"doubleClick",function(){return n.g}),i.d(t,"resize",function(){return n.h}),i.d(t,"tooltipRender",function(){return n.i}),i.d(t,"shapeSelected",function(){return n.j}),i.d(t,"shapeHighlight",function(){return n.k}),i.d(t,"mousemove",function(){return n.l}),i.d(t,"mouseup",function(){return n.m}),i.d(t,"mousedown",function(){return n.n}),i.d(t,"layerRendering",function(){return n.o}),i.d(t,"shapeRendering",function(){return n.p}),i.d(t,"markerRendering",function(){return n.q}),i.d(t,"markerClusterRendering",function(){return n.r}),i.d(t,"markerClick",function(){return n.s}),i.d(t,"markerClusterClick",function(){return n.t}),i.d(t,"markerMouseMove",function(){return n.u}),i.d(t,"markerClusterMouseMove",function(){return n.v}),i.d(t,"dataLabelRendering",function(){return n.w}),i.d(t,"bubbleRendering",function(){return n.x}),i.d(t,"bubbleClick",function(){return n.y}),i.d(t,"bubbleMouseMove",function(){return n.z}),i.d(t,"animationComplete",function(){return n.A}),i.d(t,"legendRendering",function(){return n.B}),i.d(t,"annotationRendering",function(){return n.C}),i.d(t,"itemSelection",function(){return n.D}),i.d(t,"itemHighlight",function(){return n.E}),i.d(t,"beforePrint",function(){return n.F}),i.d(t,"zoomIn",function(){return n.G}),i.d(t,"zoomOut",function(){return n.H}),i.d(t,"pan",function(){return n.I}),i.d(t,"Annotation",function(){return n.J}),i.d(t,"Arrow",function(){return n.K}),i.d(t,"Font",function(){return n.L}),i.d(t,"Border",function(){return n.M}),i.d(t,"CenterPosition",function(){return n.N}),i.d(t,"TooltipSettings",function(){return n.O}),i.d(t,"Margin",function(){return n.P}),i.d(t,"ConnectorLineSettings",function(){return n.Q}),i.d(t,"MarkerClusterSettings",function(){return n.R}),i.d(t,"MarkerClusterData",function(){return n.S}),i.d(t,"ColorMappingSettings",function(){return n.T}),i.d(t,"InitialMarkerSelectionSettings",function(){return n.U}),i.d(t,"InitialShapeSelectionSettings",function(){return n.V}),i.d(t,"SelectionSettings",function(){return n.W}),i.d(t,"HighlightSettings",function(){return n.X}),i.d(t,"NavigationLineSettings",function(){return n.Y}),i.d(t,"BubbleSettings",function(){return n.Z}),i.d(t,"CommonTitleSettings",function(){return n._0}),i.d(t,"SubTitleSettings",function(){return n._1}),i.d(t,"TitleSettings",function(){return n._2}),i.d(t,"ZoomSettings",function(){return n._3}),i.d(t,"ToggleLegendSettings",function(){return n._4}),i.d(t,"LegendSettings",function(){return n._5}),i.d(t,"DataLabelSettings",function(){return n._6}),i.d(t,"ShapeSettings",function(){return n._7}),i.d(t,"MarkerBase",function(){return n._8}),i.d(t,"MarkerSettings",function(){return n._9}),i.d(t,"LayerSettings",function(){return n._10}),i.d(t,"Tile",function(){return n._11}),i.d(t,"MapsAreaSettings",function(){return n._12}),i.d(t,"Size",function(){return n._13}),i.d(t,"stringToNumber",function(){return n._14}),i.d(t,"calculateSize",function(){return n._15}),i.d(t,"createSvg",function(){return n._16}),i.d(t,"getMousePosition",function(){return n._17}),i.d(t,"degreesToRadians",function(){return n._18}),i.d(t,"radiansToDegrees",function(){return n._19}),i.d(t,"convertGeoToPoint",function(){return n._20}),i.d(t,"convertTileLatLongToPoint",function(){return n._21}),i.d(t,"xToCoordinate",function(){return n._22}),i.d(t,"yToCoordinate",function(){return n._23}),i.d(t,"aitoff",function(){return n._24}),i.d(t,"roundTo",function(){return n._25}),i.d(t,"sinci",function(){return n._26}),i.d(t,"acos",function(){return n._27}),i.d(t,"calculateBound",function(){return n._28}),i.d(t,"triggerDownload",function(){return n._29}),i.d(t,"Point",function(){return n._30}),i.d(t,"MinMax",function(){return n._31}),i.d(t,"GeoLocation",function(){return n._32}),i.d(t,"measureText",function(){return n._33}),i.d(t,"TextOption",function(){return n._34}),i.d(t,"PathOption",function(){return n._35}),i.d(t,"ColorValue",function(){return n._36}),i.d(t,"RectOption",function(){return n._37}),i.d(t,"CircleOption",function(){return n._38}),i.d(t,"PolygonOption",function(){return n._39}),i.d(t,"PolylineOption",function(){return n._40}),i.d(t,"LineOption",function(){return n._41}),i.d(t,"Line",function(){return n._42}),i.d(t,"MapLocation",function(){return n._43}),i.d(t,"Rect",function(){return n._44}),i.d(t,"PatternOptions",function(){return n._45}),i.d(t,"renderTextElement",function(){return n._46}),i.d(t,"convertElement",function(){return n._47}),i.d(t,"formatValue",function(){return n._48}),i.d(t,"convertStringToValue",function(){return n._49}),i.d(t,"convertElementFromLabel",function(){return n._50}),i.d(t,"drawSymbols",function(){return n._51}),i.d(t,"getValueFromObject",function(){return n._52}),i.d(t,"markerColorChoose",function(){return n._53}),i.d(t,"markerShapeChoose",function(){return n._54}),i.d(t,"clusterTemplate",function(){return n._55}),i.d(t,"mergeSeparateCluster",function(){return n._56}),i.d(t,"clusterSeparate",function(){return n._57}),i.d(t,"marker",function(){return n._58}),i.d(t,"markerTemplate",function(){return n._59}),i.d(t,"maintainSelection",function(){return n._60}),i.d(t,"maintainStyleClass",function(){return n._61}),i.d(t,"appendShape",function(){return n._62}),i.d(t,"drawCircle",function(){return n._63}),i.d(t,"drawRectangle",function(){return n._64}),i.d(t,"drawPath",function(){return n._65}),i.d(t,"drawPolygon",function(){return n._66}),i.d(t,"drawPolyline",function(){return n._67}),i.d(t,"drawLine",function(){return n._68}),i.d(t,"calculateShapes",function(){return n._69}),i.d(t,"drawDiamond",function(){return n._70}),i.d(t,"drawTriangle",function(){return n._71}),i.d(t,"drawCross",function(){return n._72}),i.d(t,"drawHorizontalLine",function(){return n._73}),i.d(t,"drawVerticalLine",function(){return n._74}),i.d(t,"drawStar",function(){return n._75}),i.d(t,"drawBalloon",function(){return n._76}),i.d(t,"drawPattern",function(){return n._77}),i.d(t,"getFieldData",function(){return n._78}),i.d(t,"checkShapeDataFields",function(){return n._79}),i.d(t,"checkPropertyPath",function(){return n._80}),i.d(t,"filter",function(){return n._81}),i.d(t,"getRatioOfBubble",function(){return n._82}),i.d(t,"findMidPointOfPolygon",function(){return n._83}),i.d(t,"isCustomPath",function(){return n._84}),i.d(t,"textTrim",function(){return n._85}),i.d(t,"findPosition",function(){return n._86}),i.d(t,"removeElement",function(){return n._87}),i.d(t,"calculateCenterFromPixel",function(){return n._88}),i.d(t,"getTranslate",function(){return n._89}),i.d(t,"getZoomTranslate",function(){return n._90}),i.d(t,"fixInitialScaleForTile",function(){return n._91}),i.d(t,"getElementByID",function(){return n._92}),i.d(t,"getClientElement",function(){return n._93}),i.d(t,"Internalize",function(){return n._94}),i.d(t,"getTemplateFunction",function(){return n._95}),i.d(t,"getElement",function(){return n._96}),i.d(t,"getShapeData",function(){return n._97}),i.d(t,"triggerShapeEvent",function(){return n._98}),i.d(t,"getElementsByClassName",function(){return n._99}),i.d(t,"querySelector",function(){return n._100}),i.d(t,"getTargetElement",function(){return n._101}),i.d(t,"createStyle",function(){return n._102}),i.d(t,"customizeStyle",function(){return n._103}),i.d(t,"triggerItemSelectionEvent",function(){return n._104}),i.d(t,"removeClass",function(){return n._105}),i.d(t,"elementAnimate",function(){return n._106}),i.d(t,"timeout",function(){return n._107}),i.d(t,"showTooltip",function(){return n._108}),i.d(t,"wordWrap",function(){return n._109}),i.d(t,"createTooltip",function(){return n._110}),i.d(t,"drawSymbol",function(){return n._111}),i.d(t,"renderLegendShape",function(){return n._112}),i.d(t,"getElementOffset",function(){return n._113}),i.d(t,"changeBorderWidth",function(){return n._114}),i.d(t,"changeNavaigationLineWidth",function(){return n._115}),i.d(t,"targetTouches",function(){return n._116}),i.d(t,"calculateScale",function(){return n._117}),i.d(t,"getDistance",function(){return n._118}),i.d(t,"getTouches",function(){return n._119}),i.d(t,"getTouchCenter",function(){return n._120}),i.d(t,"sum",function(){return n._121}),i.d(t,"zoomAnimate",function(){return n._122}),i.d(t,"animate",function(){return n._123}),i.d(t,"MapAjax",function(){return n._124}),i.d(t,"smoothTranslate",function(){return n._125}),i.d(t,"compareZoomFactor",function(){return n._126}),i.d(t,"calculateZoomLevel",function(){return n._127}),i.d(t,"processResult",function(){return n._128}),i.d(t,"LayerPanel",function(){return n._129}),i.d(t,"Bubble",function(){return n._130}),i.d(t,"BingMap",function(){return n._131}),i.d(t,"Marker",function(){return n._132}),i.d(t,"ColorMapping",function(){return n._133}),i.d(t,"DataLabel",function(){return n._134}),i.d(t,"NavigationLine",function(){return n._135}),i.d(t,"Legend",function(){return n._136}),i.d(t,"Highlight",function(){return n._137}),i.d(t,"Selection",function(){return n._138}),i.d(t,"MapsTooltip",function(){return n._139}),i.d(t,"Zoom",function(){return n._140}),i.d(t,"Annotations",function(){return n._141}),i.d(t,"Print",function(){return n._142}),i.d(t,"ImageExport",function(){return n._143}),i.d(t,"PdfExport",function(){return n._144})},function(e,t,i){"use strict";i.d(t,"a",function(){return o});var n=i(1),o=(i.n(n),function(){function e(e){this.maps=e}return e.prototype.getBingMap=function(e,t,o,a,r,l){for(var s="",d=Math.min(this.maps.tileZoomLevel,parseInt(this.maxZoom,10)),p=d;p>0;p--){var h=0,c=1<<p-1;0!=(e.x&c)&&h++,0!=(e.y&c)&&(h+=2),s=s+""+h}if(i.i(n.isNullOrUndefined)(l))return"";var u=l[Math.min(parseInt(s.substr(s.length-1,1),10),l.length)];return r=r.replace("{quadkey}",s).replace("{subdomain}",u),r+="&mkt="+a+"&ur=IN&Key="+t},e.prototype.destroy=function(){this.maps=null,this.subDomains=[]},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e}return e.prototype.getShapeColorMapping=function(e,t,n){var r=e.colorValuePath?e.colorValuePath:e.valuePath,l=i.i(o.isNullOrUndefined)(r)?t[r]:r.indexOf(".")>-1?i.i(a.N)(t,r):t[r],s=Number(l),d=this.getColorByValue(e.colorMapping,s,l);return i.i(o.isNullOrUndefined)(d)?n:d},e.prototype.getColorByValue=function(e,t,n){if(isNaN(t)&&i.i(o.isNullOrUndefined)(n))return null;for(var a,r,l="",s=0,d=e;s<d.length;s++){var p=d[s];(!i.i(o.isNullOrUndefined)(p.from)&&!i.i(o.isNullOrUndefined)(p.to)&&t>=p.from&&t<=p.to||p.value===n)&&("[object Array]"===Object.prototype.toString.call(p.color)?i.i(o.isNullOrUndefined)(p.value)?(r=this.getColor(p,t),l=r):l=p.color[0]:l=p.color),(t>=p.from&&t<=p.to||p.value===n)&&!i.i(o.isNullOrUndefined)(p.minOpacity)&&!i.i(o.isNullOrUndefined)(p.maxOpacity)&&l&&(a=this.deSaturationColor(p,l,t,n)),(""===l||i.i(o.isNullOrUndefined)(l))&&i.i(o.isNullOrUndefined)(p.from)&&i.i(o.isNullOrUndefined)(p.to)&&i.i(o.isNullOrUndefined)(p.minOpacity)&&i.i(o.isNullOrUndefined)(p.maxOpacity)&&i.i(o.isNullOrUndefined)(p.value)&&(l="[object Array]"===Object.prototype.toString.call(p.color)?p.color[0]:p.color)}return{fill:l||(e.length?null:n),opacity:a}},e.prototype.deSaturationColor=function(e,t,i,n){var o=1;if(i>=e.from&&i<=e.to||e.value===n){o=(isNaN(i)?e.from/(e.to-e.from):(i-e.from)/(e.to-e.from))*(e.maxOpacity-e.minOpacity)+e.minOpacity}return o},e.prototype.rgbToHex=function(e,t,i){return"#"+this.componentToHex(e)+this.componentToHex(t)+this.componentToHex(i)},e.prototype.componentToHex=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t},e.prototype.getColor=function(e,t){var i,n="";return Number(t)===e.from?n=e.color[0]:Number(t)===e.to?n=e.color[e.color.length-1]:(i=this.getGradientColor(Number(t),e),n=this.rgbToHex(i.r,i.g,i.b)),n},e.prototype.getGradientColor=function(e,t){var i,n=t.from,o=t.to,a=0,r=o-n;a=(e-n)/r;var l,s;if(t.color.length<=2)l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);else{l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);for(var d=r/(t.color.length-1),p=void 0,h=void 0,c=t.color.length-1,u=[],m={},g=1;g<c;g++)h=g*d,p=n+h,m={b:p,color:t.color[g]},u.push(m);for(var y=0;y<u.length;y++)n<=e&&e<=u[y].b&&0===y?(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),s=i,a=e<u[y].b?1-Math.abs((e-u[y].b)/d):(e-u[y].b)/d):u[y].b<=e&&e<=o&&y===u.length-1&&(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),l=i,a=e<u[y].b?1-Math.abs((e-u[y].b)/d):(e-u[y].b)/d),y!==u.length-1&&y<u.length&&u[y].b<=e&&e<=u[y+1].b&&(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),l=i,s="#"===u[y+1].color.charAt(0)?u[y+1].color:this._colorNameToHex(u[y+1].color),a=Math.abs(e-u[y+1].b)/d)}return this.getPercentageColor(a,l,s)},e.prototype.getPercentageColor=function(e,t,i){var o=i.split("#")[1],a=t.split("#")[1],r=this.getPercentage(e,parseInt(a.substr(0,2),16),parseInt(o.substr(0,2),16)),l=this.getPercentage(e,parseInt(a.substr(2,2),16),parseInt(o.substr(2,2),16)),s=this.getPercentage(e,parseInt(a.substr(4,2),16),parseInt(o.substr(4,2),16));return new n._36(r,l,s)},e.prototype.getPercentage=function(e,t,i){var n=i-t;return Math.round(t+n*e)},e.prototype._colorNameToHex=function(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",orchid:"#da70d6",papayawhip:"#ffefd5",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"[object Array]"===Object.prototype.toString.call(e)?e:void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:e},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(1),o=(i.n(n),i(5)),a=i(0),r=i(4),l=i(8),s=i(9),d=i(2),p=function(){function e(e){this.isMapCoordinates=!0,this.horizontalPan=!1,this.horizontalPanXCount=0,this.mapObject=e,this.ajaxModule=new n.Ajax,this.ajaxResponse=[]}return e.prototype.measureLayerPanel=function(){var e=this,t=this.mapObject.layersCollection,o=this.mapObject.mapAreaRect,r=i.i(a._27)(this.mapObject.element.id+"_Secondary_Element");if(this.mapObject.isTileMap&&r){this.tileSvgObject=this.mapObject.renderer.createSvg({id:this.mapObject.element.id+"_Tile_SVG",width:o.width,height:o.height});var l=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_Tile_SVG_Parent"});l.style.cssText="position: absolute; height: "+o.height+"px; width: "+o.width+"px;",l.appendChild(this.tileSvgObject),r.appendChild(l)}if(this.layerGroup=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_Layer_Collections","clip-path":"url(#"+this.mapObject.element.id+"_MapArea_ClipRect)"}),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType){this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.y(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:(o.width-640)/2,y:0,width:640,height:o.height}))}else this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.y(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:this.mapObject.isTileMap?0:o.x,y:this.mapObject.isTileMap?0:o.y,width:o.width,height:o.height}));this.layerGroup.appendChild(this.clipRectElement),this.mapObject.baseMapBounds=null,this.mapObject.baseMapRectBounds=null,this.mapObject.baseSize=null,Array.prototype.forEach.call(t,function(t,i){e.currentLayer=t,e.processLayers(t,i)}),i.i(n.isNullOrUndefined)(this.mapObject.legendModule)||"Float"!==this.mapObject.legendSettings.position||(this.mapObject.isTileMap?this.layerGroup.appendChild(this.mapObject.legendModule.legendGroup):this.mapObject.svgObject.appendChild(this.mapObject.legendModule.legendGroup))},e.prototype.renderTileLayer=function(e,t,o,r){e.currentFactor=e.calculateFactor(t),e.mapObject.defaultState=!(1!==e.mapObject.zoomSettings.zoomFactor&&!i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel)&&1!==e.mapObject.tileZoomLevel),i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLatitude)&&i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLongitude)&&!e.mapObject.isZoomByPosition?(e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.previousCenterLatitude!==e.mapObject.centerPosition.latitude&&e.mapObject.previousCenterLongitude!==e.mapObject.centerPosition.longitude||e.mapObject.isZoomByPosition?(e.mapObject.centerPositionChanged=!0,e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.centerPositionChanged=!1;var l=new a.r(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude),s=l;this.mapObject.isTileMap&&e.mapObject.markerModule&&e.mapObject.zoomSettings.enable&&(e.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection),i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLatitude)||i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLongitude)||e.mapObject.isZoomByPosition||(s=new a.r(e.mapObject.markerCenterLongitude,e.mapObject.markerCenterLatitude))),l=!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.centerPosition.longitude&&e.mapObject.centerPosition.latitude&&!e.mapObject.zoomPersistence&&e.mapObject.defaultState?new a.r(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude):e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.markerZoomedState&&!e.mapObject.zoomPersistence&&!i.i(n.isNullOrUndefined)(e.mapObject.markerZoomCenterPoint)?new a.r(e.mapObject.markerZoomCenterPoint.longitude,e.mapObject.markerZoomCenterPoint.latitude):{x:null,y:null};var d=e.mapObject.zoomSettings.shouldZoomInitially&&!e.mapObject.isZoomByPosition?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?1:e.mapObject.markerZoomFactor:e.mapObject.zoomSettings.zoomFactor;if(d=e.mapObject.enablePersistence?i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue)?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?e.mapObject.zoomSettings.zoomFactor:e.mapObject.markerZoomFactor:e.mapObject.mapScaleValue:d,d=e.mapObject.zoomSettings.enable?d:e.mapObject.zoomSettings.zoomFactor,d=d>0?d:1,e.mapObject.defaultState=1===d,!e.mapObject.markerZoomedState&&e.mapObject.zoomSettings.shouldZoomInitially&&1===e.mapObject.zoomSettings.zoomFactor&&(e.mapObject.defaultState=!0),i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel))e.mapObject.tileZoomLevel=d,e.mapObject.previousZoomFactor=d;else if(this.mapObject.isReset&&1===e.mapObject.tileZoomLevel&&!e.mapObject.zoomSettings.shouldZoomInitially){var p=e.mapObject.tileZoomLevel;e.mapObject.tileZoomLevel=p}else 1!==e.mapObject.zoomSettings.zoomFactor||e.mapObject.zoomSettings.shouldZoomInitially?(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=e.mapObject.defaultState&&e.mapObject.zoomSettings.enable?e.mapObject.tileZoomLevel:e.mapObject.zoomSettings.shouldZoomInitially||e.mapObject.centerPositionChanged?d:e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor?e.mapObject.zoomSettings.zoomFactor:e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=1===d&&0===e.mapObject.zoomSettings.zoomFactor?d:e.mapObject.tileZoomLevel,!i.i(n.isNullOrUndefined)(e.mapObject.tileTranslatePoint)&&(e.mapObject.markerZoomFactor!==e.mapObject.mapScaleValue||i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)&&i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue))&&(e.mapObject.zoomSettings.zoomFactor<=1||e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor)&&(e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0)):e.mapObject.defaultState&&(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=d,e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0);if(d<=1&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.tileZoomLevel===e.mapObject.tileZoomScale&&this.mapObject.initialCheck&&i.i(a._26)(this.mapObject),i.i(n.isNullOrUndefined)(e.mapObject.centerLatOfGivenLocation)||i.i(n.isNullOrUndefined)(e.mapObject.centerLongOfGivenLocation)||!e.mapObject.zoomNotApplied||(s.y=e.mapObject.centerLatOfGivenLocation,s.x=e.mapObject.centerLongOfGivenLocation,e.mapObject.tileZoomLevel=e.mapObject.mapScaleValue=e.mapObject.scaleOfGivenLocation),e.mapObject.tileTranslatePoint=e.panTileMap(e.mapObject.availableSize.width,e.mapObject.availableSize.height,s),this.mapObject.zoomSettings.resetToInitial&&this.mapObject.initialCheck&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&this.mapObject.availableSize.height>512){this.mapObject.applyZoomReset=!0,this.mapObject.initialZoomLevel=Math.floor(this.mapObject.availableSize.height/512);var h="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?20:0,c=256*Math.pow(2,this.mapObject.initialZoomLevel);this.mapObject.initialTileTranslate.x=this.mapObject.availableSize.width/2-c/2,this.mapObject.initialTileTranslate.y=this.mapObject.availableSize.height/2-c/2+h}if(e.generateTiles(e.mapObject.tileZoomLevel,e.mapObject.tileTranslatePoint,null,r),i.i(n.isNullOrUndefined)(e.mapObject.previousZoomFactor)||e.mapObject.previousZoomFactor===e.mapObject.zoomSettings.zoomFactor||(e.mapObject.previousZoomFactor=e.mapObject.zoomSettings.zoomFactor),e.mapObject.navigationLineModule){var u=e.mapObject.navigationLineModule.renderNavigation(e.currentLayer,e.mapObject.tileZoomLevel,o);i.i(n.isNullOrUndefined)(u)||e.layerObject.appendChild(u)}e.mapObject.markerModule&&e.mapObject.markerModule.markerRender(this.mapObject,e.layerObject,o,e.mapObject.tileZoomLevel,null),e.translateLayerElements(e.layerObject,o),e.layerGroup.appendChild(e.layerObject)},e.prototype.processLayers=function(e,t){var o=this;if(this.layerObject=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+t}),!this.mapObject.enablePersistence){var r=this.mapObject.getModuleName()+this.mapObject.element.id;if(-1===navigator.userAgent.indexOf("Edge")){var s=void 0;try{s=window.localStorage}catch(e){s=null}!i.i(n.isNullOrUndefined)(s)&&window.localStorage.getItem(r)&&window.localStorage.removeItem(r)}}var p={cancel:!1,name:d.o,index:t,layer:e,maps:this.mapObject,visible:e.visible};this.mapObject.trigger("layerRendering",p,function(r){if(!p.cancel&&p.visible)if("OSM"===e.layerType&&(e.urlTemplate="https://a.tile.openstreetmap.org/level/tileX/tileY.png"),"Google"===e.layerType&&(e.urlTemplate="https://mt1.google.com/vt/lyrs=m@129&hl=en&x=tileX&y=tileY&z=level"),"Geometry"!==e.layerType||i.i(n.isNullOrUndefined)(e.shapeData)&&!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate){if("Bing"!==e.layerType||o.bing)if(!i.i(n.isNullOrUndefined)(e.urlTemplate)&&e.urlTemplate.indexOf("quadkey")>-1){var s=new l.a(o.mapObject);o.bingMapCalculation(e,t,o,s)}else o.renderTileLayer(o,e,t);else if(e.key&&e.key.length>1){var d=o,h=new l.a(o.mapObject),c="AerialWithLabel"===e.bingMapType?"AerialWithLabelsOnDemand":e.bingMapType,u="https://dev.virtualearth.net/REST/V1/Imagery/Metadata/"+c,m=new n.Ajax({url:u+"?output=json&include=ImageryProviders&urischeme=https&key="+e.key});m.onSuccess=function(i){var n=JSON.parse(i),a=n.resourceSets[0].resources[0],r=a.imageUrl,l=a.imageUrlSubdomains,s=a.zoomMax;null!==r&&void 0!==r&&r!==h.imageUrl&&(h.imageUrl=r),null!==l&&void 0!==l&&l!==h.subDomains&&(h.subDomains=l),null!==s&&void 0!==s&&s!==h.maxZoom&&(h.maxZoom=s),d.mapObject.bingMap=h,d.renderTileLayer(d,e,t,h),o.mapObject.arrangeTemplate(),o.mapObject.zoomModule&&o.mapObject.previousScale!==o.mapObject.scale&&o.mapObject.zoomModule.applyTransform(o.mapObject,!0)},m.send()}}else if(!(i.i(n.isNullOrUndefined)(e.shapeData)||i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&i.i(n.isNullOrUndefined)(e.shapeData.features))){var g=!i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&e.shapeData.geometries.length>0?e.shapeData.geometries:e.shapeData.features;e.layerData=[];var y=e.shapeData.bbox;!i.i(n.isNullOrUndefined)(y)&&e.isBaseLayer?o.mapObject.baseMapBounds=new a.t({min:y[0][1],max:y[1][1]},{min:y[0][0],max:y[1][0]}):i.i(n.isNullOrUndefined)(o.mapObject.baseMapBounds)&&!i.i(a._19)(g)&&o.calculateRectBounds(g),o.calculatePathCollection(t,g)}}),this.mapObject.isTileMap?this.tileSvgObject&&(this.tileSvgObject.appendChild(this.layerGroup),this.mapObject.baseMapBounds=null):this.mapObject.svgObject.appendChild(this.layerGroup)},e.prototype.bingMapCalculation=function(e,t,i,n){n.imageUrl=e.urlTemplate,n.subDomains=["t0","t1","t2","t3"],n.maxZoom="21",i.mapObject.bingMap=n,i.renderTileLayer(i,e,t,n),this.mapObject.arrangeTemplate(),this.mapObject.zoomModule&&this.mapObject.previousScale!==this.mapObject.scale&&this.mapObject.zoomModule.applyTransform(this.mapObject,!0)},e.prototype.bubbleCalculation=function(e,t){if(null!=e.dataSource&&null!=e)for(var o=e.dataSource,r=0;r<o.length;r++){var l=i.i(n.isNullOrUndefined)(e.valuePath)?parseFloat(e.dataSource[r][e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.N)(e.dataSource[r],e.valuePath)):parseFloat(e.dataSource[r][e.valuePath]);0!==r?l>t.max?t.max=l:l<t.min&&(t.min=l):t.max=t.min=l}},e.prototype.calculatePathCollection=function(e,t){var r=this;this.groupElements=[],i.i(a._19)(t)||(this.currentFactor=this.calculateFactor(this.currentLayer)),this.rectBounds=null;var l=this.currentLayer.shapeSettings;this.currentLayer.bubbleSettings;Array.prototype.forEach.call(t,function(e,t){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var o=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,a=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates,l=e.geometry,s=e.properties;r.generatePoints(o,a,l,s)}}),this.currentLayer.rectBounds=this.rectBounds,i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)&&this.currentLayer.isBaseLayer&&(this.mapObject.baseMapRectBounds=this.rectBounds);var s=l.palette.length>1?l.palette:i.i(o.a)(this.mapObject.theme),p=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_LayerIndex_"+e+"_Label_Template_Group",className:this.mapObject.element.id+"_template"});if(p.style.cssText="pointer-events: none; overflow: hidden; position: absolute;top:"+this.mapObject.mapAreaRect.y+"px;left:"+this.mapObject.mapAreaRect.x+"px;height:"+this.mapObject.mapAreaRect.height+"px;width:"+this.mapObject.mapAreaRect.width+"px;",0!==this.currentLayer.layerData.length)for(var h=this,c=0;c<this.currentLayer.layerData.length;c++)!function(o){var c,u,m,g=void 0,y={color:l.border.color,width:l.border.width,opacity:l.border.opacity},f=h.currentLayer.layerData[o],b="",v=l.autofill?s[o%s.length]:l.fill||h.mapObject.themeStyle.shapeFill;null===l.colorValuePath||i.i(n.isNullOrUndefined)(f.property)||(g=i.i(a._14)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer),null!==g&&0===l.colorMapping.length?v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.N)(h.currentLayer.dataSource[g],l.colorValuePath):h.currentLayer.dataSource[g][l.colorValuePath]:f.property[l.colorValuePath]&&0===h.currentLayer.dataSource.length&&0===l.colorMapping.length&&(v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.N)(f.property,l.colorValuePath):f.property[l.colorValuePath]),v=i.i(n.isNullOrUndefined)(v)?l.fill||h.mapObject.themeStyle.shapeFill:v);var S=h.mapObject.element.id+"_LayerIndex_"+e+"_shapeIndex_"+o+"_dataIndex_"+g,_=h.getShapeColorMapping(h.currentLayer,f.property,v);v="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.fill)?v:_.fill,(h.currentLayer.shapeSettings.borderColorValuePath||h.currentLayer.shapeSettings.borderWidthValuePath)&&null!==(g=i.i(a._14)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer))&&(h.currentLayer.dataSource[g][l.borderColorValuePath]&&(y.color=h.currentLayer.dataSource[g][l.borderColorValuePath]),h.currentLayer.dataSource[g][l.borderWidthValuePath]&&(y.width=h.currentLayer.dataSource[g][l.borderWidthValuePath]));var x="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.opacity)?l.opacity:_.opacity,O={cancel:!1,name:d.p,index:o,data:h.currentLayer.dataSource?h.currentLayer.dataSource[g]:null,maps:h.mapObject,shape:l,fill:v,border:{width:y.width,color:y.color,opacity:y.opacity}},M=function(d){var h=i.i(n.isNullOrUndefined)(f._isMultiPolygon)?i.i(n.isNullOrUndefined)(f.type)?f[0].type:f.type:"MultiPolygon";if(h="Polygon"===h||"MultiPolygon"===h?"Polygon":h,d.cancel?(d.fill=v,d.border.color=l.border.color,d.border.width=l.border.width,r.mapObject.layers[e].shapeSettings.border=l.border):(d.fill="#A6A6A6"===d.fill?d.shape.fill||r.mapObject.themeStyle.shapeFill:d.fill,d.border.color="#000000"===d.border.color?d.shape.border.color:d.border.color,d.border.width=0===d.border.width?d.shape.border.width:d.border.width,i.i(n.isNullOrUndefined)(l.borderColorValuePath)&&(r.mapObject.layers[e].shapeSettings.border.color=d.border.color),i.i(n.isNullOrUndefined)(l.borderWidthValuePath)&&(r.mapObject.layers[e].shapeSettings.border.width=d.border.width)),d.border.opacity=i.i(n.isNullOrUndefined)(d.border.opacity)?x:d.border.opacity,r.groupElements.length<1)m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group",transform:""}),r.groupElements.push(m);else for(var g=0;g<r.groupElements.length;g++){var y=r.groupElements[g];if(y.id.indexOf(h)>-1){m=y;break}if(g>=r.groupElements.length-1){m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group"}),r.groupElements.push(m);break}}var _;switch(h){case"Polygon":f._isMultiPolygon?b=r.generateMultiPolygonPath(f):(b+="M"+f[0].point.x+" "+f[0].point.y,f.map(function(e){b+=" L "+e.point.x+" "+e.point.y})),b+=" z ",b.length>3&&(c=new a.w(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"LineString":f.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "}),b.length>3&&(c=new a.w(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"MultiLineString":f.map(function(e){e.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "})}),b.length>3&&(c=new a.w(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"Point":var O=f.point,M="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);u=new a.z(S,d.fill,d.border,x,O.x,O.y,M,l.dashArray),_=r.mapObject.renderer.drawCircle(u);break;case"MultiPoint":f.map(function(t,i){var n=t.point,s="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);u=new a.z(S+"_multiLine_"+i,d.fill,d.border,x,n.x,n.y,s,l.dashArray),_=r.mapObject.renderer.drawCircle(u),r.pathAttributeCalculate(m,_,h,f,o)});break;case"Path":b=f.point,c=new a.w(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c)}i.i(n.isNullOrUndefined)(_)||"MultiPoint"===h||r.pathAttributeCalculate(m,_,h,f,o),o===r.currentLayer.layerData.length-1&&r.layerFeatures(e,s,t,p)};M.bind(h),h.mapObject.trigger("shapeRendering",O,M)}(c);else this.layerFeatures(e,s,t,p)},e.prototype.pathAttributeCalculate=function(e,t,o,r,l){for(var s,d="[object Array]"===Object.prototype.toString.call(this.currentLayer.shapePropertyPath)?this.currentLayer.shapePropertyPath:[this.currentLayer.shapePropertyPath],p=0;p<d.length;p++)if(!i.i(n.isNullOrUndefined)(r.property)){s=d[p];break}if(t.setAttribute("aria-label",i.i(n.isNullOrUndefined)(r.property)?"":r.property[s]),t.tabIndex=this.mapObject.tabIndex+l+3,t.setAttribute("role",""),"LineString"!==o&&"MultiLineString"!==o||(t.style.cssText="outline:none"),i.i(a.V)(this.mapObject.selectedElementId,this.mapObject.shapeSelectionClass,t,"ShapeselectionMapStyle"),this.mapObject.toggledShapeElementId)for(var p=0;p<this.mapObject.toggledShapeElementId.length;p++){var h=this.mapObject.legendSettings.toggleLegendSettings.applyShapeSettings?this.currentLayer.shapeSettings:this.mapObject.legendSettings.toggleLegendSettings;this.mapObject.toggledShapeElementId[p]===t.id&&(t.setAttribute("fill",h.fill),t.setAttribute("stroke",h.border.color),t.setAttribute("fill-opacity",h.opacity.toString()),t.setAttribute("stroke-opacity",(i.i(n.isNullOrUndefined)(h.border.opacity)?h.opacity:h.border.opacity).toString()),t.setAttribute("stroke-width",(i.i(n.isNullOrUndefined)(h.border.width)?0:h.border.width).toString()))}e.appendChild(t)},e.prototype.layerFeatures=function(e,t,i,n){var o,a=this;if(this.currentLayer.bubbleSettings.length&&this.mapObject.bubbleModule)for(var r,l=this.currentLayer.bubbleSettings.length,s=this,d=0;d<l;d++)!function(i){r=s.currentLayer.bubbleSettings[i],o=s.mapObject.renderer.createGroup({id:s.mapObject.element.id+"_LayerIndex_"+e+"_bubble_Group_"+i});var n={min:0,max:0};s.bubbleCalculation(r,n),r.dataSource.map(function(l,s){a.renderBubble(a.currentLayer,l,t[s%t.length],n,i,s,o,e,r)}),s.groupElements.push(o)}(d);this.mapObject.markerModule&&!this.mapObject.isTileMap&&this.mapObject.zoomSettings.enable&&this.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection);var p=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+e+"_dataLableIndex_Group"});if(p.style.pointerEvents="none",this.mapObject.dataLabelModule&&this.currentLayer.dataLabelSettings.visible){var h=[];i.map(function(t,i){a.renderLabel(a.currentLayer,e,t,p,i,n,h)}),this.groupElements.push(p)}this.mapObject.navigationLineModule&&this.groupElements.push(this.mapObject.navigationLineModule.renderNavigation(this.currentLayer,this.currentFactor,e)),this.groupElements.map(function(e){a.layerObject.appendChild(e)}),this.mapObject.markerModule&&this.mapObject.markerModule.markerRender(this.mapObject,this.layerObject,e,this.mapObject.isTileMap?Math.floor(this.currentFactor):this.currentFactor,null),this.translateLayerElements(this.layerObject,e),this.layerGroup.appendChild(this.layerObject)},e.prototype.renderLabel=function(e,t,i,n,o,a,r){this.mapObject.dataLabelModule.renderLabel(e,t,i,e.layerData,n,a,o,r)},e.prototype.generateMultiPolygonPath=function(e){for(var t,i="",n=0;n<e.length;n++)i+="M"+e[n][0].point.x+" "+e[n][0].point.y,t=e[n],t.map(function(e){i+=" L "+e.point.x+" "+e.point.y});return i},e.prototype.renderBubble=function(e,t,o,a,r,l,s,d,p){if(i.i(n.isNullOrUndefined)(this.mapObject.bubbleModule)||!p.visible)return null;o=p.fill?p.fill:o,this.mapObject.bubbleModule.id=this.mapObject.element.id+"_LayerIndex_"+d+"_BubbleIndex_"+r+"_dataIndex_"+l,this.mapObject.bubbleModule.renderBubble(p,t,o,a,r,l,d,e,s,this.mapObject.bubbleModule.id)},e.prototype.getShapeColorMapping=function(e,t,o){if(o=o||e.shapeSettings.fill,0===e.shapeSettings.colorMapping.length&&i.i(n.isNullOrUndefined)(e.dataSource))return o;var r=i.i(a._14)(e.dataSource,t,e.shapeDataPath,e.shapePropertyPath,e),l=new s.a(this.mapObject);return i.i(n.isNullOrUndefined)(e.dataSource[r])?o:l.getShapeColorMapping(e.shapeSettings,e.dataSource[r],o)},e.prototype.generatePoints=function(e,t,o,r){var l,s,d=this,p=[];switch(e.toLowerCase()){case"polygon":p=this.calculatePolygonBox(t[0],o,r),p.length>0&&(p.property=r,p.type=e,p._isMultiPolygon=!1,this.currentLayer.layerData.push(p));break;case"multipolygon":for(var h=[],c=0;c<t.length;c++)for(var u=0;u<t[c].length;u++)p=this.calculatePolygonBox(t[c][u],o,r),p.length>0&&h.push(p);h.property=r,h.type=e,h._isMultiPolygon=!0,this.currentLayer.layerData.push(h);break;case"linestring":var m=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width;t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,m),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"multilinestring":var g=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width,y=[];t.map(function(e){p=[],e.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,g),p.push({point:t,lat:l,lng:s})}),y.push(p)}),y.property=r,y.type=e,this.currentLayer.layerData.push(y);break;case"point":var f=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;l=t[1],s=t[0];var b=i.i(a.h)(l,s,this.currentFactor,this.currentLayer,this.mapObject);this.calculateBox(b,f),this.currentLayer.layerData.push({point:b,type:e,lat:l,lng:s,property:r});break;case"multipoint":var v=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;p=[],t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,v),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"path":this.currentLayer.layerData.push({point:o.d,type:e,property:r})}},e.prototype.calculateBox=function(e,t){i.i(n.isNullOrUndefined)(this.rectBounds)?this.rectBounds={min:{x:e.x-t,y:e.y-t},max:{x:e.x+t,y:e.y+t}}:(this.rectBounds.min.x=Math.min(this.rectBounds.min.x,e.x-t),this.rectBounds.min.y=Math.min(this.rectBounds.min.y,e.y-t),this.rectBounds.max.x=Math.max(this.rectBounds.max.x,e.x+t),this.rectBounds.max.y=Math.max(this.rectBounds.max.y,e.y+t))},e.prototype.calculateFactor=function(e){var t,n,o,r=1,l=this.mapObject.baseMapBounds,s=new a.a(this.mapObject.mapAreaRect.width,this.mapObject.mapAreaRect.height-5);if(l){var d=i.i(a.h)(l.latitude.min,l.longitude.min,null,e,this.mapObject),p=i.i(a.h)(l.latitude.max,l.longitude.max,null,e,this.mapObject);n=p.y-d.y,o=p.x-d.x,0!==n&&0!==o||(o=s.width/2,n=s.height)}else n=o=500;return t=n<s.height?parseFloat(Math.abs(100*Number(s.height/Number(n.toString()+"e+1"))).toString().split(".")[0])/10:s.height/n,r=o<s.width?parseFloat(Math.abs(100*Number(s.width/Number(o.toString()+"e+1"))).toString().split(".")[0])/10:s.width/o,Math.min(r,t)},e.prototype.translateLayerElements=function(e,t){var o;if(this.mapObject.translateType="layer",i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)){if(this.mapObject.isTileMap&&!i.i(n.isNullOrUndefined)(this.mapObject.scale))for(var r=0;r<e.childElementCount;r++)if(o=e.childNodes[r],!(o.id.indexOf("_Markers_Group")>-1||o.id.indexOf("_bubble_Group")>-1||o.id.indexOf("_dataLableIndex_Group")>-1||o.id.indexOf("_line_Group")>-1)){var l="scale( "+this.mapObject.scale+" ) translate( "+this.mapObject.translatePoint.x+" "+this.mapObject.translatePoint.y+" ) ";o.setAttribute("transform",l)}}else{var s=this.currentLayer.animationDuration,d=0!==s||i.i(n.isNullOrUndefined)(this.mapObject.zoomModule);this.mapObject.baseTranslatePoint=this.mapObject.zoomTranslatePoint;var p=void 0;p=this.mapObject.zoomSettings.zoomFactor>1&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)?i.i(a._25)(this.mapObject,this.currentLayer,d):i.i(a._24)(this.mapObject,this.currentLayer,d);var h=this.mapObject.previousScale=p.scale,c=this.mapObject.previousPoint=p.location;this.mapObject.baseTranslatePoint=this.mapObject.translatePoint=c,this.mapObject.baseScale=this.mapObject.scale=h;for(var u=0;u<e.childElementCount;u++)if(o=e.childNodes[u],!(o.id.indexOf("_Markers_Group")>-1||o.id.indexOf("_bubble_Group")>-1||o.id.indexOf("_dataLableIndex_Group")>-1)){var l="scale( "+h+" ) translate( "+c.x+" "+c.y+" ) ";o.setAttribute("transform",l),s>0&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)&&(p=this.mapObject.zoomSettings.zoomFactor>1?i.i(a._25)(this.mapObject,this.currentLayer):i.i(a._24)(this.mapObject,this.currentLayer),this.mapObject.scale=p.scale,this.mapObject.zoomTranslatePoint=this.mapObject.translatePoint=p.location)}}},e.prototype.calculateRectBounds=function(e){var t=this;Array.prototype.forEach.call(e,function(e,o){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var a=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,r=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates;switch(a.toLowerCase()){case"polygon":t.calculateRectBox(r[0]);break;case"multipolygon":r.map(function(e,i){t.calculateRectBox(e[0])});break;case"multilinestring":r.map(function(e,i){e.map(function(e,i){t.calculateRectBox(e,"multilinestring",0===i)})});break;case"linestring":r.map(function(e,i){t.calculateRectBox(e,"linestring",0===i)});break;case"point":t.calculateRectBox(r,"point");break;case"multipoint":r.map(function(e,i){t.calculateRectBox(e,"multipoint",0===i)})}}})},e.prototype.calculatePolygonBox=function(e,t,o){var r=this,l=[],s=this.mapObject.baseMapBounds;return e.map(function(e){var t=e[1],o=e[0];if(o>=s.longitude.min&&o<=s.longitude.max&&t>=s.latitude.min&&t<=s.latitude.max){var d=i.i(a.h)(t,o,r.currentFactor,r.currentLayer,r.mapObject);i.i(n.isNullOrUndefined)(r.rectBounds)?r.rectBounds={min:{x:d.x,y:d.y},max:{x:d.x,y:d.y}}:(r.rectBounds.min.x=Math.min(r.rectBounds.min.x,d.x),r.rectBounds.min.y=Math.min(r.rectBounds.min.y,d.y),r.rectBounds.max.x=Math.max(r.rectBounds.max.x,d.x),r.rectBounds.max.y=Math.max(r.rectBounds.max.y,d.y)),l.push({point:d,lat:t,lng:o})}}),l},e.prototype.calculateRectBox=function(e,t,o){var r=this;"linestring"!==t&&"multilinestring"!==t&&"point"!==t&&"multipoint"!==t?Array.prototype.forEach.call(e,function(e){i.i(n.isNullOrUndefined)(r.mapObject.baseMapBounds)?r.mapObject.baseMapBounds=new a.t({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(r.mapObject.baseMapBounds.latitude.min=Math.min(r.mapObject.baseMapBounds.latitude.min,e[1]),r.mapObject.baseMapBounds.latitude.max=Math.max(r.mapObject.baseMapBounds.latitude.max,e[1]),r.mapObject.baseMapBounds.longitude.min=Math.min(r.mapObject.baseMapBounds.longitude.min,e[0]),r.mapObject.baseMapBounds.longitude.max=Math.max(r.mapObject.baseMapBounds.longitude.max,e[0]))}):(o||"point"===t)&&i.i(n.isNullOrUndefined)(this.mapObject.baseMapBounds)?this.mapObject.baseMapBounds=new a.t({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(this.mapObject.baseMapBounds.latitude.min=Math.min(this.mapObject.baseMapBounds.latitude.min,e[1]),this.mapObject.baseMapBounds.latitude.max=Math.max(this.mapObject.baseMapBounds.latitude.max,e[1]),this.mapObject.baseMapBounds.longitude.min=Math.min(this.mapObject.baseMapBounds.longitude.min,e[0]),this.mapObject.baseMapBounds.longitude.max=Math.max(this.mapObject.baseMapBounds.longitude.max,e[0]))},e.prototype.generateTiles=function(e,t,o,a,s){var d=this.mapObject.locale,p=this.mapObject.availableSize;this.tiles=[];var h,c;h=c=Math.pow(2,e);var u=0,m=0;t.x+256*h<p.width&&(u=t.x>0?Math.ceil(t.x/256):0,m=t.x+256*h<p.width?Math.ceil((p.width-(t.x+256*h))/256):0),h+=u+m,"Pan"===o?(h=this.horizontalPanXCount>=h?this.horizontalPanXCount:h,this.horizontalPan=!1):(this.horizontalPanXCount=h,this.horizontalPan=!0);var g=this.mapObject.layers[this.mapObject.baseLayerIndex];this.urlTemplate=g.urlTemplate;var y=Math.min(c,(-t.y+p.height)/256+1),f=Math.min(h,(-t.x+p.width+256*m)/256+1),b=-(t.x+256*u+256)/256,v=-(t.y+256)/256;a=a||this.bing||this.mapObject.bingMap;for(var S=Math.round(b);S<Math.round(f);S++)for(var _=Math.round(v);_<Math.round(y);_++){var x=256*S+t.x,O=256*_+t.y;if(x>-256&&x<=p.width&&O>-256&&O<p.height&&_>=0){var M=S;S<0&&(M=M%c+c);var L=new r.C(M%c,_);if(L.left=Math.round(x),L.top=Math.round(O),"Bing"===g.layerType||a&&!i.i(n.isNullOrUndefined)(g.urlTemplate)&&""!==g.urlTemplate){var C=g.key;L.src=a.getBingMap(L,C,g.bingMapType,d,a.imageUrl,a.subDomains)}else L.src=this.urlTemplate.replace("level",e.toString()).replace("tileX",L.x.toString()).replace("tileY",L.y.toString());this.tiles.push(L)}}i.i(n.isNullOrUndefined)(o)||(o.indexOf("wheel")>1?(this.animateToZoomX=this.mapObject.availableSize.width/2-s.x-10,this.animateToZoomY=-s.y):(this.animateToZoomX=-10,this.animateToZoomY=10-(this.mapObject.availableSize.height/2+11.5)));for(var w=i.i(n.extend)([],this.tiles,[],!0),P=0,T=this.mapObject.layers;P<T.length;P++){var I=T[P];if("SubLayer"===I.type&&I.visible&&("Geometry"!==I.layerType&&"GoogleStaticMap"!==I.layerType||"Geometry"===I.layerType&&i.i(n.isNullOrUndefined)(I.shapeData)&&!i.i(n.isNullOrUndefined)(I.urlTemplate)&&""!==I.urlTemplate))for(var N=0,k=w;N<k.length;N++){var F=k[N],E=i.i(n.extend)({},F,{},!0);"Bing"===I.layerType?(a=new l.a(this.mapObject),E.src=a.getBingMap(E,I.key,I.bingMapType,d,a.imageUrl,a.subDomains)):E.src=I.urlTemplate.replace("level",e.toString()).replace("tileX",F.x.toString()).replace("tileY",F.y.toString()),this.tiles.push(E)}}(this.mapObject.previousScale!==this.mapObject.scale||this.mapObject.isReset||this.mapObject.isZoomByPosition||this.mapObject.zoomNotApplied)&&this.arrangeTiles(o,this.animateToZoomX,this.animateToZoomY)},e.prototype.arrangeTiles=function(e,t,o){var r,l=this,s=document.getElementById(this.mapObject.element.id+"_tile_parent"),d=document.getElementById(this.mapObject.element.id+"_tiles");i.i(n.isNullOrUndefined)(e)||"Pan"===e?r=0:(this.tileAnimation(e,t,o),r=this.mapObject.layersCollection[0].animationDuration),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?this.renderGoogleMap(this.mapObject.layers[0].key,this.mapObject.staticMapZoom):setTimeout(function(){s&&(s.style.zIndex="1"),d&&(d.style.zIndex="0");var t;!document.getElementById(l.mapObject.element.id+"_animated_tiles")&&s?(t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):"Pan"!==e&&d&&s?(d.appendChild(s.children[0]),l.mapObject.isAddLayer||i.i(n.isNullOrUndefined)(document.getElementById(l.mapObject.element.id+"_animated_tiles"))||(document.getElementById(l.mapObject.element.id+"_animated_tiles").id=l.mapObject.element.id+"_animated_tiles_old"),t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):t=s?s.children[0]:null;for(var o=0;o<l.tiles.length;o++){var r=l.tiles[o],p=null,h=l.mapObject.element.id;if("Pan"===e){var c=document.getElementById(h+"_tile_"+o),u=!1;i.i(n.isNullOrUndefined)(c)?(u=!0,c=i.i(n.createElement)("div",{id:h+"_tile_"+o}),p=i.i(n.createElement)("img")):(c.style.removeProperty("display"),p=c.children[0]),!u&&p&&p.src!==r.src&&(p.src=r.src),c.style.position="absolute",c.style.left=r.left+"px",c.style.top=r.top+"px",c.style.height=r.height+"px",c.style.width=r.width+"px",u&&(p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound")),c.appendChild(p),t.appendChild(c))}else{p=i.i(n.createElement)("img"),p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound"));var c=i.i(n.createElement)("div",{id:h+"_tile_"+o});c.style.position="absolute",c.style.left=r.left+"px",c.style.top=r.top+"px",c.style.height=r.height+"px",c.style.width=r.width+"px",c.appendChild(p),t&&t.appendChild(c)}o===l.tiles.length-1&&document.getElementById(l.mapObject.element.id+"_animated_tiles_old")&&i.i(a._22)(l.mapObject.element.id+"_animated_tiles_old")}if(!i.i(n.isNullOrUndefined)(l.mapObject.currentTiles))for(var m=l.tiles.length;m<t.childElementCount;m++){for(var g=!1,y=0;y<l.mapObject.currentTiles.childElementCount;y++)g||l.mapObject.currentTiles.children[y].id!==t.children[m].id||(g=!0);g?t.children[m].style.display="none":t.removeChild(t.children[m])}},r)},e.prototype.tileAnimation=function(e,t,o){var a=document.getElementById(this.mapObject.element.id+"_tile_parent"),r=document.getElementById(this.mapObject.element.id+"_animated_tiles"),l=document.getElementById(this.mapObject.element.id+"_tiles"),s="2";if(0===e.indexOf("ZoomOut")||"Reset"===e){for(l.style.zIndex="1",a.style.zIndex="0";l.childElementCount>=1;)l.removeChild(l.children[0]);t=0,o=document.getElementById(this.mapObject.element.id+"_tile_parent").getClientRects()[0].height/4,s=0===e.indexOf("ZoomOut")?"0.5":"0.2"}i.i(n.isNullOrUndefined)(r)||(r.style.transition=this.mapObject.layersCollection[0].animationDuration+"ms",r.style.transform="translate("+t+"px, "+o+"px) scale("+s+")")},e.prototype.renderGoogleMap=function(e,t){var o=this.mapObject;t=this.mapObject.tileZoomLevel;var r=256*Math.pow(2,t),l=o.mapAreaRect.width/2-r/2,s=o.mapAreaRect.height/2-r/2,d=new a.r(null,null),p=0,h=0,c=i.i(a.i)(d,t,{x:l,y:s},this.isMapCoordinates);o.zoomModule&&o.zoomSettings.enable&&(p=o.zoomModule.mouseDownLatLong.x-o.zoomModule.mouseMoveLatLong.x,h=o.zoomModule.mouseDownLatLong.y-o.zoomModule.mouseMoveLatLong.y);var u=o.pointToLatLong(c.x-p,c.y-h);o.centerPosition.latitude=u.latitude,o.centerPosition.longitude=u.longitude;var m,g;m=i.i(n.isNullOrUndefined)(parseInt(o.width,10))?parseInt(o.width,10)-22:Math.round(o.mapAreaRect.width),g=i.i(n.isNullOrUndefined)(parseInt(o.height,10))?parseInt(o.height,10)-22:Math.round(o.mapAreaRect.height);var y,f=m>640?(m-640)/2:0,b=g>640?(g-640)/2:0,v=o.layers[o.layers.length-1].staticMapType.toString().toLowerCase();y=o.centerPosition.latitude&&o.centerPosition.longitude?o.centerPosition.latitude.toString()+","+o.centerPosition.longitude.toString():"0,0";var S="https://maps.googleapis.com/maps/api/staticmap?size="+m+"x"+g+"&zoom="+t+"&center="+y+"&maptype="+v+"&key="+e;document.getElementById(this.mapObject.element.id+"_tile_parent").innerHTML='<div id="'+this.mapObject.element.id+'_StaticGoogleMap"style="position:absolute; left:'+f+"px; top:"+b+'px"><img src="'+S+'"alt="'+this.mapObject.getLocalizedLabel("ImageNotFound")+'"></div>'},e.prototype.panTileMap=function(e,t,o){this.mapObject.tileZoomLevel<=this.mapObject.tileZoomScale&&this.mapObject.initialCheck&&(this.mapObject.tileZoomLevel=this.mapObject.tileZoomScale);var r,l,s=this.mapObject.tileZoomLevel,d="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.layers.length-1].layerType?20:0,p=256*Math.pow(2,s);r=e/2-p/2,l=t/2-p/2;var h=i.i(a.i)(o,s,{x:r,y:l},this.isMapCoordinates);if(d=this.mapObject.zoomNotApplied?0:d,r-=h.x-e/2,l=l-(h.y-t/2)+d,this.mapObject.scale=Math.pow(2,s-1),(i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||0===this.mapObject.tileTranslatePoint.y&&0===this.mapObject.tileTranslatePoint.x||i.i(n.isNullOrUndefined)(this.mapObject.previousTileWidth)||i.i(n.isNullOrUndefined)(this.mapObject.previousTileHeight))&&(this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t),!i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)&&i.i(n.isNullOrUndefined)(o.x)&&(1===this.mapObject.zoomSettings.zoomFactor||this.mapObject.zoomSettings.zoomFactor!==s||!this.mapObject.defaultState)&&(e!==this.mapObject.previousTileWidth||t!==this.mapObject.previousTileHeight)){var c=r-(this.mapObject.previousTileWidth/2-p/2),u=l-(this.mapObject.previousTileHeight/2-p/2+d);this.mapObject.tileTranslatePoint.x=this.mapObject.tileTranslatePoint.x+c,this.mapObject.tileTranslatePoint.y=this.mapObject.tileTranslatePoint.y+u}return i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||this.mapObject.zoomNotApplied||(0===this.mapObject.tileTranslatePoint.x||this.mapObject.tileTranslatePoint.x===r||this.mapObject.centerPositionChanged||(r=this.mapObject.tileTranslatePoint.x),0===this.mapObject.tileTranslatePoint.y||this.mapObject.tileTranslatePoint.y===l||this.mapObject.centerPositionChanged||(l=this.mapObject.tileTranslatePoint.y)),this.mapObject.translatePoint=new a.r((r-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale,(l-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale),this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t,new a.r(r,l)},e.prototype.destroy=function(){this.mapObject=null,this.groupElements=[],this.layerObject=null,this.currentLayer=null,this.rectBounds=null,this.tiles=[],this.clipRectElement=null,this.tileSvgObject=null,this.ajaxModule=null,this.ajaxResponse=[],this.layerGroup=null,i.i(n.isNullOrUndefined)(this.bing)||this.bing.destroy(),this.bing=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.trackElements=[],this.sameMarkerData=[]}return e.prototype.markerRender=function(e,t,r,l,s){var d=this,p=0,h=0,c=0;e.translateType="marker";var u=e.layersCollection[r];this.markerSVGObject=e.renderer.createGroup({id:e.element.id+"_Markers_Group",class:"GroupElement"}),this.markerSVGObject.style.pointerEvents="auto";var m=i.i(o.createElement)("div",{id:e.element.id+"_LayerIndex_"+r+"_Markers_Template_Group",className:e.element.id+"_template"});m.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+e.mapAreaRect.y+"px;left:"+e.mapAreaRect.x+"px;height:"+e.mapAreaRect.height+"px;width:"+e.mapAreaRect.width+"px;",u.markerSettings.map(function(g,y){var f=g.dataSource;Array.prototype.forEach.call(f,function(b,v){e.markerNullCount=y>0&&0===v?0:e.markerNullCount;var S={cancel:!1,name:n.q,fill:g.fill,height:g.height,width:g.width,imageUrl:g.imageUrl,shape:g.shape,template:g.template,data:b,maps:e,marker:g,border:g.border,colorValuePath:g.colorValuePath,shapeValuePath:g.shapeValuePath,imageUrlValuePath:g.imageUrlValuePath};e.trigger("markerRendering",S,function(_){S=i.i(a.O)(S,b),S=i.i(a.P)(S,b);var x=i.i(o.isNullOrUndefined)(g.longitudeValuePath)?i.i(o.isNullOrUndefined)(b.longitude)?i.i(o.isNullOrUndefined)(b.Longitude)?null:parseFloat(b.Longitude):parseFloat(b.longitude):Number(i.i(a.N)(b,g.longitudeValuePath)),O=i.i(o.isNullOrUndefined)(g.latitudeValuePath)?i.i(o.isNullOrUndefined)(b.latitude)?i.i(o.isNullOrUndefined)(b.Latitude)?null:parseFloat(b.Latitude):parseFloat(b.latitude):Number(i.i(a.N)(b,g.latitudeValuePath)),M=g.offset;if(!S.cancel&&g.visible&&!i.i(o.isNullOrUndefined)(x)&&!i.i(o.isNullOrUndefined)(O)){var L=e.element.id+"_LayerIndex_"+r+"_MarkerIndex_"+y+"_dataIndex_"+v,C=e.isTileMap?i.i(n._21)(new n._43(x,O),l,e.tileTranslatePoint,!0):i.i(a.h)(O,x,l,u,e),w=0!==u.animationDuration||i.i(o.isNullOrUndefined)(e.zoomModule),P=e.isTileMap?"SubLayer"===u.type&&i.i(o.isNullOrUndefined)(e.zoomModule)?C=i.i(n._21)(new n._43(x,O),e.tileZoomLevel,e.tileTranslatePoint,!0):new Object:!i.i(o.isNullOrUndefined)(e.zoomModule)&&e.zoomSettings.zoomFactor>1?i.i(a._25)(e,u,w):i.i(a._24)(e,u,w),T="AddMarker"===s?e.scale:P.scale,I="AddMarker"===s?e.translatePoint:P.location;!S.template||isNaN(C.x)||isNaN(C.y)?S.template||isNaN(C.x)||isNaN(C.y)||(p++,i.i(a.T)(S,g,f,v,C,I,L,M,T,e,d.markerSVGObject)):(c++,i.i(a.U)(S,void 0,L,b,y,m,C,I,T,M,e),e.renderReactTemplates())}h+=isNaN(O)||isNaN(x)?1:0,c+=S.cancel?1:0,p+=S.cancel?1:0,e.markerNullCount=i.i(o.isNullOrUndefined)(x)||i.i(o.isNullOrUndefined)(O)?e.markerNullCount+1:e.markerNullCount;var N=f.length-e.markerNullCount;d.markerSVGObject.childElementCount===N-c-h&&"Template"!==s&&(t.appendChild(d.markerSVGObject),u.markerClusterSettings.allowClustering&&(e.svgObject.appendChild(d.markerSVGObject),e.element.appendChild(e.svgObject),("OSM"===u.layerType||-1!==u.urlTemplate.indexOf("openstreetmap")&&i.i(o.isNullOrUndefined)(u.shapeData))&&e.zoomSettings.enable?t.appendChild(d.markerSVGObject):i.i(a.Q)(u,d.markerSVGObject,e,r,d.markerSVGObject,t,!0,!1),e.renderReactTemplates())),m.childElementCount===N-p-h&&i.i(a._27)(e.element.id+"_Secondary_Element")&&(i.i(a._27)(e.element.id+"_Secondary_Element").appendChild(m),e.checkInitialRender&&u.markerClusterSettings.allowClustering&&(i.i(a.Q)(u,m,e,r,d.markerSVGObject,t,!1,!1),e.renderReactTemplates()))})})})},e.prototype.calculateIndividualLayerMarkerZoomLevel=function(e,t,n){var o,r,l=Math.abs(this.maps.baseMapBounds.latitude.max-this.maps.baseMapBounds.latitude.min),s=Math.abs(this.maps.baseMapBounds.longitude.max-this.maps.baseMapBounds.longitude.min);o=Math.floor(Math.log(t/l)),o=o>n?n:o,r=Math.floor(Math.log(e/s)),r=r>n?n:r;var d=Math.min(o,r),p=Math.min(d,n-1);return this.maps.isTileMap||i.i(a._61)(p,this.maps),p},e.prototype.calculateZoomCenterPositionAndFactor=function(e){if(!i.i(o.isNullOrUndefined)(this.maps))if(this.maps.zoomSettings.shouldZoomInitially&&this.maps.markerModule){var t,n,r,l,s=void 0,d=void 0,p=void 0,h=this.maps.zoomSettings.maxZoom,c=this.maps.mapAreaRect.width,u=this.maps.mapAreaRect.height;if(this.maps.markerZoomedState=this.maps.markerZoomedState?this.maps.markerZoomedState:i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?!this.maps.markerZoomedState:this.maps.markerZoomFactor>1?this.maps.markerZoomedState:!this.maps.markerZoomedState,this.maps.defaultState=this.maps.markerZoomedState?!this.maps.markerZoomedState:this.maps.defaultState,Array.prototype.forEach.call(e,function(e){0!==e.markerSettings.length&&Array.prototype.forEach.call(e.markerSettings,function(e){var a=e.dataSource;Array.prototype.forEach.call(a,function(e,a){var s=i.i(o.isNullOrUndefined)(e.latitude)?i.i(o.isNullOrUndefined)(e.Latitude)?null:parseFloat(e.Latitude):parseFloat(e.latitude),d=i.i(o.isNullOrUndefined)(e.longitude)?i.i(o.isNullOrUndefined)(e.Longitude)?null:parseFloat(e.Longitude):parseFloat(e.longitude);t=i.i(o.isNullOrUndefined)(t)&&0===a?d:t,n=i.i(o.isNullOrUndefined)(n)&&0===a?s:n,r=i.i(o.isNullOrUndefined)(r)&&0===a?s:r,l=i.i(o.isNullOrUndefined)(l)&&0===a?d:l,t>d&&(t=d),r>s&&(r=s),l<d&&(l=d),n<s&&(n=s)})})}),!(i.i(o.isNullOrUndefined)(r)||i.i(o.isNullOrUndefined)(t)||i.i(o.isNullOrUndefined)(l)||i.i(o.isNullOrUndefined)(n))){d=(r+n)/2,p=(t+l)/2,this.maps.markerCenterLatitude=d,this.maps.markerCenterLongitude=p,(i.i(o.isNullOrUndefined)(this.maps.markerZoomCenterPoint)||this.maps.markerZoomedState)&&(this.maps.markerZoomCenterPoint={latitude:d,longitude:p});var m=void 0;this.maps.isTileMap||0===this.maps.baseMapRectBounds.min.x?(s=i.i(a._62)(r,n,t,l,c,u,this.maps),this.maps.isTileMap?m=i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?s:i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue>1&&1!==this.maps.markerZoomFactor?this.maps.mapScaleValue:s:(m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:1!==Math.floor(this.maps.scale)&&this.maps.mapScaleValue!==s&&i.i(o.isNullOrUndefined)(this.maps.shouldZoomCurrentFactor)?this.maps.mapScaleValue:s)!==this.maps.mapScaleValue||1!==this.maps.markerZoomFactor&&1!==this.maps.mapScaleValue||this.maps.enablePersistence||(m=s)):(s=this.calculateIndividualLayerMarkerZoomLevel(c,u,h),m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue!==s?this.maps.mapScaleValue:s),this.maps.markerZoomFactor=m}}else this.maps.markerZoomedState=!1,this.maps.markerZoomFactor>1&&(this.maps.markerCenterLatitude=null,this.maps.markerCenterLongitude=null,this.maps.markerZoomFactor=1,this.maps.enablePersistence||(this.maps.mapScaleValue=1)),this.maps.isTileMap&&!this.maps.enablePersistence&&this.maps.mapScaleValue<=1&&(this.maps.tileZoomLevel=0===this.maps.mapScaleValue?this.maps.isZoomByPosition?this.maps.tileZoomLevel:1:this.maps.mapScaleValue,1===this.maps.mapScaleValue&&1===this.maps.markerZoomFactor&&(this.maps.tileTranslatePoint.x=0,this.maps.tileTranslatePoint.y=0))},e.prototype.markerClick=function(e){var t=e.target.id;if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var a=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.s,data:a.data,maps:this.maps,marker:a.marker,target:t,x:e.clientX,y:e.clientY,latitude:a.data.latitude||a.data.Latitude,longitude:a.data.longitude||a.data.Longitude,value:a.data.name};this.maps.trigger(n.s,r)}}},e.prototype.markerClusterClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var r=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(r)){r.clusterCollection.length>0&&this.maps.markerClusterExpand&&(i.i(a._31)(this.maps.element.id+"_mapsTooltip")&&this.maps.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._22)(this.maps.element.id+"_mapsTooltip"),this.sameMarkerData.length>0&&!this.maps.markerClusterExpandCheck?(this.maps.markerClusterExpandCheck=!0,i.i(a.R)(this.sameMarkerData,this.maps,this.markerSVGObject)):(this.sameMarkerData=r.clusterCollection,this.maps.markerClusterExpandCheck=!1,i.i(a.S)(this.sameMarkerData,this.maps,this.markerSVGObject,!0)));var l={cancel:!1,name:n.t,data:r,maps:this.maps,target:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,markerClusterCollection:r.markCollection};this.maps.trigger(n.t,l)}}},e.prototype.getMarker=function(e){var t,i,n=e.split("_LayerIndex_"),o=parseInt(n[1].split("_")[0],10),a=this.maps.layers[o],r=[],l=[];if(this.maps.markerClusterExpand=a.markerClusterSettings.allowClusterExpand,e.indexOf("_MarkerIndex_")>-1){var s=parseInt(n[1].split("_MarkerIndex_")[1].split("_")[0],10),d=parseInt(n[1].split("_dataIndex_")[1].split("_")[0],10);if(i=a.markerSettings[s],!isNaN(s)){t=i.dataSource[d];var p=[];if(!i.template&&e.indexOf("_cluster_")>-1&&this.maps.layers[o].markerClusterSettings.allowClusterExpand&&Array.prototype.forEach.call(i.dataSource,function(e,i){e.latitude===t.latitude&&e.longitude===t.longitude&&p.push({data:t,index:i})}),e.indexOf("_cluster_")>-1){var h=!1,c=document.getElementById(e.indexOf("_datalabel_")>-1?"Balloon"===a.markerClusterSettings.shape?e.split("_datalabel_")[0]+"_Group":e.split("_datalabel_")[0]:"Balloon"===a.markerClusterSettings.shape?e+"_Group":e),u="Balloon"===a.markerClusterSettings.shape?c.children[0].innerHTML.split(",").map(Number):c.innerHTML.split(",").map(Number);p=[];for(var m=0,g=u;m<g.length;m++){var y=g[m];p.push({data:i.dataSource[y],index:y}),r.push(i.dataSource[y])}h=!1,l.push({data:p,layerIndex:o,markerIndex:s,dataIndex:d,targetClusterIndex:+(e.split("_cluster_")[1].indexOf("_datalabel_")>-1?e.split("_cluster_")[1].split("_datalabel_")[0]:e.split("_cluster_")[1]),isClusterSame:h})}return{marker:i,data:t,clusterCollection:l,markCollection:r}}}return null},e.prototype.markerMove=function(e){var t=e.target.id;if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var a=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.u,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.u,r)}}},e.prototype.markerClusterMouseMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var a=this.getMarker(t);if(this.maps.markerClusterExpand&&(e.target.style.cursor="pointer"),!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.v,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.v,r)}}},e.prototype.getModuleName=function(){return"Marker"},e.prototype.destroy=function(){this.maps=null,this.trackElements=[],this.markerSVGObject=null,this.sameMarkerData=[]},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.map=e}return e.prototype.renderAnnotationElements=function(){var e=this,t=this.map.element.id+"_Secondary_Element",n=i.i(o.createElement)("div",{id:this.map.element.id+"_Annotations_Group"});n.style.position="absolute",n.style.top="0px",n.style.left="0px",this.map.annotations.map(function(t,i){null!==t.content&&e.createAnnotationTemplate(n,t,i)}),n.childElementCount>0&&!i.i(o.isNullOrUndefined)(i.i(a._27)(t))&&i.i(a._27)(t).appendChild(n),this.map.renderReactTemplates()},e.prototype.createAnnotationTemplate=function(e,t,r){var l,s,d,p,h=this,c=this.map,u=c.availableSize,m=(c.element.id,i.i(o.createElement)("div",{id:c.element.id+"_Annotation_"+r}));m.style.cssText="position: absolute; z-index:"+t.zIndex+";";var g={cancel:!1,name:n.C,content:t.content,annotation:t};this.map.trigger(n.C,g,function(e){if(!g.cancel)if((d=i.i(a._30)(g.content,h.map))&&d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r).length){p=Array.prototype.slice.call(d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r));for(var t=p.length,n=0;n<t;n++)m.appendChild(p[n])}else m.appendChild(i.i(o.createElement)("div",{innerHTML:g.content}))});var y=i.i(a._48)(m.cloneNode(!0),c.element),f=c.element.getBoundingClientRect(),b=c.svgObject.getBoundingClientRect();l=Math.abs(b.left-f.left),s=Math.abs(b.top-f.top);var v=t.x.indexOf("%")>-1?u.width/100*parseFloat(t.x):parseFloat(t.x),S=t.y.indexOf("%")>-1?u.height/100*parseFloat(t.y):parseFloat(t.y);switch(l="None"===t.horizontalAlignment?l+v:l,s="None"===t.verticalAlignment?s+S:s,t.verticalAlignment){case"Near":s+=S;break;case"Center":s=s+S+(b.height/2-y.height/2);break;case"Far":s=s+b.height+S-y.height}switch(t.horizontalAlignment){case"Near":l+=v;break;case"Center":l=l+v+(b.width/2-y.width/2);break;case"Far":l=l+b.width+v-y.width}m.style.left=l+"px",m.style.top=s+"px",e.appendChild(m)},e.prototype.getModuleName=function(){return"Annotations"},e.prototype.destroy=function(){this.map=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.id="",this.maps=e,this.bubbleCollection=[]}return e.prototype.renderBubble=function(e,t,r,l,s,d,p,h,c,u){var m,g,y=this,f=h.layerData,b=e.colorValuePath,v=i.i(o.isNullOrUndefined)(b)?t[b]:b.indexOf(".")>-1?i.i(a.N)(t,e.colorValuePath):t[b],S=i.i(o.isNullOrUndefined)(b)?Number(t[b]):b.indexOf(".")>-1?Number(i.i(a.N)(t,e.colorValuePath)):Number(t[b]),_=i.i(o.isNullOrUndefined)(e.valuePath)?Number(t[e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.N)(t,e.valuePath)):Number(t[e.valuePath]);if(isNaN(_)&&isNaN(S)&&i.i(o.isNullOrUndefined)(v))return null;var x=i.i(a._17)(e.minRadius,e.maxRadius,_,l.min,l.max),O=new n._133(this.maps),M=O.getColorByValue(e.colorMapping,S,v);g="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.fill)?r:M.fill,m="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.opacity)?e.opacity:M.opacity;var L=[[]];this.maps.translateType="bubble";for(var C=0,w=0,P=0,T=0,I=f.length;T<I;T++){var N=f[T];N=N.property;var k=i.i(a._15)(t[h.shapeDataPath],h.shapePropertyPath,N);if((!i.i(o.isNullOrUndefined)(t[h.shapeDataPath])&&isNaN(t[h.shapeDataPath])?t[h.shapeDataPath].toLowerCase():t[h.shapeDataPath])===(!i.i(o.isNullOrUndefined)(N[k])&&isNaN(N[k])?N[k].toLowerCase():N[k])&&"LineString"!==f[T].type&&"MultiLineString"!==f[T].type&&"Point"!==f[T].type&&"MultiPoint"!==f[T].type)if(f[T]._isMultiPolygon)for(var F=f[T],E=0;E<F.length;E++)L.push(this.getPoints(F[E],[])),P=L[L.length-1].length,w<P&&(w=P,C=L.length-1);else L.push(this.getPoints(f[T],[])),P=L[L.length-1].length,w<P&&(w=P,C=L.length-1)}var A,z,B=this.maps.projectionType,j={color:e.border.color,opacity:e.border.opacity,width:e.border.width},U=i.i(a._18)(L[C],B,h.geometryType);if(e.visible){if(i.i(o.isNullOrUndefined)(U)){var R=L.length-1;if(!L[R].x||!L[R].y)return;z={cancel:!1,name:n.x,border:j,cx:L[R].x,cy:L[R].y,data:t,fill:g,maps:this.maps,radius:x}}else A="Mercator"===this.maps.projectionType?U.y:-U.y,z={cancel:!1,name:n.x,border:j,cx:U.x,cy:A,data:t,fill:g,maps:this.maps,radius:x};this.maps.trigger("bubbleRendering",z,function(t){if(!z.cancel){var n;if(z.border.opacity=i.i(o.isNullOrUndefined)(z.border.opacity)?m:z.border.opacity,"Circle"===e.bubbleType){var r=new a.z(u,z.fill,z.border,m,0,0,z.radius,null);n=i.i(a.Y)(y.maps,r,c)}else{var l="Mercator"===y.maps.projectionType?z.cy-x:z.cy+x,g=new a.y(u,z.fill,z.border,m,new a.F(0,0,2*x,2*x),2,2);z.cx-=x,z.cy=l,n=i.i(a.Z)(y.maps,g,c)}i.i(a.V)(y.maps.selectedBubbleElementId,y.maps.bubbleSelectionClass,n,"BubbleselectionMapStyle"),y.bubbleCollection.push({LayerIndex:p,BubbleIndex:s,DataIndex:d,element:n,center:{x:z.cx,y:z.cy}});var f,b=0!==h.animationDuration||i.i(o.isNullOrUndefined)(y.maps.zoomModule);f=y.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(y.maps.zoomModule)&&!y.maps.isTileMap?i.i(a._25)(y.maps,h,b):i.i(a._24)(y.maps,h,b);var v=e.dataSource,S=f.scale,_=f.location,O=new a.E(y.maps.isTileMap?z.cx:(z.cx+_.x)*S,y.maps.isTileMap?z.cy:(z.cy+_.y)*S);n.setAttribute("transform","translate( "+O.x+" "+O.y+" )");var M=v.length-1===d?"bubble":null;"Square"===e.bubbleType?(O.x+=x,O.y+=x*("Mercator"===y.maps.projectionType?1:-1)):x=0,e.animationDuration>0&&i.i(a._41)(n,e.animationDelay,e.animationDuration,O,y.maps,M,x)}})}},e.prototype.getPoints=function(e,t){return i.i(o.isNullOrUndefined)(e.map)?t=e.point:e.map(function(e){t.push(new a.r(e.point.x,e.point.y))}),t},e.prototype.bubbleClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.y,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.y,r)}}},e.prototype.getbubble=function(e){var t=e.split("_LayerIndex_"),i=parseInt(t[1].split("_")[0],10),n=this.maps.layers[i];if(e.indexOf("_BubbleIndex_")>-1){var o=parseInt(t[1].split("_BubbleIndex_")[1],10),a=parseInt(t[1].split("_BubbleIndex_")[1].split("_dataIndex_")[1],10);if(!isNaN(o))return n.bubbleSettings[o].dataSource[a]}return null},e.prototype.bubbleMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.z,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.z,r)}}},e.prototype.getModuleName=function(){return"Bubble"},e.prototype.destroy=function(){this.bubbleCollection=[]},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(0),o=i(1),a=(i.n(o),i(3)),r=function(){function e(e){this.value={rightWidth:0,leftWidth:0,heightTop:0,heightBottom:0},this.maps=e,this.dataLabelCollections=[]}return e.prototype.getDataLabel=function(e,t,n,a){for(var r,l,s=0;s<e.length;s++){var d=e[s],p=!i.i(o.isNullOrUndefined)(d[a])&&isNaN(d[a])&&"string"==typeof d[a]?d[a].toLowerCase():d[a];if(n=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toString(),l=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toLowerCase(),p===l){r=d;break}}return r},e.prototype.renderLabel=function(e,t,r,l,s,d,p,h){var c,u,m,g,y,f,b,v,S=this,_=e.dataLabelSettings,x=e.dataLabelSettings.textStyle,O=e.dataLabelSettings,M=e.dataLabelSettings.labelPath,L=[[]],C=0,w=0,P=r,T="",I=0,N=!1,k=r.properties,F=this.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+p+"_LabelIndex_"+p,E=new n.r(0,0),A=l[p];x.fontFamily="material"!==this.maps.theme.toLowerCase()?this.maps.themeStyle.labelFontFamily:x.fontFamily,r=A.property;var z,B,j="[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)?e.shapePropertyPath:[e.shapePropertyPath],U=0!==e.animationDuration||i.i(o.isNullOrUndefined)(this.maps.zoomModule),R=this.maps.isTileMap?new Object:this.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(this.maps.zoomModule)?i.i(n._25)(this.maps,e,U):i.i(n._24)(this.maps,e,U),D=this.maps.isTileMap?this.maps.scale:R.scale,Z=this.maps.isTileMap?this.maps.translatePoint:R.location,H=this.maps.zoomTranslatePoint,V=i.i(o.isNullOrUndefined)(this.maps.scale)?1:Math.floor(this.maps.scale),G=this.maps.zoomSettings.enable?!i.i(o.isNullOrUndefined)(this.maps.zoomShapeCollection)&&this.maps.zoomShapeCollection.length>0&&!this.maps.isAddLayer:this.maps.zoomSettings.enable;this.maps.translateType="labels";for(var W=0;W<j.length&&!(k[j[W]]&&(z=j[W],g=this.getDataLabel(e.dataSource,e.shapeDataPath,P.properties[z],e.shapeDataPath)));W++);if(g=this.getDataLabel(e.dataSource,e.shapeDataPath,P.properties[z],e.shapeDataPath),!i.i(o.isNullOrUndefined)(A.property))if(L=[[]],l[p]._isMultiPolygon||"Point"===l[p].type||"MultiPoint"===l[p].type){if("Point"!==l[p].type&&"MultiPoint"!==l[p].type)for(var q=l[p],W=0;W<q.length;W++)L.push(this.getPoint(q[W],[])),I=L[L.length-1].length,w<I&&(w=I,C=L.length-1)}else L.push(this.getPoint(l[p],[])),I=L[L.length-1].length,w<I&&(w=I,C=L.length-1);if(T=i.i(o.isNullOrUndefined)(g)?P.properties[M]:i.i(o.isNullOrUndefined)(g[M])?g[e.shapeDataPath]:g[M].toString(),"[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)&&i.i(o.isNullOrUndefined)(T)&&0===e.dataSource.length)for(var X=0;X<e.shapePropertyPath.length;X++)if(P.properties[e.shapePropertyPath[X]]){T=P.properties[e.shapePropertyPath[X]];break}i.i(o.isNullOrUndefined)(T)&&""!==e.dataLabelSettings.template&&0===e.dataSource.length&&(T=P.properties[e.shapePropertyPath]);var Y=T,J=this.maps.projectionType;f=i.i(n._18)(L[C],J,e.geometryType);var Q=f;if(!i.i(o.isNullOrUndefined)(T)&&!i.i(o.isNullOrUndefined)(f)){if(G&&V>1&&!this.maps.zoomNotApplied&&""===_.template){if(t>0)for(var K=0;K<this.maps.zoomLabelPositions.length;K++)if(this.maps.zoomLabelPositions[K].dataLabelText===T){y=p,p=K,N=!0;break}b=f.x,v=f.y,f.x=(f.x+H.x)*D,f.y=(f.y+H.y)*D}f.y="Mercator"===this.maps.projectionType||"Normal"===e.geometryType?f.y:-f.y,i.i(o.isNullOrUndefined)(this.maps.format)||isNaN(parseFloat(T))||this.maps.useGroupingSeparator&&(T=i.i(n._29)(this.maps,parseFloat(T)),i.i(o.isNullOrUndefined)(g)||(g[M]=T));var $={name:a.v,maps:this.maps,cancel:!1,border:{color:_.border.color,width:_.border.width,opacity:_.border.opacity},datalabel:_,fill:_.fill,template:_.template,text:T,offsetX:0,offsetY:0};this.maps.trigger("dataLabelRendering",$,function(a){if(!$.cancel){var r=[],l=G&&V>1&&!S.maps.zoomNotApplied&&S.maps.zoomShapeCollection.length>p?S.maps.zoomShapeCollection[p].width:(f.rightMax.x-f.leftMax.x)*D;i.i(o.isNullOrUndefined)(S.maps.dataLabelShape)||(B=Q.rightMax.x-Q.leftMax.x,S.maps.dataLabelShape.push(B)),$.text===T||$.cancel||(T=$.text);var _=i.i(n.u)(T,x),M=T,w=_,I=f.y-_.height/4,k=f.y+_.height/4,A=(f.y+Z.y)*D-_.height/4,z=(f.y+Z.y)*D+_.height/4;if(r=i.i(n._16)(L[C],I,k),r.length>5&&"MultiPolygon"!==P.geometry.type&&"MultiPolygon"!==P.type){var j=i.i(n._18)(r,J,e.geometryType);G&&V>1&&!S.maps.zoomNotApplied&&""===$.template&&(j.x=(S.maps.zoomLabelPositions[p].location.x+H.x)*D,j.y=(S.maps.zoomLabelPositions[p].location.y+H.y)*D),b=j.x,f.x=j.x,l=G&&V>1&&!S.maps.zoomNotApplied&&S.maps.zoomShapeCollection.length>p?S.maps.zoomShapeCollection[p].width:(j.rightMax.x-j.leftMax.x)*D}var U=(f.x+Z.x)*D+_.width/2,R=(f.x+Z.x)*D-_.width/2;S.value[p]={rightWidth:U,leftWidth:R,heightTop:A,heightBottom:z};var W;if(""!==$.template){c=i.i(n._30)($.template,S.maps);var q=c?c(i.i(o.isNullOrUndefined)(g)?P.properties:g,S.maps,$.template,S.maps.element.id+"_LabelTemplate",!1):document.createElement("div");q.innerHTML=c?"":$.template,W=i.i(n.L)(q,F,i.i(o.isNullOrUndefined)(g)?P.properties:g,p,S.maps),S.maps.isTileMap?(W.style.left=(f.x+Z.x)*D-_.width/2+"px",W.style.top=(f.y+Z.y)*D-_.height+"px"):(W.style.left=Math.abs(S.maps.baseMapRectBounds.min.x-f.x)*D+a.offsetX+"px",W.style.top=Math.abs(S.maps.baseMapRectBounds.min.y-f.y)*D+a.offsetY+"px"),d.appendChild(W)}else{if("Trim"===O.smartLabelMode){var X="number"==typeof T?T.toString():T;M=i.i(n._20)(l,X,x),w=i.i(n.u)(M,x),u=new n.v(F,E.x,E.y,"middle",M,"","")}if("None"===O.smartLabelMode&&(u=new n.v(F,E.x,E.y,"middle",T,"","")),"Hide"===O.smartLabelMode&&(T=l>=_.width?T:"",u=new n.v(F,E.x,E.y,"middle",T,"","")),T=u.text,"Hide"===O.intersectionAction){for(var K=0;K<h.length;K++)if(!i.i(o.isNullOrUndefined)(h[K])&&!(S.value[p].leftWidth>h[K].rightWidth||S.value[p].rightWidth<h[K].leftWidth||S.value[p].heightTop>h[K].heightBottom||S.value[p].heightBottom<h[K].heightTop)){T="";break}h.push(S.value[p]),u=new n.v(F,E.x,E.y,"middle",T,"","")}var ee=void 0;if("Trim"===O.intersectionAction){for(var te=0;te<h.length;te++)if(!i.i(o.isNullOrUndefined)(h[te]))if(h[te].rightWidth<S.value[p].leftWidth||h[te].leftWidth>S.value[p].rightWidth||h[te].heightBottom<S.value[p].heightTop||h[te].heightTop>S.value[p].heightBottom)M=T,ee=0;else{if(S.value[p].leftWidth>h[te].leftWidth){l=h[te].rightWidth-S.value[p].leftWidth,ee=l-(S.value[p].rightWidth-S.value[p].leftWidth),M=i.i(n._20)(ee,T,x);break}if(S.value[p].leftWidth<h[te].leftWidth){l=S.value[p].rightWidth-h[te].leftWidth,ee=Math.abs(l-(S.value[p].rightWidth-S.value[p].leftWidth)),M=i.i(n._20)(ee,T,x);break}}w=i.i(n.u)(M,x),h.push(S.value[p]),u=new n.v(F,E.x,E.y,"middle",M,"","")}if("None"===O.intersectionAction&&(u=new n.v(F,E.x,E.y,"middle",T,"","")),M.length>1){var ie=$.border;if(ie.width>1){var ne=$.fill,oe=O.opacity,ae=O.rx,re=O.ry,le=void 0,se=void 0;G&&V>1&&!S.maps.zoomNotApplied?(le=f.x-_.width/2,se=f.y-_.height/2-5):(le=(f.x+Z.x)*D-_.width/2,se=(f.y+Z.y)*D-_.height/2),ie.opacity=i.i(o.isNullOrUndefined)(ie.opacity)?oe:ie.opacity;var de=new n.y(S.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+p+"_rectIndex_"+p,ne,ie,oe,new n.F(le+a.offsetX,se+a.offsetY,_.width,_.height),ae,re),pe=S.maps.renderer.drawRectangle(de);s.appendChild(pe)}}m=i.i(n.H)(u,x,x.color||S.maps.themeStyle.dataLabelFontColor,s),G&&V>1&&!S.maps.zoomNotApplied?(m.setAttribute("transform","translate( "+(f.x+a.offsetX)+" "+(f.y+a.offsetY)+" )"),f.x=b,f.y=v):m.setAttribute("transform","translate( "+((f.x+Z.x)*D+a.offsetX)+" "+((f.y+Z.y)*D+w.height/4+a.offsetY)+" )"),s.appendChild(m)}S.dataLabelCollections.push({location:{x:f.x+a.offsetX,y:f.y+a.offsetY},element:i.i(o.isNullOrUndefined)(W)?m:W,layerIndex:t,shapeIndex:N?y:p,labelIndex:N?y:p,dataLabelText:Y}),d.childElementCount>0&&!S.maps.element.contains(d)&&(document.getElementById(S.maps.element.id+"_Secondary_Element").appendChild(d),S.maps.renderReactTemplates())}})}},e.prototype.getPoint=function(e,t){return"MultiLineString"===e.type?e.map(function(e){e.map(function(e){t.push(new n.r(e.point.x,e.point.y))})}):e.map(function(e){t.push(new n.r(e.point.x,e.point.y))}),t},e.prototype.getModuleName=function(){return"DataLabel"},e.prototype.destroy=function(){this.dataLabelCollections=[],this.value=null,this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.legendBorderRect=new o.F(0,0,0,0),this.initialMapAreaRect=new o.F(0,0,0,0),this.legendTotalRect=new o.F(0,0,0,0),this.totalPages=[],this.page=0,this.currentPage=0,this.legendItemRect=new o.F(0,0,0,0),this.heightIncrement=0,this.widthIncrement=0,this.textMaxWidth=0,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.shapeToggled=!0,this.legendElement=null,this.maps=e,this.addEventListener()}return e.prototype.renderLegend=function(){this.legendRenderingCollections=[],this.legendCollection=[],this.totalPages=[],this.widthIncrement=0,this.heightIncrement=0,this.defsElement=this.maps.renderer.createDefs(),this.maps.svgObject.appendChild(this.defsElement),this.initialMapAreaRect=this.maps.mapAreaRect,this.calculateLegendBounds(),this.drawLegend()},e.prototype.calculateLegendBounds=function(){var e=this,t=this.maps,r=t.legendSettings;this.legendCollection=[];var l=t.mapAreaRect.y;if(this.legendRenderingCollections=[],Array.prototype.forEach.call(t.layersCollection,function(t,n){if(!i.i(a.isNullOrUndefined)(t.shapeData)){var o=t.shapeData.features,l=t.shapeDataPath,s=t.shapePropertyPath,d=t.dataSource,p=void 0,h=void 0;if("Layers"===r.type&&t.visible)p=t.shapeSettings.colorValuePath,h=t.shapeSettings.colorMapping,e.getLegends(n,o,h,d,l,p,s);else if("Bubbles"===r.type)for(var c=0,u=t.bubbleSettings;c<u.length;c++){var m=u[c];m.visible&&(p=m.colorValuePath,h=m.colorMapping,d=m.dataSource,e.getLegends(n,o,h,d,l,p,s))}}"Markers"===r.type&&e.getMarkersLegendCollections(n,t.markerSettings)}),this.legendCollection.length>0)for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s],p={name:n.B,cancel:!1,fill:d.fill,shape:r.shape,shapeBorder:r.shapeBorder,text:"number"==typeof d.text?d.text.toString():d.text};t.trigger("legendRendering",p),d.fill=p.fill,d.shape=p.shape,d.shapeBorder=p.shapeBorder,d.text=p.text,p.cancel&&(this.legendCollection.splice(s,1),s--)}var h=t.legendSettings.title.text,c=t.legendSettings.titleStyle;if(this.legendCollection.length>0){var u,m,g=r.mode,y=0,f=0,b=0,v=0,S=r.shapePadding,_=r.shapeHeight,x=r.shapeWidth,O=[],M=[],L=r.position,C=r.labelDisplayMode,w="None"===r.orientation?"Top"===L||"Bottom"===L?"Horizontal":"Vertical":r.orientation,P=r.width.length>1?r.width.indexOf("%")>-1?t.availableSize.width/100*parseInt(r.width,10):parseInt(r.width,10):null,T=r.height.length>1?r.height.indexOf("%")>-1?t.availableSize.height/100*parseInt(r.height,10):parseInt(r.height,10):null,I=0,N=0,k=i.i(o.u)(h,c);if("Interactive"===g){var F=r.textStyle,E=this.legendCollection.length,A="Horizontal"===w?i.i(a.isNullOrUndefined)(P)?t.mapAreaRect.width/E:P/E:i.i(a.isNullOrUndefined)(P)?25:P,z="Horizontal"===w?i.i(a.isNullOrUndefined)(T)?25:T:i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height/E:T/E;I=0,N=k.height+10;for(var B=r.labelPosition,j=0,U=0,R=0,D=0,Z=0,H=0,s=0;s<this.legendCollection.length;s++){I="Horizontal"===w?I+A:I,N="Horizontal"===w?N:N+z;var V=this.legendCollection[s].text,G=new o.a(0,0);"None"===C?G=i.i(o.u)(V,F):"Trim"===C?(V=i.i(o._20)("Horizontal"===w?A:z,V,F),G=i.i(o.u)(V,F)):V="",Z=Math.max(Z,G.height),H=Math.max(H,G.width),G.width>0&&G.height>0&&("Horizontal"===w?(j=I+A/2,U="After"===B?N+z+G.height/2+10:N-10):(j="After"===B?I-G.width/2-10:I+A+G.width/2+10,U=N+z/2+G.height/4)),0===s?(R="Horizontal"===w?I:"After"===B?j-G.width/2:I,D="Horizontal"===w?"After"===B?N:U-G.height/2:N,1===this.legendCollection.length&&(P="Horizontal"===w?Math.abs(I+A-R):A+H+10,T="Horizontal"===w?z+Z/2+10:Math.abs(N+z-D))):s===this.legendCollection.length-1&&(P="Horizontal"===w?Math.abs(I+A-R):A+H+10,T="Horizontal"===w?z+Z/2+10:Math.abs(N+z-D)),this.legendRenderingCollections.push({fill:this.legendCollection[s].fill,x:I,y:N,width:A,height:z,text:V,textX:j,textY:U,textWidth:G.width,textHeight:G.height,shapeBorder:this.legendCollection[s].shapeBorder})}1===this.legendCollection.length&&(T=z,P=A),this.legendItemRect={x:R,y:D,width:P,height:T}}else{P=i.i(a.isNullOrUndefined)(P)?t.mapAreaRect.width:P,T=i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height:T;var W=0;this.page=0;for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s];i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]});var q=i.i(o.u)(d.text,r.textStyle);if(this.textMaxWidth=Math.max(this.textMaxWidth,q.width),0===s)I=y=10+x/2,N=f=l+k.height+(_>q.height?_/2:q.height/4);else{var X=q.height>_?q.height:_;if("Horizontal"===w){var Y=M[W-1].x+M[W-1].width+10+x;if(Y+S+q.width>P){var J=(M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2)+l;J+X>T?(this.getPageChanged(),W=0,O=[],M=[],[],y=I,f=N):(y=O[0].x,f=J+X/2)}else y=Y-x/2,f=O[W-1].y}else{var Q=M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2;if(Q+l+X>T){var K=M[W-1].x+this.textMaxWidth+10;K+S+q.width>P?(y=I,f=N,[],M=[],O=[],this.getPageChanged(),W=0):(y=K+x/2,f=O[0].y)}else{y=O[W-1].x,f=Q+10+_/2}}}b=y+x/2+S,v=f+q.height/4,O.push({x:y,y:f}),M.push({x:b,y:v,width:q.width,height:q.height/2}),this.totalPages[this.page].Collection.push({DisplayText:d.text,ImageSrc:d.imageSrc,Shape:{x:y,y:f},Text:{x:b,y:v},Fill:d.fill,legendShape:d.shape,shapeBorder:d.shapeBorder,idIndex:s,Rect:{x:O[W].x-x/2,y:O[W].y-_/2<v-q.height?O[W].y-_/2:v-q.height,width:Math.abs(O[W].x-x/2-(b+q.width)),height:_>q.height?_:q.height}}),W++}var $=this.totalPages[0].Collection;Array.prototype.forEach.call($,function(t,i){var n=new o.F(t.Rect.x,t.Rect.y,t.Rect.width,t.Rect.height);0===i&&(u=n.x,m=n.y),e.widthIncrement=Math.max(e.widthIncrement,Math.abs(u-(n.x+n.width))),e.heightIncrement=Math.max(e.heightIncrement,Math.abs(m-(n.y+n.height)))}),P=this.widthIncrement<P?this.widthIncrement:P,T=this.heightIncrement<T?this.heightIncrement:T,this.legendItemRect={x:$[0].Rect.x,y:$[0].Rect.y,width:P,height:T}}}},e.prototype.getLegends=function(e,t,i,n,o,a,r){this.getRangeLegendCollection(e,t,i,n,o,a,r),this.getEqualLegendCollection(e,t,i,n,o,a,r),this.getDataLegendCollection(e,t,i,n,o,a,r)},e.prototype.getPageChanged=function(){this.page++,i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]})},e.prototype.legendTextTrim=function(e,t,n,a){var r=t,l=i.i(o.u)(t,n).width,s=a-l;if(a>e)for(var d=t.length,p=d-1;p>=0;--p){r=t.substring(0,p)+"...",l=i.i(o.u)(r,n).width;var h=s+l;if(h<=e||r.length<4)return r.length<4&&(r=" "),r}return r},e.prototype.drawLegend=function(){var e,t=this.maps,n=t.legendSettings,r=t.renderer,l={size:n.textStyle.size,color:n.textStyle.color,fontFamily:n.textStyle.fontFamily,fontWeight:n.textStyle.fontWeight,fontStyle:n.textStyle.fontStyle,opacity:n.textStyle.opacity};if(this.legendGroup=r.createGroup({id:t.element.id+"_Legend_Group"}),"Interactive"===n.mode)for(var s=0;s<this.legendRenderingCollections.length;s++){var d=t.element.id+"_Legend_Index_"+s,p=t.element.id+"_Legend_Index_"+s+"_Text",h=this.legendRenderingCollections[s],c=new o.F(h.x,h.y,h.width,h.height);0===s&&this.renderLegendBorder();var u=new o.r(h.textX,h.textY);l.color=null!==l.color?l.color:this.maps.themeStyle.legendTextColor;var m=new o.y(d,h.fill,h.shapeBorder,n.opacity,c);e=new o.v(p,u.x,u.y,"middle",h.text,"",""),l.fontFamily=i.i(a.isNullOrUndefined)(l.fontFamily)?this.maps.themeStyle.fontFamily:l.fontFamily,l.size=t.themeStyle.legendFontSize||l.size,i.i(o.H)(e,l,l.color,this.legendGroup),this.legendGroup.appendChild(r.drawRectangle(m)),this.legendToggle()}else this.drawLegendItem(this.currentPage)},e.prototype.drawLegendItem=function(e){var t,n=this.maps,r=n.legendSettings,l=new o.a(r.shapeWidth,r.shapeHeight),s=n.renderer,d=r.shape;if(e>=0&&e<this.totalPages.length){i.i(o._35)(this.legendGroup.id,this.maps.element.id)&&i.i(a.remove)(i.i(o._35)(this.legendGroup.id,this.maps.element.id));for(var p=0;p<this.totalPages[e].Collection.length;p++){var h=this.totalPages[e].Collection[p],c=h.shapeBorder,u=s.createGroup({id:n.element.id+"_Legend_Index_"+h.idIndex}),m=h.DisplayText,g=("Markers"===r.type?i.i(a.isNullOrUndefined)(h.ImageSrc)&&r.shape:h.legendShape,"HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape?i.i(a.isNullOrUndefined)(r.fill)?"#000000":r.fill:c.color),y=("HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape)&&0===c.width?1:c.width,f=n.element.id+"_Legend_Shape_Index_"+h.idIndex,b=n.element.id+"_Legend_Text_Index_"+h.idIndex,v=new o.r(h.Shape.x,h.Shape.y-4),S=new o.r(h.Text.x,h.Text.y-4),_=new o.w(f,h.Fill,y,g,r.opacity,i.i(a.isNullOrUndefined)(c.opacity)?r.opacity:c.opacity,""),x={fontFamily:r.textStyle.fontFamily,fontStyle:r.textStyle.fontStyle,fontWeight:r.textStyle.fontWeight,size:r.textStyle.size,color:r.textStyle.color,opacity:r.textStyle.opacity};if(x.color=null!==x.color?x.color:this.maps.themeStyle.legendTextColor,x.fontFamily=i.i(a.isNullOrUndefined)(x.fontFamily)?this.maps.themeStyle.fontFamily:x.fontFamily,x.size=n.themeStyle.legendFontSize||x.size,0===p&&this.renderLegendBorder(),"Markers"===r.type&&r.useMarkerShape){var O=this.legendCollection[h.idIndex].data[0],M=n.layers[O.layerIndex].markerSettings[O.markerIndex];d=i.i(a.isNullOrUndefined)(M.dataSource[O.dataIndex][M.shapeValuePath])||""===M.dataSource[O.dataIndex][M.shapeValuePath]?M.shape:M.dataSource[O.dataIndex][M.shapeValuePath]}"Balloon"===d?u.appendChild(i.i(o._11)(n,_,l,{x:v.x,y:v.y+5},"Legend")):u.appendChild(i.i(o._46)(v,d,l,h.ImageSrc,_));var L=h.Rect.x+h.Rect.width;if(L>this.legendBorderRect.width){m=this.legendTextTrim(this.legendBorderRect.width,m,x,L)}if(t=new o.v(b,S.x,S.y,"start",m,"",""),i.i(o.H)(t,x,x.color,u),this.legendGroup.appendChild(u),p===this.totalPages[e].Collection.length-1){var C=void 0;if(0!==this.page){var w=e+1+"/"+this.totalPages.length,P=r.textStyle,T=i.i(o.u)(w,P),I=this.legendItemRect.x+this.legendItemRect.width-T.width-20-20+2,N=this.legendItemRect.x+this.legendItemRect.width,k=N-10-T.width/2-5-4,F=this.legendItemRect.y+this.legendItemRect.height+2.5+10;C=s.createGroup({id:n.element.id+"_Legend_Paging_Group"});var E=s.createGroup({id:n.element.id+"_Legend_Left_Paging_Group"}),A=s.createGroup({id:n.element.id+"_Legend_Right_Paging_Group"}),z=" M "+N+" "+F+" L "+(N-10)+" "+(F-5)+" L "+(N-10)+" "+(F+5)+" z ",B=" M "+I+" "+F+" L "+(I+10)+" "+(F-5)+" L "+(I+10)+" "+(F+5)+" z ",j=new o.w(n.element.id+"_Left_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===1?.5:1,1,"",B);E.appendChild(s.drawPath(j));var U=new o.y(n.element.id+"_Left_Page_Rect","transparent",{},1,new o.F(I-5,F-10,20,20),null,null,"",""),R=s.drawRectangle(U);R.tabIndex=e+1===1?-1:n.tabIndex+1,E.appendChild(R),this.wireEvents(E);var D=new o.w(n.element.id+"_Right_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===this.totalPages.length?.5:1,1,"",z);A.appendChild(s.drawPath(D));var Z=new o.y(n.element.id+"_Right_Page_Rect","transparent",{},1,new o.F(N-10-5,F-10,20,20),null,null,"","");R=s.drawRectangle(Z),R.tabIndex=e+1===this.totalPages.length?-1:n.tabIndex+2,A.appendChild(R),this.wireEvents(A),C.appendChild(E),C.appendChild(A);var H={id:n.element.id+"_Paging_Text",x:k,y:F+T.height/4,fill:this.maps.themeStyle.legendTextColor,"font-size":"14px","font-style":P.fontStyle,"font-family":P.fontFamily,"font-weight":P.fontWeight,"text-anchor":"middle",transform:"",opacity:1,"dominant-baseline":""},V=s.createText(H,w);V.style.cssText="user-select: none;",C.appendChild(V),this.legendGroup.appendChild(C)}this.legendToggle()}}}},e.prototype.legendHighLightAndSelection=function(e,t){var n,o,r,l,s,d=this.maps.legendSettings,p="Default"===d.mode?document.getElementById(e.id.replace("Shape","Text")):document.getElementById(e.id+"_Text"),h=this.maps.legendModule.legendCollection,c=!i.i(a.isNullOrUndefined)(h[0].data[0].layerIndex)&&this.maps.layers[h[0].data[0].layerIndex].selectionSettings.enableMultiSelect,u=0,m=!0,g=parseFloat(e.id.charAt(e.id.length-1));this.updateLegendElement();var y=this.maps.toggledLegendId.indexOf(g);if(this.maps.legendSettings.toggleLegendSettings.enable&&"highlight"===t&&-1!==y){var f=this.getIndexofLegend(this.legendHighlightCollection,e);return-1!==f&&this.legendHighlightCollection.splice(f,1),this.removeLegendHighlightCollection(),null}if("selection"===t){if(this.shapeHighlightCollection=[],this.maps.shapeSelections||c||(this.removeAllSelections(),this.maps.shapeSelections=!0),this.maps.legendSelectionCollection.length>0&&(c||this.maps.shapeSelections))for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if(e===this.maps.legendSelectionCollection[b].legendElement){this.maps.legendSelectionCollection[b].legendElement=e,m=!1,this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(g),1),this.maps.legendSelectionCollection.splice(b,1),this.maps.legendSelection=!(this.maps.legendSelectionCollection.length>0);break}if(!c)if(this.maps.legendSelectionCollection.length>1){for(var v=0;v<this.maps.legendSelectionCollection.length;v++)this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[v].legendElement);this.maps.legendSelectionCollection=[]}else this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.legendSelectionCollection.splice(b,1)}}else{if(this.maps.legendSelectionCollection.length>0)for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if((e.id.indexOf("_Legend_Shape")>-1||e.id.indexOf("_Legend_Index"))&&e===this.maps.legendSelectionCollection[b].legendElement){m=!1;break}this.removeLegendHighlightCollection()}this.removeLegendHighlightCollection()}if(m)for(var S=0;S<h.length;S++){var _="Interactive"===this.maps.legendSettings.mode?parseFloat(e.id.split("_Legend_Index_")[1]):parseFloat(e.id.split("_Legend_Shape_Index_")[1]);if(p.textContent===h[S].text&&h[S].data.length>0&&_===S){var x=this.maps.layers[h[S].data[0].layerIndex],O=void 0,M=void 0,L=void 0;if(i.i(a.isNullOrUndefined)(x)||(O="selection"===t?x.selectionSettings.enable:x.highlightSettings.enable,M=void 0,M="selection"===t?x.selectionSettings:x.highlightSettings,L=h[S].data),O)for(var C=0;C<L.length;C++){var w=void 0;if(n=L[C].shapeIndex,o=L[C].layerIndex,r=L[C].dataIndex,l=L[C].pointIndex,null!==(w=-1===l?document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r):document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r+"_multiLine_"+l))){var P=!0;if(null!==this.maps.legendSelectionCollection)for(var T=0;T<this.maps.legendSelectionCollection.length;T++)if(this.maps.legendSelectionCollection[T].legendElement===e){P=!1;break}if("highlight"===t&&P){0===C&&(this.legendHighlightCollection=[],this.pushCollection(e,this.legendHighlightCollection,h[S],x.shapeSettings)),s=this.legendHighlightCollection.length;var I=this.legendHighlightCollection[s-1].legendOldFill;this.legendHighlightCollection[s-1].MapShapeCollection.Elements.push(w);var N=this.legendHighlightCollection[s-1].MapShapeCollection.Elements.length-1,k=w.getAttribute("fill"),F=w.getAttribute("fill-opacity");this.legendHighlightCollection[s-1].shapeOldFillColor.push(k),this.legendHighlightCollection[s-1].shapeOldOpacity=F;var E=this.legendHighlightCollection[s-1].shapeOldFillColor[N],A=this.legendHighlightCollection[s-1].shapeOldOpacity;this.shapePreviousColor=this.legendHighlightCollection[s-1].shapeOldFillColor,this.setColor(w,i.i(a.isNullOrUndefined)(M.fill)?E:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?A:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight"),this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?I:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?A:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight")}else if("selection"===t){this.legendHighlightCollection=[],this.maps.legendSelectionClass=M,0===C&&(this.pushCollection(e,this.maps.legendSelectionCollection,h[S],x.shapeSettings),c?this.maps.selectedLegendElementId.push(S):0===this.maps.selectedLegendElementId.length?this.maps.selectedLegendElementId.push(S):(this.maps.selectedLegendElementId=[],this.maps.selectedLegendElementId.push(S))),u=this.maps.legendSelectionCollection.length;var z=this.maps.legendSelectionCollection[u-1].legendOldFill;this.maps.legendSelectionCollection[u-1].MapShapeCollection.Elements.push(w),this.maps.legendSelectionCollection[u-1].shapeOldFillColor=this.shapePreviousColor,this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?z:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),this.setColor(w,i.i(a.isNullOrUndefined)(M.fill)?z:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),-1===this.maps.selectedElementId.indexOf(w.getAttribute("id"))&&this.maps.selectedElementId.push(w.getAttribute("id")),C===L.length-1&&(this.maps.legendSelection=!1,this.removeLegend(this.maps.legendSelectionCollection))}}}}}},e.prototype.setColor=function(e,t,n,a,r,l){var s=e.parentElement.id.indexOf("LineString")>-1;"selection"===l?(i.i(o.W)(s?"LineselectionMap":"ShapeselectionMap",s?"LineselectionMapStyle":"ShapeselectionMapStyle",s?"transparent":t,n,s?t:a,r,this.maps),e.setAttribute("class",s?"LineselectionMapStyle":"ShapeselectionMapStyle")):(e.setAttribute("fill",s?"transparent":t),e.setAttribute("fill-opacity",n),e.setAttribute("stroke",s?t:a),e.setAttribute("stroke-width",(Number(r)/this.maps.scale).toString()))},e.prototype.pushCollection=function(e,t,i,n){t.push({legendElement:e,legendOldFill:i.fill,legendOldOpacity:i.opacity,legendOldBorderColor:i.borderColor,legendOldBorderWidth:i.borderWidth,shapeOpacity:n.opacity,shapeOldBorderColor:n.border.color,shapeOldBorderWidth:n.border.width});var o=t.length;t[o-1].MapShapeCollection={Elements:[]},t[o-1].shapeOldFillColor=[],t[o-1].shapeOldOpacity=null},e.prototype.removeLegend=function(e){for(var t=0;t<e.length;t++){var n=e[t];this.setColor(n.legendElement,n.legendOldFill,n.legendOldOpacity,n.legendOldBorderColor,n.legendOldBorderWidth,"highlight");for(var o=n.MapShapeCollection.Elements.length,r=0;r<o;r++){var l=-1!==n.legendOldFill.indexOf("url")?n.shapeOldFillColor[r]:n.legendOldFill,s=i.i(a.isNullOrUndefined)(n.shapeOldOpacity)?n.shapeOpacity:n.shapeOldOpacity;this.setColor(n.MapShapeCollection.Elements[r],l,s,n.shapeOldBorderColor,n.shapeOldBorderWidth,"highlight")}}},e.prototype.removeLegendHighlightCollection=function(){this.legendHighlightCollection.length>0&&(this.removeLegend(this.legendHighlightCollection),this.legendHighlightCollection=[])},e.prototype.removeLegendSelectionCollection=function(e){if(this.maps.legendSelectionCollection.length>0){i.i(o._40)(e);for(var t=this.shapesOfLegend(e),n=t.length,a=0;a<n;a++){var r=i.i(o._31)(t[a]);if("ShapeselectionMapStyle"===r.getAttribute("class")||"LineselectionMapStyle"===r.getAttribute("class")){i.i(o._40)(r);var l=this.maps.selectedElementId.indexOf(r.id);-1!==l&&this.maps.selectedElementId.splice(l,1)}}}},e.prototype.removeShapeHighlightCollection=function(){if(this.shapeHighlightCollection.length>0)for(var e=0;e<this.shapeHighlightCollection.length;e++){for(var t=this.shapeHighlightCollection[e],i=!0,n=0;n<this.maps.legendSelectionCollection.length;n++)this.maps.legendSelectionCollection[n].legendElement===t.legendElement&&(i=!1);i&&this.setColor(t.legendElement,t.legendOldFill,t.legendOldOpacity,t.legendOldBorderColor,t.legendOldBorderWidth,"highlight")}},e.prototype.shapeHighLightAndSelection=function(e,t,n,r,l){if(void 0!==t){this.updateLegendElement(),this.shapeToggled=!0;var s=this.maps.legendModule.legendCollection,d=this.legendIndexOnShape(t,l),p=this.shapeDataOnLegend(e),h=this.maps.toggledLegendId.indexOf(d.actualIndex);if(this.maps.legendSettings.toggleLegendSettings.enable&&-1!==h){this.shapeToggled=!1,this.legendHighlightCollection=[];var c=this.getIndexofLegend(this.shapeHighlightCollection,p.LegendEle);return-1!==c&&this.shapeHighlightCollection.splice(c,1),this.removeShapeHighlightCollection(),null}if(void 0===d.currentIndex&&void 0===d.actualIndex)return this.removeShapeHighlightCollection(),null;if(void 0!==d.currentIndex||"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||"ShapeselectionMapStyle"===e.getAttribute("class")||(this.maps.legendSelection=!1),"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||this.maps.legendSelection||(this.removeAllSelections(),this.maps.legendSelection=!0),void 0===d.currentIndex){if("selection"===r&&void 0!==d.actualIndex){for(var u=0,m=0;m<p.Elements.length;m++)"ShapeselectionMapStyle"===p.Elements[m].getAttribute("class")&&u++;var g=this.maps.selectedLegendElementId.indexOf(d.actualIndex);-1===g?(this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n):u<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&(this.maps.layers[l].selectionSettings.enableMultiSelect?u<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&this.maps.selectedLegendElementId.splice(g,1):this.maps.selectedLegendElementId.splice(g,1))}return this.removeShapeHighlightCollection(),null}var y=s[d.actualIndex].text,f=void 0,b=void 0;"Default"===this.maps.legendSettings.mode?void 0!==d.currentIndex&&(f=document.getElementById(this.maps.element.id+"_Legend_Text_Index_"+d.actualIndex).textContent,b=document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d.actualIndex)):(f=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex+"_Text").textContent,b=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex)),this.oldShapeElement=p.LegendEle;var v=this.maps.legendSelectionCollection.length;if(y===f){var S=!0;if(this.maps.legendSelectionCollection)for(var m=0;m<this.maps.legendSelectionCollection.length;m++)if(this.maps.legendSelectionCollection[m].legendElement===p.LegendEle){S=!1;break}if("highlight"===r&&S){var _=this.isTargetSelected(p,this.shapeHighlightCollection);(void 0===_||_&&!_.IsSelected)&&this.pushCollection(b,this.shapeHighlightCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings);for(var x=0;x<this.shapeHighlightCollection.length;x++)p.LegendEle.id===this.shapeHighlightCollection[x].legendElement.id&&(this.shapeHighlightCollection[x].legendElement=p.LegendEle);if(v>0)for(var x=0;x<v;x++){if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement){this.maps.legendSelectionCollection[x].legendElement=p.LegendEle,this.removeShapeHighlightCollection();break}x===v-1&&(this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight"))}else this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight")}else if("selection"===r){var _=this.isTargetSelected(p,this.maps.legendSelectionCollection);if(v>0)for(var x=0;x<this.maps.legendSelectionCollection.length;)if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement||n.enableMultiSelect)x++;else{var O=this.maps.legendSelectionCollection[x],M=this.maps.selectedLegendElementId.indexOf(d.actualIndex);this.maps.selectedLegendElementId.splice(M,1),this.maps.legendSelectionCollection.splice(x,1),i.i(o._40)(O.legendElement),this.maps.shapeSelections=!0,x=0}if(_&&_.IsSelected&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))){var L=0;if(n.enableMultiSelect)for(var m=0;m<p.Elements.length;m++)e.getAttribute("class")===p.Elements[m].getAttribute("class")&&L++;L<=1&&(n.enableMultiSelect||this.maps.legendSelection)&&(this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(d.actualIndex),1),i.i(a.isNullOrUndefined)(p.LegendEle)||i.i(o._40)(p.LegendEle),this.maps.legendSelectionCollection.splice(_.SelectionIndex,1),this.maps.shapeSelections=!0)}else{if((void 0===_||_&&!_.IsSelected)&&!i.i(a.isNullOrUndefined)(b)){var C=this.getIndexofLegend(this.maps.legendSelectionCollection,b);-1===C&&this.pushCollection(b,this.maps.legendSelectionCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings)}for(var w=!0,m=0;m<this.maps.selectedLegendElementId.length;m++)d.actualIndex===this.maps.selectedLegendElementId[m]&&(w=!1);if(w&&this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n,this.removeLegend(this.shapeHighlightCollection),!i.i(a.isNullOrUndefined)(b)){this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"selection");var C=this.getIndexofLegend(this.maps.legendSelectionCollection,b);this.maps.legendSelectionCollection[C].MapShapeCollection.Elements.push(e)}this.maps.shapeSelections=!1}}else document.getElementsByClassName("highlightMapStyle").length>0&&(this.removeShapeHighlightCollection(),i.i(o._40)(document.getElementsByClassName("highlightMapStyle")[0]))}}else this.removeShapeHighlightCollection()},e.prototype.isTargetSelected=function(e,t){for(var n,o=0;o<t.length;o++)i.i(a.isNullOrUndefined)(e.LegendEle.getAttribute("id"))||e.LegendEle.getAttribute("id")!==t[o].legendElement.getAttribute("id")||(n={IsSelected:!0,SelectionIndex:o});return n},e.prototype.updateLegendElement=function(){for(var e=0;e<this.maps.legendSelectionCollection.length;e++)document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id)&&(this.maps.legendSelectionCollection[e].legendElement=document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id))},e.prototype.getIndexofLegend=function(e,t){return e.map(function(e){return e.legendElement}).indexOf(t)},e.prototype.removeAllSelections=function(){for(var e=0;e<this.maps.selectedElementId.length;e++){var t=document.getElementById(this.maps.selectedElementId[e]);i.i(o._40)(t)}for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var r="Interactive"===this.maps.legendSettings.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",t=r+this.maps.selectedLegendElementId[n],l=document.getElementById(t);i.i(a.isNullOrUndefined)(l)||i.i(o._40)(document.getElementById(t))}this.maps.legendSelectionCollection=[],this.maps.selectedLegendElementId=[],this.maps.selectedElementId=[]},e.prototype.legendIndexOnShape=function(e,t){var n,o,r,l=this.maps.layers[t].shapeDataPath,s=e[l],d=this.maps.legendSettings.mode,p=this.maps.legendModule.legendCollection;"Default"!==d||i.i(a.isNullOrUndefined)(this.maps.legendModule.totalPages)||(r=this.maps.legendModule.totalPages[this.maps.legendModule.currentPage].Collection);for(var h="Default"===d?r.length:1,c=0;c<p.length;c++){for(var u=p[c].data,m=0;m<h;m++)if("Default"!==d||p[c].text===r[m].DisplayText)for(var g=0;g<u.length;g++)s===u[g].name&&(n=m);for(var g=0;g<u.length;g++)s===u[g].name&&(o=c)}return{currentIndex:n,actualIndex:o}},e.prototype.shapeDataOnLegend=function(e){for(var t,n,o,r,l=this.maps.legendModule.legendCollection,s=this.maps.legendSettings,d=0;d<l.length;d++){for(var p=l[d].data,h=!1,c=[],u={Elements:[]},m=0;m<p.length;m++){var g=void 0;t=p[m].shapeIndex,n=p[m].layerIndex,o=p[m].dataIndex,r=p[m].pointIndex,g=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),e===g&&(h=!0),c.push(g)}if(h)return i.i(a.isNullOrUndefined)(u.LegendEle)&&(u.LegendEle="Default"===s.mode?document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d):document.getElementById(this.maps.element.id+"_Legend_Index_"+d)),u.Elements=c,u}return null},e.prototype.shapesOfLegend=function(e){for(var t,n,o,r,l=parseFloat(e.id.charAt(e.id.length-1)),s=this.maps.legendModule.legendCollection[l].data,d=[],p=0;p<s.length;p++){var h=void 0;t=s[p].shapeIndex,n=s[p].layerIndex,o=s[p].dataIndex,r=s[p].pointIndex,h=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),i.i(a.isNullOrUndefined)(h)||d.push(h.id)}return d},e.prototype.legendToggle=function(){var e=this.maps,t=e.legendSettings;if(this.maps.selectedLegendElementId)for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var o="Interactive"===t.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",r=e.svgObject.querySelector("#"+o+this.maps.selectedLegendElementId[n]);if(!i.i(a.isNullOrUndefined)(r)){var l=i.i(a.isNullOrUndefined)(this.maps.legendSelectionClass.fill)?r.getAttribute("fill"):this.maps.legendSelectionClass.fill;this.setColor(r,l,this.maps.legendSelectionClass.opacity.toString(),this.maps.legendSelectionClass.border.color,this.maps.legendSelectionClass.border.width.toString(),"selection");for(var s=0;s<this.maps.legendSelectionCollection.length;s++)this.maps.legendSelectionCollection[s].legendElement.id===r.id&&(this.maps.legendSelectionCollection[s].legendElement=r);var d=this.getIndexofLegend(this.maps.legendSelectionCollection,r);if(-1===d){var p=this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]].data[n].layerIndex;this.pushCollection(r,this.maps.legendSelectionCollection,this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]],this.maps.layers[p].shapeSettings)}}}if(this.maps.toggledLegendId)for(var n=0;n<this.maps.toggledLegendId.length;n++){var h="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]+"_Text":"#"+this.maps.element.id+"_Legend_Text_Index_"+this.maps.toggledLegendId[n],c=e.svgObject.querySelector(h);i.i(a.isNullOrUndefined)(c)||c.setAttribute("fill","#E5E5E5");var u="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]:"#"+this.maps.element.id+"_Legend_Shape_Index_"+this.maps.toggledLegendId[n],m=e.svgObject.querySelector(u);i.i(a.isNullOrUndefined)(m)||m.setAttribute("fill","#E5E5E5")}},e.prototype.renderLegendBorder=function(){var e,t=this.maps,n=t.legendSettings,r=n.title.text,l={fontFamily:n.titleStyle.fontFamily,fontStyle:n.titleStyle.fontStyle,fontWeight:n.titleStyle.fontWeight,size:n.titleStyle.size,color:n.titleStyle.color,opacity:n.titleStyle.opacity},s=i.i(o._20)(this.legendItemRect.width+20,r,l),d=i.i(o.u)(s,l);this.legendBorderRect=new o.F(this.legendItemRect.x-10,this.legendItemRect.y-10-d.height,this.legendItemRect.width+20,this.legendItemRect.height+20+d.height+("Interactive"===n.mode?0:0!==this.page?10:0));var p={color:n.border.color,width:n.border.width,opacity:n.border.opacity};p.opacity=i.i(a.isNullOrUndefined)(p.opacity)?1:p.opacity;var h=new o.y(t.element.id+"_Legend_Border",n.background,p,1,this.legendBorderRect,null,null,"","");this.legendGroup.appendChild(t.renderer.drawRectangle(h)),this.getLegendAlignment(t,this.legendBorderRect.width,this.legendBorderRect.height,n),this.legendGroup.setAttribute("transform","translate( "+(this.translate.x+-this.legendBorderRect.x)+" "+(this.translate.y+-this.legendBorderRect.y)+" )"),"Float"!==n.position&&t.svgObject.appendChild(this.legendGroup),r&&(l.color=null!==l.color?l.color:this.maps.themeStyle.legendTitleFontColor,l.fontFamily=i.i(a.isNullOrUndefined)(l.fontFamily)?this.maps.themeStyle.fontFamily:l.fontFamily,e=new o.v(t.element.id+"_LegendTitle",this.legendItemRect.x+this.legendItemRect.width/2,this.legendItemRect.y-d.height/2-5,"middle",s,""),i.i(o.H)(e,l,l.color,this.legendGroup))},e.prototype.changeNextPage=function(e){this.currentPage=e.target.id.indexOf("_Left_Page_")>-1?this.currentPage-1:this.currentPage+1,this.legendGroup=this.maps.renderer.createGroup({id:this.maps.element.id+"_Legend_Group"}),this.maps.mapAreaRect=this.initialMapAreaRect,this.drawLegendItem(this.currentPage),i.i(a.isNullOrUndefined)(this.maps.legendModule)||"Float"!==this.maps.legendSettings.position||(this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.legendModule.legendGroup):this.maps.svgObject.appendChild(this.maps.legendModule.legendGroup)),i.i(o._35)(this.maps.element.id+"_Legend_Border",this.maps.element.id)&&(i.i(o._35)(this.maps.element.id+"_Legend_Border",this.maps.element.id).style.pointerEvents="none")},e.prototype.getLegendAlignment=function(e,t,n,r){var l,s,d;d=i.i(a.extend)({},e.mapAreaRect,d,!0);var p=d.x,h=d.y,c=d.height,u=d.width,m=e.availableSize.width,g=e.availableSize.height,y=i.i(a.isNullOrUndefined)(r.location.x)?0:r.location.x,f=i.i(a.isNullOrUndefined)(r.location.y)?0:r.location.y;if("Float"===r.position)this.translate=e.isTileMap?new o.r(y,f+2.5):new o.r(y+e.mapAreaRect.x,f+e.mapAreaRect.y),this.legendTotalRect=e.mapAreaRect;else{switch(r.position){case"Top":case"Bottom":d.height="Top"===r.position?c-n:c-n-20,l=m/2-t/2,s="Top"===r.position?h:h+d.height,d.y="Top"===r.position?h+n+(e.isTileMap?5:10):h-5;break;case"Left":case"Right":d.width=u-t-e.mapAreaRect.x,l="Left"===r.position?p+5:p+d.width+10,s=g/2-n/2,d.x="Left"===r.position?p+t+10:p}switch(r.alignment){case"Near":"Top"===r.position||"Bottom"===r.position?l=d.x-("Interactive"===r.mode?10:0):s=d.y-(r.height&&r.width||"Interactive"!==r.mode?0:e.mapAreaRect.x);break;case"Far":"Top"===r.position||"Bottom"===r.position?l=m-t-("Interactive"===r.mode?0:10):s=g-n-("Default"===r.mode?10:0)}(r.height||r.width)&&"Interactive"!==r.mode?this.legendTotalRect=e.mapAreaRect=e.totalRect=d:(e.totalRect=null,(r.height||r.width)&&"Interactive"===r.mode&&(e.totalRect=d),this.legendTotalRect=e.mapAreaRect=d),"Left"===r.position&&(e.mapAreaRect.width=d.width),this.translate=new o.r(l,s)}},e.prototype.getMarkersLegendCollections=function(e,t){var n=this;Array.prototype.forEach.call(t,function(t,r){var l,s=t.dataSource,d=t.legendText;Array.prototype.forEach.call(s,function(s,p){var h=!!i.i(a.isNullOrUndefined)(s[n.maps.legendSettings.showLegendPath])||s[n.maps.legendSettings.showLegendPath];if(t.visible&&h&&!i.i(a.isNullOrUndefined)(s.latitude)&&!i.i(a.isNullOrUndefined)(s.longitude)){if(t.template){l=i.i(o._30)(t.template,n.maps);var c=l(n.maps);(i.i(a.isNullOrUndefined)(c.childElementCount)?c[0]:c).querySelector("img").src}var u=i.i(a.isNullOrUndefined)(s[d])?"":s[d],m=i.i(a.isNullOrUndefined)(t.colorValuePath)?t.fill:s[t.colorValuePath],g=[];n.maps.legendSettings.removeDuplicateLegend?(g.push(n.getMarkerLegendData(e,u,m)),n.getOverallLegendItemsCollection(u,m,g,h)):(g.push({layerIndex:e,markerIndex:r,dataIndex:p,value:m,name:u,shape:i.i(a.isNullOrUndefined)(t.shapeValuePath)||i.i(a.isNullOrUndefined)(s[t.shapeValuePath])||""===s[t.shapeValuePath]?n.maps.legendSettings.useMarkerShape?t.shape:n.maps.legendSettings.shape:s[t.shapeValuePath]}),n.getOverallLegendItemsCollection(u,m,g,h))}})})},e.prototype.getMarkerLegendData=function(e,t,n){var o=this,r=[];return this.maps.layers[e].markerSettings.map(function(l,s){var d=l.dataSource;Array.prototype.forEach.call(d,function(l,d){var p=o.maps.layers[e].markerSettings[s];t!==l[p.legendText]&&""!==t||n!==l[p.colorValuePath]||r.push({layerIndex:e,markerIndex:s,dataIndex:d,value:n,name:t,shape:i.i(a.isNullOrUndefined)(p.shapeValuePath)?p.shape:l[p.shapeValuePath]})})}),r},e.prototype.getRangeLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,c=0,u=this.maps.legendSettings.fill,m=[],g=this,y=0,f=n;y<f.length;y++){var b=f[y];!function(n){if(!i.i(a.isNullOrUndefined)(n.from)&&!i.i(a.isNullOrUndefined)(n.to)){p=i.i(a.isNullOrUndefined)(n.label)?n.from+" - "+n.to:n.label,m=[];var y=!1;Array.prototype.forEach.call(r,function(a,r){var p=s.indexOf(".")>-1?Number(i.i(o.N)(a,s)):parseFloat(a[s]);p>=n.from&&p<=n.to&&(y=!0,m.push(h.getLegendData(e,r,a,l,t,d,p)))}),y||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var f=i.i(a.isNullOrUndefined)(u)?"[object Array]"===Object.prototype.toString.call(n.color)?i.i(a.isNullOrUndefined)(n.value)?g.legendGradientColor(n,c):n.color[0]:n.color:u;c++,g.getOverallLegendItemsCollection(p,f,m,n.showLegend)}}(b)}},e.prototype.getOverallLegendItemsCollection=function(e,t,i,n){var o=[],a=this.maps.legendSettings;if(i.length>0&&n){for(var r=0;r<i.length;r++){var l=i[r];if(l.length>0)for(var s=0;s<l.length;s++)o.push(l[s]);else o.push(i[r]);o._isVisible=!0}if(!!this.maps.legendSettings.removeDuplicateLegend&&this.removeDuplicates(this.legendCollection,e,t))for(var r=0;r<this.legendCollection.length;r++)this.legendCollection[r].text===e&&this.legendCollection[r].fill===t&&this.legendCollection[r].data.push(o[0]);else this.legendCollection.push({text:e,fill:t,data:o,opacity:a.opacity,borderColor:a.shapeBorder.color,borderWidth:a.shapeBorder.width})}},e.prototype.removeDuplicates=function(e,t,i){for(var n=!1,o=0;o<e.length;o++)if((e[o].text===t||""===e[o].text)&&e[o].fill===i){n=!0;break}return n},e.prototype.getEqualLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,c=this.maps.legendSettings.fill,u=[],m=0,g=[],y=[],f=[],b=this,v=0,S=n;v<S.length;v++){var _=S[v];!function(v){if(i.i(a.isNullOrUndefined)(v.value)){if(i.i(a.isNullOrUndefined)(v.minOpacity)&&i.i(a.isNullOrUndefined)(v.maxOpacity)&&i.i(a.isNullOrUndefined)(v.value)&&i.i(a.isNullOrUndefined)(v.from)&&i.i(a.isNullOrUndefined)(v.to)&&!i.i(a.isNullOrUndefined)(v.color)){if(Array.prototype.forEach.call(r,function(n,a){for(var r=s.indexOf(".")>-1?i.i(o.N)(n,s):n[s],p=0;p<y.length;p++)r===y[p]&&f.push(h.getLegendData(e,a,n,l,t,d,r))}),0===y.length){var S=!1;Array.prototype.forEach.call(r,function(o,r){S=!1;for(var p=o[s],c=0;c<n.length;c++)i.i(a.isNullOrUndefined)(p)||isNaN(p)?S||(S=!1):p>=n[c].from&&p<=n[c].to&&(S=!0);S||f.push(h.getLegendData(e,r,o,l,t,d,p))})}p=i.i(a.isNullOrUndefined)(v.label)?"Others":v.label;var _="[object Array]"===Object.prototype.toString.call(v.color)?v.color[0]:v.color,x=_;m++,b.getOverallLegendItemsCollection(p,x,f,v.showLegend)}}else{p=i.i(a.isNullOrUndefined)(v.label)?v.value:v.label,g=[];var O=!1;Array.prototype.forEach.call(r,function(n,a){var r=s.indexOf(".")>-1?i.i(o.N)(n,s):n[s];r===v.value?(O=!0,-1===u.indexOf(r)&&u.push(r),g.push(h.getLegendData(e,a,n,l,t,d,r))):-1===y.indexOf(r)&&y.push(r)});for(var M=0;M<u.length;M++)for(var L=0;L<y.length;L++)if(u[M]===y[L]){var C=y.indexOf(u[M]);y.splice(C,1)}O||g.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var w=i.i(a.isNullOrUndefined)(c)?"[object Array]"===Object.prototype.toString.call(v.color)?v.color[0]:v.color:c;m++,b.getOverallLegendItemsCollection(p,w,g,v.showLegend)}}(_)}},e.prototype.getDataLegendCollection=function(e,t,n,r,l,s,d){var p,h=this,c=this.maps.legendSettings.fill,u=this.maps.legendSettings.valuePath;i.i(a.isNullOrUndefined)(s)||i.i(a.isNullOrUndefined)(r)||Array.prototype.forEach.call(r,function(r,m){var g=!!i.i(a.isNullOrUndefined)(h.maps.legendSettings.showLegendPath)||!i.i(a.isNullOrUndefined)(r[h.maps.legendSettings.showLegendPath])&&r[h.maps.legendSettings.showLegendPath],y=s.indexOf(".")>-1?i.i(o.N)(r,s):r[s],f=[],b=i.i(a.isNullOrUndefined)(c)?y:c;i.i(a.isNullOrUndefined)(y)||0!==n.length||(p=i.i(a.isNullOrUndefined)(r[u])?l.indexOf(".")>-1?i.i(o.N)(r,l):r[l]:u.indexOf(".")>-1?i.i(o.N)(r,u):r[u],f.push(h.getLegendData(e,m,r,l,t,d,y))),h.getOverallLegendItemsCollection(p,b,f,g)})},e.prototype.interactiveHandler=function(e){var t=e.target,n=this.maps.legendSettings,r=this.maps.element.id+"_Interactive_Legend",l="Layers"===n.type?"_shapeIndex_":"Markers"===n.type?"_MarkerIndex_":"_BubbleIndex_";if(t.id.indexOf(l)>1){var s=parseFloat(t.id.split("_LayerIndex_")[1].split("_")[0]),d=parseFloat(t.id.split(/_dataIndex_/i)[1].split("_")[0]),p=void 0,h=void 0,c=void 0;i.i(a.isNullOrUndefined)(i.i(o._35)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._35)(r,this.maps.element.id));var u=this.maps.layersCollection[s],m="Layers"===n.type?u.visible:"Markers"===n.type?u.markerSettings[parseFloat(t.id.split("_MarkerIndex_")[1].split("_")[0])].visible:this.maps.getBubbleVisible(this.maps.layersCollection[s]);if(n.visible&&this.legendRenderingCollections.length>0&&"Interactive"===n.mode&&m)for(var g=this.maps.svgObject.getBoundingClientRect(),y=0;y<this.legendCollection.length;y++){var f=this.legendCollection[y],b=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+y,this.maps.element.id),v=b.getBoundingClientRect(),S=new o.F(Math.abs(v.left-g.left),Math.abs(v.top-g.top),v.width,v.height);if(p=b.getAttribute("fill"),h=n.shapeBorder.color,c=n.shapeBorder.width,!i.i(a.isNullOrUndefined)(f.data))for(var _=f.data,x=0;x<_.length;x++)if(d===_[x].dataIndex&&s===_[x].layerIndex){this.renderInteractivePointer(n,p,h,r,c,S);break}}}else i.i(a.isNullOrUndefined)(i.i(o._35)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._35)(r,this.maps.element.id))},e.prototype.renderInteractivePointer=function(e,t,i,n,a,r){var l,s,d,p="None"===e.orientation?"Top"===e.position||"Bottom"===e.position?"Horizontal":"Vertical":e.orientation;r.y="Float"===e.position&&this.maps.isTileMap?r.y-this.maps.mapAreaRect.y:r.y,"Horizontal"===p?e.invertedPointer?(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height,l=" M "+s+" "+d+" L "+(s-10)+" "+(d+10)+" L "+(s+10)+" "+(d+10)+" Z "):(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s+10)+" "+(d-10)+" Z "):e.invertedPointer?(s=r.x-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s-10)+" "+(d+10)+" z "):(s=r.x+r.width-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s+10)+" "+(d-10)+" L "+(s+10)+" "+(d+10)+" z ");var h=new o.w(n,t,a,i,1,1,"",l);"Float"===e.position&&this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.renderer.drawPath(h)):this.maps.svgObject.appendChild(this.maps.renderer.drawPath(h))},e.prototype.wireEvents=function(e){a.EventHandler.add(e,a.Browser.touchStartEvent,this.changeNextPage,this)},e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(a.Browser.touchMoveEvent,this.interactiveHandler,this),this.maps.on(a.Browser.touchEndEvent,this.interactiveHandler,this),this.maps.on(n.d,this.legendClick,this))},e.prototype.markerToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].markerSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].markerSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].markerSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].markerSettings[n].border.opacity)?this.maps.layers[t].markerSettings[n].opacity:this.maps.layers[t].markerSettings[n].border.opacity).toString())},e.prototype.bubbleToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].bubbleSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].bubbleSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].bubbleSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].bubbleSettings[n].border.opacity)?this.maps.layers[t].bubbleSettings[n].opacity:this.maps.layers[t].bubbleSettings[n].border.opacity).toString())},e.prototype.legendClick=function(e){var t,n,r=this.maps.legendSettings.toggleLegendSettings.fill,l=this.maps.legendSettings.toggleLegendSettings.opacity,s=this.maps.legendSettings.toggleLegendSettings.border.color,d=this.maps.legendSettings.toggleLegendSettings.border.width,p=i.i(a.isNullOrUndefined)(this.maps.legendSettings.toggleLegendSettings.border.opacity)?this.maps.legendSettings.toggleLegendSettings.opacity:this.maps.legendSettings.toggleLegendSettings.border.opacity;if(e.parentNode.id.indexOf(this.maps.element.id+"_Legend_Index_")>-1){var h=void 0,c=parseFloat(e.parentElement.id.substr((this.maps.element.id+"_Legend_Index_").length)),u=this.legendCollection[c].data,m=u._isVisible,g=void 0;if(this.maps.legendSettings.toggleLegendSettings.enable&&("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type))for(var y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<u.length;b++)g=this.legendCollection[c].data[b],h="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex,this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(g.shape)||"Balloon"!==g.shape||(h="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id),h=h.children[0]),m&&null!==h?(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(h.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),h.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),h.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),h.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),h.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(h.setAttribute("fill",r),h.setAttribute("fill-opacity",l.toString()),h.setAttribute("stroke",s),h.setAttribute("stroke-width",d.toString()),h.setAttribute("stroke-opacity",p.toString())),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):("Markers"===this.maps.legendSettings.type?this.markerToggleSelection(h,y,f,c):this.bubbleToggleSelection(h,y,f,c),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575"),"HorizontalLine"!==this.maps.legendSettings.shape&&"VerticalLine"!==this.maps.legendSettings.shape&&"Cross"!==this.maps.legendSettings.shape||t.setAttribute("stroke",this.legendCollection[c].fill)));u._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var v=void 0;this.removeCollections(e,c);var S=this.maps.toggledLegendId.indexOf(c);-1!==S&&(m=!1);for(var f=0;f<this.maps.layers.length;f++)for(var b=0;b<u.length;b++)if(g=this.legendCollection[c].data[b],null!==(v=i.i(o._35)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_shapeIndex_"+g.shapeIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id))){var _=this.maps.toggledShapeElementId.indexOf(v.id);m?(0===b&&this.maps.toggledLegendId.push(c),-1===_&&this.maps.toggledShapeElementId.push(v.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(v.setAttribute("fill",this.maps.layers[f].shapeSettings.fill),v.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),v.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),v.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),v.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString())):(v.setAttribute("fill",r),v.setAttribute("fill-opacity",l.toString()),v.setAttribute("stroke",s),v.setAttribute("stroke-width",d.toString()),v.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[f].shapeSettings.fill,this.maps.layers[f].shapeSettings.opacity,this.maps.layers[f].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity,this.maps.layers[f].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==S&&0===b&&this.maps.toggledLegendId.splice(S,1),-1!==_&&this.maps.toggledShapeElementId.splice(_,1),v.setAttribute("fill",this.legendCollection[c].fill),v.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString()),v.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),v.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),v.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575")))}u._isVisible=!m}}else if(!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_Text")){var x=void 0,c=parseFloat(e.id.split(this.maps.element.id+"_Legend_Index_")[1]),O=void 0,u=this.legendCollection[c].data,m=u._isVisible;if(("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type)&&this.maps.legendSettings.toggleLegendSettings.enable)for(var y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<u.length;b++)O=this.legendCollection[c].data[b],x="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+O.dataIndex,this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+O.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(O.shape)||"Balloon"!==O.shape||(x="Bubbles"===this.maps.legendSettings.type?i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+O.dataIndex+"_Group",this.maps.element.id):i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+O.dataIndex+"_Group",this.maps.element.id),x=x.children[0]),m&&null!==x?(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(x.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),x.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),x.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),x.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),x.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString())):(x.setAttribute("fill",r),x.setAttribute("fill-opacity",l.toString()),x.setAttribute("stroke",s),x.setAttribute("stroke-width",d.toString()),x.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):("Markers"===this.maps.legendSettings.type?this.markerToggleSelection(x,y,f,c):this.bubbleToggleSelection(x,y,f,c),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),t.setAttribute("fill",this.legendCollection[c].fill),t.setAttribute("fill-opacity",this.legendCollection[c].opacity),t.setAttribute("stroke",this.legendCollection[c].shapeBorder.color),t.setAttribute("stroke-width",this.legendCollection[c].shapeBorder.width),t.setAttribute("stroke-opacity",this.legendCollection[c].shapeBorder.opacity),n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),n.setAttribute("fill","#757575")));u._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var M=void 0;this.removeCollections(e,c);var L=this.maps.toggledLegendId.indexOf(c);-1!==L&&(m=!1);for(var y=0;y<this.maps.layers.length;y++)for(var b=0;b<u.length;b++)if(O=this.legendCollection[c].data[b],null!==(M=i.i(o._35)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_shapeIndex_"+O.shapeIndex+"_dataIndex_"+O.dataIndex,this.maps.element.id))){var _=this.maps.toggledShapeElementId.indexOf(M.id);m?(0===b&&this.maps.toggledLegendId.push(c),-1===_&&this.maps.toggledShapeElementId.push(M.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(M.setAttribute("fill",this.maps.layers[0].shapeSettings.fill),M.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),M.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),M.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),M.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(M.setAttribute("fill",r),M.setAttribute("fill-opacity",l.toString()),M.setAttribute("stroke",s),M.setAttribute("stroke-width",d.toString()),M.setAttribute("stroke-opacity",p.toString())),null!==e&&(t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[0].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[0].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[0].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==L&&0===b&&this.maps.toggledLegendId.splice(L,1),-1!==_&&this.maps.toggledShapeElementId.splice(_,1),M.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),M.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),M.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),M.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),M.setAttribute("fill",this.legendCollection[c].fill),null!==e&&(n=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),t=i.i(o._35)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575")))}u._isVisible=!m}}},e.prototype.removeCollections=function(e,t){this.removeLegendSelectionCollection(e);var i=this.getIndexofLegend(this.maps.legendSelectionCollection,e);-1!==i&&this.maps.legendSelectionCollection.splice(i,1),-1!==this.getIndexofLegend(this.legendHighlightCollection,e)&&this.legendHighlightCollection.splice(i,1);var n=this.getIndexofLegend(this.shapeHighlightCollection,e);-1!==n&&this.shapeHighlightCollection.splice(n,1);var o=this.maps.selectedLegendElementId.indexOf(t);-1!==o&&this.maps.selectedLegendElementId.splice(o,1)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(a.Browser.touchMoveEvent,this.interactiveHandler),this.maps.off(a.Browser.touchEndEvent,this.interactiveHandler),this.maps.off(n.d,this.legendClick))},e.prototype.getLegendData=function(e,t,n,r,l,s,d){var p=[];if("[object Array]"===Object.prototype.toString.call(l))for(var h=0;h<l.length;h++){var c=l[h],u=r.indexOf(".")>-1?i.i(o.N)(n,r):n[r],m=i.i(o._15)(n[r],s,c.properties),g=i.i(a.isNullOrUndefined)(u)||"string"!=typeof u?u:u.toLowerCase(),y=!i.i(a.isNullOrUndefined)(c.properties[m])&&isNaN(c.properties[m])?c.properties[m].toLowerCase():c.properties[m];if(y===g)if("MultiPoint"!==c.geometry.type)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:-1});else for(var f=0;f<c.geometry.coordinates.length;f++)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:f})}return p},e.prototype.setToggleAttributes=function(e,t,n,o,r,l,s,d){e.setAttribute("fill",d),t.setAttribute("fill",n),t.setAttribute("fill-opacity",o.toString()),t.setAttribute("stroke",r),t.setAttribute("stroke-width",l.toString()),i.i(a.isNullOrUndefined)(s)||t.setAttribute("stroke-opacity",s.toString())},e.prototype.legendGradientColor=function(e,t){var n,o="http://www.w3.org/2000/svg";if(!i.i(a.isNullOrUndefined)(e.color)&&"object"==typeof e.color){var r=document.createElementNS(o,"linearGradient"),l=1,s=this.maps.legendSettings.position,d="Top"===s||"Bottom"===s?"100":"0",p="Top"===s||"Bottom"===s?"0":"100";r.setAttribute("id","linear_"+t+"_"+this.maps.element.id),r.setAttribute("x1","0%"),r.setAttribute("y1","0%"),r.setAttribute("x2",d+"%"),r.setAttribute("y2",p+"%");for(var h=0;h<e.color.length;h++){var c=100/(e.color.length-1),u=document.createElementNS(o,"stop");u.setAttribute("offset",h*c+"%"),u.setAttribute("stop-color",e.color[h]),u.setAttribute("stop-opacity",l.toString()),r.appendChild(u)}this.legendLinearGradient=r;var m="url(#linear_"+t+"_"+this.maps.element.id+")";this.defsElement.appendChild(r),n=m}return n},e.prototype.getModuleName=function(){return"Legend"},e.prototype.destroy=function(){this.legendCollection=[],this.legendRenderingCollections=[],this.translate=null,this.legendBorderRect=null,this.initialMapAreaRect=null,this.legendTotalRect=null,this.totalPages=[],this.legendItemRect=null,this.legendGroup=null,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.legendLinearGradient=null,this.currentLayer=null,this.defsElement=null,this.legendElement=[],this.oldShapeElement=null,this.removeEventListener(),this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e}return e.prototype.renderNavigation=function(e,t,r){var l;if(!i.i(a.isNullOrUndefined)(this.maps)){var s=void 0,d=e.navigationLineSettings,p=void 0,h=[],c=void 0,u=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=void 0,v=void 0,S=void 0,_=void 0,x=void 0,O=void 0,M=void 0,L=void 0,C=void 0,w=void 0,P=void 0,T=void 0,I=void 0;l=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_line_Group"});for(var N=0;N<d.length;N++){if(c=d[N].properties.latitude,p=d[N].properties.longitude,u=d[N].properties.visible,m=d[N].angle,g=d[N].width||1,y=d[N].color,f=d[N].properties.dashArray,O=d[N].properties.arrowSettings,S=!i.i(a.isNullOrUndefined)(O)&&O.properties.showArrow,p.length===c.length&&u)for(var k=0;k<p.length;k++){var F=this.maps.isTileMap?i.i(n._21)(new o.r(p[k],c[k]),t,this.maps.tileTranslatePoint,!0):i.i(o.h)(c[k],p[k],t,e,this.maps);h.push(F)}T=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_NavigationGroup"+N});for(var E=0;E<h.length-1;E++){m=-1>m?-1:m,m=1<m?1:m;var A=this.maps.element.id+"_LayerIndex_"+r+"_NavigationIndex_"+N+"_Line"+E,z=this.convertRadius(h[E],h[E+1]);if(m<=1&&m>0&&(v=0,h[E].x>h[E+1].x&&(v=1)),m>=-1&&m<0&&(v=1,h[E].x>h[E+1].x&&(v=0)),S){_=O.properties.color,x=O.properties.size,P=void 0===O.properties.offSet?0:O.properties.offSet;var B=Math.round(x/2);M=O.properties.position,L="Start"===M?"url(#triangle"+N+")":null,C="End"===M?"url(#triangle"+N+")":null,0!==w&&0===m&&(w="Start"===M?P:-P),w=i.i(a.isNullOrUndefined)(w)?0:w;var j=this.maps.element.id+"_triangle",U=this.maps.renderer.createDefs();U.innerHTML+='<marker id="triangle'+N+'"></marker>';var R=U.querySelector("#triangle"+N);R.setAttribute("markerWidth",x.toString()),R.setAttribute("markerHeight",x.toString()),R.setAttribute("refX",(B-w).toString()),R.setAttribute("refY",B.toString()),R.setAttribute("orient","auto");var D="M 0,0 L 0,"+x+" L "+B+", "+B+" Z";b=new o.w(j,_,g,y,1,1,f,D),s=this.maps.renderer.drawPath(b),R.appendChild(s),U.appendChild(R),T.appendChild(U)}if(m=Math.abs(m),I=0===m?"M "+h[E].x+","+h[E].y+"L "+h[E+1].x+","+h[E+1].y+" ":"M "+h[E].x+","+h[E].y+" A "+(z/2+(1-m)*z/(10*m))+" "+(z/2+(1-m)*z/(10*m))+" 0,0,"+v+" , "+h[E+1].x+","+h[E+1].y+" ",b=new o.w(A,"none",g,y,1,1,f,I),s=this.maps.renderer.drawPath(b),!i.i(a.isNullOrUndefined)(M)){"Start"===M?s.setAttribute("marker-start",L):s.setAttribute("marker-end",C)}i.i(o.V)(this.maps.selectedNavigationElementId,this.maps.navigationSelectionClass,s,"navigationlineselectionMapStyle"),T.appendChild(s),l.appendChild(T)}h=[]}}return l},e.prototype.convertRadius=function(e,t){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))},e.prototype.getModuleName=function(){return"NavigationLine"},e.prototype.destroy=function(){this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return f});var n=i(1),o=(i.n(n),i(6)),a=(i.n(o),i(0)),r=i(4),l=i(11),s=i(3),d=i(5),p=i(10),h=i(0),c=i(12),u=i(2),m=i(25),g=(i.n(m),this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()),y=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},f=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.isTileMap=!1,r.isResize=!1,r.isReset=!1,r.baseSize=new a.a(0,0),r.translatePoint=new a.r(0,0),r.baseTranslatePoint=new a.r(0,0),r.zoomTranslatePoint=new a.r(0,0),r.markerZoomedState=!0,r.zoomPersistence=!1,r.defaultState=!0,r.centerPositionChanged=!1,r.isTileMapSubLayer=!1,r.markerNullCount=0,r.tileTranslatePoint=new a.r(0,0),r.baseTileTranslatePoint=new a.r(0,0),r.isDevice=!1,r.staticMapZoom=r.zoomSettings.enable?r.zoomSettings.zoomFactor:0,r.zoomNotApplied=!1,r.dataLabelShape=[],r.zoomShapeCollection=[],r.zoomLabelPositions=[],r.mouseDownEvent={x:null,y:null},r.mouseClickEvent={x:null,y:null},r.selectedElementId=[],r.selectedMarkerElementId=[],r.selectedBubbleElementId=[],r.selectedNavigationElementId=[],r.selectedLegendElementId=[],r.legendSelectionCollection=[],r.shapeSelections=!0,r.legendSelection=!0,r.toggledLegendId=[],r.toggledShapeElementId=[],r.checkInitialRender=!0,r.initialTileTranslate=new a.r(0,0),r.initialCheck=!0,r.applyZoomReset=!1,r.markerClusterExpandCheck=!1,r.markerClusterExpand=!1,r.shapeSelectionItem=[],i.i(n.setValue)("mergePersistData",r.mergePersistMapsData,r),r}return g(t,e),Object.defineProperty(t.prototype,"isShapeSelected",{get:function(){return this.mapSelect},enumerable:!0,configurable:!0}),t.prototype.mergePersistMapsData=function(){var e,t;try{t=window.localStorage}catch(e){t=null}if(i.i(n.isNullOrUndefined)(t)||(e=window.localStorage.getItem(this.getModuleName()+this.element.id)),!i.i(n.isNullOrUndefined)(e)&&""!==e){var o=JSON.parse(e),a=Object.keys(o);this.isProtectedOnChange=!0;for(var r=0,l=a;r<l.length;r++){var s=l[r];"object"!=typeof this[s]||i.i(n.isNullOrUndefined)(this[s])?this[s]=o[s]:i.i(n.extend)(this[s],o[s])}this.isProtectedOnChange=!1}},t.prototype.getLocalizedLabel=function(e){return this.localeObject.getConstant(e)},t.prototype.preRender=function(){this.isDevice=n.Browser.isDevice,this.initPrivateVariable(),this.allowServerDataBinding=!1,this.unWireEVents(),this.wireEVents(),this.setCulture()},t.prototype.renderElements=function(){this.isDestroyed||(this.trigger(s.a,{maps:this}),this.createSVG(),this.findBaseAndSubLayers(),this.createSecondaryElement(),this.addTabIndex(),this.themeStyle=i.i(d.c)(this.theme),this.renderBorder(),this.renderTitle(this.titleSettings,"title",null,null),this.renderArea(),this.processRequestJsonData(),this.renderComplete(),this.isAddLayer=!!this.isTileMap&&this.isAddLayer)},t.prototype.render=function(){this.renderElements()},t.prototype.processRequestJsonData=function(){var e=this,t=this.layersCollection.length-1;this.serverProcess={request:0,response:0};var o,a;Array.prototype.forEach.call(this.layersCollection,function(r,l){if(r.shapeData instanceof m.DataManager){e.serverProcess.request++,a=r.shapeData,o=r.query instanceof m.Query?r.query:new m.Query;var s=a.executeQuery(o);s.then(function(t){e.processResponseJsonData("DataManager",t,r,"ShapeData")})}else(r.shapeData instanceof h._59||r.shapeData)&&(i.i(n.isNullOrUndefined)(r.shapeData.dataOptions)||e.processAjaxRequest(r,r.shapeData,"ShapeData"));if(r.dataSource instanceof m.DataManager){e.serverProcess.request++,a=r.dataSource,o=r.query instanceof m.Query?r.query:new m.Query;var s=a.executeQuery(o);s.then(function(e){r.dataSource=i.i(h._63)(e)})}if(r.markerSettings.length>0)for(var d=0;d<r.markerSettings.length;d++)!function(t){if(r.markerSettings[t].dataSource instanceof m.DataManager){e.serverProcess.request++,a=r.markerSettings[t].dataSource,o=r.markerSettings[t].query instanceof m.Query?r.markerSettings[t].query:new m.Query;a.executeQuery(o).then(function(e){r.markerSettings[t].dataSource=i.i(h._63)(e)})}}(d);if(r.bubbleSettings.length>0)for(var d=0;d<r.bubbleSettings.length;d++)!function(t){if(r.bubbleSettings[t].dataSource instanceof m.DataManager){e.serverProcess.request++,a=r.bubbleSettings[t].dataSource,o=r.bubbleSettings[t].query instanceof m.Query?r.bubbleSettings[t].query:new m.Query;a.executeQuery(o).then(function(e){r.bubbleSettings[t].dataSource=i.i(h._63)(e)})}}(d);(r.dataSource instanceof h._59||!i.i(n.isNullOrUndefined)(r.dataSource.dataOptions))&&e.processAjaxRequest(r,r.dataSource,"DataSource"),e.serverProcess.request===e.serverProcess.response&&t===l&&e.processResponseJsonData(null)})},t.prototype.processAjaxRequest=function(e,t,i){var o=this;this.serverProcess.request++;var a=new n.Ajax(t.dataOptions,t.type,t.async,t.contentType);a.onSuccess=function(t){o.processResponseJsonData("Ajax",t,e,i)},a.send(t.sendData)},t.prototype.processResponseJsonData=function(e,t,o,a){if(this.serverProcess.response++,e&&("ShapeData"===a?o.shapeData="DataManager"===e?i.i(h._63)(t):JSON.parse(t):o.dataSource="DataManager"===e?i.i(h._63)(t):JSON.parse("["+t+"]")[0]),i.i(n.isNullOrUndefined)(e)||this.serverProcess.request!==this.serverProcess.response)i.i(n.isNullOrUndefined)(e)&&this.renderMap();else{var r=this.layersCollection;this.layersCollection=[];for(var l=0;l<r.length;l++)r[l].isBaseLayer&&this.layersCollection.push(r[l]);for(var s=0;s<r.length;s++)r[s].isBaseLayer||this.layersCollection.push(r[s]);this.renderMap()}},t.prototype.renderMap=function(){this.legendModule&&this.legendSettings.visible&&this.legendModule.renderLegend(),this.createTile(),this.zoomSettings.enable&&this.zoomModule&&this.zoomModule.createZoomingToolbars(),i.i(n.isNullOrUndefined)(this.dataLabelModule)||(this.dataLabelModule.dataLabelCollections=[],this.dataLabelShape=[]),this.mapLayerPanel.measureLayerPanel(),i.i(n.isNullOrUndefined)(this.svgObject)||this.element.appendChild(this.svgObject);for(var e=this.getExtraPosition(),t=0;t<this.layers.length;t++){if(0!==e.x||0!==e.y){var o=document.getElementById(this.element.id+"_LayerIndex_"+t+"_Markers_Template_Group");i.i(n.isNullOrUndefined)(o)||(o.style.top=this.mapAreaRect.y+e.y+"px",o.style.left=this.mapAreaRect.x+e.x+"px")}if(this.layers[t].selectionSettings&&this.layers[t].selectionSettings.enable&&this.layers[t].initialShapeSelection.length>0&&this.checkInitialRender){var a=this.layers[t].selectionSettings.enableMultiSelect;this.layers[t].selectionSettings.enableMultiSelect=a||!0;for(var r=this.layers[t].initialShapeSelection,l=0;l<this.layers[t].initialShapeSelection.length;l++)this.shapeSelection(t,r[l].shapePath,r[l].shapeValue,!0);this.layers[t].selectionSettings.enableMultiSelect=a,t===this.layers.length-1&&(this.checkInitialRender=!1)}if(!this.isResize)for(var d=0;d<this.layers[t].markerSettings.length;d++)if(this.layers[t].markerSettings[d].selectionSettings&&this.layers[t].markerSettings[d].selectionSettings.enable&&this.layers[t].markerSettings[d].initialMarkerSelection.length>0)for(var p=this.layers[t].markerSettings[d].initialMarkerSelection,l=0;l<p.length;l++)this.markerInitialSelection(t,d,this.layers[t].markerSettings[d],p[l].latitude,p[l].longitude)}if(!i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_tile_parent"))){var c,u=this.svgObject.getBoundingClientRect(),m=document.getElementById(this.element.id),g=document.getElementById(this.element.id+"_tile_parent"),y=document.getElementById(this.element.id+"_tiles"),f=g.getBoundingClientRect(),b=void 0,v=void 0;v=parseFloat(g.style.left);var S=i.i(h.u)(this.titleSettings.text,this.titleSettings.textStyle),_=i.i(h.u)(this.titleSettings.subtitleSettings.text,this.titleSettings.subtitleSettings.textStyle);this.isTileMap&&this.isTileMapSubLayer&&"Bottom"===this.legendSettings.position&&this.legendSettings.visible?"Default"!==this.legendSettings.mode?c=0!==S.width&&0!==S.height?parseFloat(g.style.top)+_.height/2-this.legendModule.legendBorderRect.height/2:parseFloat(g.style.top)-this.mapAreaRect.y:(v=this.legendModule.legendBorderRect.x,c=0!==S.width&&0!==S.height?parseFloat(g.style.top)+_.height/2-this.legendModule.legendBorderRect.y:parseFloat(g.style.top)+_.height/2):(b=u.bottom-f.bottom-m.offsetTop,c=parseFloat(g.style.top)),c=b<=11?c:i.i(n.isNullOrUndefined)(this.legendModule)||"Bottom"!==this.legendSettings.position?2*c:this.mapAreaRect.y,v=b<=11?v:i.i(n.isNullOrUndefined)(this.legendModule)?2*v:v,g.style.top=c+"px",g.style.left=v+"px",y.style.top=c+"px",y.style.left=v+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(g.style.height=y.style.height=this.legendModule.legendTotalRect.height+"px",g.style.width=y.style.width=this.legendModule.legendTotalRect.width+"px")}this.arrangeTemplate(),this.annotationsModule&&"0px"!==this.width&&"0px"!==this.height&&"0%"!==this.width&&"0%"!==this.height&&this.annotationsModule.renderAnnotationElements(),this.element.style.outline="none",this.element.style.position="relative";for(var t=0;t<document.getElementsByTagName("path").length-1;t++)document.getElementsByTagName("path")[t].id.indexOf("shapeIndex")>-1&&(document.getElementsByTagName("path")[t].style.outline="none");this.zoomingChange(),this.isZoomByPosition||this.zoomNotApplied||this.trigger(s.b,{maps:this,isResized:this.isResize}),this.isResize=!1},t.prototype.markerSelection=function(e,t,n,o){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,target:n.id,cancel:!1,data:o,maps:t};i.i(a._31)("MarkerselectionMap")?i.i(a._38)("MarkerselectionMap","MarkerselectionMapStyle",l):document.body.appendChild(i.i(a._37)("MarkerselectionMap","MarkerselectionMapStyle",l)),(0===this.selectedMarkerElementId.length||e.enableMultiSelect)&&("g"===n.tagName?(n.children[0].setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.children[0].id)):(n.setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.id)))},t.prototype.markerInitialSelection=function(e,t,n,o,r){var l=n.selectionSettings;if(l.enable)for(var s=0;s<n.dataSource.length;s++){var d=n.dataSource[s];if(d.latitude===o&&d.longitude===r){var p=this.element.id+"_LayerIndex_"+e+"_MarkerIndex_"+t+"_dataIndex_"+s;this.markerSelection(l,this,i.i(a._31)(p),d)}}},t.prototype.renderArea=function(){var e=this.mapsArea.border.width,t=this.mapsArea.background;if(e>0||t||this.themeStyle.areaBackgroundColor){var o={opacity:i.i(n.isNullOrUndefined)(this.mapsArea.border.opacity)?1:this.mapsArea.border.opacity,color:this.mapsArea.border.color,width:this.mapsArea.border.width},a=new h.y(this.element.id+"_MapAreaBorder",t||this.themeStyle.areaBackgroundColor,o,1,this.mapAreaRect);this.svgObject.appendChild(this.renderer.drawRectangle(a))}},t.prototype.addTabIndex=function(){this.element.setAttribute("aria-label",this.description||"Maps Element"),this.element.setAttribute("role",""),this.element.tabIndex=this.tabIndex},t.prototype.zoomingChange=function(){var e,t;if(i.i(h._27)(this.element.id+"_Layer_Collections")&&this.zoomModule&&(this.zoomModule.layerCollectionEle=i.i(h._27)(this.element.id+"_Layer_Collections")),this.isTileMap&&i.i(h._27)(this.element.id+"_Tile_SVG")&&i.i(h._27)(this.element.id+"_tile_parent")){var o=i.i(h._27)(this.element.id+"_tile_parent"),a=i.i(h._27)(this.element.id+"_Tile_SVG"),r=i.i(h._27)(this.element.id+"_Tile_SVG_Parent"),l=o.getBoundingClientRect(),s=a.getBoundingClientRect();e=l.left-s.left,t=l.top-s.top,r.style.left=e+"px",r.style.top=t+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(o.style.width=a.style.width=this.legendModule.legendTotalRect.width.toString(),o.style.height=a.style.height=this.legendModule.legendTotalRect.height.toString(),r.style.width=this.legendModule.legendTotalRect.width+"px",r.style.height=this.legendModule.legendTotalRect.height+"px");var d=document.getElementsByClassName("template");if(!i.i(n.isNullOrUndefined)(d)&&d.length>0)for(var p=0;p<d.length;p++){var c=d[p];c.style.left=e+"px",c.style.top=t+"px"}}if(this.zoomSettings.zoomFactor>=0){this.zoomModule&&this.zoomModule.toolBarGroup&&this.zoomSettings.enable&&this.zoomModule.alignToolBar();var m=document.getElementById(this.element.id+"_Layer_Collections");if(!i.i(n.isNullOrUndefined)(m)&&m.childElementCount>0)for(var p=0;p<m.childNodes.length;p++){var g=m.childNodes[p];if("g"===g.tagName&&-1===g.id.indexOf("_Legend_Group"))for(var y=parseFloat(g.id.split("_LayerIndex_")[1].split("_")[0]),f=0;f<g.childNodes.length;f++){var b=g.childNodes[f];b.id.indexOf("_Markers_Group")>-1||b.id.indexOf("_bubble_Group")>-1||b.id.indexOf("_dataLableIndex_Group")>-1||i.i(u._114)(b,y,this.scale,this)}}this.zoomModule&&(this.previousScale!==this.scale||this.zoomNotApplied||this.isZoomByPosition)&&this.zoomModule.applyTransform(this,!0)}},t.prototype.createSecondaryElement=function(){if(i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_Secondary_Element"))){var e=i.i(n.createElement)("div",{id:this.element.id+"_Secondary_Element"});e.style.cssText="position: relative;z-index:2;",this.element.appendChild(e)}},t.prototype.arrangeTemplate=function(){document.getElementById(this.element.id+"_Legend_Border")&&(document.getElementById(this.element.id+"_Legend_Border").style.pointerEvents="none");var e=document.getElementsByClassName(this.element.id+"_template");if(!i.i(n.isNullOrUndefined)(e)&&e.length>0&&i.i(h._27)(this.element.id+"_Layer_Collections")&&!this.isTileMap)for(var t=0;t<e.length;t++){var o=0,a=0,r=e[t];if(!i.i(n.isNullOrUndefined)(r)&&r.childElementCount>0){var l=i.i(h._27)(this.element.id+"_Layer_Collections").getBoundingClientRect(),s=i.i(h._27)(r.id).getBoundingClientRect();-1===r.id.indexOf("Marker")&&(o=this.isTileMap?0:l.left<s.left?-Math.abs(s.left-l.left):Math.abs(s.left-l.left),a=this.isTileMap?0:l.top<s.top?-Math.abs(s.top-l.top):Math.abs(s.top-l.top));for(var d=0;d<r.childElementCount;d++){var p=r.childNodes[d];if(-1!==p.id.indexOf("Marker")){var c=i.i(h._27)(p.id).getBoundingClientRect();p.style.left=parseFloat(p.style.left)-(this.isTileMap?0:c.width/2)+"px",p.style.top=parseFloat(p.style.top)-(this.isTileMap?0:c.height/2)+"px"}else p.style.left=parseFloat(p.style.left)+o+"px",p.style.top=parseFloat(p.style.top)+a+"px",p.style.transform="translate(-50%, -50%)"}}}},t.prototype.createTile=function(){var e=this.layersCollection[0];if(e.isBaseLayer&&("OSM"===e.layerType||"Bing"===e.layerType||"GoogleStaticMap"===e.layerType||"Google"===e.layerType||!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate)){i.i(a._22)(this.element.id+"_tile_parent"),i.i(a._22)(this.element.id+"_tiles"),i.i(a._22)("animated_tiles");var t=i.i(n.createElement)("div",{id:this.element.id+"_tile_parent"});t.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;";var o=i.i(n.createElement)("div",{id:this.element.id+"_tiles"});o.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;",this.element.appendChild(t),this.element.appendChild(o)}},t.prototype.initPrivateVariable=function(){if(""===this.element.id){var e=document.getElementsByClassName("e-maps").length;this.element.id="maps_control_"+e}this.renderer=new o.SvgRenderer(this.element.id),this.mapLayerPanel=new p.a(this)},t.prototype.findBaseAndSubLayers=function(){var e=this,t=this.baseLayerIndex,o=[],a=[];this.layersCollection=[],Array.prototype.forEach.call(this.layers,function(e){"Layer"===e.type?o.push(e):a.push(e)});for(var r=0;r<o.length;r++){var l=o[r];if(l.visible&&t===r){l.isBaseLayer=!0,this.isTileMap=!("Geometry"===l.layerType&&!i.i(n.isNullOrUndefined)(l.shapeData)),this.layersCollection.push(l);break}if(r===o.length-1){this.layersCollection.push(o[0]);break}}a.map(function(t){t.visible&&e.layersCollection.push(t)})},t.prototype.renderBorder=function(){var e=this.border.width,t=this.svgObject.querySelector("#"+this.element.id+"_MapBorder");if((e>0||this.background||this.themeStyle.backgroundColor)&&i.i(n.isNullOrUndefined)(t)){var o={opacity:i.i(n.isNullOrUndefined)(this.border.opacity)?1:this.border.opacity,color:this.border.color,width:this.border.width},a=new h.y(this.element.id+"_MapBorder",this.background||this.themeStyle.backgroundColor,o,1,new h.F(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e));this.svgObject.appendChild(this.renderer.drawRectangle(a))}else t.setAttribute("fill",this.background||this.themeStyle.backgroundColor)},t.prototype.renderTitle=function(e,t,o,a){var r,l={size:e.textStyle.size,color:e.textStyle.color,fontFamily:e.textStyle.fontFamily,fontWeight:e.textStyle.fontWeight,fontStyle:e.textStyle.fontStyle,opacity:e.textStyle.opacity},s=Math.abs(this.margin.left+this.margin.right-this.availableSize.width);if(l.fontFamily=i.i(n.isNullOrUndefined)(l.fontFamily)?this.themeStyle.fontFamily:l.fontFamily,l.fontWeight=l.fontWeight||this.themeStyle.titleFontWeight,l.size="title"===t?l.size||this.themeStyle.titleFontSize:l.size||d.b.mapsSubTitleFont.size,e.text){i.i(n.isNullOrUndefined)(a)&&(a=this.renderer.createGroup({id:this.element.id+"_Title_Group"}));var p=i.i(h._20)(s,e.text,l),c=i.i(h.u)(p,l),u=i.i(n.isNullOrUndefined)(o)?new h.F(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height):o,m=i.i(h._21)(u,e.alignment,c,t),g=new h.v(this.element.id+"_Map_"+t,m.x,m.y,"start",p),y=new h.F(m.x,m.y,c.width,c.height),f=i.i(h.H)(g,l,l.color||("title"===t?this.themeStyle.titleFontColor:this.themeStyle.subTitleFontColor),a);f.setAttribute("aria-label",this.description||e.text),f.setAttribute("role",""),("title"===t&&!e.subtitleSettings.text||"subtitle"===t)&&(r=Math.abs(y.y+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new h.F(this.margin.left,y.y+10,s,r-10)),"subtitle"!==t&&e.subtitleSettings.text?this.renderTitle(e.subtitleSettings,"subtitle",y,a):this.svgObject.appendChild(a)}else r=Math.abs(this.margin.top+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new h.F(this.margin.left,this.margin.top,s,r)},t.prototype.createSVG=function(){this.removeSvg(),i.i(a.d)(this)},t.prototype.removeSvg=function(){if(i.i(a._22)(this.element.id+"_Secondary_Element"),i.i(a._22)(this.element.id+"_tile_parent"),i.i(a._22)(this.element.id+"_tiles"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&i.i(n.remove)(this.svgObject)}this.clearTemplate()},t.prototype.wireEVents=function(){n.EventHandler.add(this.element,"click",this.mapsOnClick,this),n.EventHandler.add(this.element,"dblclick",this.mapsOnDoubleClick,this),n.EventHandler.add(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap,this),n.EventHandler.add(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap,this),n.EventHandler.add(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap,this),n.EventHandler.add(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap,this),n.EventHandler.add(this.element,"keydown",this.keyDownHandler,this),n.EventHandler.add(this.element,"keyup",this.keyUpHandler,this),this.resizeEvent=this.mapsOnResize.bind(this),window.addEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.unWireEVents=function(){n.EventHandler.remove(this.element,"click",this.mapsOnClick),n.EventHandler.remove(this.element,"dblclick",this.mapsOnDoubleClick),n.EventHandler.remove(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap),n.EventHandler.remove(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap),n.EventHandler.remove(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap),n.EventHandler.remove(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap),n.EventHandler.remove(this.element,"keydown",this.keyDownHandler),n.EventHandler.remove(this.element,"keyup",this.keyUpHandler),window.removeEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.mouseLeaveOnMap=function(e){document.getElementsByClassName("highlightMapStyle").length>0&&this.legendModule&&(this.legendModule.removeShapeHighlightCollection(),i.i(a._40)(document.getElementsByClassName("highlightMapStyle")[0]))},t.prototype.keyUpHandler=function(e){var t=e.target.id;this.isTileMap&&this.removeTileMap(),"Tab"===e.code&&t.indexOf("_LayerIndex_")>-1&&t.indexOf("shapeIndex")>-1?this.keyboardHighlightSelection(t,e.type):-1===t.indexOf("_LayerIndex_")&&-1===t.indexOf("shapeIndex")&&i.i(h._34)("highlightMapStyle").length>0&&(i.i(a._40)(i.i(h._34)("highlightMapStyle")[0]),this.legendSettings.visible&&this.legendModule&&this.legendModule.removeShapeHighlightCollection())},t.prototype.keyboardHighlightSelection=function(e,t){var o=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),a=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),r=this.layers[o].shapeData.features.length>a?this.layers[o].shapeData.features[a].properties:null,l=parseInt(e.split("_dataIndex_")[1].split("_")[0],10),s=i.i(n.isNullOrUndefined)(l)?null:this.layers[o].dataSource[l];this.layers[o].selectionSettings.enable&&"keydown"===t&&this.selectionModule?(this.selectionModule.selectionsettings=this.layers[o].selectionSettings,this.selectionModule.selectionType="Shape",this.selectionModule.selectElement(event.target,o,s,r)):this.highlightModule&&this.layers[o].highlightSettings.enable&&"keyup"===t&&!event.target.classList.contains("ShapeselectionMapStyle")&&(this.highlightModule.highlightSettings=this.layers[o].highlightSettings,this.highlightModule.handleHighlight(event.target,o,s,r))},t.prototype.keyDownHandler=function(e){var t=this.zoomModule;if(("ArrowUp"===e.code||"ArrowDown"===e.code||"ArrowLeft"===e.code||"ArrowRight"===e.code)&&t){var o=document.getElementById(this.element.id+"_animated_tiles");this.isTileMap&&!i.i(n.isNullOrUndefined)(o)&&(this.currentTiles=o.cloneNode(!0))}if("+"!==e.key&&"Equal"!==e.code||!t)if("-"!==e.key&&"Minus"!==e.code||!t)if(82===e.keyCode&&t)t.performZoomingByToolBar("reset");else if("ArrowUp"!==e.code&&"ArrowDown"!==e.code||!t)if("ArrowLeft"!==e.code&&"ArrowRight"!==e.code||!t){if("Enter"===e.code){var r=e.target.id;if(e.preventDefault(),this.legendModule&&(r.indexOf("_Left_Page_Rect")>-1||r.indexOf("_Right_Page_Rect")>-1)){this.mapAreaRect=this.legendModule.initialMapAreaRect,this.legendModule.currentPage=r.indexOf("_Left_Page_")>-1?this.legendModule.currentPage-1:this.legendModule.currentPage+1,this.legendModule.legendGroup=this.renderer.createGroup({id:this.element.id+"_Legend_Group"}),this.legendModule.drawLegendItem(this.legendModule.currentPage);var l=document.getElementById(this.element.id+"_Paging_Text").textContent,s=l.split("/").map(Number);r.indexOf("_Left_Page_Rect")>-1?(1!==s[0]&&e.target.focus(),e.target.style.outlineColor=s[0]-1!==s[1]?"":"transparent"):r.indexOf("_Right_Page_Rect")>-1&&(s[0]!==s[1]&&e.target.focus(),e.target.style.outlineColor=s[0]!==s[1]+1?"":"transparent"),i.i(a._35)(this.element.id+"_Legend_Border",this.element.id)&&(i.i(a._35)(this.element.id+"_Legend_Border",this.element.id).style.pointerEvents="none")}r.indexOf("shapeIndex")>-1&&this.keyboardHighlightSelection(r,e.type)}}else e.preventDefault(),t.mouseDownLatLong.y=0,t.mouseMoveLatLong.x=this.mapAreaRect.width/7,t.panning("None","ArrowLeft"===e.code?-t.mouseMoveLatLong.x:t.mouseMoveLatLong.x,t.mouseDownLatLong.y,e),t.mouseDownLatLong.x=t.mouseMoveLatLong.x;else e.preventDefault(),t.mouseDownLatLong.x=0,t.mouseMoveLatLong.y=this.mapAreaRect.height/7,t.panning("None",t.mouseDownLatLong.x,"ArrowUp"===e.code?-t.mouseMoveLatLong.y:t.mouseMoveLatLong.y,e),t.mouseDownLatLong.y=t.mouseMoveLatLong.y;else t.performZoomingByToolBar("zoomout");else t.performZoomingByToolBar("zoomin")},t.prototype.SelectedElement=function(e){var t=!1;return"ShapeselectionMapStyle"===e.getAttribute("class")&&(t=!0),t},t.prototype.mapsOnClick=function(e){var t=this,o=e.target,a=o.id,r=null,l=null;if(this.mouseClickEvent={x:e.x,y:e.y},-1===o.id.indexOf("_ToolBar")){var d=this.getClickLocation(a,e.pageX,e.pageY,o,e.layerX,e.layerY);i.i(n.isNullOrUndefined)(d)||(r=d.latitude,l=d.longitude);var p={cancel:!1,name:s.c,target:a,x:e.clientX,y:e.clientY,latitude:r,longitude:l,isShapeSelected:this.SelectedElement(o)};this.onclick?(p.name=s.d,this.trigger("onclick",p,function(i){t.clickHandler(e,p,o)})):this.trigger("click",p,function(i){t.clickHandler(e,p,o)})}},t.prototype.clickHandler=function(e,t,n){n.id.indexOf("shapeIndex")>-1&&(this.mergeCluster(),i.i(a._31)(this.element.id+"_mapsTooltip")&&this.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._22)(this.element.id+"_mapsTooltip")),this.markerModule&&this.markerModule.markerClusterClick(e),t.cancel||this.notify(s.c,n),t.cancel||-1===n.id.indexOf("shapeIndex")||this.triggerShapeSelection(n)},t.prototype.triggerShapeSelection=function(e){var t=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),o=i.i(a._33)(e.id,this.layers[t].selectionSettings,this,s.i);o.cancel||!this.selectionModule||i.i(n.isNullOrUndefined)(this.shapeSelected)?o.cancel&&this.selectionModule&&i.i(n.isNullOrUndefined)(o.data)&&(i.i(a._40)(e),this.selectionModule.removedSelectionList(e)):i.i(a._38)(this.selectionModule.selectionType+"selectionMap",this.selectionModule.selectionType+"selectionMapStyle",o)},t.prototype.getClickLocation=function(e,t,n,o,r,l){var s,d=0;if(-1===e.indexOf("_LayerIndex_")||this.isTileMap||parseInt(this.mouseDownEvent.x,10)!==parseInt(this.mouseClickEvent.x,10)||parseInt(this.mouseDownEvent.y,10)!==parseInt(this.mouseClickEvent.y,10))this.isTileMap&&parseInt(this.mouseDownEvent.x,10)===parseInt(this.mouseClickEvent.x,10)&&parseInt(this.mouseDownEvent.y,10)===parseInt(this.mouseClickEvent.y,10)&&(s=this.getTileGeoLocation(r,l));else if(d=parseFloat(e.split("_LayerIndex_")[1].split("_")[0]),"Normal"===this.layers[d].geometryType)if(e.indexOf("_shapeIndex_")>-1){var p=i.i(a.e)(t,n,o.parentElement),h=Math.abs(-this.baseMapBounds.longitude.min*this.mapLayerPanel.currentFactor),c=Math.abs(this.baseMapBounds.latitude.max*this.mapLayerPanel.currentFactor);s={latitude:Math.abs(this.baseMapBounds.latitude.max-p.y/this.mapLayerPanel.currentFactor),longitude:Math.abs(p.x/this.mapLayerPanel.currentFactor+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&h>p.x&&(s.longitude=-s.longitude),this.baseMapBounds.latitude.min<0&&c>p.y&&(s.latitude=-s.latitude)}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule){var u=parseInt(e.split("_MarkerIndex_")[1].split("_")[0],10),m=parseInt(e.split("_dataIndex_")[1].split("_")[0],10);if(isNaN(u)||isNaN(m))s={latitude:null,longitude:null};else{var g=this.layers[d].markerSettings[u].dataSource[m];s={latitude:g.latitude,longitude:g.longitude}}}else s={latitude:null,longitude:null};else s=this.getGeoLocation(d,r,l);return s},t.prototype.removeTileMap=function(){var e=document.getElementById(this.element.id+"_animated_tiles");if(!i.i(n.isNullOrUndefined)(this.currentTiles)&&e.childElementCount<this.currentTiles.childElementCount)for(var t=e.childElementCount-1;t>=this.currentTiles.childElementCount;t--)e.removeChild(e.children[t]);this.currentTiles=null},t.prototype.mouseEndOnMap=function(e){var t,o,a,r=e.target,l=r.id;this.element.getBoundingClientRect(),e.target;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,a=e,t=a.changedTouches[0].pageX,o=a.changedTouches[0].pageY,a.target,this.mouseClickEvent={x:t,y:o}):(this.isTouch="touch"===e.pointerType,t=e.pageX,o=e.pageY,e.target),this.isTileMap&&this.removeTileMap(),this.isTouch){if(-1===r.id.indexOf("_ToolBar")){var s=this.getClickLocation(l,t,o,r,t,o);i.i(n.isNullOrUndefined)(s)||(s.latitude,s.longitude)}this.titleTooltip(e,t,o,!0),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)}return this.notify(n.Browser.touchEndEvent,e),e.cancelable&&!this.isTouch&&e.preventDefault(),!1},t.prototype.mouseDownOnMap=function(e){this.mouseDownEvent={x:e.x,y:e.y},-1!==e.type.indexOf("touch")&&e.changedTouches&&(this.mouseDownEvent={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY});var t=(this.element.getBoundingClientRect(),e.target),o=document.getElementById(this.element.id+"_animated_tiles");if(this.isTileMap&&!i.i(n.isNullOrUndefined)(o)&&(this.currentTiles=o.cloneNode(!0)),-1===t.id.indexOf("_ToolBar")){var a=this.markerModule;(t.id.indexOf("shapeIndex")>-1||t.id.indexOf("Tile")>-1)&&this.mergeCluster(),a&&(a.markerClick(e),a.markerClusterClick(e)),this.bubbleModule&&this.bubbleModule.bubbleClick(e)}this.notify(n.Browser.touchStartEvent,e)},t.prototype.mergeCluster=function(){this.markerModule&&this.markerModule.sameMarkerData.length>0&&(!this.zoomModule||this.zoomModule.isSingleClick)&&(i.i(a.R)(this.markerModule.sameMarkerData,this,i.i(a._31)(this.element.id+"_Markers_Group")),this.markerModule.sameMarkerData=[])},t.prototype.mapsOnDoubleClick=function(e){this.notify("dblclick",e);var t,i=e.target,n=i.id,o=0,a=null,r=null;if(-1===i.id.indexOf("_ToolBar")){-1===i.id.indexOf("_LayerIndex_")||this.isTileMap||this.mouseDownEvent.x!==e.clientX||this.mouseDownEvent.y!==e.clientY?this.isTileMap&&this.mouseDownEvent.x===e.clientX&&this.mouseDownEvent.y===e.clientY&&(t=this.getTileGeoLocation(e.layerX,e.layerY),a=t.latitude,r=t.longitude):(o=parseFloat(i.id.split("_LayerIndex_")[1].split("_")[0]),t=this.getGeoLocation(o,e.layerX,e.layerY),a=t.latitude,r=t.longitude);var l={cancel:!1,name:s.f,x:e.clientX,y:e.clientY,target:n,latitude:a,longitude:r,isShapeSelected:null};this.trigger("doubleClick",l)}},t.prototype.mouseMoveOnMap=function(e){"touchmove"===e.type?e.target:e.target,this.markerModule&&(this.markerModule.markerMove(e),this.markerModule.markerClusterMouseMove(e)),this.bubbleModule&&this.bubbleModule.bubbleMove(e),this.onMouseMove(e),this.notify(n.Browser.touchMoveEvent,e)},t.prototype.onMouseMove=function(e){e.target;return this.isTouch||(this.titleTooltip(e,e.pageX,e.pageY),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)),!1},t.prototype.legendTooltip=function(e,t,n,o){var r,l,s=e.target.id,d=this.legendModule.currentPage,p=e.target.id.split("_Index_")[1];d=this.legendModule.totalPages.length<=this.legendModule.currentPage?this.legendModule.totalPages.length-1:this.legendModule.currentPage<0?0:this.legendModule.currentPage;for(var h=0!==this.legendModule.totalPages.length?this.legendModule.totalPages[d].Collection.length:this.legendModule.totalPages.length,c=0;c<h;c++)l=this.legendModule.totalPages[d].Collection[c],r=l.DisplayText,s=e.target.id,p=e.target.id.split("_Index_")[1],s===this.element.id+"_Legend_Text_Index_"+p&&e.target.textContent.indexOf("...")>-1&&l.idIndex===parseInt(p,10)&&i.i(a._43)(r,this.legendSettings.textStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Legend_Text_Tooltip",i.i(a._31)(this.element.id+"_Secondary_Element"),o);s!==this.element.id+"_Legend_Text_Index_"+p&&i.i(a._22)(this.element.id+"_EJ2_Legend_Text_Tooltip")},t.prototype.titleTooltip=function(e,t,n,o){var r=e.target.id;r===this.element.id+"_LegendTitle"&&e.target.textContent.indexOf("...")>-1?i.i(a._43)(this.legendSettings.title.text,this.legendSettings.titleStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_LegendTitle_Tooltip",i.i(a._31)(this.element.id+"_Secondary_Element"),o):i.i(a._22)(this.element.id+"_EJ2_LegendTitle_Tooltip"),r===this.element.id+"_Map_title"&&e.target.textContent.indexOf("...")>-1?i.i(a._43)(this.titleSettings.text,this.titleSettings.textStyle.size||this.themeStyle.titleFontSize,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Title_Tooltip",i.i(a._31)(this.element.id+"_Secondary_Element"),o):i.i(a._22)(this.element.id+"_EJ2_Title_Tooltip")},t.prototype.mapsOnResize=function(e){var t=this;if(!this.isDestroyed){this.isResize=this.isReset=!0;var o={cancel:!1,name:s.g,previousSize:this.availableSize,currentSize:i.i(a.c)(this),maps:this};this.trigger(s.g,o),o.cancel||(this.resizeTo&&clearTimeout(this.resizeTo),!i.i(n.isNullOrUndefined)(this.element)&&this.element.classList.contains("e-maps")&&(this.resizeTo=setTimeout(function(){t.unWireEVents(),t.createSVG(),t.refreshing=!0,t.wireEVents(),t.render(),t.refreshing=!1},500)))}return!1},t.prototype.zoomByPosition=function(e,t){if(!this.isDestroyed){this.zoomNotApplied=!1;var o=this.zoomSettings.zoomFactor===t;!this.isTileMap&&this.zoomModule?i.i(n.isNullOrUndefined)(e)?(this.zoomSettings.zoomFactor=t,this.isZoomByPosition=!0,this.mapScaleValue=null):(this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0,this.mapScaleValue=null):this.zoomModule&&(this.tileZoomLevel=this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0),o&&this.refresh()}},t.prototype.panByDirection=function(e,t){if(!this.isDestroyed){var i=0,n=0;switch(e){case"Left":i=-this.mapAreaRect.width/7;break;case"Right":i=this.mapAreaRect.width/7;break;case"Top":n=-this.mapAreaRect.height/7;break;case"Bottom":n=this.mapAreaRect.height/7}this.zoomModule&&this.zoomModule.panning(e,i,n,t)}},t.prototype.addLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.push(e),this.isAddLayer=!0,this.layers=t}},t.prototype.removeLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.splice(e,1),this.layers=t}},t.prototype.addMarker=function(e,t){if(!this.isDestroyed){var i=document.getElementById(this.element.id+"_LayerIndex_"+e);if(t.length>0&&i){for(var n=0,o=t;n<o.length;n++){var a=o[n];this.layersCollection[e].markerSettings.push(new u._9(this,"markerSettings",a))}new l.a(this).markerRender(this,i,e,this.mapLayerPanel.currentFactor,"AddMarker"),this.arrangeTemplate()}}},t.prototype.shapeSelection=function(e,t,o,r){if(!this.isDestroyed){var l=void 0,s=void 0,d=Array.isArray(t)?t:Array(t);i.i(n.isNullOrUndefined)(r)&&(r=!0);var p=this.layers[e].selectionSettings;if(!p.enableMultiSelect&&this.legendSelection&&r&&this.removeShapeSelection(),"SubLayer"===this.layers[e].type)for(var h=0;h<this.layersCollection.length;h++)if(this.layersCollection[h].shapeData===this.layers[e].shapeData){s=h;break}if(p.enable)for(var c=void 0,u=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=this.layers[e].shapeData.features,h=0;h<b.length;h++)for(var v=0;v<d.length;v++){var S=!i.i(n.isNullOrUndefined)(b[h].properties[d[v]])&&isNaN(b[h].properties[d[v]])?b[h].properties[d[v]].toLowerCase():b[h].properties[d[v]],_=i.i(n.isNullOrUndefined)(o)||"string"!=typeof o?o:o.toLowerCase(),x=void 0;if(S===_){i.i(n.isNullOrUndefined)(this.layers[e].shapeSettings.colorValuePath)||(x=i.i(a._14)(this.layers[e].dataSource,b[h].properties,this.layers[e].shapeDataPath,this.layers[e].shapePropertyPath,this.layers[e]));var O=this.layers[e];if(this.baseLayerIndex>=0&&O.isBaseLayer?g=0:"SubLayer"===this.layers[e].type&&(g=s),c=this.element.id+"_LayerIndex_"+g+"_shapeIndex_"+h+"_dataIndex_"+x,l=i.i(a._31)(c),i.i(n.isNullOrUndefined)(x)&&i.i(n.isNullOrUndefined)(l)&&(c=this.element.id+"_LayerIndex_"+e+"_shapeIndex_"+h+"_dataIndex_null",l=i.i(a._31)(c)),m=parseInt(l.id.split("_shapeIndex_")[1].split("_")[0],10),y=this.layers[e].shapeData.features.length>m?this.layers[e].shapeData.features[m].properties:null,u=parseInt(l.id.split("_dataIndex_")[1].split("_")[0],10),f=i.i(n.isNullOrUndefined)(u)?null:this.layers[e].dataSource[u],r){i.i(a._39)(p,this,l,y,f),this.shapeSelectionClass=i.i(a._31)("ShapeselectionMap"),this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M&&(l.setAttribute("class","ShapeselectionMapStyle"),-1===this.selectedElementId.indexOf(l.getAttribute("id"))&&this.selectedElementId.push(l.getAttribute("id")),!p.enableMultiSelect))return}else{this.legendSelection=!p.enableMultiSelect&&!this.legendSelection||this.legendSelection,this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&"ShapeselectionMapStyle"===l.getAttribute("class")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M){i.i(a._40)(l);var L=this.selectedElementId.indexOf(l.getAttribute("id"));-1!==L&&(this.selectedElementId.splice(L,1),!p.enableMultiSelect&&this.legendSelection&&this.selectedElementId.length>0&&this.removeShapeSelection())}}}}}},t.prototype.zoomToCoordinates=function(e,t,o,a){var r,l;if(!this.isDestroyed){var d=void 0,p=void 0,c=!1;this.centerPosition={latitude:null,longitude:null},this.isZoomByPosition=!1,(i.i(n.isNullOrUndefined)(o)&&i.i(n.isNullOrUndefined)(a)||i.i(n.isNullOrUndefined)(e)&&i.i(n.isNullOrUndefined)(t))&&(e=i.i(n.isNullOrUndefined)(e)?0:e,t=i.i(n.isNullOrUndefined)(e)?0:t,o=i.i(n.isNullOrUndefined)(o)?e:o,a=i.i(n.isNullOrUndefined)(a)?t:a,c=!0),e>o&&(r=[o,e],e=r[0],o=r[1]),t>a&&(l=[a,t],t=l[0],a=l[1]),c?(d=e+o,p=t+a):(d=(e+o)/2,p=(t+a)/2),this.centerLatOfGivenLocation=d,this.centerLongOfGivenLocation=p,this.minLatOfGivenLocation=e,this.minLongOfGivenLocation=t,this.maxLatOfGivenLocation=o,this.maxLongOfGivenLocation=a,this.zoomNotApplied=!0,this.scaleOfGivenLocation=i.i(h._62)(e,o,t,a,this.mapAreaRect.width,this.mapAreaRect.height,this);var u={cancel:!1,name:"zoom",type:s.F,maps:this,tileTranslatePoint:{},translatePoint:{},tileZoomLevel:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{},scale:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{previous:this.scale,current:this.scaleOfGivenLocation}};this.trigger("zoom",u),this.refresh()}},t.prototype.removeShapeSelection=function(){for(var e=this.selectedElementId.length,t=0;t<e;t++)i.i(a._40)(i.i(h._27)(this.selectedElementId[0])),this.selectedElementId.splice(0,1);if(this.legendSettings.visible)for(var n=this.legendSelectionCollection.length,t=0;t<n;t++)i.i(a._40)(i.i(h._27)(this.legendSelectionCollection[t].legendElement.id)),this.selectedLegendElementId.splice(0,1);this.shapeSelectionItem=[],this.legendSelectionCollection=[]},t.prototype.setCulture=function(){this.intl=new n.Internationalization,this.setLocaleConstants(),this.localeObject=new n.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},t.prototype.setLocaleConstants=function(){this.defaultLocalConstants={ZoomIn:"Zoom in",Zoom:"Zoom",ZoomOut:"Zoom out",Pan:"Pan",Reset:"Reset",ImageNotFound:"Image Not Found"}},t.prototype.destroy=function(){this.unWireEVents(),i.i(n.isNullOrUndefined)(this.mapsTooltipModule)||this.mapsTooltipModule.removeEventListener(),e.prototype.destroy.call(this),this.shapeSelectionItem=[],this.toggledShapeElementId=[],this.toggledLegendId=[],this.legendSelectionCollection=[],this.selectedLegendElementId=[],this.selectedNavigationElementId=[],this.selectedBubbleElementId=[],this.selectedMarkerElementId=[],this.selectedElementId=[],this.dataLabelShape=[],this.zoomShapeCollection=[],this.zoomLabelPositions=[],this.mouseDownEvent={x:null,y:null},this.mouseClickEvent={x:null,y:null},this.formatFunction=null,this.availableSize=new a.a(0,0),document.getElementById("mapsmeasuretext")&&document.getElementById("mapsmeasuretext").remove(),this.removeSvg()},t.prototype.getModuleName=function(){return"maps"},t.prototype.getPersistData=function(){var e=["translatePoint","zoomSettings","mapScaleValue","tileTranslatePoint","baseTranslatePoint","scale","zoomPersistence","defaultState","markerZoomedState","initialCheck","initialZoomLevel","initialTileTranslate","applyZoomReset","markerZoomFactor"];return this.addOnPersist(e)},t.prototype.onPropertyChanged=function(t,o){if(!this.isDestroyed){var r=!1,l=!1,s=!1,d=!1;if(t.layers){var p=Object.keys(t.layers).length;document.getElementById(this.element.id+"_LayerIndex_"+(p-1))}for(var h=0,c=Object.keys(t);h<c.length;h++){var u=c[h];switch(u){case"background":this.renderBorder();break;case"height":case"width":case"layers":case"projectionType":case"centerPosition":case"legendSettings":case"baseLayerIndex":if("layers"===u){s=!0;for(var m=Object.keys(t.layers).length,g=0;g<m;g++)if(!i.i(n.isNullOrUndefined)(t.layers[g]))for(var y=Object.keys(t.layers[g]),f=0,b=y;f<b.length;f++){var v=b[f];"layerType"===v&&"Geometry"!==t.layers[g].layerType||i.i(n.isNullOrUndefined)(this.layers[g].shapeData)&&!i.i(n.isNullOrUndefined)(this.layers[g].urlTemplate)&&""!==this.layers[g].urlTemplate?this.isReset=!0:"markerSettings"===v?l=!0:"staticMapType"===v&&(d=!0)}}r=!0;break;case"zoomSettings":i.i(n.isNullOrUndefined)(o.zoomSettings)||(t.zoomSettings.zoomFactor===o.zoomSettings.zoomFactor||s?t.zoomSettings.shouldZoomInitially!==o.zoomSettings.shouldZoomInitially?(this.zoomSettings.zoomFactor=1,r=!0):t.zoomSettings.enable!==o.zoomSettings.enable?(this.zoomSettings.zoomFactor=1,r=!0):r=!0:r=!1);break;case"locale":case"currencyCode":e.prototype.refresh.call(this)}}r&&(t.layers&&l?(i.i(a._22)(this.element.id+"_Markers_Group"),this.isTileMap?this.mapLayerPanel.renderTileLayer(this.mapLayerPanel,this.layers.currentFactor,this.layers.length-1):this.render()):t.layers&&d?this.mapLayerPanel.renderGoogleMap(this.layers[this.layers.length-1].key,this.staticMapZoom):(this.createSVG(),this.renderElements()))}},t.prototype.requiredModules=function(){var e=[],t=this.findVisibleLayers(this.layers),i=!1;return this.annotations.map(function(e){i=null!=e.content}),this.isBubbleVisible()&&e.push({member:"Bubble",args:[this]}),t.highlight&&e.push({member:"Highlight",args:[this]}),t.selection&&e.push({member:"Selection",args:[this]}),this.legendSettings.visible&&e.push({member:"Legend",args:[this]}),(this.zoomSettings.enable||this.zoomSettings.zoomFactor>this.zoomSettings.minZoom)&&e.push({member:"Zoom",args:[this]}),this.isMarkersVisible()&&e.push({member:"Marker",args:[this]}),this.isDataLabelVisible()&&e.push({member:"DataLabel",args:[this]}),this.isNavigationVisible()&&e.push({member:"NavigationLine",args:[this]}),t.tooltip&&e.push({member:"MapsTooltip",args:[this]}),i&&e.push({member:"Annotations",args:[this,c.a]}),this.allowPrint&&e.push({member:"Print",args:[this]}),this.allowImageExport&&e.push({member:"ImageExport",args:[this]}),this.allowPdfExport&&e.push({member:"PdfExport",args:[this]}),e},t.prototype.isMarkersVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.markerSettings.length;i++)if(t.markerSettings[i].visible){e=!0;break}}),e},t.prototype.isDataLabelVisible=function(){for(var e=!1,t=0;t<this.layers.length;t++)if(this.layers[t].dataLabelSettings.visible){e=!0;break}return e},t.prototype.isNavigationVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.navigationLineSettings.length;i++)if(t.navigationLineSettings[i].visible){e=!0;break}}),e},t.prototype.getExtraPosition=function(){var e=0,t=0,o=i.i(a._31)(this.element.id+"_svg");if(!i.i(n.isNullOrUndefined)(o)){var r=o.getClientRects(),l=i.i(a._31)(this.element.id+"_Secondary_Element").getClientRects();if(0!==r.length&&0!==l.length){var s=r[0],d=l[0];e=s.top-d.top,t=s.left-d.left}}return new a.r(t,e)},t.prototype.isBubbleVisible=function(){for(var e=!1,t=0,i=this.layers;t<i.length;t++){var n=i[t];if(this.getBubbleVisible(n)){e=!0;break}}return e},t.prototype.getBubbleVisible=function(e){for(var t=!1,i=0,n=e.bubbleSettings;i<n.length;i++){if(n[i].visible){t=!0;break}}return t},t.prototype.print=function(e){this.allowPrint&&this.printModule&&!this.isDestroyed&&this.printModule.print(this,e)},t.prototype.export=function(e,t,o,a){var r=this;if(!this.isDestroyed){if(i.i(n.isNullOrUndefined)(a)&&(a=!0),"PDF"!==e&&this.allowImageExport&&this.imageExportModule)return new Promise(function(i,n){i(r.imageExportModule.export(r,e,t,a))});if(this.allowPdfExport&&this.pdfExportModule)return new Promise(function(i,n){i(r.pdfExportModule.export(r,e,t,a,o))})}return null},t.prototype.getBingUrlTemplate=function(e){var t;return this.isDestroyed||(t=new Promise(function(t,i){var o=new n.Ajax({url:e});o.onSuccess=function(e){var i=JSON.parse(e),n=i.resourceSets[0].resources[0];t(n.imageUrl)},o.send()})),t},t.prototype.findVisibleLayers=function(e,t,i,n,o,a){void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),void 0===o&&(o=!1),void 0===a&&(a=!1);for(var r,l,s,d=0,p=e;d<p.length;d++){var h=p[d];if(t=h.visible||t,h.visible){r=h.bubbleSettings,l=h.markerSettings,s=h.navigationLineSettings;for(var c=0,u=s;c<u.length;c++){var m=u[c];m.visible&&(o=m.highlightSettings.enable||o,a=m.selectionSettings.enable||a)}for(var g=0,y=l;g<y.length;g++){var f=y[g];if(f.visible&&(n=f.tooltipSettings.visible||n,o=f.selectionSettings.enable||o,a=f.highlightSettings.enable||a),n)break}for(var b=0,v=r;b<v.length;b++){var S=v[b];if(S.visible&&(n=S.tooltipSettings.visible||n,o=S.selectionSettings.enable||o,a=S.highlightSettings.enable||a),n)break}n=h.tooltipSettings.visible||n,o=h.selectionSettings.enable||o,a=h.highlightSettings.enable||a}if(t&&i&&n)break}return{layer:t,bubble:i,tooltip:n,selection:o,highlight:a}},t.prototype.getGeoLocation=function(e,t,n){var o=0,r=0;if(!this.isDestroyed){var l=document.getElementById(this.element.id),s=t-l.offsetLeft,d=n-l.offsetTop,p=this.layersCollection[e],h=i.i(a._24)(this,p,!1),c=h.location,u=c.x*this.scale,m=c.y*this.scale,g=Math.min(this.mapAreaRect.height,this.mapAreaRect.width)*this.mapLayerPanel.currentFactor*this.scale,y=this.clip(s-u,0,g-1)/g-.5,f=.5-this.clip(d-m,0,g-1)/g;o=90-360*Math.atan(Math.exp(2*-f*Math.PI))/Math.PI,r=360*y}return{latitude:o,longitude:r}},t.prototype.clip=function(e,t,i){return Math.min(Math.max(e,t),i)},t.prototype.getTileGeoLocation=function(e,t){var i=0,n=0;if(!this.isDestroyed){var o=document.getElementById(this.element.id),a=document.getElementById(this.element.id+"_tile_parent"),r=this.pointToLatLong(e+this.mapAreaRect.x-(a.offsetLeft-o.offsetLeft),t+this.mapAreaRect.y-(a.offsetTop-o.offsetTop));i=r.latitude,n=r.longitude}return{latitude:i,longitude:n}},t.prototype.pointToLatLong=function(e,t){var i=0,n=0;if(!this.isDestroyed){var o="GoogleStaticMap"===this.layers[this.layers.length-1].layerType?0:10;t=this.zoomSettings.enable?t+o:t;var a=256*Math.pow(2,this.tileZoomLevel),r=this.clip(e-this.translatePoint.x*this.scale,0,a-1)/a-.5,l=.5-this.clip(t-this.translatePoint.y*this.scale,0,a-1)/a;i=90-360*Math.atan(Math.exp(2*-l*Math.PI))/Math.PI,n=360*r}return{latitude:i,longitude:n}},y([i.i(n.Property)(null)],t.prototype,"background",void 0),y([i.i(n.Property)(!1)],t.prototype,"useGroupingSeparator",void 0),y([i.i(n.Property)(null)],t.prototype,"format",void 0),y([i.i(n.Property)(null)],t.prototype,"width",void 0),y([i.i(n.Property)(null)],t.prototype,"height",void 0),y([i.i(n.Property)("MouseMove")],t.prototype,"tooltipDisplayMode",void 0),y([i.i(n.Property)(!1)],t.prototype,"allowPrint",void 0),y([i.i(n.Property)(!1)],t.prototype,"allowImageExport",void 0),y([i.i(n.Property)(!1)],t.prototype,"allowPdfExport",void 0),y([i.i(n.Complex)({},r.t)],t.prototype,"titleSettings",void 0),y([i.i(n.Complex)({},r.u)],t.prototype,"zoomSettings",void 0),y([i.i(n.Complex)({},r.w)],t.prototype,"legendSettings",void 0),y([i.i(n.Collection)([],r.B)],t.prototype,"layers",void 0),y([i.i(n.Collection)([],r.a)],t.prototype,"annotations",void 0),y([i.i(n.Complex)({},r.g)],t.prototype,"margin",void 0),y([i.i(n.Complex)({color:"#DDDDDD",width:0},r.d)],t.prototype,"border",void 0),y([i.i(n.Property)("Material")],t.prototype,"theme",void 0),y([i.i(n.Property)("Mercator")],t.prototype,"projectionType",void 0),y([i.i(n.Property)(0)],t.prototype,"baseLayerIndex",void 0),y([i.i(n.Property)(null)],t.prototype,"description",void 0),y([i.i(n.Property)(1)],t.prototype,"tabIndex",void 0),y([i.i(n.Complex)({latitude:null,longitude:null},r.e)],t.prototype,"centerPosition",void 0),y([i.i(n.Complex)({},r.D)],t.prototype,"mapsArea",void 0),y([i.i(n.Event)()],t.prototype,"load",void 0),y([i.i(n.Event)()],t.prototype,"beforePrint",void 0),y([i.i(n.Event)()],t.prototype,"loaded",void 0),y([i.i(n.Event)()],t.prototype,"click",void 0),y([i.i(n.Event)()],t.prototype,"onclick",void 0),y([i.i(n.Event)()],t.prototype,"doubleClick",void 0),y([i.i(n.Event)()],t.prototype,"rightClick",void 0),y([i.i(n.Event)()],t.prototype,"resize",void 0),y([i.i(n.Event)()],t.prototype,"tooltipRender",void 0),y([i.i(n.Event)()],t.prototype,"legendRendering",void 0),y([i.i(n.Event)()],t.prototype,"tooltipRenderComplete",void 0),y([i.i(n.Event)()],t.prototype,"shapeSelected",void 0),y([i.i(n.Event)()],t.prototype,"itemSelection",void 0),y([i.i(n.Event)()],t.prototype,"itemHighlight",void 0),y([i.i(n.Event)()],t.prototype,"shapeHighlight",void 0),y([i.i(n.Event)()],t.prototype,"layerRendering",void 0),y([i.i(n.Event)()],t.prototype,"shapeRendering",void 0),y([i.i(n.Event)()],t.prototype,"markerRendering",void 0),y([i.i(n.Event)()],t.prototype,"markerClusterRendering",void 0),y([i.i(n.Event)()],t.prototype,"markerClick",void 0),y([i.i(n.Event)()],t.prototype,"markerClusterClick",void 0),y([i.i(n.Event)()],t.prototype,"markerClusterMouseMove",void 0),y([i.i(n.Event)()],t.prototype,"markerMouseMove",void 0),y([i.i(n.Event)()],t.prototype,"dataLabelRendering",void 0),y([i.i(n.Event)()],t.prototype,"bubbleRendering",void 0),y([i.i(n.Event)()],t.prototype,"bubbleClick",void 0),y([i.i(n.Event)()],t.prototype,"bubbleMouseMove",void 0),y([i.i(n.Event)()],t.prototype,"animationComplete",void 0),y([i.i(n.Event)()],t.prototype,"annotationRendering",void 0),y([i.i(n.Event)()],t.prototype,"zoom",void 0),y([i.i(n.Event)()],t.prototype,"pan",void 0),t=y([n.NotifyPropertyChanges],t)}(n.Component)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(0)),a=function(){function e(e){}return e.prototype.export=function(e,t,a,r){return new Promise(function(l,s){var d,p,h=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}}),c=!(n.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1),u=document.getElementById(e.element.id+"_Tile_SVG_Parent"),m=i.i(o._27)(e.element.id+"_svg").cloneNode(!0);e.isTileMap?(p=i.i(o._27)(e.element.id+"_Tile_SVG").cloneNode(!0),d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+p.outerHTML+"</svg>"):d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+e.svgObject.outerHTML+"</svg>";var g=window.URL.createObjectURL(new Blob("SVG"===t?[d]:[(new XMLSerializer).serializeToString(m)],{type:"image/svg+xml"}));if("SVG"===t)r?i.i(o.q)(a,t,g,c):l(null);else{var y=new Image,f=h.getContext("2d");if(e.isTileMap)for(var b=document.getElementById(e.element.id+"_MapAreaBorder"),v=parseFloat(b.getAttribute("y")),S=parseFloat(b.getAttribute("x")),_=new XMLHttpRequest,x=e.mapLayerPanel.tiles.length,O=0;O<=x+1;O++)!function(s){var d=document.getElementById(e.element.id+"_tile_"+(s-1)),m=new Image;m.crossOrigin="Anonymous",f.fillStyle=e.background?e.background:"#FFFFFF",f.fillRect(0,0,e.availableSize.width,e.availableSize.height),f.font=e.titleSettings.textStyle.size+" Arial";var y=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(y)||(f.fillStyle=y.getAttribute("fill"),f.fillText(e.titleSettings.text,parseFloat(y.getAttribute("x")),parseFloat(y.getAttribute("y")))),m.onload=function(){if(0===s||s===x+1?0===s?(f.setTransform(1,0,0,1,0,0),f.rect(0,v,parseFloat(u.style.width),parseFloat(u.style.height)),f.clip()):f.setTransform(1,0,0,1,S,v):f.setTransform(1,0,0,1,parseFloat(d.style.left)+S,parseFloat(d.style.top)+v),f.drawImage(m,0,0),s===x+1){localStorage.setItem("local-canvasImage",h.toDataURL("image/png"));var e=localStorage.getItem("local-canvasImage");r?(i.i(o.q)(a,t,e,c),localStorage.removeItem("local-canvasImage")):"PNG"===t?l(e):"JPEG"===t&&l(h.toDataURL("image/jpeg"))}},0===s||s===x+1?0===s?m.src=g:setTimeout(function(){m.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(p)],{type:"image/svg+xml"}))},300):(_.open("GET",d.children[0].getAttribute("src"),!0),_.send(),m.src=d.children[0].getAttribute("src"))}(O);else y.onload=function(){f.drawImage(y,0,0),window.URL.revokeObjectURL(g),r?i.i(o.q)(a,t,h.toDataURL("image/png").replace("image/png","image/octet-stream"),c):"PNG"===t?l(h.toDataURL("image/png")):"JPEG"===t&&l(h.toDataURL("image/jpeg"))},y.src=g}})},e.prototype.getModuleName=function(){return"ImageExport"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(26)),a=(i.n(o),function(){function e(){}return e.prototype.export=function(e,t,a,r,l){return new Promise(function(s,d){var p=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}});l=i.i(n.isNullOrUndefined)(l)?o.PdfPageOrientation.Landscape:l;var h=document.getElementById(e.element.id+"_Tile_SVG_Parent"),c=e.svgObject.cloneNode(!0),u=c.childNodes[0],m=u.getAttribute("fill");"Tailwind"!==e.theme&&"TailwindDark"!==e.theme&&"Bootstrap5"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"Fluent"!==e.theme&&"FluentDark"!==e.theme||"rgba(255,255,255, 0.0)"!==m&&"transparent"!==m||c.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)");var g=window.URL.createObjectURL(new Blob("SVG"===t?[void 0]:[(new XMLSerializer).serializeToString(c)],{type:"image/svg+xml"})),y=new o.PdfDocument,f=new Image,b=p.getContext("2d");if(e.isTileMap)for(var v=document.getElementById(e.element.id+"_MapAreaBorder"),S=parseFloat(v.getAttribute("y")),_=parseFloat(v.getAttribute("x")),x=new XMLHttpRequest,O=e.mapLayerPanel.tiles.length,M=0;M<=O+1;M++)!function(d){var c=document.getElementById(e.element.id+"_tile_"+(d-1)),u=new Image;u.crossOrigin="Anonymous",b.fillStyle=e.background?e.background:"#FFFFFF",b.fillRect(0,0,e.availableSize.width,e.availableSize.height),b.font=e.titleSettings.textStyle.size+" Arial";var m=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(m)||(b.fillStyle=m.getAttribute("fill"),b.fillText(e.titleSettings.text,parseFloat(m.getAttribute("x")),parseFloat(m.getAttribute("y")))),u.onload=function(){if(0===d||d===O+1?0===d?(b.setTransform(1,0,0,1,0,0),b.rect(0,S,parseFloat(h.style.width),parseFloat(h.style.height)),b.clip()):b.setTransform(1,0,0,1,_,S):b.setTransform(1,0,0,1,parseFloat(c.style.left)+_,parseFloat(c.style.top)+S),b.drawImage(u,0,0),d===O+1&&"PDF"===t){localStorage.setItem("saved-image-example",p.toDataURL("image/jpeg"));var i=localStorage.getItem("saved-image-example");y.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),y.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),r?(y.save(a+".pdf"),y.destroy()):s(null)}},0===d||d===O+1?0===d?u.src=g:setTimeout(function(){var t=document.getElementById(e.element.id+"_Tile_SVG");u.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(t)],{type:"image/svg+xml"}))},300):(x.open("GET",c.children[0].getAttribute("src"),!0),x.send(),u.src=c.children[0].getAttribute("src"))}(M);else f.onload=function(){if(b.drawImage(f,0,0),window.URL.revokeObjectURL(g),"PDF"===t){var i=p.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");y.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),y.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),r?(y.save(a+".pdf"),y.destroy()):s(null)}},f.src=g})},e.prototype.getModuleName=function(){return"PdfExport"},e.prototype.destroy=function(){},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(1),o=(i.n(n),i(0)),a=i(3),r=function(){function e(e){}return e.prototype.print=function(e,t){var o=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no");o.moveTo(0,0),o.resizeTo(screen.availWidth,screen.availHeight);var r={cancel:!1,htmlContent:this.getHTMLContent(e,t),name:a.E};e.trigger("beforePrint",r,function(e){r.cancel||i.i(n.print)(r.htmlContent,o)})},e.prototype.getHTMLContent=function(e,t){var a=i.i(n.createElement)("div"),r=e.element.cloneNode(!0);if(e.isTileMap)for(var l=0;l<r.childElementCount;l++)if(r.children[l].id===e.element.id+"_tile_parent"){r.children[l].style.removeProperty("height"),r.children[l].style.removeProperty("width"),r.children[l].style.removeProperty("top"),r.children[l].style.removeProperty("left"),r.children[l].style.removeProperty("right"),r.children[l].style.removeProperty("overflow");var s=document.getElementById(e.element.id+"_Tile_SVG_Parent");r.children[l].children[0].style.overflow="hidden",r.children[l].children[0].style.position="absolute",r.children[l].children[0].style.height=s.style.height,r.children[l].children[0].style.width=s.style.width,r.children[l].children[0].style.left=s.style.left,r.children[l].children[0].style.top=s.style.top;break}return t?t instanceof Array?Array.prototype.forEach.call(t,function(e){a.appendChild(i.i(o._31)(e).cloneNode(!0))}):t instanceof Element?a.appendChild(t.cloneNode(!0)):a.appendChild(i.i(o._31)(t).cloneNode(!0)):a.appendChild(r),a},e.prototype.getModuleName=function(){return"Print"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(o.Browser.touchMoveEvent,this.mouseMove,this),this.maps.on(o.Browser.touchStartEvent,this.mouseMove,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(o.Browser.touchMoveEvent,this.mouseMove),this.maps.off(o.Browser.touchStartEvent,this.mouseMove))},e.prototype.addHighlight=function(e,t,n){var o=i.i(a._36)(e,t,n,this.maps);n?this.mapHighlight(o,null,null):i.i(a._40)(o)},e.prototype.mouseMove=function(e){var t,n=e.target,r="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1;if((-1!==n.id.indexOf("LayerIndex")||n.id.indexOf("NavigationIndex")>-1)&&"ShapeselectionMapStyle"!==n.getAttribute("class")&&!r&&"MarkerselectionMapStyle"!==n.getAttribute("class")&&"BubbleselectionMapStyle"!==n.getAttribute("class")&&"navigationlineselectionMapStyle"!==n.getAttribute("class")&&"LineselectionMapStyle"!==n.getAttribute("class")){t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10);var l=void 0,s=void 0,d=void 0,p=void 0;if(n.id.indexOf("shapeIndex")>-1)d=parseInt(n.id.split("_shapeIndex_")[1].split("_")[0],10),l=this.maps.layers[t].shapeData.features&&!i.i(o.isNullOrUndefined)(this.maps.layersCollection[t].layerData[d])?this.maps.layersCollection[t].layerData[d].property:null,p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=i.i(o.isNullOrUndefined)(p)?null:this.maps.layers[t].dataSource[p],this.highlightSettings=this.maps.layers[t].highlightSettings;else if(n.id.indexOf("BubbleIndex")>-1){var h=parseInt(n.id.split("_BubbleIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].bubbleSettings[h].dataSource[p],this.highlightSettings=this.maps.layers[t].bubbleSettings[h].highlightSettings}else if(n.id.indexOf("MarkerIndex")>-1){var c=parseInt(n.id.split("_MarkerIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].markerSettings[c].dataSource[p],this.highlightSettings=this.maps.layers[t].markerSettings[c].highlightSettings}else{var u=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10),l=null,s={latitude:this.maps.layers[t].navigationLineSettings[u].latitude,longitude:this.maps.layers[t].navigationLineSettings[u].longitude},this.highlightSettings=this.maps.layers[t].navigationLineSettings[u].highlightSettings}if(this.highlightSettings.enable)this.handleHighlight(n,t,s,l);else{var m=document.getElementsByClassName("highlightMapStyle")[0];if(!i.i(o.isNullOrUndefined)(m)&&(i.i(a._40)(m),m.id.indexOf("NavigationIndex")>-1)){var u=parseInt(m.id.split("_NavigationIndex_")[1].split("_")[0],10),g=parseInt(m.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);m.setAttribute("stroke-width",this.maps.layers[g].navigationLineSettings[u].width.toString()),m.setAttribute("stroke",this.maps.layers[g].navigationLineSettings[u].color)}}}else if(i.i(a._34)("highlightMapStyle").length>0){if(n=i.i(a._34)("highlightMapStyle")[0],n.id.indexOf("NavigationIndex")>-1){var u=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10),n.setAttribute("stroke-width",this.maps.layers[t].navigationLineSettings[u].width.toString()),n.setAttribute("stroke",this.maps.layers[t].navigationLineSettings[u].color)}i.i(a._40)(n),this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeShapeHighlightCollection()}else(-1!==n.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")||-1!==n.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule&&this.maps.legendSettings.visible&&-1===n.id.indexOf("_Text")?this.maps.legendModule.legendHighLightAndSelection(n,"highlight"):this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeLegendHighlightCollection()},e.prototype.handleHighlight=function(e,t,i,n){this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule&&"Layers"===this.maps.legendSettings.type&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.highlightSettings,"highlight",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.mapHighlight(e,n,i)},e.prototype.mapHighlight=function(e,t,a){var r=this,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),s=!1;if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);s=this.maps.layers[l].markerSettings[d].highlightSettings.enable}var p=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.color:this.highlightSettings.fill||this.highlightSettings.border.color,h=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.width/(s?1:this.maps.scale):this.highlightSettings.border.width/this.maps.scale,c=i.i(o.isNullOrUndefined)(this.highlightSettings.border.opacity)?this.highlightSettings.opacity:this.highlightSettings.border.opacity,u={opacity:this.highlightSettings.opacity,fill:-1===e.parentElement.id.indexOf("LineString")?-1===e.id.indexOf("NavigationIndex")?i.i(o.isNullOrUndefined)(this.highlightSettings.fill)?e.getAttribute("fill"):this.highlightSettings.fill:"none":"transparent",border:{color:p,width:h,opacity:c},cancel:!1},m={opacity:u.opacity,fill:u.fill,border:{color:p,width:h,opacity:c},name:n.k,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};e.id.indexOf("shapeIndex")>-1&&this.maps.trigger(n.k,m,function(){});var g={opacity:u.opacity,fill:u.fill,border:{color:p,width:h,opacity:c},name:n.E,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};this.maps.trigger(n.E,g,function(){g.cancel=u.cancel!==g.cancel?g.cancel:e.id.indexOf("shapeIndex")>-1?m.cancel:u.cancel,g.fill=u.fill!==g.fill?g.fill:e.id.indexOf("shapeIndex")>-1?m.fill:u.fill,g.opacity=u.opacity!==g.opacity?g.opacity:e.id.indexOf("shapeIndex")>-1?m.opacity:u.opacity,g.border.color=u.border.color!==g.border.color?g.border.color:e.id.indexOf("shapeIndex")>-1?m.border.color:u.border.color,g.border.width=u.border.width!==g.border.width?g.border.width:e.id.indexOf("shapeIndex")>-1?m.border.width:u.border.width,g.border.opacity=u.border.opacity!==g.border.opacity?g.border.opacity:e.id.indexOf("shapeIndex")>-1?m.border.opacity:u.border.opacity,r.highlightMap(e,g)})},e.prototype.highlightMap=function(e,t){if("highlightMapStyle"!==e.getAttribute("class")&&!t.cancel){if(i.i(a._34)("highlightMapStyle").length>0){var n=i.i(a._34)("highlightMapStyle")[0];if(i.i(a._40)(n),n.id.indexOf("NavigationIndex")>-1){var o=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10),r=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);n.setAttribute("stroke-width",this.maps.layers[r].navigationLineSettings[o].width.toString()),n.setAttribute("stroke",this.maps.layers[r].navigationLineSettings[o].color)}}i.i(a._31)("highlightMap")?i.i(a._38)("highlightMap","highlightMapStyle",t):document.body.appendChild(i.i(a._37)("highlightMap","highlightMapStyle",t)),e.setAttribute("class","highlightMapStyle")}},e.prototype.getModuleName=function(){return"Highlight"},e.prototype.destroy=function(){this.highlightSettings=null,this.removeEventListener(),this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||this.maps.on(n.d,this.mouseClick,this)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||this.maps.off(n.d,this.mouseClick)},e.prototype.mouseClick=function(e){if(!i.i(a.isNullOrUndefined)(e.type)&&-1!==e.type.indexOf("touch")&&i.i(a.isNullOrUndefined)(e.id)&&(e=e.target),!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf("LayerIndex")>-1||e.id.indexOf("NavigationIndex")>-1)){var t=void 0,n=void 0,o=void 0,r=void 0,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10);if(e.id.indexOf("shapeIndex")>-1)o=parseInt(e.id.split("_shapeIndex_")[1].split("_")[0],10),t=!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.features)&&this.maps.layers[l].shapeData.features.length>o?this.maps.layers[l].shapeData.features[o].properties:!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.geometries)&&this.maps.layers[l].shapeData.geometries.length>o?this.maps.layers[l].shapeData.geometries[o].properties:null,r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=i.i(a.isNullOrUndefined)(r)?null:this.maps.layers[l].dataSource[r],this.selectionsettings=this.maps.layers[l].selectionSettings,this.selectionType="Shape";else if(e.id.indexOf("BubbleIndex")>-1){var s=parseInt(e.id.split("_BubbleIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].bubbleSettings[s].dataSource[r],this.selectionsettings=this.maps.layers[l].bubbleSettings[s].selectionSettings,this.selectionType="Bubble"}else if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].markerSettings[d].dataSource[r],this.selectionsettings=this.maps.layers[l].markerSettings[d].selectionSettings,this.selectionType="Marker"}else{var p=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10);t=null,n={latitude:this.maps.layers[l].navigationLineSettings[p].latitude,longitude:this.maps.layers[l].navigationLineSettings[p].longitude},this.selectionsettings=this.maps.layers[l].navigationLineSettings[p].selectionSettings,this.selectionType="navigationline"}this.selectionsettings.enable&&this.selectElement(e,l,n,t)}else this.maps.legendSettings.visible&&!this.maps.legendSettings.toggleLegendSettings.enable&&this.maps.legendModule&&!i.i(a.isNullOrUndefined)(e.id)&&-1===e.id.indexOf("_Text")&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule.legendHighLightAndSelection(e,"selection")},e.prototype.selectElement=function(e,t,i,n){this.maps.mapSelect=!!e,this.maps.legendModule&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.selectionsettings,"selection",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.selectMap(e,n,i)},e.prototype.addSelection=function(e,t,n){var a=i.i(o._36)(e,t,n,this.maps);n?this.selectMap(a,null,null):i.i(o._40)(a)},e.prototype.selectMap=function(e,t,r){var l=this,s=(parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),e.parentElement.id.indexOf("LineString")>-1),d=(this.selectionsettings,{color:s?this.selectionsettings.fill||this.selectionsettings.border.color:this.selectionsettings.border.color,width:s?this.selectionsettings.border.width/this.maps.scale:this.selectionsettings.border.width/("Marker"===this.selectionType?1:this.maps.scale),opacity:this.selectionsettings.border.opacity}),p={opacity:this.selectionsettings.opacity,fill:s?"transparent":"navigationline"!==this.selectionType?this.selectionsettings.fill:"none",border:d,name:n.D,target:e.id,cancel:!1,shapeData:t,data:r,maps:this.maps};this.maps.trigger("itemSelection",p,function(t){if(p.border.opacity=i.i(a.isNullOrUndefined)(l.selectionsettings.border.opacity)?l.selectionsettings.opacity:l.selectionsettings.border.opacity,!p.cancel)if(e.getAttribute("class")===l.selectionType+"selectionMapStyle"||"LineselectionMapStyle"===e.getAttribute("class")){i.i(o._40)(e),l.removedSelectionList(e);for(var n=0;n<l.maps.shapeSelectionItem.length;n++)if(l.maps.shapeSelectionItem[n]===p.shapeData){l.maps.shapeSelectionItem.splice(n,1);break}if(e.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),d=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);e.setAttribute("stroke-width",l.maps.layers[d].navigationLineSettings[r].width.toString()),e.setAttribute("stroke",l.maps.layers[d].navigationLineSettings[r].color)}}else{var h=i.i(o._27)(l.maps.element.id+"_Layer_Collections");if(!l.selectionsettings.enableMultiSelect&&(h.getElementsByClassName(l.selectionType+"selectionMapStyle").length>0||h.getElementsByClassName("LineselectionMapStyle").length>0)){for(var c=h.getElementsByClassName(l.selectionType+"selectionMapStyle").length,u=void 0,m=0;m<c;m++)u=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._40)(u),l.removedSelectionList(u);if(h.getElementsByClassName("LineselectionMapStyle").length>0){c=h.getElementsByClassName("LineselectionMapStyle").length;for(var m=0;m<c;m++)u=h.getElementsByClassName("LineselectionMapStyle")[0],i.i(o._40)(u),l.removedSelectionList(u)}if("Shape"===l.selectionType){l.maps.shapeSelectionItem=[];for(var g=l.maps.selectedElementId.length,y=0;y<g;y++){u=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._40)(u);var f=l.maps.selectedElementId.indexOf(u.getAttribute("id"));l.maps.selectedElementId.splice(f,1)}}if(u.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),b=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);u.setAttribute("stroke-width",l.maps.layers[b].navigationLineSettings[r].width.toString()),u.setAttribute("stroke",l.maps.layers[b].navigationLineSettings[r].color)}}s?(i.i(o._31)("LineselectionMap")?i.i(o._38)("LineselectionMap","LineselectionMapStyle",p):document.body.appendChild(i.i(o._37)("LineselectionMap","LineselectionMapStyle",p)),e.setAttribute("class","LineselectionMapStyle")):(i.i(o._31)(l.selectionType+"selectionMap")?i.i(o._38)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p):document.body.appendChild(i.i(o._37)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p)),e.setAttribute("class",l.selectionType+"selectionMapStyle")),"ShapeselectionMapStyle"===e.getAttribute("class")&&(l.maps.shapeSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedElementId.push(e.getAttribute("id")),l.maps.shapeSelectionItem.push(p.shapeData)),"MarkerselectionMapStyle"===e.getAttribute("class")&&(l.maps.markerSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedMarkerElementId.push(e.getAttribute("id"))),"BubbleselectionMapStyle"===e.getAttribute("class")&&(l.maps.bubbleSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedBubbleElementId.push(e.getAttribute("id"))),"navigationlineselectionMapStyle"===e.getAttribute("class")&&(l.maps.navigationSelectionClass=i.i(o._31)(l.selectionType+"selectionMap"),l.maps.selectedNavigationElementId.push(e.getAttribute("id")))}})},e.prototype.removedSelectionList=function(e){"Shape"===this.selectionType&&this.maps.selectedElementId.splice(this.maps.selectedElementId.indexOf(e.getAttribute("id")),1),"Bubble"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1),"Marker"===this.selectionType&&this.maps.selectedMarkerElementId.splice(this.maps.selectedMarkerElementId.indexOf(e.getAttribute("id")),1),"navigationline"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1)},e.prototype.getModuleName=function(){return"Selection"},e.prototype.destroy=function(){this.selectionsettings=null,this.removeEventListener(),this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return s});var n=i(2),o=i(6),a=(i.n(o),i(1)),r=(i.n(a),i(0)),l=i(3),s=function(){function e(e){this.maps=e,this.tooltipId=this.maps.element.id+"_mapsTooltip",this.addEventListener()}return e.prototype.renderTooltip=function(e){var t,s,d,p,h,c,u=this;-1!==e.type.indexOf("touch")?(this.isTouch=!0,p=e,t=p.changedTouches[0].pageX,s=p.changedTouches[0].pageY,d=p.target):(this.isTouch="touch"===e.pointerType,t=e.pageX,s=e.pageY,d=e.target);var m,g,y,f="",b=d.id,v=[],S=b.indexOf("_LayerIndex_")>-1&&parseFloat(b.split("_LayerIndex_")[1].split("_")[0]),_=this.maps.layersCollection[S],x=[],O=i.i(r.e)(t,s,this.maps.svgObject);if(this.tooltipTargetID=b,b.indexOf("_shapeIndex_")>-1||b.indexOf("_MarkerIndex_")>-1||b.indexOf("_BubbleIndex_")>-1){if(b.indexOf("_shapeIndex_")>-1){m=_.tooltipSettings;var M=parseInt(b.split("_shapeIndex_")[1].split("_")[0],10);if(i.i(a.isNullOrUndefined)(_.layerData)||i.i(a.isNullOrUndefined)(_.layerData[M]))return;var L=_.layerData[M].property,C=!1,w="[object Array]"===Object.prototype.toString.call(_.shapePropertyPath)?_.shapePropertyPath:[_.shapePropertyPath];if(!i.i(a.isNullOrUndefined)(w)){for(var P=0;P<w.length;P++)for(var T=0;T<_.dataSource.length;T++){var I=_.dataSource[T],N=_.shapeDataPath.indexOf(".")>-1?i.i(r.N)(I,_.shapeDataPath):I[_.shapeDataPath],k=!i.i(a.isNullOrUndefined)(N)&&isNaN(I[_.shapeDataPath])?N.toLowerCase():N,F=!i.i(a.isNullOrUndefined)(L[w[P]])&&isNaN(L[w[P]])?L[w[P]].toLowerCase():L[w[P]];if(k===F){C=!0,S=T,P=w.length;break}}if(S=C?S:null,!i.i(a.isNullOrUndefined)(_.dataSource[S])){v=JSON.parse(JSON.stringify(_.dataSource[S]));for(y in L)v.hasOwnProperty(y)||(v[y]=L[y])}}if(m.visible&&(!i.i(a.isNullOrUndefined)(S)&&!isNaN(S)||!i.i(a.isNullOrUndefined)(L)))if(_.tooltipSettings.format)f=this.formatter(_.tooltipSettings.format,v);else{var E=i.i(r._15)(_.shapeDataPath,_.shapePropertyPath,L);f=i.i(a.isNullOrUndefined)(_.dataSource)||i.i(a.isNullOrUndefined)(S)?L[E]:i.i(r.J)(m.valuePath.indexOf(".")>-1?i.i(r.N)(_.dataSource[S],m.valuePath):_.dataSource[S][m.valuePath],this.maps),i.i(a.isNullOrUndefined)(f)&&(f=m.valuePath.indexOf(".")>-1?i.i(r.N)(L,m.valuePath):L[m.valuePath])}}else if(b.indexOf("_MarkerIndex_")>-1){var A=parseInt(b.split("_MarkerIndex_")[1].split("_")[0],10),z=parseInt(b.split("_MarkerIndex_")[1].split("_")[2],10),B=_.markerSettings[A];m=B.tooltipSettings,v=B.dataSource[z],m.visible&&!isNaN(A)&&(f=B.tooltipSettings.format?this.formatter(B.tooltipSettings.format,B.dataSource[z]):B.template&&!B.tooltipSettings.valuePath?B.template.split(">")[1].split("<")[0]:i.i(r.J)(B.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.N)(B.dataSource[z],B.tooltipSettings.valuePath):B.dataSource[z][B.tooltipSettings.valuePath],this.maps))}else if(b.indexOf("_BubbleIndex_")>-1){var j=parseInt(b.split("_BubbleIndex_")[1].split("_")[0],10),z=parseInt(b.split("_BubbleIndex_")[1].split("_")[2],10),U=_.bubbleSettings[j];m=U.tooltipSettings,v=U.dataSource[z],m.visible&&!isNaN(z)&&(f=U.tooltipSettings.format?this.formatter(U.tooltipSettings.format,U.dataSource[z]):i.i(r.J)(U.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.N)(U.dataSource[z],U.tooltipSettings.valuePath):U.dataSource[z][U.tooltipSettings.valuePath],this.maps))}document.getElementById(this.tooltipId)?g=document.getElementById(this.tooltipId):(g=i.i(a.createElement)("div",{id:this.maps.element.id+"_mapsTooltip",className:"EJ2-maps-Tooltip"}),g.style.cssText="position: absolute;pointer-events:none;",document.getElementById(this.maps.element.id+"_Secondary_Element").appendChild(g)),null!==m.template&&1===Object.keys("object"==typeof m.template?m.template:{}).length&&(m.template=m.template[Object.keys(m.template)[0]]),v=this.setTooltipContent(m,v);var R={color:m.textStyle.color,fontFamily:m.textStyle.fontFamily,fontStyle:m.textStyle.fontStyle,fontWeight:m.textStyle.fontWeight,opacity:m.textStyle.opacity,size:m.textStyle.size},D={location:O,text:x,data:v,textStyle:R,template:m.template};h={cancel:!1,name:n.i,options:D,fill:m.fill,maps:this.maps,element:d,eventArgs:e,content:i.i(a.isNullOrUndefined)(f)?"":f.toString()},this.maps.trigger(n.i,h,function(e){if(h.cancel||!m.visible||i.i(a.isNullOrUndefined)(f)||-1!==b.indexOf("_cluster_")||-1!==b.indexOf("_dataLabel_"))u.clearTooltip();else if(u.maps.isProtectedOnChange=!0,h.options.textStyle.color=h.options.textStyle.color||u.maps.themeStyle.tooltipFontColor,h.options.textStyle.fontFamily=h.options.textStyle.fontFamily||u.maps.themeStyle.fontFamily,h.options.textStyle.opacity=h.options.textStyle.opacity||u.maps.themeStyle.tooltipTextOpacity,h.cancel?u.svgTooltip=new o.Tooltip({enable:!0,header:"",data:m.data,template:m.template,content:h.content.toString()!==f.toString()?[h.content.toString()]:[f.toString()],shapes:[],location:m.location,palette:[void 0],areaBounds:u.maps.mapAreaRect,textStyle:m.textStyle,availableSize:u.maps.availableSize,fill:m.fill||u.maps.themeStyle.tooltipFillColor}):u.svgTooltip=new o.Tooltip({enable:!0,header:"",data:h.options.data,template:h.options.template,content:h.content.toString()!==f.toString()?[h.content.toString()]:[f.toString()],shapes:[],location:h.options.location,palette:[void 0],areaBounds:u.maps.mapAreaRect,textStyle:h.options.textStyle,availableSize:u.maps.availableSize,fill:h.fill||u.maps.themeStyle.tooltipFillColor}),(u.maps.isVue||u.maps.isVue3)&&(u.svgTooltip.controlInstance=u.maps),u.svgTooltip.opacity=u.maps.themeStyle.tooltipFillOpacity||u.svgTooltip.opacity,u.svgTooltip.appendTo(g),u.maps.renderReactTemplates(),null!==(c=document.getElementById(u.maps.element.id+"_mapsTooltip"))&&-1!==c.innerHTML.indexOf("href")&&-1!==c.innerHTML.indexOf("</a>")){var t=c.getAttribute("style");t=t.replace("pointer-events: none;","position-events:all;"),c.style.cssText=t}}),this.svgTooltip&&this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:D,element:this.svgTooltip.element}),this.svgTooltip?this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:D,element:this.svgTooltip.element}):this.clearTooltip()}else c=document.getElementById(this.maps.element.id+"_mapsTooltip"),null!==c&&-1!==c.innerHTML.indexOf("href")&&-1!==c.innerHTML.indexOf("</a>")?this.maps.notify(l.c,this):this.clearTooltip()},e.prototype.setTooltipContent=function(e,t){var n=i.i(a.extend)({},t,null,!0);return this.maps.format&&!isNaN(Number(n[e.valuePath]))?n[e.valuePath]=i.i(r._29)(this.maps,Number(n[e.valuePath])):n=Object.keys(n).length?n:void 0,n},e.prototype.formatter=function(e,t){void 0===t&&(t={});for(var n=Object.keys(t),o=0,a=n;o<a.length;o++){var l=a[o];e="object"==typeof t[l]?i.i(r.K)("",e,t,this.maps):e.split("${"+l+"}").join(i.i(r.J)(t[l],this.maps))}return e},e.prototype.mouseUpHandler=function(e){this.renderTooltip(e),"MouseMove"===this.maps.tooltipDisplayMode&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3))},e.prototype.removeTooltip=function(){var e=!1;return document.getElementsByClassName("EJ2-maps-Tooltip").length>0&&(i.i(a.remove)(document.getElementsByClassName("EJ2-maps-Tooltip")[0]),e=!0),e},e.prototype.clearTooltip=function(){this.removeTooltip()&&this.maps.clearTemplate()},e.prototype.addEventListener=function(){this.maps.isDestroyed||("DoubleClick"===this.maps.tooltipDisplayMode?this.maps.on("dblclick",this.renderTooltip,this):"Click"===this.maps.tooltipDisplayMode?this.maps.on(a.Browser.touchEndEvent,this.mouseUpHandler,this):this.maps.on(a.Browser.touchMoveEvent,this.renderTooltip,this),this.maps.on(a.Browser.touchCancelEvent,this.removeTooltip,this),this.maps.element.addEventListener("contextmenu",this.removeTooltip))},e.prototype.removeEventListener=function(){if(this.maps){if(this.maps.isDestroyed)return;"DoubleClick"===this.maps.tooltipDisplayMode?this.maps.off("dblclick",this.removeTooltip):"Click"===this.maps.tooltipDisplayMode?this.maps.off(a.Browser.touchEndEvent,this.mouseUpHandler):this.maps.off(a.Browser.touchMoveEvent,this.renderTooltip),this.maps.off(a.Browser.touchCancelEvent,this.removeTooltip),this.maps.element.removeEventListener("contextmenu",this.removeTooltip)}},e.prototype.getModuleName=function(){return"MapsTooltip"},e.prototype.destroy=function(){i.i(a.isNullOrUndefined)(this.svgTooltip)||this.svgTooltip.destroy(),this.svgTooltip=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(0),o=i(1),a=(i.n(o),i(2)),r=i(3),l=function(){function e(e){this.isPanning=!1,this.mouseEnter=!1,this.isTouch=!1,this.rectZoomingStart=!1,this.browserName=o.Browser.info.name,this.isPointer=o.Browser.isPointer,this.handled=!1,this.pinchFactor=1,this.startTouches=[],this.intersect=[],this.mouseDownLatLong={x:0,y:0},this.mouseMoveLatLong={x:0,y:0},this.isSingleClick=!1,this.maps=e,this.wheelEvent="mozilla"===this.browserName?this.isPointer?"mousewheel":"DOMMouseScroll":"mousewheel",this.cancelEvent=this.isPointer?"pointerleave":"mouseleave",this.selectionColor=this.maps.zoomSettings.selectionColor,this.fillColor=this.maps.zoomSettings.color,this.addEventListener()}return e.prototype.performZooming=function(e,t,i){var o=this,a=this.maps;a.previousProjection=a.projectionType,a.defaultState=!1,a.initialCheck=!1,a.markerZoomedState=!1,a.zoomPersistence=a.enablePersistence;var r=a.tileZoomLevel,l=a.previousScale=a.scale,s=a.zoomSettings.maxZoom,d=a.zoomSettings.minZoom;t=d>t&&"ZoomIn"===i?d+1:t;var p=a.tileTranslatePoint;if(a.isTileMap||!("ZoomIn"===i?t>=d&&t<=s:t>=d)&&!a.isReset){if(a.isTileMap&&t>=d&&t<=s)if(this.getTileTranslatePosition(r,t,e,i),a.tileZoomLevel=t,a.zoomSettings.zoomFactor=t,a.scale=Math.pow(2,t-1),"ZoomOut"===i&&a.zoomSettings.resetToInitial&&a.applyZoomReset&&t<=a.initialZoomLevel&&(a.initialCheck=!0,a.zoomPersistence=!1,a.tileTranslatePoint.x=a.initialTileTranslate.x,a.tileTranslatePoint.y=a.initialTileTranslate.y,t=a.tileZoomLevel=a.mapScaleValue=a.initialZoomLevel,a.scale=Math.pow(2,t-1)),a.translatePoint.y=(a.tileTranslatePoint.y-.01*a.mapScaleValue)/a.scale,a.translatePoint.x=(a.tileTranslatePoint.x-.01*a.mapScaleValue)/a.scale,this.triggerZoomEvent(p,r,i))a.translatePoint=a.tileTranslatePoint=new n.r(0,0),a.scale=a.previousScale,a.tileZoomLevel=r,a.zoomSettings.zoomFactor=a.previousScale;else{document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),this.markerLineAnimation(a),a.mapLayerPanel.generateTiles(t,a.tileTranslatePoint,i+"wheel",null,e);var h=(document.getElementById(this.maps.element.id+"_tiles"),this.maps.layersCollection[0].animationDuration);setTimeout(function(){o.applyTransform(o.maps),document.getElementById(o.maps.element.id+"_LayerIndex_1")&&(document.getElementById(o.maps.element.id+"_LayerIndex_1").style.display="block")},h)}}else{var c=a.mapAreaRect,u=a.baseMapRectBounds.min,m=a.baseMapRectBounds.max,g=Math.abs(u.x-m.x),y=Math.abs(u.y-m.y),f=void 0,b=void 0;if(t<1.2&&"Eckert5"!==a.projectionType)0!==g&&0!==y&&g!==y||(g=c.width/2,y=c.height),t=parseFloat(Math.min(c.width/g,c.height/y).toFixed(2)),t=t>1.05?1:t,a.translatePoint=this.calculateInitalZoomTranslatePoint(t,g,y,c,u,a);else{var v=a.translatePoint;f=v.x-(c.width/l-c.width/t)/(c.width/e.x),b=v.y-(c.height/l-c.height/t)/(c.height/e.y);var S=Math.abs(a.baseMapRectBounds.max.y-a.baseMapRectBounds.min.y)*t;f=S<a.mapAreaRect.height?c.x+(-u.x+(c.width/2-g/2)):f,b=S<a.mapAreaRect.height?c.y+(-u.y+(c.height/2-y/2)):b,a.translatePoint=new n.r(f,b)}a.scale=t,this.triggerZoomEvent(p,r,i)?(a.translatePoint=a.previousPoint,a.scale=a.mapScaleValue=a.previousScale):this.applyTransform(a)}this.maps.zoomNotApplied=!1},e.prototype.calculateInitalZoomTranslatePoint=function(e,t,i,o,a,r){t*=e,i*=e;var l=0!==a.x&&"layers"===r.translateType?r.availableSize.width-o.width:0,s=o.x+(-a.x+(o.width/2-t/2))-l,d=o.y+(-a.y+(o.height/2-i/2));return new n.r(s,d)},e.prototype.triggerZoomEvent=function(e,t,i){var n,o=this.maps;return n=o.isTileMap?{cancel:!1,name:"zoom",type:i,maps:o,tileTranslatePoint:{previous:e,current:o.tileTranslatePoint},translatePoint:{previous:o.previousPoint,current:o.translatePoint},tileZoomLevel:{previous:t,current:o.tileZoomLevel},scale:{previous:o.previousScale,current:o.scale}}:{cancel:!1,name:"zoom",type:i,maps:o,tileTranslatePoint:{},translatePoint:{previous:o.previousPoint,current:o.translatePoint},tileZoomLevel:{},scale:{previous:o.previousScale,current:o.scale}},o.trigger("zoom",n),n.cancel},e.prototype.getTileTranslatePosition=function(e,t,i,n){var o=this.maps,a="ZoomOut"===n?10:"Reset"===n&&t>1?0:10,r=o.availableSize,l=256*Math.pow(2,e),s=256*Math.pow(2,t),d=(i.x-o.tileTranslatePoint.x)/l*100,p=(i.y-o.tileTranslatePoint.y)/l*100;o.tileTranslatePoint.x=1===t?r.width/2-256:i.x-d*s/100,o.tileTranslatePoint.y=1===t?r.height/2-256+2*a:i.y-p*s/100},e.prototype.performRectZooming=function(){this.isDragZoom=!0;var e=this.maps,t=e.availableSize;e.previousProjection=e.projectionType;var i,o=e.tileZoomLevel,a=e.tileTranslatePoint,r=this.zoomingRect,l=e.zoomSettings.maxZoom,s=e.zoomSettings.minZoom;if(r.height>0&&r.width>0){var d=this.zoomingRect.x+this.zoomingRect.width/2,p=this.zoomingRect.y+this.zoomingRect.height/2,h=void 0;if(e.isTileMap)h=o+Math.round(o+(t.width/r.width+t.height/r.height)/2),h=h>=s&&h<=l?h:l,e.zoomSettings.zoomFactor=h,this.getTileTranslatePosition(o,h,{x:d,y:p}),e.tileZoomLevel=h,e.translatePoint.x=(e.tileTranslatePoint.x-.5*Math.pow(2,h))/Math.pow(2,h),e.translatePoint.y=(e.tileTranslatePoint.y-.5*Math.pow(2,h))/Math.pow(2,h),e.scale=Math.pow(2,h),i=this.triggerZoomEvent(a,o,""),i?(e.translatePoint=e.tileTranslatePoint=new n.r(0,0),e.scale=e.tileZoomLevel=e.zoomSettings.zoomFactor=o):e.mapLayerPanel.generateTiles(h,e.tileTranslatePoint);else{var c=e.previousScale=e.scale;h=c+Math.round((t.width/r.width+t.height/r.height)/2);var u=e.previousPoint=e.translatePoint,m=u.x-(t.width/c-t.width/h)/(t.width/d),g=u.y-(t.height/c-t.height/h)/(t.height/p);e.translatePoint=new n.r(m,g),e.scale=h,i=this.triggerZoomEvent(a,o,""),i&&(e.translatePoint=e.previousPoint,e.scale=e.previousScale)}i||(e.mapScaleValue=h,this.applyTransform(e,!0),this.maps.zoomNotApplied=!1,this.zoomingRect=null)}},e.prototype.setInteraction=function(e){this.lastScale=1,this.interaction=e},e.prototype.updateInteraction=function(){2===this.fingers?this.setInteraction("zoom"):this.setInteraction(null)},e.prototype.performPinchZooming=function(e){var t=this.maps,o=t.tileZoomLevel,a=t.mapAreaRect;t.previousScale=t.scale,t.previousPoint=t.translatePoint;var r=t.tileTranslatePoint,l=i.i(n._52)(this.touchStartList,this.touchMoveList),s=i.i(n._55)(i.i(n._54)(this.touchMoveList,this.maps)),d=l/this.lastScale;this.lastScale=l,this.pinchFactor*=d,this.pinchFactor=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.pinchFactor,this.maps.zoomSettings.minZoom));var p,h=this.pinchFactor;if(t.isTileMap){var c=h;this.getTileTranslatePosition(o,c,{x:s.x,y:s.y}),t.tileZoomLevel=c,t.translatePoint.x=(t.tileTranslatePoint.x-.5*Math.pow(2,c))/Math.pow(2,c),t.translatePoint.y=(t.tileTranslatePoint.y-.5*Math.pow(2,c))/Math.pow(2,c),t.scale=Math.pow(2,c),p=this.triggerZoomEvent(r,o,""),p?(t.translatePoint=t.tileTranslatePoint=new n.r(0,0),t.scale=t.previousScale,t.tileZoomLevel=o,t.zoomSettings.zoomFactor=t.previousScale):t.mapLayerPanel.generateTiles(c,t.tileTranslatePoint)}else{var u=t.baseMapRectBounds.min,m=t.baseMapRectBounds.max,g=Math.abs(u.y-m.y),y=Math.abs(u.x-m.x),f=t.translatePoint,b=void 0,v=void 0;if(h<1.2&&"Eckert5"!==t.projectionType)0!==y&&0!==g&&y!==g||(y=a.width/2,g=a.height),h=parseFloat(Math.min(a.width/y,a.height/g).toFixed(2)),h=h>1.05?1:h,t.translatePoint=this.calculateInitalZoomTranslatePoint(h,y,g,a,u,t);else{var S=Math.abs(t.baseMapRectBounds.max.y-t.baseMapRectBounds.min.y)*h;b=f.x-(a.width/t.scale-a.width/h)/(a.width/s.x),v=f.y-(a.height/t.scale-a.height/h)/(a.height/s.y),b=S<t.mapAreaRect.height?a.x+(-u.x+(a.width/2-y/2)):b,v=S<t.mapAreaRect.height?a.y+(-u.y+(a.height/2-g/2)):v,t.translatePoint=new n.r(b,v)}t.scale=h,p=this.triggerZoomEvent(r,o,""),p&&(t.translatePoint=t.previousPoint,t.scale=t.previousScale)}p||this.applyTransform(t)},e.prototype.drawZoomRectangle=function(){var e=this.maps,t=this.mouseDownPoints,o=this.mouseMovePoints,a={width:1,color:"#009900"},r=Math.abs(o.x-t.x),l=Math.abs(o.y-t.y),s=o.x>t.x?t.x:t.x-r,d=o.y>t.y?t.y:t.y-l;i.i(n._27)(e.element.id).getBoundingClientRect();if(s>e.mapAreaRect.x&&s<e.mapAreaRect.x+e.mapAreaRect.width&&d>e.mapAreaRect.y&&d<e.mapAreaRect.y+e.mapAreaRect.height){this.zoomingRect=new n.F(s,d,r,l);var p=e.renderer.createSvg({id:e.element.id+"_Selection_Rect_Zooming",width:e.availableSize.width,height:e.availableSize.height}),h=new n.y(e.element.id+"_ZoomRect","#d3d3d3",a,.5,this.zoomingRect,0,0,"","3");p.appendChild(e.renderer.drawRectangle(h)),i.i(n._27)(e.element.id+"_Secondary_Element").appendChild(p)}},e.prototype.animateTransform=function(e,t,o,a,r){var l=this.currentLayer.animationDuration;if(!t||0===l||this.maps.isTileMap)return void e.setAttribute("transform","scale("+r+") translate( "+o+" "+a+" )");this.maps.isTileMap||i.i(n._57)(e,0,l,new n.E(o,a),r,this.maps.mapAreaRect,this.maps)},e.prototype.applyTransform=function(e,t){var r;this.templateCount=0;var l,s=e.scale,d=e.translatePoint.x,p=e.translatePoint.y;if(e.zoomShapeCollection=[],document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._22)(e.element.id+"_mapsTooltip"),this.layerCollectionEle){for(var h=0;h<this.layerCollectionEle.childElementCount;h++){var c=this.layerCollectionEle.childNodes[h];if("g"===c.tagName){this.templateCount++,this.index=c.id.indexOf("_LayerIndex_")>-1&&parseFloat(c.id.split("_LayerIndex_")[1].split("_")[0]),this.currentLayer=e.layersCollection[this.index];for(var u=e.mapLayerPanel.calculateFactor(this.currentLayer),m=c.childElementCount,g=0;g<m;g++){var y=c.childNodes[g];if(y.id.indexOf("_Markers_Group")>-1||y.id.indexOf("_bubble_Group")>-1||y.id.indexOf("_dataLableIndex_Group")>-1){if(y.id.indexOf("_Markers_Group")>-1){this.isPanning||i.i(o.isNullOrUndefined)(y.childNodes[0])||this.markerTranslates(y.childNodes[0],u,d,p,s,"Marker",c,t),y=c.childNodes[g];var f=void 0;if(!i.i(o.isNullOrUndefined)(y)&&-1!==y.id.indexOf("Markers")){for(var b=0;b<y.childElementCount;b++){this.markerTranslate(y.childNodes[b],u,d,p,s,"Marker",t);var v=(parseInt(y.childNodes[b].id.split("_LayerIndex_")[1].split("_")[0],10),parseInt(y.childNodes[b].id.split("_dataIndex_")[1].split("_")[0],10)),S=parseInt(y.childNodes[b].id.split("_MarkerIndex_")[1].split("_")[0],10);f=this.currentLayer.markerSettings[S].animationDuration>0;for(var _=this.currentLayer.markerSettings[S].dataSource[v],x=0;x<this.currentLayer.markerSettings[S].initialMarkerSelection.length;x++)this.currentLayer.markerSettings[S].initialMarkerSelection[x].latitude!==_.latitude&&this.currentLayer.markerSettings[S].initialMarkerSelection[x].longitude!==_.longitude||e.markerSelection(this.currentLayer.markerSettings[S].selectionSettings,e,y.children[b],this.currentLayer.markerSettings[S].dataSource[v]);if((this.currentLayer.animationDuration>0||e.layersCollection[0].animationDuration>0&&"SubLayer"===this.currentLayer.type)&&!this.isPanning)if(e.isTileMap){var O=document.querySelector(".GroupElement");O&&!document.querySelector(".ClusterGroupElement")&&f&&(O.style.display="none")}else l="visibility:hidden",y.style.cssText=l}if(this.isPanning&&e.markerModule.sameMarkerData.length>0?i.i(n.S)(e.markerModule.sameMarkerData,e,y,!0):e.markerModule.sameMarkerData.length>0&&(e.markerModule.sameMarkerData=[],document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._22)(e.element.id+"_mapsTooltip")),document.getElementById(e.element.id+"_mapsTooltip")&&e.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")&&!this.isPanning){var M=e.mapsTooltipModule,L=y.querySelector("#"+M.tooltipTargetID);if(!i.i(o.isNullOrUndefined)(L))if("hidden"===L.style.visibility)i.i(n._22)(e.element.id+"_mapsTooltip");else{var C=parseFloat(L.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[1]),w=parseFloat(L.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[2]);e.isTileMap&&(C+=+i.i(n._31)(e.element.id+"_tile_parent").style.left.split("px")[0],w+=+i.i(n._31)(e.element.id+"_tile_parent").style.top.split("px")[0]),M.svgTooltip.location.x=C,M.svgTooltip.location.y=w,M.svgTooltip.enableAnimation=!1}}}}else if(y.id.indexOf("_bubble_Group")>-1)for(var P=void 0,b=0;b<y.childElementCount;b++){P=y.childNodes[b],r=parseFloat(P.id.split("_LayerIndex_")[1].split("_")[0]);for(var T=parseFloat(P.id.split("_BubbleIndex_")[1].split("_")[0]),v=parseFloat(P.id.split("_BubbleIndex_")[1].split("_")[2]),I=0;I<e.bubbleModule.bubbleCollection.length;I++){var N=e.bubbleModule.bubbleCollection[I];if(N.LayerIndex===r&&N.BubbleIndex===T&&N.DataIndex===v){var k=N.center.x,F=N.center.y,E=(k+d)*s,A=(F+p)*s,z=this.currentLayer.animationDuration;t&&0!==z?i.i(n._60)(P,0,z,new n.E(E,A)):P.setAttribute("transform","translate( "+E+" "+A+" )");break}}}else if(y.id.indexOf("_dataLableIndex_Group")>-1&&!i.i(o.isNullOrUndefined)(e.layers[this.index])){this.intersect=[],e.zoomLabelPositions=[],e.zoomLabelPositions=e.dataLabelModule.dataLabelCollections;for(var B=!e.isTileMap&&t,b=0;b<y.childElementCount;b++)if(y.childNodes[b].id.indexOf("_LabelIndex_")>-1){var j=parseFloat(y.childNodes[b].id.split("_LabelIndex_")[1].split("_")[0]);this.zoomshapewidth=y.childNodes[b].getBoundingClientRect(),e.zoomShapeCollection.push(this.zoomshapewidth),this.dataLabelTranslate(y.childNodes[b],u,d,p,s,"DataLabel",B);var U=e.layers[this.index].dataLabelSettings,R=U.border;if(b>0&&R.width>1&&y.childNodes[b-1].id.indexOf("_rectIndex_")>-1&&!i.i(o.isNullOrUndefined)(e.zoomLabelPositions[j])){var D=(e.zoomLabelPositions[j].location.x+d)*s,Z=(e.zoomLabelPositions[j].location.y+p)*s,H=y.childNodes[b].innerHTML,V=e.layers[this.index].dataLabelSettings.textStyle,G=i.i(n.u)(H,V),W=y.childNodes[b-1],q=D-G.width/2,X=Z-G.height/2-5;W.setAttribute("x",q),W.setAttribute("y",X)}}}}else e.isTileMap&&y.id.indexOf("_line_Group")>-1?(y.remove(),c.children.length>0&&c.children[0]?c.insertBefore(e.navigationLineModule.renderNavigation(this.currentLayer,e.tileZoomLevel,this.index),c.children[1]):c.appendChild(e.navigationLineModule.renderNavigation(this.currentLayer,e.tileZoomLevel,this.index))):-1===y.id.indexOf("Legend")&&(i.i(a._114)(y,this.index,s,e),e.zoomTranslatePoint=e.translatePoint,this.animateTransform(y,t,d,p,s))}}e.arrangeTemplate()}i.i(o.isNullOrUndefined)(this.currentLayer)||t&&0!==this.currentLayer.animationDuration&&!e.isTileMap||this.processTemplate(d,p,s,e)}},e.prototype.markerTranslates=function(e,t,r,l,s,d,p,h){var c=this;void 0===h&&(h=!1);var u=0,m=0,g=0,y=parseInt((e||p).id.split("_LayerIndex_")[1].split("_")[0],10),f=this.maps.renderer.createGroup({id:this.maps.element.id+"_Markers_Group",class:"GroupElement"});f.style.pointerEvents="auto",document.getElementById(f.id)&&i.i(n._22)(f.id);var b=this.maps.mapAreaRect,v=i.i(o.createElement)("div",{id:this.maps.element.id+"_LayerIndex_"+y+"_Markers_Template_Group",className:"template"});v.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+b.y+"px;left:"+b.x+"px;height:"+b.height+"px;width:"+b.width+"px;",document.getElementById(v.id)&&i.i(n._22)(v.id);var S=this.maps.layersCollection[y];S.markerSettings.map(function(e,h){var b=e.dataSource;Array.prototype.forEach.call(b,function(_,x){c.maps.markerNullCount=h>=0&&0===x?0:c.maps.markerNullCount;var O={template:e.template,data:_,maps:c.maps,marker:e,cancel:!1,name:a.q,fill:e.fill,colorValuePath:e.colorValuePath,shapeValuePath:e.shapeValuePath,height:e.height,width:e.width,imageUrl:e.imageUrl,imageUrlValuePath:e.imageUrlValuePath,shape:e.shape,border:e.border};O=i.i(n.P)(O,_),O=i.i(n.O)(O,_),c.maps.trigger("markerRendering",O,function(a){e.shapeValuePath!==O.shapeValuePath&&(O=i.i(n.P)(O,_)),e.colorValuePath!==O.colorValuePath&&(O=i.i(n.O)(O,_));var M=i.i(o.isNullOrUndefined)(e.latitudeValuePath)?i.i(o.isNullOrUndefined)(_.latitude)?i.i(o.isNullOrUndefined)(_.Latitude)?null:_.Latitude:parseFloat(_.latitude):Number(i.i(n.N)(_,e.latitudeValuePath)),L=i.i(o.isNullOrUndefined)(e.longitudeValuePath)?i.i(o.isNullOrUndefined)(_.longitude)?i.i(o.isNullOrUndefined)(_.Longitude)?null:_.Longitude:parseFloat(_.longitude):Number(i.i(n.N)(_,e.longitudeValuePath)),C=e.offset;if(!O.cancel&&e.visible&&!i.i(o.isNullOrUndefined)(L)&&!i.i(o.isNullOrUndefined)(M)){var w=c.maps.element.id+"_LayerIndex_"+y+"_MarkerIndex_"+h+"_dataIndex_"+x,P=c.maps.isTileMap?i.i(n.i)(new n.E(L,M),c.maps.tileZoomLevel,c.maps.tileTranslatePoint,!0):i.i(n.h)(M,L,t,S,c.maps),T={x:r,y:l};!O.template||isNaN(P.x)||isNaN(P.y)?O.template||isNaN(P.x)||isNaN(P.y)||(m++,i.i(n.T)(O,e,b,x,P,T,w,C,s,c.maps,f)):(g++,i.i(n.U)(O,void 0,w,_,h,v,P,T,s,C,c.maps))}u+=isNaN(M)||isNaN(L)?1:0,g+=O.cancel?1:0,m+=O.cancel?1:0,c.maps.markerNullCount=i.i(o.isNullOrUndefined)(M)||i.i(o.isNullOrUndefined)(L)?c.maps.markerNullCount+1:c.maps.markerNullCount;var I=b.length-c.maps.markerNullCount;f.childElementCount===I-g-u&&"Template"!==d&&(p.appendChild(f),S.markerClusterSettings.allowClustering&&(c.maps.svgObject.appendChild(f),c.maps.element.appendChild(c.maps.svgObject),i.i(n.Q)(S,f,c.maps,y,f,p,!0,!0))),v.childElementCount===I-m-u&&i.i(n._27)(c.maps.element.id+"_Secondary_Element")&&(i.i(n._27)(c.maps.element.id+"_Secondary_Element").appendChild(v),s>=1&&S.markerClusterSettings.allowClustering&&i.i(n.Q)(S,v,c.maps,y,f,p,!1,!0))})})})},e.prototype.processTemplate=function(e,t,a,r){for(var l=0;l<this.templateCount;l++){var s=r.mapLayerPanel.calculateFactor(this.currentLayer),d=i.i(n._27)(r.element.id+"_LayerIndex_"+l+"_Markers_Template_Group"),p=i.i(n._27)(r.element.id+"_LayerIndex_"+l+"_Label_Template_Group");if(!i.i(o.isNullOrUndefined)(d)&&d.childElementCount>0){d.style.visibility="visible";for(var h=0;h<d.childElementCount;h++)this.markerTranslate(d.childNodes[h],s,e,t,a,"Template")}if(!i.i(o.isNullOrUndefined)(p)&&p.childElementCount>0)for(var h=0;h<p.childElementCount;h++)this.dataLabelTranslate(p.childNodes[h],s,e,t,a,"Template")}},e.prototype.dataLabelTranslate=function(e,t,a,r,l,s,d){void 0===d&&(d=!1);var p,h,c,u,m,g,y=this.maps.dataLabelModule.dataLabelCollections,f=this.maps.layers[this.index].dataLabelSettings.textStyle,b=parseFloat(e.id.split("_LayerIndex_")[1].split("_")[0]),v=parseFloat(e.id.split("_shapeIndex_")[1].split("_")[0]);e.id.indexOf("_LabelIndex_")>-1&&(g=parseFloat(e.id.split("_LabelIndex_")[1].split("_")[0]));for(var S=this.currentLayer.animationDuration,_=0;_<y.length;_++){var x=y[_];if(x.layerIndex===b&&x.shapeIndex===v&&x.labelIndex===g){var O=x.location.x,M=x.location.y;if("Template"===s){var L=0,C=0;if(this.maps.isTileMap)c=x.dataLabelText,u=i.i(n.u)(c,f),L=(O+a)*l-u.width/2,C=(M+r)*l-u.height;else{var w=i.i(n._27)(this.maps.element.id+"_Layer_Collections");O=Math.abs(this.maps.baseMapRectBounds.min.x-O)*l,M=Math.abs(this.maps.baseMapRectBounds.min.y-M)*l;var P=w.getBoundingClientRect(),T=e.parentElement.getBoundingClientRect();L=O+(P.left-T.left),C=M+(P.top-T.top)}e.style.left=L+"px",e.style.top=C+"px"}else{O=(O+a)*l,M=(M+r)*l,c=x.dataLabelText,u=i.i(n.u)(c,f);var I=M-u.height/4,N=M+u.height/4,k=O+u.width/2,F=O-u.width/2,E={rightWidth:k,leftWidth:F,heightTop:I,heightBottom:N};if(d&&0!==S||e.setAttribute("transform","translate( "+O+" "+M+" )"),"Hide"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(p=this.maps.dataLabelShape[_]*l>=u.width?c:"",e.innerHTML=p):(p=this.maps.dataLabelShape[_]>=u.width?c:"",e.innerHTML=p)),"Trim"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(m=i.i(n._20)(this.maps.dataLabelShape[_]*l,c,f),p=m,e.innerHTML=p):(m=i.i(n._20)(this.maps.dataLabelShape[_],c,f),p=m,e.innerHTML=p)),"Hide"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var A=0;A<this.intersect.length;A++)if(!i.i(o.isNullOrUndefined)(this.intersect[A])){if(!(E.leftWidth>this.intersect[A].rightWidth||E.rightWidth<this.intersect[A].leftWidth||E.heightTop>this.intersect[A].heightBottom||E.heightBottom<this.intersect[A].heightTop)){p="",e.innerHTML=p;break}p=i.i(o.isNullOrUndefined)(p)?c:p,e.innerHTML=p}this.intersect.push(E)}if("Trim"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var z=0;z<this.intersect.length;z++)if(!i.i(o.isNullOrUndefined)(this.intersect[z]))if(E.rightWidth<this.intersect[z].leftWidth||E.leftWidth>this.intersect[z].rightWidth||E.heightBottom<this.intersect[z].heightTop||E.heightTop>this.intersect[z].heightBottom)h=i.i(o.isNullOrUndefined)(p)?c:p,l>1&&(h=i.i(n._20)(this.maps.dataLabelShape[_]*l,h,f)),e.innerHTML=h;else{if(E.leftWidth>this.intersect[z].leftWidth){var B=this.intersect[z].rightWidth-E.leftWidth,j=B-(E.rightWidth-E.leftWidth);p=i.i(o.isNullOrUndefined)(p)?c:p,h=i.i(n._20)(j,p,f),e.innerHTML=h;break}if(E.leftWidth<this.intersect[z].leftWidth){var B=E.rightWidth-this.intersect[z].leftWidth,j=Math.abs(B-(E.rightWidth-E.leftWidth));p=i.i(o.isNullOrUndefined)(p)?c:p,h=i.i(n._20)(j,p,f),e.innerHTML=h;break}}this.intersect.push(E),i.i(o.isNullOrUndefined)(h)&&(h=i.i(n._20)(this.maps.dataLabelShape[_]*l,c,f),e.innerHTML=h)}(d||S>0)&&i.i(n._60)(e,0,S,new n.E(O,M))}}}},e.prototype.markerTranslate=function(e,t,a,r,l,s,d){void 0===d&&(d=!1);var p=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),h=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10),c=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),u=this.maps.layersCollection[p],m=u.markerSettings[h];if(!i.i(o.isNullOrUndefined)(m)&&!i.i(o.isNullOrUndefined)(m.dataSource)&&!i.i(o.isNullOrUndefined)(m.dataSource[c])){var g=i.i(o.isNullOrUndefined)(m.longitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[c].longitude)?i.i(o.isNullOrUndefined)(m.dataSource[c].Latitude)?0:parseFloat(m.dataSource[c].Latitude):parseFloat(m.dataSource[c].longitude):Number(i.i(n.N)(m.dataSource[c],m.longitudeValuePath)),y=i.i(o.isNullOrUndefined)(m.latitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[c].latitude)?i.i(o.isNullOrUndefined)(m.dataSource[c].Latitude)?0:parseFloat(m.dataSource[c].Latitude):parseFloat(m.dataSource[c].latitude):Number(i.i(n.N)(m.dataSource[c],m.latitudeValuePath)),f=this.currentLayer.animationDuration,b=this.maps.isTileMap?i.i(n.i)(new n.r(g,y),this.maps.tileZoomLevel,this.maps.tileTranslatePoint,!0):i.i(n.h)(y,g,t,u,this.maps);if(this.maps.isTileMap)if("Template"===s){var v=e.getBoundingClientRect();if(e.style.left=b.x-v.width/2+m.offset.x+"px",e.style.top=b.y-v.height/2+m.offset.y+"px","GoogleStaticMap"===this.maps.layers[this.maps.baseLayerIndex].layerType){var S=i.i(n._27)(this.maps.element.id+"_StaticGoogleMap").getBoundingClientRect();"none"!==e.style.display&&((S.x>v.x||S.x+640<v.x+v.width)&&(S.y>v.y||S.y+S.height<v.y+v.height)?e.style.display="none":(S.x>v.x||S.x+640<v.x+v.width)&&(e.style.display="none"))}}else b.x+=m.offset.x,b.y+=m.offset.y,e.setAttribute("transform","translate( "+b.x+" "+b.y+" )");else if("Template"===s)if(f>0){b.x=Math.abs(this.maps.baseMapRectBounds.min.x-b.x)*l,b.y=Math.abs(this.maps.baseMapRectBounds.min.y-b.y)*l;var _=i.i(n._27)(this.maps.element.id+"_Layer_Collections").getBoundingClientRect(),x=e.parentElement.getBoundingClientRect();e.style.left=b.x+(_.left-x.left)+m.offset.x+"px",e.style.top=b.y+(_.top-x.top)+m.offset.y+"px",e.style.transform="translate(-50%, -50%)"}else{var x=e.getBoundingClientRect();e.style.left=(b.x+a)*l+m.offset.x-this.maps.mapAreaRect.x-x.width/2+"px",e.style.top=(b.y+r)*l+m.offset.y-this.maps.mapAreaRect.y-x.height/2+"px"}else b.x=(b.x+a)*l+m.offset.x,b.y=(b.y+r)*l+m.offset.y,d&&0!==f?i.i(n._60)(e,0,f,b):e.setAttribute("transform","translate( "+b.x+" "+b.y+" )")}},e.prototype.markerLineAnimation=function(e){if(e.isTileMap)for(var t=0;t<e.layersCollection.length;t++){var a=i.i(n._27)(this.maps.element.id+"_LayerIndex_"+t+"_Markers_Template_Group"),r=i.i(n._27)(this.maps.element.id+"_LayerIndex_"+t+"_line_Group");i.i(o.isNullOrUndefined)(a)||(a.style.visibility="hidden"),i.i(o.isNullOrUndefined)(r)||(r.style.visibility="hidden")}},e.prototype.panning=function(e,t,a,l){var s,d=this.maps,p=this.mouseDownPoints,h=this.mouseMovePoints,c=d.scale;d.markerZoomedState=!1,d.zoomPersistence=d.enablePersistence,d.defaultState=!1,d.initialCheck=!1;var u,m,g=d.translatePoint,y=d.tileTranslatePoint;if(t=i.i(o.isNullOrUndefined)(t)?p.x-h.x:t,a=i.i(o.isNullOrUndefined)(a)?p.y-h.y:a,this.maps.mergeCluster(),d.isTileMap){if(this.maps.tileZoomLevel>1){u=d.tileTranslatePoint.x-t,m=d.tileTranslatePoint.y-a,this.distanceX=u-d.tileTranslatePoint.x,this.distanceY=m-d.tileTranslatePoint.y,d.tileTranslatePoint.x=u,d.tileTranslatePoint.y=m,(d.tileTranslatePoint.y>-10&&a<0||d.tileTranslatePoint.y<-256*(Math.pow(2,this.maps.tileZoomLevel)-2)&&a>0)&&(d.tileTranslatePoint.x=u+t,d.tileTranslatePoint.y=m+a),d.translatePoint.x=(d.tileTranslatePoint.x-t)/d.scale,d.translatePoint.y=(d.tileTranslatePoint.y-a)/d.scale;var f=this.maps.getTileGeoLocation(l.layerX,l.layerY);s={cancel:!1,name:r.H,maps:d,tileTranslatePoint:{previous:y,current:d.tileTranslatePoint},translatePoint:{previous:g,current:d.translatePoint},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:f.latitude,longitude:f.longitude},d.trigger(r.H,s),d.mapLayerPanel.generateTiles(d.tileZoomLevel,d.tileTranslatePoint,"Pan"),this.applyTransform(d)}}else{var b=document.getElementById(d.element.id+"_Legend_Group"),v=i.i(o.isNullOrUndefined)(b)?0:b.getClientRects()[0].height;u=g.x-t/c,m=g.y-a/c;var S=i.i(n._27)(d.element.id+"_Layer_Collections").getBoundingClientRect(),_=i.i(n._27)(d.element.id+"_svg").getBoundingClientRect(),x=t<0?S.left<=_.left+d.mapAreaRect.x:S.left+S.width+d.mapAreaRect.x>=_.width,O=a<0?S.top<=_.top+d.mapAreaRect.y:S.top+S.height+v+d.margin.top>=_.top+_.height,M=this.maps.getGeoLocation(this.maps.layersCollection.length-1,l.layerX,l.layerY);s={cancel:!1,name:r.H,maps:d,tileTranslatePoint:{},translatePoint:{previous:g,current:new n.r(u,m)},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:M.latitude,longitude:M.longitude},d.trigger(r.H,s),s.cancel||(x&&O?(d.translatePoint=new n.r(u,m),this.applyTransform(d)):x?(d.translatePoint=new n.r(u,d.translatePoint.y),this.applyTransform(d)):O&&(d.translatePoint=new n.r(d.translatePoint.x,m),this.applyTransform(d))),this.maps.zoomNotApplied=!1}d.zoomTranslatePoint=d.translatePoint,this.mouseDownPoints=this.mouseMovePoints,this.isSingleClick=!1},e.prototype.toAlignSublayer=function(){this.maps.translatePoint.x=i.i(o.isNullOrUndefined)(this.distanceX)?this.maps.translatePoint.x:this.maps.translatePoint.x-this.distanceX/this.maps.scale,this.maps.translatePoint.y=i.i(o.isNullOrUndefined)(this.distanceY)?this.maps.translatePoint.y:this.maps.translatePoint.y-this.distanceY/this.maps.scale,this.applyTransform(this.maps,!1)},e.prototype.toolBarZooming=function(e,t){var i=this,o=this.maps;o.initialCheck=!1,o.defaultState="Reset"===t&&1===e&&!(o.zoomSettings.resetToInitial&&o.applyZoomReset)||"ZoomOut"===t&&1===e;var a=o.tileZoomLevel,r=o.previousScale=o.scale;o.markerZoomedState=!1,o.zoomPersistence=o.enablePersistence,o.mapScaleValue=e;var l=o.zoomSettings.maxZoom,s=o.zoomSettings.minZoom,d=o.mapAreaRect,p=o.previousPoint=o.translatePoint,h=o.tileTranslatePoint;o.previousProjection=o.projectionType,e="ZoomOut"===t&&1===Math.round(e)?1:e,e="Reset"===t?1:0===Math.round(e)?1:e,e=s>e&&"ZoomIn"===t?s+1:e;if(!o.isTileMap&&("ZoomIn"===t?e>=s&&e<=l:e>=s||o.isReset)){var c=o.baseMapRectBounds.min,u=o.baseMapRectBounds.max,m=Math.abs(u.x-c.x),g=Math.abs(c.y-u.y),y=void 0,f=void 0;if(e<1.2&&"Eckert5"!==o.projectionType)0!==g&&0!==m&&g!==m||(m=d.width/2,g=d.height),e=parseFloat(Math.min(d.width/m,d.height/g).toFixed(2)),e=e>1.05?1:e,o.translatePoint=this.calculateInitalZoomTranslatePoint(e,m,g,d,c,o);else{y=p.x-(d.width/r-d.width/e)/2,f=p.y-(d.height/r-d.height/e)/2;var b=Math.abs(o.baseMapRectBounds.max.y-o.baseMapRectBounds.min.y)*e;y=b<o.mapAreaRect.height?d.x+(-c.x+(d.width/2-m/2)):y,f=b<o.mapAreaRect.height?d.y+(-c.y+(d.height/2-g/2)):f,o.translatePoint=new n.r(y,f)}o.zoomTranslatePoint=o.translatePoint,o.scale=e,this.triggerZoomEvent(h,a,t)?(o.translatePoint=o.zoomTranslatePoint=o.previousPoint,o.scale=o.previousScale):this.applyTransform(o,!0)}else if(o.isTileMap&&(e>=s&&e<=l||o.isReset)){var v=a<s&&!o.isReset?s:e;if(o.scale=Math.pow(2,v-1),o.tileZoomLevel=v,o.previousScale!==o.scale||o.isReset){o.zoomSettings.zoomFactor=e;var S={x:o.availableSize.width/2,y:o.availableSize.height/2};if(this.getTileTranslatePosition(a,v,S,t),(o.zoomSettings.resetToInitial&&o.applyZoomReset&&"Reset"===t||"ZoomOut"===t&&o.zoomSettings.resetToInitial&&o.applyZoomReset&&v<=o.initialZoomLevel)&&(o.initialCheck=!0,o.zoomPersistence=!1,o.tileTranslatePoint.x=o.initialTileTranslate.x,o.tileTranslatePoint.y=o.initialTileTranslate.y,v=o.tileZoomLevel=o.mapScaleValue=o.initialZoomLevel),this.triggerZoomEvent(h,a,t))o.translatePoint=o.tileTranslatePoint=new n.r(0,0),o.scale=o.previousScale,o.tileZoomLevel=a,o.zoomSettings.zoomFactor=o.previousScale;else{o.translatePoint.y=(o.tileTranslatePoint.y-.01*o.mapScaleValue)/o.scale,o.translatePoint.x=(o.tileTranslatePoint.x-.01*o.mapScaleValue)/o.scale,document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),this.markerLineAnimation(o),o.mapLayerPanel.generateTiles(v,o.tileTranslatePoint,t);var _=(document.getElementById(this.maps.element.id+"_tiles"),this.maps.layersCollection[0].animationDuration);setTimeout(function(){i.applyTransform(i.maps,!0),document.getElementById(i.maps.element.id+"_LayerIndex_1")&&(document.getElementById(i.maps.element.id+"_LayerIndex_1").style.display="block"),i.maps.isAddLayer=!1},_)}}this.maps.zoomNotApplied=!1}},e.prototype.createZoomingToolbars=function(){var e=this.maps;this.toolBarGroup=e.renderer.createGroup({id:e.element.id+"_Zooming_KitCollection",opacity:"fluentdark"===e.theme.toLowerCase()?.6:.3});var t=15,i=15,o=e.zoomSettings.toolBarOrientation,a=e.zoomSettings.toolbars,r='<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/>';r+='<feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/>',r+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var l=e.zoomSettings.toolbars.length,s="Horizontal"===e.zoomSettings.toolBarOrientation?16*l+20*l:32,d="Horizontal"===e.zoomSettings.toolBarOrientation?32:16*l+20*l,p=e.renderer.createDefs();p.innerHTML=r,this.toolBarGroup.appendChild(p);var h=e.renderer.drawRectangle(new n.y(e.element.id+"_Zooming_Rect","transparent",{color:"transparent",width:1},.1,new n.F(0,0,s,d),0,0));h.setAttribute("filter","url(#chart_shadow)"),this.toolBarGroup.appendChild(h);for(var c=0;c<a.length;c++){var u=a[c];this.currentToolbarEle=e.renderer.createGroup({id:e.element.id+"_Zooming_ToolBar_"+u+"_Group",transform:"translate( "+t+" "+i+" ) "}),this.currentToolbarEle.setAttribute("class","e-maps-toolbar");var m="transparent",g="";switch(this.selectionColor=this.maps.zoomSettings.selectionColor||this.maps.themeStyle.zoomSelectionColor,u.toLowerCase()){case"zoom":var y=void 0,f=void 0;g="M0.001,14.629L1.372,16l4.571-4.571v-0.685l0.228-0.274c1.051,0.868,2.423,1.417,3.885,1.417c3.291,0,",g+="5.943-2.651,5.943-5.943S13.395,0,10.103,0S4.16,2.651,4.16,5.943c0,1.508,0.503,2.834,1.417,3.885l-0.274,0.228H4.571",g+="L0.001,14.629L0.001,14.629z M5.943,5.943c0-2.285,1.828-4.114,4.114-4.114s4.114,1.828,4.114,",this.maps.zoomSettings.enablePanning&&!this.maps.zoomSettings.enableSelectionZooming?(y=m,f=this.maps.themeStyle.zoomFillColor):this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(y=m,f=this.maps.themeStyle.zoomFillColor):this.maps.zoomSettings.enablePanning||this.maps.zoomSettings.enableSelectionZooming?(y=this.selectionColor,f=this.selectionColor):(y=m,f=this.maps.themeStyle.zoomFillColor),this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,y,1,f,1,1,null,g+"4.114s-1.828,4.114-4.114,4.114S5.943,8.229,5.943,5.943z"))),this.zoomElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomin":g="M 8, 0 L 8, 16 M 0, 8 L 16, 8",this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u+"_Path",m,3,this.maps.themeStyle.zoomFillColor,1,1,null,g))),this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomout":g="M 0, 8 L 16, 8",this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,m,3,this.maps.themeStyle.zoomFillColor,1,1,null,g))),this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"pan":var b=void 0;g="M5,3h2.3L7.275,5.875h1.4L8.65,3H11L8,0L5,3z M3,11V8.7l2.875,0.025v-1.4L3,7.35V5L0,8L3,",g+="11z M11,13H8.7l0.025-2.875h-1.4L7.35,13H5l3,3L11,13z M13,5v2.3l-2.875-0.025v1.4L13,8.65V11l3-3L13,5z",this.maps.zoomSettings.enablePanning&&this.maps.zoomModule.isDragZoom?b="#737373":this.maps.zoomSettings.enablePanning?b=this.selectionColor:(b="#737373",this.currentToolbarEle.setAttribute("class","")),this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,b,1,b,1,1,null,g))),this.panColor=b,this.panElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"reset":g="M12.364,8h-2.182l2.909,3.25L16,8h-2.182c0-3.575-2.618-6.5-5.818-6.5c-1.128,0-2.218,0.366-3.091,",g+="1.016l1.055,1.178C6.581,3.328,7.272,3.125,8,3.125C10.4,3.125,12.363,5.319,12.364,8L12.364,8z M11.091,",g+="13.484l-1.055-1.178C9.419,12.672,8.728,12.875,8,12.875c-2.4,0-4.364-2.194-4.364-4.875h2.182L2.909,4.75L0,8h2.182c0,",this.currentToolbarEle.appendChild(e.renderer.drawPath(new n.w(e.element.id+"_Zooming_ToolBar_"+u,this.fillColor,null,this.maps.themeStyle.zoomFillColor,1,1,null,g+"3.575,2.618,6.5,5.818,6.5C9.128,14.5,10.219,14.134,11.091,13.484L11.091,13.484z"))),this.wireEvents(this.currentToolbarEle,this.performToolBarAction)}this.currentToolbarEle.appendChild(e.renderer.drawCircle(new n.z(e.element.id+"_Zooming_ToolBar_"+u+"_Rect",m,{color:this.maps.themeStyle.zoomFillColor,width:1},1,8,8,16,""))),t="Horizontal"===o?t+36:t,i="Horizontal"===o?i:i+36,this.toolBarGroup.appendChild(this.currentToolbarEle)}},e.prototype.performToolBarAction=function(e){var t=e.target;e.stopImmediatePropagation();var i="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1,n=t.id.split("_Zooming_ToolBar_")[1].split("_")[0];i?(this.handled=!0,this.performZoomingByToolBar(n)):"mousedown"!==e.type&&"pointerdown"!==e.type||this.handled?this.handled=!1:(this.handled=!1,this.performZoomingByToolBar(n))},e.prototype.performZoomingByToolBar=function(e){var t=this.maps;switch(t.isReset=!1,e.toLowerCase()){case"zoom":this.panColor=this.fillColor,this.zoomColor=this.selectionColor,this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.fillColor);break;case"pan":this.maps.zoomSettings.enablePanning?this.panColor=this.selectionColor:this.panColor="#737373",this.zoomColor=this.fillColor,this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,this.fillColor),this.applySelection(this.panElements,this.panColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.panColor));break;case"zoomin":t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<22&&(t.staticMapZoom+=1),this.toolBarZooming((t.isTileMap?t.tileZoomLevel:t.scale)+1,"ZoomIn");break;case"zoomout":t.staticMapZoom=t.tileZoomLevel,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.toolBarZooming((t.isTileMap?t.tileZoomLevel:t.scale)-1,"ZoomOut");break;case"reset":t.staticMapZoom=t.zoomSettings.enable?t.zoomSettings.zoomFactor:0,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.toolBarZooming(1,"Reset"),this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,this.fillColor),this.applySelection(this.panElements,this.selectionColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,"#737373"))}this.panningStyle(e.toLowerCase())},e.prototype.panningStyle=function(e){var t=i.i(n._27)(this.maps.element.id+"_svg");"pan"===e||this.isPanning?t.setAttribute("class","e-maps-panning"):t.setAttribute("class","")},e.prototype.applySelection=function(e,t){if(e)for(var i,n=0;n<e.childElementCount;n++)i=e.childNodes[n],"circle"!==i.tagName&&(i.setAttribute("fill",t),i.setAttribute("stroke",t))},e.prototype.showTooltip=function(e){var t=e.target.id.split("_Zooming_ToolBar_")[1].split("_")[0];this.isTouch||i.i(n._45)("EJ2_Map_Toolbar_Tip",this.maps.getLocalizedLabel(t),e.pageY+10,e.pageX+10,"10px")},e.prototype.removeTooltip=function(){i.i(n._27)("EJ2_Map_Toolbar_Tip")&&i.i(o.remove)(i.i(n._27)("EJ2_Map_Toolbar_Tip"))},e.prototype.alignToolBar=function(){var e=this.maps,t=i.i(o.createElement)("div",{id:e.element.id+"_ToolBar"});t.style.cssText="position:absolute;z-index:2";var a=e.renderer.createSvg({id:e.element.id+"_Zooming_ToolBar",width:10,height:10});a.appendChild(this.toolBarGroup),t.appendChild(a),i.i(n._27)(e.element.id+"_Secondary_Element")&&i.i(n._27)(e.element.id+"_Secondary_Element").appendChild(t);var r=this.toolBarGroup.getBoundingClientRect();a.setAttribute("height",(r.height+5).toString()),a.setAttribute("width",(r.width+5).toString());var l=i.i(o.isNullOrUndefined)(e.totalRect)?e.mapAreaRect:e.totalRect,s=0,d=0;switch(e.zoomSettings.verticalAlignment){case"Near":d=l.y;break;case"Center":d=l.height/2-r.height/2;break;case"Far":d=l.height-r.height-10}switch(e.zoomSettings.horizontalAlignment){case"Near":s=l.x;break;case"Center":s=l.width/2-r.width/2;break;case"Far":s=i.i(o.isNullOrUndefined)(e.legendModule)||"Left"!==e.legendSettings.position?l.width-r.width-10:l.width+l.x-r.width-10}var p=e.getExtraPosition();t.style.left=s+p.x+"px",t.style.top=d+p.y+"px";var h=this.maps.zoomSettings.highlightColor||this.maps.themeStyle.zoomSelectionColor,c=" .e-maps-toolbar:hover > circle { stroke:"+h+"; } .e-maps-toolbar:hover > path { fill: "+h+" ; stroke: "+h+"; }.e-maps-toolbar:hover { cursor: pointer; } .e-maps-cursor-disable:hover { cursor: not-allowed; } .e-maps-panning:hover { cursor: pointer; } .e-maps-popup-close { display: block; opacity: 0; }",u=document.createElement("style");u.appendChild(document.createTextNode(c)),t.appendChild(u)},e.prototype.wireEvents=function(e,t){o.EventHandler.add(e,o.Browser.touchStartEvent,t,this),o.EventHandler.add(e,"mouseover",this.showTooltip,this),o.EventHandler.add(e,"mouseout",this.removeTooltip,this)},e.prototype.mapMouseWheel=function(e){if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.mouseWheelZoom){var t=this.maps;t.availableSize;t.markerZoomedState=!1,t.zoomPersistence=t.enablePersistence;var i=this.getMousePosition(e.pageX,e.pageY),n=t.tileZoomLevel,o=t.scale,a=t.isTileMap?n:o;if(i.x>t.mapAreaRect.x&&i.x<t.mapAreaRect.x+t.mapAreaRect.width&&i.y>t.mapAreaRect.y&&i.y<t.mapAreaRect.y+t.mapAreaRect.height){e.preventDefault();var r="mozilla"!==this.browserName||this.isPointer?e.wheelDelta/120>0?"ZoomIn":"ZoomOut":-e.detail/3>0?"ZoomIn":"ZoomOut";"ZoomIn"===r?(t.mapScaleValue=a+1,t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<22&&(t.staticMapZoom+=1),this.performZooming(i,a+1,r)):(t.mapScaleValue=a-1,t.isReset=t.mapScaleValue<1,t.staticMapZoom=t.tileZoomLevel,1===t.mapScaleValue&&(t.markerCenterLatitude=null,t.markerCenterLongitude=null),t.staticMapZoom>1&&t.staticMapZoom<22&&(t.staticMapZoom-=1),this.performZooming(i,a-1,r))}}},e.prototype.doubleClick=function(e){var t=e.pageX,i=e.pageY;e.target;if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.doubleClickZoom&&!(e.target.id.indexOf("_Zooming_")>-1)){var n=this.getMousePosition(t,i),o=this.maps,a=(o.availableSize,o.tileZoomLevel),r=o.scale;o.mapScaleValue=o.mapScaleValue+1;var l=o.isTileMap?a:r;n.x>o.mapAreaRect.x&&n.x<o.mapAreaRect.x+o.mapAreaRect.width&&n.y>o.mapAreaRect.y&&n.y<o.mapAreaRect.y+o.mapAreaRect.height&&this.performZooming(n,l+1,"ZoomIn")}},e.prototype.mouseDownHandler=function(e){var t,i,n=null;e.target;"touchstart"===e.type?(this.isTouch=!0,n=e.touches,e.target,t=n[0].clientX,i=n[0].clientY):(t=e.pageX,i=e.pageY,e.target),this.maps.zoomSettings.enablePanning?this.isPanning=this.panColor===this.selectionColor?this.maps.zoomSettings.enablePanning:this.zoomColor!==this.selectionColor:this.isPanning=this.panColor!==this.selectionColor?this.maps.zoomSettings.enablePanning:this.zoomColor===this.selectionColor,this.mouseDownLatLong={x:t,y:i},this.rectZoomingStart=!this.isPanning&&this.maps.zoomSettings.enable,this.mouseDownPoints=this.getMousePosition(t,i),this.isTouch&&(this.firstMove=!0,this.pinchFactor=this.maps.scale,this.fingers=n.length),this.isSingleClick=!0},e.prototype.mouseMoveHandler=function(e){var t,a,r,l=this.maps,s=null,d=this.maps.zoomSettings;"touchmove"===e.type?(this.isTouch=!0,r=e.target,s=e.touches,t=s[0].clientX,a=s[0].clientY):(t=e.pageX,a=e.pageY,r=e.target),i.i(n._27)(l.element.id+"_Zooming_KitCollection")&&(r.id.indexOf("_Zooming_")>-1?(i.i(n._27)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","1"),document.getElementById(l.element.id+"_Zooming_ToolBar_Pan_Group")&&(this.maps.zoomSettings.enablePanning||(r.id.indexOf("_Zooming_ToolBar")>-1||r.id.indexOf("_Zooming_Rect")>-1)&&(i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan_Rect").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3"),i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3")))):(i.i(n._27)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3"),!this.maps.zoomSettings.enablePanning&&document.getElementById(l.element.id+"_Zooming_ToolBar_Pan_Group")&&(i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan_Rect").setAttribute("opacity","1"),i.i(n._27)(l.element.id+"_Zooming_ToolBar_Pan").setAttribute("opacity","1")))),this.isTouch&&this.maps.zoomSettings.pinchZooming&&(this.firstMove&&2===s.length?(this.rectZoomingStart=!1,this.updateInteraction(),this.touchStartList=i.i(n._51)(e)):2===s.length&&2===this.touchStartList.length&&(this.touchMoveList=i.i(n._51)(e),e.preventDefault(),this.rectZoomingStart=!1,this.performPinchZooming(e)),this.firstMove=!1),this.mouseMovePoints=this.getMousePosition(t,a);e.target.id,e.target;d.enable&&this.isPanning&&(o.Browser.isDevice&&s.length>=1||!o.Browser.isDevice)&&(e.preventDefault(),this.maps.element.style.cursor="pointer",this.mouseMoveLatLong={x:t,y:a},this.mouseDownLatLong.x!==this.mouseMoveLatLong.x&&this.mouseDownLatLong.y!==this.mouseMoveLatLong.y&&(this.maps.zoomSettings.enablePanning&&this.panning("None",null,null,e),this.mouseDownLatLong.x=t,this.mouseDownLatLong.y=a)),(this.isTouch?1===s.length&&this.rectZoomingStart:this.rectZoomingStart)&&(e.preventDefault(),this.maps.zoomSettings.enableSelectionZooming&&this.drawZoomRectangle())},e.prototype.mouseUpHandler=function(e){this.maps;this.rectZoomingStart=!1,this.isPanning=!1,this.isSingleClick=!!this.isSingleClick,this.isTouch=!1,this.touchStartList=[],this.touchMoveList=[],this.lastScale=1,this.maps.element.style.cursor="auto",i.i(o.isNullOrUndefined)(this.distanceX)&&i.i(o.isNullOrUndefined)(this.distanceY)||i.i(o.isNullOrUndefined)(this.currentLayer)||"SubLayer"!==this.currentLayer.type||(this.toAlignSublayer(),this.distanceX=this.distanceY=null);var t=i.i(n._27)(this.maps.element.id+"_Selection_Rect_Zooming");t&&this.maps.zoomSettings.enable&&this.maps.zoomSettings.enableSelectionZooming&&(!0,i.i(o.remove)(t),this.performRectZooming()),this.mouseMoveLatLong={x:0,y:0},this.mouseDownLatLong={x:0,y:0}},e.prototype.mouseCancelHandler=function(e){this.isPanning=!1,this.isTouch=!1,this.rectZoomingStart=!1;var t=i.i(n._27)(this.maps.element.id+"_Selection_Rect_Zooming");t&&this.maps.zoomSettings.enable&&(i.i(o.remove)(t),this.performRectZooming())},e.prototype.click=function(e){var t=this.maps;if(t.markerModule&&t.markerModule.sameMarkerData.length>0||e.target.id.indexOf("MarkerIndex")>-1&&-1===e.target.id.indexOf("cluster"))return null;if(this.isSingleClick&&t.zoomSettings.zoomOnClick&&!(e.target.id.indexOf("_Zooming_")>-1)&&!t.zoomSettings.doubleClickZoom&&this.zoomColor!==this.selectionColor){var i=e.pageX,n=e.pageY,o=this.getMousePosition(i,n),a=t.tileZoomLevel,r=t.scale;t.mapScaleValue=t.mapScaleValue+1;var l=t.isTileMap?a:r;o.x>t.mapAreaRect.x&&o.x<t.mapAreaRect.x+t.mapAreaRect.width&&o.y>t.mapAreaRect.y&&o.y<t.mapAreaRect.y+t.mapAreaRect.height&&this.performZooming(o,l+1,"ZoomIn")}},e.prototype.getMousePosition=function(e,t){var i=this.maps,o=i.element.getBoundingClientRect(),a=i.element.ownerDocument.defaultView.pageXOffset,r=i.element.ownerDocument.defaultView.pageYOffset,l=i.element.ownerDocument.documentElement.clientTop,s=i.element.ownerDocument.documentElement.clientLeft,d=o.left+a-s,p=o.top+r-l;return new n.r(Math.abs(e-d),Math.abs(t-p))},e.prototype.addEventListener=function(){this.maps.isDestroyed||(o.EventHandler.add(this.maps.element,this.wheelEvent,this.mapMouseWheel,this),o.EventHandler.add(this.maps.element,"click",this.click,this),o.EventHandler.add(this.maps.element,"dblclick",this.doubleClick,this),this.maps.on(o.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.maps.on(o.Browser.touchStartEvent,this.mouseDownHandler,this),this.maps.on(o.Browser.touchEndEvent,this.mouseUpHandler,this),o.EventHandler.add(this.maps.element,this.cancelEvent,this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(o.EventHandler.remove(this.maps.element,this.wheelEvent,this.mapMouseWheel),o.EventHandler.remove(this.maps.element,"click",this.click),o.EventHandler.remove(this.maps.element,"dblclick",this.doubleClick),this.maps.off(o.Browser.touchMoveEvent,this.mouseMoveHandler),this.maps.off(o.Browser.touchStartEvent,this.mouseDownHandler),this.maps.off(o.Browser.touchEndEvent,this.mouseUpHandler),this.maps.off(this.cancelEvent,this.mouseCancelHandler))},e.prototype.getModuleName=function(){return"Zoom"},e.prototype.destroy=function(){this.toolBarGroup=null,this.currentToolbarEle=null,this.zoomingRect=null,this.zoomElements=null,this.panElements=null,this.baseTranslatePoint=null,this.touchStartList=null,this.touchMoveList=null,this.previousTouchMoveList=null,this.mouseDownPoints=null,this.mouseMovePoints=null,this.startTouches=[],this.zoomshapewidth=null,this.intersect=[],this.mouseDownLatLong=null,this.mouseMoveLatLong=null,this.removeEventListener(),this.currentLayer=null},e}()},function(e,t){e.exports=i},function(e,t){e.exports=n}])});