/** * Kendo UI v2016.1.112 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(e,define){define("util/main.min",["kendo.core.min"],e)}(function(){return function(){function e(e){return typeof e!==R}function t(e,t){var n=i(t);return M.round(e*n)/n}function i(e){return e?M.pow(10,e):1}function n(e,t,i){return M.max(M.min(e,i),t)}function o(e){return e*N}function r(e){return e/N}function a(e){return"number"==typeof e&&!isNaN(e)}function s(t,i){return e(t)?t:i}function l(e){return e*e}function c(e){var t,i=[];for(t in e)i.push(t+e[t]);return i.sort().join("")}function d(e){var t,i=2166136261;for(t=0;e.length>t;++t)i+=(i<<1)+(i<<4)+(i<<7)+(i<<8)+(i<<24),i^=e.charCodeAt(t);return i>>>0}function u(e){return d(c(e))}function h(e){var t,i=e.length,n=F,o=L;for(t=0;i>t;t++)o=M.max(o,e[t]),n=M.min(n,e[t]);return{min:n,max:o}}function f(e){return h(e).min}function p(e){return h(e).max}function m(e){return g(e).min}function v(e){return g(e).max}function g(e){var t,i,n,o=F,r=L;for(t=0,i=e.length;i>t;t++)n=e[t],null!==n&&isFinite(n)&&(o=M.min(o,n),r=M.max(r,n));return{min:o===F?void 0:o,max:r===L?void 0:r}}function _(e){return e?e[e.length-1]:void 0}function x(e,t){return e.push.apply(e,t),e}function b(e){return j.template(e,{useWithBlock:!1,paramName:"d"})}function w(t,i){return e(i)&&null!==i?" "+t+"='"+i+"' ":""}function y(e){var t,i="";for(t=0;e.length>t;t++)i+=w(e[t][0],e[t][1]);return i}function A(t){var i,n,o="";for(i=0;t.length>i;i++)n=t[i][1],e(n)&&(o+=t[i][0]+":"+n+";");return""!==o?o:void 0}function S(e){return"string"!=typeof e&&(e+="px"),e}function C(e){var t,i,n=[];if(e)for(t=j.toHyphens(e).split("-"),i=0;t.length>i;i++)n.push("k-pos-"+t[i]);return n.join(" ")}function k(t){return""===t||null===t||"none"===t||"transparent"===t||!e(t)}function D(e){for(var t={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"},i=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],n="";e>0;)i[0]>e?i.shift():(n+=t[i[0]],e-=i[0]);return n}function T(e){var t,i,n,o,r;for(e=e.toLowerCase(),t={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},i=0,n=0,o=0;e.length>o;++o){if(r=t[e.charAt(o)],!r)return null;i+=r,r>n&&(i-=2*n),n=r}return i}function E(e){var t=Object.create(null);return function(){var i,n="";for(i=arguments.length;--i>=0;)n+=":"+arguments[i];return n in t?t[n]:e.apply(this,arguments)}}function U(e){for(var t,i,n=[],o=0,r=e.length;r>o;)t=e.charCodeAt(o++),t>=55296&&56319>=t&&r>o?(i=e.charCodeAt(o++),56320==(64512&i)?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),o--)):n.push(t);return n}function z(e){return e.map(function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}).join("")}var M=Math,j=window.kendo,B=j.deepExtend,N=M.PI/180,F=Number.MAX_VALUE,L=-Number.MAX_VALUE,R="undefined",O=Date.now;O||(O=function(){return(new Date).getTime()}),B(j,{util:{MAX_NUM:F,MIN_NUM:L,append:x,arrayLimits:h,arrayMin:f,arrayMax:p,defined:e,deg:r,hashKey:d,hashObject:u,isNumber:a,isTransparent:k,last:_,limitValue:n,now:O,objectKey:c,round:t,rad:o,renderAttr:w,renderAllAttr:y,renderPos:C,renderSize:S,renderStyle:A,renderTemplate:b,sparseArrayLimits:g,sparseArrayMin:m,sparseArrayMax:v,sqr:l,valueOrDefault:s,romanToArabic:T,arabicToRoman:D,memoize:E,ucs2encode:z,ucs2decode:U}}),j.drawing.util=j.util,j.dataviz.util=j.util}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()}),function(e,define){define("util/text-metrics",["kendo.core","util/main"],e)}(function(){!function(e){function t(e,t,i){return c.current.measure(e,t,i)}var i=document,n=window.kendo,o=n.Class,r=n.util,a=r.defined,s=o.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,t){var i=this,n=i._map,o={key:e,value:t};n[e]=o,i._head?(i._tail.newer=o,o.older=i._tail,i._tail=o):i._head=i._tail=o,i._length>=i._size?(n[i._head.key]=null,i._head=i._head.newer,i._head.older=null):i._length++},get:function(e){var t=this,i=t._map[e];return i?(i===t._head&&i!==t._tail&&(t._head=i.newer,t._head.older=null),i!==t._tail&&(i.older&&(i.older.newer=i.newer,i.newer.older=i.older),i.older=t._tail,i.newer=null,t._tail.newer=i,t._tail=i),i.value):void 0}}),l=e("
")[0],c=o.extend({init:function(e){this._cache=new s(1e3),this._initOptions(e)},options:{baselineMarkerSize:1},measure:function(t,n,o){var s,c,d,u,h,f=r.objectKey(n),p=r.hashKey(t+f),m=this._cache.get(p);if(m)return m;s={width:0,height:0,baseline:0},c=o?o:l,d=this._baselineMarker().cloneNode(!1);for(u in n)h=n[u],a(h)&&(c.style[u]=h);return e(c).text(t),c.appendChild(d),i.body.appendChild(c),(t+"").length&&(s.width=c.offsetWidth-this.options.baselineMarkerSize,s.height=c.offsetHeight,s.baseline=d.offsetTop+this.options.baselineMarkerSize),s.width>0&&s.height>0&&this._cache.put(p,s),c.parentNode.removeChild(c),s},_baselineMarker:function(){return e("
")[0]}});c.current=new c,n.util.TextMetrics=c,n.util.LRUCache=s,n.util.measureText=t}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()}),function(e,define){define("util/base64.min",["util/main.min"],e)}(function(){return function(){function e(e){var i,n,o,a,s,l,c,d="",u=0;for(e=t(e);e.length>u;)i=e.charCodeAt(u++),n=e.charCodeAt(u++),o=e.charCodeAt(u++),a=i>>2,s=(3&i)<<4|n>>4,l=(15&n)<<2|o>>6,c=63&o,isNaN(n)?l=c=64:isNaN(o)&&(c=64),d=d+r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(c);return d}function t(e){var t,i,n="";for(t=0;e.length>t;t++)i=e.charCodeAt(t),128>i?n+=o(i):2048>i?(n+=o(192|i>>>6),n+=o(128|63&i)):65536>i&&(n+=o(224|i>>>12),n+=o(128|i>>>6&63),n+=o(128|63&i));return n}var i=window.kendo,n=i.deepExtend,o=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n(i.util,{encodeBase64:e,encodeUTF8:t})}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()}),function(e,define){define("mixins/observers.min",["kendo.core.min"],e)}(function(){return function(e){var t=Math,i=window.kendo,n=i.deepExtend,o=e.inArray,r={observers:function(){return this._observers=this._observers||[]},addObserver:function(e){return this._observers?this._observers.push(e):this._observers=[e],this},removeObserver:function(e){var t=this.observers(),i=o(e,t);return-1!=i&&t.splice(i,1),this},trigger:function(e,t){var i,n,o=this._observers;if(o&&!this._suspended)for(n=0;o.length>n;n++)i=o[n],i[e]&&i[e](t);return this},optionsChange:function(e){this.trigger("optionsChange",e)},geometryChange:function(e){this.trigger("geometryChange",e)},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=t.max((this._suspended||0)-1,0),this},_observerField:function(e,t){this[e]&&this[e].removeObserver(this),this[e]=t,t.addObserver(this)}};n(i,{mixins:{ObserversMixin:r}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()}),function(e,define){define("kendo.dataviz.stock.min",["kendo.dataviz.chart.min"],e)}(function(){return function(e,t){function i(){}function n(e){return i.prototype=e,new i}var o,r=window.kendo,a=r.Class,s=r.Observable,l=r.deepExtend,c=Math,d=e.proxy,u=r.util,h=u.last,f=u.renderTemplate,p=r.dataviz,m=u.defined,v=p.filterSeriesByType,g=r.template,_=p.ui.Chart,x=p.Selection,b=p.addDuration,w=u.limitValue,y=p.lteDateIndex,A=p.toDate,S=p.toTime,C=28,k="change",D="k-",T="drag",E="dragEnd",U="_navigator",z=U,M=p.EQUALLY_SPACED_SERIES,j=3,B="zoom",N="zoomEnd",F=_.extend({init:function(t,i){e(t).addClass(D+"chart"),_.fn.init.call(this,t,i)},_applyDefaults:function(e,t){var i=this,n=i.element.width()||p.DEFAULT_WIDTH,o={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:c.floor(n/C)}}};t&&(t=l({},t,o)),i._navigator||L.setup(e,t),_.fn._applyDefaults.call(i,e,t)},_initDataSource:function(e){var t,i,n=e||{},o=n.dataSource,r=o&&o.serverFiltering,a=[].concat(n.categoryAxis)[0],s=n.navigator||{},c=s.select,d=c&&c.from&&c.to;r&&d&&(t=[].concat(o.filter||[]),i=new p.DateCategoryAxis(l({baseUnit:"fit"},a,{categories:[c.from,c.to]})),o.filter=L.buildFilter(i.range().min,c.to).concat(t)),_.fn._initDataSource.call(this,e)},options:{name:"StockChart",dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0,template:"#= kendo.toString(category, 'd') #"},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}},_resize:function(){var e=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=e},_redraw:function(){var e=this,t=e._navigator;!this._dirty()&&t&&t.dataSource?t.redrawSlaves():e._fullRedraw()},_dirty:function(){var t=this.options,i=[].concat(t.series,t.navigator.series),n=e.grep(i,function(e){return e&&e.visible}).length,o=this._seriesCount!==n;return this._seriesCount=n,o},_fullRedraw:function(){var e=this,t=e._navigator;t||(t=e._navigator=new L(e)),t._setRange(),_.fn._redraw.call(e),t._initSelection()},_onDataChanged:function(){var e=this;_.fn._onDataChanged.call(e),e._dataBound=!0},_bindCategoryAxis:function(e,t,i){var n,o=this,r=o.options.categoryAxis,a=r.length;if(_.fn._bindCategoryAxis.apply(this,arguments),e.name===z)for(;a>i;)n=r[i++],n.pane==U&&(n.categories=e.categories)},_trackSharedTooltip:function(e){var t=this,i=t._plotArea,n=i.paneByPoint(e);n&&n.options.name===U?t._unsetActivePoint():_.fn._trackSharedTooltip.call(t,e)},destroy:function(){var e=this;e._navigator.destroy(),_.fn.destroy.call(e)}}),L=s.extend({init:function(e){var t=this;t.chart=e,t.options=l({},t.options,e.options.navigator),t._initDataSource(),m(t.options.hint.visible)||(t.options.hint.visible=t.options.visible),e.bind(T,d(t._drag,t)),e.bind(E,d(t._dragEnd,t)),e.bind(B,d(t._zoom,t)),e.bind(N,d(t._zoomEnd,t))},options:{},_initDataSource:function(){var e=this,t=e.options,i=t.autoBind,n=t.dataSource;m(i)||(i=e.chart.options.autoBind),e._dataChangedHandler=d(e._onDataChanged,e),n&&(e.dataSource=r.data.DataSource.create(n).bind(k,e._dataChangedHandler),i&&e.dataSource.fetch())},_onDataChanged:function(){var e,t,i,n,o,r=this,a=r.chart,s=a.options.series,l=s.length,c=a.options.categoryAxis,d=c.length,u=r.dataSource.view();for(e=0;l>e;e++)i=s[e],i.axis==z&&a._isBindable(i)&&(i.data=u);for(t=0;d>t;t++)n=c[t],n.pane==U&&(n.name==z?(a._bindCategoryAxis(n,u,t),o=n.categories):n.categories=o);a._model&&(r.redraw(),r.filterAxes(),(!a.options.dataSource||a.options.dataSource&&a._dataBound)&&r.redrawSlaves())},destroy:function(){var e=this,t=e.dataSource;t&&t.unbind(k,e._dataChangeHandler),e.selection&&e.selection.destroy()},redraw:function(){this._redrawSelf(),this._initSelection()},_initSelection:function(){var t=this,i=t.chart,r=t.options,a=t.mainAxis(),s=n(a),l=a.range(),c=l.min,d=l.max,u=a.options.categories,h=t.options.select,f=t.selection,p=A(h.from),m=A(h.to);0!==u.length&&(f&&(f.destroy(),f.wrapper.remove()),s.box=a.box,f=t.selection=new x(i,s,{min:c,max:d,from:p,to:m,selectStart:e.proxy(t._selectStart,t),select:e.proxy(t._select,t),selectEnd:e.proxy(t._selectEnd,t),mousewheel:{zoom:"left"}}),r.hint.visible&&(t.hint=new o(i.element,{min:c,max:d,template:r.hint.template,format:r.hint.format})))},_setRange:function(){var e,t=this.chart._createPlotArea(!0),i=t.namedCategoryAxes[z],n=i.options,o=i.range(),r=o.min,a=b(o.max,n.baseUnitStep,n.baseUnit),s=this.options.select||{},l=A(s.from)||r;r>l&&(l=r),e=A(s.to)||a,e>a&&(e=a),this.options.select={from:l,to:e},this.filterAxes()},_redrawSelf:function(e){var t=this.chart._plotArea;t&&t.redraw(h(t.panes),e)},redrawSlaves:function(){var e=this,t=e.chart,i=t._plotArea,n=i.panes.slice(0,-1);i.srcSeries=t.options.series,i.redraw(n)},_drag:function(e){var t,i,n,o=this,r=o.chart,a=r._eventCoordinates(e.originalEvent),s=o.mainAxis(),l=s.datesRange(),c=s.pane.box.containsPoint(a),d=r._plotArea.categoryAxis,u=e.axisRanges[d.options.name],h=o.options.select,f=o.selection;u&&!c&&f&&(t=h.from&&h.to?S(h.to)-S(h.from):S(f.options.to)-S(f.options.from),i=A(w(S(u.min),l.min,S(l.max)-t)),n=A(w(S(i)+t,S(l.min)+t,l.max)),o.options.select={from:i,to:n},o._liveDrag()&&(o.filterAxes(),o.redrawSlaves()),f.set(i,n),o.showHint(i,n))},_dragEnd:function(){var e=this;e.filterAxes(),e.filterDataSource(),e.redrawSlaves(),e.hint&&e.hint.hide()},_liveDrag:function(){var e=r.support,t=e.touch,i=e.browser,n=i.mozilla,o=i.msie&&9>i.version;return!t&&!n&&!o},readSelection:function(){var e=this,t=e.selection,i=t.options,n=e.options.select;n.from=i.from,n.to=i.to},filterAxes:function(){var e,t,i=this,n=i.options.select||{},o=i.chart,r=o.options.categoryAxis,a=n.from,s=n.to;for(e=0;r.length>e;e++)t=r[e],t.pane!==U&&(t.min=A(a),t.max=A(s))},filterDataSource:function(){var e,t=this,i=t.options.select||{},n=t.chart,o=n.dataSource,r=o&&o.options.serverFiltering;t.dataSource&&r&&(e=new p.DateCategoryAxis(l({baseUnit:"fit"},n.options.categoryAxis[0],{categories:[i.from,i.to]})).options,o.filter(L.buildFilter(b(e.min,-e.baseUnitStep,e.baseUnit),b(e.max,e.baseUnitStep,e.baseUnit))))},_zoom:function(e){var t,i,n=this,o=n.chart,a=e.delta,s=o._plotArea.categoryAxis,l=n.options.select,d=n.selection,u=n.mainAxis().options.categories;d&&(t=y(d.options.from,u),i=y(d.options.to,u),e.originalEvent.preventDefault(),c.abs(a)>1&&(a*=j),i-t>1?(d.expand(a),n.readSelection()):(s.options.min=l.from,l.from=s.scaleRange(-e.delta).min),r.support.touch||(n.filterAxes(),n.redrawSlaves()),d.set(l.from,l.to),n.showHint(n.options.select.from,n.options.select.to))},_zoomEnd:function(e){this._dragEnd(e)},showHint:function(e,t){var i=this,n=i.chart,o=n._plotArea;i.hint&&i.hint.show(e,t,o.backgroundBox())},_selectStart:function(e){var t=this.chart;t._selectStart.call(t,e)},_select:function(e){var t=this,i=t.chart;t.showHint(e.from,e.to),i._select.call(i,e)},_selectEnd:function(e){var t=this,i=t.chart;t.hint&&t.hint.hide(),t.readSelection(),t.filterAxes(),t.filterDataSource(),t.redrawSlaves(),i._selectEnd.call(i,e)},mainAxis:function(){var e=this.chart._plotArea;return e?e.namedCategoryAxes[z]:t}});L.setup=function(e,t){e=e||{},t=t||{};var i=l({},t.navigator,e.navigator),n=e.panes=[].concat(e.panes),o=l({},i.pane,{name:U});i.visible||(o.visible=!1,o.height=.1),n.push(o),L.attachAxes(e,i),L.attachSeries(e,i,t)},L.attachAxes=function(e,t){var i=t.series||[],n=e.categoryAxis=[].concat(e.categoryAxis),o=e.valueAxis=[].concat(e.valueAxis),r=v(i,M),a=0===r.length,s=l({type:"date",pane:U,roundToBaseUnit:!a,justified:a,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:!t.dataSource,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]},_overlap:!1}),c=t.categoryAxis;n.push(l({},s,{maxDateGroups:200},c,{name:z,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),l({},s,c,{name:z+"_labels",maxDateGroups:20,baseUnitStep:"auto",plotBands:[],autoBaseUnitSteps:{minutes:[]}}),l({},s,c,{name:z+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],labels:{visible:!1,mirror:!0}})),o.push(l({name:z,pane:U,majorGridLines:{visible:!1},visible:!1},t.valueAxis))},L.attachSeries=function(e,t,i){var n,o=e.series=e.series||[],r=[].concat(t.series||[]),a=i.seriesColors,s=t.seriesDefaults;for(n=0;r.length>n;n++)o.push(l({color:a[n%a.length],categoryField:t.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,r[n],{axis:z,categoryAxis:z,autoBind:!t.dataSource}))},L.buildFilter=function(e,t){return[{field:"Date",operator:"gte",value:A(e)},{field:"Date",operator:"lt",value:A(t)}]},o=a.extend({init:function(t,i){var n=this;n.options=l({},n.options,i),n.container=t,n.chartPadding={top:parseInt(t.css("paddingTop"),10),left:parseInt(t.css("paddingLeft"),10)},n.template=n.template,n.template||(n.template=n.template=f("