曲线图

来源:互联网 发布:学画画软件 编辑:程序博客网 时间:2024/04/26 11:05

原版本:

<%@ page language="java" contentType="text/html;charset=utf-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>    <title>曲线图</title>    <link rel="stylesheet" href="../css/hl.css" type="text/css" />    <script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>    <script type="text/javascript" src="js/highcharts.js"></script>    <script type="text/javascript" src="js/theme/grid.js"></script>    <script type="text/javascript">         var chart;        $(document).ready(function() {            chart = new Highcharts.Chart({                chart: {                    renderTo: 'container',          //放置图表的容器                    plotBackgroundColor: null,                    plotBorderWidth: null,                    defaultSeriesType: 'line'                },                title: {                    text: '${param.day}日发送量曲线走势分析'                },                subtitle: {                    text: '${param.code}'                },                xAxis: {//X轴数据                    categories: ['${param.day*11+1}-${param.day*12}日', '${param.day*10+1}-${param.day*11}日', '${param.day*9+1}-${param.day*10}日', '${param.day*8+1}-${param.day*9}日', '${param.day*7+1}-${param.day*8}日', '${param.day*6+1}-${param.day*7}日', '${param.day*5+1}-${param.day*6}日', '${param.day*4+1}-${param.day*5}日', '${param.day*3+1}-${param.day*4}日', '${param.day*2+1}-${param.day*3}日', '${param.day+1}-${param.day*2}日', '1-${param.day}日'],                    labels: {                        rotation: -45, //字体倾斜                        align: 'right',                        style: { font: 'normal 13px 宋体' }                    }                },                yAxis: {//Y轴显示文字                    title: {                        text: '发送量'                    }                },                tooltip: {                    enabled: true,                    formatter: function() {                        return '<b>' + this.x + '</b><br/>' + this.series.name + ': ' + Highcharts.numberFormat(this.y, 1);                    }                },                plotOptions: {                    line: {                        dataLabels: {                            enabled: true                        },                        enableMouseTracking: true//是否显示title                    }                },                series: [{                    name: '${param.day}日发送量',                    data: [${param.fsl}]                }]                });            });     </script>    <style type="text/css">        .codes        {            border: solid 1px #ABCCE7;            padding-bottom:20px;        }        .codes .titles        {            color: #999999;            font-size: 14px;        }        a        {            color: Red;            text-decoration: none;            font-size: 14px;        }        input        {            padding: 0 3px;            background: #FFF;            border: 1px solid #D1D1D1;            color: #999999;            font-size: 12px;            height: 22px;            line-height: 22px;            padding: 0 3px;        }    </style></head><body>    <div class="codes">        <span class="titles"></span>        <div class="titles" style="width: 900px; margin: 0 auto; height:500px;" id="container">        </div>    </div>    <br /></body></html>


我的版本:

<%@ page language="java" contentType="text/html;charset=utf-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>    <title>曲线图</title>    <link rel="stylesheet" href="../css/hl.css" type="text/css" />    <link rel="stylesheet" href="/jingtai/css/default.css">    <script type="text/javascript" src="/jsp/busi/js/jquery-1.5.2.min.js"></script>    <script type="text/javascript" src="/jsp/busi/js/highcharts.js"></script>    <script type="text/javascript" src="/jsp/busi/js/theme/grid.js"></script>    <script type="text/javascript">         var chart;        $(document).ready(function() {            chart = new Highcharts.Chart({                chart: {                    renderTo: 'container',          //放置图表的容器                    plotBackgroundColor: null,                    plotBorderWidth: null,                    defaultSeriesType: 'line'                },                title: {                    text: '12个月提交量曲线走势分析'                },                subtitle: {                    text: ''                },                xAxis: {//X轴数据                    categories: [${m12}],                    labels: {                        rotation: -45, //字体倾斜                        align: 'right',                        style: { font: 'normal 13px 宋体' }                    }                },                yAxis: {//Y轴显示文字                    title: {                        text: '提交量'                    }                },                tooltip: {                    enabled: true,                    formatter: function() {                        return '<b>' + this.x + '</b><br/>' + this.series.name + ': ' + Highcharts.numberFormat(this.y, 1);                    }                },                plotOptions: {                    line: {                        dataLabels: {                            enabled: true                        },                        enableMouseTracking: true//是否显示title                    }                },                series: [{                    name: '提交量',                    data: [${wmmonthsum}]                }]                });            });     </script>    <style type="text/css">        .codes        {            border: solid 1px #ABCCE7;            padding-bottom:20px;        }        .codes .titles        {            color: #999999;            font-size: 14px;        }        a        {            color: Red;            text-decoration: none;            font-size: 14px;        }        input        {            padding: 0 3px;            background: #FFF;            border: 1px solid #D1D1D1;            color: #999999;            font-size: 12px;            height: 22px;            line-height: 22px;            padding: 0 3px;        }    </style></head><body id="search2result">    <div class="codes">        <span class="titles"></span>        <div class="titles" style="width: 900px; margin: 0 auto; height:500px;" id="container">        </div>    </div>    <br /></body></html>


 附用到的js:

jquery-1.5.2.min.js

/*! * jQuery JavaScript Library v1.5.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Thu Mar 31 15:28:23 2011 -0400 */(function(g,e){function Z0($){return c.isWindow($)?$:$.nodeType===9?$.defaultView||$.parentWindow:!1}function d0(A){if(!k0[A]){var $=c("<"+A+">").appendTo("body"),_=$.css("display");$.remove();if(_==="none"||_==="")_="block";k0[A]=_}return k0[A]}function c0(A,$){var _={};c.each(f0.concat.apply([],f0.slice(0,$)),function(){_[this]=A});return _}function h0(){try{return new g.ActiveXObject("Microsoft.XMLHTTP")}catch($){}}function i0(){try{return new g.XMLHttpRequest}catch($){}}function p0(){c(g).unload(function(){for(var $ in r0)r0[$](0,1)})}function n0(C,B){C.dataFilter&&(B=C.dataFilter(B,C.dataType));var A=C.dataTypes,$={},_,J,K=A.length,H,I=A[0],F,G,D,E,L;for(_=1;_<K;_++){if(_===1)for(J in C.converters)typeof J==="string"&&($[J.toLowerCase()]=C.converters[J]);F=I,I=A[_];if(I==="*")I=F;else if(F!=="*"&&F!==I){G=F+" "+I,D=$[G]||$["* "+I];if(!D){L=e;for(E in $){H=E.split(" ");if(H[0]===F||H[0]==="*"){L=$[H[1]+" "+I];if(L){E=$[E],E===!0?D=L:L===!0&&(D=E);break}}}}!D&&!L&&c.error("No conversion from "+G.replace(" "," to ")),D!==!0&&(B=D?D(B):L(E(B)))}}return B}function o0(D,C,A){var B=D.contents,$=D.dataTypes,_=D.responseFields,G,H,E,F;for(H in _)H in A&&(C[_[H]]=A[H]);while($[0]==="*")$.shift(),G===e&&(G=D.mimeType||C.getResponseHeader("content-type"));if(G)for(H in B)if(B[H]&&B[H].test(G)){$.unshift(H);break}if($[0]in A)E=$[0];else{for(H in A){if(!$[0]||D.converters[H+" "+$[0]]){E=H;break}F||(F=H)}E=E||F}if(E){E!==$[0]&&$.unshift(E);return A[E]}}function y0(C,A,B,_){if(c.isArray(A)&&A.length)c.each(A,function(A,$){B||F0.test(C)?_(C,$):y0(C+"["+(typeof $==="object"||c.isArray($)?A:"")+"]",$,B,_)});else if(B||A==null||typeof A!=="object")_(C,A);else if(c.isArray(A)||c.isEmptyObject(A))_(C,"");else for(var $ in A)y0(C+"["+$+"]",A[$],B,_)}function x0(D,C,A,B,$,_){$=$||C.dataTypes[0],_=_||{},_[$]=!0;var H=D[$],I=0,F=H?H.length:0,G=D===v0,E;for(;I<F&&(G||!E);I++)E=H[I](C,A,B),typeof E==="string"&&(!G||_[E]?E=e:(C.dataTypes.unshift(E),E=x0(D,C,A,B,E,_)));(G||!E)&&!_["*"]&&(E=x0(D,C,A,B,"*",_));return E}function $1($){return function(C,D){typeof C!=="string"&&(D=C,C="*");if(c.isFunction(D)){var B=C.toLowerCase().split(_1),_=0,A=B.length,F,G,E;for(;_<A;_++)F=B[_],E=/^\+/.test(F),E&&(F=F.substr(1)||"*"),G=$[F]=$[F]||[],G[E?"unshift":"push"](D)}}}function M0(C,A,B){var _=A==="width"?O0:P0,$=A==="width"?C.offsetWidth:C.offsetHeight;if(B==="border")return $;c.each(_,function(){B||($-=parseFloat(c.css(C,"padding"+this))||0),B==="margin"?$+=parseFloat(c.css(C,"margin"+this))||0:$-=parseFloat(c.css(C,"border"+this+"Width"))||0});return $}function W0(_,$){$.src?c.ajax({url:$.src,async:!1,dataType:"script"}):c.globalEval($.text||$.textContent||$.innerHTML||""),$.parentNode&&$.parentNode.removeChild($)}function V0($){return"getElementsByTagName"in $?$.getElementsByTagName("*"):"querySelectorAll"in $?$.querySelectorAll("*"):[]}function j0(A,$){if($.nodeType===1){var _=$.nodeName.toLowerCase();$.clearAttributes(),$.mergeAttributes(A);if(_==="object")$.outerHTML=A.outerHTML;else if(_!=="input"||A.type!=="checkbox"&&A.type!=="radio"){if(_==="option")$.selected=A.defaultSelected;else if(_==="input"||_==="textarea")$.defaultValue=A.defaultValue}else A.checked&&($.defaultChecked=$.checked=A.checked),$.value!==A.value&&($.value=A.value);$.removeAttribute(c.expando)}}function W(D,B){if(B.nodeType===1&&c.hasData(D)){var C=c.expando,A=c.data(D),$=c.data(B,A);if(A=A[C]){var _=A.events;$=$[C]=c.extend({},A);if(_){delete $.handle,$.events={};for(var F in _)for(var G=0,E=_[F].length;G<E;G++)c.event.add(B,F+(_[F][G].namespace?".":"")+_[F][G].namespace,_[F][G],_[F][G].data)}}}}function $(_,$){return c.nodeName(_,"table")?_.getElementsByTagName("tbody")[0]||_.appendChild(_.ownerDocument.createElement("tbody")):_}function S(B,_,A){if(c.isFunction(_))return c.grep(B,function(C,$){var B=!!_.call(C,$,C);return B===A});if(_.nodeType)return c.grep(B,function(B,$){return B===_===A});if(typeof _==="string"){var $=c.grep(B,function($){return $.nodeType===1});if(G.test(_))return c.filter(_,$,!A);_=c.filter(_,$)}return c.grep(B,function(B,$){return c.inArray(B,_)>=0===A})}function T($){return!$||!$.parentNode||$.parentNode.nodeType===11}function K(_,$){return(_&&_!=="*"?_+".":"")+$.replace(s,"`").replace(r,"&")}function C(D){var B,C,A,$,_,K,L,I,J,G,H,E,F,P=[],O=[],N=c._data(this,"events");if(D.liveFired!==this&&N&&N.live&&!D.target.disabled&&(!D.button||D.type!=="click")){D.namespace&&(E=new RegExp("(^|\\.)"+D.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),D.liveFired=this;var M=N.live.slice(0);for(L=0;L<M.length;L++)_=M[L],_.origType.replace(u,"")===D.type?O.push(_.selector):M.splice(L--,1);$=c(D.target).closest(O,D.currentTarget);for(I=0,J=$.length;I<J;I++){H=$[I];for(L=0;L<M.length;L++){_=M[L];if(H.selector===_.selector&&(!E||E.test(_.namespace))&&!H.elem.disabled){K=H.elem,A=null;if(_.preType==="mouseenter"||_.preType==="mouseleave")D.type=_.preType,A=c(D.relatedTarget).closest(_.selector)[0];(!A||A!==K)&&P.push({elem:K,handleObj:_,level:H.level})}}}for(I=0,J=P.length;I<J;I++){$=P[I];if(C&&$.level>C)break;D.currentTarget=$.elem,D.data=$.handleObj.data,D.handleObj=$.handleObj,F=$.handleObj.origHandler.apply($.elem,arguments);if(F===!1||D.isPropagationStopped()){C=$.level,F===!1&&(B=!1);if(D.isImmediatePropagationStopped())break}}return B}}function A(B,A,_){var $=c.extend({},_[0]);$.type=B,$.originalEvent={},$.liveFired=e,c.event.handle.call(A,$),$.isDefaultPrevented()&&_[0].preventDefault()}function y(){return!0}function z(){return!1}function o(_){for(var $ in _)if($!=="toJSON")return!1;return!0}function n(B,A,_){if(_===e&&B.nodeType===1){_=B.getAttribute("data-"+A);if(typeof _==="string"){try{_=_==="true"?!0:_==="false"?!1:_==="null"?null:c.isNaN(_)?b.test(_)?c.parseJSON(_):_:parseFloat(_)}catch($){}c.data(B,A,_)}else _=e}return _}var f=g.document,c=function(){function B(){if(!H.isReady){try{f.documentElement.doScroll("left")}catch($){setTimeout(B,1);return}H.ready()}}var H=function(_,$){return new H.fn.init(_,$,G)},I=g.jQuery,F=g.$,G,P=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,Q=/\S/,N=/^\s+/,O=/\s+$/,L=/\d/,M=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,J=/^[\],:{}\s]*$/,K=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,X=/(?:^|:|,)(?:\s*\[)+/g,W=/(webkit)[ \/]([\w.]+)/,V=/(opera)(?:.*version)?[ \/]([\w.]+)/,U=/(msie) ([\w.]+)/,T=/(mozilla)(?:.*? rv:([\w.]+))?/,S=navigator.userAgent,R,b,a,Z=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,$=String.prototype.trim,_=Array.prototype.indexOf,A={};H.fn=H.prototype={constructor:H,init:function(B,A,$){var _,E,C,D;if(!B)return this;if(B.nodeType){this.context=this[0]=B,this.length=1;return this}if(B==="body"&&!A&&f.body){this.context=f,this[0]=f.body,this.selector="body",this.length=1;return this}if(typeof B==="string"){_=P.exec(B);if(!_||!_[1]&&A)return!A||A.jquery?(A||$).find(B):this.constructor(A).find(B);if(_[1]){A=A instanceof H?A[0]:A,D=A?A.ownerDocument||A:f,C=M.exec(B),C?H.isPlainObject(A)?(B=[f.createElement(C[1])],H.fn.attr.call(B,A,!0)):B=[D.createElement(C[1])]:(C=H.buildFragment([_[1]],[D]),B=(C.cacheable?H.clone(C.fragment):C.fragment).childNodes);return H.merge(this,B)}E=f.getElementById(_[2]);if(E&&E.parentNode){if(E.id!==_[2])return $.find(B);this.length=1,this[0]=E}this.context=f,this.selector=B;return this}if(H.isFunction(B))return $.ready(B);B.selector!==e&&(this.selector=B.selector,this.context=B.context);return H.makeArray(B,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function($){return $==null?this.toArray():$<0?this[this.length+$]:this[$]},pushStack:function(B,_,A){var $=this.constructor();H.isArray(B)?D.apply($,B):H.merge($,B),$.prevObject=this,$.context=this.context,_==="find"?$.selector=this.selector+(this.selector?" ":"")+A:_&&($.selector=this.selector+"."+_+"("+A+")");return $},each:function(_,$){return H.each(this,_,$)},ready:function($){H.bindReady(),b.done($);return this},eq:function($){return $===-1?this.slice($):this.slice($,+$+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function($){return this.pushStack(H.map(this,function(_,A){return $.call(_,A,_)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},H.fn.init.prototype=H.fn,H.extend=H.fn.extend=function(){var C,B,A,$,_,G,I=arguments[0]||{},E=1,F=arguments.length,D=!1;typeof I==="boolean"&&(D=I,I=arguments[1]||{},E=2),typeof I!=="object"&&!H.isFunction(I)&&(I={}),F===E&&(I=this,--E);for(;E<F;E++)if((C=arguments[E])!=null)for(B in C){A=I[B],$=C[B];if(I===$)continue;D&&$&&(H.isPlainObject($)||(_=H.isArray($)))?(_?(_=!1,G=A&&H.isArray(A)?A:[]):G=A&&H.isPlainObject(A)?A:{},I[B]=H.extend(D,G,$)):$!==e&&(I[B]=$)}return I},H.extend({noConflict:function($){g.$=F,$&&(g.jQuery=I);return H},isReady:!1,readyWait:1,ready:function($){$===!0&&H.readyWait--;if(!H.readyWait||$!==!0&&!H.isReady){if(!f.body)return setTimeout(H.ready,1);H.isReady=!0;if($!==!0&&--H.readyWait>0)return;b.resolveWith(f,[H]),H.fn.trigger&&H(f).trigger("ready").unbind("ready")}},bindReady:function(){if(!b){b=H._Deferred();if(f.readyState==="complete")return setTimeout(H.ready,1);if(f.addEventListener)f.addEventListener("DOMContentLoaded",a,!1),g.addEventListener("load",H.ready,!1);else if(f.attachEvent){f.attachEvent("onreadystatechange",a),g.attachEvent("onload",H.ready);var _=!1;try{_=g.frameElement==null}catch($){}f.documentElement.doScroll&&_&&B()}}},isFunction:function($){return H.type($)==="function"},isArray:Array.isArray||function($){return H.type($)==="array"},isWindow:function($){return $&&typeof $==="object"&&"setInterval"in $},isNaN:function($){return $==null||!L.test($)||isNaN($)},type:function($){return $==null?String($):A[Z.call($)]||"object"},isPlainObject:function(_){if(!_||H.type(_)!=="object"||_.nodeType||H.isWindow(_))return!1;if(_.constructor&&!C.call(_,"constructor")&&!C.call(_.constructor.prototype,"isPrototypeOf"))return!1;var $;for($ in _);return $===e||C.call(_,$)},isEmptyObject:function(_){for(var $ in _)return!1;return!0},error:function($){throw $},parseJSON:function($){if(typeof $!=="string"||!$)return null;$=H.trim($);if(J.test($.replace(K,"@").replace(Y,"]").replace(X,"")))return g.JSON&&g.JSON.parse?g.JSON.parse($):(new Function("return "+$))();H.error("Invalid JSON: "+$)},parseXML:function(_,A,$){g.DOMParser?($=new DOMParser,A=$.parseFromString(_,"text/xml")):(A=new ActiveXObject("Microsoft.XMLDOM"),A.async="false",A.loadXML(_)),$=A.documentElement,(!$||!$.nodeName||$.nodeName==="parsererror")&&H.error("Invalid XML: "+_);return A},noop:function(){},globalEval:function(A){if(A&&Q.test(A)){var _=f.head||f.getElementsByTagName("head")[0]||f.documentElement,$=f.createElement("script");H.support.scriptEval()?$.appendChild(f.createTextNode(A)):$.text=A,_.insertBefore($,_.firstChild),_.removeChild($)}},nodeName:function(_,$){return _.nodeName&&_.nodeName.toUpperCase()===$.toUpperCase()},each:function(C,B,A){var $,_=0,E=C.length,F=E===e||H.isFunction(C);if(A){if(F){for($ in C)if(B.apply(C[$],A)===!1)break}else for(;_<E;)if(B.apply(C[_++],A)===!1)break}else if(F){for($ in C)if(B.call(C[$],$,C[$])===!1)break}else for(var D=C[0];_<E&&B.call(D,_,D)!==!1;D=C[++_]);return C},trim:$?function(_){return _==null?"":$.call(_)}:function($){return $==null?"":($+"").replace(N,"").replace(O,"")},makeArray:function(B,_){var A=_||[];if(B!=null){var $=H.type(B);B.length==null||$==="string"||$==="function"||$==="regexp"||H.isWindow(B)?D.call(A,B):H.merge(A,B)}return A},inArray:function(B,_){if(_.indexOf)return _.indexOf(B);for(var A=0,$=_.length;A<$;A++)if(_[A]===B)return A;return-1},merge:function(C,B){var _=C.length,A=0;if(typeof B.length==="number"){for(var $=B.length;A<$;A++)C[_++]=B[A]}else while(B[A]!==e)C[_++]=B[A++];C.length=_;return C},grep:function(E,C,D){var A=[],B;D=!!D;for(var $=0,_=E.length;$<_;$++)B=!!C(E[$],$),D!==B&&A.push(E[$]);return A},map:function(E,C,D){var A=[],B;for(var $=0,_=E.length;$<_;$++)B=C(E[$],$,D),B!=null&&(A[A.length]=B);return A.concat.apply([],A)},guid:1,proxy:function(A,_,$){arguments.length===2&&(typeof _==="string"?($=A,A=$[_],_=e):_&&!H.isFunction(_)&&($=_,_=e)),!_&&A&&(_=function(){return A.apply($||this,arguments)}),A&&(_.guid=A.guid=A.guid||_.guid||H.guid++);return _},access:function(C,B,A,$,_,F){var G=C.length;if(typeof B==="object"){for(var D in B)H.access(C,D,B[D],$,_,A);return C}if(A!==e){$=!F&&$&&H.isFunction(A);for(var E=0;E<G;E++)_(C[E],B,$?A.call(C[E],E,_(C[E],B)):A,F);return C}return G?_(C[0],B):e},now:function(){return(new Date).getTime()},uaMatch:function(_){_=_.toLowerCase();var $=W.exec(_)||V.exec(_)||U.exec(_)||_.indexOf("compatible")<0&&T.exec(_)||[];return{browser:$[1]||"",version:$[2]||"0"}},sub:function(){function A($,_){return new A.fn.init($,_)}H.extend(!0,A,this),A.superclass=this,A.fn=A.prototype=this(),A.fn.constructor=A,A.subclass=this.subclass,A.fn.init=function _(_,B){B&&B instanceof H&&!(B instanceof A)&&(B=A(B));return H.fn.init.call(this,_,B,$)},A.fn.init.prototype=A.fn;var $=A(f);return A},browser:{}}),H.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(_,$){A["[object "+$+"]"]=$.toLowerCase()}),R=H.uaMatch(S),R.browser&&(H.browser[R.browser]=!0,H.browser.version=R.version),H.browser.webkit&&(H.browser.safari=!0),_&&(H.inArray=function(A,$){return _.call($,A)}),Q.test("\xa0")&&(N=/^[\s\xA0]+/,O=/[\s\xA0]+$/),G=H(f),f.addEventListener?a=function(){f.removeEventListener("DOMContentLoaded",a,!1),H.ready()}:f.attachEvent&&(a=function(){f.readyState==="complete"&&(f.detachEvent("onreadystatechange",a),H.ready())});return H}(),d="then done fail isResolved isRejected promise".split(" "),a=[].slice;c.extend({_Deferred:function(){var C=[],A,B,_,$={done:function(){if(!_){var D=arguments,B,G,H,E,F;A&&(F=A,A=0);for(B=0,G=D.length;B<G;B++)H=D[B],E=c.type(H),E==="array"?$.done.apply($,H):E==="function"&&C.push(H);F&&$.resolveWith(F[0],F[1])}return this},resolveWith:function(D,$){if(!_&&!A&&!B){$=$||[],B=1;try{while(C[0])C.shift().apply(D,$)}finally{A=[D,$],B=0}}return this},resolve:function(){$.resolveWith(this,arguments);return this},isResolved:function(){return B||A},cancel:function(){_=1,C=[];return this}};return $},Deferred:function(B){var _=c._Deferred(),A=c._Deferred(),$;c.extend(_,{then:function(A,$){_.done(A).fail($);return this},fail:A.done,rejectWith:A.resolveWith,reject:A.resolve,isRejected:A.isResolved,promise:function(B){if(B==null){if($)return $;$=B={}}var A=d.length;while(A--)B[d[A]]=_[d[A]];return B}}),_.done(A.cancel).fail(_.cancel),delete _.cancel,B&&B.call(_,_);return _},when:function(C){function E(_){return function(B){A[_]=arguments.length>1?a.call(arguments,0):B,--$||D.resolveWith(D,a.call(A,0))}}var A=arguments,B=0,_=A.length,$=_,D=_<=1&&C&&c.isFunction(C.promise)?C:c.Deferred();if(_>1){for(;B<_;B++)A[B]&&c.isFunction(A[B].promise)?A[B].promise().then(E(B),D.reject):--$;$||D.resolveWith(D,A)}else D!==C&&D.resolveWith(D,_?[C]:[]);return D.promise()}}),function(){c.support={};var B=f.createElement("div");B.style.display="none",B.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var A=B.getElementsByTagName("*"),$=B.getElementsByTagName("a")[0],_=f.createElement("select"),H=_.appendChild(f.createElement("option")),I=B.getElementsByTagName("input")[0];if(A&&A.length&&$){c.support={leadingWhitespace:B.firstChild.nodeType===3,tbody:!B.getElementsByTagName("tbody").length,htmlSerialize:!!B.getElementsByTagName("link").length,style:/red/.test($.getAttribute("style")),hrefNormalized:$.getAttribute("href")==="/a",opacity:/^0.55$/.test($.style.opacity),cssFloat:!!$.style.cssFloat,checkOn:I.value==="on",optSelected:H.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},I.checked=!0,c.support.noCloneChecked=I.cloneNode(!0).checked,_.disabled=!0,c.support.optDisabled=!H.disabled;var F=null;c.support.scriptEval=function(){if(F===null){var B=f.documentElement,A=f.createElement("script"),$="script"+c.now();try{A.appendChild(f.createTextNode("window."+$+"=1;"))}catch(_){}B.insertBefore(A,B.firstChild),g[$]?(F=!0,delete g[$]):F=!1,B.removeChild(A)}return F};try{delete B.test}catch(G){c.support.deleteExpando=!1}!B.addEventListener&&B.attachEvent&&B.fireEvent&&(B.attachEvent("onclick",function D(){c.support.noCloneEvent=!1,B.detachEvent("onclick",D)}),B.cloneNode(!0).fireEvent("onclick")),B=f.createElement("div"),B.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var E=f.createDocumentFragment();E.appendChild(B.firstChild),c.support.checkClone=E.cloneNode(!0).cloneNode(!0).lastChild.checked,c(function(){var A=f.createElement("div"),_=f.getElementsByTagName("body")[0];if(_){A.style.width=A.style.paddingLeft="1px",_.appendChild(A),c.boxModel=c.support.boxModel=A.offsetWidth===2,"zoom"in A.style&&(A.style.display="inline",A.style.zoom=1,c.support.inlineBlockNeedsLayout=A.offsetWidth===2,A.style.display="",A.innerHTML="<div style='width:4px;'></div>",c.support.shrinkWrapBlocks=A.offsetWidth!==2),A.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var $=A.getElementsByTagName("td");c.support.reliableHiddenOffsets=$[0].offsetHeight===0,$[0].style.display="",$[1].style.display="none",c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&$[0].offsetHeight===0,A.innerHTML="",f.defaultView&&f.defaultView.getComputedStyle&&(A.style.width="1px",A.style.marginRight="0",c.support.reliableMarginRight=(parseInt(f.defaultView.getComputedStyle(A,null).marginRight,10)||0)===0),_.removeChild(A).style.display="none",A=$=null}});var C=function(A){var _=f.createElement("div");A="on"+A;if(!_.attachEvent)return!0;var $=A in _;$||(_.setAttribute(A,"return;"),$=typeof _[A]==="function");return $};c.support.submitBubbles=C("submit"),c.support.changeBubbles=C("change"),B=A=$=null}}();var b=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function($){$=$.nodeType?c.cache[$[c.expando]]:$[c.expando];return!!$&&!o($)},data:function(C,B,A,$){if(c.acceptData(C)){var _=c.expando,G=typeof B==="string",H,E=C.nodeType,F=E?c.cache:C,D=E?C[c.expando]:C[c.expando]&&c.expando;if((!D||$&&D&&!F[D][_])&&G&&A===e)return;D||(E?C[c.expando]=D=++c.uuid:D=c.expando),F[D]||(F[D]={},E||(F[D].toJSON=c.noop));if(typeof B==="object"||typeof B==="function")$?F[D][_]=c.extend(F[D][_],B):F[D]=c.extend(F[D],B);H=F[D],$&&(H[_]||(H[_]={}),H=H[_]),A!==e&&(H[B]=A);if(B==="events"&&!H[B])return H[_]&&H[_].events;return G?H[B]:H}},removeData:function(B,C,A){if(c.acceptData(B)){var $=c.expando,_=B.nodeType,G=_?c.cache:B,E=_?B[c.expando]:c.expando;if(!G[E])return;if(C){var F=A?G[E][$]:G[E];if(F){delete F[C];if(!o(F))return}}if(A){delete G[E][$];if(!o(G[E]))return}var D=G[E][$];c.support.deleteExpando||G!=g?delete G[E]:G[E]=null,D?(G[E]={},_||(G[E].toJSON=c.noop),G[E][$]=D):_&&(c.support.deleteExpando?delete B[c.expando]:B.removeAttribute?B.removeAttribute(c.expando):B[c.expando]=null)}},_data:function(A,$,_){return c.data(A,$,_,!0)},acceptData:function(_){if(_.nodeName){var $=c.noData[_.nodeName.toLowerCase()];if($)return $!==!0&&_.getAttribute("classid")===$}return!0}}),c.fn.extend({data:function(C,B){var A=null;if(typeof C==="undefined"){if(this.length){A=c.data(this[0]);if(this[0].nodeType===1){var $=this[0].attributes,_;for(var F=0,D=$.length;F<D;F++)_=$[F].name,_.indexOf("data-")===0&&(_=_.substr(5),n(this[0],_,A[_]))}}return A}if(typeof C==="object")return this.each(function(){c.data(this,C)});var E=C.split(".");E[1]=E[1]?"."+E[1]:"";if(B===e){A=this.triggerHandler("getData"+E[1]+"!",[E[0]]),A===e&&this.length&&(A=c.data(this[0],C),A=n(this[0],C,A));return A===e&&E[1]?this.data(E[0]):A}return this.each(function(){var _=c(this),$=[E[0],B];_.triggerHandler("setData"+E[1]+"!",$),c.data(this,C,B),_.triggerHandler("changeData"+E[1]+"!",$)})},removeData:function($){return this.each(function(){c.removeData(this,$)})}}),c.extend({queue:function(B,_,A){if(B){_=(_||"fx")+"queue";var $=c._data(B,_);if(!A)return $||[];!$||c.isArray(A)?$=c._data(B,_,c.makeArray(A)):$.push(A);return $}},dequeue:function(B,_){_=_||"fx";var A=c.queue(B,_),$=A.shift();$==="inprogress"&&($=A.shift()),$&&(_==="fx"&&A.unshift("inprogress"),$.call(B,function(){c.dequeue(B,_)})),A.length||c.removeData(B,_+"queue",!0)}}),c.fn.extend({queue:function(_,$){typeof _!=="string"&&($=_,_="fx");if($===e)return c.queue(this[0],_);return this.each(function(B){var A=c.queue(this,_,$);_==="fx"&&A[0]!=="inprogress"&&c.dequeue(this,_)})},dequeue:function($){return this.each(function(){c.dequeue(this,$)})},delay:function(_,$){_=c.fx?c.fx.speeds[_]||_:_,$=$||"fx";return this.queue($,function(){var A=this;setTimeout(function(){c.dequeue(A,$)},_)})},clearQueue:function($){return this.queue($||"fx",[])}});var l=/[\n\t\r]/g,m=/\s+/,j=/\r/g,k=/^(?:href|src|style)$/,h=/^(?:button|input)$/i,i=/^(?:button|input|object|select|textarea)$/i,w=/^a(?:rea)?$/i,v=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},c.fn.extend({attr:function(_,$){return c.access(this,_,$,!0,c.attr)},removeAttr:function(_,$){return this.each(function(){c.attr(this,_,""),this.nodeType===1&&this.removeAttribute(_)})},addClass:function(D){if(c.isFunction(D))return this.each(function($){var _=c(this);_.addClass(D.call(this,$,_.attr("class")))});if(D&&typeof D==="string"){var B=(D||"").split(m);for(var C=0,A=this.length;C<A;C++){var $=this[C];if($.nodeType===1)if($.className){var _=" "+$.className+" ",F=$.className;for(var G=0,E=B.length;G<E;G++)_.indexOf(" "+B[G]+" ")<0&&(F+=" "+B[G]);$.className=c.trim(F)}else $.className=D}}return this},removeClass:function(C){if(c.isFunction(C))return this.each(function($){var _=c(this);_.removeClass(C.call(this,$,_.attr("class")))});if(C&&typeof C==="string"||C===e){var B=(C||"").split(m);for(var A=0,$=this.length;A<$;A++){var _=this[A];if(_.nodeType===1&&_.className)if(C){var E=(" "+_.className+" ").replace(l," ");for(var F=0,D=B.length;F<D;F++)E=E.replace(" "+B[F]+" "," ");_.className=c.trim(E)}else _.className=""}}return this},toggleClass:function(B,_){var A=typeof B,$=typeof _==="boolean";if(c.isFunction(B))return this.each(function(A){var $=c(this);$.toggleClass(B.call(this,A,$.attr("class"),_),_)});return this.each(function(){if(A==="string"){var C,D=0,F=c(this),G=_,E=B.split(m);while(C=E[D++])G=$?G:!F.hasClass(C),F[G?"addClass":"removeClass"](C)}else if(A==="undefined"||A==="boolean")this.className&&c._data(this,"__className__",this.className),this.className=this.className||B===!1?"":c._data(this,"__className__")||""})},hasClass:function(B){var _=" "+B+" ";for(var A=0,$=this.length;A<$;A++)if((" "+this[A].className+" ").replace(l," ").indexOf(_)>-1)return!0;return!1},val:function(C){if(!arguments.length){var B=this[0];if(B){if(c.nodeName(B,"option")){var A=B.attributes.value;return!A||A.specified?B.value:B.text}if(c.nodeName(B,"select")){var $=B.selectedIndex,_=[],H=B.options,I=B.type==="select-one";if($<0)return null;for(var F=I?$:0,G=I?$+1:H.length;F<G;F++){var E=H[F];if(E.selected&&(c.support.optDisabled?!E.disabled:E.getAttribute("disabled")===null)&&(!E.parentNode.disabled||!c.nodeName(E.parentNode,"optgroup"))){C=c(E).val();if(I)return C;_.push(C)}}if(I&&!_.length&&H.length)return c(H[$]).val();return _}if(v.test(B.type)&&!c.support.checkOn)return B.getAttribute("value")===null?"on":B.value;return(B.value||"").replace(j,"")}return e}var D=c.isFunction(C);return this.each(function(A){var B=c(this),_=C;if(this.nodeType===1){D&&(_=C.call(this,A,B.val())),_==null?_="":typeof _==="number"?_+="":c.isArray(_)&&(_=c.map(_,function($){return $==null?"":$+""}));if(c.isArray(_)&&v.test(this.type))this.checked=c.inArray(B.val(),_)>=0;else if(c.nodeName(this,"select")){var $=c.makeArray(_);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),$)>=0}),$.length||(this.selectedIndex=-1)}else this.value=_}})}}),c.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(C,B,A,$){if(!C||C.nodeType===3||C.nodeType===8||C.nodeType===2)return e;if($&&B in c.attrFn)return c(C)[B](A);var _=C.nodeType!==1||!c.isXMLDoc(C),G=A!==e;B=_&&c.props[B]||B;if(C.nodeType===1){var H=k.test(B);if(B==="selected"&&!c.support.optSelected){var E=C.parentNode;E&&(E.selectedIndex,E.parentNode&&E.parentNode.selectedIndex)}if((B in C||C[B]!==e)&&_&&!H){G&&(B==="type"&&h.test(C.nodeName)&&C.parentNode&&c.error("type property can't be changed"),A===null?C.nodeType===1&&C.removeAttribute(B):C[B]=A);if(c.nodeName(C,"form")&&C.getAttributeNode(B))return C.getAttributeNode(B).nodeValue;if(B==="tabIndex"){var F=C.getAttributeNode("tabIndex");return F&&F.specified?F.value:i.test(C.nodeName)||w.test(C.nodeName)&&C.href?0:e}return C[B]}if(!c.support.style&&_&&B==="style"){G&&(C.style.cssText=""+A);return C.style.cssText}G&&C.setAttribute(B,""+A);if(!C.attributes[B]&&(C.hasAttribute&&!C.hasAttribute(B)))return e;var D=!c.support.hrefNormalized&&_&&H?C.getAttribute(B,2):C.getAttribute(B);return D===null?e:D}G&&(C[B]=A);return C[B]}});var u=/\.(.*)$/,t=/^(?:textarea|input|select)$/i,s=/\./g,r=/ /g,q=/[^\w\s.|`]/g,p=function($){return $.replace(q,"\\$&")};c.event={add:function(B,A,$,_){if(B.nodeType!==3&&B.nodeType!==8){try{c.isWindow(B)&&(B!==g&&!B.frameElement)&&(B=g)}catch(I){}if($===!1)$=z;else if(!$)return;var J,G;$.handler&&(J=$,$=J.handler),$.guid||($.guid=c.guid++);var H=c._data(B);if(!H)return;var E=H.events,F=H.handle;E||(H.events=E={}),F||(H.handle=F=function($){return typeof c!=="undefined"&&c.event.triggered!==$.type?c.event.handle.apply(F.elem,arguments):e}),F.elem=B,A=A.split(" ");var C,D=0,M;while(C=A[D++]){G=J?c.extend({},J):{handler:$,data:_},C.indexOf(".")>-1?(M=C.split("."),C=M.shift(),G.namespace=M.slice(0).sort().join(".")):(M=[],G.namespace=""),G.type=C,G.guid||(G.guid=$.guid);var L=E[C],K=c.event.special[C]||{};if(!L){L=E[C]=[];if(!K.setup||K.setup.call(B,_,M,F)===!1)B.addEventListener?B.addEventListener(C,F,!1):B.attachEvent&&B.attachEvent("on"+C,F)}K.add&&(K.add.call(B,G),G.handler.guid||(G.handler.guid=$.guid)),L.push(G),c.event.global[C]=!0}B=null}},global:{},remove:function(C,B,A,$){if(C.nodeType!==3&&C.nodeType!==8){A===!1&&(A=z);var _,J,K,H,I=0,F,G,D,E,Q,P,O,N=c.hasData(C)&&c._data(C),M=N&&N.events;if(!N||!M)return;B&&B.type&&(A=B.handler,B=B.type);if(!B||typeof B==="string"&&B.charAt(0)==="."){B=B||"";for(J in M)c.event.remove(C,J+B);return}B=B.split(" ");while(J=B[I++]){O=J,P=null,F=J.indexOf(".")<0,G=[],F||(G=J.split("."),J=G.shift(),D=new RegExp("(^|\\.)"+c.map(G.slice(0).sort(),p).join("\\.(?:.*\\.)?")+"(\\.|$)")),Q=M[J];if(!Q)continue;if(!A){for(H=0;H<Q.length;H++){P=Q[H];if(F||D.test(P.namespace))c.event.remove(C,O,P.handler,H),Q.splice(H--,1)}continue}E=c.event.special[J]||{};for(H=$||0;H<Q.length;H++){P=Q[H];if(A.guid===P.guid){if(F||D.test(P.namespace))$==null&&Q.splice(H--,1),E.remove&&E.remove.call(C,P);if($!=null)break}}if(Q.length===0||$!=null&&Q.length===1)(!E.teardown||E.teardown.call(C,G)===!1)&&c.removeEvent(C,J,N.handle),_=null,delete M[J]}if(c.isEmptyObject(M)){var L=N.handle;L&&(L.elem=null),delete N.events,delete N.handle,c.isEmptyObject(N)&&c.removeData(C,e,!0)}}},trigger:function(C,B,A){var $=C.type||C,_=arguments[3];if(!_){C=typeof C==="object"?C[c.expando]?C:c.extend(c.Event($),C):c.Event($),$.indexOf("!")>=0&&(C.type=$=$.slice(0,-1),C.exclusive=!0),A||(C.stopPropagation(),c.event.global[$]&&c.each(c.cache,function(){var A=c.expando,_=this[A];_&&_.events&&_.events[$]&&c.event.trigger(C,B,_.handle.elem)}));if(!A||A.nodeType===3||A.nodeType===8)return e;C.result=e,C.target=A,B=c.makeArray(B),B.unshift(C)}C.currentTarget=A;var J=c._data(A,"handle");J&&J.apply(A,B);var K=A.parentNode||A.ownerDocument;try{A&&A.nodeName&&c.noData[A.nodeName.toLowerCase()]||A["on"+$]&&A["on"+$].apply(A,B)===!1&&(C.result=!1,C.preventDefault())}catch(H){}if(!C.isPropagationStopped()&&K)c.event.trigger(C,B,K,!0);else if(!C.isDefaultPrevented()){var I,F=C.target,G=$.replace(u,""),D=c.nodeName(F,"a")&&G==="click",E=c.event.special[G]||{};if((!E._default||E._default.call(A,C)===!1)&&!D&&!(F&&F.nodeName&&c.noData[F.nodeName.toLowerCase()])){try{F[G]&&(I=F["on"+G],I&&(F["on"+G]=null),c.event.triggered=C.type,F[G]())}catch(L){}I&&(F["on"+G]=I),c.event.triggered=e}}},handle:function(B){var A,$,_,I,J,G=[],H=c.makeArray(arguments);B=H[0]=c.event.fix(B||g.event),B.currentTarget=this,A=B.type.indexOf(".")<0&&!B.exclusive,A||(_=B.type.split("."),B.type=_.shift(),G=_.slice(0).sort(),I=new RegExp("(^|\\.)"+G.join("\\.(?:.*\\.)?")+"(\\.|$)")),B.namespace=B.namespace||G.join("."),J=c._data(this,"events"),$=(J||{})[B.type];if(J&&$){$=$.slice(0);for(var E=0,F=$.length;E<F;E++){var C=$[E];if(A||I.test(C.namespace)){B.handler=C.handler,B.data=C.data,B.handleObj=C;var D=C.handler.apply(this,H);D!==e&&(B.result=D,D===!1&&(B.preventDefault(),B.stopPropagation()));if(B.isImmediatePropagationStopped())break}}}return B.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(B){if(B[c.expando])return B;var A=B;B=c.Event(A);for(var $=this.props.length,_;$;)_=this.props[--$],B[_]=A[_];B.target||(B.target=B.srcElement||f),B.target.nodeType===3&&(B.target=B.target.parentNode),!B.relatedTarget&&B.fromElement&&(B.relatedTarget=B.fromElement===B.target?B.toElement:B.fromElement);if(B.pageX==null&&B.clientX!=null){var C=f.documentElement,D=f.body;B.pageX=B.clientX+(C&&C.scrollLeft||D&&D.scrollLeft||0)-(C&&C.clientLeft||D&&D.clientLeft||0),B.pageY=B.clientY+(C&&C.scrollTop||D&&D.scrollTop||0)-(C&&C.clientTop||D&&D.clientTop||0)}B.which==null&&(B.charCode!=null||B.keyCode!=null)&&(B.which=B.charCode!=null?B.charCode:B.keyCode),!B.metaKey&&B.ctrlKey&&(B.metaKey=B.ctrlKey),!B.which&&B.button!==e&&(B.which=B.button&1?1:B.button&2?3:B.button&4?2:0);return B},guid:100000000,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function($){c.event.add(this,K($.origType,$.selector),c.extend({},$,{handler:C,guid:$.handler.guid}))},remove:function($){c.event.remove(this,K($.origType,$.selector),$)}},beforeunload:{setup:function(A,$,_){c.isWindow(this)&&(this.onbeforeunload=_)},teardown:function(_,$){this.onbeforeunload===$&&(this.onbeforeunload=null)}}}},c.removeEvent=f.removeEventListener?function(A,$,_){A.removeEventListener&&A.removeEventListener($,_,!1)}:function(A,$,_){A.detachEvent&&A.detachEvent("on"+$,_)},c.Event=function($){if(!this.preventDefault)return new c.Event($);$&&$.type?(this.originalEvent=$,this.type=$.type,this.isDefaultPrevented=$.defaultPrevented||$.returnValue===!1||$.getPreventDefault&&$.getPreventDefault()?y:z):this.type=$,this.timeStamp=c.now(),this[c.expando]=!0},c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var $=this.originalEvent;$&&($.preventDefault?$.preventDefault():$.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=y;var $=this.originalEvent;$&&($.stopPropagation&&$.stopPropagation(),$.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y,this.stopPropagation()},isDefaultPrevented:z,isPropagationStopped:z,isImmediatePropagationStopped:z};var x=function(A){var _=A.relatedTarget;try{if(_&&_!==f&&!_.parentNode)return;while(_&&_!==this)_=_.parentNode;_!==this&&(A.type=A.data,c.event.handle.apply(this,arguments))}catch($){}},D=function($){$.type=$.data,c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(_,$){c.event.special[_]={setup:function(A){c.event.add(this,$,A&&A.selector?D:x,_)},teardown:function(_){c.event.remove(this,$,_&&_.selector?D:x)}}}),c.support.submitBubbles||(c.event.special.submit={setup:function(_,$){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")c.event.add(this,"click.specialSubmit",function(B){var $=B.target,_=$.type;(_==="submit"||_==="image")&&c($).closest("form").length&&A("submit",this,arguments)}),c.event.add(this,"keypress.specialSubmit",function(B){var $=B.target,_=$.type;(_==="text"||_==="password")&&c($).closest("form").length&&B.keyCode===13&&A("submit",this,arguments)});else return!1},teardown:function($){c.event.remove(this,".specialSubmit")}});if(!c.support.changeBubbles){var E,F=function(A){var $=A.type,_=A.value;$==="radio"||$==="checkbox"?_=A.checked:$==="select-multiple"?_=A.selectedIndex>-1?c.map(A.options,function($){return $.selected}).join("-"):"":A.nodeName.toLowerCase()==="select"&&(_=A.selectedIndex);return _},_=function _(C){var B=C.target,A,$;if(t.test(B.nodeName)&&!B.readOnly){A=c._data(B,"_change_data"),$=F(B),(C.type!=="focusout"||B.type!=="radio")&&c._data(B,"_change_data",$);if(A===e||$===A)return;if(A!=null||$)C.type="change",C.liveFired=e,c.event.trigger(C,arguments[1],B)}};c.event.special.change={filters:{focusout:_,beforedeactivate:_,click:function(B){var $=B.target,A=$.type;(A==="radio"||A==="checkbox"||$.nodeName.toLowerCase()==="select")&&_.call(this,B)},keydown:function(B){var $=B.target,A=$.type;(B.keyCode===13&&$.nodeName.toLowerCase()!=="textarea"||B.keyCode===32&&(A==="checkbox"||A==="radio")||A==="select-multiple")&&_.call(this,B)},beforeactivate:function(_){var $=_.target;c._data($,"_change_data",F($))}},setup:function(A,$){if(this.type==="file")return!1;for(var _ in E)c.event.add(this,_+".specialChange",E[_]);return t.test(this.nodeName)},teardown:function($){c.event.remove(this,".specialChange");return t.test(this.nodeName)}},E=c.event.special.change.filters,E.focus=E.beforeactivate}f.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(B,A){function $(_){var $=c.event.fix(_);$.type=A,$.originalEvent={},c.event.trigger($,null,$.target),$.isDefaultPrevented()&&_.preventDefault()}var _=0;c.event.special[A]={setup:function(){_++===0&&f.addEventListener(B,$,!0)},teardown:function(){--_===0&&f.removeEventListener(B,$,!0)}}}),c.each(["bind","one"],function(_,$){c.fn[$]=function(C,B,_){if(typeof C==="object"){for(var A in C)this[$](A,B,C[A],_);return this}if(c.isFunction(B)||B===!1)_=B,B=e;var E=$==="one"?c.proxy(_,function($){c(this).unbind($,E);return _.apply(this,arguments)}):_;if(C==="unload"&&$!=="one")this.one(C,B,_);else for(var F=0,D=this.length;F<D;F++)c.event.add(this[F],C,E,B);return this}}),c.fn.extend({unbind:function(C,A){if(typeof C!=="object"||C.preventDefault){for(var _=0,$=this.length;_<$;_++)c.event.remove(this[_],C,A)}else for(var B in C)this.unbind(B,C[B]);return this},delegate:function(B,_,A,$){return this.live(_,A,$,B)},undelegate:function(A,$,_){return arguments.length===0?this.unbind("live"):this.die($,null,_,A)},trigger:function(_,$){return this.each(function(){c.event.trigger(_,$,this)})},triggerHandler:function(A,$){if(this[0]){var _=c.Event(A);_.preventDefault(),_.stopPropagation(),c.event.trigger(_,$,this[0]);return _.result}},toggle:function(A){var $=arguments,_=1;while(_<$.length)c.proxy(A,$[_++]);return this.click(c.proxy(A,function(C){var B=(c._data(this,"lastToggle"+A.guid)||0)%_;c._data(this,"lastToggle"+A.guid,B+1),C.preventDefault();return $[B].apply(this,arguments)||!1}))},hover:function(_,$){return this.mouseenter(_).mouseleave($||_)}});var B={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(_,$){c.fn[$]=function(D,C,_,A){var L,M=0,I,J,G,H=A||this.selector,E=A?this:c(this.context);if(typeof D==="object"&&!D.preventDefault){for(var F in D)E[$](F,C,D[F],H);return this}c.isFunction(C)&&(_=C,C=e),D=(D||"").split(" ");while((L=D[M++])!=null){I=u.exec(L),J="",I&&(J=I[0],L=L.replace(u,""));if(L==="hover"){D.push("mouseenter"+J,"mouseleave"+J);continue}G=L,L==="focus"||L==="blur"?(D.push(B[L]+J),L=L+J):L=(B[L]||L)+J;if($==="live"){for(var O=0,N=E.length;O<N;O++)c.event.add(E[O],"live."+K(L,H),{data:C,selector:H,handler:_,origType:L,origHandler:_,preType:G})}else E.unbind("live."+K(L,H),_)}return this}}),c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(_,$){c.fn[$]=function(A,_){_==null&&(_=A,A=null);return arguments.length>0?this.bind($,A,_):this.trigger($)},c.attrFn&&(c.attrFn[$]=!0)}),function(){function L(E,C,D,A,B,$){for(var _=0,G=A.length;_<G;_++){var I=A[_];if(I){var F=!1;I=I[E];while(I){if(I.sizcache===D){F=A[I.sizset];break}if(I.nodeType===1){$||(I.sizcache=D,I.sizset=_);if(typeof C!=="string"){if(I===C){F=!0;break}}else if(H.filter(C,[I]).length>0){F=I;break}}I=I[E]}A[_]=F}}}function M(E,C,D,A,B,$){for(var _=0,G=A.length;_<G;_++){var H=A[_];if(H){var F=!1;H=H[E];while(H){if(H.sizcache===D){F=A[H.sizset];break}H.nodeType===1&&!$&&(H.sizcache=D,H.sizset=_);if(H.nodeName.toLowerCase()===C){F=H;break}H=H[E]}A[_]=F}}}var B=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,A=0,$=Object.prototype.toString,_=!1,I=!0,J=/\\/g,G=/\W/;[0,0].sort(function(){I=!1;return 0});var H=function(D,A,C,_){C=C||[],A=A||f;var L=A;if(A.nodeType!==1&&A.nodeType!==9)return[];if(!D||typeof D!=="string")return C;var M,J,G,I,T,S,R,P,O=!0,N=H.isXML(A),V=[],U=D;do{B.exec(""),M=B.exec(U);if(M){U=M[3],V.push(M[1]);if(M[2]){I=M[3];break}}}while(M);if(V.length>1&&F.exec(D)){if(V.length===2&&E.relative[V[0]])J=K(V[0]+V[1],A);else{J=E.relative[V[0]]?[A]:H(V.shift(),A);while(V.length)D=V.shift(),E.relative[D]&&(D+=V.shift()),J=K(D,J)}}else{!_&&V.length>1&&A.nodeType===9&&!N&&E.match.ID.test(V[0])&&!E.match.ID.test(V[V.length-1])&&(T=H.find(V.shift(),A,N),A=T.expr?H.filter(T.expr,T.set)[0]:T.set[0]);if(A){T=_?{expr:V.pop(),set:Q(_)}:H.find(V.pop(),V.length===1&&(V[0]==="~"||V[0]==="+")&&A.parentNode?A.parentNode:A,N),J=T.expr?H.filter(T.expr,T.set):T.set,V.length>0?G=Q(J):O=!1;while(V.length)S=V.pop(),R=S,E.relative[S]?R=V.pop():S="",R==null&&(R=A),E.relative[S](G,R,N)}else G=V=[]}G||(G=J),G||H.error(S||D);if($.call(G)==="[object Array]"){if(O){if(A&&A.nodeType===1){for(P=0;G[P]!=null;P++)G[P]&&(G[P]===!0||G[P].nodeType===1&&H.contains(A,G[P]))&&C.push(J[P])}else for(P=0;G[P]!=null;P++)G[P]&&G[P].nodeType===1&&C.push(J[P])}else C.push.apply(C,G)}else Q(G,C);I&&(H(I,L,C,_),H.uniqueSort(C));return C};H.uniqueSort=function(A){if(O){_=I,A.sort(O);if(_)for(var $=1;$<A.length;$++)A[$]===A[$-1]&&A.splice($--,1)}return A},H.matches=function(_,$){return H(_,null,null,$)},H.matchesSelector=function(_,$){return H($,null,null,[_]).length>0},H.find=function(F,C,D){var A;if(!F)return[];for(var B=0,$=E.order.length;B<$;B++){var _,H=E.order[B];if(_=E.leftMatch[H].exec(F)){var G=_[1];_.splice(1,1);if(G.substr(G.length-1)!=="\\"){_[1]=(_[1]||"").replace(J,""),A=E.find[H](_,C,D);if(A!=null){F=F.replace(E.match[H],"");break}}}}A||(A=typeof C.getElementsByTagName!=="undefined"?C.getElementsByTagName("*"):[]);return{set:A,expr:F}},H.filter=function(D,C,A,B){var $,_,K=D,L=[],J=C,I=C&&C[0]&&H.isXML(C[0]);while(D&&C.length){for(var F in E.filter)if(($=E.leftMatch[F].exec(D))!=null&&$[2]){var G,Q,P=E.filter[F],O=$[1];_=!1,$.splice(1,1);if(O.substr(O.length-1)==="\\")continue;J===L&&(L=[]);if(E.preFilter[F]){$=E.preFilter[F]($,J,A,L,B,I);if($){if($===!0)continue}else _=G=!0}if($)for(var N=0;(Q=J[N])!=null;N++)if(Q){G=P(Q,$,N,J);var M=B^!!G;A&&G!=null?M?_=!0:J[N]=!1:M&&(L.push(Q),_=!0)}if(G!==e){A||(J=L),D=D.replace(E.match[F],"");if(!_)return[];break}}if(D===K)if(_==null)H.error(D);else break;K=D}return J},H.error=function($){throw"Syntax error, unrecognized expression: "+$};var E=H.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function($){return $.getAttribute("href")},type:function($){return $.getAttribute("type")}},relative:{"+":function(E,C){var D=typeof C==="string",A=D&&!G.test(C),B=D&&!A;A&&(C=C.toLowerCase());for(var $=0,_=E.length,F;$<_;$++)if(F=E[$]){while((F=F.previousSibling)&&F.nodeType!==1);E[$]=B||F&&F.nodeName.toLowerCase()===C?F||!1:F===C}B&&H.filter(C,E,!0)},">":function(E,C){var D,A=typeof C==="string",B=0,$=E.length;if(A&&!G.test(C)){C=C.toLowerCase();for(;B<$;B++){D=E[B];if(D){var _=D.parentNode;E[B]=_.nodeName.toLowerCase()===C?_:!1}}}else{for(;B<$;B++)D=E[B],D&&(E[B]=A?D.parentNode:D.parentNode===C);A&&H.filter(C,E,!0)}},"":function(E,C,D){var B,$=A++,_=L;typeof C==="string"&&!G.test(C)&&(C=C.toLowerCase(),B=C,_=M),_("parentNode",C,$,E,B,D)},"~":function(E,C,D){var B,$=A++,_=L;typeof C==="string"&&!G.test(C)&&(C=C.toLowerCase(),B=C,_=M),_("previousSibling",C,$,E,B,D)}},find:{ID:function(B,_,A){if(typeof _.getElementById!=="undefined"&&!A){var $=_.getElementById(B[1]);return $&&$.parentNode?[$]:[]}},NAME:function(D,B){if(typeof B.getElementsByName!=="undefined"){var C=[],_=B.getElementsByName(D[1]);for(var A=0,$=_.length;A<$;A++)_[A].getAttribute("name")===D[1]&&C.push(_[A]);return C.length===0?null:C}},TAG:function(_,$){if(typeof $.getElementsByTagName!=="undefined")return $.getElementsByTagName(_[1])}},preFilter:{CLASS:function(E,C,D,A,B,$){E=" "+E[1].replace(J,"")+" ";if($)return E;for(var _=0,F;(F=C[_])!=null;_++)F&&(B^(F.className&&(" "+F.className+" ").replace(/[\t\n\r]/g," ").indexOf(E)>=0)?D||A.push(F):D&&(C[_]=!1));return!1},ID:function($){return $[1].replace(J,"")},TAG:function(_,$){return _[1].replace(J,"").toLowerCase()},CHILD:function(_){if(_[1]==="nth"){_[2]||H.error(_[0]),_[2]=_[2].replace(/^\+|\s*/g,"");var $=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(_[2]==="even"&&"2n"||_[2]==="odd"&&"2n+1"||!/\D/.test(_[2])&&"0n+"+_[2]||_[2]);_[2]=$[1]+($[2]||1)-0,_[3]=$[3]-0}else _[2]&&H.error(_[0]);_[0]=A++;return _},ATTR:function(F,C,D,A,B,$){var _=F[1]=F[1].replace(J,"");!$&&E.attrMap[_]&&(F[1]=E.attrMap[_]),F[4]=(F[4]||F[5]||"").replace(J,""),F[2]==="~="&&(F[4]=" "+F[4]+" ");return F},PSEUDO:function(D,F,A,C,$){if(D[1]==="not"){if((B.exec(D[3])||"").length>1||/^\w/.test(D[3]))D[3]=H(D[3],null,null,F);else{var _=H.filter(D[3],F,A,!0^$);A||C.push.apply(C,_);return!1}}else if(E.match.POS.test(D[0])||E.match.CHILD.test(D[0]))return!0;return D},POS:function($){$.unshift(!0);return $}},filters:{enabled:function($){return $.disabled===!1&&$.type!=="hidden"},disabled:function($){return $.disabled===!0},checked:function($){return $.checked===!0},selected:function($){$.parentNode&&$.parentNode.selectedIndex;return $.selected===!0},parent:function($){return!!$.firstChild},empty:function($){return!$.firstChild},has:function(A,$,_){return!!H(_[3],A).length},header:function($){return/h\d/i.test($.nodeName)},text:function(A){var $=A.getAttribute("type"),_=A.type;return"text"===_&&($===_||$===null)},radio:function($){return"radio"===$.type},checkbox:function($){return"checkbox"===$.type},file:function($){return"file"===$.type},password:function($){return"password"===$.type},submit:function($){return"submit"===$.type},image:function($){return"image"===$.type},reset:function($){return"reset"===$.type},button:function($){return"button"===$.type||$.nodeName.toLowerCase()==="button"},input:function($){return/input|select|textarea|button/i.test($.nodeName)}},setFilters:{first:function(_,$){return $===0},last:function(B,_,A,$){return _===$.length-1},even:function(_,$){return $%2===0},odd:function(_,$){return $%2===1},lt:function(A,$,_){return $<_[3]-0},gt:function(A,$,_){return $>_[3]-0},nth:function(A,$,_){return _[3]-0===$},eq:function(A,$,_){return _[3]-0===$}},filter:{PSEUDO:function(F,C,D,A){var B=C[1],$=E.filters[B];if($)return $(F,D,C,A);if(B==="contains")return(F.textContent||F.innerText||H.getText([F])||"").indexOf(C[3])>=0;if(B==="not"){var _=C[3];for(var G=0,I=_.length;G<I;G++)if(_[G]===F)return!1;return!0}H.error(B)},CHILD:function(E,C){var D=C[1],A=E;switch(D){case"only":case"first":while(A=A.previousSibling)if(A.nodeType===1)return!1;if(D==="first")return!0;A=E;case"last":while(A=A.nextSibling)if(A.nodeType===1)return!1;return!0;case"nth":var B=C[2],$=C[3];if(B===1&&$===0)return!0;var _=C[0],G=E.parentNode;if(G&&(G.sizcache!==_||!E.nodeIndex)){var H=0;for(A=G.firstChild;A;A=A.nextSibling)A.nodeType===1&&(A.nodeIndex=++H);G.sizcache=_}var F=E.nodeIndex-$;return B===0?F===0:F%B===0&&F/B>=0}},ID:function(_,$){return _.nodeType===1&&_.getAttribute("id")===$},TAG:function(_,$){return $==="*"&&_.nodeType===1||_.nodeName.toLowerCase()===$},CLASS:function(_,$){return(" "+(_.className||_.getAttribute("class"))+" ").indexOf($)>-1},ATTR:function(F,C){var D=C[1],A=E.attrHandle[D]?E.attrHandle[D](F):F[D]!=null?F[D]:F.getAttribute(D),B=A+"",$=C[2],_=C[4];return A==null?$==="!=":$==="="?B===_:$==="*="?B.indexOf(_)>=0:$==="~="?(" "+B+" ").indexOf(_)>=0:_?$==="!="?B!==_:$==="^="?B.indexOf(_)===0:$==="$="?B.substr(B.length-_.length)===_:$==="|="?B===_||B.substr(0,_.length+1)===_+"-":!1:B&&A!==!1},POS:function(D,B,C,_){var A=B[2],$=E.setFilters[A];if($)return $(D,C,B,_)}}},F=E.match.POS,C=function(_,$){return"\\"+($-0+1)};for(var D in E.match)E.match[D]=new RegExp(E.match[D].source+/(?![^\[]*\])(?![^\(]*\))/.source),E.leftMatch[D]=new RegExp(/(^(?:.|\r|\n)*?)/.source+E.match[D].source.replace(/\\(\d+)/g,C));var Q=function(_,$){_=Array.prototype.slice.call(_,0);if($){$.push.apply($,_);return $}return _};try{Array.prototype.slice.call(f.documentElement.childNodes,0)[0].nodeType}catch(P){Q=function(D,B){var C=0,_=B||[];if($.call(D)==="[object Array]")Array.prototype.push.apply(_,D);else if(typeof D.length==="number"){for(var A=D.length;C<A;C++)_.push(D[C])}else for(;D[C];C++)_.push(D[C]);return _}}var O,N;f.documentElement.compareDocumentPosition?O=function(A,$){if(A===$){_=!0;return 0}if(!A.compareDocumentPosition||!$.compareDocumentPosition)return A.compareDocumentPosition?-1:1;return A.compareDocumentPosition($)&4?-1:1}:(O=function(E,C){var D,A,B=[],$=[],H=E.parentNode,I=C.parentNode,F=H;if(E===C){_=!0;return 0}if(H===I)return N(E,C);if(!H)return-1;if(!I)return 1;while(F)B.unshift(F),F=F.parentNode;F=I;while(F)$.unshift(F),F=F.parentNode;D=B.length,A=$.length;for(var G=0;G<D&&G<A;G++)if(B[G]!==$[G])return N(B[G],$[G]);return G===D?N(E,$[G],-1):N(B[G],C,1)},N=function(B,_,A){if(B===_)return A;var $=B.nextSibling;while($){if($===_)return-1;$=$.nextSibling}return 1}),H.getText=function(B){var _="",A;for(var $=0;B[$];$++)A=B[$],A.nodeType===3||A.nodeType===4?_+=A.nodeValue:A.nodeType!==8&&(_+=H.getText(A.childNodes));return _},function(){var A=f.createElement("div"),$="script"+(new Date).getTime(),_=f.documentElement;A.innerHTML="<a name='"+$+"'/>",_.insertBefore(A,_.firstChild),f.getElementById($)&&(E.find.ID=function(B,A,$){if(typeof A.getElementById!=="undefined"&&!$){var _=A.getElementById(B[1]);return _?_.id===B[1]||typeof _.getAttributeNode!=="undefined"&&_.getAttributeNode("id").nodeValue===B[1]?[_]:e:[]}},E.filter.ID=function(A,$){var _=typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id");return A.nodeType===1&&_&&_.nodeValue===$}),_.removeChild(A),_=A=null}(),function(){var $=f.createElement("div");$.appendChild(f.createComment("")),$.getElementsByTagName("*").length>0&&(E.find.TAG=function(C,A){var B=A.getElementsByTagName(C[1]);if(C[1]==="*"){var $=[];for(var _=0;B[_];_++)B[_].nodeType===1&&$.push(B[_]);B=$}return B}),$.innerHTML="<a href='#'></a>",$.firstChild&&typeof $.firstChild.getAttribute!=="undefined"&&$.firstChild.getAttribute("href")!=="#"&&(E.attrHandle.href=function($){return $.getAttribute("href",2)}),$=null}(),f.querySelectorAll&&function(){var B=H,A=f.createElement("div"),$="__sizzle__";A.innerHTML="<p class='TEST'></p>";if(!A.querySelectorAll||A.querySelectorAll(".TEST").length!==0){H=function(D,C,_,A){C=C||f;if(!A&&!H.isXML(C)){var K=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(D);if(K&&(C.nodeType===1||C.nodeType===9)){if(K[1])return Q(C.getElementsByTagName(D),_);if(K[2]&&E.find.CLASS&&C.getElementsByClassName)return Q(C.getElementsByClassName(K[2]),_)}if(C.nodeType===9){if(D==="body"&&C.body)return Q([C.body],_);if(K&&K[3]){var L=C.getElementById(K[3]);if(!L||!L.parentNode)return Q([],_);if(L.id===K[3])return Q([L],_)}try{return Q(C.querySelectorAll(D),_)}catch(J){}}else if(C.nodeType===1&&C.nodeName.toLowerCase()!=="object"){var I=C,F=C.getAttribute("id"),G=F||$,O=C.parentNode,N=/^\s*[+~]/.test(D);F?G=G.replace(/'/g,"\\$&"):C.setAttribute("id",G),N&&O&&(C=C.parentNode);try{if(!N||O)return Q(C.querySelectorAll("[id='"+G+"'] "+D),_)}catch(M){}finally{F||I.removeAttribute("id")}}}return B(D,C,_,A)};for(var _ in B)H[_]=B[_];A=null}}(),function(){var C=f.documentElement,B=C.matchesSelector||C.mozMatchesSelector||C.webkitMatchesSelector||C.msMatchesSelector;if(B){var _=!B.call(f.createElement("div"),"div"),A=!1;try{B.call(f.documentElement,"[test!='']:sizzle")}catch($){A=!0}H.matchesSelector=function(F,D){D=D.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!H.isXML(F)){try{if(A||!E.match.PSEUDO.test(D)&&!/!=/.test(D)){var $=B.call(F,D);if($||!_||F.document&&F.document.nodeType!==11)return $}}catch(C){}}return H(D,null,null,[F]).length>0}}}(),function(){var $=f.createElement("div");$.innerHTML="<div class='test e'></div><div class='test'></div>";if($.getElementsByClassName&&$.getElementsByClassName("e").length!==0){$.lastChild.className="e";if($.getElementsByClassName("e").length===1)return;E.order.splice(1,0,"CLASS"),E.find.CLASS=function(A,$,_){if(typeof $.getElementsByClassName!=="undefined"&&!_)return $.getElementsByClassName(A[1])},$=null}}(),f.documentElement.contains?H.contains=function(_,$){return _!==$&&(_.contains?_.contains($):!0)}:f.documentElement.compareDocumentPosition?H.contains=function(_,$){return!!(_.compareDocumentPosition($)&16)}:H.contains=function(){return!1},H.isXML=function(_){var $=(_?_.ownerDocument||_:0).documentElement;return $?$.nodeName!=="HTML":!1};var K=function(F,C){var D,A=[],B="",$=C.nodeType?[C]:C;while(D=E.match.PSEUDO.exec(F))B+=D[0],F=F.replace(E.match.PSEUDO,"");F=E.relative[F]?F+"*":F;for(var _=0,G=$.length;_<G;_++)H(F,$[_],A);return H.filter(B,A)};c.find=H,c.expr=H.selectors,c.expr[":"]=c.expr.filters,c.unique=H.uniqueSort,c.text=H.getText,c.isXMLDoc=H.isXML,c.contains=H.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,G=/^.[^:#\[\.,]*$/,H=Array.prototype.slice,I=c.expr.match.POS,J={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend({find:function(D){var B=this.pushStack("","find",D),C=0;for(var A=0,$=this.length;A<$;A++){C=B.length,c.find(D,this[A],B);if(A>0)for(var _=C;_<B.length;_++)for(var E=0;E<C;E++)if(B[E]===B[_]){B.splice(_--,1);break}}return B},has:function(_){var $=c(_);return this.filter(function(){for(var A=0,_=$.length;A<_;A++)if(c.contains(this,$[A]))return!0})},not:function($){return this.pushStack(S(this,$,!1),"not",$)},filter:function($){return this.pushStack(S(this,$,!0),"filter",$)},is:function($){return!!$&&c.filter($,this).length>0},closest:function(D,B){var C=[],A,$,_=this[0];if(c.isArray(D)){var H,J,F={},G=1;if(_&&D.length){for(A=0,$=D.length;A<$;A++)J=D[A],F[J]||(F[J]=c.expr.match.POS.test(J)?c(J,B||this.context):J);while(_&&_.ownerDocument&&_!==B){for(J in F)H=F[J],(H.jquery?H.index(_)>-1:c(_).is(H))&&C.push({selector:J,elem:_,level:G});_=_.parentNode,G++}}return C}var E=I.test(D)?c(D,B||this.context):null;for(A=0,$=this.length;A<$;A++){_=this[A];while(_){if(E?E.index(_)>-1:c.find.matchesSelector(_,D)){C.push(_);break}_=_.parentNode;if(!_||!_.ownerDocument||_===B)break}}C=C.length>1?c.unique(C):C;return this.pushStack(C,"closest",D)},index:function($){if(!$||typeof $==="string")return c.inArray(this[0],$?c($):this.parent().children());return c.inArray($.jquery?$[0]:$,this)},add:function(B,_){var A=typeof B==="string"?c(B,_):c.makeArray(B),$=c.merge(this.get(),A);return this.pushStack(T(A[0])||T($[0])?$:c.unique($))},andSelf:function(){return this.add(this.prevObject)}}),c.each({parent:function(_){var $=_.parentNode;return $&&$.nodeType!==11?$:null},parents:function($){return c.dir($,"parentNode")},parentsUntil:function(A,$,_){return c.dir(A,"parentNode",_)},next:function($){return c.nth($,2,"nextSibling")},prev:function($){return c.nth($,2,"previousSibling")},nextAll:function($){return c.dir($,"nextSibling")},prevAll:function($){return c.dir($,"previousSibling")},nextUntil:function(A,$,_){return c.dir(A,"nextSibling",_)},prevUntil:function(A,$,_){return c.dir(A,"previousSibling",_)},siblings:function($){return c.sibling($.parentNode.firstChild,$)},children:function($){return c.sibling($.firstChild)},contents:function($){return c.nodeName($,"iframe")?$.contentDocument||$.contentWindow.document:c.makeArray($.childNodes)}},function(_,$){c.fn[_]=function(D,C){var A=c.map(this,$,D),B=H.call(arguments);L.test(_)||(C=D),C&&typeof C==="string"&&(A=c.filter(C,A)),A=this.length>1&&!J[_]?c.unique(A):A,(this.length>1||N.test(C))&&M.test(_)&&(A=A.reverse());return this.pushStack(A,_,B.join(","))}}),c.extend({filter:function(A,$,_){_&&(A=":not("+A+")");return $.length===1?c.find.matchesSelector($[0],A)?[$[0]]:[]:c.find.matches(A,$)},dir:function(C,B,A){var $=[],_=C[B];while(_&&_.nodeType!==9&&(A===e||_.nodeType!==1||!c(_).is(A)))_.nodeType===1&&$.push(_),_=_[B];return $},nth:function(C,A,B,$){A=A||1;var _=0;for(;C;C=C[B])if(C.nodeType===1&&++_===A)break;return C},sibling:function(A,$){var _=[];for(;A;A=A.nextSibling)A.nodeType===1&&A!==$&&_.push(A);return _}});var V=/ jQuery\d+="(?:\d+|null)"/g,U=/^\s+/,P=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,O=/<([\w:]+)/,R=/<tbody/i,Q=/<|&#?\w+;/,Y=/<(?:script|object|embed|option|style)/i,X=/checked\s*(?:[^=]|=\s*.checked.)/i,Z={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td,c.support.htmlSerialize||(Z._default=[1,"div<div>","</div>"]),c.fn.extend({text:function($){if(c.isFunction($))return this.each(function(_){var A=c(this);A.text($.call(this,_,A.text()))});if(typeof $!=="object"&&$!==e)return this.empty().append((this[0]&&this[0].ownerDocument||f).createTextNode($));return c.text(this)},wrapAll:function(_){if(c.isFunction(_))return this.each(function($){c(this).wrapAll(_.call(this,$))});if(this[0]){var $=c(_,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&$.insertBefore(this[0]),$.map(function(){var $=this;while($.firstChild&&$.firstChild.nodeType===1)$=$.firstChild;return $}).append(this)}return this},wrapInner:function($){if(c.isFunction($))return this.each(function(_){c(this).wrapInner($.call(this,_))});return this.each(function(){var _=c(this),A=_.contents();A.length?A.wrapAll($):_.append($)})},wrap:function($){return this.each(function(){c(this).wrapAll($)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function($){this.nodeType===1&&this.appendChild($)})},prepend:function(){return this.domManip(arguments,!0,function($){this.nodeType===1&&this.insertBefore($,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function($){this.parentNode.insertBefore($,this)});if(arguments.length){var $=c(arguments[0]);$.push.apply($,this.toArray());return this.pushStack($,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function($){this.parentNode.insertBefore($,this.nextSibling)});if(arguments.length){var $=this.pushStack(this,"after",arguments);$.push.apply($,c(arguments[0]).toArray());return $}},remove:function(B,_){for(var A=0,$;($=this[A])!=null;A++)if(!B||c.filter(B,[$]).length)!_&&$.nodeType===1&&(c.cleanData($.getElementsByTagName("*")),c.cleanData([$])),$.parentNode&&$.parentNode.removeChild($);return this},empty:function(){for(var _=0,$;($=this[_])!=null;_++){$.nodeType===1&&c.cleanData($.getElementsByTagName("*"));while($.firstChild)$.removeChild($.firstChild)}return this},clone:function(_,$){_=_==null?!1:_,$=$==null?_:$;return this.map(function(){return c.clone(this,_,$)})},html:function(B){if(B===e)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(V,""):null;if(typeof B!=="string"||Y.test(B)||!c.support.leadingWhitespace&&U.test(B)||Z[(O.exec(B)||["",""])[1].toLowerCase()])c.isFunction(B)?this.each(function($){var _=c(this);_.html(B.call(this,$,_.html()))}):this.empty().append(B);else{B=B.replace(P,"<$1></$2>");try{for(var A=0,_=this.length;A<_;A++)this[A].nodeType===1&&(c.cleanData(this[A].getElementsByTagName("*")),this[A].innerHTML=B)}catch($){this.empty().append(B)}}return this},replaceWith:function($){if(this[0]&&this[0].parentNode){if(c.isFunction($))return this.each(function(A){var B=c(this),_=B.html();B.replaceWith($.call(this,A,_))});typeof $!=="string"&&($=c($).detach());return this.each(function(){var _=this.nextSibling,A=this.parentNode;c(this).remove(),_?c(_).before($):c(A).append($)})}return this.length?this.pushStack(c(c.isFunction($)?$():$),"replaceWith",$):this},detach:function($){return this.remove($,!0)},domManip:function(D,C,B){var _,A,J,K,H=D[0],I=[];if(!c.support.checkClone&&arguments.length===3&&typeof H==="string"&&X.test(H))return this.each(function(){c(this).domManip(D,C,B,!0)});if(c.isFunction(H))return this.each(function($){var _=c(this);D[0]=H.call(this,$,C?_.html():e),_.domManip(D,C,B)});if(this[0]){K=H&&H.parentNode,c.support.parentNode&&K&&K.nodeType===11&&K.childNodes.length===this.length?_={fragment:K}:_=c.buildFragment(D,this,I),J=_.fragment,J.childNodes.length===1?A=J=J.firstChild:A=J.firstChild;if(A){C=C&&c.nodeName(A,"tr");for(var F=0,G=this.length,E=G-1;F<G;F++)B.call(C?$(this[F],A):this[F],_.cacheable||G>1&&F<E?c.clone(J,!0,!0):J)}I.length&&c.each(I,W0)}return this}}),c.buildFragment=function(C,B,A){var $,_,D,E=B&&B[0]?B[0].ownerDocument||B[0]:f;C.length===1&&typeof C[0]==="string"&&C[0].length<512&&E===f&&C[0].charAt(0)==="<"&&!Y.test(C[0])&&(c.support.checkClone||!X.test(C[0]))&&(_=!0,D=c.fragments[C[0]],D&&(D!==1&&($=D))),$||($=E.createDocumentFragment(),c.clean(C,E,$,A)),_&&(c.fragments[C[0]]=D?$:1);return{fragment:$,cacheable:_}},c.fragments={},c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(_,$){c.fn[_]=function(D){var C=[],A=c(D),B=this.length===1&&this[0].parentNode;if(B&&B.nodeType===11&&B.childNodes.length===1&&A.length===1){A[$](this[0]);return this}for(var F=0,G=A.length;F<G;F++){var E=(F>0?this.clone(!0):this).get();c(A[F])[$](E),C=C.concat(E)}return this.pushStack(C,_,A.selector)}}),c.extend({clone:function(D,B,C){var A=D.cloneNode(!0),$,_,E;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(D.nodeType===1||D.nodeType===11)&&!c.isXMLDoc(D)){j0(D,A),$=V0(D),_=V0(A);for(E=0;$[E];++E)j0($[E],_[E])}if(B){W(D,A);if(C){$=V0(D),_=V0(A);for(E=0;$[E];++E)W($[E],_[E])}}return A},clean:function(C,B,A,$){B=B||f,typeof B.createElement==="undefined"&&(B=B.ownerDocument||B[0]&&B[0].ownerDocument||f);var _=[];for(var J=0,K;(K=C[J])!=null;J++){typeof K==="number"&&(K+="");if(!K)continue;if(typeof K!=="string"||Q.test(K)){if(typeof K==="string"){K=K.replace(P,"<$1></$2>");var H=(O.exec(K)||["",""])[1].toLowerCase(),I=Z[H]||Z._default,F=I[0],G=B.createElement("div");G.innerHTML=I[1]+K+I[2];while(F--)G=G.lastChild;if(!c.support.tbody){var D=R.test(K),E=H==="table"&&!D?G.firstChild&&G.firstChild.childNodes:I[1]==="<table>"&&!D?G.childNodes:[];for(var L=E.length-1;L>=0;--L)c.nodeName(E[L],"tbody")&&!E[L].childNodes.length&&E[L].parentNode.removeChild(E[L])}!c.support.leadingWhitespace&&U.test(K)&&G.insertBefore(B.createTextNode(U.exec(K)[0]),G.firstChild),K=G.childNodes}}else K=B.createTextNode(K);K.nodeType?_.push(K):_=c.merge(_,K)}if(A)for(J=0;_[J];J++)!$||!c.nodeName(_[J],"script")||_[J].type&&_[J].type.toLowerCase()!=="text/javascript"?(_[J].nodeType===1&&_.splice.apply(_,[J+1,0].concat(c.makeArray(_[J].getElementsByTagName("script")))),A.appendChild(_[J])):$.push(_[J].parentNode?_[J].parentNode.removeChild(_[J]):_[J]);return _},cleanData:function(D){var B,C,A=c.cache,$=c.expando,_=c.event.special,G=c.support.deleteExpando;for(var H=0,E;(E=D[H])!=null;H++){if(E.nodeName&&c.noData[E.nodeName.toLowerCase()])continue;C=E[c.expando];if(C){B=A[C]&&A[C][$];if(B&&B.events){for(var F in B.events)_[F]?c.event.remove(E,F):c.removeEvent(E,F,B.handle);B.handle&&(B.handle.elem=null)}G?delete E[c.expando]:E.removeAttribute&&E.removeAttribute(c.expando),delete A[C]}}}});var X0=/alpha\([^)]*\)/i,Y0=/opacity=([^)]*)/,R0=/-([a-z])/ig,S0=/([A-Z]|^ms)/g,T0=/^-?\d+(?:px)?$/i,U0=/^-?\d/,N0={position:"absolute",visibility:"hidden",display:"block"},O0=["Left","Right"],P0=["Top","Bottom"],Q0,J0,K0,L0=function(_,$){return $.toUpperCase()};c.fn.css=function(_,$){if(arguments.length===2&&$===e)return this;return c.access(this,_,$,!0,function(A,_,$){return $!==e?c.style(A,_,$):c.css(A,_)})},c.extend({cssHooks:{opacity:{get:function(A,$){if($){var _=Q0(A,"opacity","opacity");return _===""?"1":_}return A.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(C,B,A,$){if(C&&C.nodeType!==3&&C.nodeType!==8&&C.style){var _,F=c.camelCase(B),G=C.style,D=c.cssHooks[F];B=c.cssProps[F]||F;if(A===e){if(D&&"get"in D&&(_=D.get(C,!1,$))!==e)return _;return G[B]}if(typeof A==="number"&&isNaN(A)||A==null)return;typeof A==="number"&&!c.cssNumber[F]&&(A+="px");if(!D||!("set"in D)||(A=D.set(C,A))!==e){try{G[B]=A}catch(E){}}}},css:function(C,B,A){var $,_=c.camelCase(B),D=c.cssHooks[_];B=c.cssProps[_]||_;if(D&&"get"in D&&($=D.get(C,!0,A))!==e)return $;if(Q0)return Q0(C,B,_)},swap:function(C,A,B){var $={};for(var _ in A)$[_]=C.style[_],C.style[_]=A[_];B.call(C);for(_ in A)C.style[_]=$[_]},camelCase:function($){return $.replace(R0,L0)}}),c.curCSS=c.css,c.each(["height","width"],function(_,$){c.cssHooks[$]={get:function(C,B,A){var _;if(B){C.offsetWidth!==0?_=M0(C,$,A):c.swap(C,N0,function(){_=M0(C,$,A)});if(_<=0){_=Q0(C,$,$),_==="0px"&&K0&&(_=K0(C,$,$));if(_!=null)return _===""||_==="auto"?"0px":_}if(_<0||_==null){_=C.style[$];return _===""||_==="auto"?"0px":_}return typeof _==="string"?_:_+"px"}},set:function(_,$){if(!T0.test($))return $;$=parseFloat($);if($>=0)return $+"px"}}}),c.support.opacity||(c.cssHooks.opacity={get:function(_,$){return Y0.test(($&&_.currentStyle?_.currentStyle.filter:_.style.filter)||"")?parseFloat(RegExp.$1)/100+"":$?"1":""},set:function(C,A){var B=C.style;B.zoom=1;var _=c.isNaN(A)?"":"alpha(opacity="+A*100+")",$=B.filter||"";B.filter=X0.test($)?$.replace(X0,_):B.filter+" "+_}}),c(function(){c.support.reliableMarginRight||(c.cssHooks.marginRight={get:function(A,$){var _;c.swap(A,{display:"inline-block"},function(){$?_=Q0(A,"margin-right","marginRight"):_=A.style.marginRight});return _}})}),f.defaultView&&f.defaultView.getComputedStyle&&(J0=function(C,B,A){var $,_,D;A=A.replace(S0,"-$1").toLowerCase();if(!(_=C.ownerDocument.defaultView))return e;if(D=_.getComputedStyle(C,null))$=D.getPropertyValue(A),$===""&&!c.contains(C.ownerDocument.documentElement,C)&&($=c.style(C,A));return $}),f.documentElement.currentStyle&&(K0=function(D,B){var C,_=D.currentStyle&&D.currentStyle[B],A=D.runtimeStyle&&D.runtimeStyle[B],$=D.style;!T0.test(_)&&U0.test(_)&&(C=$.left,A&&(D.runtimeStyle.left=D.currentStyle.left),$.left=B==="fontSize"?"1em":_||0,_=$.pixelLeft+"px",$.left=C,A&&(D.runtimeStyle.left=A));return _===""?"auto":_}),Q0=J0||K0,c.expr&&c.expr.filters&&(c.expr.filters.hidden=function(A){var $=A.offsetWidth,_=A.offsetHeight;return $===0&&_===0||!c.support.reliableHiddenOffsets&&(A.style.display||c.css(A,"display"))==="none"},c.expr.filters.visible=function($){return!c.expr.filters.hidden($)});var G0=/%20/g,F0=/\[\]$/,I0=/\r?\n/g,H0=/#.*$/,C0=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,B0=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,E0=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,D0=/^(?:GET|HEAD)$/,A0=/^\/\//,g0=/\?/,B1=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,C1=/^(?:select|textarea)/i,_1=/\s+/,A1=/([?&])_=[^&]*/,F1=/(^|\-)([a-z])/g,G1=function(A,$,_){return $+_.toUpperCase()},D1=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,E1=c.fn.load,v0={},w0={},t0,u0;try{t0=f.location.href}catch(z0){t0=f.createElement("a"),t0.href="",t0=t0.href}u0=D1.exec(t0.toLowerCase())||[],c.fn.extend({load:function(C,B,A){if(typeof C!=="string"&&E1)return E1.apply(this,arguments);if(!this.length)return this;var $=C.indexOf(" ");if($>=0){var _=C.slice($,C.length);C=C.slice(0,$)}var D="GET";B&&(c.isFunction(B)?(A=B,B=e):typeof B==="object"&&(B=c.param(B,c.ajaxSettings.traditional),D="POST"));var E=this;c.ajax({url:C,type:D,dataType:"html",data:B,complete:function(C,$,B){B=C.responseText,C.isResolved()&&(C.done(function($){B=$}),E.html(_?c("<div>").append(B.replace(B1,"")).find(_):B)),A&&E.each(A,[B,$,C])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||C1.test(this.nodeName)||B0.test(this.type))}).map(function(A,$){var _=c(this).val();return _==null?null:c.isArray(_)?c.map(_,function(A,_){return{name:$.name,value:A.replace(I0,"\r\n")}}):{name:$.name,value:_.replace(I0,"\r\n")}}).get()}}),c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(_,$){c.fn[$]=function(_){return this.bind($,_)}}),c.each(["get","post"],function(_,$){c[$]=function(C,B,_,A){c.isFunction(B)&&(A=A||_,_=B,B=e);return c.ajax({type:$,url:C,data:B,success:_,dataType:A})}}),c.extend({getScript:function(_,$){return c.get(_,e,$,"script")},getJSON:function(A,$,_){return c.get(A,$,_,"json")},ajaxSetup:function(A,$){$?c.extend(!0,A,c.ajaxSettings,$):($=A,A=c.extend(!0,c.ajaxSettings,$));for(var _ in{context:1,url:1})_ in $?A[_]=$[_]:_ in c.ajaxSettings&&(A[_]=c.ajaxSettings[_]);return A},ajaxSettings:{url:t0,isLocal:E0.test(u0[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":g.String,"text html":!0,"text json":c.parseJSON,"text xml":c.parseXML}},ajaxPrefilter:$1(v0),ajaxTransport:$1(w0),ajax:function(C,B){function M(M,F,R,O){if(Q!==2){Q=2,S&&clearTimeout(S),E=e,G=O||"",N.readyState=M?4:0;var L,D,C,B=R?o0(A,N,R):e,V,U;if(M>=200&&M<300||M===304){if(A.ifModified){if(V=N.getResponseHeader("Last-Modified"))c.lastModified[I]=V;if(U=N.getResponseHeader("Etag"))c.etag[I]=U}if(M===304)F="notmodified",L=!0;else{try{D=n0(A,B),F="success",L=!0}catch(T){F="parsererror",C=T}}}else{C=F;if(!F||M)F="error",M<0&&(M=0)}N.status=M,N.statusText=F,L?J.resolveWith($,[D,F,N]):J.rejectWith($,[N,F,C]),N.statusCode(H),H=e,P&&_.trigger("ajax"+(L?"Success":"Error"),[N,A,L?D:C]),K.resolveWith($,[N,F]),P&&(_.trigger("ajaxComplete",[N,A]),--c.active||c.event.trigger("ajaxStop"))}}typeof C==="object"&&(B=C,C=e),B=B||{};var A=c.ajaxSetup({},B),$=A.context||A,_=$!==A&&($.nodeType||$ instanceof c)?c($):c.event,J=c.Deferred(),K=c._Deferred(),H=A.statusCode||{},I,F={},G,D,E,S,R,Q=0,P,O,N={readyState:0,setRequestHeader:function(_,$){Q||(F[_.toLowerCase().replace(F1,G1)]=$);return this},getAllResponseHeaders:function(){return Q===2?G:null},getResponseHeader:function(_){var $;if(Q===2){if(!D){D={};while($=C0.exec(G))D[$[1].toLowerCase()]=$[2]}$=D[_.toLowerCase()]}return $===e?null:$},overrideMimeType:function($){Q||(A.mimeType=$);return this},abort:function($){$=$||"abort",E&&E.abort($),M(0,$);return this}};J.promise(N),N.success=N.done,N.error=N.fail,N.complete=K.done,N.statusCode=function(_){if(_){var $;if(Q<2){for($ in _)H[$]=[H[$],_[$]]}else $=_[N.status],N.then($,$)}return this},A.url=((C||A.url)+"").replace(H0,"").replace(A0,u0[1]+"//"),A.dataTypes=c.trim(A.dataType||"*").toLowerCase().split(_1),A.crossDomain==null&&(R=D1.exec(A.url.toLowerCase()),A.crossDomain=R&&(R[1]!=u0[1]||R[2]!=u0[2]||(R[3]||(R[1]==="http:"?80:443))!=(u0[3]||(u0[1]==="http:"?80:443)))),A.data&&A.processData&&typeof A.data!=="string"&&(A.data=c.param(A.data,A.traditional)),x0(v0,A,B,N);if(Q===2)return!1;P=A.global,A.type=A.type.toUpperCase(),A.hasContent=!D0.test(A.type),P&&c.active++===0&&c.event.trigger("ajaxStart");if(!A.hasContent){A.data&&(A.url+=(g0.test(A.url)?"&":"?")+A.data),I=A.url;if(A.cache===!1){var L=c.now(),U=A.url.replace(A1,"$1_="+L);A.url=U+(U===A.url?(g0.test(A.url)?"&":"?")+"_="+L:"")}}if(A.data&&A.hasContent&&A.contentType!==!1||B.contentType)F["Content-Type"]=A.contentType;A.ifModified&&(I=I||A.url,c.lastModified[I]&&(F["If-Modified-Since"]=c.lastModified[I]),c.etag[I]&&(F["If-None-Match"]=c.etag[I])),F.Accept=A.dataTypes[0]&&A.accepts[A.dataTypes[0]]?A.accepts[A.dataTypes[0]]+(A.dataTypes[0]!=="*"?", */*; q=0.01":""):A.accepts["*"];for(O in A.headers)N.setRequestHeader(O,A.headers[O]);if(A.beforeSend&&(A.beforeSend.call($,N,A)===!1||Q===2)){N.abort();return!1}for(O in{success:1,error:1,complete:1})N[O](A[O]);E=x0(w0,A,B,N);if(E){N.readyState=1,P&&_.trigger("ajaxSend",[N,A]),A.async&&A.timeout>0&&(S=setTimeout(function(){N.abort("timeout")},A.timeout));try{Q=1,E.send(F,M)}catch(T){status<2?M(-1,T):c.error(T)}}else M(-1,"No Transport");return N},param:function(C,B){var A=[],$=function(_,$){$=c.isFunction($)?$():$,A[A.length]=encodeURIComponent(_)+"="+encodeURIComponent($)};B===e&&(B=c.ajaxSettings.traditional);if(c.isArray(C)||C.jquery&&!c.isPlainObject(C))c.each(C,function(){$(this.name,this.value)});else for(var _ in C)y0(_,C[_],B,$);return A.join("&").replace(G0,"+")}}),c.extend({active:0,lastModified:{},etag:{}});var m0=c.now(),l0=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+m0++}}),c.ajaxPrefilter("json jsonp",function(B,C,A){var $=typeof B.data==="string";if(B.dataTypes[0]==="jsonp"||C.jsonpCallback||C.jsonp!=null||B.jsonp!==!1&&(l0.test(B.url)||$&&l0.test(B.data))){var _,H=B.jsonpCallback=c.isFunction(B.jsonpCallback)?B.jsonpCallback():B.jsonpCallback,I=g[H],F=B.url,G=B.data,D="$1"+H+"$2",E=function(){g[H]=I,_&&c.isFunction(I)&&g[H](_[0])};B.jsonp!==!1&&(F=F.replace(l0,D),B.url===F&&($&&(G=G.replace(l0,D)),B.data===G&&(F+=(/\?/.test(F)?"&":"?")+B.jsonp+"="+H))),B.url=F,B.data=G,g[H]=function($){_=[$]},A.then(E,E),B.converters["script json"]=function(){_||c.error(H+" was not called");return _[0]},B.dataTypes[0]="json";return"script"}}),c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function($){c.globalEval($);return $}}}),c.ajaxPrefilter("script",function($){$.cache===e&&($.cache=!1),$.crossDomain&&($.type="GET",$.global=!1)}),c.ajaxTransport("script",function(A){if(A.crossDomain){var $,_=f.head||f.getElementsByTagName("head")[0]||f.documentElement;return{send:function(B,C){$=f.createElement("script"),$.async="async",A.scriptCharset&&($.charset=A.scriptCharset),$.src=A.url,$.onload=$.onreadystatechange=function(B,A){if(!$.readyState||/loaded|complete/.test($.readyState))$.onload=$.onreadystatechange=null,_&&$.parentNode&&_.removeChild($),$=e,A||C(200,"success")},_.insertBefore($,_.firstChild)},abort:function(){$&&$.onload(0,1)}}}});var s0=c.now(),r0,q0;c.ajaxSettings.xhr=g.ActiveXObject?function(){return!this.isLocal&&i0()||h0()}:i0,q0=c.ajaxSettings.xhr(),c.support.ajax=!!q0,c.support.cors=q0&&"withCredentials"in q0,q0=e,c.support.ajax&&c.ajaxTransport(function(_){if(!_.crossDomain||c.support.cors){var $;return{send:function(C,A){var B=_.xhr(),E,F;_.username?B.open(_.type,_.url,_.async,_.username,_.password):B.open(_.type,_.url,_.async);if(_.xhrFields)for(F in _.xhrFields)B[F]=_.xhrFields[F];_.mimeType&&B.overrideMimeType&&B.overrideMimeType(_.mimeType),!_.crossDomain&&!C["X-Requested-With"]&&(C["X-Requested-With"]="XMLHttpRequest");try{for(F in C)B.setRequestHeader(F,C[F])}catch(D){}B.send(_.hasContent&&_.data||null),$=function(C,L){var J,K,H,I,F;try{if($&&(L||B.readyState===4)){$=e,E&&(B.onreadystatechange=c.noop,delete r0[E]);if(L)B.readyState!==4&&B.abort();else{J=B.status,H=B.getAllResponseHeaders(),I={},F=B.responseXML,F&&F.documentElement&&(I.xml=F),I.text=B.responseText;try{K=B.statusText}catch(G){K=""}J||!_.isLocal||_.crossDomain?J===1223&&(J=204):J=I.text?200:404}}}catch(D){L||A(-1,D)}I&&A(J,K,I,H)},_.async&&B.readyState!==4?(r0||(r0={},p0()),E=s0++,B.onreadystatechange=r0[E]=$):$()},abort:function(){$&&$(0,1)}}}});var k0={},_0=/^(?:toggle|show|hide)$/,$0=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,e0,f0=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(D,B,C){var A,$;if(D||D===0)return this.animate(c0("show",3),D,B,C);for(var _=0,E=this.length;_<E;_++)A=this[_],$=A.style.display,!c._data(A,"olddisplay")&&$==="none"&&($=A.style.display=""),$===""&&c.css(A,"display")==="none"&&c._data(A,"olddisplay",d0(A.nodeName));for(_=0;_<E;_++){A=this[_],$=A.style.display;if($===""||$==="none")A.style.display=c._data(A,"olddisplay")||""}return this},hide:function(D,B,C){if(D||D===0)return this.animate(c0("hide",3),D,B,C);for(var A=0,$=this.length;A<$;A++){var _=c.css(this[A],"display");_!=="none"&&!c._data(this[A],"olddisplay")&&c._data(this[A],"olddisplay",_)}for(A=0;A<$;A++)this[A].style.display="none";return this},_toggle:c.fn.toggle,toggle:function(B,_,A){var $=typeof B==="boolean";c.isFunction(B)&&c.isFunction(_)?this._toggle.apply(this,arguments):B==null||$?this.each(function(){var _=$?B:c(this).is(":hidden");c(this)[_?"show":"hide"]()}):this.animate(c0("toggle",3),B,_,A);return this},fadeTo:function(B,_,A,$){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:_},B,A,$)},animate:function(C,A,B,_){var $=c.speed(A,B,_);if(c.isEmptyObject(C))return this.each($.complete);return this[$.queue===!1?"each":"queue"](function(){var B=c.extend({},$),D,A=this.nodeType===1,_=A&&c(this).is(":hidden"),F=this;for(D in C){var G=c.camelCase(D);D!==G&&(C[G]=C[D],delete C[D],D=G);if(C[D]==="hide"&&_||C[D]==="show"&&!_)return B.complete.call(this);if(A&&(D==="height"||D==="width")){B.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout){var E=d0(this.nodeName);E==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}c.isArray(C[D])&&((B.specialEasing=B.specialEasing||{})[D]=C[D][1],C[D]=C[D][0])}B.overflow!=null&&(this.style.overflow="hidden"),B.curAnim=c.extend({},C),c.each(C,function(D,A){var $=new c.fx(F,B,D);if(_0.test(A))$[A==="toggle"?_?"show":"hide":A](C);else{var I=$0.exec(A),G=$.cur();if(I){var H=parseFloat(I[2]),E=I[3]||(c.cssNumber[D]?"":"px");E!=="px"&&(c.style(F,D,(H||1)+E),G=(H||1)/$.cur()*G,c.style(F,D,G+E)),I[1]&&(H=(I[1]==="-="?-1:1)*H+G),$.custom(G,H,E)}else $.custom(G,A,"")}});return!0})},stop:function(A,$){var _=c.timers;A&&this.queue([]),this.each(function(){for(var A=_.length-1;A>=0;A--)_[A].elem===this&&($&&_[A](!0),_.splice(A,1))}),$||this.dequeue();return this}}),c.each({slideDown:c0("show",1),slideUp:c0("hide",1),slideToggle:c0("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(_,$){c.fn[_]=function(B,A,_){return this.animate($,B,A,_)}}),c.extend({speed:function(B,_,A){var $=B&&typeof B==="object"?c.extend({},B):{complete:A||!A&&_||c.isFunction(B)&&B,duration:B,easing:A&&_||_&&!c.isFunction(_)&&_};$.duration=c.fx.off?0:typeof $.duration==="number"?$.duration:$.duration in c.fx.speeds?c.fx.speeds[$.duration]:c.fx.speeds._default,$.old=$.complete,$.complete=function(){$.queue!==!1&&c(this).dequeue(),c.isFunction($.old)&&$.old.call(this)};return $},easing:{linear:function(B,_,A,$){return A+$*B},swing:function(B,_,A,$){return(-Math.cos(B*Math.PI)/2+0.5)*$+A}},timers:[],fx:function(A,$,_){this.options=$,this.elem=A,this.prop=_,$.orig||($.orig={})}}),c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var _,$=c.css(this.elem,this.prop);return isNaN(_=parseFloat($))?!$||$==="auto"?0:$:_},custom:function(D,B,C){function _($){return A.step($)}var A=this,$=c.fx;this.startTime=c.now(),this.start=D,this.end=B,this.unit=C||this.unit||(c.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,_.elem=this.elem,_()&&c.timers.push(_)&&!e0&&(e0=setInterval($.tick,$.interval))},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(D){var B=c.now(),C=!0;if(D||B>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var A in this.options.curAnim)this.options.curAnim[A]!==!0&&(C=!1);if(C){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var $=this.elem,_=this.options;c.each(["","X","Y"],function(B,A){$.style["overflow"+A]=_.overflow[B]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var G in this.options.curAnim)c.style(this.elem,G,this.options.orig[G]);this.options.complete.call(this.elem)}return!1}var H=B-this.startTime;this.state=H/this.options.duration;var E=this.options.specialEasing&&this.options.specialEasing[this.prop],F=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[E||F](this.state,H,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},c.extend(c.fx,{tick:function(){var _=c.timers;for(var $=0;$<_.length;$++)_[$]()||_.splice($--,1);_.length||c.fx.stop()},interval:13,stop:function(){clearInterval(e0),e0=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function($){c.style($.elem,"opacity",$.now)},_default:function($){$.elem.style&&$.elem.style[$.prop]!=null?$.elem.style[$.prop]=($.prop==="width"||$.prop==="height"?Math.max(0,$.now):$.now)+$.unit:$.elem[$.prop]=$.now}}}),c.expr&&c.expr.filters&&(c.expr.filters.animated=function($){return c.grep(c.timers,function(_){return $===_.elem}).length});var a0=/^t(?:able|d|h)$/i,b0=/^(?:body|html)$/i;"getBoundingClientRect"in f.documentElement?c.fn.offset=function(D){var B=this[0],C;if(D)return this.each(function($){c.offset.setOffset(this,D,$)});if(!B||!B.ownerDocument)return null;if(B===B.ownerDocument.body)return c.offset.bodyOffset(B);try{C=B.getBoundingClientRect()}catch(A){}var $=B.ownerDocument,_=$.documentElement;if(!C||!c.contains(_,B))return C?{top:C.top,left:C.left}:{top:0,left:0};var K=$.body,L=Z0($),I=_.clientTop||K.clientTop||0,J=_.clientLeft||K.clientLeft||0,G=L.pageYOffset||c.support.boxModel&&_.scrollTop||K.scrollTop,H=L.pageXOffset||c.support.boxModel&&_.scrollLeft||K.scrollLeft,E=C.top+G-I,F=C.left+H-J;return{top:E,left:F}}:c.fn.offset=function(D){var B=this[0];if(D)return this.each(function($){c.offset.setOffset(this,D,$)});if(!B||!B.ownerDocument)return null;if(B===B.ownerDocument.body)return c.offset.bodyOffset(B);c.offset.initialize();var C,A=B.offsetParent,$=B,_=B.ownerDocument,I=_.documentElement,J=_.body,G=_.defaultView,H=G?G.getComputedStyle(B,null):B.currentStyle,E=B.offsetTop,F=B.offsetLeft;while((B=B.parentNode)&&B!==J&&B!==I){if(c.offset.supportsFixedPosition&&H.position==="fixed")break;C=G?G.getComputedStyle(B,null):B.currentStyle,E-=B.scrollTop,F-=B.scrollLeft,B===A&&(E+=B.offsetTop,F+=B.offsetLeft,c.offset.doesNotAddBorder&&(!c.offset.doesAddBorderForTableAndCells||!a0.test(B.nodeName))&&(E+=parseFloat(C.borderTopWidth)||0,F+=parseFloat(C.borderLeftWidth)||0),$=A,A=B.offsetParent),c.offset.subtractsBorderForOverflowNotVisible&&C.overflow!=="visible"&&(E+=parseFloat(C.borderTopWidth)||0,F+=parseFloat(C.borderLeftWidth)||0),H=C}if(H.position==="relative"||H.position==="static")E+=J.offsetTop,F+=J.offsetLeft;c.offset.supportsFixedPosition&&H.position==="fixed"&&(E+=Math.max(I.scrollTop,J.scrollTop),F+=Math.max(I.scrollLeft,J.scrollLeft));return{top:E,left:F}},c.offset={initialize:function(){var C=f.body,B=f.createElement("div"),A,$,_,E,F=parseFloat(c.css(C,"marginTop"))||0,D="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";c.extend(B.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),B.innerHTML=D,C.insertBefore(B,C.firstChild),A=B.firstChild,$=A.firstChild,E=A.nextSibling.firstChild.firstChild,this.doesNotAddBorder=$.offsetTop!==5,this.doesAddBorderForTableAndCells=E.offsetTop===5,$.style.position="fixed",$.style.top="20px",this.supportsFixedPosition=$.offsetTop===20||$.offsetTop===15,$.style.position=$.style.top="",A.style.overflow="hidden",A.style.position="relative",this.subtractsBorderForOverflowNotVisible=$.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=C.offsetTop!==F,C.removeChild(B),c.offset.initialize=c.noop},bodyOffset:function(A){var $=A.offsetTop,_=A.offsetLeft;c.offset.initialize(),c.offset.doesNotIncludeMarginInBodyOffset&&($+=parseFloat(c.css(A,"marginTop"))||0,_+=parseFloat(c.css(A,"marginLeft"))||0);return{top:$,left:_}},setOffset:function(D,B,C){var A=c.css(D,"position");A==="static"&&(D.style.position="relative");var $=c(D),_=$.offset(),J=c.css(D,"top"),K=c.css(D,"left"),H=(A==="absolute"||A==="fixed")&&c.inArray("auto",[J,K])>-1,I={},F={},G,E;H&&(F=$.position()),G=H?F.top:parseInt(J,10)||0,E=H?F.left:parseInt(K,10)||0,c.isFunction(B)&&(B=B.call(D,C,_)),B.top!=null&&(I.top=B.top-_.top+G),B.left!=null&&(I.left=B.left-_.left+E),"using"in B?B.using.call(D,I):$.css(I)}},c.fn.extend({position:function(){if(!this[0])return null;var B=this[0],_=this.offsetParent(),A=this.offset(),$=b0.test(_[0].nodeName)?{top:0,left:0}:_.offset();A.top-=parseFloat(c.css(B,"marginTop"))||0,A.left-=parseFloat(c.css(B,"marginLeft"))||0,$.top+=parseFloat(c.css(_[0],"borderTopWidth"))||0,$.left+=parseFloat(c.css(_[0],"borderLeftWidth"))||0;return{top:A.top-$.top,left:A.left-$.left}},offsetParent:function(){return this.map(function(){var $=this.offsetParent||f.body;while($&&(!b0.test($.nodeName)&&c.css($,"position")==="static"))$=$.offsetParent;return $})}}),c.each(["Left","Top"],function(A,_){var $="scroll"+_;c.fn[$]=function(C){var _=this[0],B;if(!_)return null;if(C!==e)return this.each(function(){B=Z0(this),B?B.scrollTo(A?c(B).scrollLeft():C,A?C:c(B).scrollTop()):this[$]=C});B=Z0(_);return B?"pageXOffset"in B?B[A?"pageYOffset":"pageXOffset"]:c.support.boxModel&&B.document.documentElement[$]||B.document.body[$]:_[$]}}),c.each(["Height","Width"],function(A,_){var $=_.toLowerCase();c.fn["inner"+_]=function(){return this[0]?parseFloat(c.css(this[0],$,"padding")):null},c.fn["outer"+_]=function(_){return this[0]?parseFloat(c.css(this[0],$,_?"margin":"border")):null},c.fn[$]=function(C){var A=this[0];if(!A)return C==null?null:this;if(c.isFunction(C))return this.each(function(_){var A=c(this);A[$](C.call(this,_,A[$]()))});if(c.isWindow(A)){var B=A.document.documentElement["client"+_];return A.document.compatMode==="CSS1Compat"&&B||A.document.body["client"+_]||B}if(A.nodeType===9)return Math.max(A.documentElement["client"+_],A.body["scroll"+_],A.documentElement["scroll"+_],A.body["offset"+_],A.documentElement["offset"+_]);if(C===e){var D=c.css(A,$),E=parseFloat(D);return c.isNaN(E)?D:E}return this.css($,typeof C==="string"?C:C+"px")}}),g.jQuery=g.$=c})(window)


highcharts.js

 (function(){function pa(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function ja(a,b){return parseInt(a,b||10)}function Pb(a){return typeof a==="string"}function Lb(a){return typeof a==="object"}function dc(a){return typeof a==="number"}function qc(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function M(a){return a!==Va&&a!==null}function Ea(a,b,c){var d,e;if(Pb(b))if(M(c))a.setAttribute(b,c);else{if(a&&a.getAttribute)e=a.getAttribute(b)}else if(M(b)&&Lb(b))for(d in b)a.setAttribute(d,b[d]);return e}function rc(a){if(!a||a.constructor!==Array)a=[a];return a}function C(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++){c=a[b];if(typeof c!=="undefined"&&c!==null)return c}}function Na(a,b){if(Bc)if(b&&b.opacity!==Va)b.filter="alpha(opacity="+b.opacity*100+")";pa(a.style,b)}function ib(a,b,c,d,e){a=wa.createElement(a);b&&pa(a,b);e&&Na(a,{padding:0,border:jb,margin:0});c&&Na(a,c);d&&d.appendChild(a);return a}function yb(a,b){var c=function(){};c.prototype=new a;pa(c.prototype,b);return c}function zd(a,b,c,d){var e=Wa.lang;a=a;var f=isNaN(b=$a(b))?2:b;b=c===undefined?e.decimalPoint:c;d=d===undefined?e.thousandsSep:d;e=a<0?"-":"";c=String(ja(a=$a(+a||0).toFixed(f)));var g=c.length>3?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+$a(a-c).toFixed(f).slice(2):"")}function Ad(){this.symbol=this.color=0}function ec(a,b){Cc=C(a,b.animation)}function Bd(){var a=Wa.global.useUTC;Dc=a?Date.UTC:function(b,c,d,e,f,g){return(new Date(b,c,C(d,1),C(e,0),C(f,0),C(g,0))).getTime()};bd=a?"getUTCMinutes":"getMinutes";cd=a?"getUTCHours":"getHours";dd=a?"getUTCDay":"getDay";sc=a?"getUTCDate":"getDate";Ec=a?"getUTCMonth":"getMonth";Fc=a?"getUTCFullYear":"getFullYear";Cd=a?"setUTCMinutes":"setMinutes";Dd=a?"setUTCHours":"setHours";ed=a?"setUTCDate":"setDate";Ed=a?"setUTCMonth":"setMonth";Fd=a?"setUTCFullYear":"setFullYear"}function Gc(a){Hc||(Hc=ib(Qb));a&&Hc.appendChild(a);Hc.innerHTML=""}function Ic(){}function Gd(a,b){function c(m,i){function y(k,o){this.pos=k;this.minor=o;this.isNew=true;o||this.addLabel()}function x(k){if(k){this.options=k;this.id=k.id}return this}function Q(k,o,r){this.isNegative=o;this.options=k;this.x=r;this.alignOptions={align:k.align||(qa?o?"left":"right":"center"),verticalAlign:k.verticalAlign||(qa?"middle":o?"bottom":"top"),y:C(k.y,qa?4:o?14:-6),x:C(k.x,qa?o?-6:6:0)};this.textAlign=k.textAlign||(qa?o?"right":"left":"center")}function na(){var k=[],o=[],r;T=ra=null;Fa=[];u(Ia,function(q){r=false;u(["xAxis","yAxis"],function(ma){if(q.isCartesian&&(ma==="xAxis"&&Ga||ma==="yAxis"&&!Ga)&&(q.options[ma]===i.index||q.options[ma]===Va&&i.index===0)){q[ma]=v;Fa.push(q);r=true}});if(!q.visible&&w.ignoreHiddenSeries)r=false;if(r){var A,U,G,V,Ba;if(!Ga){A=q.options.stacking;Jc=A==="percent";if(A){V=q.type+C(q.options.stack,"");Ba="-"+V;q.stackKey=V;U=k[V]||[];k[V]=U;G=o[Ba]||[];o[Ba]=G}if(Jc){T=0;ra=99}}if(q.isCartesian){u(q.data,function(ma){var s=ma.x,W=ma.y,ba=W<0,ia=ba?G:U,zb=ba?Ba:V;if(T===null)T=ra=ma[$];if(Ga)if(s>ra)ra=s;else{if(s<T)T=s}else if(M(W)){if(A)ia[s]=M(ia[s])?ia[s]+W:W;W=ia?ia[s]:W;ma=C(ma.low,W);if(!Jc)if(W>ra)ra=W;else if(ma<T)T=ma;if(A){t[zb]||(t[zb]={});t[zb][s]||(t[zb][s]=new Q(i.stackLabels,ba,s));t[zb][s].setTotal(W)}}});if(/(area|column|bar)/.test(q.type)&&!Ga)if(T>=0){T=0;Hd=true}else if(ra<0){ra=0;Id=true}}}})}function O(k,o){var r,q;Fb=o?1:sa.pow(10,kb(sa.log(k)/sa.LN10));r=k/Fb;if(!o){o=[1,2,2.5,5,10];if(i.allowDecimals===false||H)if(Fb===1)o=[1,2,5,10];else if(Fb<=0.1)o=[1/Fb]}for(q=0;q<o.length;q++){k=o[q];if(r<=(o[q]+(o[q+1]||o[q]))/2)break}k*=Fb;return k}function ea(k){var o;o=k;Fb=C(Fb,sa.pow(10,kb(sa.log(Ta)/sa.LN10)));if(Fb<1){o=X(1/Fb)*10;o=X(k*o)/o}return o}function Ma(){var k,o,r,q,A=i.tickInterval,U=i.tickPixelInterval;k=i.maxZoom||(Ga&&!M(i.min)&&!M(i.max)?qb(m.smallestInterval*5,ra-T):null);oa=z?Ca:xa;if(Rb){r=m[Ga?"xAxis":"yAxis"][i.linkedTo];q=r.getExtremes();ca=C(q.min,q.dataMin);fa=C(q.max,q.dataMax)}else{ca=C(Ja,i.min,T);fa=C(Oa,i.max,ra)}if(H){ca=sa.log(ca)/sa.LN10;fa=sa.log(fa)/sa.LN10}if(fa-ca<k){q=(k-fa+ca)/2;ca=Ha(ca-q,C(i.min,ca-q),T);fa=qb(ca+k,C(i.max,ca+k),ra)}if(!Xa&&!Jc&&!Rb&&M(ca)&&M(fa)){k=fa-ca||1;if(!M(i.min)&&!M(Ja)&&Jd&&(T<0||!Hd))ca-=k*Jd;if(!M(i.max)&&!M(Oa)&&Kd&&(ra>0||!Id))fa+=k*Kd}Ta=ca===fa?1:Rb&&!A&&U===r.options.tickPixelInterval?r.tickInterval:C(A,Xa?1:(fa-ca)*U/oa);if(!F&&!M(i.tickInterval))Ta=O(Ta);v.tickInterval=Ta;Kc=i.minorTickInterval==="auto"&&Ta?Ta/5:i.minorTickInterval;if(F){ta=[];A=Wa.global.useUTC;var G=1E3/rb,V=6E4/rb,Ba=36E5/rb;U=864E5/rb;k=6048E5/rb;q=2592E6/rb;var ma=31556952E3/rb,s=[["second",G,[1,2,5,10,15,30]],["minute",V,[1,2,5,10,15,30]],["hour",Ba,[1,2,3,4,6,8,12]],["day",U,[1,2]],["week",k,[1,2]],["month",q,[1,2,3,4,6]],["year",ma,null]],W=s[6],ba=W[1],ia=W[2];for(r=0;r<s.length;r++){W=s[r];ba=W[1];ia=W[2];if(s[r+1])if(Ta<=(ba*ia[ia.length-1]+s[r+1][1])/2)break}if(ba===ma&&Ta<5*ba)ia=[1,2,5];s=O(Ta/ba,ia);ia=new Date(ca*rb);ia.setMilliseconds(0);if(ba>=G)ia.setSeconds(ba>=V?0:s*kb(ia.getSeconds()/s));if(ba>=V)ia[Cd](ba>=Ba?0:s*kb(ia[bd]()/s));if(ba>=Ba)ia[Dd](ba>=U?0:s*kb(ia[cd]()/s));if(ba>=U)ia[ed](ba>=q?1:s*kb(ia[sc]()/s));if(ba>=q){ia[Ed](ba>=ma?0:s*kb(ia[Ec]()/s));o=ia[Fc]()}if(ba>=ma){o-=o%s;ia[Fd](o)}ba===k&&ia[ed](ia[sc]()-ia[dd]()+i.startOfWeek);r=1;o=ia[Fc]();G=ia.getTime()/rb;V=ia[Ec]();for(Ba=ia[sc]();G<fa&&r<Ca;){ta.push(G);if(ba===ma)G=Dc(o+r*s,0)/rb;else if(ba===q)G=Dc(o,V+r*s)/rb;else if(!A&&(ba===U||ba===k))G=Dc(o,V,Ba+r*s*(ba===U?1:7));else G+=ba*s;r++}ta.push(G);Lc=i.dateTimeLabelFormats[W[0]]}else{r=ea(kb(ca/Ta)*Ta);o=ea(fd(fa/Ta)*Ta);ta=[];for(r=ea(r);r<=o;){ta.push(r);r=ea(r+Ta)}}if(!Rb){if(Xa||Ga&&m.hasColumn){o=(Xa?1:Ta)*0.5;if(Xa||!M(C(i.min,Ja)))ca-=o;if(Xa||!M(C(i.max,Oa)))fa+=o}o=ta[0];r=ta[ta.length-1];if(i.startOnTick)ca=o;else ca>o&&ta.shift();if(i.endOnTick)fa=r;else fa<r&&ta.pop();Mb||(Mb={x:0,y:0});if(!F&&ta.length>Mb[$])Mb[$]=ta.length}}function Aa(){var k,o;Gb=ca;Ld=fa;na();Ma();fb=ua;ua=oa/(fa-ca||1);if(!Ga)for(k in t)for(o in t[k])t[k][o].cum=t[k][o].total;if(!v.isDirty)v.isDirty=ca!==Gb||fa!==Ld}function Qa(k){k=(new x(k)).render();Sb.push(k);return k}function Ra(){var k=i.title,o=i.stackLabels,r=i.alternateGridColor,q=i.lineWidth,A,U,G=m.hasRendered,V=G&&M(Gb)&&!isNaN(Gb);A=Fa.length&&M(ca)&&M(fa);oa=z?Ca:xa;ua=oa/(fa-ca||1);eb=z?Y:sb;if(A||Rb){if(Kc&&!Xa)for(A=ca+(ta[0]-ca)%Kc;A<=fa;A+=Kc){Zb[A]||(Zb[A]=new y(A,true));V&&Zb[A].isNew&&Zb[A].render(null,true);Zb[A].isActive=true;Zb[A].render()}u(ta,function(s,W){if(!Rb||s>=ca&&s<=fa){V&&tb[s].isNew&&tb[s].render(W,true);tb[s].isActive=true;tb[s].render(W)}});r&&u(ta,function(s,W){if(W%2===0&&s<fa){fc[s]||(fc[s]=new x);fc[s].options={from:s,to:ta[W+1]!==Va?ta[W+1]:fa,color:r};fc[s].render();fc[s].isActive=true}});G||u((i.plotLines||[]).concat(i.plotBands||[]),function(s){Sb.push((new x(s)).render())})}u([tb,Zb,fc],function(s){for(var W in s)if(s[W].isActive)s[W].isActive=false;else{s[W].destroy();delete s[W]}});if(q){A=Y+(Ka?Ca:0)+P;U=Ua-sb-(Ka?xa:0)+P;A=ga.crispLine([ab,z?Y:A,z?U:ha,La,z?Ya-Hb:A,z?U:Ua-sb],q);if(ka)ka.animate({d:A});else ka=ga.path(A).attr({stroke:i.lineColor,"stroke-width":q,zIndex:7}).add()}if(v.axisTitle){A=z?Y:ha;q=ja(k.style.fontSize||12);A={low:A+(z?0:oa),middle:A+oa/2,high:A+(z?oa:0)}[k.align];q=(z?ha+xa:Y)+(z?1:-1)*(Ka?-1:1)*gd+(Z===2?q:0);v.axisTitle[G?"animate":"attr"]({x:z?A:q+(Ka?Ca:0)+P+(k.x||0),y:z?q-(Ka?xa:0)+P:A+(k.y||0)})}if(o&&o.enabled){var Ba,ma;o=v.stackTotalGroup;if(!o)v.stackTotalGroup=o=ga.g("stack-labels").attr({visibility:Ab,zIndex:6}).translate(Y,ha).add();for(Ba in t){k=t[Ba];for(ma in k)k[ma].render(o)}}v.isDirty=false}function Za(k){for(var o=Sb.length;o--;)Sb[o].id===k&&Sb[o].destroy()}var Ga=i.isX,Ka=i.opposite,z=qa?!Ga:Ga,Z=z?Ka?0:2:Ka?1:3,t={};i=va(Ga?Mc:hd,[Xd,Yd,Md,Zd][Z],i);var v=this,N=i.type,F=N==="datetime",H=N==="logarithmic",P=i.offset||0,$=Ga?"x":"y",oa,ua,fb,eb=z?Y:sb,Ib,Tb,gc,L,ka,T,ra,Fa,Ja,Oa,fa=null,ca=null,Gb,Ld,Jd=i.minPadding,Kd=i.maxPadding,Rb=M(i.linkedTo),Hd,Id,Jc;N=i.events;var id,Sb=[],Ta,Kc,Fb,ta,tb={},Zb={},fc={},hc,ic,gd,Lc,Xa=i.categories,$d=i.labels.formatter||function(){var k=this.value;return Lc?Nc(Lc,k):Ta%1E6===0?k/1E6+"M":Ta%1E3===0?k/1E3+"k":!Xa&&k>=1E3?zd(k,0):k},Oc=z&&i.labels.staggerLines,$b=i.reversed,ac=Xa&&i.tickmarkPlacement==="between"?0.5:0;y.prototype={addLabel:function(){var k=this.pos,o=i.labels,r=!(k===ca&&!C(i.showFirstLabel,1)||k===fa&&!C(i.showLastLabel,0)),q=Xa&&z&&Xa.length&&!o.step&&!o.staggerLines&&!o.rotation&&Ca/Xa.length||!z&&Ca/2,A=this.label;k=$d.call({isFirst:k===ta[0],isLast:k===ta[ta.length-1],dateTimeLabelFormat:Lc,value:Xa&&Xa[k]?Xa[k]:k});q=q&&{width:Ha(1,X(q-2*(o.padding||10)))+bb};q=pa(q,o.style);if(A===Va)this.label=M(k)&&r&&o.enabled?ga.text(k,0,0).attr({align:o.align,rotation:o.rotation}).css(q).add(gc):null;else A&&A.attr({text:k}).css(q)},getLabelSize:function(){var k=this.label;return k?(this.labelBBox=k.getBBox())[z?"height":"width"]:0},render:function(k,o){var r=!this.minor,q=this.label,A=this.pos,U=i.labels,G=this.gridLine,V=r?i.gridLineWidth:i.minorGridLineWidth,Ba=r?i.gridLineColor:i.minorGridLineColor,ma=r?i.gridLineDashStyle:i.minorGridLineDashStyle,s=this.mark,W=r?i.tickLength:i.minorTickLength,ba=r?i.tickWidth:i.minorTickWidth||0,ia=r?i.tickColor:i.minorTickColor,zb=r?i.tickPosition:i.minorTickPosition;r=U.step;var lb=o&&Pc||Ua,Nb;Nb=z?Ib(A+ac,null,null,o)+eb:Y+P+(Ka?(o&&jd||Ya)-Hb-Y:0);lb=z?lb-sb+P-(Ka?xa:0):lb-Ib(A+ac,null,null,o)-eb;if(V){A=Tb(A+ac,V,o);if(G===Va){G={stroke:Ba,"stroke-width":V};if(ma)G.dashstyle=ma;this.gridLine=G=V?ga.path(A).attr(G).add(L):null}G&&A&&G.animate({d:A})}if(ba){if(zb==="inside")W=-W;if(Ka)W=-W;V=ga.crispLine([ab,Nb,lb,La,Nb+(z?0:-W),lb+(z?W:0)],ba);if(s)s.animate({d:V});else this.mark=ga.path(V).attr({stroke:ia,"stroke-width":ba}).add(gc)}if(q&&!isNaN(Nb)){Nb=Nb+U.x-(ac&&z?ac*ua*($b?-1:1):0);lb=lb+U.y-(ac&&!z?ac*ua*($b?1:-1):0);M(U.y)||(lb+=ja(q.styles.lineHeight)*0.9-q.getBBox().height/2);if(Oc)lb+=k/(r||1)%Oc*16;if(r)q[k%r?"hide":"show"]();q[this.isNew?"attr":"animate"]({x:Nb,y:lb})}this.isNew=false},destroy:function(){for(var k in this)this[k]&&this[k].destroy&&this[k].destroy()}};x.prototype={render:function(){var k=this,o=k.options,r=o.label,q=k.label,A=o.width,U=o.to,G,V=o.from,Ba=o.dashStyle,ma=k.svgElem,s=[],W,ba,ia=o.color;ba=o.zIndex;var zb=o.events;if(A){s=Tb(o.value,A);o={stroke:ia,"stroke-width":A};if(Ba)o.dashstyle=Ba}else if(M(V)&&M(U)){V=Ha(V,ca);U=qb(U,fa);G=Tb(U);if((s=Tb(V))&&G)s.push(G[4],G[5],G[1],G[2]);else s=null;o={fill:ia}}else return;if(M(ba))o.zIndex=ba;if(ma)if(s)ma.animate({d:s},null,ma.onGetPath);else{ma.hide();ma.onGetPath=function(){ma.show()}}else if(s&&s.length){k.svgElem=ma=ga.path(s).attr(o).add();if(zb){Ba=function(lb){ma.on(lb,function(Nb){zb[lb].apply(k,[Nb])})};for(W in zb)Ba(W)}}if(r&&M(r.text)&&s&&s.length&&Ca>0&&xa>0){r=va({align:z&&G&&"center",x:z?!G&&4:10,verticalAlign:!z&&G&&"middle",y:z?G?16:10:G?6:-4,rotation:z&&!G&&90},r);if(!q)k.label=q=ga.text(r.text,0,0).attr({align:r.textAlign||r.align,rotation:r.rotation,zIndex:ba}).css(r.style).add();G=[s[1],s[4],C(s[6],s[1])];s=[s[2],s[5],C(s[7],s[2])];W=qb.apply(sa,G);ba=qb.apply(sa,s);q.align(r,false,{x:W,y:ba,width:Ha.apply(sa,G)-W,height:Ha.apply(sa,s)-ba});q.show()}else q&&q.hide();return k},destroy:function(){for(var k in this){this[k]&&this[k].destroy&&this[k].destroy();delete this[k]}qc(Sb,this)}};Q.prototype={setTotal:function(k){this.cum=this.total=k},render:function(k){var o=this.options.formatter.call(this);if(this.label)this.label.attr({text:o,visibility:ub});else this.label=m.renderer.text(o,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:ub}).add(k)},setOffset:function(k,o){var r=this.isNegative,q=v.translate(this.total),A=v.translate(0);A=$a(q-A);var U=m.xAxis[0].translate(this.x)+k,G=m.plotHeight;r={x:qa?r?q:q-A:U,y:qa?G-U-o:r?G-q-A:G-q,width:qa?A:o,height:qa?o:A};this.label&&this.label.align(this.alignOptions,null,r).attr({visibility:Ab})}};Ib=function(k,o,r,q,A){var U=1,G=0,V=q?fb:ua;q=q?Gb:ca;V||(V=ua);if(r){U*=-1;G=oa}if($b){U*=-1;G-=U*oa}if(o){if($b)k=oa-k;k=k/V+q;if(H&&A)k=sa.pow(10,k)}else{if(H&&A)k=sa.log(k)/sa.LN10;k=U*(k-q)*V+G}return k};Tb=function(k,o,r){var q,A,U;k=Ib(k,null,null,r);var G=r&&Pc||Ua,V=r&&jd||Ya,Ba;r=A=X(k+eb);q=U=X(G-k-eb);if(isNaN(k))Ba=true;else if(z){q=ha;U=G-sb;if(r<Y||r>Y+Ca)Ba=true}else{r=Y;A=V-Hb;if(q<ha||q>ha+xa)Ba=true}return Ba?null:ga.crispLine([ab,r,q,La,A,U],o||0)};if(qa&&Ga&&$b===Va)$b=true;pa(v,{addPlotBand:Qa,addPlotLine:Qa,adjustTickAmount:function(){if(Mb&&!F&&!Xa&&!Rb){var k=hc,o=ta.length;hc=Mb[$];if(o<hc){for(;ta.length<hc;)ta.push(ea(ta[ta.length-1]+Ta));ua*=(o-1)/(hc-1);fa=ta[ta.length-1]}if(M(k)&&hc!==k)v.isDirty=true}},categories:Xa,getExtremes:function(){return{min:ca,max:fa,dataMin:T,dataMax:ra,userMin:Ja,userMax:Oa}},getPlotLinePath:Tb,getThreshold:function(k){if(ca>k)k=ca;else if(fa<k)k=fa;return Ib(k,0,1)},isXAxis:Ga,options:i,plotLinesAndBands:Sb,getOffset:function(){var k=Fa.length&&M(ca)&&M(fa),o=0,r=0,q=i.title,A=i.labels,U=[-1,1,1,-1][Z],G;if(!gc){gc=ga.g("axis").attr({zIndex:7}).add();L=ga.g("grid").attr({zIndex:1}).add()}ic=0;if(k||Rb){u(ta,function(V){if(tb[V])tb[V].addLabel();else tb[V]=new y(V);if(Z===0||Z===2||{1:"left",3:"right"}[Z]===A.align)ic=Ha(tb[V].getLabelSize(),ic)});if(Oc)ic+=(Oc-1)*16}else for(G in tb){tb[G].destroy();delete tb[G]}if(q&&q.text){if(!v.axisTitle)v.axisTitle=ga.text(q.text,0,0).attr({zIndex:7,rotation:q.rotation||0,align:q.textAlign||{low:"left",middle:"center",high:"right"}[q.align]}).css(q.style).add();o=v.axisTitle.getBBox()[z?"height":"width"];r=C(q.margin,z?5:10)}P=U*(i.offset||Ub[Z]);gd=ic+(Z!==2&&ic&&U*i.labels[z?"y":"x"])+r;Ub[Z]=Ha(Ub[Z],gd+o+U*P)},render:Ra,setCategories:function(k,o){v.categories=Xa=k;u(Fa,function(r){r.translate();r.setTooltipPoints(true)});v.isDirty=true;C(o,true)&&m.redraw()},setExtremes:function(k,o,r,q){r=C(r,true);Pa(v,"setExtremes",{min:k,max:o},function(){Ja=k;Oa=o;r&&m.redraw(q)})},setScale:Aa,setTickPositions:Ma,translate:Ib,redraw:function(){jc.resetTracker&&jc.resetTracker();Ra();u(Sb,function(k){k.render()});u(Fa,function(k){k.isDirty=true})},removePlotBand:Za,removePlotLine:Za,reversed:$b,stacks:t});for(id in N)Sa(v,id,N[id]);Aa()}function d(){var m={};return{add:function(i,y,x,Q){if(!m[i]){y=ga.text(y,0,0).css(a.toolbar.itemStyle).align({align:"right",x:-Hb-20,y:ha+30}).on("click",Q).attr({align:"right",zIndex:20}).add();m[i]=y}},remove:function(i){Gc(m[i].element);m[i]=null}}}function e(m){function i(){var F=this.points||rc(this),H=F[0].series.xAxis,P=this.x;H=H&&H.options.type==="datetime";var $=Pb(P)||H,oa;oa=$?['<span style="font-size: 10px">'+(H?Nc("%A, %b %e, %Y",P):P)+"</span>"]:[];u(F,function(ua){oa.push(ua.point.tooltipFormatter($))});return oa.join("<br/>")}function y(F,H){z=Za?F:(2*z+F)/3;Z=Za?H:(Z+H)/2;t.translate(z,Z);kd=$a(F-z)>1||$a(H-Z)>1?function(){y(F,H)}:null}function x(){if(!Za){var F=p.hoverPoints;t.hide();u(ea,function(H){H&&H.hide()});F&&u(F,function(H){H.setState()});p.hoverPoints=null;Za=true}}var Q,na=m.borderWidth,O=m.crosshairs,ea=[],Ma=m.style,Aa=m.shared,Qa=ja(Ma.padding),Ra=na+Qa,Za=true,Ga,Ka,z=0,Z=0;Ma.padding=0;var t=ga.g("tooltip").attr({zIndex:8}).add(),v=ga.rect(Ra,Ra,0,0,m.borderRadius,na).attr({fill:m.backgroundColor,"stroke-width":na}).add(t).shadow(m.shadow),N=ga.text("",Qa+Ra,ja(Ma.fontSize)+Qa+Ra).attr({zIndex:1}).css(Ma).add(t);t.hide();return{shared:Aa,refresh:function(F){var H,P,$,oa=0,ua={},fb=[];$=F.tooltipPos;H=m.formatter||i;ua=p.hoverPoints;if(Aa){ua&&u(ua,function(eb){eb.setState()});p.hoverPoints=F;u(F,function(eb){eb.setState(Bb);oa+=eb.plotY;fb.push(eb.getLabelConfig())});P=F[0].plotX;oa=X(oa)/F.length;ua={x:F[0].category};ua.points=fb;F=F[0]}else ua=F.getLabelConfig();ua=H.call(ua);Q=F.series;P=Aa?P:F.plotX;oa=Aa?oa:F.plotY;H=X($?$[0]:qa?Ca-oa:P);P=X($?$[1]:qa?xa-P:oa);$=Aa||!F.series.isCartesian||kc(H,P);if(ua===false||!$)x();else{if(Za){t.show();Za=false}N.attr({text:ua});$=N.getBBox();Ga=$.width+2*Qa;Ka=$.height+2*Qa;v.attr({width:Ga,height:Ka,stroke:m.borderColor||F.color||Q.color||"#606060"});$=H-Ga+Y-25;P=P-Ka+ha+10;if($<7)$=Y+H+15;if(P<5)P=5;else if(P+Ka>Ua)P=Ua-Ka-5;y(X($-Ra),X(P-Ra))}if(O){O=rc(O);for(H=O.length;H--;){P=F.series[H?"yAxis":"xAxis"];if(O[H]&&P){P=P.getPlotLinePath(F[H?"y":"x"],1);if(ea[H])ea[H].attr({d:P,visibility:Ab});else{$={"stroke-width":O[H].width||1,stroke:O[H].color||"#C0C0C0",zIndex:2};if(O[H].dashStyle)$.dashstyle=O[H].dashStyle;ea[H]=ga.path(P).attr($).add()}}}}},hide:x}}function f(m,i){function y(z){var Z,t=Nd&&wa.width/wa.documentElement.clientWidth-1,v,N,F;z=z||cb.event;if(!z.target)z.target=z.srcElement;Z=z.touches?z.touches.item(0):z;if(z.type!=="mousemove"||cb.opera||t){v=ya;N={left:v.offsetLeft,top:v.offsetTop};for(v=v.offsetParent;v;){N.left+=v.offsetLeft;N.top+=v.offsetTop;if(v!==wa.body&&v!==wa.documentElement){N.left-=v.scrollLeft;N.top-=v.scrollTop}v=v.offsetParent}tc=N;v=tc.left;N=tc.top}if(Bc){F=z.x;Z=z.y}else if(Z.layerX===Va){F=Z.pageX-v;Z=Z.pageY-N}else{F=z.layerX;Z=z.layerY}if(t){F+=X((t+1)*v-v);Z+=X((t+1)*N-N)}return pa(z,{chartX:F,chartY:Z})}function x(z){var Z={xAxis:[],yAxis:[]};u(db,function(t){var v=t.translate,N=t.isXAxis;Z[N?"xAxis":"yAxis"].push({axis:t,value:v((qa?!N:N)?z.chartX-Y:xa-z.chartY+ha,true)})});return Z}function Q(){var z=m.hoverSeries,Z=m.hoverPoint;Z&&Z.onMouseOut();z&&z.onMouseOut();uc&&uc.hide();ld=null}function na(){if(Aa){var z={xAxis:[],yAxis:[]},Z=Aa.getBBox(),t=Z.x-Y,v=Z.y-ha;if(Ma){u(db,function(N){var F=N.translate,H=N.isXAxis,P=qa?!H:H,$=F(P?t:xa-v-Z.height,true,0,0,1);F=F(P?t+Z.width:xa-v,true,0,0,1);z[H?"xAxis":"yAxis"].push({axis:N,min:qb($,F),max:Ha($,F)})});Pa(m,"selection",z,md)}Aa=Aa.destroy()}m.mouseIsDown=nd=Ma=false;Cb(wa,Jb?"touchend":"mouseup",na)}var O,ea,Ma,Aa,Qa=w.zoomType,Ra=/x/.test(Qa),Za=/y/.test(Qa),Ga=Ra&&!qa||Za&&qa,Ka=Za&&!qa||Ra&&qa;Qc=function(){if(Rc){Rc.translate(Y,ha);qa&&Rc.attr({width:m.plotWidth,height:m.plotHeight}).invert()}else m.trackerGroup=Rc=ga.g("tracker").attr({zIndex:9}).add()};Qc();if(i.enabled)m.tooltip=uc=e(i);(function(){var z=true;ya.onmousedown=function(t){t=y(t);!Jb&&t.preventDefault&&t.preventDefault();m.mouseIsDown=nd=true;O=t.chartX;ea=t.chartY;Sa(wa,Jb?"touchend":"mouseup",na)};var Z=function(t){if(!(t&&t.touches&&t.touches.length>1)){t=y(t);if(!Jb)t.returnValue=false;var v=t.chartX,N=t.chartY,F=!kc(v-Y,N-ha);if(Jb&&t.type==="touchstart")if(Ea(t.target,"isTracker"))m.runTrackerClick||t.preventDefault();else!ae&&!F&&t.preventDefault();if(F){z||Q();if(v<Y)v=Y;else if(v>Y+Ca)v=Y+Ca;if(N<ha)N=ha;else if(N>ha+xa)N=ha+xa}if(nd&&t.type!=="touchstart"){Ma=Math.sqrt(Math.pow(O-v,2)+Math.pow(ea-N,2));if(Ma>10){if(lc&&(Ra||Za)&&kc(O-Y,ea-ha))Aa||(Aa=ga.rect(Y,ha,Ga?1:Ca,Ka?1:xa,0).attr({fill:"rgba(69,114,167,0.25)",zIndex:7}).add());if(Aa&&Ga){v=v-O;Aa.attr({width:$a(v),x:(v>0?0:v)+O})}if(Aa&&Ka){N=N-ea;Aa.attr({height:$a(N),y:(N>0?0:N)+ea})}}}else if(!F){var H;N=m.hoverPoint;v=m.hoverSeries;var P,$,oa=Ya,ua=qa?t.chartY:t.chartX-Y;if(uc&&i.shared){H=[];P=Ia.length;for($=0;$<P;$++)if(Ia[$].visible&&Ia[$].tooltipPoints.length){t=Ia[$].tooltipPoints[ua];t._dist=$a(ua-t.plotX);oa=qb(oa,t._dist);H.push(t)}for(P=H.length;P--;)H[P]._dist>oa&&H.splice(P,1);if(H.length&&H[0].plotX!==ld){uc.refresh(H);ld=H[0].plotX}}if(v&&v.tracker)(t=v.tooltipPoints[ua])&&t!==N&&t.onMouseOver()}return(z=F)||!lc}};ya.onmousemove=Z;Sa(ya,"mouseleave",Q);ya.ontouchstart=function(t){if(Ra||Za)ya.onmousedown(t);Z(t)};ya.ontouchmove=Z;ya.ontouchend=function(){Ma&&Q()};ya.onclick=function(t){var v=m.hoverPoint;t=y(t);t.cancelBubble=true;if(!Ma)if(v&&Ea(t.target,"isTracker")){var N=v.plotX,F=v.plotY;pa(v,{pageX:tc.left+Y+(qa?Ca-F:N),pageY:tc.top+ha+(qa?xa-N:F)});Pa(v.series,"click",pa(t,{point:v}));v.firePointEvent("click",t)}else{pa(t,x(t));kc(t.chartX-Y,t.chartY-ha)&&Pa(m,"click",t)}Ma=false}})();Od=setInterval(function(){kd&&kd()},32);pa(this,{zoomX:Ra,zoomY:Za,resetTracker:Q})}function g(m){var i=m.type||w.type||w.defaultSeriesType,y=vb[i],x=p.hasRendered;if(x)if(qa&&i==="column")y=vb.bar;else if(!qa&&i==="bar")y=vb.column;i=new y;i.init(p,m);if(!x&&i.inverted)qa=true;if(i.isCartesian)lc=i.isCartesian;Ia.push(i);return i}function h(){w.alignTicks!==false&&u(db,function(m){m.adjustTickAmount()});Mb=null}function j(m){var i=p.isDirtyLegend,y,x=p.isDirtyBox,Q=Ia.length,na=Q,O=p.clipRect;for(ec(m,p);na--;){m=Ia[na];if(m.isDirty&&m.options.stacking){y=true;break}}if(y)for(na=Q;na--;){m=Ia[na];if(m.options.stacking)m.isDirty=true}u(Ia,function(ea){if(ea.isDirty){ea.cleanData();ea.getSegments();if(ea.options.legendType==="point")i=true}});if(i&&od.renderLegend){od.renderLegend();p.isDirtyLegend=false}if(lc){if(!Sc){Mb=null;u(db,function(ea){ea.setScale()})}h();vc();u(db,function(ea){if(ea.isDirty||x){ea.redraw();x=true}})}if(x){pd();Qc();if(O){Tc(O);O.animate({width:p.plotSizeX,height:p.plotSizeY})}}u(Ia,function(ea){if(ea.isDirty&&ea.visible&&(!ea.isCartesian||ea.xAxis))ea.redraw()});jc&&jc.resetTracker&&jc.resetTracker();Pa(p,"redraw")}function l(){var m=a.xAxis||{},i=a.yAxis||{},y;m=rc(m);u(m,function(x,Q){x.index=Q;x.isX=true});i=rc(i);u(i,function(x,Q){x.index=Q});db=m.concat(i);p.xAxis=[];p.yAxis=[];db=mc(db,function(x){y=new c(p,x);p[y.isXAxis?"xAxis":"yAxis"].push(y);return y});h()}function n(m,i){Kb=va(a.title,m);wc=va(a.subtitle,i);u([["title",m,Kb],["subtitle",i,wc]],function(y){var x=y[0],Q=p[x],na=y[1];y=y[2];if(Q&&na){Q.destroy();Q=null}if(y&&y.text&&!Q)p[x]=ga.text(y.text,0,0).attr({align:y.align,"class":"highcharts-"+x,zIndex:1}).css(y.style).add().align(y,false,Ob)})}function J(){mb=w.renderTo;Pd=nc+qd++;if(Pb(mb))mb=wa.getElementById(mb);mb.innerHTML="";if(!mb.offsetWidth){Vb=mb.cloneNode(0);Na(Vb,{position:oc,top:"-9999px",display:""});wa.body.appendChild(Vb)}Uc=(Vb||mb).offsetWidth;xc=(Vb||mb).offsetHeight;p.chartWidth=Ya=w.width||Uc||600;p.chartHeight=Ua=w.height||(xc>19?xc:400);p.container=ya=ib(Qb,{className:"highcharts-container"+(w.className?" "+w.className:""),id:Pd},pa({position:Qd,overflow:ub,width:Ya+bb,height:Ua+bb,textAlign:"left"},w.style),Vb||mb);p.renderer=ga=w.forExport?new Vc(ya,Ya,Ua,true):new Wc(ya,Ya,Ua);var m,i;if(Rd&&ya.getBoundingClientRect){m=function(){Na(ya,{left:0,top:0});i=ya.getBoundingClientRect();Na(ya,{left:-(i.left-ja(i.left))+bb,top:-(i.top-ja(i.top))+bb})};m();Sa(cb,"resize",m);Sa(p,"destroy",function(){Cb(cb,"resize",m)})}}function D(){function m(){var y=w.width||mb.offsetWidth,x=w.height||mb.offsetHeight;if(y&&x){if(y!==Uc||x!==xc){clearTimeout(i);i=setTimeout(function(){rd(y,x,false)},100)}Uc=y;xc=x}}var i;Sa(cb,"resize",m);Sa(p,"destroy",function(){Cb(cb,"resize",m)})}function aa(){var m=a.labels,i=a.credits,y;n();od=p.legend=new be(p);vc();u(db,function(x){x.setTickPositions(true)});h();vc();pd();lc&&u(db,function(x){x.render()});if(!p.seriesGroup)p.seriesGroup=ga.g("series-group").attr({zIndex:3}).add();u(Ia,function(x){x.translate();x.setTooltipPoints();x.render()});m.items&&u(m.items,function(){var x=pa(m.style,this.style),Q=ja(x.left)+Y,na=ja(x.top)+ha+12;delete x.left;delete x.top;ga.text(this.html,Q,na).attr({zIndex:2}).css(x).add()});if(!p.toolbar)p.toolbar=d(p);if(i.enabled&&!p.credits){y=i.href;ga.text(i.text,0,0).on("click",function(){if(y)location.href=y}).attr({align:i.position.align,zIndex:8}).css(i.style).add().align(i.position)}Qc();p.hasRendered=true;if(Vb){mb.appendChild(ya);Gc(Vb)}}function E(){var m=Ia.length,i=ya&&ya.parentNode;Pa(p,"destroy");Cb(cb,"unload",E);Cb(p);for(u(db,function(y){Cb(y)});m--;)Ia[m].destroy();if(ya){ya.innerHTML="";Cb(ya);i&&i.removeChild(ya);ya=null}if(ga)ga.alignedObjects=null;clearInterval(Od);for(m in p)delete p[m]}function da(){if(!yc&&cb==cb.top&&wa.readyState!=="complete")wa.attachEvent("onreadystatechange",function(){wa.detachEvent("onreadystatechange",da);wa.readyState==="complete"&&da()});else{J();sd();td();u(a.series||[],function(m){g(m)});p.inverted=qa=C(qa,a.chart.inverted);l();p.render=aa;p.tracker=jc=new f(p,a.tooltip);aa();Pa(p,"load");b&&b.apply(p,[p]);u(p.callbacks,function(m){m.apply(p,[p])})}}Mc=va(Mc,Wa.xAxis);hd=va(hd,Wa.yAxis);Wa.xAxis=Wa.yAxis=null;a=va(Wa,a);var w=a.chart,R=w.margin;R=Lb(R)?R:[R,R,R,R];var B=C(w.marginTop,R[0]),K=C(w.marginRight,R[1]),S=C(w.marginBottom,R[2]),I=C(w.marginLeft,R[3]),za=w.spacingTop,Da=w.spacingRight,gb=w.spacingBottom,wb=w.spacingLeft,Ob,Kb,wc,ha,Hb,sb,Y,Ub,mb,Vb,ya,Pd,Uc,xc,Ya,Ua,jd,Pc,Xc,ud,vd,Yc,p=this,ae=(R=w.events)&&!!R.click,wd,kc,uc,nd,bc,Sd,xd,xa,Ca,jc,Rc,Qc,od,Wb,Xb,tc,lc=w.showAxes,Sc=0,db=[],Mb,Ia=[],qa,ga,kd,Od,ld,pd,vc,sd,td,rd,md,Td,be=function(m){function i(L,ka){var T=L.legendItem,ra=L.legendLine,Fa=L.legendSymbol,Ja=Ka.color,Oa=ka?O.itemStyle.color:Ja,fa=ka?L.color:Ja;Ja=ka?L.pointAttr[hb]:{stroke:Ja,fill:Ja};T&&T.css({fill:Oa});ra&&ra.attr({stroke:fa});Fa&&Fa.attr(Ja)}function y(L,ka,T){var ra=L.legendItem,Fa=L.legendLine,Ja=L.legendSymbol;L=L.checkbox;ra&&ra.attr({x:ka,y:T});Fa&&Fa.translate(ka,T-4);Ja&&Ja.attr({x:ka+Ja.xOff,y:T+Ja.yOff});if(L){L.x=ka;L.y=T}}function x(){u(Qa,function(L){var ka=L.checkbox,T=fb.alignAttr;ka&&Na(ka,{left:T.translateX+L.legendItemWidth+ka.x-40+bb,top:T.translateY+ka.y-11+bb})})}function Q(L){var ka,T,ra,Fa,Ja=L.legendItem;Fa=L.series||L;var Oa=Fa.options,fa=Oa&&Oa.borderWidth||0;if(!Ja){Fa=/^(bar|pie|area|column)$/.test(Fa.type);L.legendItem=Ja=ga.text(O.labelFormatter.call(L),0,0).css(L.visible?Za:Ka).on("mouseover",function(){L.setState(Bb);Ja.css(Ga)}).on("mouseout",function(){Ja.css(L.visible?Za:Ka);L.setState()}).on("click",function(){var Gb=function(){L.setVisible()};L.firePointEvent?L.firePointEvent("legendItemClick",null,Gb):Pa(L,"legendItemClick",null,Gb)}).attr({zIndex:2}).add(fb);if(!Fa&&Oa&&Oa.lineWidth){var ca={"stroke-width":Oa.lineWidth,zIndex:2};if(Oa.dashStyle)ca.dashstyle=Oa.dashStyle;L.legendLine=ga.path([ab,-Ma-Aa,0,La,-Aa,0]).attr(ca).add(fb)}if(Fa)ka=ga.rect(T=-Ma-Aa,ra=-11,Ma,12,2).attr({zIndex:3}).add(fb);else if(Oa&&Oa.marker&&Oa.marker.enabled)ka=ga.symbol(L.symbol,T=-Ma/2-Aa,ra=-4,Oa.marker.radius).attr({zIndex:3}).add(fb);if(ka){ka.xOff=T+fa%2/2;ka.yOff=ra+fa%2/2}L.legendSymbol=ka;i(L,L.visible);if(Oa&&Oa.showCheckbox){L.checkbox=ib("input",{type:"checkbox",checked:L.selected,defaultChecked:L.selected},O.itemCheckboxStyle,ya);Sa(L.checkbox,"click",function(Gb){Pa(L,"checkboxClick",{checked:Gb.target.checked},function(){L.select()})})}}ka=Ja.getBBox();T=L.legendItemWidth=O.itemWidth||Ma+Aa+ka.width+Z;P=ka.height;if(ea&&N-v+T>(Ib||Ya-2*z-v)){N=v;F+=P}H=F;y(L,N,F);if(ea)N+=T;else F+=P;eb=Ib||Ha(ea?N-v:T,eb)}function na(){N=v;F=t;H=eb=0;fb||(fb=ga.g("legend").attr({zIndex:7}).add());Qa=[];u(Tb,function(ra){var Fa=ra.options;if(Fa.showInLegend)Qa=Qa.concat(Fa.legendType==="point"?ra.data:ra)});Qa.sort(function(ra,Fa){return(ra.options.legendIndex||0)-(Fa.options.legendIndex||0)});gc&&Qa.reverse();u(Qa,Q);Wb=Ib||eb;Xb=H-t+P;if(oa||ua){Wb+=2*z;Xb+=2*z;if($)Wb>0&&Xb>0&&$.animate($.crisp(null,null,null,Wb,Xb));else $=ga.rect(0,0,Wb,Xb,O.borderRadius,oa||0).attr({stroke:O.borderColor,"stroke-width":oa||0,fill:ua||jb}).add(fb).shadow(O.shadow);$[Qa.length?"show":"hide"]()}for(var L=["left","right","top","bottom"],ka,T=4;T--;){ka=L[T];if(Ra[ka]&&Ra[ka]!=="auto"){O[T<2?"align":"verticalAlign"]=ka;O[T<2?"x":"y"]=ja(Ra[ka])*(T%2?-1:1)}}fb.align(pa(O,{width:Wb,height:Xb}),true,Ob);Sc||x()}var O=m.options.legend;if(O.enabled){var ea=O.layout==="horizontal",Ma=O.symbolWidth,Aa=O.symbolPadding,Qa,Ra=O.style,Za=O.itemStyle,Ga=O.itemHoverStyle,Ka=O.itemHiddenStyle,z=ja(Ra.padding),Z=20,t=18,v=4+z+Ma+Aa,N,F,H,P=0,$,oa=O.borderWidth,ua=O.backgroundColor,fb,eb,Ib=O.width,Tb=m.series,gc=O.reversed;na();Sa(m,"endResize",x);return{colorizeItem:i,destroyItem:function(L){var ka=L.checkbox;u(["legendItem","legendLine","legendSymbol"],function(T){L[T]&&L[T].destroy()});ka&&Gc(L.checkbox)},renderLegend:na}}};kc=function(m,i){return m>=0&&m<=Ca&&i>=0&&i<=xa};Td=function(){Pa(p,"selection",{resetSelection:true},md);p.toolbar.remove("zoom")};md=function(m){var i=Wa.lang,y=p.pointCount<100;p.toolbar.add("zoom",i.resetZoom,i.resetZoomTitle,Td);!m||m.resetSelection?u(db,function(x){x.setExtremes(null,null,false,y)}):u(m.xAxis.concat(m.yAxis),function(x){var Q=x.axis;if(p.tracker[Q.isXAxis?"zoomX":"zoomY"])Q.setExtremes(x.min,x.max,false,y)});j()};vc=function(){var m=a.legend,i=C(m.margin,10),y=m.x,x=m.y,Q=m.align,na=m.verticalAlign,O;sd();if((p.title||p.subtitle)&&!M(B))if(O=Ha(p.title&&!Kb.floating&&!Kb.verticalAlign&&Kb.y||0,p.subtitle&&!wc.floating&&!wc.verticalAlign&&wc.y||0))ha=Ha(ha,O+C(Kb.margin,15)+za);if(m.enabled&&!m.floating)if(Q==="right")M(K)||(Hb=Ha(Hb,Wb-y+i+Da));else if(Q==="left")M(I)||(Y=Ha(Y,Wb+y+i+wb));else if(na==="top")M(B)||(ha=Ha(ha,Xb+x+i+za));else if(na==="bottom")M(S)||(sb=Ha(sb,Xb-x+i+gb));lc&&u(db,function(ea){ea.getOffset()});M(I)||(Y+=Ub[3]);M(B)||(ha+=Ub[0]);M(S)||(sb+=Ub[2]);M(K)||(Hb+=Ub[1]);td()};rd=function(m,i,y){var x=p.title,Q=p.subtitle;Sc+=1;ec(y,p);Pc=Ua;jd=Ya;p.chartWidth=Ya=X(m);p.chartHeight=Ua=X(i);Na(ya,{width:Ya+bb,height:Ua+bb});ga.setSize(Ya,Ua,y);Ca=Ya-Y-Hb;xa=Ua-ha-sb;Mb=null;u(db,function(na){na.isDirty=true;na.setScale()});u(Ia,function(na){na.isDirty=true});p.isDirtyLegend=true;p.isDirtyBox=true;vc();x&&x.align(null,null,Ob);Q&&Q.align(null,null,Ob);j(y);Pc=null;Pa(p,"resize");setTimeout(function(){Pa(p,"endResize",null,function(){Sc-=1})},Cc&&Cc.duration||500)};td=function(){p.plotLeft=Y=X(Y);p.plotTop=ha=X(ha);p.plotWidth=Ca=X(Ya-Y-Hb);p.plotHeight=xa=X(Ua-ha-sb);p.plotSizeX=qa?xa:Ca;p.plotSizeY=qa?Ca:xa;Ob={x:wb,y:za,width:Ya-wb-Da,height:Ua-za-gb}};sd=function(){ha=C(B,za);Hb=C(K,Da);sb=C(S,gb);Y=C(I,wb);Ub=[0,0,0,0]};pd=function(){var m=w.borderWidth||0,i=w.backgroundColor,y=w.plotBackgroundColor,x=w.plotBackgroundImage,Q,na={x:Y,y:ha,width:Ca,height:xa};Q=m+(w.shadow?8:0);if(m||i)if(Xc)Xc.animate(Xc.crisp(null,null,null,Ya-Q,Ua-Q));else Xc=ga.rect(Q/2,Q/2,Ya-Q,Ua-Q,w.borderRadius,m).attr({stroke:w.borderColor,"stroke-width":m,fill:i||jb}).add().shadow(w.shadow);if(y)if(ud)ud.animate(na);else ud=ga.rect(Y,ha,Ca,xa,0).attr({fill:y}).add().shadow(w.plotShadow);if(x)if(vd)vd.animate(na);else vd=ga.image(x,Y,ha,Ca,xa).add();if(w.plotBorderWidth)if(Yc)Yc.animate(Yc.crisp(null,Y,ha,Ca,xa));else Yc=ga.rect(Y,ha,Ca,xa,0,w.plotBorderWidth).attr({stroke:w.plotBorderColor,"stroke-width":w.plotBorderWidth,zIndex:4}).add();p.isDirtyBox=false};Sa(cb,"unload",E);w.reflow!==false&&Sa(p,"load",D);if(R)for(wd in R)Sa(p,wd,R[wd]);p.options=a;p.series=Ia;p.addSeries=function(m,i,y){var x;if(m){ec(y,p);i=C(i,true);Pa(p,"addSeries",{options:m},function(){x=g(m);x.isDirty=true;p.isDirtyLegend=true;i&&p.redraw()})}return x};p.animation=C(w.animation,true);p.destroy=E;p.get=function(m){var i,y,x;for(i=0;i<db.length;i++)if(db[i].options.id===m)return db[i];for(i=0;i<Ia.length;i++)if(Ia[i].options.id===m)return Ia[i];for(i=0;i<Ia.length;i++){x=Ia[i].data;for(y=0;y<x.length;y++)if(x[y].id===m)return x[y]}return null};p.getSelectedPoints=function(){var m=[];u(Ia,function(i){m=m.concat(yd(i.data,function(y){return y.selected}))});return m};p.getSelectedSeries=function(){return yd(Ia,function(m){return m.selected})};p.hideLoading=function(){Zc(bc,{opacity:0},{duration:a.loading.hideDuration,complete:function(){Na(bc,{display:jb})}});xd=false};p.isInsidePlot=kc;p.redraw=j;p.setSize=rd;p.setTitle=n;p.showLoading=function(m){var i=a.loading;if(!bc){bc=ib(Qb,{className:"highcharts-loading"},pa(i.style,{left:Y+bb,top:ha+bb,width:Ca+bb,height:xa+bb,zIndex:10,display:jb}),ya);Sd=ib("span",null,i.labelStyle,bc)}Sd.innerHTML=m||a.lang.loading;if(!xd){Na(bc,{opacity:0,display:""});Zc(bc,{opacity:i.style.opacity},{duration:i.showDuration});xd=true}};p.pointCount=0;p.counters=new Ad;da()}var wa=document,cb=window,sa=Math,X=sa.round,kb=sa.floor,fd=sa.ceil,Ha=sa.max,qb=sa.min,$a=sa.abs,nb=sa.cos,Db=sa.sin,cc=sa.PI,Ud=cc*2/360,pc=navigator.userAgent,Bc=/msie/i.test(pc)&&!cb.opera,zc=wa.documentMode===8,Nd=/AppleWebKit/.test(pc),Rd=/Firefox/.test(pc),yc=!!wa.createElementNS&&!!wa.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,Wc,Jb=wa.documentElement.ontouchstart!==undefined,Vd={},qd=0,rb=1,Hc,Wa,Nc,Cc,$c,Va,Qb="div",oc="absolute",Qd="relative",ub="hidden",nc="highcharts-",Ab="visible",bb="px",jb="none",ab="M",La="L",Wd="rgba(192,192,192,"+(yc?1.0E-6:0.0020)+")",hb="",Bb="hover",Dc,bd,cd,dd,sc,Ec,Fc,Cd,Dd,ed,Ed,Fd,la=cb.HighchartsAdapter,Eb=la||{},u=Eb.each,yd=Eb.grep,mc=Eb.map,va=Eb.merge,Sa=Eb.addEvent,Cb=Eb.removeEvent,Pa=Eb.fireEvent,Zc=Eb.animate,Tc=Eb.stop,vb={};Nc=function(a,b,c){function d(D){return D.toString().replace(/^([0-9])$/,"0$1")}if(!M(b)||isNaN(b))return"Invalid date";a=C(a,"%Y-%m-%d %H:%M:%S");b=new Date(b*rb);var e,f=b[cd](),g=b[dd](),h=b[sc](),j=b[Ec](),l=b[Fc](),n=Wa.lang,J=n.weekdays;n=n.months;b={a:J[g].substr(0,3),A:J[g],d:d(h),e:h,b:n[j].substr(0,3),B:n[j],m:d(j+1),y:l.toString().substr(2,2),Y:l,H:d(f),I:d(f%12||12),l:f%12||12,M:d(b[bd]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:d(b.getSeconds())};for(e in b)a=a.replace("%"+e,b[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};Ad.prototype={wrapColor:function(a){if(this.color>=a)this.color=0},wrapSymbol:function(a){if(this.symbol>=a)this.symbol=0}};la&&la.init&&la.init();if(!la&&cb.jQuery){var ob=jQuery;u=function(a,b){for(var c=0,d=a.length;c<d;c++)if(b.call(a[c],a[c],c,a)===false)return c};yd=ob.grep;mc=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c};va=function(){var a=arguments;return ob.extend(true,null,a[0],a[1],a[2],a[3])};Sa=function(a,b,c){ob(a).bind(b,c)};Cb=function(a,b,c){var d=wa.removeEventListener?"removeEventListener":"detachEvent";if(wa[d]&&!a[d])a[d]=function(){};ob(a).unbind(b,c)};Pa=function(a,b,c,d){var e=ob.Event(b),f="detached"+b;pa(e,c);if(a[b]){a[f]=a[b];a[b]=null}ob(a).trigger(e);if(a[f]){a[b]=a[f];a[f]=null}d&&!e.isDefaultPrevented()&&d(e)};Zc=function(a,b,c){var d=ob(a);if(b.d){a.toD=b.d;b.d=1}d.stop();d.animate(b,c)};Tc=function(a){ob(a).stop()};ob.extend(ob.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}});var ce=jQuery.fx.step._default,de=jQuery.fx.prototype.cur;ob.fx.step._default=function(a){var b=a.elem;b.attr?b.attr(a.prop,a.now):ce.apply(this,arguments)};ob.fx.step.d=function(a){var b=a.elem;if(!a.started){var c=$c.init(b,b.d,b.toD);a.start=c[0];a.end=c[1];a.started=true}b.attr("d",$c.step(a.start,a.end,a.pos,b.toD))};ob.fx.prototype.cur=function(){var a=this.elem;return a.attr?a.attr(this.prop):de.apply(this,arguments)}}$c={init:function(a,b,c){b=b||"";var d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g;b=b.split(" ");c=[].concat(c);var h,j,l=function(n){for(g=n.length;g--;)n[g]===ab&&n.splice(g+1,0,n[g+1],n[g+2],n[g+1],n[g+2])};if(e){l(b);l(c)}if(a.isArea){h=b.splice(b.length-6,6);j=c.splice(c.length-6,6)}if(d){c=[].concat(c).splice(0,f).concat(c);a.shift=false}if(b.length)for(a=c.length;b.length<a;){d=[].concat(b).splice(b.length-f,f);if(e){d[f-6]=d[f-2];d[f-5]=d[f-1]}b=b.concat(d)}if(h){b=b.concat(h);c=c.concat(j)}return[b,c]},step:function(a,b,c,d){var e=[],f=a.length;if(c===1)e=d;else if(f===b.length&&c<1)for(;f--;){d=parseFloat(a[f]);e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d}else e=b;return e}};la={enabled:true,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};Wa={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0"},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:{duration:1E3},events:{},lineWidth:2,shadow:true,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:va(la,{enabled:false,y:-6,formatter:function(){return this.y}}),showInLegend:true,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:oc,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:false,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{cursor:"pointer",color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:oc,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:Qd,top:"1em"},showDuration:100,style:{position:oc,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:true,snap:Jb?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},credits:{enabled:true,text:"",href:"",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var Mc={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:la,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},hd=va(Mc,{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,showLastLabel:true,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:false,formatter:function(){return this.total},style:la.style}}),Zd={labels:{align:"right",x:-8,y:null},title:{rotation:270}},Yd={labels:{align:"left",x:8,y:null},title:{rotation:90}},Md={labels:{align:"center",x:0,y:14},title:{rotation:0}},Xd=va(Md,{labels:{y:-5}}),xb=Wa.plotOptions;la=xb.line;xb.spline=va(la);xb.scatter=va(la,{lineWidth:0,states:{hover:{lineWidth:0}}});xb.area=va(la,{});xb.areaspline=va(xb.area);xb.column=va(la,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}},dataLabels:{y:null,verticalAlign:null}});xb.bar=va(xb.column,{dataLabels:{align:"left",x:5,y:0}});xb.pie=va(la,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:true,dataLabels:{distance:30,enabled:true,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}}});Bd();var Yb=function(a){var b=[],c;(function(d){if(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(d))b=[ja(c[1]),ja(c[2]),ja(c[3]),parseFloat(c[4],10)];else if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d))b=[ja(c[1],16),ja(c[2],16),ja(c[3],16),1]})(a);return{get:function(d){return b&&!isNaN(b[0])?d==="rgb"?"rgb("+b[0]+","+b[1]+","+b[2]+")":d==="a"?b[3]:"rgba("+b.join(",")+")":a},brighten:function(d){if(dc(d)&&d!==0){var e;for(e=0;e<3;e++){b[e]+=ja(d*255);if(b[e]<0)b[e]=0;if(b[e]>255)b[e]=255}}return this},setOpacity:function(d){b[3]=d;return this}}};Ic.prototype={init:function(a,b){this.element=wa.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a},animate:function(a,b,c){if(b=C(b,Cc,true)){b=va(b);if(c)b.complete=c;Zc(this,a,b)}else{this.attr(a);c&&c()}},attr:function(a,b){var c,d,e,f,g=this.element,h=g.nodeName,j=this.renderer,l,n=this.shadows,J,D=this;if(Pb(a)&&M(b)){c=a;a={};a[c]=b}if(Pb(a)){c=a;if(h==="circle")c={x:"cx",y:"cy"}[c]||c;else if(c==="strokeWidth")c="stroke-width";D=Ea(g,c)||this[c]||0;if(c!=="d"&&c!=="visibility")D=parseFloat(D)}else for(c in a){l=false;d=a[c];if(c==="d"){if(d&&d.join)d=d.join(" ");if(/(NaN| {2}|^$)/.test(d))d="M 0 0";this.d=d}else if(c==="x"&&h==="text"){for(e=0;e<g.childNodes.length;e++){f=g.childNodes[e];Ea(f,"x")===Ea(g,"x")&&Ea(f,"x",d)}if(this.rotation)Ea(g,"transform","rotate("+this.rotation+" "+d+" "+ja(a.y||Ea(g,"y"))+")")}else if(c==="fill")d=j.color(d,g,c);else if(h==="circle"&&(c==="x"||c==="y"))c={x:"cx",y:"cy"}[c]||c;else if(c==="translateX"||c==="translateY"||c==="rotation"||c==="verticalAlign"){this[c]=d;this.updateTransform();l=true}else if(c==="stroke")d=j.color(d,g,c);else if(c==="dashstyle"){c="stroke-dasharray";d=d&&d.toLowerCase();if(d==="solid")d=jb;else if(d){d=d.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=d.length;e--;)d[e]=ja(d[e])*a["stroke-width"];d=d.join(",")}}else if(c==="isTracker")this[c]=d;else if(c==="width")d=ja(d);else if(c==="align"){c="text-anchor";d={left:"start",center:"middle",right:"end"}[d]}if(c==="strokeWidth")c="stroke-width";if(Nd&&c==="stroke-width"&&d===0)d=1.0E-6;if(this.symbolName&&/^(x|y|r|start|end|innerR)/.test(c)){if(!J){this.symbolAttr(a);J=true}l=true}if(n&&/^(width|height|visibility|x|y|d)$/.test(c))for(e=n.length;e--;)Ea(n[e],c,d);if((c==="width"||c==="height")&&h==="rect"&&d<0)d=0;if(c==="text"){this.textStr=d;this.added&&j.buildText(this)}else l||Ea(g,c,d)}return D},symbolAttr:function(a){var b=this;u(["x","y","r","start","end","width","height","innerR"],function(c){b[c]=C(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](X(b.x*2)/2,X(b.y*2)/2,b.r,{start:b.start,end:b.end,width:b.width,height:b.height,innerR:b.innerR})})},clip:function(a){return this.attr("clip-path","url("+this.renderer.url+"#"+a.id+")")},crisp:function(a,b,c,d,e){var f,g={},h={},j;a=a||this.strokeWidth||0;j=a%2/2;h.x=kb(b||this.x||0)+j;h.y=kb(c||this.y||0)+j;h.width=kb((d||this.width||0)-2*j);h.height=kb((e||this.height||0)-2*j);h.strokeWidth=a;for(f in h)if(this[f]!==h[f])this[f]=g[f]=h[f];return g},css:function(a){var b=this.element;b=a&&a.width&&b.nodeName==="text";var c,d="",e=function(f,g){return"-"+g.toLowerCase()};if(a&&a.color)a.fill=a.color;this.styles=a=pa(this.styles,a);if(Bc&&!yc){b&&delete a.width;Na(this.element,a)}else{for(c in a)d+=c.replace(/([A-Z])/g,e)+":"+a[c]+";";this.attr({style:d})}b&&this.added&&this.renderer.buildText(this);return this},on:function(a,b){var c=b;if(Jb&&a==="click"){a="touchstart";c=function(d){d.preventDefault();b()}}this.element["on"+a]=c;return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=true;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.inverted,d=this.rotation,e=[];if(c){a+=this.attr("width");b+=this.attr("height")}if(a||b)e.push("translate("+a+","+b+")");if(c)e.push("rotate(90) scale(-1,1)");else d&&e.push("rotate("+d+" "+this.x+" "+this.y+")");e.length&&Ea(this.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){if(a){this.alignOptions=a;this.alignByTranslate=b;c||this.renderer.alignedObjects.push(this)}else{a=this.alignOptions;b=this.alignByTranslate}c=C(c,this.renderer);var d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),h={};if(/^(right|center)$/.test(d))f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=X(f);if(/^(bottom|middle)$/.test(e))g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=X(g);this[this.placed?"animate":"attr"](h);this.placed=true;this.alignAttr=h;return this},getBBox:function(){var a,b,c,d=this.rotation,e=d*Ud;try{a=pa({},this.element.getBBox())}catch(f){a={width:0,height:0}}b=a.width;c=a.height;if(d){a.width=$a(c*Db(e))+$a(b*nb(e));a.height=$a(c*nb(e))+$a(b*Db(e))}return a},show:function(){return this.attr({visibility:Ab})},hide:function(){return this.attr({visibility:ub})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=Ea(f,"zIndex");this.parentInverted=a&&a.inverted;this.textStr!==undefined&&b.buildText(this);if(g){c.handleZ=true;g=ja(g)}if(c.handleZ)for(c=0;c<e.length;c++){a=e[c];b=Ea(a,"zIndex");if(a!==f&&(ja(b)>g||!M(g)&&M(b))){d.insertBefore(f,a);return this}}d.appendChild(f);this.added=true;return this},destroy:function(){var a=this.element||{},b=this.shadows,c=a.parentNode,d;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=null;Tc(this);c&&c.removeChild(a);b&&u(b,function(e){(c=e.parentNode)&&c.removeChild(e)});qc(this.renderer.alignedObjects,this);for(d in this)delete this[d];return null},empty:function(){for(var a=this.element,b=a.childNodes,c=b.length;c--;)a.removeChild(b[c])},shadow:function(a,b){var c=[],d,e,f=this.element,g=this.parentInverted?"(-1,-1)":"(1,1)";if(a){for(d=1;d<=3;d++){e=f.cloneNode(0);Ea(e,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*d,"stroke-width":7-2*d,transform:"translate"+g,fill:jb});b?b.element.appendChild(e):f.parentNode.insertBefore(e,f);c.push(e)}this.shadows=c}return this}};var Vc=function(){this.init.apply(this,arguments)};Vc.prototype={Element:Ic,init:function(a,b,c,d){var e=location,f;f=this.createElement("svg").attr({xmlns:"http://www.w3.org/2000/svg",version:"1.1"});a.appendChild(f.element);this.box=f.element;this.boxWrapper=f;this.alignedObjects=[];this.url=Bc?"":e.href.replace(/#.*?$/,"");this.defs=this.createElement("defs").add();this.forExport=d;this.setSize(b,c,false)},createElement:function(a){var b=new this.Element;b.init(this,a);return b},buildText:function(a){for(var b=a.element,c=C(a.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),d=b.childNodes,e=/style="([^"]+)"/,f=/href="([^"]+)"/,g=Ea(b,"x"),h=a.styles,j=Rd&&h&&h.HcDirection==="rtl"&&!this.forExport&&ja(pc.split("Firefox/")[1])<4,l,n=h&&ja(h.width),J=h&&h.lineHeight,D,aa=d.length;aa--;)b.removeChild(d[aa]);n&&!a.added&&this.box.appendChild(b);u(c,function(E,da){var w,R=0,B;E=E.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");w=E.split("|||");u(w,function(K){if(K!==""||w.length===1){var S={},I=wa.createElementNS("http://www.w3.org/2000/svg","tspan");e.test(K)&&Ea(I,"style",K.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));if(f.test(K)){Ea(I,"onclick",'location.href="'+K.match(f)[1]+'"');Na(I,{cursor:"pointer"})}K=(K.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">");if(j){l=[];for(aa=K.length;aa--;)l.push(K.charAt(aa));K=l.join("")}I.appendChild(wa.createTextNode(K));if(R)S.dx=3;else S.x=g;if(!R){if(da){!yc&&a.renderer.forExport&&Na(I,{display:"block"});B=cb.getComputedStyle&&ja(cb.getComputedStyle(D,null).getPropertyValue("line-height"));if(!B||isNaN(B))B=J||D.offsetHeight||18;Ea(I,"dy",B)}D=I}Ea(I,S);b.appendChild(I);R++;if(n){K=K.replace(/-/g,"- ").split(" ");for(var za,Da=[];K.length||Da.length;){za=b.getBBox().width;S=za>n;if(!S||K.length===1){K=Da;Da=[];if(K.length){I=wa.createElementNS("http://www.w3.org/2000/svg","tspan");Ea(I,{dy:J||16,x:g});b.appendChild(I);if(za>n)n=za}}else{I.removeChild(I.firstChild);Da.unshift(K.pop())}K.length&&I.appendChild(wa.createTextNode(K.join(" ").replace(/- /g,"-")))}}}})})},crispLine:function(a,b){if(a[1]===a[4])a[1]=a[4]=X(a[1])+b%2/2;if(a[2]===a[5])a[2]=a[5]=X(a[2])+b%2/2;return a},path:function(a){return this.createElement("path").attr({d:a,fill:jb})},circle:function(a,b,c){a=Lb(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},arc:function(a,b,c,d,e,f){if(Lb(a)){b=a.y;c=a.r;d=a.innerR;e=a.start;f=a.end;a=a.x}return this.symbol("arc",a||0,b||0,c||0,{innerR:d||0,start:e||0,end:f||0})},rect:function(a,b,c,d,e,f){if(Lb(a)){b=a.y;c=a.width;d=a.height;e=a.r;f=a.strokeWidth;a=a.x}e=this.createElement("rect").attr({rx:e,ry:e,fill:jb});return e.attr(e.crisp(f,a,b,Ha(c,0),Ha(d,0)))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[C(c,true)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){return this.createElement("g").attr(M(a)&&{"class":nc+a})},image:function(a,b,c,d,e){var f={preserveAspectRatio:jb};arguments.length>1&&pa(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e){var f,g=this.symbols[a];g=g&&g(X(b),X(c),d,e);var h=/^url\((.*?)\)$/,j;if(g){f=this.path(g);pa(f,{symbolName:a,x:b,y:c,r:d});e&&pa(f,e)}else if(h.test(a)){var l=function(n,J){n.attr({width:J[0],height:J[1]}).translate(-X(J[0]/2),-X(J[1]/2))};j=a.match(h)[1];a=Vd[j];f=this.image(j).attr({x:b,y:c});if(a)l(f,a);else{f.attr({width:0,height:0});ib("img",{onload:function(){l(f,Vd[j]=[this.width,this.height])},src:j})}}else f=this.circle(b,c,d);return f},symbols:{square:function(a,b,c){c=0.707*c;return[ab,a-c,b-c,La,a+c,b-c,a+c,b+c,a-c,b+c,"Z"]},triangle:function(a,b,c){return[ab,a,b-1.33*c,La,a+c,b+0.67*c,a-c,b+0.67*c,"Z"]},"triangle-down":function(a,b,c){return[ab,a,b+1.33*c,La,a-c,b-0.67*c,a+c,b-0.67*c,"Z"]},diamond:function(a,b,c){return[ab,a,b-c,La,a+c,b,a,b+c,a-c,b,"Z"]},arc:function(a,b,c,d){var e=d.start,f=d.end-1.0E-6,g=d.innerR,h=nb(e),j=Db(e),l=nb(f);f=Db(f);d=d.end-e<cc?0:1;return[ab,a+c*h,b+c*j,"A",c,c,0,d,1,a+c*l,b+c*f,La,a+g*l,b+g*f,"A",g,g,0,d,0,a+g*h,b+g*j,"Z"]}},clipRect:function(a,b,c,d){var e=nc+qd++,f=this.createElement("clipPath").attr({id:e}).add(this.defs);a=this.rect(a,b,c,d,0).add(f);a.id=e;return a},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f=this;b=a.linearGradient;c=nc+qd++;var g,h,j;g=f.createElement("linearGradient").attr({id:c,gradientUnits:"userSpaceOnUse",x1:b[0],y1:b[1],x2:b[2],y2:b[3]}).add(f.defs);u(a.stops,function(l){if(e.test(l[1])){d=Yb(l[1]);h=d.get("rgb");j=d.get("a")}else{h=l[1];j=1}f.createElement("stop").attr({offset:l[0],"stop-color":h,"stop-opacity":j}).add(g)});return"url("+this.url+"#"+c+")"}else if(e.test(a)){d=Yb(a);Ea(b,c+"-opacity",d.get("a"));return d.get("rgb")}else return a},text:function(a,b,c){var d=Wa.chart.style;b=X(C(b,0));c=X(C(c,0));a=this.createElement("text").attr({x:b,y:c,text:a}).css({fontFamily:d.fontFamily,fontSize:d.fontSize});a.x=b;a.y=c;return a}};Wc=Vc;if(!yc){Eb=yb(Ic,{init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ",oc,";"];if(b==="shape"||b===Qb)d.push("left:0;top:0;width:10px;height:10px;");if(zc)d.push("visibility: ",b===Qb?ub:Ab);c.push(' style="',d.join(""),'"/>');if(b){c=b===Qb||b==="span"||b==="img"?c.join(""):a.prepVML(c);this.element=ib(c)}this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box;d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);zc&&d.gVis===ub&&Na(c,{visibility:ub});d.appendChild(c);this.added=true;this.alignOnAdd&&this.updateTransform();return this},attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,h=f.nodeName,j=this.renderer,l=this.symbolName,n,J,D=this.shadows,aa=this;if(Pb(a)&&M(b)){c=a;a={};a[c]=b}if(Pb(a)){c=a;aa=c==="strokeWidth"||c==="stroke-width"?this.strokeweight:this[c]}else for(c in a){d=a[c];n=false;if(l&&/^(x|y|r|start|end|width|height|innerR)/.test(c)){if(!J){this.symbolAttr(a);J=true}n=true}else if(c==="d"){d=d||[];this.d=d.join(" ");e=d.length;for(n=[];e--;)n[e]=dc(d[e])?X(d[e]*10)-5:d[e]==="Z"?"x":d[e];d=n.join(" ")||"x";f.path=d;if(D)for(e=D.length;e--;)D[e].path=d;n=true}else if(c==="zIndex"||c==="visibility"){if(zc&&c==="visibility"&&h==="DIV"){f.gVis=d;n=f.childNodes;for(e=n.length;e--;)Na(n[e],{visibility:d});if(d===Ab)d=null}if(d)g[c]=d;n=true}else if(/^(width|height)$/.test(c)){if(this.updateClipping){this[c]=d;this.updateClipping()}else g[c]=d;n=true}else if(/^(x|y)$/.test(c)){this[c]=d;if(f.tagName==="SPAN")this.updateTransform();else g[{x:"left",y:"top"}[c]]=d}else if(c==="class")f.className=d;else if(c==="stroke"){d=j.color(d,f,c);c="strokecolor"}else if(c==="stroke-width"||c==="strokeWidth"){f.stroked=d?true:false;c="strokeweight";this[c]=d;if(dc(d))d+=bb}else if(c==="dashstyle"){(f.getElementsByTagName("stroke")[0]||ib(j.prepVML(["<stroke/>"]),null,null,f))[c]=d||"solid";this.dashstyle=d;n=true}else if(c==="fill")if(h==="SPAN")g.color=d;else{f.filled=d!==jb?true:false;d=j.color(d,f,c);c="fillcolor"}else if(c==="translateX"||c==="translateY"||c==="rotation"||c==="align"){if(c==="align")c="textAlign";this[c]=d;this.updateTransform();n=true}else if(c==="text"){this.bBox=null;f.innerHTML=d;n=true}if(D&&c==="visibility")for(e=D.length;e--;)D[e].style[c]=d;if(!n)if(zc)f[c]=d;else Ea(f,c,d)}return aa},clip:function(a){var b=this,c=a.members;c.push(b);b.destroyClip=function(){qc(c,b)};return b.css(a.getCSS(b.inverted))},css:function(a){var b=this.element;if(b=a&&b.tagName==="SPAN"&&a.width){delete a.width;this.textWidth=b;this.updateTransform()}this.styles=pa(this.styles,a);Na(this.element,a);return this},destroy:function(){this.destroyClip&&this.destroyClip();Ic.prototype.destroy.apply(this)},empty:function(){for(var a=this.element.childNodes,b=a.length,c;b--;){c=a[b];c.parentNode.removeChild(c)}},getBBox:function(){var a=this.element,b=this.bBox;if(!b){if(a.nodeName==="text")a.style.position=oc;b=this.bBox={x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}return b},on:function(a,b){this.element["on"+a]=function(){var c=cb.event;c.target=c.srcElement;b(c)};return this},updateTransform:function(){if(this.added){var a=this,b=a.element,c=a.translateX||0,d=a.translateY||0,e=a.x||0,f=a.y||0,g=a.textAlign||"left",h={left:0,center:0.5,right:1}[g],j=g&&g!=="left";if(c||d)a.css({marginLeft:c,marginTop:d});a.inverted&&u(b.childNodes,function(R){a.renderer.invertChild(R,b)});if(b.tagName==="SPAN"){var l,n;c=a.rotation;var J;l=0;d=1;var D=0,aa;J=ja(a.textWidth);var E=a.xCorr||0,da=a.yCorr||0,w=[c,g,b.innerHTML,a.textWidth].join(",");if(w!==a.cTT){if(M(c)){l=c*Ud;d=nb(l);D=Db(l);Na(b,{filter:c?["progid:DXImageTransform.Microsoft.Matrix(M11=",d,", M12=",-D,", M21=",D,", M22=",d,", sizingMethod='auto expand')"].join(""):jb})}l=b.offsetWidth;n=b.offsetHeight;if(l>J){Na(b,{width:J+bb,display:"block",whiteSpace:"normal"});l=J}J=X((ja(b.style.fontSize)||12)*1.2);E=d<0&&-l;da=D<0&&-n;aa=d*D<0;E+=D*J*(aa?1-h:h);da-=d*J*(c?aa?h:1-h:1);if(j){E-=l*h*(d<0?-1:1);if(c)da-=n*h*(D<0?-1:1);Na(b,{textAlign:g})}a.xCorr=E;a.yCorr=da}Na(b,{left:e+E,top:f+da});a.cTT=w}}else this.alignOnAdd=true},shadow:function(a,b){var c=[],d,e=this.element,f=this.renderer,g,h=e.style,j,l=e.path;if(l&&typeof l.value!=="string")l="x";if(a){for(d=1;d<=3;d++){j=['<shape isShadow="true" strokeweight="',7-2*d,'" filled="false" path="',l,'" coordsize="100,100" style="',e.style.cssText,'" />'];g=ib(f.prepVML(j),null,{left:ja(h.left)+1,top:ja(h.top)+1});j=['<stroke color="black" opacity="',0.05*d,'"/>'];ib(f.prepVML(j),null,null,g);b?b.element.appendChild(g):e.parentNode.insertBefore(g,e);c.push(g)}this.shadows=c}return this}});la=function(){this.init.apply(this,arguments)};la.prototype=va(Vc.prototype,{Element:Eb,isIE8:pc.indexOf("MSIE 8.0")>-1,init:function(a,b,c){var d;this.alignedObjects=[];d=this.createElement(Qb);a.appendChild(d.element);this.box=d.element;this.boxWrapper=d;this.setSize(b,c,false);if(!wa.namespaces.hcv){wa.namespaces.add("hcv","urn:schemas-microsoft-com:vml");wa.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},clipRect:function(a,b,c,d){var e=this.createElement();return pa(e,{members:[],left:a,top:b,width:c,height:d,getCSS:function(f){var g=this.top,h=this.left,j=h+this.width,l=g+this.height;g={clip:"rect("+X(f?h:g)+"px,"+X(f?l:j)+"px,"+X(f?j:l)+"px,"+X(f?g:h)+"px)"};!f&&zc&&pa(g,{width:j+bb,height:l+bb});return g},updateClipping:function(){u(e.members,function(f){f.css(e.getCSS(f.inverted))})}})},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f,g,h=a.linearGradient,j,l,n,J;u(a.stops,function(D,aa){if(e.test(D[1])){d=Yb(D[1]);f=d.get("rgb");g=d.get("a")}else{f=D[1];g=1}if(aa){n=f;J=g}else{j=f;l=g}});a=90-sa.atan((h[3]-h[1])/(h[2]-h[0]))*180/cc;c=["<",c,' colors="0% ',j,",100% ",n,'" angle="',a,'" opacity="',J,'" o:opacity2="',l,'" type="gradient" focus="100%" />'];ib(this.prepVML(c),null,null,b)}else if(e.test(a)&&b.tagName!=="IMG"){d=Yb(a);c=["<",c,' opacity="',d.get("a"),'"/>'];ib(this.prepVML(c),null,null,b);return d.get("rgb")}else return a},prepVML:function(a){var b=this.isIE8;a=a.join("");if(b){a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')}else a=a.replace("<","<hcv:");return a},text:function(a,b,c){var d=Wa.chart.style;return this.createElement("span").attr({text:a,x:X(b),y:X(c)}).css({whiteSpace:"nowrap",fontFamily:d.fontFamily,fontSize:d.fontSize})},path:function(a){return this.createElement("shape").attr({coordsize:"100 100",d:a})},circle:function(a,b,c){return this.symbol("circle").attr({x:a,y:b,r:c})},g:function(a){var b;if(a)b={className:nc+a,"class":nc+a};return this.createElement(Qb).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});arguments.length>1&&f.css({left:b,top:c,width:d,height:e});return f},rect:function(a,b,c,d,e,f){if(Lb(a)){b=a.y;c=a.width;d=a.height;e=a.r;f=a.strokeWidth;a=a.x}var g=this.symbol("rect");g.r=e;return g.attr(g.crisp(f,a,b,Ha(c,0),Ha(d,0)))},invertChild:function(a,b){var c=b.style;Na(a,{flip:"x",left:ja(c.width)-10,top:ja(c.height)-10,rotation:-90})},symbols:{arc:function(a,b,c,d){var e=d.start,f=d.end,g=nb(e),h=Db(e),j=nb(f),l=Db(f);d=d.innerR;var n=0.07/c,J=d&&0.1/d||0;if(f-e===0)return["x"];else if(2*cc-f+e<n)j=-n;else if(f-e<J)j=nb(e+J);return["wa",a-c,b-c,a+c,b+c,a+c*g,b+c*h,a+c*j,b+c*l,"at",a-d,b-d,a+d,b+d,a+d*j,b+d*l,a+d*g,b+d*h,"x","e"]},circle:function(a,b,c){return["wa",a-c,b-c,a+c,b+c,a+c,b,a+c,b,"e"]},rect:function(a,b,c,d){if(!M(d))return[];var e=d.width;d=d.height;var f=a+e,g=b+d;c=qb(c,e,d);return[ab,a+c,b,La,f-c,b,"wa",f-2*c,b,f,b+2*c,f-c,b,f,b+c,La,f,g-c,"wa",f-2*c,g-2*c,f,g,f,g-c,f-c,g,La,a+c,g,"wa",a,g-2*c,a+2*c,g,a+c,g,a,g-c,La,a,b+c,"wa",a,b,a+2*c,b+2*c,a,b+c,a+c,b,"x","e"]}}});Wc=la}Gd.prototype.callbacks=[];var Ac=function(){};Ac.prototype={init:function(a,b){var c=a.chart.counters,d;this.series=a;this.applyOptions(b);this.pointAttr={};if(a.options.colorByPoint){d=a.chart.options.colors;if(!this.options)this.options={};this.color=this.options.color=this.color||d[c.color++];c.wrapColor(d.length)}a.chart.pointCount++;return this},applyOptions:function(a){var b=this.series;this.config=a;if(dc(a)||a===null)this.y=a;else if(Lb(a)&&!dc(a.length)){pa(this,a);this.options=a}else if(Pb(a[0])){this.name=a[0];this.y=a[1]}else if(dc(a[0])){this.x=a[0];this.y=a[1]}if(this.x===Va)this.x=b.autoIncrement()},destroy:function(){var a=this,b=a.series,c;b.chart.pointCount--;a===b.chart.hoverPoint&&a.onMouseOut();b.chart.hoverPoints=null;Cb(a);u(["graphic","tracker","group","dataLabel","connector"],function(d){a[d]&&a[d].destroy()});a.legendItem&&a.series.chart.legend.destroyItem(a);for(c in a)a[c]=null},getLabelConfig:function(){return{x:this.category,y:this.y,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(a,b){var c=this,d=c.series.chart;c.selected=a=C(a,!c.selected);c.firePointEvent(a?"select":"unselect");c.setState(a&&"select");b||u(d.getSelectedPoints(),function(e){if(e.selected&&e!==c){e.selected=false;e.setState(hb);e.firePointEvent("unselect")}})},onMouseOver:function(){var a=this.series.chart,b=a.tooltip,c=a.hoverPoint;c&&c!==this&&c.onMouseOut();this.firePointEvent("mouseOver");b&&!b.shared&&b.refresh(this);this.setState(Bb);a.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut");this.setState();this.series.chart.hoverPoint=null},tooltipFormatter:function(a){var b=this.series;return['<span style="color:'+b.color+'">',this.name||b.name,"</span>: ",!a?"<b>x = "+(this.name||this.x)+",</b> ":"","<b>",!a?"y = ":"",this.y,"</b>"].join("")},update:function(a,b,c){var d=this,e=d.series,f=d.graphic,g=e.chart;b=C(b,true);d.firePointEvent("update",{options:a},function(){d.applyOptions(a);if(Lb(a)){e.getAttribs();f&&f.attr(d.pointAttr[e.state])}e.isDirty=true;b&&g.redraw(c)})},remove:function(a,b){var c=this,d=c.series,e=d.chart,f=d.data;ec(b,e);a=C(a,true);c.firePointEvent("remove",null,function(){qc(f,c);c.destroy();d.isDirty=true;a&&e.redraw()})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;if(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])this.importEvents();if(a==="click"&&e.allowPointSelect)c=function(f){d.select(null,f.ctrlKey||f.metaKey||f.shiftKey)};Pa(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=va(this.series.options.point,this.options).events,b;this.events=a;for(b in a)Sa(this,b,a[b]);this.hasImportedEvents=true}},setState:function(a){var b=this.series,c=b.options.states,d=xb[b.type].marker&&b.options.marker,e=d&&!d.enabled,f=(d=d&&d.states[a])&&d.enabled===false,g=b.stateMarkerGraphic,h=b.chart,j=this.pointAttr;a=a||hb;if(!(a===this.state||this.selected&&a!=="select"||c[a]&&c[a].enabled===false||a&&(f||e&&!d.enabled))){if(this.graphic)this.graphic.attr(j[a]);else{if(a){if(!g)b.stateMarkerGraphic=g=h.renderer.circle(0,0,j[a].r).attr(j[a]).add(b.group);g.translate(this.plotX,this.plotY)}if(g)g[a?"show":"hide"]()}this.state=a}}};var pb=function(){};pb.prototype={isCartesian:true,type:"line",pointClass:Ac,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(a,b){var c,d;d=a.series.length;this.chart=a;b=this.setOptions(b);pa(this,{index:d,options:b,name:b.name||"Series "+(d+1),state:hb,pointAttr:{},visible:b.visible!==false,selected:b.selected===true});d=b.events;for(c in d)Sa(this,c,d[c]);if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=true;this.getColor();this.getSymbol();this.setData(b.data,false)},autoIncrement:function(){var a=this.options,b=this.xIncrement;b=C(b,a.pointStart,0);this.pointInterval=C(this.pointInterval,a.pointInterval,1);this.xIncrement=b+this.pointInterval;return b},cleanData:function(){var a=this.chart,b=this.data,c,d,e=a.smallestInterval,f,g;b.sort(function(h,j){return h.x-j.x});if(this.options.connectNulls)for(g=b.length-1;g>=0;g--)b[g].y===null&&b[g-1]&&b[g+1]&&b.splice(g,1);for(g=b.length-1;g>=0;g--)if(b[g-1]){f=b[g].x-b[g-1].x;if(f>0&&(d===Va||f<d)){d=f;c=g}}if(e===Va||d<e)a.smallestInterval=d;this.closestPoints=c},getSegments:function(){var a=-1,b=[],c=this.data;u(c,function(d,e){if(d.y===null){e>a+1&&b.push(c.slice(a+1,e));a=e}else e===c.length-1&&b.push(c.slice(a+1,e+1))});this.segments=b},setOptions:function(a){var b=this.chart.options.plotOptions;return va(b[this.type],b.series,a)},getColor:function(){var a=this.chart.options.colors,b=this.chart.counters;this.color=this.options.color||a[b.color++]||"#0000ff";b.wrapColor(a.length)},getSymbol:function(){var a=this.chart.options.symbols,b=this.chart.counters;this.symbol=this.options.marker.symbol||a[b.symbol++];b.wrapSymbol(a.length)},addPoint:function(a,b,c,d){var e=this.data,f=this.graph,g=this.area,h=this.chart;a=(new this.pointClass).init(this,a);ec(d,h);if(f&&c)f.shift=c;if(g){g.shift=c;g.isArea=true}b=C(b,true);e.push(a);c&&e[0].remove(false);this.getAttribs();this.isDirty=true;b&&h.redraw()},setData:function(a,b){var c=this,d=c.data,e=c.initialColor,f=c.chart,g=d&&d.length||0;c.xIncrement=null;if(M(e))f.counters.color=e;for(a=mc(rc(a||[]),function(h){return(new c.pointClass).init(c,h)});g--;)d[g].destroy();c.data=a;c.cleanData();c.getSegments();c.getAttribs();c.isDirty=true;f.isDirtyBox=true;C(b,true)&&f.redraw(false)},remove:function(a,b){var c=this,d=c.chart;a=C(a,true);if(!c.isRemoving){c.isRemoving=true;Pa(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=true;a&&d.redraw(b)})}c.isRemoving=false},translate:function(){for(var a=this.chart,b=this.options.stacking,c=this.xAxis.categories,d=this.yAxis,e=this.data,f=e.length;f--;){var g=e[f],h=g.x,j=g.y,l=g.low,n=d.stacks[(j<0?"-":"")+this.stackKey];g.plotX=this.xAxis.translate(h);if(b&&this.visible&&n&&n[h]){l=n[h];h=l.total;l.cum=l=l.cum-j;j=l+j;if(b==="percent"){l=h?l*100/h:0;j=h?j*100/h:0}g.percentage=h?g.y*100/h:0;g.stackTotal=h}if(M(l))g.yBottom=d.translate(l,0,1,0,1);if(j!==null)g.plotY=d.translate(j,0,1,0,1);g.clientX=a.inverted?a.plotHeight-g.plotX:g.plotX;g.category=c&&c[g.x]!==Va?c[g.x]:g.x}},setTooltipPoints:function(a){var b=this.chart,c=b.inverted,d=[],e=X((c?b.plotTop:b.plotLeft)+b.plotSizeX),f,g,h=[];if(a)this.tooltipPoints=null;u(this.segments,function(j){d=d.concat(j)});if(this.xAxis&&this.xAxis.reversed)d=d.reverse();u(d,function(j,l){f=d[l-1]?d[l-1]._high+1:0;for(g=j._high=d[l+1]?kb((j.plotX+(d[l+1]?d[l+1].plotX:e))/2):e;f<=g;)h[c?e-f++:f++]=j});this.tooltipPoints=h},onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(!(!Jb&&a.mouseIsDown)){b&&b!==this&&b.onMouseOut();this.options.events.mouseOver&&Pa(this,"mouseOver");this.tracker&&this.tracker.toFront();this.setState(Bb);a.hoverSeries=this}},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;d&&d.onMouseOut();this&&a.events.mouseOut&&Pa(this,"mouseOut");c&&!a.stickyTracking&&c.hide();this.setState();b.hoverSeries=null},animate:function(a){var b=this.chart,c=this.clipRect,d=this.options.animation;if(d&&!Lb(d))d={};if(a){if(!c.isAnimating){c.attr("width",0);c.isAnimating=true}}else{c.animate({width:b.plotSizeX},d);this.animate=null}},drawPoints:function(){var a,b=this.data,c=this.chart,d,e,f,g,h,j;if(this.options.marker.enabled)for(f=b.length;f--;){g=b[f];d=g.plotX;e=g.plotY;j=g.graphic;if(e!==Va&&!isNaN(e)){a=g.pointAttr[g.selected?"select":hb];h=a.r;if(j)j.animate({x:d,y:e,r:h});else g.graphic=c.renderer.symbol(C(g.marker&&g.marker.symbol,this.symbol),d,e,h).attr(a).add(this.group)}}},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={};a=a||{};b=b||{};c=c||{};d=d||{};for(f in e){g=e[f];h[f]=C(a[g],b[f],c[f],d[f])}return h},getAttribs:function(){var a=this,b=xb[a.type].marker?a.options.marker:a.options,c=b.states,d=c[Bb],e,f=a.color,g={stroke:f,fill:f},h=a.data,j=[],l,n=a.pointAttrToOptions,J;if(a.options.marker){d.radius=d.radius||b.radius+2;d.lineWidth=d.lineWidth||b.lineWidth+1}else d.color=d.color||Yb(d.color||f).brighten(d.brightness).get();j[hb]=a.convertAttribs(b,g);u([Bb,"select"],function(D){j[D]=a.convertAttribs(c[D],j[hb])});a.pointAttr=j;for(f=h.length;f--;){g=h[f];if((b=g.options&&g.options.marker||g.options)&&b.enabled===false)b.radius=0;e=false;if(g.options)for(J in n)if(M(b[n[J]]))e=true;if(e){l=[];c=b.states||{};e=c[Bb]=c[Bb]||{};if(!a.options.marker)e.color=Yb(e.color||g.options.color).brighten(e.brightness||d.brightness).get();l[hb]=a.convertAttribs(b,j[hb]);l[Bb]=a.convertAttribs(c[Bb],j[Bb],l[hb]);l.select=a.convertAttribs(c.select,j.select,l[hb])}else l=j;g.pointAttr=l}},destroy:function(){var a=this,b=a.chart,c=/\/5[0-9\.]+ (Safari|Mobile)\//.test(pc),d,e;Pa(a,"destroy");Cb(a);a.legendItem&&a.chart.legend.destroyItem(a);u(a.data,function(f){f.destroy()});u(["area","graph","dataLabelsGroup","group","tracker"],function(f){if(a[f]){d=c&&f==="group"?"hide":"destroy";a[f][d]()}});if(b.hoverSeries===a)b.hoverSeries=null;qc(b.series,a);for(e in a)delete a[e]},drawDataLabels:function(){if(this.options.dataLabels.enabled){var a=this,b,c,d=a.data,e=a.options.dataLabels,f,g=a.dataLabelsGroup,h=a.chart,j=h.inverted,l=a.type,n;n=a.options.stacking;var J=l==="column"||l==="bar",D=e.verticalAlign===null,aa=e.y===null;if(J)if(n){if(D)e=va(e,{verticalAlign:"middle"});if(aa)e=va(e,{y:{top:14,middle:4,bottom:-6}[e.verticalAlign]})}else if(D)e=va(e,{verticalAlign:"top"});if(!g)g=a.dataLabelsGroup=h.renderer.g("data-labels").attr({visibility:a.visible?Ab:ub,zIndex:6}).translate(h.plotLeft,h.plotTop).add();n=e.color;if(n==="auto")n=null;e.style.color=C(n,a.color);u(d,function(E){var da=E.barX,w=da&&da+E.barW/2||E.plotX||-999,R=C(E.plotY,-999),B=E.dataLabel,K=e.align,S=aa?E.y>0?-6:12:e.y;f=e.formatter.call(E.getLabelConfig());b=(j?h.plotWidth-R:w)+e.x;c=(j?h.plotHeight-w:R)+S;if(l==="column")b+={left:-1,right:1}[K]*E.barW/2||0;if(j&&E.y<0){K="right";b-=10}if(B){if(j&&!e.y)c=c+ja(B.styles.lineHeight)*0.9-B.getBBox().height/2;B.attr({text:f}).animate({x:b,y:c})}else if(M(f)){B=E.dataLabel=h.renderer.text(f,b,c).attr({align:K,rotation:e.rotation,zIndex:1}).css(e.style).add(g);j&&!e.y&&B.attr({y:c+ja(B.styles.lineHeight)*0.9-B.getBBox().height/2})}if(J&&a.options.stacking){w=E.barY;R=E.barW;E=E.barH;B.align(e,null,{x:j?h.plotWidth-w-E:da,y:j?h.plotHeight-da-R:w,width:j?E:R,height:j?R:E})}})}},drawGraph:function(){var a=this,b=a.options,c=a.graph,d=[],e,f=a.area,g=a.group,h=b.lineColor||a.color,j=b.lineWidth,l=b.dashStyle,n,J=a.chart.renderer,D=a.yAxis.getThreshold(b.threshold||0),aa=/^area/.test(a.type),E=[],da=[];u(a.segments,function(w){n=[];u(w,function(S,I){if(a.getPointSpline)n.push.apply(n,a.getPointSpline(w,S,I));else{n.push(I?La:ab);I&&b.step&&n.push(S.plotX,w[I-1].plotY);n.push(S.plotX,S.plotY)}});if(w.length>1)d=d.concat(n);else E.push(w[0]);if(aa){var R=[],B,K=n.length;for(B=0;B<K;B++)R.push(n[B]);K===3&&R.push(La,n[1],n[2]);if(b.stacking&&a.type!=="areaspline")for(B=w.length-1;B>=0;B--)R.push(w[B].plotX,w[B].yBottom);else R.push(La,w[w.length-1].plotX,D,La,w[0].plotX,D);da=da.concat(R)}});a.graphPath=d;a.singlePoints=E;if(aa){e=C(b.fillColor,Yb(a.color).setOpacity(b.fillOpacity||0.75).get());if(f)f.animate({d:da});else a.area=a.chart.renderer.path(da).attr({fill:e}).add(g)}if(c)c.animate({d:d});else if(j){c={stroke:h,"stroke-width":j};if(l)c.dashstyle=l;a.graph=J.path(d).attr(c).add(g).shadow(b.shadow)}},render:function(){var a=this,b=a.chart,c,d,e=a.options,f=e.animation,g=f&&a.animate;f=g?f&&f.duration||500:0;var h=a.clipRect,j=b.renderer;if(!h){h=a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:j.clipRect(0,0,b.plotSizeX,b.plotSizeY);if(!b.clipRect)b.clipRect=h}if(!a.group){c=a.group=j.g("series");if(b.inverted){d=function(){c.attr({width:b.plotWidth,height:b.plotHeight}).invert()};d();Sa(b,"resize",d);Sa(a,"destroy",function(){Cb(b,"resize",d)})}c.clip(a.clipRect).attr({visibility:a.visible?Ab:ub,zIndex:e.zIndex}).translate(b.plotLeft,b.plotTop).add(b.seriesGroup)}a.drawDataLabels();g&&a.animate(true);a.drawGraph&&a.drawGraph();a.drawPoints();a.options.enableMouseTracking!==false&&a.drawTracker();g&&a.animate();setTimeout(function(){h.isAnimating=false;if((c=a.group)&&h!==b.clipRect&&h.renderer){c.clip(a.clipRect=b.clipRect);h.destroy()}},f);a.isDirty=false},redraw:function(){var a=this.chart,b=this.group;if(b){a.inverted&&b.attr({width:a.plotWidth,height:a.plotHeight});b.animate({translateX:a.plotLeft,translateY:a.plotTop})}this.translate();this.setTooltipPoints(true);this.render()},setState:function(a){var b=this.options,c=this.graph,d=b.states;b=b.lineWidth;a=a||hb;if(this.state!==a){this.state=a;if(!(d[a]&&d[a].enabled===false)){if(a)b=d[a].lineWidth||b+1;if(c&&!c.dashstyle)c.attr({"stroke-width":b},a?0:500)}}},setVisible:function(a,b){var c=this.chart,d=this.legendItem,e=this.group,f=this.tracker,g=this.dataLabelsGroup,h,j=this.data,l=c.options.chart.ignoreHiddenSeries;h=this.visible;h=(this.visible=a=a===Va?!h:a)?"show":"hide";e&&e[h]();if(f)f[h]();else for(e=j.length;e--;){f=j[e];f.tracker&&f.tracker[h]()}g&&g[h]();d&&c.legend.colorizeItem(this,a);this.isDirty=true;this.options.stacking&&u(c.series,function(n){if(n.options.stacking&&n.visible)n.isDirty=true});if(l)c.isDirtyBox=true;b!==false&&c.redraw();Pa(this,h)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(a){this.selected=a=a===Va?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;Pa(this,a?"select":"unselect")},drawTracker:function(){var a=this,b=a.options,c=[].concat(a.graphPath),d=c.length,e=a.chart,f=e.options.tooltip.snap,g=a.tracker,h=b.cursor;h=h&&{cursor:h};var j=a.singlePoints,l;if(d)for(l=d+1;l--;){c[l]===ab&&c.splice(l+1,0,c[l+1]-f,c[l+2],La);if(l&&c[l]===ab||l===d)c.splice(l,0,La,c[l-2]+f,c[l-1])}for(l=0;l<j.length;l++){d=j[l];c.push(ab,d.plotX-f,d.plotY,La,d.plotX+f,d.plotY)}if(g)g.attr({d:c});else a.tracker=e.renderer.path(c).attr({isTracker:true,stroke:Wd,fill:jb,"stroke-width":b.lineWidth+2*f,visibility:a.visible?Ab:ub,zIndex:1}).on(Jb?"touchstart":"mouseover",function(){e.hoverSeries!==a&&a.onMouseOver()}).on("mouseout",function(){b.stickyTracking||a.onMouseOut()}).css(h).add(e.trackerGroup)}};la=yb(pb);vb.line=la;la=yb(pb,{type:"area"});vb.area=la;la=yb(pb,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],h,j,l,n;if(c&&c<a.length-1){a=f.plotY;l=g.plotX;g=g.plotY;var J;h=(1.5*d+f.plotX)/2.5;j=(1.5*e+a)/2.5;l=(1.5*d+l)/2.5;n=(1.5*e+g)/2.5;J=(n-j)*(l-d)/(l-h)+e-n;j+=J;n+=J;if(j>a&&j>e){j=Ha(a,e);n=2*e-j}else if(j<a&&j<e){j=qb(a,e);n=2*e-j}if(n>g&&n>e){n=Ha(g,e);j=2*e-n}else if(n<g&&n<e){n=qb(g,e);j=2*e-n}b.rightContX=l;b.rightContY=n}if(c){b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,h||d,j||e,d,e];f.rightContX=f.rightContY=null}else b=[ab,d,e];return b}});vb.spline=la;la=yb(la,{type:"areaspline"});vb.areaspline=la;var ad=yb(pb,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){pb.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasColumn=true;b.hasRendered&&u(b.series,function(c){if(c.type===a.type)c.isDirty=true})},translate:function(){var a=this,b=a.chart,c=a.options,d=c.stacking,e=c.borderWidth,f=0,g=a.xAxis.reversed,h=a.xAxis.categories,j={},l,n;pb.prototype.translate.apply(a);u(b.series,function(S){if(S.type===a.type&&S.visible){if(S.options.stacking){l=S.stackKey;if(j[l]===Va)j[l]=f++;n=j[l]}else n=f++;S.columnIndex=n}});var J=a.data,D=a.closestPoints;h=$a(J[1]?J[D].plotX-J[D-1].plotX:b.plotSizeX/(h&&h.length||1));D=h*c.groupPadding;var aa=(h-2*D)/f,E=c.pointWidth,da=M(E)?(aa-E)/2:aa*c.pointPadding,w=Ha(C(E,aa-2*da),1),R=da+(D+((g?f-a.columnIndex:a.columnIndex)||0)*aa-h/2)*(g?-1:1),B=a.yAxis.getThreshold(c.threshold||0),K=C(c.minPointLength,5);u(J,function(S){var I=S.plotY,za=S.yBottom||B,Da=S.plotX+R,gb=fd(qb(I,za)),wb=fd(Ha(I,za)-gb),Ob=a.yAxis.stacks[(S.y<0?"-":"")+a.stackKey],Kb;d&&a.visible&&Ob&&Ob[S.x]&&Ob[S.x].setOffset(R,w);if($a(wb)<K){if(K){wb=K;gb=$a(gb-B)>K?za-K:B-(I<=B?K:0)}Kb=gb-3}pa(S,{barX:Da,barY:gb,barW:w,barH:wb});S.shapeType="rect";I=pa(b.renderer.Element.prototype.crisp.apply({},[e,Da,gb,w,wb]),{r:c.borderRadius});if(e%2){I.y-=1;I.height+=1}S.shapeArgs=I;S.trackerArgs=M(Kb)&&va(S.shapeArgs,{height:Ha(6,wb+3),y:Kb})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d,e;u(a.data,function(f){var g=f.plotY;if(g!==Va&&!isNaN(g)&&f.y!==null){d=f.graphic;e=f.shapeArgs;if(d){Tc(d);d.animate(e)}else f.graphic=c[f.shapeType](e).attr(f.pointAttr[f.selected?"select":hb]).add(a.group).shadow(b.shadow)}})},drawTracker:function(){var a=this,b=a.chart,c=b.renderer,d,e,f=+new Date,g=a.options.cursor,h=g&&{cursor:g},j;u(a.data,function(l){e=l.tracker;d=l.trackerArgs||l.shapeArgs;delete d.strokeWidth;if(l.y!==null)if(e)e.attr(d);else l.tracker=c[l.shapeType](d).attr({isTracker:f,fill:Wd,visibility:a.visible?Ab:ub,zIndex:1}).on(Jb?"touchstart":"mouseover",function(n){j=n.relatedTarget||n.fromElement;b.hoverSeries!==a&&Ea(j,"isTracker")!==f&&a.onMouseOver();l.onMouseOver()}).on("mouseout",function(n){if(!a.options.stickyTracking){j=n.relatedTarget||n.toElement;Ea(j,"isTracker")!==f&&a.onMouseOut()}}).css(h).add(l.group||b.trackerGroup)})},animate:function(a){var b=this,c=b.data;if(!a){u(c,function(d){var e=d.graphic;d=d.shapeArgs;if(e){e.attr({height:0,y:b.yAxis.translate(0,0,1)});e.animate({height:d.height,y:d.y},b.options.animation)}});b.animate=null}},remove:function(){var a=this,b=a.chart;b.hasRendered&&u(b.series,function(c){if(c.type===a.type)c.isDirty=true});pb.prototype.remove.apply(a,arguments)}});vb.column=ad;la=yb(ad,{type:"bar",init:function(a){a.inverted=this.inverted=true;ad.prototype.init.apply(this,arguments)}});vb.bar=la;la=yb(pb,{type:"scatter",translate:function(){var a=this;pb.prototype.translate.apply(a);u(a.data,function(b){b.shapeType="circle";b.shapeArgs={x:b.plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})},drawTracker:function(){var a=this,b=a.options.cursor,c=b&&{cursor:b},d;u(a.data,function(e){(d=e.graphic)&&d.attr({isTracker:true}).on("mouseover",function(){a.onMouseOver();e.onMouseOver()}).on("mouseout",function(){a.options.stickyTracking||a.onMouseOut()}).css(c)})},cleanData:function(){}});vb.scatter=la;la=yb(Ac,{init:function(){Ac.prototype.init.apply(this,arguments);var a=this,b;pa(a,{visible:a.visible!==false,name:C(a.name,"Slice")});b=function(){a.slice()};Sa(a,"select",b);Sa(a,"unselect",b);return a},setVisible:function(a){var b=this.series.chart,c=this.tracker,d=this.dataLabel,e=this.connector,f=this.shadowGroup,g;g=(this.visible=a=a===Va?!this.visible:a)?"show":"hide";this.group[g]();c&&c[g]();d&&d[g]();e&&e[g]();f&&f[g]();this.legendItem&&b.legend.colorizeItem(this,a)},slice:function(a,b,c){var d=this.series.chart,e=this.slicedTranslation;ec(c,d);C(b,true);a=this.sliced=M(a)?a:!this.sliced;a={translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop};this.group.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)}});la=yb(pb,{type:"pie",isCartesian:false,pointClass:la,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var a=this;u(a.data,function(b){var c=b.graphic;b=b.shapeArgs;var d=-cc/2;if(c){c.attr({r:0,start:d,end:d});c.animate({r:b.r,start:b.start,end:b.end},a.options.animation)}});a.animate=null},translate:function(){var a=0,b=this,c=-0.25,d=b.options,e=d.slicedOffset,f=e+d.borderWidth,g=d.center.concat([d.size,d.innerSize||0]),h=b.chart,j=h.plotWidth,l=h.plotHeight,n,J,D,aa=b.data,E=2*cc,da,w=qb(j,l),R,B,K,S=d.dataLabels.distance;g=mc(g,function(I,za){return(R=/%$/.test(I))?[j,l,w,w][za]*ja(I)/100:I});b.getX=function(I,za){D=sa.asin((I-g[1])/(g[2]/2+S));return g[0]+(za?-1:1)*nb(D)*(g[2]/2+S)};b.center=g;u(aa,function(I){a+=I.y});u(aa,function(I){da=a?I.y/a:0;n=X(c*E*1E3)/1E3;c+=da;J=X(c*E*1E3)/1E3;I.shapeType="arc";I.shapeArgs={x:g[0],y:g[1],r:g[2]/2,innerR:g[3]/2,start:n,end:J};D=(J+n)/2;I.slicedTranslation=mc([nb(D)*e+h.plotLeft,Db(D)*e+h.plotTop],X);B=nb(D)*g[2]/2;b.radiusY=K=Db(D)*g[2]/2;I.tooltipPos=[g[0]+B*0.7,g[1]+K*0.7];I.labelPos=[g[0]+B+nb(D)*S,g[1]+K+Db(D)*S,g[0]+B+nb(D)*f,g[1]+K+Db(D)*f,g[0]+B,g[1]+K,S<0?"center":D<E/4?"left":"right",D];I.percentage=da*100;I.total=a});this.setTooltipPoints()},render:function(){this.drawPoints();this.options.enableMouseTracking!==false&&this.drawTracker();this.drawDataLabels();this.options.animation&&this.animate&&this.animate();this.isDirty=false},drawPoints:function(){var a=this.chart,b=a.renderer,c,d,e,f=this.options.shadow,g,h;u(this.data,function(j){d=j.graphic;h=j.shapeArgs;e=j.group;g=j.shadowGroup;if(f&&!g)g=j.shadowGroup=b.g("shadow").attr({zIndex:4}).add();if(!e)e=j.group=b.g("point").attr({zIndex:5}).add();c=j.sliced?j.slicedTranslation:[a.plotLeft,a.plotTop];e.translate(c[0],c[1]);g&&g.translate(c[0],c[1]);if(d)d.animate(h);else j.graphic=b.arc(h).attr(pa(j.pointAttr[hb],{"stroke-linejoin":"round"})).add(j.group).shadow(f,g);j.visible===false&&j.setVisible(false)})},drawDataLabels:function(){var a=this.data,b,c=this.chart,d=this.options.dataLabels,e=C(d.connectorPadding,10),f=C(d.connectorWidth,1),g,h,j=d.distance,l=this.radiusY,n=j>0,J=this.center[1],D=[[],[]],aa,E,da,w,R=2,B;if(d.enabled){pb.prototype.drawDataLabels.apply(this);u(a,function(gb){D[gb.labelPos[7]<cc/2?0:1].push(gb)});D[1].reverse();w=function(gb,wb){return wb.y-gb.y};for(a=D[0][0]&&D[0][0].dataLabel&&ja(D[0][0].dataLabel.styles.lineHeight);R--;){var K=[],S=[],I=D[R],za=I.length,Da;for(B=J+l-j;B<=J-l+j;B+=a)K.push(B);da=K.length;if(za>da){h=[].concat(I);h.sort(w);for(B=za;B--;)h[B].rank=B;for(B=za;B--;)I[B].rank>=da&&I.splice(B,1);za=I.length}for(B=0;B<za;B++){b=I[B];h=b.labelPos;b=9999;for(E=0;E<da;E++){g=$a(K[E]-h[1]);if(g<b){b=g;Da=E}}if(Da<B&&K[B]!==null)Da=B;else if(da<za-B+Da&&K[B]!==null)Da=da-za+B;else for(;K[Da]===null;)Da++;S.push({i:Da,y:K[Da]});K[Da]=null}S.sort(w);for(B=0;B<za;B++){b=I[B];h=b.labelPos;g=b.dataLabel;E=S.pop();aa=h[1];da=b.visible===false?ub:Ab;Da=E.i;E=E.y;if(aa>E&&K[Da+1]!==null||aa<E&&K[Da-1]!==null)E=aa;aa=this.getX(E,R);g.attr({visibility:da,align:h[6]})[g.moved?"animate":"attr"]({x:aa+d.x+({left:e,right:-e}[h[6]]||0),y:E+d.y});g.moved=true;if(n&&f){g=b.connector;h=[ab,aa+(h[6]==="left"?5:-5),E,La,aa,E,La,h[2],h[3],La,h[4],h[5]];if(g){g.animate({d:h});g.attr("visibility",da)}else b.connector=g=this.chart.renderer.path(h).attr({"stroke-width":f,stroke:d.connectorColor||"#606060",visibility:da,zIndex:3}).translate(c.plotLeft,c.plotTop).add()}}}}},drawTracker:ad.prototype.drawTracker,getSymbol:function(){}});vb.pie=la;cb.Highcharts={Chart:Gd,dateFormat:Nc,pathAnim:$c,getOptions:function(){return Wa},numberFormat:zd,Point:Ac,Color:Yb,Renderer:Wc,seriesTypes:vb,setOptions:function(a){Wa=va(Wa,a);Bd();return Wa},Series:pb,addEvent:Sa,createElement:ib,discardElement:Gc,css:Na,each:u,extend:pa,map:mc,merge:va,pick:C,extendClass:yb,product:"Highcharts",version:"2.1.6"}})();


grid.js

/** * Grid theme for Highcharts JS * @author Torstein Hønsi */Highcharts.theme = {colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],chart: {backgroundColor: {linearGradient: [0, 0, 500, 500],stops: [[0, 'rgb(255, 255, 255)'],[1, 'rgb(240, 240, 255)']]},borderWidth: 2,plotBackgroundColor: 'rgba(255, 255, 255, .9)',plotShadow: true,plotBorderWidth: 1},title: {style: { color: '#000',font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'}},subtitle: {style: { color: '#666666',font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'}},xAxis: {gridLineWidth: 1,lineColor: '#000',tickColor: '#000',labels: {style: {color: '#000',font: '11px Trebuchet MS, Verdana, sans-serif'}},title: {style: {color: '#333',fontWeight: 'bold',fontSize: '12px',fontFamily: 'Trebuchet MS, Verdana, sans-serif'}}},yAxis: {minorTickInterval: 'auto',lineColor: '#000',lineWidth: 1,tickWidth: 1,tickColor: '#000',labels: {style: {color: '#000',font: '11px Trebuchet MS, Verdana, sans-serif'}},title: {style: {color: '#333',fontWeight: 'bold',fontSize: '12px',fontFamily: 'Trebuchet MS, Verdana, sans-serif'}}},legend: {itemStyle: {font: '9pt Trebuchet MS, Verdana, sans-serif',color: 'black'},itemHoverStyle: {color: '#039'},itemHiddenStyle: {color: 'gray'}},labels: {style: {color: '#99b'}}};// Apply the themevar highchartsOptions = Highcharts.setOptions(Highcharts.theme);