Jonathan Ouellette 580e90f6a2 initial add
2022-09-27 14:10:30 -07:00

11 lines
46 KiB
JavaScript

/*
* Kendo UI Complete v2013.3.1119 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(){function t(t){return typeof t!==g}function e(t,e){var i=d.pow(10,e||0);return d.round(t*i)/i}function i(t,e,i){return d.max(d.min(t,i),e)}function n(t){return t*v}function s(t){return t/v}function r(t){return d.round(t)+.5}function o(t){return"number"==typeof t&&!isNaN(t)}function a(e,i){return t(e)?e:i}function h(e,i){return t(i)?" "+e+"='"+i+"' ":""}function l(t){var e,i="";for(e=0;e<t.length;e++)i+=h(t[e][0],t[e][1]);return i}function c(t){return"string"!=typeof t&&(t+="px"),t}function u(){this.observer&&this.observer.geometryChange()}var d=Math,p=window.kendo,m=p.deepExtend,f=p.dataviz,v=d.PI/180,g="undefined";m(f,{util:{mixins:{geometryChange:u},alignToPixel:r,defined:t,deg:s,isNumber:o,limitValue:i,round:e,rad:n,renderAttr:h,renderAllAttr:l,renderSize:c,valueOrDefault:a}})}(window.kendo.jQuery),function(){var t,e,i,n=Math,s=window.kendo,r=s.Class,o=s.deepExtend,a=s.dataviz,h=a.util,l=h.defined,c=h.rad,u=h.round,d=r.extend({init:function(t,e){this.x=t||0,this.y=e||0,this.observer=null},geometryChange:h.mixins.geometryChange,set:function(t,e){"x"===t?this.x!==e&&(this.x=e,this.geometryChange()):"y"===t&&this.y!==e&&(this.y=e,this.geometryChange())},get:function(t){return"x"===t?this.x:"y"===t?this.y:void 0},equals:function(t){return t&&t.x===this.x&&t.y===this.y},clone:function(){return new d(this.x,this.y)},rotate:function(t,e){var i=c(e),s=n.cos(i),r=n.sin(i),o=t.x,a=t.y,h=this.x,l=this.y;return this.x=o+(h-o)*s+(l-a)*r,this.y=a+(l-a)*s-(h-o)*r,this.geometryChange(),this},multiply:function(t){return this.x*=t,this.y*=t,this.geometryChange(),this},transform:function(t){return this.x=t.a*this.x+t.c*this.y+t.e,this.y=t.b*this.x+t.d*this.y+t.f,this.geometryChange(),this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},distanceTo:function(t){var e=this.x-t.x,i=this.y-t.y;return n.sqrt(e*e+i*i)},round:function(t){return this.x=u(this.x,t),this.y=u(this.y,t),this}});d.fn.toString=function(t,e){var i=this.x,n=this.y;return l(t)&&(i=u(i,t),n=u(n,t)),e=e||" ",i+e+n},t=r.extend({init:function(t,e){this.p0=t||new d,this.p1=e||new d,this.observer=null,this.p0.observer=this,this.p1.observer=this},geometryChange:h.mixins.geometryChange,width:function(){return this.p1.x-this.p0.x},height:function(){return this.p1.y-this.p0.y}}),e=r.extend({init:function(t,e){this.center=t||new d,this.radius=e||0,this.observer=null,this.center.observer=this},geometryChange:h.mixins.geometryChange,equals:function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},clone:function(){return new e(this.center.clone(),this.radius)},set:function(t,e){"radius"===t&&this.radius!==e&&(this.radius=e,this.geometryChange())},get:function(){return this.radius},pointAt:function(t){var e=this.center,i=this.radius,s=c(t);return new d(e.x-i*n.cos(s),e.y-i*n.sin(s))}}),i=r.extend({init:function(t,e,i,n,s,r){this.a=t||0,this.b=e||0,this.c=i||0,this.d=n||0,this.e=s||0,this.f=r||0},times:function(t){return new i(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}}),o(i,{translate:function(t,e){var n=new i;return n.a=1,n.b=0,n.c=0,n.d=1,n.e=t,n.f=e,n},unit:function(){return new i(1,0,0,1,0,0)},rotate:function(t,e,s){var r=new i;return r.a=n.cos(c(t)),r.b=n.sin(c(t)),r.c=-r.b,r.d=r.a,r.e=e-e*r.a+s*r.b||0,r.f=s-s*r.a-e*r.b||0,r},scale:function(t,e){var n=new i;return n.a=t,n.b=0,n.c=0,n.d=e,n.e=0,n.f=0,n}}),o(a,{geometry:{Circle:e,Matrix:i,Point:d,Rect:t}})}(window.kendo.jQuery),function(){var t,e,i,n=jQuery,s=document,r=n.noop,o=Object.prototype.toString,a=window.kendo,h=a.Class,l=a.deepExtend,c=a.dataviz,u=a.Observable.extend({clear:r,destroy:function(){this.clear(),n(this.element).kendoDestroy()},resize:function(t){var e=this.getSize(),i=this._size;(t||!i||e.width!==i.width||e.height!==i.height)&&(this._size=e,this._resize(e))},getSize:function(){return{width:n(this.element).width(),height:n(this.element).height()}},setSize:function(t){n(this.element).css({width:t.width,height:t.height}),this.resize()},_resize:r,_handler:function(t){var e=this;return function(i){var n=i.target._kendoNode;n&&e.trigger(t,{shape:n.srcElement,originalEvent:i})}}});u.create=function(t,e,n){return i.current.create(t,e,n)},t=h.extend({init:function(t){this.childNodes=[],this.parent=null,t&&(this.srcElement=t,t.observer=this)},load:r,append:function(t){this.childNodes.push(t),t.parent=this},remove:function(t,e){for(var i=t;e>i;i++)this.childNodes[i].clear();this.childNodes.splice(t,e),this.parent=null},clear:function(){this.remove(0,this.childNodes.length)},invalidate:function(){this.parent&&this.parent.invalidate()},geometryChange:function(){this.invalidate()},optionsChange:function(){this.invalidate()},childrenChange:function(t){"add"===t.action?this.load(t.items):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()}}),e=h.extend({init:function(t,e){var i,n;this.observer=null,this.prefix=e||"";for(i in t)n=t[i],n=this.wrap(n,i),this[i]=n},optionsChange:function(t){this.observer&&this.observer.optionsChange(t)},get:function(t){return a.getter(t,!0)(this)},set:function(t,e){var i,n=a.getter(t,!0)(this);n!==e&&(i=this._set(t,this.wrap(e,t)),this.observer&&!i&&this.observer.optionsChange({field:this.prefix+t,value:e}))},_set:function(t,i){var n,s,r,o=t.indexOf(".")>=0;if(o)for(s=t.split("."),r="";s.length>1;){if(r+=s.shift(),n=a.getter(r,!0)(this),n||(n=new e({},r+"."),n.observer=this,this[r]=n),n instanceof e)return n.set(s.join("."),i),o;r+="."}return a.setter(t)(this,i),o},wrap:function(t,i){var n=o.call(t);return null!==t&&"[object Object]"===n&&(t instanceof e||(t=new e(t,this.prefix+i+".")),t.observer=this),t}}),i=function(){this._views=[]},i.prototype={register:function(t,e,i){var n=this._views,s=n[0],r={name:t,type:e,order:i};!s||i<s.order?n.unshift(r):n.push(r)},create:function(t,e,i){var n,s=this._views,r=s[0];if(i)for(i=i.toLowerCase(),n=0;n<s.length;n++)if(s[n].name===i){r=s[n];break}return r?new r.type(t,e):(a.logToConsole("Warning: KendoUI DataViz cannot render. Possible causes:\n- The browser does not support SVG, VML and Canvas. User agent: "+navigator.userAgent+"\n"+"- The kendo.dataviz.(svg|vml|canvas).js scripts are not loaded"),void 0)}},i.current=new i,a.support.svg=function(){return s.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}(),a.support.canvas=function(){return!!s.createElement("canvas").getContext}(),l(c,{drawing:{BaseNode:t,OptionsStore:e,Surface:u,SurfaceFactory:i}})}(window.kendo.jQuery),function(){var t=window.kendo,e=t.Class,i=t.deepExtend,n=t.dataviz,s=n.append,r=n.geometry,o=r.Point,a=n.drawing,h=a.OptionsStore,l=n.util,c=l.defined,u=e.extend({init:function(t){var e=this;e.observer=null,e.options=new h(t||{}),e.options.observer=this},optionsChange:function(t){this.observer&&this.observer.optionsChange(t)},visible:function(t){return this.options.set("visible",t),this}}),d=u.extend({init:function(t){this.children=[],u.fn.init.call(this,t)},childrenChange:function(t,e,i){this.observer&&this.observer.childrenChange({action:t,items:e,index:i})},traverse:function(t){var e,i,n=this.children;for(e=0;e<n.length;e++)i=n[e],t(i),i.traverse&&i.traverse(t)},append:function(){s(this.children,arguments),this.childrenChange("add",arguments)},clear:function(){var t=this.children;this.children=[],this.childrenChange("remove",t,0)}}),p=u.extend({geometryChange:l.mixins.geometryChange,fill:function(t,e){return this.options.set("fill.color",t),c(e)&&this.options.set("fill.opacity",e),this},stroke:function(t,e,i){return this.options.set("stroke.color",t),c(e)&&this.options.set("stroke.width",e),c(i)&&this.options.set("stroke.opacity",i),this}}),m=p.extend({init:function(t,e){var i=this;i.content=t,p.fn.init.call(i,e)}}),f=p.extend({init:function(t,e){var i=this;p.fn.init.call(i,e),i.geometry=t||new r.Circle,i.geometry.observer=this}}),v=e.extend({init:function(t,e,i){var n=this;n.anchor=t||new o,n.anchor.observer=this,n.observer=null,e&&(n.controlIn=e,n.controlIn.observer=this),i&&(n.controlOut=i,n.controlOut.observer=this)},geometryChange:l.mixins.geometryChange}),g=p.extend({init:function(t){var e=this;e.segments=[],e.observer=null,p.fn.init.call(e,t)},moveTo:function(t,e){return this.segments=[],this.lineTo(t,e),this},lineTo:function(t,e){var i=c(e)?new o(t,e):t,n=new v(i);return n.observer=this,this.segments.push(n),this.geometryChange(),this},close:function(){return this.options.closed=!0,this.geometryChange(),this}}),y=p.extend({init:function(t){this.paths=[],p.fn.init.call(this,t)},moveTo:function(t,e){var i=new g;return i.observer=this,this.paths.push(i),i.moveTo(t,e),this},lineTo:function(t,e){return this.paths.length>0&&n.last(this.paths).lineTo(t,e),this},close:function(){return this.paths.length>0&&n.last(this.paths).close(),this}});i(a,{Group:d,Shape:p,Circle:f,Path:g,MultiPath:y,Segment:v,Text:m})}(window.kendo.jQuery),function(t){function e(t){var e,i,n,s;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(r){}e&&(i=-e.e%1,n=-e.f%1,s=t.style,(0!==i||0!==n)&&(s.left=i+"px",s.top=n+"px"))}var i=document,n=window.kendo,s=n.deepExtend,r=n.dataviz,o=r.defined,a=r.renderTemplate,h=r.drawing,l=h.BaseNode,c=r.util,u=c.renderAttr,d=c.renderAllAttr,p=c.renderSize,m="butt",f=r.DASH_ARRAYS,v="none",g="solid",y="square",_="http://www.w3.org/2000/svg",w="transparent",x="undefined",b=h.Surface.extend({init:function(t,e){h.Surface.fn.init.call(this),this.options=s({},this.options,e),this.bind(this.events,this.options),this._root=new T,this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._appendTo(t)},options:{width:"100%",height:"100%"},events:["click","mouseenter","mouseleave"],translate:function(t){var e=n.format("{0} {1} {2} {3}",t.x,t.y,this._size.width,this._size.height);this._offset=t,this.element.setAttribute("viewBox",e)},draw:function(t){this._root.load([t])},clear:function(){this._root.clear()},svg:function(){return this._template(this)},setSize:function(t){this.element.setAttribute("width",p(t.width)),this.element.setAttribute("height",p(t.height)),this.resize()},_resize:function(){this._offset&&this.translate(this._offset)},_template:a("<?xml version='1.0' ?><svg xmlns='"+_+"' version='1.1' "+"width='#= kendo.dataviz.util.renderSize(d.options.width) #' "+"height='#= kendo.dataviz.util.renderSize(d.options.height) #' "+"style='position: absolute;'>#= d._root.render() #</svg>"),_appendTo:function(i){L(i,this._template(this)),this.element=i.firstElementChild,e(this.element),this._root.attachTo(this.element);var n=t(this.element);n.on("click",this._click),n.on("mouseover",this._mouseenter),n.on("mouseout",this._mouseleave),this.resize()}}),k=l.extend({load:function(t){var e,i,n,s,r=this,o=r.element;for(s=0;s<t.length;s++)i=t[s],n=i.children,i instanceof h.Group?e=new C(i):i instanceof h.Path?e=new z(i):i instanceof h.MultiPath?e=new S(i):i instanceof h.Circle&&(e=new E(i)),n&&n.length>0&&e.load(n),r.append(e),o&&e.attachTo(o)},attachTo:function(t){var e,n=i.createElement("div");L(n,"<svg xmlns='"+_+"' version='1.1'>"+this.render()+"</svg>"),e=n.firstChild.firstChild,e&&(t.appendChild(e),this.setElement(e))},setElement:function(t){var e,i,n=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=t,t._kendoNode=this,i=0;i<n.length;i++)e=t.childNodes[i],n[i].setElement(e)},template:a("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var t,e=this.childNodes,i="";for(t=0;t<e.length;t++)i+=e[t].render();return i},clear:function(){var t=this.element;t&&(t.parentNode.removeChild(t),this.element=null),l.fn.clear.call(this)}}),T=k.extend({attachTo:function(t){this.element=t},clear:l.fn.clear}),C=k.extend({template:a("<g>#= d.renderChildren() #</g>")}),z=k.extend({geometryChange:function(){this.attr("d",this.renderData()),this.invalidate()},optionsChange:function(t){switch(t.field){case"fill":this.allAttr(this.mapFill(t.value));break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;case"stroke":this.allAttr(this.mapStroke(t.value));break;case"visible":this.attr("visibility",t.value?"visible":"hidden");break;default:var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}this.invalidate()},attributeMap:{"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},attr:function(t,e){this.element&&this.element.setAttribute(t,e)},allAttr:function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},renderData:function(){return this.printPath(this.srcElement)},printPath:function(t){var e,i,n,s=t.segments;if(s.length>0){for(n=[],i=0;i<s.length;i++)n.push(s[i].anchor.toString(1));return e="M"+n.join(" "),t.options.closed&&(e+="Z"),e}},mapStroke:function(t){var e=[];return t&&(e.push(["stroke",t.color]),e.push(["stroke-width",t.width]),e.push(["stroke-linecap",this.renderLinecap(t)]),o(t.opacity)&&e.push(["stroke-opacity",t.opacity]),o(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])),e},renderStroke:function(){return d(this.mapStroke(this.srcElement.options.stroke))},renderDashType:function(t){var e,i,n,s=t.width||1,r=t.dashType;if(r&&r!=g){for(i=f[r.toLowerCase()],n=[],e=0;e<i.length;e++)n.push(i[e]*s);return n.join(" ")}},renderLinecap:function(t){var e=t.dashType,i=t.lineCap||y;return e&&e!=g?m:i},mapFill:function(t){var e=[];return t&&t.color!==w?(e.push(["fill",t.color]),o(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",v]),e},renderFill:function(){return d(this.mapFill(this.srcElement.options.fill))},renderCursor:function(){var t=this.srcElement.options.cursor;return t?"cursor:"+t+";":void 0},renderVisibility:function(){return this.srcElement.options.visible===!1?u("visibility","hidden"):""},template:a("<path #= kendo.dataviz.util.renderAttr('style', d.renderCursor()) # #= d.renderVisibility() # #= kendo.dataviz.util.renderAttr('d', d.renderData()) # #= d.renderStroke() # #= d.renderFill() # stroke-linejoin='round'></path>")}),S=z.extend({renderData:function(){var t,e,i=this.srcElement.paths;if(i.length>0){for(e=[],t=0;t<i.length;t++)e.push(this.printPath(i[t]));return e.join(" ")}}}),E=z.extend({geometryChange:function(){var t=this.srcElement.geometry;this.attr("cx",t.center.x),this.attr("cy",t.center.y),this.attr("r",t.radius),this.invalidate()},template:a("<circle #= kendo.dataviz.util.renderAttr('style', d.renderCursor()) # cx='#= this.srcElement.geometry.center.x #' cy='#= this.srcElement.geometry.center.y #' r='#= this.srcElement.geometry.radius #' #= d.renderVisibility() # #= d.renderStroke() # #= d.renderFill() #></circle>")}),L=function(t,e){t.innerHTML=e};!function(){var t="<svg xmlns='"+_+"'></svg>",e=i.createElement("div"),n=typeof DOMParser!=x;e.innerHTML=t,n&&e.firstChild.namespaceURI!=_&&(L=function(t,e){var n=new DOMParser,s=n.parseFromString(e,"text/xml"),r=i.adoptNode(s.documentElement);t.innerHTML="",t.appendChild(r)})}(),n.support.svg&&h.SurfaceFactory.current.register("svg",b,10),s(h,{svg:{CircleNode:E,GroupNode:C,MultiPathNode:S,Node:k,PathNode:z,RootNode:T,Surface:b}})}(window.kendo.jQuery),function(t){var e=document,i=window.kendo,n=i.deepExtend,s=i.dataviz,r=s.defined,o=s.renderTemplate,a=s.drawing,h=a.BaseNode,l=s.util,c=l.renderAllAttr,u="none",d="transparent",p=a.Surface.extend({init:function(t,e){a.Surface.fn.init.call(this),this.options=n({},this.options,e),this.bind(this.events,this.options),this._root=new f,this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._appendTo(t)},events:["click","mouseenter","mouseleave"],translate:function(t){var e=this.element.style;e.top=-t.y,e.left=-t.x},draw:function(t){var e=this;e._root.load([t]),i.support.browser.version<8&&setTimeout(function(){e.element.style.display="block"},0)},clear:function(){this._root.clear(),i.support.browser.version<8&&(this.element.style.display="none")},_template:o("<div style='width:#= kendo.dataviz.util.renderSize(d.options.width) #; height:#= kendo.dataviz.util.renderSize(d.options.height) #; position: absolute;'><#= d._root.render() #/div>"),_appendTo:function(i){e.namespaces&&e.namespaces.add("kvml","urn:schemas-microsoft-com:vml","#default#VML"),i.innerHTML=this._template(this),this.element=i.firstChild,this._root.attachTo(this.element);var n=t(this.element);n.on("click",this._click),n.on("mouseover",this._mouseenter),n.on("mouseout",this._mouseleave)}}),m=h.extend({load:function(t){var e,i,n,s,r=this,o=r.element;for(s=0;s<t.length;s++)i=t[s],n=i.children,i instanceof a.Group?e=new v(i):i instanceof a.Path?e=new _(i):i instanceof a.MultiPath?e=new w(i):i instanceof a.Circle&&(e=new x(i)),n&&n.length>0&&e.load(n),r.append(e),o&&e.attachTo(o)},attachTo:function(t){var i,n=e.createElement("div");n.style.display="none",e.body.appendChild(n),n.innerHTML=this.render(),i=n.firstChild,i&&(t.appendChild(i),this.setElement(i)),e.body.removeChild(n)},setElement:function(t){var e,i,n=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=t,t._kendoNode=this,i=0;i<n.length;i++)e=t.childNodes[i],n[i].setElement(e)},template:o("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var t,e=this.childNodes,i="";for(t=0;t<e.length;t++)i+=e[t].render();return i},clear:function(){var t=this.element;t&&(t.parentNode.removeChild(t),this.element=null),h.fn.clear.call(this)},attr:function(t,e){this.element&&(this.element[t]=e)},allAttr:function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},css:function(t,e){this.element&&(this.element.style[t]=e)}}),f=m.extend({attachTo:function(t){this.element=t},clear:h.fn.clear}),v=m.extend({template:o("<div>#= d.renderChildren() #</div>")}),g=m.extend({optionsChange:function(t){if("stroke"===t.field)this.allAttr(this.mapStroke(t.value));else{var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}this.invalidate()},attributeMap:{"stroke.color":"color","stroke.width":"weight","stroke.opacity":"opacity","stroke.dashType":"dashstyle"},mapStroke:function(t){var e=[];return t?(e.push(["on","true"]),e.push(["color",t.color]),e.push(["weight",t.width+"px"]),r(t.opacity)&&e.push(["opacity",t.opacity]),r(t.dashType)&&e.push(["dashstyle",t.dashType])):e.push(["on","false"]),e},renderStroke:function(){return c(this.mapStroke(this.srcElement.options.stroke))},template:o("<kvml:stroke #= d.renderStroke() #></kvml:stroke>")}),y=m.extend({optionsChange:function(t){switch(t.field){case"fill":this.allAttr(this.mapFill(t.value));break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;default:var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}this.invalidate()},attributeMap:{"fill.opacity":"opacity"},mapFill:function(t){var e=[];return t&&t.color!==d?(e.push(["on","true"]),e.push(["color",t.color]),r(t.opacity)&&e.push(["opacity",t.opacity])):e.push(["on","false"]),e},renderFill:function(){return c(this.mapFill(this.srcElement.options.fill))},template:o("<kvml:fill #= d.renderFill() #></kvml:fill>")}),_=m.extend({init:function(t){this.fill=new y(t),this.stroke=new g(t),m.fn.init.call(this,t),this.append(this.fill),this.append(this.stroke)},geometryChange:function(){this.attr("v",this.renderData()),this.invalidate()},optionsChange:function(t){"visible"===t.field?this.css("display",t.value?"block":"none"):0===t.field.indexOf("fill")?this.fill.optionsChange(t):0===t.field.indexOf("stroke")&&this.stroke.optionsChange(t),this.invalidate()},renderData:function(){return this.printPath(this.srcElement)},printPath:function(t,e){var i,n,s,r=t.segments;if(r.length>0){for(s=[],n=0;n<r.length;n++)s.push(r[n].anchor.toString(0,","));return i="m "+s.shift()+" l "+s.join(" "),t.options.closed&&(i+=" x"),e!==!0&&(i+=" e"),i}},mapFill:function(t){var e=[];return t&&t.color!==d?(e.push(["fill",t.color]),r(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",u]),e},renderCursor:function(){var t=this.srcElement.options.cursor;return t?"cursor:"+t+";":""},renderVisibility:function(){return this.srcElement.options.visible===!1?"display:none;":""},renderCoordsize:function(){var t=this.srcElement.options.align===!1?1e4:1;return"coordsize='"+t+" "+t+"'"},renderSize:function(){var t=this.srcElement.options.align===!1?100:1;return"width:"+t+"px;height:"+t+"px;"},template:o("<kvml:shape style='position:absolute;#= d.renderSize() # #= d.renderVisibility() # #= d.renderCursor() #' coordorigin='0 0' #= d.renderCoordsize() #>#= d.renderChildren() #<kvml:path #= kendo.dataviz.util.renderAttr('v', d.renderData()) # /></kvml:shape>")}),w=_.extend({renderData:function(){var t,e,i,n=this.srcElement.paths;if(n.length>0){for(i=[],t=0;t<n.length;t++)e=t<n.length-1,i.push(this.printPath(n[t],e));return i.join(" ")}}}),x=_.extend({geometryChange:function(){var t=this.radius(),e=this.center(),i=2*t;this.css("left",e.x-t+"px"),this.css("top",e.y-t+"px"),this.css("width",i+"px"),this.css("height",i+"px"),this.invalidate()},center:function(){return this.srcElement.geometry.center},radius:function(){return this.srcElement.geometry.radius},template:o("<kvml:oval style='position:absolute;#= d.renderVisibility() ##= d.renderCursor() #width:#= d.radius() * 2 #px;height:#= d.radius() * 2 #px;top:#= d.center().y - d.radius() #px;left:#= d.center().x - d.radius() #px;'>#= d.renderChildren() #</kvml:oval>")});i.support.browser.msie&&a.SurfaceFactory.current.register("vml",p,20),n(a,{vml:{CircleNode:x,FillNode:y,GroupNode:v,MultiPathNode:w,Node:m,PathNode:_,RootNode:f,StrokeNode:g,Surface:p}})}(window.kendo.jQuery),function(){var t,e=Math,i=e.max,n=e.min,s=window.kendo,r=s.Class,o=s.dataviz,a=s.deepExtend,h=o.util,l=h.round,c=h.valueOrDefault,u=r.extend({init:function(t,e){1===arguments.length?(this.lat=t[0],this.lng=t[1]):(this.lat=t,this.lng=e)},FORMAT:"{0:N6},{1:N6}",toArray:function(){return[this.lat,this.lng]},equals:function(t){return t&&t.lat===this.lat&&t.lng===this.lng},round:function(t){return this.lng=l(this.lng,t),this.lat=l(this.lat,t),this},wrap:function(){return this.lng=this.lng%180,this.lat=this.lat%90,this}});u.fn.toString=function(){return s.format(this.FORMAT,this.lng,this.lat)},u.fromLngLat=function(t){return new u(t[1],t[0])},u.fromLatLng=function(t){return new u(t[0],t[1])},u.create=function(t,e){return t instanceof u?t:1===arguments.length&&2===t.length?u.fromLatLng(t):new u(t,e)},t=r.extend({init:function(t,e){this.nw=t,this.se=e},contains:function(t){var e=this.nw,i=this.se,n=c(t.lng,t[0]),s=c(t.lat,t[1]);return t&&n+180>=e.lng+180&&n+180<=i.lng+180&&s+90>=i.lat+90&&s+90<=e.lat+90},containsAny:function(t){var e,i=!1;for(e=0;e<t.length;e++)i=i||this.contains(t[e]);return i},include:function(t){var e=this.nw,s=this.se,r=c(t.lng,t[0]),o=c(t.lat,t[1]);e.lng=n(e.lng,r),e.lat=i(e.lat,o),s.lng=i(s.lng,r),s.lat=n(s.lat,o)},includeAll:function(t){for(var e=0;e<t.length;e++)this.include(t[e])},edges:function(){var t=this.nw,e=this.se;return[t,new u(t.lat,e.lng),e,new u(t.lng,e.lat)]},overlaps:function(t){return this.containsAny(t.edges())||t.containsAny(this.edges())}}),a(o,{map:{Extent:t,Location:u}})}(window.kendo.jQuery),function(t){function e(t){return i.format('<button class="k-button k-compass-{0}"><span class="k-icon k-i-arrow-{0}"/></button>',t)}var i=window.kendo,n=i.ui.Widget,s=".kendoCompass",r=e("n")+e("e")+e("s")+e("w"),o=n.extend({init:function(e,i){n.fn.init.call(this,e,i),this._initOptions(i),this.element.addClass("k-widget k-header k-shadow k-compass").append(r).on("click"+s,".k-button",t.proxy(this,"_click"))},options:{name:"Compass",panStep:1},events:["pan"],_click:function(e){var i=0,n=0,s=this.options.panStep,r=t(e.currentTarget);r.is(".k-compass-n")?n=1:r.is(".k-compass-s")?n=-1:r.is(".k-compass-e")?i=1:r.is(".k-compass-w")&&(i=-1),this.trigger("pan",{x:i*s,y:n*s})}});i.dataviz.ui.plugin(o)}(jQuery),function(){var t=window.kendo,e=t.ui.Widget,i=e.extend({init:function(t,i){e.fn.init.call(this,t,i),this._initOptions(i),this.element.addClass("k-widget k-attribution")},options:{name:"Attribution",items:[]},add:function(t){this.element.append(t)},clear:function(){this.element.empty()}});t.dataviz.ui.plugin(i)}(jQuery),function(){var t=Math,e=t.atan,i=t.exp,n=t.pow,s=t.sin,r=t.log,o=t.tan,a=window.kendo,h=a.Class,l=a.dataviz,c=l.Matrix,u=a.deepExtend,d=l.geometry,p=d.Point,m=l.map,f=m.Location,v=l.util,g=v.rad,y=v.deg,_=v.limitValue,w=t.PI,x=w/2,b=w/4,k=w/180,T={a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149},C=h.extend({init:function(t){this._initOptions(t)},MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12,options:{centralMeridian:0,datum:T},forward:function(t,e){var i=this,n=i.options,s=n.datum,r=s.a,o=n.centralMeridian,a=_(t.lat,-i.MAX_LAT,i.MAX_LAT),h=e?_(t.lng,-i.MAX_LNG,i.MAX_LNG):t.lng,l=g(h-o)*r,c=i._projectLat(a);return new p(l,c)},_projectLat:function(t){var e=this.options.datum,i=e.e,a=e.a,h=g(t),l=o(b+h/2),c=i*s(h),u=n((1-c)/(1+c),i/2);return a*r(l*u)},inverse:function(t,e){var i=this,n=i.options,s=n.datum,r=s.a,o=n.centralMeridian,a=t.x/(k*r)+o,h=_(i._inverseY(t.y),-i.MAX_LAT,i.MAX_LAT);return e&&(a=_(a,-i.MAX_LNG,i.MAX_LNG)),new f(h,a)},_inverseY:function(r){var o,a,h,l,c=this,u=c.options.datum,d=u.a,p=u.e,m=p/2,f=i(-r/d),v=x-2*e(f);for(o=0;o<=c.INVERSE_ITERATIONS&&(a=p*s(v),h=n((1-a)/(1+a),m),l=x-2*e(f*h)-v,v+=l,!(t.abs(l)<=c.INVERSE_CONVERGENCE));o++);return y(v)}}),z=C.extend({MAX_LAT:85.0511287798,_projectLat:function(t){var e=this.options.datum.a,i=g(t),n=o(b+i/2);return e*r(n)},_inverseY:function(t){var n=this.options.datum.a,s=i(-t/n);return y(x-2*e(s))}}),S=h.extend({forward:function(t){return new p(t.lng,t.lat)},inverse:function(t){return new f(t.y,t.x)}}),E=h.extend({init:function(){var t=this,e=t._proj=new z,i=this.c=2*w*e.options.datum.a;this._tm=c.translate(.5,.5).times(c.scale(1/i,-1/i)),this._itm=c.scale(i,-i).times(c.translate(-.5,-.5))},toPoint:function(t,e,i){var n=this._proj.forward(t,i);return n.transform(this._tm).multiply(e||1)},toLocation:function(t,e,i){return t=t.clone().multiply(1/(e||1)).transform(this._itm),this._proj.inverse(t,i)}}),L=h.extend({init:function(){this._proj=new C},toPoint:function(t){return this._proj.forward(t)},toLocation:function(t){return this._proj.inverse(t)}}),M=h.extend({init:function(){this._proj=new S},toPoint:function(t){return this._proj.forward(t)},toLocation:function(t){return this._proj.inverse(t)}});u(l,{map:{crs:{EPSG3395:L,EPSG3857:E,EPSG4326:M},datums:{WGS84:T},projections:{Equirectangular:S,Mercator:C,SphericalMercator:z}}})}(window.kendo.jQuery),function(t){var e=t.proxy,i=window.kendo,n=i.Class,s=i.data.DataSource,r=i.dataviz,o=i.deepExtend,a=r.geometry,h=r.drawing,l=h.Group,c=r.map,u=c.Location,d=n.extend({init:function(n,s){this._initOptions(s),this.map=n,this.element=t("<div class='k-layer'></div>").appendTo(n.scrollElement),this.movable=new i.ui.Movable(this.element),this.surface=h.Surface.create(this.element[0],{width:n.scrollElement.width(),height:n.scrollElement.height()}),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseenter=this._handler("shapeMouseEnter"),this.surface.bind("mouseenter",this._mouseenter),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),n.bind("reset",e(this.reset,this)),n.bind("resize",e(this.resize,this)),n.bind("panEnd",e(this._panEnd,this)),this._loader=new p(this.map,this.options.style,this),this._initDataSource()},options:{autoBind:!0,dataSource:{}},reset:function(){this._updateAttribution(),this.surface.translate({x:0,y:0}),this.movable.moveTo({x:0,y:0}),this._data&&this._load(this._data)},resize:function(){this.surface.setSize(this.map.getSize())},_updateAttribution:function(){this.map.attribution.add(this.options.attribution)},polygon:function(t,e){this.surface.draw(this._buildPolygon(t,e))},_initDataSource:function(){var t=this.options.dataSource;this._dataChange=e(this._dataChange,this),this.dataSource=s.create(t).bind("change",this._dataChange),t&&this.options.autoBind&&this.dataSource.fetch()},_dataChange:function(t){this._load(t.items)},_load:function(t){var e,i;for(this._data=t,this._clearMarkers(),this.surface.clear(),e=0;e<t.length;e++)i=this._loader.parse(t[e]),i&&this.surface.draw(i)},shapeCreated:function(t){var e,i=!1;return t instanceof h.Circle&&(i=!this._createMarker(t)),i||(e={layer:this,shape:t},i=this.map.trigger("shapeCreated",e)),i},_createMarker:function(t){var e,i,n=t.dataItem,s=c.Marker.create({location:t.location.toArray()},this.map.options.markerDefaults);return s.dataItem=n,e={marker:s},i=this.map.trigger("markerCreated",e),i||(this.map.markers.add(s),this._markers.push(s)),i},_clearMarkers:function(){for(var t=0;t<this._markers.length;t++)this.map.markers.remove(this._markers[t]);this._markers=[]},_panEnd:function(){var t=this.map,e=t.locationToView(t.extent().nw);this.surface.translate(e),this.movable.moveTo(e)},_handler:function(t){var e=this;return function(i){if(i.shape){var n={layer:e,shape:i.shape,originalEvent:i.originalEvent};e.map.trigger(t,n)}}}}),p=n.extend({init:function(t,e,i){this.observer=i,this.locator=t,this.style=e},parse:function(t){var e=new l;return"Feature"===t.type?this._loadGeometryTo(e,t.geometry,t):this._loadGeometryTo(e,t,t),e.children.length<2&&(e=e.children[0]),e},_shapeCreated:function(t){var e=!1;return this.observer&&this.observer.shapeCreated&&(e=this.observer.shapeCreated(t)),e},_loadGeometryTo:function(t,e,i){var n,s,r=e.coordinates;switch(e.type){case"LineString":s=this._loadPolygon(t,[r],i),s.options.fill=null;break;case"MultiLineString":for(n=0;n<r.length;n++)s=this._loadPolygon(t,[r[n]],i),s.options.fill=null;break;case"Polygon":this._loadPolygon(t,r,i);break;case"MultiPolygon":for(n=0;n<r.length;n++)this._loadPolygon(t,r[n],i);break;case"Point":this._loadPoint(t,r,i);break;case"MultiPoint":for(n=0;n<r.length;n++)this._loadPoint(t,r[n],i)}},_loadShape:function(t,e){return this._shapeCreated(e)||t.append(e),e},_loadPolygon:function(t,e,i){var n=this._buildPolygon(e);return n.dataItem=i,this._loadShape(t,n)},_buildPolygon:function(t){var e,i,n,s=t.length>1?h.MultiPath:h.Path,r=new s(this.style);for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)n=this.locator.locationToView(u.fromLngLat(t[e][i])),0===i?r.moveTo(n.x,n.y):r.lineTo(n.x,n.y);return r},_loadPoint:function(t,e,i){var n=u.fromLngLat(e),s=this.locator.locationToView(n),r=new a.Circle(s,1),o=new h.Circle(r);return o.dataItem=i,o.location=n,this._loadShape(t,o)}});o(i.data,{schemas:{geojson:{type:"json",data:function(t){return"FeatureCollection"===t.type?t.features:"GeometryCollection"===t.type?t.geometries:t}}},transports:{geojson:{read:{dataType:"json"}}}}),o(r,{map:{layers:{shape:d,ShapeLayer:d},GeoJSONLoader:p}})}(window.kendo.jQuery),function(t){function e(t){return new u(h(t.x),h(t.y))}var i=Math,n=t.proxy,s=window.kendo,r=s.Class,o=s.template,a=s.dataviz,h=a.round,l=s.deepExtend,c=a.geometry,u=c.Point,d=a.util,p=d.renderSize,m=d.limitValue,f=600,v=400,g=r.extend({init:function(e,i){var r=this,o=r._viewType();i=l({},i,{width:e.element.width()||f,height:e.element.height()||v}),r._initOptions(i),r.map=e,r.element=t("<div class='k-layer'></div>").css({zIndex:r.options.zIndex,opacity:r.options.opacity}).appendTo(e.scrollElement),r._view=new o(r.element,r.options),e.bind("reset",n(r.reset,r)),e.bind("resize",n(this.resize,this)),s.support.mobileOS?e.bind("panEnd",n(r._render,r)):e.bind("pan",n(r._pan,r))},opitons:{settingsUrl:"http://dev.virtualearth.net/REST/v1/Imagery/Metadata/#= mapType #?output=json&jsonp=bingTileParams&include=ImageryProviders&key=#= key #"},_viewType:function(){return _},_updateView:function(){var t=this._view,e=this.map,i=e.extent(),n={nw:e.locationToLayer(i.nw).round(),se:e.locationToLayer(i.se).round()};t.center(e.locationToLayer(e.center())),t.extent(n),t.zoom(e.zoom())},destroy:function(){this._view.destroy(),this._view=null
},reset:function(){this._updateAttribution(),this._updateView(),this._view.clear(),this._view.reset()},resize:function(){this._render()},_updateAttribution:function(){this.map.attribution.add(this.options.attribution)},_pan:function(){var t=this,e=new Date,i=t._pan.timestamp;(!i||e-i>100)&&(this._render(),t._pan.timestamp=e)},_render:function(){this._updateView(),this._view.render()}}),y=g.extend({init:function(e,i){this._initOptions(i);var s=o(this.options.settingsUrl),r=s({key:this.options.key,mapType:this.options.mapType});this.map=e,t.ajax({url:r,type:"get",dataType:"jsonp",jsonpCallback:"bingTileParams",success:n(this._success,this)})},options:{settingsUrl:"http://dev.virtualearth.net/REST/v1/Imagery/Metadata/#= mapType #?output=json&jsonp=bingTileParams&include=ImageryProviders&key=#= key #",mapType:"road"},_success:function(t){var e=t.resourceSets[0].resources[0];g.fn.init.call(this,this.map,{urlTemplate:e.imageUrl.replace("{subdomain}","#= subdomain #").replace("{quadkey}","#= quadkey #").replace("{culture}","#= culture #"),subdomains:e.imageUrlSubdomains,maxZoom:e.zoomMax,minZoom:e.zoomMin}),this.reset()},_viewType:function(){return w}}),_=r.extend({init:function(t,e){this.element=t,this._initOptions(e),this.pool=new b},options:{tileSize:256,subdomains:["a","b","c"],urlTemplate:""},center:function(t){this._center=t},extent:function(t){this._extent=t},zoom:function(t){this._zoom=t},pointToTileIndex:function(t){return new u(i.floor(t.x/this.options.tileSize),i.floor(t.y/this.options.tileSize))},clear:function(){this.pool.empty()},tileCount:function(){var t=this.size(),e=this.pointToTileIndex(this._extent.nw),n=this.indexToPoint(e).subtract(this._extent.nw);return{x:i.ceil((i.abs(n.x)+t.width)/this.options.tileSize),y:i.ceil((i.abs(n.y)+t.height)/this.options.tileSize)}},size:function(){var t=this._extent.nw,e=this._extent.se,i=e.clone().subtract(t);return{width:i.x,height:i.y}},indexToPoint:function(t){var e=t.x,i=t.y;return new u(e*this.options.tileSize,i*this.options.tileSize)},subdomainText:function(){var t=this.options.subdomains;return t[this.subdomainIndex++%t.length]},destroy:function(){this.element.empty(),this.pool.empty()},reset:function(){this.subdomainIndex=0,this.basePoint=this._extent.nw,this.render()},render:function(){var t,e,i,n=this.tileCount(),s=this.pointToTileIndex(this._extent.nw);for(e=0;e<n.x;e++)for(i=0;i<n.y;i++)t=this.createTile({x:s.x+e,y:s.y+i}),t.visible||(this.element.append(t.element),t.visible=!0)},createTile:function(t){var i=this.wrapIndex(t),n=this.indexToPoint(t),s=n.clone().subtract(this.basePoint),r=o(this.options.urlTemplate),a={index:i,currentIndex:t,point:n,offset:e(s),zoom:this._zoom,url:r(this.tileUrlOptions(i))};return this.pool.get(this._center,a)},tileUrlOptions:function(t){return{zoom:this._zoom,x:t.x,y:t.y,subdomain:this.subdomainText()}},wrapIndex:function(t){var e=i.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:m(t.y,0,e-1)}},wrapValue:function(t,e){var n=i.abs(t)%e;return t=t>=0?n:e-(0===n?e:n)}}),w=_.extend({options:{culture:"en-Us"},tileUrlOptions:function(t){return{quadkey:this.tileQuadKey(t),subdomain:this.subdomainText(),culture:this.options.culture}},tileQuadKey:function(t){var e,i,n,s="";for(n=this._zoom;n>0;n--)e=0,i=1<<n-1,0!==(t.x&i)&&e++,0!==(t.y&i)&&(e+=2),s+=e;return s}}),x=r.extend({init:function(e){this.element=t("<img style='position: absolute; display: block; visibility: visible;' unselectable='on'></img>"),this.load(e),this.visible=!1},load:function(t){var e=this.element[0];e.style.visibility="visible",e.style.display="block",e.setAttribute("src",t.url),this.url=t.url,e.style.top=p(t.offset.y),e.style.left=p(t.offset.x),this.offset=t.offset,this.point=t.point,this.index=t.index,this.currentIndex=t.currentIndex,this.id="x:"+this.currentIndex.x+"y:"+this.currentIndex.y+"zoom:"+t.zoom,this.visible=!0},destroy:function(){this.element&&(this.element.remove(),this.element=null)}}),b=r.extend({init:function(){this._items=[]},options:{maxSize:100},get:function(t,e){var i,n=this;return i=n._items.length>=n.options.maxSize?n._update(t,e):n._create(e)},empty:function(){var t,e=this._items;for(t=0;t<e.length;t++)e[t].destroy();this._items=[]},_create:function(t){var e,i,n,s,r=this,o=r._items,a=r._tileId(t);for(i=0;i<o.length;i++)n=o[i],n.id===a&&(e=n,s=e);return e?e.load(t):(s=new x(t),this._items.push(s)),s},_tileId:function(t){return"x:"+t.currentIndex.x+"y:"+t.currentIndex.y+"zoom:"+t.zoom},_update:function(t,e){var i,n,s,r,o=this,a=o._items,h=-Number.MAX_VALUE,l=o._tileId(e);for(s=0;s<a.length;s++){if(r=a[s],i=r.point.clone().distanceTo(t),r.id===l)return a[s];i>h&&(n=s,h=i)}return a[n].load(e),a[n]}});l(a,{map:{layers:{tile:g,TileLayer:g,bing:y,BingLayer:y,ImageTile:x,TilePool:b,TileView:_,BingView:w}}})}(window.kendo.jQuery),function(t){var e=document,i=Math,n=t.inArray,s=t.proxy,r=window.kendo,o=r.Class,a=r.ui.Tooltip,h=r.dataviz,l=r.deepExtend,c=h.map,u=c.Location,d=o.extend({init:function(e,i){this._initOptions(i),this.items=[],this.map=e,this.element=t("<div class='k-layer'></div>").css("zIndex",this.options.zIndex).appendTo(e.scrollElement),this.reset=s(this.reset,this),e.bind("reset",this.reset)},dispose:function(){this.map.unbind("reset",this.reset),this.clear()},options:{zIndex:1e3},add:function(e){if(!t.isArray(e))return this._addOne(e);for(var i=0;i<e.length;i++)this._addOne(e[i])},_addOne:function(t){var e=p.create(t,this.options.markerDefaults);return e.addTo(this),e},remove:function(t){t.dispose();var e=n(t,this.items);e>-1&&this.items.splice(e,1)},clear:function(){for(var t=0;t<this.items.length;t++)this.items[t].dispose();this.items=[]},update:function(t){var e=t.options.location;e&&(e=u.create(e),t.showAt(this.map.locationToView(e)))},reset:function(){var t,e=this.items;for(t=0;t<e.length;t++)this.update(e[t])}}),p=o.extend({init:function(t){this.options=t||{}},addTo:function(t){this.layer=t.markers||t,this.layer.items.push(this),this.layer.update(this)},setLocation:function(t){this.options.location=u.create(t),this.layer&&this.layer.update(this)},showAt:function(t){this.render(),this.element.css({left:i.round(t.x),top:i.round(t.y)}),this.tooltip&&this.tooltip.popup&&this.tooltip.popup._position()},hide:function(){this.element&&(this.element.remove(),this.element=null),this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)},dispose:function(){this.layer=null,this.hide()},render:function(){var i,n;this.element||(i=this.options,n=this.layer,this.element=t(e.createElement("span")).addClass("k-marker k-marker-"+r.toHyphens(i.shape||"pin")).attr("alt",i.title).css("zIndex",i.zIndex),n&&n.element.append(this.element),this.renderTooltip())},renderTooltip:function(){var t,e,i=this,n=i.options.tooltip;n&&a&&(t=n.template,t&&(e=r.template(t),n.content=function(t){return t.location=i.options.location,t.marker=i,e(t)}),(n.content||n.contentUrl)&&(this.tooltip=new a(this.element,n),this.tooltip.marker=this))}});p.create=function(t,e){return t instanceof p?t:new p(l({},t,e))},l(h,{map:{layers:{marker:d,MarkerLayer:d},Marker:p}})}(window.kendo.jQuery),function(t){var e=document,i=Math,n=i.min,s=i.pow,r=t.proxy,o=window.kendo,a=o.ui.Widget,h=o.deepExtend,l=o.dataviz,c=l.ui.Compass,u=l.ui.Attribution,d=l.defined,p=l.geometry,m=l.map,f=m.Extent,v=m.Location,g=m.crs.EPSG3857,y=l.util,_=y.limitValue,w=y.valueOrDefault,x="k-",b=.9,k=.93,T="DOMMouseScroll mousewheel",C=5,z=a.extend({init:function(t,i){o.destroy(t),a.fn.init.call(this,t),this._initOptions(i),this.bind(this.events,i),this.crs=new g,this.element.addClass(x+this.options.name.toLowerCase()).css("position","relative").empty().append(e.createElement("div")),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initLayers(),this._initMarkers(),this._initControls(),this._reset(),this._mousewheel=r(this._mousewheel,this),this.element.bind("click",r(this._click,this)),this.element.bind(T,this._mousewheel)},options:{name:"Map",controls:{navigator:{panStep:100},attribution:{visible:!0}},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:18,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{autoHide:!1,position:"top",showOn:"click"}},wraparound:!0},events:["click","reset","pan","panEnd","shapeClick","shapeCreated","shapeMouseEnter","shapeMouseLeave","zoomStart","zoomEnd"],destroy:function(){this.scroller.destroy(),a.fn.destroy.call(this)},zoom:function(t){var e=this.options;return d(t)?(t=_(t,e.minZoom,e.maxZoom),e.zoom!==t&&(e.zoom=t,this._reset()),this):e.zoom},center:function(t){return t?(this.options.center=v.create(t).toArray(),this._reset(),this):v.create(this.options.center)},extent:function(){var t,e=this._getOrigin(),i=this.locationToLayer(e),n=this.viewSize();return i.x+=n.width,i.y+=n.height,t=this.layerToLocation(i),new f(e,t)},setOptions:function(t){a.fn.setOptions.call(this,t),this._reset()},locationToLayer:function(t,e){var i=!this.options.wraparound;return t=v.create(t),this.crs.toPoint(t,this._layerSize(e),i)},layerToLocation:function(t,e){var i=!this.options.wraparound;return this.crs.toLocation(t,this._layerSize(e),i)},locationToView:function(t){var e,i;return t=v.create(t),e=this.locationToLayer(this._viewOrigin),i=this.locationToLayer(t),i.subtract(e)},viewToLocation:function(t,e){var i=this.locationToLayer(this._getOrigin(),e);return t=t.clone(),t.x+=i.x,t.y+=i.y,this.layerToLocation(t,e)},eventToView:function(t){var e=this.element.offset(),i=t.originalEvent||t,n=w(i.pageX,i.clientX)-e.left,s=w(i.pageY,i.clientY)-e.top;return new p.Point(n,s)},eventToLayer:function(t){return this.locationToLayer(this.eventToLocation(t))},eventToLocation:function(t){return this.viewToLocation(this.eventToView(t))},viewSize:function(){var t=this.element,e=this._layerSize(),i=t.width();return this.options.wraparound||(i=n(e,i)),{width:i,height:n(e,t.height())}},_setOrigin:function(t,e){var i,n=this.viewSize();return t=this._origin=v.create(t),i=this.locationToLayer(t,e),i.x+=n.width/2,i.y+=n.height/2,this.options.center=this.layerToLocation(i,e).toArray(),this},_getOrigin:function(t){var e,i=this.viewSize();return(t||!this._origin)&&(e=this.locationToLayer(this.center()),e.x-=i.width/2,e.y-=i.height/2,this._origin=this.layerToLocation(e)),this._origin},_zoomAround:function(t,e){this._setOrigin(this.layerToLocation(t,e),e),this.zoom(e)},_initControls:function(){var t=this.options.controls;c&&t.navigator&&!o.support.mobileOS&&this._createCompass(t.navigator),u&&t.attribution&&this._createAttribution(t.attribution)},_createCompass:function(i){var n=t(e.createElement("div")).appendTo(this.element),s=this.compass=new c(n,i);this._compassPan=r(this._compassPan,this),s.bind("pan",this._compassPan),this._compassCenter=r(this._compassCenter,this),s.bind("center",this._compassCenter)},_compassPan:function(t){var e=this,i=e.scroller,n=i.scrollLeft+t.x,s=i.scrollTop-t.y,r=this._virtualSize,o=this.element.height(),a=this.element.width();n=_(n,r.x.min,r.x.max-a),s=_(s,r.y.min,r.y.max-o),e.scroller.one("scroll",function(t){e._scrollEnd(t)}),e.scroller.scrollTo(-n,-s)},_compassCenter:function(){this.center(this.options.center)},_createAttribution:function(i){var n=t(e.createElement("div")).appendTo(this.element);this.attribution=new u(n,i)},_initScroller:function(){var t=o.support.mobileOS?k:b,e=this.scroller=new o.mobile.ui.Scroller(this.element.children(0),{friction:t,velocityMultiplier:C,zoom:!0});e.bind("scroll",r(this._scroll,this)),e.bind("scrollEnd",r(this._scrollEnd,this)),e.userEvents.bind("gestureend",r(this._scale,this)),this.scrollElement=e.scrollElement},_initLayers:function(){var t,e,i,n,s,r=this.options.layers,o=this.layers=[];for(t=0;t<r.length;t++)e=r[t],i=e.type||"shape",n=this.options.layerDefaults[i],s=l.map.layers[i],o.push(new s(this,h({},n,e)))},_initMarkers:function(){this.markers=new m.layers.MarkerLayer(this,{markerDefaults:this.options.markerDefaults}),this.markers.add(this.options.markers)},_scroll:function(t){var e=this.locationToLayer(this._viewOrigin).round(),i=t.sender.movable,n=new p.Point(i.x,i.y).multiply(-1).multiply(1/i.scale);e.x+=n.x,e.y+=n.y,this._setOrigin(this.layerToLocation(e)),this.trigger("pan",{originalEvent:t,origin:this._getOrigin(),center:this.center()})},_scrollEnd:function(t){this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()})},_scale:function(t){var e=this.scroller.movable.scale,i=this._scaleToZoom(e),n=new p.Point(t.center.x,t.center.y),s=this.viewToLocation(n,i),r=this.locationToLayer(s,i),o=r.subtract(n);this._zoomAround(o,i)},_scaleToZoom:function(t){var e=this._layerSize()*t,n=e/this.options.minSize,s=i.log(n)/i.log(2);return i.round(s)},_reset:function(){this.attribution&&this.attribution.clear(),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("reset")},_resetScroller:function(){var t,e,i,n=this.scroller,r=n.dimensions.x,o=n.dimensions.y,a=this._layerSize(),h=20*a,l=this.extent().nw,c=this.locationToLayer(l).round();n.reset(),n.userEvents.cancel(),t=this.options.maxZoom-this.zoom(),n.dimensions.maxScale=s(2,t),n.movable.round=!0,r.makeVirtual(),o.makeVirtual(),e={min:-c.x,max:a-c.x},this.options.wraparound&&(e.min=-h,e.max=h),r.virtualSize(e.min,e.max),i={min:-c.y,max:a-c.y},o.virtualSize(i.min,i.max),this._virtualSize={x:e,y:i}},_renderLayers:function(){var t,e,i,n,s,r=this.options.layers,o=this.layers=[],a=this.scrollWrap;for(a.empty(),t=0;t<r.length;t++)e=r[t],i=e.type||"shape",n=this.options.layerDefaults[i],s=l.map.layers[i],o.push(new s(this,h({},n,e)))},_layerSize:function(t){return t=w(t,this.options.zoom),this.options.minSize*s(2,t)},_click:function(t){var e=this.eventToView(t);this.trigger("click",{originalEvent:t,location:this.viewToLocation(e)})},_mousewheel:function(t){var e,i,n,s,r,o,a,h;t.preventDefault(),e=l.mwDelta(t)>0?-1:1,i=this.options,n=this.zoom(),s=_(n+e,i.minZoom,i.maxZoom),s!==n&&(this.trigger("zoomStart",{originalEvent:t}),r=this.eventToView(t),o=this.viewToLocation(r),a=this.locationToLayer(o,s),h=a.subtract(r),this._zoomAround(h,s),this.trigger("zoomEnd",{originalEvent:t}))}});l.ui.plugin(z)}(window.kendo.jQuery);
//@ sourceMappingURL=kendo.dataviz.map.min.js.map