Files
bbs/static/dist/js/app.min.js
T
2017-09-27 22:04:27 +02:00

1 line
349 KiB
JavaScript

function enable_all_customers(){$("li.customer").each(function(t){$(this).removeClass("marked"),$(this).show()})}function filter_customers(t){setTimeout(function(){$("li.customer").each(function(e){var i=new RegExp(t,"i"),n=$(this).children("span.name").text();if(i.test(n)){$(this).show();var r=n.toLowerCase()==t.toLowerCase(),o=1==$("li.customer:visible").length;console.log(r,o),r?$(this).addClass("marked"):$(this).removeClass("marked")}else $(this).hide(),$(this).removeClass("marked")})},50)}function enable_all_products(){$("li.product").each(function(t){$(this).removeClass("marked"),$(this).show()})}function reset_qtys(){$(".qty").each(function(t){$(this).html("0")}),$("input[name$=amount]").each(function(t){$(this).val("0")})}function update_total(){var t=0;$("li.product").each(function(){var e=Number($(this).find("[name$=amount]").val()),i=".sale_price_int";"Ekstern"===$("#id_customer_typeahead").val()&&(i=".sale_price_ext");var n=Number($(this).find(i).text());t+=e*n}),0===t&&(t=""),$("span.total_text").html(t)}function productFormatter(){return"<b>"+this.point.name+"</b>: "+Highcharts.numberFormat(this.percentage,1)+" %"}function parse_products_realtime_data(t,e){for(var i in t.products){null===e.get(i)&&e.addSeries({data:[],id:i,name:i});var n=e.get(i);_.each(t.products[i],function(t){null===e.get(t[0])&&n.addPoint({id:t[0],x:t[0],y:t[1]})})}}function get_products_realtime_data(){$.ajax({url:products_realtime_url,dataType:"json",success:function(t){parse_products_realtime_data(t,products_realtime_chart),setTimeout(function(){get_products_realtime_data()},15e3)},cache:!1})}function renderProductCharts(t){for(var e in t){var i="product_chart"+t[e].id,n=t[e].counts;n=_.map(n,function(t){return[t.full_name,t.amount_total]}),new Highcharts.Chart({chart:{renderTo:i,plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1},title:{text:t[e].name},tooltip:{formatter:productFormatter},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,color:"#000000",connectorColor:"#000000",formatter:function(){return"<b>"+this.point.name+"</b>: "+this.y}}}},series:[{type:"pie",name:"Orders",data:n}]})}}function renderOrdersGroupedChart(t){var e=t.grouping,i="order_chart_"+e;new Highcharts.Chart({chart:{renderTo:i,type:"column"},title:{text:"Ordre - "+e},tooltip:{formatter:function(){return this.y+" stk"}},yAxis:{title:{text:"Ordre"}},xAxis:{title:{text:"Tid"},labels:{formatter:orderFormatters[e]}},plotOptions:{column:{minPointLength:3,colorByPoint:!0},series:{groupPadding:0,pointPadding:.05}},series:[{name:"Ordre",data:t.orders}]})}!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t,e){var i=(e=e||et).createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}function n(t){var e=!!t&&"length"in t&&t.length,i=ft.type(t);return"function"!==i&&!ft.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function o(t,e,i){return ft.isFunction(e)?ft.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?ft.grep(t,function(t){return t===e!==i}):"string"!=typeof e?ft.grep(t,function(t){return st.call(e,t)>-1!==i}):Mt.test(e)?ft.filter(e,t,i):(e=ft.filter(e,t),ft.grep(t,function(t){return st.call(e,t)>-1!==i&&1===t.nodeType}))}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e={};return ft.each(t.match(Lt)||[],function(t,i){e[i]=!0}),e}function l(t){return t}function h(t){throw t}function c(t,e,i,n){var r;try{t&&ft.isFunction(r=t.promise)?r.call(t).done(e).fail(i):t&&ft.isFunction(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}function u(){et.removeEventListener("DOMContentLoaded",u),t.removeEventListener("load",u),ft.ready()}function d(){this.expando=ft.expando+d.uid++}function p(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:zt.test(t)?JSON.parse(t):t)}function f(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Rt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=p(i)}catch(t){}_t.set(t,e,i)}else i=void 0;return i}function g(t,e,i,n){var r,o=1,s=20,a=n?function(){return n.cur()}:function(){return ft.css(t,e,"")},l=a(),h=i&&i[3]||(ft.cssNumber[e]?"":"px"),c=(ft.cssNumber[e]||"px"!==h&&+l)&&Ft.exec(ft.css(t,e));if(c&&c[3]!==h){h=h||c[3],i=i||[],c=+l||1;do{o=o||".5",c/=o,ft.style(t,e,c+h)}while(o!==(o=a()/l)&&1!==o&&--s)}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=c,n.end=r)),r}function m(t){var e,i=t.ownerDocument,n=t.nodeName,r=Gt[n];return r||(e=i.body.appendChild(i.createElement(n)),r=ft.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Gt[n]=r,r)}function v(t,e){for(var i,n,r=[],o=0,s=t.length;o<s;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(r[o]=It.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&Bt(n)&&(r[o]=m(n))):"none"!==i&&(r[o]="none",It.set(n,"display",i)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}function y(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&r(t,e)?ft.merge([t],i):i}function x(t,e){for(var i=0,n=t.length;i<n;i++)It.set(t[i],"globalEval",!e||It.get(e[i],"globalEval"))}function b(t,e,i,n,r){for(var o,s,a,l,h,c,u=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===ft.type(o))ft.merge(d,o.nodeType?[o]:o);else if(Vt.test(o)){for(s=s||u.appendChild(e.createElement("div")),a=($t.exec(o)||["",""])[1].toLowerCase(),l=Ut[a]||Ut._default,s.innerHTML=l[1]+ft.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;ft.merge(d,s.childNodes),(s=u.firstChild).textContent=""}else d.push(e.createTextNode(o));for(u.textContent="",p=0;o=d[p++];)if(n&&ft.inArray(o,n)>-1)r&&r.push(o);else if(h=ft.contains(o.ownerDocument,o),s=y(u.appendChild(o),"script"),h&&x(s),i)for(c=0;o=s[c++];)Xt.test(o.type||"")&&i.push(o);return u}function w(){return!0}function k(){return!1}function T(){try{return et.activeElement}catch(t){}}function M(t,e,i,n,r,o){var s,a;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(a in e)M(t,a,i,n,e[a],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=k;else if(!r)return t;return 1===o&&(s=r,r=function(t){return ft().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=ft.guid++)),t.each(function(){ft.event.add(this,e,r,n,i)})}function C(t,e){return r(t,"table")&&r(11!==e.nodeType?e:e.firstChild,"tr")?ft(">tbody",t)[0]||t:t}function S(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function D(t){var e=ie.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function A(t,e){var i,n,r,o,s,a,l,h;if(1===e.nodeType){if(It.hasData(t)&&(o=It.access(t),s=It.set(e,o),h=o.events)){delete s.handle,s.events={};for(r in h)for(i=0,n=h[r].length;i<n;i++)ft.event.add(e,r,h[r][i])}_t.hasData(t)&&(a=_t.access(t),l=ft.extend({},a),_t.set(e,l))}}function L(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Yt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function O(t,e,n,r){e=rt.apply([],e);var o,s,a,l,h,c,u=0,d=t.length,p=d-1,f=e[0],g=ft.isFunction(f);if(g||d>1&&"string"==typeof f&&!dt.checkClone&&ee.test(f))return t.each(function(i){var o=t.eq(i);g&&(e[0]=f.call(this,i,o.html())),O(o,e,n,r)});if(d&&(o=b(e,t[0].ownerDocument,!1,t,r),s=o.firstChild,1===o.childNodes.length&&(o=s),s||r)){for(l=(a=ft.map(y(o,"script"),S)).length;u<d;u++)h=o,u!==p&&(h=ft.clone(h,!0,!0),l&&ft.merge(a,y(h,"script"))),n.call(t[u],h,u);if(l)for(c=a[a.length-1].ownerDocument,ft.map(a,D),u=0;u<l;u++)h=a[u],Xt.test(h.type||"")&&!It.access(h,"globalEval")&&ft.contains(c,h)&&(h.src?ft._evalUrl&&ft._evalUrl(h.src):i(h.textContent.replace(ne,""),c))}return t}function P(t,e,i){for(var n,r=e?ft.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||ft.cleanData(y(n)),n.parentNode&&(i&&ft.contains(n.ownerDocument,n)&&x(y(n,"script")),n.parentNode.removeChild(n));return t}function E(t,e,i){var n,r,o,s,a=t.style;return(i=i||se(t))&&(""!==(s=i.getPropertyValue(e)||i[e])||ft.contains(t.ownerDocument,t)||(s=ft.style(t,e)),!dt.pixelMarginRight()&&oe.test(s)&&re.test(e)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function N(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function I(t){if(t in de)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=ue.length;i--;)if((t=ue[i]+e)in de)return t}function _(t){var e=ft.cssProps[t];return e||(e=ft.cssProps[t]=I(t)||t),e}function z(t,e,i){var n=Ft.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function R(t,e,i,n,r){var o,s=0;for(o=i===(n?"border":"content")?4:"width"===e?1:0;o<4;o+=2)"margin"===i&&(s+=ft.css(t,i+Ht[o],!0,r)),n?("content"===i&&(s-=ft.css(t,"padding"+Ht[o],!0,r)),"margin"!==i&&(s-=ft.css(t,"border"+Ht[o]+"Width",!0,r))):(s+=ft.css(t,"padding"+Ht[o],!0,r),"padding"!==i&&(s+=ft.css(t,"border"+Ht[o]+"Width",!0,r)));return s}function j(t,e,i){var n,r=se(t),o=E(t,e,r),s="border-box"===ft.css(t,"boxSizing",!1,r);return oe.test(o)?o:(n=s&&(dt.boxSizingReliable()||o===t.style[e]),"auto"===o&&(o=t["offset"+e[0].toUpperCase()+e.slice(1)]),(o=parseFloat(o)||0)+R(t,e,i||(s?"border":"content"),n,r)+"px")}function F(t,e,i,n,r){return new F.prototype.init(t,e,i,n,r)}function H(){fe&&(!1===et.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(H):t.setTimeout(H,ft.fx.interval),ft.fx.tick())}function B(){return t.setTimeout(function(){pe=void 0}),pe=ft.now()}function W(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)i=Ht[n],r["margin"+i]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function G(t,e,i){for(var n,r=($.tweeners[e]||[]).concat($.tweeners["*"]),o=0,s=r.length;o<s;o++)if(n=r[o].call(i,e,t))return n}function Y(t,e){var i,n,r,o,s;for(i in t)if(n=ft.camelCase(i),r=e[n],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(s=ft.cssHooks[n])&&"expand"in s){o=s.expand(o),delete t[n];for(i in o)i in t||(t[i]=o[i],e[i]=r)}else e[n]=r}function $(t,e,i){var n,r,o=0,s=$.prefilters.length,a=ft.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=pe||B(),i=Math.max(0,h.startTime+h.duration-e),n=1-(i/h.duration||0),o=0,s=h.tweens.length;o<s;o++)h.tweens[o].run(n);return a.notifyWith(t,[h,n,i]),n<1&&s?i:(s||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:ft.extend({},e),opts:ft.extend(!0,{specialEasing:{},easing:ft.easing._default},i),originalProperties:e,originalOptions:i,startTime:pe||B(),duration:i.duration,tweens:[],createTween:function(e,i){var n=ft.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(n),n},stop:function(e){var i=0,n=e?h.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)h.tweens[i].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),c=h.props;for(Y(c,h.opts.specialEasing);o<s;o++)if(n=$.prefilters[o].call(h,t,c,h.opts))return ft.isFunction(n.stop)&&(ft._queueHooks(h.elem,h.opts.queue).stop=ft.proxy(n.stop,n)),n;return ft.map(c,G,h),ft.isFunction(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),ft.fx.timer(ft.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h}function X(t){return(t.match(Lt)||[]).join(" ")}function U(t){return t.getAttribute&&t.getAttribute("class")||""}function V(t,e,i,n){var r;if(Array.isArray(e))ft.each(e,function(e,r){i||Se.test(t)?n(t,r):V(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==ft.type(e))n(t,e);else for(r in e)V(t+"["+r+"]",e[r],i,n)}function q(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(Lt)||[];if(ft.isFunction(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function K(t,e,i,n){function r(a){var l;return o[a]=!0,ft.each(t[a]||[],function(t,a){var h=a(e,i,n);return"string"!=typeof h||s||o[h]?s?!(l=h):void 0:(e.dataTypes.unshift(h),r(h),!1)}),l}var o={},s=t===je;return r(e.dataTypes[0])||!o["*"]&&r("*")}function Z(t,e){var i,n,r=ft.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&ft.extend(!0,t,n),t}function J(t,e,i){for(var n,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),i[o]}function Q(t,e,i,n){var r,o,s,a,l,h={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)h[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=h[l+" "+o]||h["* "+o]))for(r in h)if((a=r.split(" "))[1]===o&&(s=h[l+" "+a[0]]||h["* "+a[0]])){!0===s?s=h[r]:!0!==h[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}var tt=[],et=t.document,it=Object.getPrototypeOf,nt=tt.slice,rt=tt.concat,ot=tt.push,st=tt.indexOf,at={},lt=at.toString,ht=at.hasOwnProperty,ct=ht.toString,ut=ct.call(Object),dt={},pt="3.2.1",ft=function(t,e){return new ft.fn.init(t,e)},gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,mt=/^-ms-/,vt=/-([a-z])/g,yt=function(t,e){return e.toUpperCase()};ft.fn=ft.prototype={jquery:pt,constructor:ft,length:0,toArray:function(){return nt.call(this)},get:function(t){return null==t?nt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=ft.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return ft.each(this,t)},map:function(t){return this.pushStack(ft.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(nt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:ot,sort:tt.sort,splice:tt.splice},ft.extend=ft.fn.extend=function(){var t,e,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[a]||{},a++),"object"==typeof s||ft.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=s[e],n=t[e],s!==n&&(h&&n&&(ft.isPlainObject(n)||(r=Array.isArray(n)))?(r?(r=!1,o=i&&Array.isArray(i)?i:[]):o=i&&ft.isPlainObject(i)?i:{},s[e]=ft.extend(h,o,n)):void 0!==n&&(s[e]=n));return s},ft.extend({expando:"jQuery"+(pt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ft.type(t)},isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=ft.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==lt.call(t)||(e=it(t))&&("function"!=typeof(i=ht.call(e,"constructor")&&e.constructor)||ct.call(i)!==ut))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?at[lt.call(t)]||"object":typeof t},globalEval:function(t){i(t)},camelCase:function(t){return t.replace(mt,"ms-").replace(vt,yt)},each:function(t,e){var i,r=0;if(n(t))for(i=t.length;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(gt,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ft.merge(i,"string"==typeof t?[t]:t):ot.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:st.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,s=!i;r<o;r++)!e(t[r],r)!==s&&n.push(t[r]);return n},map:function(t,e,i){var r,o,s=0,a=[];if(n(t))for(r=t.length;s<r;s++)null!=(o=e(t[s],s,i))&&a.push(o);else for(s in t)null!=(o=e(t[s],s,i))&&a.push(o);return rt.apply([],a)},guid:1,proxy:function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),ft.isFunction(t))return n=nt.call(arguments,2),r=function(){return t.apply(e||this,n.concat(nt.call(arguments)))},r.guid=t.guid=t.guid||ft.guid++,r},now:Date.now,support:dt}),"function"==typeof Symbol&&(ft.fn[Symbol.iterator]=tt[Symbol.iterator]),ft.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){at["[object "+e+"]"]=e.toLowerCase()});var xt=function(t){function e(t,e,i,n){var r,o,s,a,l,c,d,p=e&&e.ownerDocument,f=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return i;if(!n&&((e?e.ownerDocument||e:F)!==P&&O(e),e=e||P,N)){if(11!==f&&(l=gt.exec(t)))if(r=l[1]){if(9===f){if(!(s=e.getElementById(r)))return i;if(s.id===r)return i.push(s),i}else if(p&&(s=p.getElementById(r))&&R(e,s)&&s.id===r)return i.push(s),i}else{if(l[2])return K.apply(i,e.getElementsByTagName(t)),i;if((r=l[3])&&b.getElementsByClassName&&e.getElementsByClassName)return K.apply(i,e.getElementsByClassName(r)),i}if(b.qsa&&!Y[t+" "]&&(!I||!I.test(t))){if(1!==f)p=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(xt,bt):e.setAttribute("id",a=j),o=(c=M(t)).length;o--;)c[o]="#"+a+" "+u(c[o]);d=c.join(","),p=mt.test(t)&&h(e.parentNode)||e}if(d)try{return K.apply(i,p.querySelectorAll(d)),i}catch(t){}finally{a===j&&e.removeAttribute("id")}}}return S(t.replace(ot,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>w.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[j]=!0,t}function r(t){var e=P.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=e}function s(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&kt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return n(function(e){return e=+e,n(function(i,n){for(var r,o=t([],i.length,e),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))})})}function h(t){return t&&void 0!==t.getElementsByTagName&&t}function c(){}function u(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function d(t,e,i){var n=e.dir,r=e.next,o=r||n,s=i&&"parentNode"===o,a=B++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,r);return!1}:function(e,i,l){var h,c,u,d=[H,a];if(l){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||s)if(u=e[j]||(e[j]={}),c=u[e.uniqueID]||(u[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((h=c[o])&&h[0]===H&&h[1]===a)return d[2]=h[2];if(c[o]=d,d[2]=t(e,i,l))return!0}return!1}}function p(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function f(t,i,n){for(var r=0,o=i.length;r<o;r++)e(t,i[r],n);return n}function g(t,e,i,n,r){for(var o,s=[],a=0,l=t.length,h=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,r)||(s.push(o),h&&e.push(a)));return s}function m(t,e,i,r,o,s){return r&&!r[j]&&(r=m(r)),o&&!o[j]&&(o=m(o,s)),n(function(n,s,a,l){var h,c,u,d=[],p=[],m=s.length,v=n||f(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?v:g(v,d,t,a,l),x=i?o||(n?t:m||r)?[]:s:y;if(i&&i(y,x,a,l),r)for(h=g(x,p),r(h,[],a,l),c=h.length;c--;)(u=h[c])&&(x[p[c]]=!(y[p[c]]=u));if(n){if(o||t){if(o){for(h=[],c=x.length;c--;)(u=x[c])&&h.push(y[c]=u);o(null,x=[],h,l)}for(c=x.length;c--;)(u=x[c])&&(h=o?J(n,u):d[c])>-1&&(n[h]=!(s[h]=u))}}else x=g(x===s?x.splice(m,x.length):x),o?o(null,s,x,l):K.apply(s,x)})}function v(t){for(var e,i,n,r=t.length,o=w.relative[t[0].type],s=o||w.relative[" "],a=o?1:0,l=d(function(t){return t===e},s,!0),h=d(function(t){return J(e,t)>-1},s,!0),c=[function(t,i,n){var r=!o&&(n||i!==D)||((e=i).nodeType?l(t,i,n):h(t,i,n));return e=null,r}];a<r;a++)if(i=w.relative[t[a].type])c=[d(p(c),i)];else{if((i=w.filter[t[a].type].apply(null,t[a].matches))[j]){for(n=++a;n<r&&!w.relative[t[n].type];n++);return m(a>1&&p(c),a>1&&u(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ot,"$1"),i,a<n&&v(t.slice(a,n)),n<r&&v(t=t.slice(n)),n<r&&u(t))}c.push(i)}return p(c)}function y(t,i){var r=i.length>0,o=t.length>0,s=function(n,s,a,l,h){var c,u,d,p=0,f="0",m=n&&[],v=[],y=D,x=n||o&&w.find.TAG("*",h),b=H+=null==y?1:Math.random()||.1,k=x.length;for(h&&(D=s===P||s||h);f!==k&&null!=(c=x[f]);f++){if(o&&c){for(u=0,s||c.ownerDocument===P||(O(c),a=!N);d=t[u++];)if(d(c,s||P,a)){l.push(c);break}h&&(H=b)}r&&((c=!d&&c)&&p--,n&&m.push(c))}if(p+=f,r&&f!==p){for(u=0;d=i[u++];)d(m,v,s,a);if(n){if(p>0)for(;f--;)m[f]||v[f]||(v[f]=V.call(l));v=g(v)}K.apply(l,v),h&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return h&&(H=b,D=y),m};return r?n(s):s}var x,b,w,k,T,M,C,S,D,A,L,O,P,E,N,I,_,z,R,j="sizzle"+1*new Date,F=t.document,H=0,B=0,W=i(),G=i(),Y=i(),$=function(t,e){return t===e&&(L=!0),0},X={}.hasOwnProperty,U=[],V=U.pop,q=U.push,K=U.push,Z=U.slice,J=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",it="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",nt=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",rt=new RegExp(tt+"+","g"),ot=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),st=new RegExp("^"+tt+"*,"+tt+"*"),at=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ht=new RegExp(nt),ct=new RegExp("^"+et+"$"),ut={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+nt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,ft=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),yt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},wt=function(){O()},kt=d(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{K.apply(U=Z.call(F.childNodes),F.childNodes),U[F.childNodes.length].nodeType}catch(t){K={apply:U.length?function(t,e){q.apply(t,Z.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}b=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},O=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:F;return n!==P&&9===n.nodeType&&n.documentElement?(P=n,E=P.documentElement,N=!T(P),F!==P&&(i=P.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",wt,!1):i.attachEvent&&i.attachEvent("onunload",wt)),b.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=r(function(t){return t.appendChild(P.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=ft.test(P.getElementsByClassName),b.getById=r(function(t){return E.appendChild(t).id=j,!P.getElementsByName||!P.getElementsByName(j).length}),b.getById?(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&N){var i=e.getElementById(t);return i?[i]:[]}}):(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&N){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},w.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&N)return e.getElementsByClassName(t)},_=[],I=[],(b.qsa=ft.test(P.querySelectorAll))&&(r(function(t){E.appendChild(t).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||I.push("\\["+tt+"*(?:value|"+Q+")"),t.querySelectorAll("[id~="+j+"-]").length||I.push("~="),t.querySelectorAll(":checked").length||I.push(":checked"),t.querySelectorAll("a#"+j+"+*").length||I.push(".#.+[+~]")}),r(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=P.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&I.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&I.push(":enabled",":disabled"),E.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&I.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),I.push(",.*:")})),(b.matchesSelector=ft.test(z=E.matches||E.webkitMatchesSelector||E.mozMatchesSelector||E.oMatchesSelector||E.msMatchesSelector))&&r(function(t){b.disconnectedMatch=z.call(t,"*"),z.call(t,"[s!='']:x"),_.push("!=",nt)}),I=I.length&&new RegExp(I.join("|")),_=_.length&&new RegExp(_.join("|")),e=ft.test(E.compareDocumentPosition),R=e||ft.test(E.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return L=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!b.sortDetached&&e.compareDocumentPosition(t)===i?t===P||t.ownerDocument===F&&R(F,t)?-1:e===P||e.ownerDocument===F&&R(F,e)?1:A?J(A,t)-J(A,e):0:4&i?-1:1)}:function(t,e){if(t===e)return L=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!r||!o)return t===P?-1:e===P?1:r?-1:o?1:A?J(A,t)-J(A,e):0;if(r===o)return s(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?s(a[n],l[n]):a[n]===F?-1:l[n]===F?1:0},P):P},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==P&&O(t),i=i.replace(lt,"='$1']"),b.matchesSelector&&N&&!Y[i+" "]&&(!_||!_.test(i))&&(!I||!I.test(i)))try{var n=z.call(t,i);if(n||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,P,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==P&&O(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==P&&O(t);var i=w.attrHandle[e.toLowerCase()],n=i&&X.call(w.attrHandle,e.toLowerCase())?i(t,e,!N):void 0;return void 0!==n?n:b.attributes||!N?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.escape=function(t){return(t+"").replace(xt,bt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(L=!b.detectDuplicates,A=!b.sortStable&&t.slice(0),t.sort($),L){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return A=null,t},k=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},(w=e.selectors={cacheLength:50,createPseudo:n,match:ut,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(vt,yt),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,yt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ut.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=M(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,yt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var o=e.attr(r,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(rt," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,d,p,f,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,x=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&y){for(x=(p=(h=(c=(u=(d=m)[j]||(d[j]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===H&&h[1])&&h[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||f.pop();)if(1===d.nodeType&&++x&&d===e){c[t]=[H,p,x];break}}else if(y&&(d=e,u=d[j]||(d[j]={}),c=u[d.uniqueID]||(u[d.uniqueID]={}),h=c[t]||[],p=h[0]===H&&h[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++x||(y&&(u=d[j]||(d[j]={}),c=u[d.uniqueID]||(u[d.uniqueID]={}),c[t]=[H,x]),d!==e)););return(x-=r)===n||x%n==0&&x/n>=0}}},PSEUDO:function(t,i){var r,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[j]?o(i):o.length>1?(r=[t,t,"",i],w.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=o(t,i),s=r.length;s--;)n=J(t,r[s]),t[n]=!(e[n]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:n(function(t){var e=[],i=[],r=C(t.replace(ot,"$1"));return r[j]?n(function(t,e,i,n){for(var o,s=r(t,null,n,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,r(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(vt,yt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:n(function(t){return ct.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,yt).toLowerCase(),function(e){var i;do{if(i=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===E},focus:function(t){return t===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,i){return[i<0?i+e:i]}),even:l(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:l(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:l(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:l(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}(x);return c.prototype=w.filters=w.pseudos,w.setFilters=new c,M=e.tokenize=function(t,i){var n,r,o,s,a,l,h,c=G[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],h=w.preFilter;a;){n&&!(r=st.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=at.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(ot," ")}),a=a.slice(n.length));for(s in w.filter)!(r=ut[s].exec(a))||h[s]&&!(r=h[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):G(t,l).slice(0)},C=e.compile=function(t,e){var i,n=[],r=[],o=Y[t+" "];if(!o){for(e||(e=M(t)),i=e.length;i--;)(o=v(e[i]))[j]?n.push(o):r.push(o);(o=Y(t,y(r,n))).selector=t}return o},S=e.select=function(t,e,i,n){var r,o,s,a,l,c="function"==typeof t&&t,d=!n&&M(t=c.selector||t);if(i=i||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===e.nodeType&&N&&w.relative[o[1].type]){if(!(e=(w.find.ID(s.matches[0].replace(vt,yt),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ut.needsContext.test(t)?0:o.length;r--&&(s=o[r],!w.relative[a=s.type]);)if((l=w.find[a])&&(n=l(s.matches[0].replace(vt,yt),mt.test(o[0].type)&&h(e.parentNode)||e))){if(o.splice(r,1),!(t=n.length&&u(o)))return K.apply(i,n),i;break}}return(c||C(t,d))(n,e,!N,i,!e||mt.test(t)&&h(e.parentNode)||e),i},b.sortStable=j.split("").sort($).join("")===j,b.detectDuplicates=!!L,O(),b.sortDetached=r(function(t){return 1&t.compareDocumentPosition(P.createElement("fieldset"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(Q,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);ft.find=xt,ft.expr=xt.selectors,ft.expr[":"]=ft.expr.pseudos,ft.uniqueSort=ft.unique=xt.uniqueSort,ft.text=xt.getText,ft.isXMLDoc=xt.isXML,ft.contains=xt.contains,ft.escapeSelector=xt.escape;var bt=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ft(t).is(i))break;n.push(t)}return n},wt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},kt=ft.expr.match.needsContext,Tt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Mt=/^.[^:#\[\.,]*$/;ft.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?ft.find.matchesSelector(n,t)?[n]:[]:ft.find.matches(t,ft.grep(e,function(t){return 1===t.nodeType}))},ft.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(ft(t).filter(function(){for(e=0;e<n;e++)if(ft.contains(r[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)ft.find(t,r[e],i);return n>1?ft.uniqueSort(i):i},filter:function(t){return this.pushStack(o(this,t||[],!1))},not:function(t){return this.pushStack(o(this,t||[],!0))},is:function(t){return!!o(this,"string"==typeof t&&kt.test(t)?ft(t):t||[],!1).length}});var Ct,St=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ft.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||Ct,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:St.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ft?e[0]:e,ft.merge(this,ft.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:et,!0)),Tt.test(n[1])&&ft.isPlainObject(e))for(n in e)ft.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=et.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ft.isFunction(t)?void 0!==i.ready?i.ready(t):t(ft):ft.makeArray(t,this)}).prototype=ft.fn,Ct=ft(et);var Dt=/^(?:parents|prev(?:Until|All))/,At={children:!0,contents:!0,next:!0,prev:!0};ft.fn.extend({has:function(t){var e=ft(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(ft.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,r=this.length,o=[],s="string"!=typeof t&&ft(t);if(!kt.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&ft.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?ft.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?st.call(ft(t),this[0]):st.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ft.uniqueSort(ft.merge(this.get(),ft(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ft.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return bt(t,"parentNode")},parentsUntil:function(t,e,i){return bt(t,"parentNode",i)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return bt(t,"nextSibling")},prevAll:function(t){return bt(t,"previousSibling")},nextUntil:function(t,e,i){return bt(t,"nextSibling",i)},prevUntil:function(t,e,i){return bt(t,"previousSibling",i)},siblings:function(t){return wt((t.parentNode||{}).firstChild,t)},children:function(t){return wt(t.firstChild)},contents:function(t){return r(t,"iframe")?t.contentDocument:(r(t,"template")&&(t=t.content||t),ft.merge([],t.childNodes))}},function(t,e){ft.fn[t]=function(i,n){var r=ft.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=ft.filter(n,r)),this.length>1&&(At[t]||ft.uniqueSort(r),Dt.test(t)&&r.reverse()),this.pushStack(r)}});var Lt=/[^\x20\t\r\n\f]+/g;ft.Callbacks=function(t){t="string"==typeof t?a(t):ft.extend({},t);var e,i,n,r,o=[],s=[],l=-1,h=function(){for(r=r||t.once,n=e=!0;s.length;l=-1)for(i=s.shift();++l<o.length;)!1===o[l].apply(i[0],i[1])&&t.stopOnFalse&&(l=o.length,i=!1);t.memory||(i=!1),e=!1,r&&(o=i?[]:"")},c={add:function(){return o&&(i&&!e&&(l=o.length-1,s.push(i)),function e(i){ft.each(i,function(i,n){ft.isFunction(n)?t.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==ft.type(n)&&e(n)})}(arguments),i&&!e&&h()),this},remove:function(){return ft.each(arguments,function(t,e){for(var i;(i=ft.inArray(e,o,i))>-1;)o.splice(i,1),i<=l&&l--}),this},has:function(t){return t?ft.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=s=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=i||[],i=[t,i.slice?i.slice():i],s.push(i),e||h()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},ft.extend({Deferred:function(e){var i=[["notify","progress",ft.Callbacks("memory"),ft.Callbacks("memory"),2],["resolve","done",ft.Callbacks("once memory"),ft.Callbacks("once memory"),0,"resolved"],["reject","fail",ft.Callbacks("once memory"),ft.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return ft.Deferred(function(e){ft.each(i,function(i,n){var r=ft.isFunction(t[n[4]])&&t[n[4]];o[n[1]](function(){var t=r&&r.apply(this,arguments);t&&ft.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,n,r){function o(e,i,n,r){return function(){var a=this,c=arguments,u=function(){var t,u;if(!(e<s)){if((t=n.apply(a,c))===i.promise())throw new TypeError("Thenable self-resolution");u=t&&("object"==typeof t||"function"==typeof t)&&t.then,ft.isFunction(u)?r?u.call(t,o(s,i,l,r),o(s,i,h,r)):(s++,u.call(t,o(s,i,l,r),o(s,i,h,r),o(s,i,l,i.notifyWith))):(n!==l&&(a=void 0,c=[t]),(r||i.resolveWith)(a,c))}},d=r?u:function(){try{u()}catch(t){ft.Deferred.exceptionHook&&ft.Deferred.exceptionHook(t,d.stackTrace),e+1>=s&&(n!==h&&(a=void 0,c=[t]),i.rejectWith(a,c))}};e?d():(ft.Deferred.getStackHook&&(d.stackTrace=ft.Deferred.getStackHook()),t.setTimeout(d))}}var s=0;return ft.Deferred(function(t){i[0][3].add(o(0,t,ft.isFunction(r)?r:l,t.notifyWith)),i[1][3].add(o(0,t,ft.isFunction(e)?e:l)),i[2][3].add(o(0,t,ft.isFunction(n)?n:h))}).promise()},promise:function(t){return null!=t?ft.extend(t,r):r}},o={};return ft.each(i,function(t,e){var s=e[2],a=e[5];r[e[1]]=s.add,a&&s.add(function(){n=a},i[3-t][2].disable,i[0][2].lock),s.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=s.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),r=nt.call(arguments),o=ft.Deferred(),s=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?nt.call(arguments):i,--e||o.resolveWith(n,r)}};if(e<=1&&(c(t,o.done(s(i)).resolve,o.reject,!e),"pending"===o.state()||ft.isFunction(r[i]&&r[i].then)))return o.then();for(;i--;)c(r[i],s(i),o.reject);return o.promise()}});var Ot=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ft.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&Ot.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},ft.readyException=function(e){t.setTimeout(function(){throw e})};var Pt=ft.Deferred();ft.fn.ready=function(t){return Pt.then(t).catch(function(t){ft.readyException(t)}),this},ft.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--ft.readyWait:ft.isReady)||(ft.isReady=!0,!0!==t&&--ft.readyWait>0||Pt.resolveWith(et,[ft]))}}),ft.ready.then=Pt.then,"complete"===et.readyState||"loading"!==et.readyState&&!et.documentElement.doScroll?t.setTimeout(ft.ready):(et.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u));var Et=function(t,e,i,n,r,o,s){var a=0,l=t.length,h=null==i;if("object"===ft.type(i)){r=!0;for(a in i)Et(t,e,a,i[a],!0,o,s)}else if(void 0!==n&&(r=!0,ft.isFunction(n)||(s=!0),h&&(s?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(ft(t),i)})),e))for(;a<l;a++)e(t[a],i,s?n:n.call(t[a],a,e(t[a],i)));return r?t:h?e.call(t):l?e(t[0],i):o},Nt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};d.uid=1,d.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Nt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[ft.camelCase(e)]=i;else for(n in e)r[ft.camelCase(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ft.camelCase(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){Array.isArray(e)?e=e.map(ft.camelCase):(e=ft.camelCase(e),e=e in n?[e]:e.match(Lt)||[]),i=e.length;for(;i--;)delete n[e[i]]}(void 0===e||ft.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ft.isEmptyObject(e)}};var It=new d,_t=new d,zt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Rt=/[A-Z]/g;ft.extend({hasData:function(t){return _t.hasData(t)||It.hasData(t)},data:function(t,e,i){return _t.access(t,e,i)},removeData:function(t,e){_t.remove(t,e)},_data:function(t,e,i){return It.access(t,e,i)},_removeData:function(t,e){It.remove(t,e)}}),ft.fn.extend({data:function(t,e){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=_t.get(o),1===o.nodeType&&!It.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=ft.camelCase(n.slice(5)),f(o,n,r[n]));It.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){_t.set(this,t)}):Et(this,function(e){var i;if(o&&void 0===e){if(void 0!==(i=_t.get(o,t)))return i;if(void 0!==(i=f(o,t)))return i}else this.each(function(){_t.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){_t.remove(this,t)})}}),ft.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=It.get(t,e),i&&(!n||Array.isArray(i)?n=It.access(t,e,ft.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=ft.queue(t,e),n=i.length,r=i.shift(),o=ft._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,function(){ft.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return It.get(t,i)||It.access(t,i,{empty:ft.Callbacks("once memory").add(function(){It.remove(t,[e+"queue",i])})})}}),ft.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?ft.queue(this[0],t):void 0===e?this:this.each(function(){var i=ft.queue(this,t,e);ft._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&ft.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ft.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=ft.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=It.get(o[s],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var jt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ft=new RegExp("^(?:([+-])=|)("+jt+")([a-z%]*)$","i"),Ht=["Top","Right","Bottom","Left"],Bt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ft.contains(t.ownerDocument,t)&&"none"===ft.css(t,"display")},Wt=function(t,e,i,n){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=i.apply(t,n||[]);for(o in e)t.style[o]=s[o];return r},Gt={};ft.fn.extend({show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Bt(this)?ft(this).show():ft(this).hide()})}});var Yt=/^(?:checkbox|radio)$/i,$t=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xt=/^$|\/(?:java|ecma)script/i,Ut={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ut.optgroup=Ut.option,Ut.tbody=Ut.tfoot=Ut.colgroup=Ut.caption=Ut.thead,Ut.th=Ut.td;var Vt=/<|&#?\w+;/;!function(){var t=et.createDocumentFragment().appendChild(et.createElement("div")),e=et.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),dt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",dt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var qt=et.documentElement,Kt=/^key/,Zt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jt=/^([^.]*)(?:\.(.+)|)/;ft.event={global:{},add:function(t,e,i,n,r){var o,s,a,l,h,c,u,d,p,f,g,m=It.get(t);if(m)for(i.handler&&(o=i,i=o.handler,r=o.selector),r&&ft.find.matchesSelector(qt,r),i.guid||(i.guid=ft.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return void 0!==ft&&ft.event.triggered!==e.type?ft.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(Lt)||[""]).length;h--;)a=Jt.exec(e[h])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p&&(u=ft.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=ft.event.special[p]||{},c=ft.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&ft.expr.match.needsContext.test(r),namespace:f.join(".")},o),(d=l[p])||(d=l[p]=[],d.delegateCount=0,u.setup&&!1!==u.setup.call(t,n,f,s)||t.addEventListener&&t.addEventListener(p,s)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),ft.event.global[p]=!0)},remove:function(t,e,i,n,r){var o,s,a,l,h,c,u,d,p,f,g,m=It.hasData(t)&&It.get(t);if(m&&(l=m.events)){for(h=(e=(e||"").match(Lt)||[""]).length;h--;)if(a=Jt.exec(e[h])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p){for(u=ft.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)c=d[o],!r&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));s&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||ft.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)ft.event.remove(t,p+e[h],i,n,!0);ft.isEmptyObject(l)&&It.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,s,a=ft.event.fix(t),l=new Array(arguments.length),h=(It.get(this,"events")||{})[a.type]||[],c=ft.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=ft.event.handlers.call(this,a,h),e=0;(r=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(n=((ft.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,r,o,s,a=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(o=[],s={},i=0;i<l;i++)n=e[i],r=n.selector+" ",void 0===s[r]&&(s[r]=n.needsContext?ft(r,this).index(h)>-1:ft.find(r,this,null,[h]).length),s[r]&&o.push(n);o.length&&a.push({elem:h,handlers:o})}return h=this,l<e.length&&a.push({elem:h,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(ft.Event.prototype,t,{enumerable:!0,configurable:!0,get:ft.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[ft.expando]?t:new ft.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==T()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===T()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&r(this,"input"))return this.click(),!1},_default:function(t){return r(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ft.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},ft.Event=function(t,e){return this instanceof ft.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?w:k,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&ft.extend(this,e),this.timeStamp=t&&t.timeStamp||ft.now(),void(this[ft.expando]=!0)):new ft.Event(t,e)},ft.Event.prototype={constructor:ft.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=w,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=w,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=w,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ft.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Kt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Zt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},ft.event.addProp),ft.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ft.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===n||ft.contains(n,r))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),ft.fn.extend({on:function(t,e,i,n){return M(this,t,e,i,n)},one:function(t,e,i,n){return M(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,ft(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=k),this.each(function(){ft.event.remove(this,t,i,e)})}});var Qt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,te=/<script|<style|<link/i,ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ie=/^true\/(.*)/,ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ft.extend({htmlPrefilter:function(t){return t.replace(Qt,"<$1></$2>")},clone:function(t,e,i){var n,r,o,s,a=t.cloneNode(!0),l=ft.contains(t.ownerDocument,t);if(!(dt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ft.isXMLDoc(t)))for(s=y(a),o=y(t),n=0,r=o.length;n<r;n++)L(o[n],s[n]);if(e)if(i)for(o=o||y(t),s=s||y(a),n=0,r=o.length;n<r;n++)A(o[n],s[n]);else A(t,a);return(s=y(a,"script")).length>0&&x(s,!l&&y(t,"script")),a},cleanData:function(t){for(var e,i,n,r=ft.event.special,o=0;void 0!==(i=t[o]);o++)if(Nt(i)){if(e=i[It.expando]){if(e.events)for(n in e.events)r[n]?ft.event.remove(i,n):ft.removeEvent(i,n,e.handle);i[It.expando]=void 0}i[_t.expando]&&(i[_t.expando]=void 0)}}}),ft.fn.extend({detach:function(t){return P(this,t,!0)},remove:function(t){return P(this,t)},text:function(t){return Et(this,function(t){return void 0===t?ft.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return O(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||C(this,t).appendChild(t)})},prepend:function(){return O(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=C(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return O(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return O(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ft.cleanData(y(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ft.clone(this,t,e)})},html:function(t){return Et(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!te.test(t)&&!Ut[($t.exec(t)||["",""])[1].toLowerCase()]){t=ft.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(ft.cleanData(y(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return O(this,arguments,function(e){var i=this.parentNode;ft.inArray(this,t)<0&&(ft.cleanData(y(this)),i&&i.replaceChild(e,this))},t)}}),ft.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ft.fn[t]=function(t){for(var i,n=[],r=ft(t),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),ft(r[s])[e](i),ot.apply(n,i.get());return this.pushStack(n)}});var re=/^margin/,oe=new RegExp("^("+jt+")(?!px)[a-z%]+$","i"),se=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)};!function(){function e(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",qt.appendChild(s);var e=t.getComputedStyle(a);i="1%"!==e.top,o="2px"===e.marginLeft,n="4px"===e.width,a.style.marginRight="50%",r="4px"===e.marginRight,qt.removeChild(s),a=null}}var i,n,r,o,s=et.createElement("div"),a=et.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",dt.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ft.extend(dt,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return e(),n},pixelMarginRight:function(){return e(),r},reliableMarginLeft:function(){return e(),o}}))}();var ae=/^(none|table(?!-c[ea]).+)/,le=/^--/,he={position:"absolute",visibility:"hidden",display:"block"},ce={letterSpacing:"0",fontWeight:"400"},ue=["Webkit","Moz","ms"],de=et.createElement("div").style;ft.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=E(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=ft.camelCase(e),l=le.test(e),h=t.style;return l||(e=_(a)),s=ft.cssHooks[e]||ft.cssHooks[a],void 0===i?s&&"get"in s&&void 0!==(r=s.get(t,!1,n))?r:h[e]:("string"===(o=typeof i)&&(r=Ft.exec(i))&&r[1]&&(i=g(t,e,r),o="number"),void(null!=i&&i===i&&("number"===o&&(i+=r&&r[3]||(ft.cssNumber[a]?"":"px")),dt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),s&&"set"in s&&void 0===(i=s.set(t,i,n))||(l?h.setProperty(e,i):h[e]=i))))}},css:function(t,e,i,n){var r,o,s,a=ft.camelCase(e);return le.test(e)||(e=_(a)),(s=ft.cssHooks[e]||ft.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,i)),void 0===r&&(r=E(t,e,n)),"normal"===r&&e in ce&&(r=ce[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),ft.each(["height","width"],function(t,e){ft.cssHooks[e]={get:function(t,i,n){if(i)return!ae.test(ft.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?j(t,e,n):Wt(t,he,function(){return j(t,e,n)})},set:function(t,i,n){var r,o=n&&se(t),s=n&&R(t,e,n,"border-box"===ft.css(t,"boxSizing",!1,o),o);return s&&(r=Ft.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=ft.css(t,e)),z(0,i,s)}}}),ft.cssHooks.marginLeft=N(dt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(E(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ft.each({margin:"",padding:"",border:"Width"},function(t,e){ft.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+Ht[n]+e]=o[n]||o[n-2]||o[0];return r}},re.test(t)||(ft.cssHooks[t+e].set=z)}),ft.fn.extend({css:function(t,e){return Et(this,function(t,e,i){var n,r,o={},s=0;if(Array.isArray(e)){for(n=se(t),r=e.length;s<r;s++)o[e[s]]=ft.css(t,e[s],!1,n);return o}return void 0!==i?ft.style(t,e,i):ft.css(t,e)},t,e,arguments.length>1)}}),ft.Tween=F,F.prototype={constructor:F,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||ft.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(ft.cssNumber[i]?"":"px")},cur:function(){var t=F.propHooks[this.prop];return t&&t.get?t.get(this):F.propHooks._default.get(this)},run:function(t){var e,i=F.propHooks[this.prop];return this.options.duration?this.pos=e=ft.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):F.propHooks._default.set(this),this}},F.prototype.init.prototype=F.prototype,F.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ft.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){ft.fx.step[t.prop]?ft.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ft.cssProps[t.prop]]&&!ft.cssHooks[t.prop]?t.elem[t.prop]=t.now:ft.style(t.elem,t.prop,t.now+t.unit)}}},F.propHooks.scrollTop=F.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ft.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ft.fx=F.prototype.init,ft.fx.step={};var pe,fe,ge=/^(?:toggle|show|hide)$/,me=/queueHooks$/;ft.Animation=ft.extend($,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return g(i.elem,t,Ft.exec(e),i),i}]},tweener:function(t,e){ft.isFunction(t)?(e=t,t=["*"]):t=t.match(Lt);for(var i,n=0,r=t.length;n<r;n++)i=t[n],$.tweeners[i]=$.tweeners[i]||[],$.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,o,s,a,l,h,c,u="width"in e||"height"in e,d=this,p={},f=t.style,g=t.nodeType&&Bt(t),m=It.get(t,"fxshow");i.queue||(null==(s=ft._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,ft.queue(t,"fx").length||s.empty.fire()})}));for(n in e)if(r=e[n],ge.test(r)){if(delete e[n],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||ft.style(t,n)}if((l=!ft.isEmptyObject(e))||!ft.isEmptyObject(p)){u&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(h=m&&m.display)&&(h=It.get(t,"display")),"none"===(c=ft.css(t,"display"))&&(h?c=h:(v([t],!0),h=t.style.display||h,c=ft.css(t,"display"),v([t]))),("inline"===c||"inline-block"===c&&null!=h)&&"none"===ft.css(t,"float")&&(l||(d.done(function(){f.display=h}),null==h&&(c=f.display,h="none"===c?"":c)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1;for(n in p)l||(m?"hidden"in m&&(g=m.hidden):m=It.access(t,"fxshow",{display:h}),o&&(m.hidden=!g),g&&v([t],!0),d.done(function(){g||v([t]),It.remove(t,"fxshow");for(n in p)ft.style(t,n,p[n])})),l=G(g?m[n]:0,n,d),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}}],prefilter:function(t,e){e?$.prefilters.unshift(t):$.prefilters.push(t)}}),ft.speed=function(t,e,i){var n=t&&"object"==typeof t?ft.extend({},t):{complete:i||!i&&e||ft.isFunction(t)&&t,duration:t,easing:i&&e||e&&!ft.isFunction(e)&&e};return ft.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in ft.fx.speeds?n.duration=ft.fx.speeds[n.duration]:n.duration=ft.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){ft.isFunction(n.old)&&n.old.call(this),n.queue&&ft.dequeue(this,n.queue)},n},ft.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Bt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=ft.isEmptyObject(t),o=ft.speed(e,i,n),s=function(){var e=$(this,ft.extend({},t),o);(r||It.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=ft.timers,s=It.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&me.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||ft.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=It.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=ft.timers,s=n?n.length:0;for(i.finish=!0,ft.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),ft.each(["toggle","show","hide"],function(t,e){var i=ft.fn[e];ft.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(W(e,!0),t,n,r)}}),ft.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ft.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),ft.timers=[],ft.fx.tick=function(){var t,e=0,i=ft.timers;for(pe=ft.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||ft.fx.stop(),pe=void 0},ft.fx.timer=function(t){ft.timers.push(t),ft.fx.start()},ft.fx.interval=13,ft.fx.start=function(){fe||(fe=!0,H())},ft.fx.stop=function(){fe=null},ft.fx.speeds={slow:600,fast:200,_default:400},ft.fn.delay=function(e,i){return e=ft.fx?ft.fx.speeds[e]||e:e,i=i||"fx",this.queue(i,function(i,n){var r=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(r)}})},function(){var t=et.createElement("input"),e=et.createElement("select").appendChild(et.createElement("option"));t.type="checkbox",dt.checkOn=""!==t.value,dt.optSelected=e.selected,(t=et.createElement("input")).value="t",t.type="radio",dt.radioValue="t"===t.value}();var ve,ye=ft.expr.attrHandle;ft.fn.extend({attr:function(t,e){return Et(this,ft.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ft.removeAttr(this,t)})}}),ft.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?ft.prop(t,e,i):(1===o&&ft.isXMLDoc(t)||(r=ft.attrHooks[e.toLowerCase()]||(ft.expr.match.bool.test(e)?ve:void 0)),void 0!==i?null===i?void ft.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=ft.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!dt.radioValue&&"radio"===e&&r(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(Lt);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),ve={set:function(t,e,i){return!1===e?ft.removeAttr(t,i):t.setAttribute(i,i),i}},ft.each(ft.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ye[e]||ft.find.attr;ye[e]=function(t,e,n){var r,o,s=e.toLowerCase();return n||(o=ye[s],ye[s]=r,r=null!=i(t,e,n)?s:null,ye[s]=o),r}});var xe=/^(?:input|select|textarea|button)$/i,be=/^(?:a|area)$/i;ft.fn.extend({prop:function(t,e){return Et(this,ft.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ft.propFix[t]||t]})}}),ft.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ft.isXMLDoc(t)||(e=ft.propFix[e]||e,r=ft.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=ft.find.attr(t,"tabindex");return e?parseInt(e,10):xe.test(t.nodeName)||be.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),dt.optSelected||(ft.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ft.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ft.propFix[this.toLowerCase()]=this}),ft.fn.extend({addClass:function(t){var e,i,n,r,o,s,a,l=0;if(ft.isFunction(t))return this.each(function(e){ft(this).addClass(t.call(this,e,U(this)))});if("string"==typeof t&&t)for(e=t.match(Lt)||[];i=this[l++];)if(r=U(i),n=1===i.nodeType&&" "+X(r)+" "){for(s=0;o=e[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(a=X(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,r,o,s,a,l=0;if(ft.isFunction(t))return this.each(function(e){ft(this).removeClass(t.call(this,e,U(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Lt)||[];i=this[l++];)if(r=U(i),n=1===i.nodeType&&" "+X(r)+" "){for(s=0;o=e[s++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(a=X(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):ft.isFunction(t)?this.each(function(i){ft(this).toggleClass(t.call(this,i,U(this),e),e)}):this.each(function(){var e,n,r,o;if("string"===i)for(n=0,r=ft(this),o=t.match(Lt)||[];e=o[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||((e=U(this))&&It.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":It.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+X(U(i))+" ").indexOf(e)>-1)return!0;return!1}});var we=/\r/g;ft.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=ft.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,ft(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=ft.map(r,function(t){return null==t?"":t+""})),(e=ft.valHooks[this.type]||ft.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=ft.valHooks[r.type]||ft.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(we,""):null==i?"":i:void 0}}),ft.extend({valHooks:{option:{get:function(t){var e=ft.find.attr(t,"value");return null!=e?e:X(ft.text(t))}},select:{get:function(t){var e,i,n,o=t.options,s=t.selectedIndex,a="select-one"===t.type,l=a?null:[],h=a?s+1:o.length;for(n=s<0?h:a?s:0;n<h;n++)if(((i=o[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!r(i.parentNode,"optgroup"))){if(e=ft(i).val(),a)return e;l.push(e)}return l},set:function(t,e){for(var i,n,r=t.options,o=ft.makeArray(e),s=r.length;s--;)n=r[s],(n.selected=ft.inArray(ft.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),ft.each(["radio","checkbox"],function(){ft.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=ft.inArray(ft(t).val(),e)>-1}},dt.checkOn||(ft.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke=/^(?:focusinfocus|focusoutblur)$/;ft.extend(ft.event,{trigger:function(e,i,n,r){var o,s,a,l,h,c,u,d=[n||et],p=ht.call(e,"type")?e.type:e,f=ht.call(e,"namespace")?e.namespace.split("."):[];if(s=a=n=n||et,3!==n.nodeType&&8!==n.nodeType&&!ke.test(p+ft.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),h=p.indexOf(":")<0&&"on"+p,e=e[ft.expando]?e:new ft.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:ft.makeArray(i,[e]),u=ft.event.special[p]||{},r||!u.trigger||!1!==u.trigger.apply(n,i))){if(!r&&!u.noBubble&&!ft.isWindow(n)){for(l=u.delegateType||p,ke.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(n.ownerDocument||et)&&d.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=d[o++])&&!e.isPropagationStopped();)e.type=o>1?l:u.bindType||p,(c=(It.get(s,"events")||{})[e.type]&&It.get(s,"handle"))&&c.apply(s,i),(c=h&&s[h])&&c.apply&&Nt(s)&&(e.result=c.apply(s,i),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),i)||!Nt(n)||h&&ft.isFunction(n[p])&&!ft.isWindow(n)&&((a=n[h])&&(n[h]=null),ft.event.triggered=p,n[p](),ft.event.triggered=void 0,a&&(n[h]=a)),e.result}},simulate:function(t,e,i){var n=ft.extend(new ft.Event,i,{type:t,isSimulated:!0});ft.event.trigger(n,null,e)}}),ft.fn.extend({trigger:function(t,e){return this.each(function(){ft.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return ft.event.trigger(t,e,i,!0)}}),ft.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){ft.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),ft.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),dt.focusin="onfocusin"in t,dt.focusin||ft.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){ft.event.simulate(e,t.target,ft.event.fix(t))};ft.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=It.access(n,e);r||n.addEventListener(t,i,!0),It.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=It.access(n,e)-1;r?It.access(n,e,r):(n.removeEventListener(t,i,!0),It.remove(n,e))}}});var Te=t.location,Me=ft.now(),Ce=/\?/;ft.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||ft.error("Invalid XML: "+e),i};var Se=/\[\]$/,De=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;ft.param=function(t,e){var i,n=[],r=function(t,e){var i=ft.isFunction(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!ft.isPlainObject(t))ft.each(t,function(){r(this.name,this.value)});else for(i in t)V(i,t[i],e,r);return n.join("&")},ft.fn.extend({serialize:function(){return ft.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ft.prop(this,"elements");return t?ft.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ft(this).is(":disabled")&&Le.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!Yt.test(t))}).map(function(t,e){var i=ft(this).val();return null==i?null:Array.isArray(i)?ft.map(i,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:i.replace(De,"\r\n")}}).get()}});var Oe=/%20/g,Pe=/#.*$/,Ee=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ie=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,_e=/^(?:GET|HEAD)$/,ze=/^\/\//,Re={},je={},Fe="*/".concat("*"),He=et.createElement("a");He.href=Te.href,ft.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:Ie.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ft.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Z(Z(t,ft.ajaxSettings),e):Z(ft.ajaxSettings,t)},ajaxPrefilter:q(Re),ajaxTransport:q(je),ajax:function(e,i){function n(e,i,n,a){var h,d,p,b,w,k=i;c||(c=!0,l&&t.clearTimeout(l),r=void 0,s=a||"",T.readyState=e>0?4:0,h=e>=200&&e<300||304===e,n&&(b=J(f,T,n)),b=Q(f,b,T,h),h?(f.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(ft.lastModified[o]=w),(w=T.getResponseHeader("etag"))&&(ft.etag[o]=w)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=b.state,d=b.data,p=b.error,h=!p)):(p=k,!e&&k||(k="error",e<0&&(e=0))),T.status=e,T.statusText=(i||k)+"",h?v.resolveWith(g,[d,k,T]):v.rejectWith(g,[T,k,p]),T.statusCode(x),x=void 0,u&&m.trigger(h?"ajaxSuccess":"ajaxError",[T,f,h?d:p]),y.fireWith(g,[T,k]),u&&(m.trigger("ajaxComplete",[T,f]),--ft.active||ft.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var r,o,s,a,l,h,c,u,d,p,f=ft.ajaxSetup({},i),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?ft(g):ft.event,v=ft.Deferred(),y=ft.Callbacks("once memory"),x=f.statusCode||{},b={},w={},k="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Ne.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)T.always(t[T.status]);else for(e in t)x[e]=[x[e],t[e]];return this},abort:function(t){var e=t||k;return r&&r.abort(e),n(0,e),this}};if(v.promise(T),f.url=((e||f.url||Te.href)+"").replace(ze,Te.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Lt)||[""],null==f.crossDomain){h=et.createElement("a");try{h.href=f.url,h.href=h.href,f.crossDomain=He.protocol+"//"+He.host!=h.protocol+"//"+h.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ft.param(f.data,f.traditional)),K(Re,f,i,T),c)return T;(u=ft.event&&f.global)&&0==ft.active++&&ft.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!_e.test(f.type),o=f.url.replace(Pe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Oe,"+")):(p=f.url.slice(o.length),f.data&&(o+=(Ce.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Ee,"$1"),p=(Ce.test(o)?"&":"?")+"_="+Me+++p),f.url=o+p),f.ifModified&&(ft.lastModified[o]&&T.setRequestHeader("If-Modified-Since",ft.lastModified[o]),ft.etag[o]&&T.setRequestHeader("If-None-Match",ft.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Fe+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)T.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(g,T,f)||c))return T.abort();if(k="abort",y.add(f.complete),T.done(f.success),T.fail(f.error),r=K(je,f,i,T)){if(T.readyState=1,u&&m.trigger("ajaxSend",[T,f]),c)return T;f.async&&f.timeout>0&&(l=t.setTimeout(function(){T.abort("timeout")},f.timeout));try{c=!1,r.send(b,n)}catch(t){if(c)throw t;n(-1,t)}}else n(-1,"No Transport");return T},getJSON:function(t,e,i){return ft.get(t,e,i,"json")},getScript:function(t,e){return ft.get(t,void 0,e,"script")}}),ft.each(["get","post"],function(t,e){ft[e]=function(t,i,n,r){return ft.isFunction(i)&&(r=r||n,n=i,i=void 0),ft.ajax(ft.extend({url:t,type:e,dataType:r,data:i,success:n},ft.isPlainObject(t)&&t))}}),ft._evalUrl=function(t){return ft.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ft.fn.extend({wrapAll:function(t){var e;return this[0]&&(ft.isFunction(t)&&(t=t.call(this[0])),e=ft(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return ft.isFunction(t)?this.each(function(e){ft(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ft(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=ft.isFunction(t);return this.each(function(i){ft(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){ft(this).replaceWith(this.childNodes)}),this}}),ft.expr.pseudos.hidden=function(t){return!ft.expr.pseudos.visible(t)},ft.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},ft.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Be={0:200,1223:204},We=ft.ajaxSettings.xhr();dt.cors=!!We&&"withCredentials"in We,dt.ajax=We=!!We,ft.ajaxTransport(function(e){var i,n;if(dt.cors||We&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Be[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){i&&n()})},i=i("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}}),ft.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),ft.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ft.globalEval(t),t}}}),ft.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ft.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=ft("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),et.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Ge=[],Ye=/(=)\?(?=&|$)|\?\?/;ft.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||ft.expando+"_"+Me++;return this[t]=!0,t}}),ft.ajaxPrefilter("json jsonp",function(e,i,n){var r,o,s,a=!1!==e.jsonp&&(Ye.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=ft.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ye,"$1"+r):!1!==e.jsonp&&(e.url+=(Ce.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||ft.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},n.always(function(){void 0===o?ft(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,Ge.push(r)),s&&ft.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),dt.createHTMLDocument=function(){var t=et.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),ft.parseHTML=function(t,e,i){if("string"!=typeof t)return[];"boolean"==typeof e&&(i=e,e=!1);var n,r,o;return e||(dt.createHTMLDocument?(e=et.implementation.createHTMLDocument(""),n=e.createElement("base"),n.href=et.location.href,e.head.appendChild(n)):e=et),r=Tt.exec(t),o=!i&&[],r?[e.createElement(r[1])]:(r=b([t],e,o),o&&o.length&&ft(o).remove(),ft.merge([],r.childNodes))},ft.fn.load=function(t,e,i){var n,r,o,s=this,a=t.indexOf(" ");return a>-1&&(n=X(t.slice(a)),t=t.slice(0,a)),ft.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&ft.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(n?ft("<div>").append(ft.parseHTML(t)).find(n):t)}).always(i&&function(t,e){s.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},ft.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ft.fn[e]=function(t){return this.on(e,t)}}),ft.expr.pseudos.animated=function(t){return ft.grep(ft.timers,function(e){return t===e.elem}).length},ft.offset={setOffset:function(t,e,i){var n,r,o,s,a,l,h=ft.css(t,"position"),c=ft(t),u={};"static"===h&&(t.style.position="relative"),a=c.offset(),o=ft.css(t,"top"),l=ft.css(t,"left"),("absolute"===h||"fixed"===h)&&(o+l).indexOf("auto")>-1?(n=c.position(),s=n.top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),ft.isFunction(e)&&(e=e.call(t,i,ft.extend({},a))),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+r),"using"in e?e.using.call(t,u):c.css(u)}},ft.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ft.offset.setOffset(this,t,e)});var e,i,n,r,o=this[0];return o?o.getClientRects().length?(n=o.getBoundingClientRect(),e=o.ownerDocument,i=e.documentElement,r=e.defaultView,{top:n.top+r.pageYOffset-i.clientTop,left:n.left+r.pageXOffset-i.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===ft.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),r(t[0],"html")||(n=t.offset()),n={top:n.top+ft.css(t[0],"borderTopWidth",!0),left:n.left+ft.css(t[0],"borderLeftWidth",!0)}),{top:e.top-n.top-ft.css(i,"marginTop",!0),left:e.left-n.left-ft.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ft.css(t,"position");)t=t.offsetParent;return t||qt})}}),ft.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;ft.fn[t]=function(n){return Et(this,function(t,n,r){var o;return ft.isWindow(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r?o?o[e]:t[n]:void(o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r)},t,n,arguments.length)}}),ft.each(["top","left"],function(t,e){ft.cssHooks[e]=N(dt.pixelPosition,function(t,i){if(i)return i=E(t,e),oe.test(i)?ft(t).position()[e]+"px":i})}),ft.each({Height:"height",Width:"width"},function(t,e){ft.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){ft.fn[n]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return Et(this,function(e,i,r){var o;return ft.isWindow(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?ft.css(e,i,a):ft.style(e,i,r,a)},e,s?r:void 0,s)}})}),ft.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),ft.holdReady=function(t){t?ft.readyWait++:ft.ready(!0)},ft.isArray=Array.isArray,ft.parseJSON=JSON.parse,ft.nodeName=r,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ft});var $e=t.jQuery,Xe=t.$;return ft.noConflict=function(e){return t.$===ft&&(t.$=Xe),e&&t.jQuery===ft&&(t.jQuery=$e),ft},e||(t.jQuery=t.$=ft),ft}),function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),r=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||i.data("bs.collapse",r=new n(this,o)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),e||r.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[s](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var r=t(n);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var r=t(this);r.attr("data-target")||n.preventDefault();var o=e(r),s=o.data("bs.collapse")?"toggle":r.data();i.call(o,s)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(n).remove(),t(r).each(function(){var n=t(this),r=e(n),o={relatedTarget:this};r.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(r[0],i.target)||(r.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}var n=".dropdown-backdrop",r='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.7",o.prototype.toggle=function(n){var r=t(this);if(!r.is(".disabled, :disabled")){var o=e(r),s=o.hasClass("open");if(i(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},o.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var o=e(n),s=o.hasClass("open");if(!s&&27!=i.which||s&&27==i.which)return 27==i.which&&o.find(r).trigger("focus"),n.trigger("click");var a=o.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(i.target);38==i.which&&l>0&&l--,40==i.which&&l<a.length-1&&l++,~l||(l=0),a.eq(l).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new o(this)),"string"==typeof e&&n[e].call(i)})},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var s=r[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},e.prototype.show=function(){var i=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;var r=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=o[0].offsetWidth,d=o[0].offsetHeight;if(h){var p=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+d>f.bottom?"top":"top"==a&&c.top-d<f.top?"bottom":"right"==a&&c.right+u>f.width?"left":"left"==a&&c.left-u<f.left?"right":a,o.removeClass(p).addClass(a)}var g=this.getCalculatedOffset(a,c,u,d);this.applyPlacement(g,a);var m=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(e.TRANSITION_DURATION):m()}},e.prototype.applyPlacement=function(e,i){var n=this.tip(),r=n[0].offsetWidth,o=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=o&&(e.top=e.top+o-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var u=/top|bottom/.test(i),d=u?2*c.left-r+l:2*c.top-o+h,p=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],u)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(i){function n(){"in"!=r.hoverState&&o.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),i&&i()}var r=this,o=t(this.$tip),s=t.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(e.TRANSITION_DURATION):n(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName,r=i.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&i instanceof window.SVGElement,s=n?{top:0,left:0}:o?null:e.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,a,l,s)},e.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,i,n){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,l=e.top+o-s.scroll+n;a<s.top?r.top=s.top-a:l>s.top+s.height&&(r.top=s.top+s.height-l)}else{var h=e.left-o,c=e.left+o+i;h<s.left?r.left=s.left-h:c>s.right&&(r.left=s.left+s.width-c)}return r},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each(function(){var n=t(this),r=n.data("bs.tooltip"),o="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||n.data("bs.tooltip",r=new e(this,o)),"string"==typeof i&&r[i]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function r(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function o(i,n){return function(){return n!==e&&t.fn.datepicker.deprecated(n),this[i].apply(this,arguments)}}function s(t){return t&&!isNaN(t.getTime())}function a(e,i){var n=t(e).data(),r={},o=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var s in n)i.test(s)&&(r[s.replace(o,function(t,e){return e.toLowerCase()})]=n[s]);return r}function l(e){var i={};if(m[e]||(e=e.split("-")[0],m[e])){var n=m[e];return t.each(g,function(t,e){e in n&&(i[e]=n[e])}),i}}var h=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new h;return t.replace(this),t}};return function(){var i=[];return i.push.apply(i,arguments),t.extend(i,e),i}}(),c=function(e,i){t.data(e,"datepicker",this),this._process_options(i),this.dates=new h,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(v.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return Number(e)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};c.prototype={constructor:c,_resolveViewName:function(e){return t.each(v.viewModes,function(i,n){if(e===i||-1!==t.inArray(e,n.names))return e=i,!1}),e},_resolveDaysOfWeek:function(e){return t.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{return i!==e&&""!==i&&((i.match(/[<>]/g)||[]).length<=0||t(i).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var r=this.o=t.extend({},this._o),o=r.language;m[o]||(o=o.split("-")[0],m[o]||(o=f.language)),r.language=o,r.startView=this._resolveViewName(r.startView),r.minViewMode=this._resolveViewName(r.minViewMode),r.maxViewMode=this._resolveViewName(r.maxViewMode),r.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,r.startView)),!0!==r.multidate&&(r.multidate=Number(r.multidate)||!1,!1!==r.multidate&&(r.multidate=Math.max(0,r.multidate))),r.multidateSeparator=String(r.multidateSeparator),r.weekStart%=7,r.weekEnd=(r.weekStart+6)%7;var s=v.parseFormat(r.format);r.startDate!==-1/0&&(r.startDate?r.startDate instanceof Date?r.startDate=this._local_to_utc(this._zero_time(r.startDate)):r.startDate=v.parseDate(r.startDate,s,r.language,r.assumeNearbyYear):r.startDate=-1/0),r.endDate!==1/0&&(r.endDate?r.endDate instanceof Date?r.endDate=this._local_to_utc(this._zero_time(r.endDate)):r.endDate=v.parseDate(r.endDate,s,r.language,r.assumeNearbyYear):r.endDate=1/0),r.daysOfWeekDisabled=this._resolveDaysOfWeek(r.daysOfWeekDisabled||[]),r.daysOfWeekHighlighted=this._resolveDaysOfWeek(r.daysOfWeekHighlighted||[]),r.datesDisabled=r.datesDisabled||[],t.isArray(r.datesDisabled)||(r.datesDisabled=r.datesDisabled.split(",")),r.datesDisabled=t.map(r.datesDisabled,function(t){return v.parseDate(t,s,r.language,r.assumeNearbyYear)});var a=String(r.orientation).toLowerCase().split(/\s+/g),l=r.orientation.toLowerCase();if(a=t.grep(a,function(t){return/^auto|left|right|top|bottom$/.test(t)}),r.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":r.orientation.y=a[0];break;case"left":case"right":r.orientation.x=a[0]}else l=t.grep(a,function(t){return/^left|right$/.test(t)}),r.orientation.x=l[0]||"auto",l=t.grep(a,function(t){return/^top|bottom$/.test(t)}),r.orientation.y=l[0]||"auto";else;if(r.defaultViewDate instanceof Date||"string"==typeof r.defaultViewDate)r.defaultViewDate=v.parseDate(r.defaultViewDate,s,r.language,r.assumeNearbyYear);else if(r.defaultViewDate){var h=r.defaultViewDate.year||(new Date).getFullYear(),c=r.defaultViewDate.month||0,u=r.defaultViewDate.day||1;r.defaultViewDate=i(h,c,u)}else r.defaultViewDate=n()},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var i,n,r,o=0;o<t.length;o++)i=t[o][0],2===t[o].length?(n=e,r=t[o][1]):3===t[o].length&&(n=t[o][1],r=t[o][2]),i.on(r,n)},_unapplyEvents:function(t){for(var i,n,r,o=0;o<t.length;o++)i=t[o][0],2===t[o].length?(r=e,n=t[o][1]):3===t[o].length&&(r=t[o][1],n=t[o][2]),i.off(n,r)},_buildEvents:function(){var e={keyup:t.proxy(function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var n=i||this.dates.get(-1),r=this._utc_to_local(n);this.element.trigger({type:e,date:r,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return v.formatDate(i,e,this.o.language)},this)})},show:function(){if(!(this.inputField.prop("disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:o("setDates"),setUTCDate:o("setUTCDates"),remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var n=this.o.language;return t.map(this.dates,function(t){return v.formatDate(t,i,n)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),n=t(this.o.container),r=n.width(),o="body"===this.o.container?t(document).scrollTop():n.scrollTop(),s=n.offset(),a=[0];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&a.push(Number(e))});var l=Math.max.apply(Math,a)+this.o.zIndexOffset,h=this.component?this.component.parent().offset():this.element.offset(),c=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),d=h.left-s.left,p=h.top-s.top;"body"!==this.o.container&&(p+=o),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(d-=e-u)):h.left<0?(this.picker.addClass("datepicker-orient-left"),d-=h.left-10):d+e>r?(this.picker.addClass("datepicker-orient-right"),d+=u-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-o+p-i<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?p-=i+parseInt(this.picker.css("padding-top")):p+=c,this.o.rtl){var g=r-(d+u);this.picker.css({top:p,right:g,zIndex:l})}else this.picker.css({top:p,left:d,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],n=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),n?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&n&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='">'+m[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",i=0;i<12;i++)e+='<span class="month'+(t&&t.getMonth()===i?" focused":"")+'">'+m[this.o.language].monthsShort[i]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],o=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a=n();return e.getUTCFullYear()<o||e.getUTCFullYear()===o&&e.getUTCMonth()<s?i.push("old"):(e.getUTCFullYear()>o||e.getUTCFullYear()===o&&e.getUTCMonth()>s)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&r(e,a)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,n,r,o,s,a,l){for(var h,c,u,d="",p=r/10,f=this.picker.find(i),g=Math.floor(o/r)*r,m=g+9*p,v=Math.floor(this.viewDate.getFullYear()/p)*p,y=t.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/p)*p}),x=g-p;x<=m+p;x+=p)h=[n],c=null,x===g-p?h.push("old"):x===m+p&&h.push("new"),-1!==t.inArray(x,y)&&h.push("active"),(x<s||x>a)&&h.push("disabled"),x===v&&h.push("focused"),l!==t.noop&&((u=l(new Date(x,0,1)))===e?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&h.push("disabled"),u.classes&&(h=h.concat(u.classes.split(/\s+/))),u.tooltip&&(c=u.tooltip)),d+='<span class="'+h.join(" ")+'"'+(c?' title="'+c+'"':"")+">"+x+"</span>";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(d)},fill:function(){var n,r,o=new Date(this.viewDate),s=o.getUTCFullYear(),a=o.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,h=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",f=m[this.o.language].titleFormat||m.en.titleFormat;if(!isNaN(s)&&!isNaN(a)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(o,f,this.o.language)),this.picker.find("tfoot .today").text(d).css("display",!0===this.o.todayBtn||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var g=i(s,a,0),y=g.getUTCDate();g.setUTCDate(y-(g.getUTCDay()-this.o.weekStart+7)%7);var x=new Date(g);g.getUTCFullYear()<100&&x.setUTCFullYear(g.getUTCFullYear()),x.setUTCDate(x.getUTCDate()+42),x=x.valueOf();for(var b,w,k=[];g.valueOf()<x;){if((b=g.getUTCDay())===this.o.weekStart&&(k.push("<tr>"),this.o.calendarWeeks)){var T=new Date(+g+(this.o.weekStart-b-7)%7*864e5),M=new Date(Number(T)+(11-T.getUTCDay())%7*864e5),C=new Date(Number(C=i(M.getUTCFullYear(),0,1))+(11-C.getUTCDay())%7*864e5),S=(M-C)/864e5/7+1;k.push('<td class="cw">'+S+"</td>")}(w=this.getClassNames(g)).push("day");var D=g.getUTCDate();this.o.beforeShowDay!==t.noop&&((r=this.o.beforeShowDay(this._utc_to_local(g)))===e?r={}:"boolean"==typeof r?r={enabled:r}:"string"==typeof r&&(r={classes:r}),!1===r.enabled&&w.push("disabled"),r.classes&&(w=w.concat(r.classes.split(/\s+/))),r.tooltip&&(n=r.tooltip),r.content&&(D=r.content)),w=t.isFunction(t.uniqueSort)?t.uniqueSort(w):t.unique(w),k.push('<td class="'+w.join(" ")+'"'+(n?' title="'+n+'"':"")+' data-date="'+g.getTime().toString()+'">'+D+"</td>"),n=null,b===this.o.weekEnd&&k.push("</tr>"),g.setUTCDate(g.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(k.join(""));var A=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",L=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?A:s).end().find("tbody span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===s&&L.eq(e.getUTCMonth()).addClass("active")}),(s<l||s>c)&&L.addClass("disabled"),s===l&&L.slice(0,h).addClass("disabled"),s===c&&L.slice(u+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var O=this;t.each(L,function(i,n){var r=new Date(s,i,1),o=O.o.beforeShowMonth(r);o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1!==o.enabled||t(n).hasClass("disabled")||t(n).addClass("disabled"),o.classes&&t(n).addClass(o.classes),o.tooltip&&t(n).prop("title",o.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,s,l,c,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,l,c,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,l,c,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),n=i.getUTCFullYear(),r=i.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=1;switch(this.viewMode){case 0:t=n<=o&&r<=s,e=n>=a&&r>=l;break;case 4:h*=10;case 3:h*=10;case 2:h*=10;case 1:t=Math.floor(n/h)*h<=o,e=Math.floor(n/h)*h+h>=a}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){e.preventDefault(),e.stopPropagation();var r,o,s,a;(r=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(n(),"linked"===this.o.todayBtn?null:"view")),r.hasClass("clear")&&this.clearDates(),r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(a=r.parent().find("span").index(r),s=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,s=Number(r.text()),this.viewDate.setUTCFullYear(s)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(s,a,o)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget).data("date"),n=new Date(i);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(e){var i=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(i*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,i),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!s(t))return this.o.defaultViewDate;if(!e)return t;var i,n,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)n=-1===e?function(){return r.getUTCMonth()===a}:function(){return r.getUTCMonth()!==i},i=a+e,r.setUTCMonth(i),i=(i+12)%12;else{for(var h=0;h<l;h++)r=this.moveMonth(r,e);i=r.getUTCMonth(),r.setUTCDate(o),n=function(){return i!==r.getUTCMonth()}}for(;n();)r.setUTCDate(--o),r.setUTCMonth(i);return r},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,function(t){return r(e,t)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,n=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(i=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(r,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),n=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}n&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var u=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,p.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t.data(e,"datepicker")}),this.updateDates()};u.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var n=t.data(i.target,"datepicker");if(n!==e){var r=n.getUTCDate(),o=this.keepEmptyValues,s=t.inArray(i.target,this.inputs),a=s-1,l=s+1,h=this.inputs.length;if(-1!==s){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e!==n&&o||e.setUTCDate(r)}),r<this.dates[a])for(;a>=0&&r<this.dates[a];)this.pickers[a--].setUTCDate(r);else if(r>this.dates[l])for(;l<h&&r>this.dates[l];)this.pickers[l++].setUTCDate(r);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,function(t){t.destroy()}),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var d=t.fn.datepicker,p=function(i){var n=Array.apply(null,arguments);n.shift();var r;if(this.each(function(){var e=t(this),o=e.data("datepicker"),s="object"==typeof i&&i;if(!o){var h=a(this,"date"),d=l(t.extend({},f,h,s).language),p=t.extend({},f,d,h,s);e.hasClass("input-daterange")||p.inputs?(t.extend(p,{inputs:p.inputs||e.find("input").toArray()}),o=new u(this,p)):o=new c(this,p),e.data("datepicker",o)}"string"==typeof i&&"function"==typeof o[i]&&(r=o[i].apply(o,n))}),r===e||r instanceof c||r instanceof u)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return r};t.fn.datepicker=p;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=c;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,r,o,s){function a(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}function l(){var t=this.slice(0,h[p].length),e=h[p].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!i)return e;if(i instanceof Date)return i;if("string"==typeof r&&(r=v.parseFormat(r)),r.toValue)return r.toValue(i,r,o);var h,u,d,p,f,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},y={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in y&&(i=y[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(h=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,p=0;p<h.length;p++)u=h[p].match(/([\-+]\d+)([dmwy])/i),d=Number(u[1]),f=g[u[2].toLowerCase()],i=c.prototype[f](i,d);return c.prototype._zero_utc_time(i)}h=i&&i.match(this.nonpunctuation)||[];var x,b,w={},k=["yyyy","yy","M","MM","m","mm","d","dd"],T={yyyy:function(t,e){return t.setUTCFullYear(s?a(e,s):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};T.yy=T.yyyy,T.M=T.MM=T.mm=T.m,T.dd=T.d,i=n();var M=r.parts.slice();if(h.length!==M.length&&(M=t(M).filter(function(e,i){return-1!==t.inArray(i,k)}).toArray()),h.length===M.length){var C;for(p=0,C=M.length;p<C;p++){if(x=parseInt(h[p],10),u=M[p],isNaN(x))switch(u){case"MM":b=t(m[o].months).filter(l),x=t.inArray(b[0],m[o].months)+1;break;case"M":b=t(m[o].monthsShort).filter(l),x=t.inArray(b[0],m[o].monthsShort)+1}w[u]=x}var S,D;for(p=0;p<k.length;p++)(D=k[p])in w&&!isNaN(w[D])&&(S=new Date(i),T[D](S,w[D]),isNaN(S)||(i=S))}return i},formatDate:function(e,i,n){if(!e)return"";if("string"==typeof i&&(i=v.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,n);var r={d:e.getUTCDate(),D:m[n].daysShort[e.getUTCDay()],DD:m[n].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:m[n].monthsShort[e.getUTCMonth()],MM:m[n].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};r.dd=(r.d<10?"0":"")+r.d,r.mm=(r.m<10?"0":"")+r.m,e=[];for(var o=t.extend([],i.separators),s=0,a=i.parts.length;s<=a;s++)o.length&&e.push(o.shift()),e.push(r[i.parts[s]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+f.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+f.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};v.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+v.headTemplate+"<tbody></tbody>"+v.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d,this},t.fn.datepicker.version="1.7.1",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),p.call(i,"show"))}),t(function(){p.call(t('[data-provide="datepicker-inline"]'))})}),jQuery.fn.datepicker.dates.nb={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I Dag",format:"dd.mm.yyyy"},function(t,e){"object"==typeof module&&module.exports?module.exports=t.document?e(t):e:t.Highcharts=e(t)}("undefined"!=typeof window?window:this,function(t){(function(t){var e=[],i=t.charts,n=t.doc,r=t.win;t.error=function(e,i){if(e=t.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,i)throw Error(e);r.console&&console.log(e)},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],i=this.paths[1],n=[],r=this.now,o=e.length;if(1===r)n=this.toD;else if(o===i.length&&1>r)for(;o--;)t=parseFloat(e[o]),n[o]=isNaN(t)?e[o]:r*parseFloat(i[o]-t)+t;else n=i;this.elem.attr("d",n,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},run:function(t,i,n){var r,o=this,s=function(t){return!s.stopped&&o.step(t)};this.startTime=+new Date,this.start=t,this.end=i,this.unit=n,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===e.push(s)&&(s.timerId=setInterval(function(){for(r=0;r<e.length;r++)e[r]()||e.splice(r--,1);e.length||clearInterval(s.timerId)},13))},step:function(e){var i,n=+new Date,r=this.options,o=this.elem,s=r.complete,a=r.duration,l=r.curAnim;return o.attr&&!o.element?e=!1:e||n>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),i=l[this.prop]=!0,t.objectEach(l,function(t){!0!==t&&(i=!1)}),i&&s&&s.call(o),e=!1):(this.pos=r.easing((n-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(e,i,n){function r(t){var e,i;for(c=t.length;c--;)e="M"===t[c]||"L"===t[c],i=/[a-zA-Z]/.test(t[c+3]),e&&i&&t.splice(c+1,0,t[c+1],t[c+2],t[c+1],t[c+2])}function o(t,e){for(;t.length<l;){t[0]=e[l-t.length];var i=t.slice(0,f);[].splice.apply(t,[0,0].concat(i)),m&&(i=t.slice(t.length-f),[].splice.apply(t,[t.length,0].concat(i)),c--)}t[0]="M"}function s(t,e){for(var i=(l-t.length)/f;0<i&&i--;)h=t.slice().splice(t.length/v-f,f*v),h[0]=e[l-f-i*f],p&&(h[f-6]=h[f-2],h[f-5]=h[f-1]),[].splice.apply(t,[t.length/v,0].concat(h)),m&&i--}i=i||"";var a,l,h,c,u=e.startX,d=e.endX,p=-1<i.indexOf("C"),f=p?7:3;i=i.split(" "),n=n.slice();var g,m=e.isArea,v=m?2:1;if(p&&(r(i),r(n)),u&&d){for(c=0;c<u.length;c++){if(u[c]===d[0]){a=c;break}if(u[0]===d[d.length-u.length+c]){a=c,g=!0;break}}void 0===a&&(i=[])}return i.length&&t.isNumber(a)&&(l=n.length+a*v*f,g?(o(i,n),s(n,i)):(o(n,i),s(i,n))),[i,n]}},t.Fx.prototype.fillSetter=t.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)},t.extend=function(t,e){var i;t||(t={});for(i in e)t[i]=e[i];return t},t.merge=function(){var e,i,n=arguments,r={},o=function(e,i){return"object"!=typeof e&&(e={}),t.objectEach(i,function(n,r){!t.isObject(n,!0)||t.isClass(n)||t.isDOMElement(n)?e[r]=i[r]:e[r]=o(e[r]||{},n)}),e};for(!0===n[0]&&(r=n[1],n=Array.prototype.slice.call(n,2)),i=n.length,e=0;e<i;e++)r=o(r,n[e]);return r},t.pInt=function(t,e){return parseInt(t,e||10)},t.isString=function(t){return"string"==typeof t},t.isArray=function(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t},t.isObject=function(e,i){return!(!e||"object"!=typeof e||i&&t.isArray(e))},t.isDOMElement=function(e){return t.isObject(e)&&"number"==typeof e.nodeType},t.isClass=function(e){var i=e&&e.constructor;return!(!t.isObject(e,!0)||t.isDOMElement(e)||!i||!i.name||"Object"===i.name)},t.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.erase=function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},t.defined=function(t){return void 0!==t&&null!==t},t.attr=function(e,i,n){var r;return t.isString(i)?t.defined(n)?e.setAttribute(i,n):e&&e.getAttribute&&(r=e.getAttribute(i)):t.defined(i)&&t.isObject(i)&&t.objectEach(i,function(t,i){e.setAttribute(i,t)}),r},t.splat=function(e){return t.isArray(e)?e:[e]},t.syncTimeout=function(t,e,i){if(e)return setTimeout(t,e,i);t.call(0,i)},t.pick=function(){var t,e,i=arguments,n=i.length;for(t=0;t<n;t++)if(void 0!==(e=i[t])&&null!==e)return e},t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),t.extend(e.style,i)},t.createElement=function(e,i,r,o,s){e=n.createElement(e);var a=t.css;return i&&t.extend(e,i),s&&a(e,{padding:0,border:"none",margin:0}),r&&a(e,r),o&&o.appendChild(e),e},t.extendClass=function(e,i){var n=function(){};return n.prototype=new e,t.extend(n.prototype,i),n},t.pad=function(t,e,i){return Array((e||2)+1-String(t).length).join(i||0)+t},t.relativeLength=function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},t.wrap=function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){n.apply(r,arguments.length?arguments:e)},t.unshift(n),t=i.apply(this,t),r.proceed=null,t}},t.getTZOffset=function(e){var i=t.Date;return 6e4*(i.hcGetTimezoneOffset&&i.hcGetTimezoneOffset(e)||i.hcTimezoneOffset||0)},t.dateFormat=function(e,i,n){if(!t.defined(i)||isNaN(i))return t.defaultOptions.lang.invalidDate||"";e=t.pick(e,"%Y-%m-%d %H:%M:%S");var r=new(f=t.Date)(i-t.getTZOffset(i)),o=r[f.hcGetHours](),s=r[f.hcGetDay](),a=r[f.hcGetDate](),l=r[f.hcGetMonth](),h=r[f.hcGetFullYear](),c=t.defaultOptions.lang,u=c.weekdays,d=c.shortWeekdays,p=t.pad,f=t.extend({a:d?d[s]:u[s].substr(0,3),A:u[s],d:p(a),e:p(a,2," "),w:s,b:c.shortMonths[l],B:c.months[l],m:p(l+1),y:h.toString().substr(2,2),Y:h,H:p(o),k:o,I:p(o%12||12),l:o%12||12,M:p(r[f.hcGetMinutes]()),p:12>o?"AM":"PM",P:12>o?"am":"pm",S:p(r.getSeconds()),L:p(Math.round(i%1e3),3)},t.dateFormats);return t.objectEach(f,function(t,n){for(;-1!==e.indexOf("%"+n);)e=e.replace("%"+n,"function"==typeof t?t(i):t)}),n?e.substr(0,1).toUpperCase()+e.substr(1):e},t.formatSingle=function(e,i){var n=/\.([0-9])/,r=t.defaultOptions.lang;return/f$/.test(e)?(n=(n=e.match(n))?n[1]:-1,null!==i&&(i=t.numberFormat(i,n,r.decimalPoint,-1<e.indexOf(",")?r.thousandsSep:""))):i=t.dateFormat(e,i),i},t.format=function(e,i){for(var n,r,o,s,a,l="{",h=!1,c=[];e&&-1!==(l=e.indexOf(l));){if(n=e.slice(0,l),h){for(s=(r=(n=n.split(":")).shift().split(".")).length,a=i,o=0;o<s;o++)a=a[r[o]];n.length&&(a=t.formatSingle(n.join(":"),a)),c.push(a)}else c.push(n);e=e.slice(l+1),l=(h=!h)?"}":"{"}return c.push(e),c.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(e,i,n,r,o){var s,a=e;for(s=e/(n=t.pick(n,1)),i||(i=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?i=t.grep(i,function(t){return 0==t%1}):.1>=n&&(i=[1/n]))),r=0;r<i.length&&(a=i[r],!(o&&a*n>=e||!o&&s<=(i[r]+(i[r+1]||i[r]))/2));r++);return a=t.correctFloat(a*n,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,n,r=t.length;for(n=0;n<r;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(i=e(t,n))?t.safeI-n.safeI:i}),n=0;n<r;n++)delete t[n].safeI},t.arrayMin=function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},t.arrayMax=function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},t.destroyObjectProperties=function(e,i){t.objectEach(e,function(t,n){t&&t!==i&&t.destroy&&t.destroy(),delete e[n]})},t.discardElement=function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.setAnimation=function(e,i){i.renderer.globalAnimation=t.pick(e,i.options.chart.animation,!0)},t.animObject=function(e){return t.isObject(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(e,i,n,r){e=+e||0,i=+i;var o,s,a=t.defaultOptions.lang,l=(e.toString().split(".")[1]||"").split("e")[0].length,h=e.toString().split("e");return-1===i?i=Math.min(l,20):t.isNumber(i)||(i=2),s=(Math.abs(h[1]?h[0]:e)+Math.pow(10,-Math.max(i,l)-1)).toFixed(i),l=String(t.pInt(s)),o=3<l.length?l.length%3:0,n=t.pick(n,a.decimalPoint),r=t.pick(r,a.thousandsSep),e=(0>e?"-":"")+(o?l.substr(0,o)+r:""),e+=l.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+r),i&&(e+=n+s.slice(-i)),h[1]&&(e+="e"+h[1]),e},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,i,n){return"width"===i?Math.min(e.offsetWidth,e.scrollWidth)-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"):"height"===i?Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom"):((e=r.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(i),t.pick(n,!0)&&(e=t.pInt(e))),e)},t.inArray=function(t,e){return e.indexOf?e.indexOf(t):[].indexOf.call(e,t)},t.grep=function(t,e){return[].filter.call(t,e)},t.find=function(t,e){return[].find.call(t,e)},t.map=function(t,e){for(var i=[],n=0,r=t.length;n<r;n++)i[n]=e.call(t[n],t[n],n,t);return i},t.offset=function(t){var e=n.documentElement;return t=t.getBoundingClientRect(),{top:t.top+(r.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(r.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},t.stop=function(t,i){for(var n=e.length;n--;)e[n].elem!==t||i&&i!==e[n].prop||(e[n].stopped=!0)},t.each=function(t,e,i){return Array.prototype.forEach.call(t,e,i)},t.objectEach=function(t,e,i){for(var n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)},t.addEvent=function(e,i,n){function o(t){t.target=t.srcElement||r,n.call(e,t)}var s=e.hcEvents=e.hcEvents||{};return e.addEventListener?e.addEventListener(i,n,!1):e.attachEvent&&(e.hcEventsIE||(e.hcEventsIE={}),n.hcGetKey||(n.hcGetKey=t.uniqueKey()),e.hcEventsIE[n.hcGetKey]=o,e.attachEvent("on"+i,o)),s[i]||(s[i]=[]),s[i].push(n),function(){t.removeEvent(e,i,n)}},t.removeEvent=function(e,i,n){function r(t,i){e.removeEventListener?e.removeEventListener(t,i,!1):e.attachEvent&&(i=e.hcEventsIE[i.hcGetKey],e.detachEvent("on"+t,i))}function o(){var n,o;e.nodeName&&(i?(n={},n[i]=!0):n=l,t.objectEach(n,function(t,e){if(l[e])for(o=l[e].length;o--;)r(e,l[e][o])}))}var s,a,l=e.hcEvents;l&&(i?(s=l[i]||[],n?(-1<(a=t.inArray(n,s))&&(s.splice(a,1),l[i]=s),r(i,n)):(o(),l[i]=[])):(o(),e.hcEvents={}))},t.fireEvent=function(e,i,r,o){var s;s=e.hcEvents;var a,l;if(r=r||{},n.createEvent&&(e.dispatchEvent||e.fireEvent))(s=n.createEvent("Events")).initEvent(i,!0,!0),t.extend(s,r),e.dispatchEvent?e.dispatchEvent(s):e.fireEvent(i,s);else if(s)for(s=s[i]||[],a=s.length,r.target||t.extend(r,{preventDefault:function(){r.defaultPrevented=!0},target:e,type:i}),i=0;i<a;i++)(l=s[i])&&!1===l.call(e,r)&&r.preventDefault();o&&!r.defaultPrevented&&o(r)},t.animate=function(e,i,n){var r,o,s,a,l="";t.isObject(n)||(a=arguments,n={duration:a[2],easing:a[3],complete:a[4]}),t.isNumber(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=t.merge(i),t.objectEach(i,function(a,h){t.stop(e,h),s=new t.Fx(e,n,h),o=null,"d"===h?(s.paths=s.initPath(e,e.d,i.d),s.toD=i.d,r=0,o=1):e.attr?r=e.attr(h):(r=parseFloat(t.getStyle(e,h))||0,"opacity"!==h&&(l="px")),o||(o=a),o&&o.match&&o.match("px")&&(o=o.replace(/px/g,"")),s.run(r,o,l)})},t.seriesType=function(e,i,n,r,o){var s=t.getOptions(),a=t.seriesTypes;return s.plotOptions[e]=t.merge(s.plotOptions[i],n),a[e]=t.extendClass(a[i]||function(){},r),a[e].prototype.type=e,o&&(a[e].prototype.pointClass=t.extendClass(t.Point,o)),a[e]},t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+t+"-"+e++}}(),r.jQuery&&(r.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[t.isString(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):i[t.attr(this[0],"data-highcharts-chart")]}),n&&!n.defaultView&&(t.getStyle=function(e,i){var n={width:"clientWidth",height:"clientHeight"}[i];return e.style[i]?t.pInt(e.style[i]):("opacity"===i&&(i="filter"),n?(e.style.zoom=1,Math.max(e[n]-2*t.getStyle(e,"padding"),0)):(e=e.currentStyle[i.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()})],"filter"===i&&(e=e.replace(/alpha\(opacity=([0-9]+)\)/,function(t,e){return e/100})),""===e?1:t.pInt(e)))}),Array.prototype.forEach||(t.each=function(t,e,i){for(var n=0,r=t.length;n<r;n++)if(!1===e.call(i,t[n],n,t))return n}),Array.prototype.indexOf||(t.inArray=function(t,e){var i,n=0;if(e)for(i=e.length;n<i;n++)if(e[n]===t)return n;return-1}),Array.prototype.filter||(t.grep=function(t,e){for(var i=[],n=0,r=t.length;n<r;n++)e(t[n],n)&&i.push(t[n]);return i}),Array.prototype.find||(t.find=function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(e(t[i],i))return t[i]})})(t=function(){var t=window,e=t.document,i=t.navigator&&t.navigator.userAgent||"",n=e&&e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=/(edge|msie|trident)/i.test(i)&&!window.opera,o=!n,s=/Firefox/.test(i),a=s&&4>parseInt(i.split("Firefox/")[1],10);return t.Highcharts?t.Highcharts.error(16,!0):{product:"Highcharts",version:"5.0.14",deg2rad:2*Math.PI/360,doc:e,hasBidiBug:a,hasTouch:e&&void 0!==e.documentElement.ontouchstart,isMS:r,isWebKit:/AppleWebKit/.test(i),isFirefox:s,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(i),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:n,vml:o,win:t,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}()),function(t){var e=t.each,i=t.isNumber,n=t.map,r=t.merge,o=t.pInt;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={parsers:[{regex:/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*\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),1]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(e){var i,r,o,s;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=n(e.stops,function(e){return new t.Color(e[1])});else if(e&&"#"===e.charAt()&&(i=e.length,e=parseInt(e.substr(1),16),7===i?r=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===i&&(r=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!r)for(o=this.parsers.length;o--&&!r;)s=this.parsers[o],(i=s.regex.exec(e))&&(r=s.parse(i));this.rgba=r||[]},get:function(t){var n,o=this.input,s=this.rgba;return this.stops?(n=r(o),n.stops=[].concat(n.stops),e(this.stops,function(e,i){n.stops[i]=[n.stops[i][0],e.get(t)]})):n=s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":o,n},brighten:function(t){var n,r=this.rgba;if(this.stops)e(this.stops,function(e){e.brighten(t)});else if(i(t)&&0!==t)for(n=0;3>n;n++)r[n]+=o(255*t),0>r[n]&&(r[n]=0),255<r[n]&&(r[n]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var i,n;return t.rgba.length?(i=this.rgba,t=t.rgba,n=1!==t[3]||1!==i[3],t=(n?"rgba(":"rgb(")+Math.round(t[0]+(i[0]-t[0])*(1-e))+","+Math.round(t[1]+(i[1]-t[1])*(1-e))+","+Math.round(t[2]+(i[2]-t[2])*(1-e))+(n?","+(t[3]+(i[3]-t[3])*(1-e)):"")+")"):t=t.input||"none",t}},t.color=function(e){return new t.Color(e)}}(t),function(t){var e,i,n=t.addEvent,r=t.animate,o=t.attr,s=t.charts,a=t.color,l=t.css,h=t.createElement,c=t.defined,u=t.deg2rad,d=t.destroyObjectProperties,p=t.doc,f=t.each,g=t.extend,m=t.erase,v=t.grep,y=t.hasTouch,x=t.inArray,b=t.isArray,w=t.isFirefox,k=t.isMS,T=t.isObject,M=t.isString,C=t.isWebKit,S=t.merge,D=t.noop,A=t.objectEach,L=t.pick,O=t.pInt,P=t.removeEvent,E=t.stop,N=t.svg,I=t.SVG_NS,_=t.symbolSizes,z=t.win;e=t.SVGElement=function(){return this},g(e.prototype,{opacity:1,SVG_NS:I,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(t,e){this.element="span"===e?h(e):p.createElementNS(this.SVG_NS,e),this.renderer=t},animate:function(e,i,n){return 0!==(i=t.animObject(L(i,this.renderer.globalAnimation,!0))).duration?(n&&(i.complete=n),r(this,e,i)):(this.attr(e,null,n),i.step&&i.step.call(this)),this},colorGradient:function(e,i,n){var r,o,s,a,l,h,u,d,p,g,m,v=this.renderer,y=[];e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o&&(s=e[o],l=v.gradients,u=e.stops,g=n.radialReference,b(s)&&(e[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&g&&!c(s.gradientUnits)&&(a=s,s=S(s,v.getRadialAttr(g,a),{gradientUnits:"userSpaceOnUse"})),A(s,function(t,e){"id"!==e&&y.push(e,t)}),A(u,function(t){y.push(t)}),y=y.join(","),l[y]?g=l[y].attr("id"):(s.id=g=t.uniqueKey(),l[y]=h=v.createElement(o).attr(s).add(v.defs),h.radAttr=a,h.stops=[],f(u,function(e){0===e[1].indexOf("rgba")?(r=t.color(e[1]),d=r.get("rgb"),p=r.get("a")):(d=e[1],p=1),e=v.createElement("stop").attr({offset:e[0],"stop-color":d,"stop-opacity":p}).add(h),h.stops.push(e)})),m="url("+v.url+"#"+g+")",n.setAttribute(i,m),n.gradient=y,e.toString=function(){return m})},applyTextOutline:function(e){var i,n,r,s,a,l=this.element;if(-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(l.style.fill))),e=e.split(" "),n=e[e.length-1],(r=e[0])&&"none"!==r&&t.svg){for(this.fakeTS=!0,e=[].slice.call(l.getElementsByTagName("tspan")),this.ySetter=this.xSetter,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*e+i}),a=e.length;a--;)"highcharts-text-outline"===(i=e[a]).getAttribute("class")&&m(e,l.removeChild(i));s=l.firstChild,f(e,function(t,e){0===e&&(t.setAttribute("x",l.getAttribute("x")),e=l.getAttribute("y"),t.setAttribute("y",e||0),null===e&&l.setAttribute("y",0)),t=t.cloneNode(1),o(t,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":r,"stroke-linejoin":"round"}),l.insertBefore(t,s)})}},attr:function(t,e,i,n){var r,o,s,a,l=this.element,h=this;return"string"==typeof t&&void 0!==e&&(r=t,t={},t[r]=e),"string"==typeof t?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(A(t,function(e,i){s=!1,n||E(this,i),this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(i)&&(o||(this.symbolAttr(t),o=!0),s=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),s||((a=this[i+"Setter"]||this._defaultSetter).call(this,e,i,l),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,a))},this),this.afterSetters()),i&&i(),h},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,i){for(var n=this.shadows,r=n.length;r--;)i.call(n[r],"height"===t?Math.max(e-(n[r].cutHeight||0),0):"d"===t?this.d:e,t,n[r])},addClass:function(t,e){var i=this.attr("class")||"";return-1===i.indexOf(t)&&(e||(t=(i+(i?" ":"")+t).replace(" "," ")),this.attr("class",t)),this},hasClass:function(t){return-1!==x(t,(this.attr("class")||"").split(" "))},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(t,""))},symbolAttr:function(t){var e=this;f("x y r start end width height innerR anchorX anchorY".split(" "),function(i){e[i]=L(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){var i,n=this,r={};return e=e||t.strokeWidth||0,i=Math.round(e)%2/2,t.x=Math.floor(t.x||n.x||0)+i,t.y=Math.floor(t.y||n.y||0)+i,t.width=Math.floor((t.width||n.width||0)-2*i),t.height=Math.floor((t.height||n.height||0)-2*i),c(t.strokeWidth)&&(t.strokeWidth=e),A(t,function(t,e){n[e]!==t&&(n[e]=r[e]=t)}),r},css:function(t){var e,i,n=this.styles,r={},s=this.element,a="",h=!n,c=["textOutline","textOverflow","width"];return t&&t.color&&(t.fill=t.color),n&&A(t,function(t,e){t!==n[e]&&(r[e]=t,h=!0)}),h&&(n&&(t=g(n,r)),e=this.textWidth=t&&t.width&&"auto"!==t.width&&"text"===s.nodeName.toLowerCase()&&O(t.width),this.styles=t,e&&!N&&this.renderer.forExport&&delete t.width,k&&!N?l(this.element,t):(i=function(t,e){return"-"+e.toLowerCase()},A(t,function(t,e){-1===x(e,c)&&(a+=e.replace(/([A-Z])/g,i)+":"+t+";")}),a&&o(s,"style",a)),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))),this},strokeWidth:function(){return this["stroke-width"]||0},on:function(t,e){var i=this,n=i.element;return y&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(-1===z.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,r=this.inverted,o=this.rotation,s=this.element;r&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],r?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+(s.getAttribute("x")||0)+" "+(s.getAttribute("y")||0)+")"),(c(i)||c(n))&&t.push("scale("+L(i,1)+" "+L(n,1)+")"),t.length&&s.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n,r,o,s,a={};o=(r=this.renderer).alignedObjects;var l,h;return t?(this.alignOptions=t,this.alignByTranslate=e,(!i||M(i))&&(this.alignTo=n=i||"renderer",m(o,this),o.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=L(i,r[n],r),n=t.align,r=t.verticalAlign,o=(i.x||0)+(t.x||0),s=(i.y||0)+(t.y||0),"right"===n?l=1:"center"===n&&(l=2),l&&(o+=(i.width-(t.width||0))/l),a[e?"translateX":"x"]=Math.round(o),"bottom"===r?h=1:"middle"===r&&(h=2),h&&(s+=(i.height-(t.height||0))/h),a[e?"translateY":"y"]=Math.round(s),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},getBBox:function(t,e){var i,n,r,o,s,a=this.renderer,l=this.element,h=this.styles,c=this.textStr,d=a.cache,p=a.cacheKeys;if(e=L(e,this.rotation),n=e*u,r=h&&h.fontSize,void 0!==c&&(-1===(s=c.toString()).indexOf("<")&&(s=s.replace(/[0-9]/g,"0")),s+=["",e||0,r,h&&h.width,h&&h.textOverflow].join()),s&&!t&&(i=d[s]),!i){if(l.namespaceURI===this.SVG_NS||a.forExport){try{(o=this.fakeTS&&function(t){f(l.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})})&&o("none"),i=l.getBBox?g({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight},o&&o("")}catch(t){}(!i||0>i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(a.isSVG&&(t=i.width,a=i.height,h&&"11px"===h.fontSize&&17===Math.round(a)&&(i.height=a=14),e&&(i.width=Math.abs(a*Math.sin(n))+Math.abs(t*Math.cos(n)),i.height=Math.abs(a*Math.cos(n))+Math.abs(t*Math.sin(n)))),s&&0<i.height){for(;250<p.length;)delete d[p.shift()];d[s]||p.push(s),d[s]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,i=this.renderer,n=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(n),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t=this,e=t.element||{},i=t.renderer.isSVG&&"SPAN"===e.nodeName&&t.parentGroup,n=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,E(t),t.clipPath&&n&&(f(n.querySelectorAll("[clip-path]"),function(e){-1<e.getAttribute("clip-path").indexOf(t.clipPath.element.id+")")&&e.removeAttribute("clip-path")}),t.clipPath=t.clipPath.destroy()),t.stops){for(n=0;n<t.stops.length;n++)t.stops[n]=t.stops[n].destroy();t.stops=null}for(t.safeRemoveChild(e),t.destroyShadows();i&&i.div&&0===i.div.childNodes.length;)e=i.parentGroup,t.safeRemoveChild(i.div),delete i.div,i=e;return t.alignTo&&m(t.renderer.alignedObjects,t),A(t,function(e,i){delete t[i]}),null},shadow:function(t,e,i){var n,r,s,a,l,h,c=[],u=this.element;if(t){if(!this.shadows){for(a=L(t.width,3),l=(t.opacity||.15)/a,h=this.parentInverted?"(-1,-1)":"("+L(t.offsetX,1)+", "+L(t.offsetY,1)+")",n=1;n<=a;n++)r=u.cloneNode(0),s=2*a+1-2*n,o(r,{isShadow:"true",stroke:t.color||"#000000","stroke-opacity":l*n,"stroke-width":s,transform:"translate"+h,fill:"none"}),i&&(o(r,"height",Math.max(o(r,"height")-s,0)),r.cutHeight=s),e?e.element.appendChild(r):u.parentNode.insertBefore(r,u),c.push(r);this.shadows=c}}else this.destroyShadows();return this},destroyShadows:function(){f(this.shadows||[],function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=L(this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(e=(t=t.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(",")).length;e--;)t[e]=O(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[t])},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=p.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(p.createTextNode(String(L(t),"").replace(/<[^>]*>/g,"")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i,n,r=this.renderer,o=this.parentGroup,s=(o||r).element||r.box,a=this.element;i=this.added;var l;if(c(t)&&(a.zIndex=t,t=+t,this[e]===t&&(i=!1),this[e]=t),i){for((t=this.zIndex)&&o&&(o.handleZ=!0),e=s.childNodes,l=0;l<e.length&&!n;l++)o=e[l],i=o.zIndex,o!==a&&(O(i)>t||!c(t)&&c(i)||0>t&&!c(i)&&s!==r.box)&&(s.insertBefore(a,o),n=!0);n||s.appendChild(a)}return n},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),e.prototype.yGetter=e.prototype.xGetter,e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.rotationSetter=e.prototype.verticalAlignSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter=function(t,i,n){this[i]=t,this.stroke&&this["stroke-width"]?(e.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===t&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)},i=t.SVGRenderer=function(){this.init.apply(this,arguments)},g(i.prototype,{Element:e,SVG_NS:I,init:function(t,e,i,r,s,a){var h;h=(r=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(r))).element,t.appendChild(h),-1===t.innerHTML.indexOf("xmlns")&&o(h,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=h,this.boxWrapper=r,this.alignedObjects=[],this.url=(w||C)&&p.getElementsByTagName("base").length?z.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 5.0.14")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1);var c;w&&t.getBoundingClientRect&&((e=function(){l(t,{left:0,top:0}),c=t.getBoundingClientRect(),l(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=n(z,"resize",e))},getStyle:function(t){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:D,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t,e){var i=t.getBBox(!0).width;return!N&&this.forExport&&(i=this.measureSpanWidth(e.firstChild.data,t.styles)),i},applyEllipsis:function(t,e,i,n){var r,o,s=t.rotation,a=i,l=0,h=i.length,c=function(t){e.removeChild(e.firstChild),t&&e.appendChild(p.createTextNode(t))};if(t.rotation=0,a=this.getSpanWidth(t,e),o=a>n){for(;l<=h;)r=Math.ceil((l+h)/2),a=i.substring(0,r)+"…",c(a),a=this.getSpanWidth(t,e),l===h?l=h+1:a>n?h=r-1:l=r;0===h&&c("")}return t.rotation=s,o},buildText:function(t){var e,i,n,r,s,a,h=t.element,c=this,u=c.forExport,d=L(t.textStr,"").toString(),g=-1!==d.indexOf("<"),m=h.childNodes,y=o(h,"x"),x=t.styles,b=t.textWidth,w=x&&x.lineHeight,k=x&&x.textOutline,T=x&&"ellipsis"===x.textOverflow,M=x&&"nowrap"===x.whiteSpace,C=x&&x.fontSize,S=m.length,x=b&&!t.added&&this.box,D=function(t){var e;return e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:C||c.style.fontSize||12,w?O(w):c.fontMetrics(e,t.getAttribute("style")?t:h).h};if((s=[d,T,M,w,k,C,b].join())!==t.textCache){for(t.textCache=s;S--;)h.removeChild(m[S]);g||k||T||b||-1!==d.indexOf(" ")?(e=/<.*class="([^"]+)".*>/,i=/<.*style="([^"]+)".*>/,n=/<.*href="([^"]+)".*>/,x&&x.appendChild(h),d=g?d.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],d=v(d,function(t){return""!==t}),f(d,function(s,d){var g,m=0;s=s.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),g=s.split("|||"),f(g,function(s){if(""!==s||1===g.length){var f,v,x={},w=p.createElementNS(c.SVG_NS,"tspan");if(e.test(s)&&(f=s.match(e)[1],o(w,"class",f)),i.test(s)&&(v=s.match(i)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),o(w,"style",v)),n.test(s)&&!u&&(o(w,"onclick",'location.href="'+s.match(n)[1]+'"'),l(w,{cursor:"pointer"}))," "!==(s=(s.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">"))){if(w.appendChild(p.createTextNode(s)),m?x.dx=0:d&&null!==y&&(x.x=y),o(w,x),h.appendChild(w),!m&&a&&(!N&&u&&l(w,{display:"block"}),o(w,"dy",D(w))),b){x=s.replace(/([^\^])-/g,"$1- ").split(" "),f=1<g.length||d||1<x.length&&!M;var k,C=[],S=D(w),A=t.rotation;for(T&&(r=c.applyEllipsis(t,w,s,b));!T&&f&&(x.length||C.length);)t.rotation=0,k=c.getSpanWidth(t,w),s=k>b,void 0===r&&(r=s),s&&1!==x.length?(w.removeChild(w.firstChild),C.unshift(x.pop())):(x=C,C=[],x.length&&!M&&(w=p.createElementNS(I,"tspan"),o(w,{dy:S,x:y}),v&&o(w,"style",v),h.appendChild(w)),k>b&&(b=k)),x.length&&w.appendChild(p.createTextNode(x.join(" ").replace(/- /g,"-")));t.rotation=A}m++}}}),a=a||h.childNodes.length}),r&&t.attr("title",t.textStr),x&&x.removeChild(h),k&&t.applyTextOutline&&t.applyTextOutline(k)):h.appendChild(p.createTextNode(d.replace(/&lt;/g,"<").replace(/&gt;/g,">")))}},getContrast:function(t){return 510<(t=a(t).rgba)[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,i,r,o,s,a,l,h){var c=this.label(t,e,i,h,null,null,null,null,"button"),u=0;c.attr(S({padding:8,r:2},o));var d,p,f,m;return o=S({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},o),d=o.style,delete o.style,s=S(o,{fill:"#e6e6e6"},s),p=s.style,delete s.style,a=S(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a),f=a.style,delete a.style,l=S(o,{style:{color:"#cccccc"}},l),m=l.style,delete l.style,n(c.element,k?"mouseover":"mouseenter",function(){3!==u&&c.setState(1)}),n(c.element,k?"mouseout":"mouseleave",function(){3!==u&&c.setState(u)}),c.setState=function(t){1!==t&&(c.state=u=t),c.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),c.attr([o,s,a,l][t||0]).css([d,p,f,m][t||0])},c.attr(o).css(g({cursor:"default"},d)),c.on("click",function(t){3!==u&&r.call(c,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return b(t)?e.d=t:T(t)&&g(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=T(t)?t:{x:t,y:e,r:i},e=this.createElement("circle"),e.xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,n,r,o){return T(t)?(n=t,e=n.y,i=n.r,t=n.x):n={innerR:n,start:r,end:o},t=this.symbol("arc",t,e,i,i,n),t.r=i,t},rect:function(t,e,i,n,r,s){r=T(t)?t.r:r;var a=this.createElement("rect");return t=T(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(n,0)},void 0!==s&&(t.strokeWidth=s,t=a.crisp(t)),t.fill="none",r&&(t.r=r),a.rSetter=function(t,e,i){o(i,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,r=n.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:L(i,!0)?void 0:0});r--;)n[r].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,n,r){var o={preserveAspectRatio:"none"};return 1<arguments.length&&g(o,{x:e,y:i,width:n,height:r}),(o=this.createElement("image").attr(o)).element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):o.element.setAttribute("hc-svg-href",t),o},symbol:function(t,e,i,n,r,o){var a,u,d,m=this,v=/^url\((.*?)\)$/,y=v.test(t),x=!y&&(this.symbols[t]?t:"circle"),b=x&&this.symbols[x],w=c(e)&&b&&b.call(this.symbols,Math.round(e),Math.round(i),n,r,o);return b?((a=this.path(w)).attr("fill","none"),g(a,{symbolName:x,x:e,y:i,width:n,height:r}),o&&g(a,o)):y&&(u=t.match(v)[1],a=this.image(u),a.imgwidth=L(_[u]&&_[u].width,o&&o.width),a.imgheight=L(_[u]&&_[u].height,o&&o.height),d=function(){a.attr({width:a.width,height:a.height})},f(["width","height"],function(t){a[t+"Setter"]=function(t,e){var i={},n=this["img"+e],r="width"===e?"translateX":"translateY";this[e]=t,c(n)&&(this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(i[r]=((this[e]||0)-n)/2,this.attr(i)))}}),c(e)&&a.attr({x:e,y:i}),a.isImg=!0,c(a.imgwidth)&&c(a.imgheight)?d():(a.attr({width:0,height:0}),h("img",{onload:function(){var t=s[m.chartIndex];0===this.width&&(l(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),_[u]={width:this.width,height:this.height},a.imgwidth=this.width,a.imgheight=this.height,a.element&&d(),this.parentNode&&this.parentNode.removeChild(this),m.imgCount--,!m.imgCount&&t&&t.onload&&t.onload()},src:u}),this.imgCount++)),a},symbols:{circle:function(t,e,i,n){return this.arc(t+i/2,e+n/2,i/2,n/2,{start:0,end:2*Math.PI,open:!1})},square:function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,r){var o=r.start,s=r.r||i,a=r.r||n||i,l=r.end-.001;i=r.innerR,n=L(r.open,.001>Math.abs(r.end-r.start-2*Math.PI));var h=Math.cos(o),u=Math.sin(o),d=Math.cos(l),l=Math.sin(l);return r=.001>r.end-o-Math.PI?0:1,s=["M",t+s*h,e+a*u,"A",s,a,0,r,1,t+s*d,e+a*l],c(i)&&s.push(n?"M":"L",t+i*d,e+i*l,"A",i,i,0,r,0,t+i*h,e+i*u),s.push(n?"":"Z"),s},callout:function(t,e,i,n,r){var o=Math.min(r&&r.r||0,i,n),s=o+6,a=r&&r.anchorX;r=r&&r.anchorY;var l;return l=["M",t+o,e,"L",t+i-o,e,"C",t+i,e,t+i,e,t+i,e+o,"L",t+i,e+n-o,"C",t+i,e+n,t+i,e+n,t+i-o,e+n,"L",t+o,e+n,"C",t,e+n,t,e+n,t,e+n-o,"L",t,e+o,"C",t,e,t,e,t+o,e],a&&a>i?r>e+s&&r<e+n-s?l.splice(13,3,"L",t+i,r-6,t+i+6,r,t+i,r+6,t+i,e+n-o):l.splice(13,3,"L",t+i,n/2,a,r,t+i,n/2,t+i,e+n-o):a&&0>a?r>e+s&&r<e+n-s?l.splice(33,3,"L",t,r+6,t-6,r,t,r-6,t,e+o):l.splice(33,3,"L",t,n/2,a,r,t,n/2,t,e+o):r&&r>n&&a>t+s&&a<t+i-s?l.splice(23,3,"L",a+6,e+n,a,e+n+6,a-6,e+n,t+o,e+n):r&&0>r&&a>t+s&&a<t+i-s&&l.splice(3,3,"L",a-6,e,a,e-6,a+6,e,i-o,e),l}},clipRect:function(e,i,n,r){var o=t.uniqueKey(),s=this.createElement("clipPath").attr({id:o}).add(this.defs);return e=this.rect(e,i,n,r,0).add(s),e.id=o,e.clipPath=s,e.count=0,e},text:function(t,e,i,n){var r=!N&&this.forExport,o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),(t||0===t)&&(o.text=t),t=this.createElement("text").attr(o),r&&t.css({position:"absolute"}),n||(t.xSetter=function(t,e,i){var n,r,o=i.getElementsByTagName("tspan"),s=i.getAttribute(e);for(r=0;r<o.length;r++)(n=o[r]).getAttribute(e)===s&&n.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){return t=t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize,t=/px/.test(t)?O(t):/em/.test(t)?parseFloat(t)*(e?this.fontMetrics(null,e.parentNode).f:16):12,e=24>t?t+3:Math.round(1.2*t),{h:e,b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*u),4)),{x:-t/3*Math.sin(e*u),y:n}},label:function(i,n,r,o,s,a,l,h,u){var d,p,m,v,y,x,b,w,k,T,M,C,D,A=this,L=A.g("button"!==u&&"label"),O=L.text=A.text("",0,0,l).attr({zIndex:1}),E=0,N=3,I=0,_={},z=/^url\((.*?)\)$/.test(o),R=z;u&&L.addClass("highcharts-"+u),R=z,T=function(){return(w||0)%2/2},M=function(){var t=O.element.style,e={};p=(void 0===m||void 0===v||b)&&c(O.textStr)&&O.getBBox(),L.width=(m||p.width||0)+2*N+I,L.height=(v||p.height||0)+2*N,k=N+A.fontMetrics(t&&t.fontSize,O).b,R&&(d||(L.box=d=A.symbols[o]||z?A.symbol(o):A.rect(),d.addClass(("button"===u?"":"highcharts-label-box")+(u?" highcharts-"+u+"-box":"")),d.add(L),t=T(),e.x=t,e.y=(h?-k:0)+t),e.width=Math.round(L.width),e.height=Math.round(L.height),d.attr(g(e,_)),_={})},C=function(){var t,e=I+N;t=h?0:k,c(m)&&p&&("center"===b||"right"===b)&&(e+={center:.5,right:1}[b]*(m-p.width)),e===O.x&&t===O.y||(O.attr("x",e),void 0!==t&&O.attr("y",t)),O.x=e,O.y=t},D=function(t,e){d?d.attr(t,e):_[t]=e},L.onAdd=function(){O.add(L),L.attr({text:i||0===i?i:"",x:n,y:r}),d&&c(s)&&L.attr({anchorX:s,anchorY:a})},L.widthSetter=function(e){m=t.isNumber(e)?e:null},L.heightSetter=function(t){v=t},L["text-alignSetter"]=function(t){b=t},L.paddingSetter=function(t){c(t)&&t!==N&&(N=L.padding=t,C())},L.paddingLeftSetter=function(t){c(t)&&t!==I&&(I=t,C())},L.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==E&&(E=t,p&&L.attr({x:y}))},L.textSetter=function(t){void 0!==t&&O.textSetter(t),M(),C()},L["stroke-widthSetter"]=function(t,e){t&&(R=!0),w=this["stroke-width"]=t,D(e,t)},L.strokeSetter=L.fillSetter=L.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(R=!0),L[e]=t),D(e,t)},L.anchorXSetter=function(t,e){s=L.anchorX=t,D(e,Math.round(t)-T()-y)},L.anchorYSetter=function(t,e){a=L.anchorY=t,D(e,t-x)},L.xSetter=function(t){L.x=t,E&&(t-=E*((m||p.width)+2*N)),y=Math.round(t),L.attr("translateX",y)},L.ySetter=function(t){x=L.y=Math.round(t),L.attr("translateY",x)};var j=L.css;return g(L,{css:function(t){if(t){var e={};t=S(t),f(L.textProps,function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])}),O.css(e)}return j.call(L,t)},getBBox:function(){return{width:p.width+2*N,height:p.height+2*N,x:p.x-N,y:p.y-N}},shadow:function(t){return t&&(M(),d&&d.shadow(t)),L},destroy:function(){P(L.element,"mouseenter"),P(L.element,"mouseleave"),O&&(O=O.destroy()),d&&(d=d.destroy()),e.prototype.destroy.call(L),L=A=M=C=D=null}})}}),t.Renderer=i}(t),function(t){var e=t.attr,i=t.createElement,n=t.css,r=t.defined,o=t.each,s=t.extend,a=t.isFirefox,l=t.isMS,h=t.isWebKit,c=t.pInt,u=t.SVGRenderer,d=t.win,p=t.wrap;s(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.updateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=s(this.styles,t),n(this.element,t),this},htmlGetBBox:function(){var t=this.element;return"text"===t.nodeName&&(t.style.position="absolute"),{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,s=this.translateY||0,a=this.x||0,l=this.y||0,u=this.textAlign||"left",d={left:0,center:.5,right:1}[u],p=this.styles;if(n(e,{marginLeft:i,marginTop:s}),this.shadows&&o(this.shadows,function(t){n(t,{marginLeft:i+1,marginTop:s+1})}),this.inverted&&o(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var f=this.rotation,g=c(this.textWidth),m=p&&p.whiteSpace,v=[f,u,e.innerHTML,this.textWidth,this.textAlign].join();v!==this.cTT&&(p=t.fontMetrics(e.style.fontSize).b,r(f)&&this.setSpanRotation(f,d,p),n(e,{width:"",whiteSpace:m||"nowrap"}),e.offsetWidth>g&&/[ \-]/.test(e.textContent||e.innerText)&&n(e,{width:g+"px",display:"block",whiteSpace:m||"normal"}),this.getSpanCorrection(e.offsetWidth,p,d,f,u)),n(e,{left:a+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"}),h&&(p=e.offsetHeight),this.cTT=v}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var r={},o=l?"-ms-transform":h?"-webkit-transform":a?"MozTransform":d.opera?"-o-transform":"";r[o]=r.transform="rotate("+t+"deg)",r[o+(a?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+i+"px",n(this.element,r)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),s(u.prototype,{html:function(t,n,r){var a=this.createElement("span"),l=a.element,h=a.renderer,c=h.isSVG,u=function(t,e){o(["opacity","visibility"],function(i){p(t,i+"Setter",function(t,i,n,r){t.call(this,i,n,r),e[n]=i})})};return a.textSetter=function(t){t!==l.innerHTML&&delete this.bBox,l.innerHTML=this.textStr=t,a.htmlUpdateTransform()},c&&u(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),a[e]=t,a.htmlUpdateTransform()},a.attr({text:t,x:Math.round(n),y:Math.round(r)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),l.style.whiteSpace="nowrap",a.css=a.htmlCss,c&&(a.add=function(t){var n,r=h.box.parentNode,c=[];if(this.parentGroup=t){if(!(n=t.div)){for(;t;)c.push(t),t=t.parentGroup;o(c.reverse(),function(t){var o,l=e(t.element,"class");l&&(l={className:l}),n=t.div=t.div||i("div",l,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},n||r),o=n.style,s(t,{classSetter:function(t){this.element.setAttribute("class",t),n.className=t},on:function(){return c[0].div&&a.on.apply({element:c[0].div},arguments),t},translateXSetter:function(e,i){o.left=e+"px",t[i]=e,t.doTransform=!0},translateYSetter:function(e,i){o.top=e+"px",t[i]=e,t.doTransform=!0}}),u(t,o)})}}else n=r;return n.appendChild(l),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}})}(t),function(t){var e,i,n=t.createElement,r=t.css,o=t.defined,s=t.deg2rad,a=t.discardElement,l=t.doc,h=t.each,c=t.erase,u=t.extend;e=t.extendClass;var d=t.isArray,p=t.isNumber,f=t.isObject,g=t.merge;i=t.noop;var m=t.pick,v=t.pInt,y=t.SVGElement,x=t.SVGRenderer,b=t.win;t.svg||(i={docMode8:l&&8===l.documentMode,init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],r=["position: ","absolute",";"],o="div"===e;("shape"===e||o)&&r.push("left:0;top:0;width:1px;height:1px;"),r.push("visibility: ",o?"hidden":"visible"),i.push(' style="',r.join(""),'"/>'),e&&(i=o||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=n(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,n=e.box,r=t&&t.inverted,n=t?t.element||t:n;return t&&(this.parentGroup=t),r&&e.invertChild(i,n),n.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this.className&&this.attr("class",this.className),this},updateTransform:y.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=Math.cos(t*s),i=Math.sin(t*s);r(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(t,e,i,n,o){var a,l=n?Math.cos(n*s):1,h=n?Math.sin(n*s):0,c=m(this.elemHeight,this.element.offsetHeight);this.xCorr=0>l&&-t,this.yCorr=0>h&&-c,a=0>l*h,this.xCorr+=h*e*(a?1-i:i),this.yCorr-=l*e*(n?a?i:1-i:1),o&&"left"!==o&&(this.xCorr-=t*i*(0>l?-1:1),n&&(this.yCorr-=c*i*(0>h?-1:1)),r(this.element,{textAlign:o}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)p(t[e])?i[e]=Math.round(10*t[e])-5:"Z"===t[e]?i[e]="x":(i[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(" ")||"x"},clip:function(t){var e,i=this;return t?(e=t.members,c(e,i),e.push(i),i.destroyClip=function(){c(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:i.docMode8?"inherit":"rect(auto)"}),i.css(t)},css:y.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&a(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),y.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=b.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var i;return t=t.split(/[ ,]/),9!==(i=t.length)&&11!==i||(t[i-4]=t[i-2]=v(t[i-2])-10*e),t.join(" ")},shadow:function(t,e,i){var r,o,s,a,l,h,c,u=[],d=this.element,p=this.renderer,f=d.style,g=d.path;if(g&&"string"!=typeof g.value&&(g="x"),l=g,t){for(h=m(t.width,3),c=(t.opacity||.15)/h,r=1;3>=r;r++)a=2*h+1-2*r,i&&(l=this.cutOffPath(g.value,a+.5)),s=['<shape isShadow="true" strokeweight="',a,'" filled="false" path="',l,'" coordsize="10 10" style="',d.style.cssText,'" />'],o=n(p.prepVML(s),null,{left:v(f.left)+m(t.offsetX,1),top:v(f.top)+m(t.offsetY,1)}),i&&(o.cutOff=a+1),s=['<stroke color="',t.color||"#000000",'" opacity="',c*r,'"/>'],n(p.prepVML(s),null,null,o),e?e.element.appendChild(o):d.parentNode.insertBefore(o,d),u.push(o);this.shadows=u}return this},updateShadows:i,setAttr:function(t,e){this.docMode8?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){(this.added?this.element:this).className=t},dashstyleSetter:function(t,e,i){(i.getElementsByTagName("stroke")[0]||n(this.renderer.prepVML(["<stroke/>"]),null,null,i))[e]=t||"solid",this[e]=t},dSetter:function(t,e,i){var n=this.shadows;if(t=t||[],this.d=t.join&&t.join(" "),i.path=t=this.pathToVML(t),n)for(i=n.length;i--;)n[i].path=n[i].cutOff?this.cutOffPath(t,n[i].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var n=i.nodeName;"SPAN"===n?i.style.color=t:"IMG"!==n&&(i.filled="none"!==t,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},"fill-opacitySetter":function(t,e,i){n(this.renderer.prepVML(["<",e.split("-")[0],' opacity="',t,'"/>']),null,null,i)},opacitySetter:i,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-Math.round(Math.sin(t*s)+1)+"px",i.top=Math.round(Math.cos(t*s))+"px"},strokeSetter:function(t,e,i){this.setAttr("strokecolor",this.renderer.color(t,i,e,this))},"stroke-widthSetter":function(t,e,i){i.stroked=!!t,this[e]=t,p(t)&&(t+="px"),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,i){"inherit"===t&&(t="visible"),this.shadows&&h(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t="hidden"===t?"-999em":0,this.docMode8||(i.style[e]=t?"visible":"hidden"),e="top"),i.style[e]=t},xSetter:function(t,e,i){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}},i["stroke-opacitySetter"]=i["fill-opacitySetter"],t.VMLElement=i=e(y,i),i.prototype.ySetter=i.prototype.widthSetter=i.prototype.heightSetter=i.prototype.xSetter,i={Element:i,isIE8:-1<b.navigator.userAgent.indexOf("MSIE 8.0"),init:function(t,e,i){var n,r;if(this.alignedObjects=[],n=this.createElement("div").css({position:"relative"}),r=n.element,t.appendChild(n.element),this.isVML=!0,this.box=r,this.boxWrapper=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),!l.namespaces.hcv){l.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{l.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(t){l.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,e,i,n){var r=this.createElement(),o=f(t);return u(r,{members:[],count:0,left:(o?t.x:t)+1,top:(o?t.y:e)+1,width:(o?t.width:i)-1,height:(o?t.height:n)-1,getCSS:function(t){var e=(o=t.element).nodeName,i=t.inverted,n=this.top-("shape"===e?o.offsetTop:0),r=this.left,o=r+this.width,s=n+this.height,n={clip:"rect("+Math.round(i?r:n)+"px,"+Math.round(i?s:o)+"px,"+Math.round(i?o:s)+"px,"+Math.round(i?n:r)+"px)"};return!i&&t.docMode8&&"DIV"===e&&u(n,{width:o+"px",height:s+"px"}),n},updateClipping:function(){h(r.members,function(t){t.element&&t.css(r.getCSS(t))})}})},color:function(e,i,r,o){var s,a,l,c=this,u=/^rgba/,d="none";if(e&&e.linearGradient?l="gradient":e&&e.radialGradient&&(l="pattern"),l){var p,f,g,m,v,y,x,b,w=e.linearGradient||e.radialGradient,k="",T=[],M=function(){a=['<fill colors="'+T.join(",")+'" opacity="',v,'" o:opacity2="',m,'" type="',l,'" ',k,'focus="100%" method="any" />'],n(c.prepVML(a),null,null,i)};if(g=(e=e.stops)[0],b=e[e.length-1],0<g[0]&&e.unshift([0,g[1]]),1>b[0]&&e.push([1,b[1]]),h(e,function(e,i){u.test(e[1])?(s=t.color(e[1]),p=s.get("rgb"),f=s.get("a")):(p=e[1],f=1),T.push(100*e[0]+"% "+p),i?(v=f,y=p):(m=f,x=p)}),"fill"===r)if("gradient"===l)r=w.x1||w[0]||0,e=w.y1||w[1]||0,g=w.x2||w[2]||0,w=w.y2||w[3]||0,k='angle="'+(90-180*Math.atan((w-e)/(g-r))/Math.PI)+'"',M();else{var C,S=2*(d=w.r),D=2*d,A=w.cx,L=w.cy,O=i.radialReference,d=function(){O&&(C=o.getBBox(),A+=(O[0]-C.x)/C.width-.5,L+=(O[1]-C.y)/C.height-.5,S*=O[2]/C.width,D*=O[2]/C.height),k='src="'+t.getOptions().global.VMLRadialGradientURL+'" size="'+S+","+D+'" origin="0.5,0.5" position="'+A+","+L+'" color2="'+x+'" ',M()};o.added?d():o.onAdd=d,d=y}else d=p}else u.test(e)&&"IMG"!==i.tagName?(s=t.color(e),o[r+"-opacitySetter"](s.get("a"),r,i),d=s.get("rgb")):((d=i.getElementsByTagName(r)).length&&(d[0].opacity=1,d[0].type="solid"),d=e);return d},prepVML:function(t){var e=this.isIE8;return t=t.join(""),e?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=-1===t.indexOf('style="')?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","<hcv:"),t},text:x.prototype.html,path:function(t){var e={coordsize:"10 10"};return d(t)?e.d=t:f(t)&&u(e,t),this.createElement("shape").attr(e)},circle:function(t,e,i){var n=this.symbol("circle");return f(t)&&(i=t.r,e=t.y,t=t.x),n.isCircle=!0,n.r=i,n.attr({x:t,y:e})},g:function(t){var e;return t&&(e={className:"highcharts-"+t,class:"highcharts-"+t}),this.createElement("div").attr(e)},image:function(t,e,i,n,r){var o=this.createElement("img").attr({src:t});return 1<arguments.length&&o.attr({x:e,y:i,width:n,height:r}),o},createElement:function(t){return"rect"===t?this.symbol(t):x.prototype.createElement.call(this,t)},invertChild:function(t,e){var i=this;e=e.style;var n="IMG"===t.tagName&&t.style;r(t,{flip:"x",left:v(e.width)-(n?v(n.top):1),top:v(e.height)-(n?v(n.left):1),rotation:-90}),h(t.childNodes,function(e){i.invertChild(e,t)})},symbols:{arc:function(t,e,i,n,r){var o=r.start,s=r.end,a=r.r||i||n;i=r.innerR,n=Math.cos(o);var l=Math.sin(o),h=Math.cos(s),c=Math.sin(s);return 0==s-o?["x"]:(o=["wa",t-a,e-a,t+a,e+a,t+a*n,e+a*l,t+a*h,e+a*c],r.open&&!i&&o.push("e","M",t,e),o.push("at",t-i,e-i,t+i,e+i,t+i*h,e+i*c,t+i*n,e+i*l,"x","e"),o.isArc=!0,o)},circle:function(t,e,i,n,r){return r&&o(r.r)&&(i=n=2*r.r),r&&r.isCircle&&(t-=i/2,e-=n/2),["wa",t,e,t+i,e+n,t+i,e+n/2,t+i,e+n/2,"e"]},rect:function(t,e,i,n,r){return x.prototype.symbols[o(r)&&r.r?"callout":"square"].call(0,t,e,i,n,r)}}},t.VMLRenderer=e=function(){this.init.apply(this,arguments)},e.prototype=g(x.prototype,i),t.Renderer=e),x.prototype.measureSpanWidth=function(t,e){var i=l.createElement("span");return t=l.createTextNode(t),i.appendChild(t),r(i,e),this.box.appendChild(i),e=i.offsetWidth,a(i),e}}(t),function(t){function e(){var e=t.defaultOptions.global,i=l.moment;if(e.timezone){if(i)return function(t){return-i.tz(t,e.timezone).utcOffset()};t.error(25)}return e.useUTC&&e.getTimezoneOffset}function i(){var i,n=t.defaultOptions.global,s=n.useUTC,h=s?"getUTC":"get",c=s?"setUTC":"set";t.Date=i=n.Date||l.Date,i.hcTimezoneOffset=s&&n.timezoneOffset,i.hcGetTimezoneOffset=e(),i.hcMakeTime=function(t,e,n,r,l,h){var c;return s?(c=i.UTC.apply(0,arguments),c+=o(c)):c=new i(t,e,a(n,1),a(r,0),a(l,0),a(h,0)).getTime(),c},r("Minutes Hours Day Date Month FullYear".split(" "),function(t){i["hcGet"+t]=h+t}),r("Milliseconds Seconds Minutes Hours Date Month FullYear".split(" "),function(t){i["hcSet"+t]=c+t})}var n=t.color,r=t.each,o=t.getTZOffset,s=t.merge,a=t.pick,l=t.win;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,VMLRadialGradientURL:"http://code.highcharts.com/5.0.14/gfx/vml-radial-gradient.png"},chart:{borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,backgroundColor:n("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=s(!0,t.defaultOptions,e),i(),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,i()}(t),function(t){var e=t.correctFloat,i=t.defined,n=t.destroyObjectProperties,r=t.isNumber,o=t.merge,s=t.pick,a=t.deg2rad;t.Tick=function(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,i||n||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,n=this.axis,r=n.options,a=n.chart,l=n.categories,h=n.names,c=this.pos,u=r.labels,d=c===(f=n.tickPositions)[0],p=c===f[f.length-1],h=l?s(l[c],h[c],c):c,l=this.label,f=f.info;n.isDatetimeAxis&&f&&(t=r.dateTimeLabelFormats[f.higherRanks[c]||f.unitName]),this.isFirst=d,this.isLast=p,r=n.labelFormatter.call({axis:n,chart:a,isFirst:d,isLast:p,dateTimeLabelFormat:t,value:n.isLog?e(n.lin2log(h)):h,pos:c}),i(l)?l&&l.attr({text:r}):(this.labelLength=(this.label=l=i(r)&&u.enabled?a.renderer.text(r,0,0,u.useHTML).css(o(u.style)).add(n.labelGroup):null)&&l.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i=this.axis,n=t.x,r=i.chart.chartWidth,o=i.chart.spacing,l=s(i.labelLeft,Math.min(i.pos,o[3])),o=s(i.labelRight,Math.max(i.pos+i.len,r-o[1])),h=this.label,c=this.rotation,u={left:0,center:.5,right:1}[i.labelAlign],d=h.getBBox().width,p=i.getSlotWidth(),f=p,g=1,m={};c?0>c&&n-u*d<l?e=Math.round(n/Math.cos(c*a)-l):0<c&&n+u*d>o&&(e=Math.round((r-n)/Math.cos(c*a))):(r=n+(1-u)*d,n-u*d<l?f=t.x+f*(1-u)-l:r>o&&(f=o-t.x+f*u,g=-1),(f=Math.min(p,f))<p&&"center"===i.labelAlign&&(t.x+=g*(p-f-u*(p-Math.min(d,f)))),(d>f||i.autoRotation&&(h.styles||{}).width)&&(e=f)),e&&(m.width=e,(i.options.labels.style||{}).textOverflow||(m.textOverflow="ellipsis"),h.css(m))},getPosition:function(t,e,i,n){var r=this.axis,o=r.chart,s=n&&o.oldChartHeight||o.chartHeight;return{x:t?r.translate(e+i,null,null,n)+r.transB:r.left+r.offset+(r.opposite?(n&&o.oldChartWidth||o.chartWidth)-r.right-r.left:0),y:t?s-r.bottom+r.offset-(r.opposite?r.height:0):s-r.translate(e+i,null,null,n)-r.transB}},getLabelPosition:function(t,e,n,r,o,s,l,h){var c=this.axis,u=c.transA,d=c.reversed,p=c.staggerLines,f=c.tickRotCorr||{x:0,y:0},g=o.y;return i(g)||(g=0===c.side?n.rotation?-8:-n.getBBox().height:2===c.side?f.y+8:Math.cos(n.rotation*a)*(f.y-n.getBBox(!1,0).height/2)),t=t+o.x+f.x-(s&&r?s*u*(d?-1:1):0),e=e+g-(s&&!r?s*u*(d?1:-1):0),p&&(n=l/(h||1)%p,c.opposite&&(n=p-n-1),e+=c.labelOffset/p*n),{x:t,y:Math.round(e)}},getMarkPath:function(t,e,i,n,r,o){return o.crispLine(["M",t,e,"L",t+(r?0:-i),e+(r?i:0)],n)},renderGridLine:function(t,e,i){var n=this.axis,r=n.options,o=this.gridLine,s={},a=this.pos,l=this.type,h=n.tickmarkOffset,c=n.chart.renderer,u=l?l+"Grid":"grid",d=r[u+"LineWidth"],p=r[u+"LineColor"],r=r[u+"LineDashStyle"];o||(s.stroke=p,s["stroke-width"]=d,r&&(s.dashstyle=r),l||(s.zIndex=1),t&&(s.opacity=0),this.gridLine=o=c.path().attr(s).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(n.gridGroup)),!t&&o&&(t=n.getPlotLinePath(a+h,o.strokeWidth()*i,t,!0))&&o[this.isNew?"attr":"animate"]({d:t,opacity:e})},renderMark:function(t,e,i){var n=this.axis,r=n.options,o=n.chart.renderer,a=this.type,l=a?a+"Tick":"tick",h=n.tickSize(l),c=this.mark,u=!c,d=t.x;t=t.y;var p=s(r[l+"Width"],!a&&n.isXAxis?1:0),r=r[l+"Color"];h&&(n.opposite&&(h[0]=-h[0]),u&&(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(n.axisGroup),c.attr({stroke:r,"stroke-width":p})),c[u?"attr":"animate"]({d:this.getMarkPath(d,t,h[0],c.strokeWidth()*i,n.horiz,o),opacity:e}))},renderLabel:function(t,e,i,n){var o=this.axis,a=o.horiz,l=o.options,h=this.label,c=l.labels,u=c.step,d=o.tickmarkOffset,p=!0,f=t.x;t=t.y,h&&r(f)&&(h.xy=t=this.getLabelPosition(f,t,h,a,c,d,n,u),this.isFirst&&!this.isLast&&!s(l.showFirstLabel,1)||this.isLast&&!this.isFirst&&!s(l.showLastLabel,1)?p=!1:!a||o.isRadial||c.step||c.rotation||e||0===i||this.handleOverflow(t),u&&n%u&&(p=!1),p&&r(t.y)?(t.opacity=i,h[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(h.attr("y",-9999),this.isNewLabel=!0),this.isNew=!1)},render:function(t,e,i){var n=(l=this.axis).horiz,r=this.getPosition(n,this.pos,l.tickmarkOffset,e),o=r.x,a=r.y,l=n&&o===l.pos+l.len||!n&&a===l.pos?-1:1;i=s(i,1),this.isActive=!0,this.renderGridLine(e,i,l),this.renderMark(r,i,l),this.renderLabel(r,e,i,t)},destroy:function(){n(this,this.axis)}}}(t);var e=function(t){var e=t.addEvent,i=t.animObject,n=t.arrayMax,r=t.arrayMin,o=t.color,s=t.correctFloat,a=t.defaultOptions,l=t.defined,h=t.deg2rad,c=t.destroyObjectProperties,u=t.each,d=t.extend,p=t.fireEvent,f=t.format,g=t.getMagnitude,m=t.grep,v=t.inArray,y=t.isArray,x=t.isNumber,b=t.isString,w=t.merge,k=t.normalizeTickInterval,T=t.objectEach,M=t.pick,C=t.removeEvent,S=t.splat,D=t.syncTimeout,A=t.Tick,L=function(){this.init.apply(this,arguments)};return t.extend(L.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return t.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(t,i){var n=i.isX,r=this;r.chart=t,r.horiz=t.inverted&&!r.isZAxis?!n:n,r.isXAxis=n,r.coll=r.coll||(n?"xAxis":"yAxis"),r.opposite=i.opposite,r.side=i.side||(r.horiz?r.opposite?0:2:r.opposite?1:3),r.setOptions(i);var o=this.options,s=o.type;r.labelFormatter=o.labels.formatter||r.defaultLabelFormatter,r.userOptions=i,r.minPixelPadding=0,r.reversed=o.reversed,r.visible=!1!==o.visible,r.zoomEnabled=!1!==o.zoomEnabled,r.hasNames="category"===s||!0===o.categories,r.categories=o.categories||r.hasNames,r.names=r.names||[],r.plotLinesAndBandsGroups={},r.isLog="logarithmic"===s,r.isDatetimeAxis="datetime"===s,r.positiveValuesOnly=r.isLog&&!r.allowNegativeLog,r.isLinked=l(o.linkedTo),r.ticks={},r.labelEdge=[],r.minorTicks={},r.plotLinesAndBands=[],r.alternateBands={},r.len=0,r.minRange=r.userMinRange=o.minRange||o.maxZoom,r.range=o.range,r.offset=o.offset||0,r.stacks={},r.oldStacks={},r.stacksTouched=0,r.max=null,r.min=null,r.crosshair=M(o.crosshair,S(t.options.tooltip.crosshairs)[n?0:1],!1),i=r.options.events,-1===v(r,t.axes)&&(n?t.axes.splice(t.xAxis.length,0,r):t.axes.push(r),t[r.coll].push(r)),r.series=r.series||[],t.inverted&&!r.isZAxis&&n&&void 0===r.reversed&&(r.reversed=!0),T(i,function(t,i){e(r,i,t)}),r.lin2log=o.linearToLogConverter||r.lin2log,r.isLog&&(r.val2lin=r.log2lin,r.lin2val=r.lin2log)},setOptions:function(t){this.options=w(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],w(a[this.coll],t))},defaultLabelFormatter:function(){var e,i=this.axis,n=this.value,r=i.categories,o=this.dateTimeLabelFormat,s=(l=a.lang).numericSymbols,l=l.numericSymbolMagnitude||1e3,h=s&&s.length,c=i.options.labels.format,i=i.isLog?Math.abs(n):i.tickInterval;if(c)e=f(c,this);else if(r)e=n;else if(o)e=t.dateFormat(o,n);else if(h&&1e3<=i)for(;h--&&void 0===e;)r=Math.pow(l,h+1),i>=r&&0==10*n%r&&null!==s[h]&&0!==n&&(e=t.numberFormat(n/r,-1)+s[h]);return void 0===e&&(e=1e4<=Math.abs(n)?t.numberFormat(n,-1):t.numberFormat(n,-1,void 0,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),u(t.series,function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var o,s=i.options,a=s.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=a&&(a=null),t.isXAxis?(s=i.xData).length&&(i=r(s),x(i)||i instanceof Date||(s=m(s,function(t){return x(t)}),i=r(s)),t.dataMin=Math.min(M(t.dataMin,s[0]),i),t.dataMax=Math.max(M(t.dataMax,s[0]),n(s))):(i.getExtremes(),o=i.dataMax,i=i.dataMin,l(i)&&l(o)&&(t.dataMin=Math.min(M(t.dataMin,i),i),t.dataMax=Math.max(M(t.dataMax,o),o)),l(a)&&(t.threshold=a),(!s.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1))}})},translate:function(t,e,i,n,r,o){var s=this.linkedParent||this,a=1,l=0,h=n?s.oldTransA:s.transA;n=n?s.oldMin:s.min;var c=s.minPixelPadding;return r=(s.isOrdinal||s.isBroken||s.isLog&&r)&&s.lin2val,h||(h=s.transA),i&&(a*=-1,l=s.len),s.reversed&&(a*=-1,l-=a*(s.sector||s.len)),e?(t=(t*a+l-c)/h+n,r&&(t=s.lin2val(t))):(r&&(t=s.val2lin(t)),t=a*(t-n)*h+l+a*c+(x(o)?h*o:0)),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,i,n,r){var o,s,a,l=this.chart,h=this.left,c=this.top,u=i&&l.oldChartHeight||l.chartHeight,d=i&&l.oldChartWidth||l.chartWidth;o=this.transB;var p=function(t,e,i){return(t<e||t>i)&&(n?t=Math.min(Math.max(e,t),i):a=!0),t};return r=M(r,this.translate(t,null,null,i)),t=i=Math.round(r+o),o=s=Math.round(u-r-o),x(r)?this.horiz?(o=c,s=u-this.bottom,t=i=p(t,h,h+this.width)):(t=h,i=d-this.right,o=s=p(o,c,c+this.height)):a=!0,a&&!n?null:l.renderer.crispLine(["M",t,o,"L",i,s],e||1)},getLinearTickPositions:function(t,e,i){var n,r=s(Math.floor(e/t)*t);i=s(Math.ceil(i/t)*t);var o=[];if(this.single)return[e];for(e=r;e<=i&&(o.push(e),(e=s(e+t))!==n);)n=e;return o},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,n=t.minorTickInterval,r=[],o=t.pointRangePadding||0,s=t.min-o,a=(o=t.max+o)-s;if(a&&a/n<t.len/3)if(t.isLog)u(this.paddedTicks,function(e,i,o){i&&r.push.apply(r,t.getLogTickPositions(n,o[i-1],o[i],!0))});else if(t.isDatetimeAxis&&"auto"===e.minorTickInterval)r=r.concat(t.getTimeTicks(t.normalizeTimeTickInterval(n),s,o,e.startOfWeek));else for(e=s+(i[0]-s)%n;e<=o&&e!==r[0];e+=n)r.push(e);return 0!==r.length&&t.trimTicks(r),r},adjustForMinRange:function(){var t,e,i,o,s,a,h,c,d=this.options,p=this.min,f=this.max;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(l(d.min)||l(d.max)?this.minRange=null:(u(this.series,function(t){for(a=t.xData,o=h=t.xIncrement?1:a.length-1;0<o;o--)s=a[o]-a[o-1],(void 0===i||s<i)&&(i=s)}),this.minRange=Math.min(5*i,this.dataMax-this.dataMin))),f-p<this.minRange&&(e=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,t=(c-f+p)/2,t=[p-t,M(d.min,p-t)],e&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),p=n(t),f=[p+c,M(d.max,p+c)],e&&(f[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(f=r(f))-p<c&&(t[0]=f-c,t[1]=M(d.min,f-c),p=n(t))),this.min=p,this.max=f},getClosest:function(){var t;return this.categories?t=1:u(this.series,function(e){var i=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&l(i)&&n&&(t=l(t)?Math.min(t,i):i)}),t},nameToX:function(t){var e,i=y(this.categories),n=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,l(r)||(r=!1===this.options.uniqueNames?t.series.autoIncrement():v(t.name,n)),-1===r?i||(e=n.length):e=r,void 0!==e&&(this.names[e]=t.name),e},updateNames:function(){var t=this;0<this.names.length&&(this.names.length=0,this.minRange=this.userMinRange,u(this.series||[],function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(e.processData(),e.generatePoints()),u(e.points,function(i,n){var r;i.options&&void 0!==(r=t.nameToX(i))&&r!==i.x&&(i.x=r,e.xData[n]=r)})}))},setAxisTranslation:function(t){var e,i=this,n=i.max-i.min,r=i.axisPointRange||0,o=0,s=0,a=i.linkedParent,l=!!i.categories,h=i.transA,c=i.isXAxis;(c||l||r)&&(e=i.getClosest(),a?(o=a.minPointOffset,s=a.pointRangePadding):u(i.series,function(t){var n=l?1:c?M(t.options.pointRange,e,0):i.axisPointRange||0;t=t.options.pointPlacement,r=Math.max(r,n),i.single||(o=Math.max(o,b(t)?0:n/2),s=Math.max(s,"on"===t?0:n))}),a=i.ordinalSlope&&e?i.ordinalSlope/e:1,i.minPointOffset=o*=a,i.pointRangePadding=s*=a,i.pointRange=Math.min(r,n),c&&(i.closestPointRange=e)),t&&(i.oldTransA=h),i.translationSlope=i.transA=h=i.options.staticScale||i.len/(n+s||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=h*o},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var i,n,r,o,a=this,h=a.chart,c=a.options,d=a.isLog,f=a.log2lin,m=a.isDatetimeAxis,v=a.isXAxis,y=a.isLinked,b=c.maxPadding,w=c.minPadding,T=c.tickInterval,C=c.tickPixelInterval,S=a.categories,D=a.threshold,A=a.softThreshold;m||S||y||this.getTickAmount(),r=M(a.userMin,c.min),o=M(a.userMax,c.max),y?(a.linkedParent=h[a.coll][c.linkedTo],h=a.linkedParent.getExtremes(),a.min=M(h.min,h.dataMin),a.max=M(h.max,h.dataMax),c.type!==a.linkedParent.options.type&&t.error(11,1)):(!A&&l(D)&&(a.dataMin>=D?(i=D,w=0):a.dataMax<=D&&(n=D,b=0)),a.min=M(r,i,a.dataMin),a.max=M(o,n,a.dataMax)),d&&(a.positiveValuesOnly&&!e&&0>=Math.min(a.min,M(a.dataMin,a.min))&&t.error(10,1),a.min=s(f(a.min),15),a.max=s(f(a.max),15)),a.range&&l(a.max)&&(a.userMin=a.min=r=Math.max(a.dataMin,a.minFromRange()),a.userMax=o=a.max,a.range=null),p(a,"foundExtremes"),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),!(S||a.axisPointRange||a.usePercentage||y)&&l(a.min)&&l(a.max)&&(f=a.max-a.min)&&(!l(r)&&w&&(a.min-=f*w),!l(o)&&b&&(a.max+=f*b)),x(c.softMin)&&(a.min=Math.min(a.min,c.softMin)),x(c.softMax)&&(a.max=Math.max(a.max,c.softMax)),x(c.floor)&&(a.min=Math.max(a.min,c.floor)),x(c.ceiling)&&(a.max=Math.min(a.max,c.ceiling)),A&&l(a.dataMin)&&(D=D||0,!l(r)&&a.min<D&&a.dataMin>=D?a.min=D:!l(o)&&a.max>D&&a.dataMax<=D&&(a.max=D)),a.tickInterval=a.min===a.max||void 0===a.min||void 0===a.max?1:y&&!T&&C===a.linkedParent.options.tickPixelInterval?T=a.linkedParent.tickInterval:M(T,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,S?1:(a.max-a.min)*C/Math.max(a.len,C)),v&&!e&&u(a.series,function(t){t.processData(a.min!==a.oldMin||a.max!==a.oldMax)}),a.setAxisTranslation(!0),a.beforeSetTickPositions&&a.beforeSetTickPositions(),a.postProcessTickInterval&&(a.tickInterval=a.postProcessTickInterval(a.tickInterval)),a.pointRange&&!T&&(a.tickInterval=Math.max(a.pointRange,a.tickInterval)),e=M(c.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!T&&a.tickInterval<e&&(a.tickInterval=e),m||d||T||(a.tickInterval=k(a.tickInterval,null,g(a.tickInterval),M(c.allowDecimals,!(.5<a.tickInterval&&5>a.tickInterval&&1e3<a.max&&9999>a.max)),!!this.tickAmount)),this.tickAmount||(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e=this.options,i=e.tickPositions,n=e.tickPositioner,r=e.startOnTick,o=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===e.minorTickInterval&&this.tickInterval?this.tickInterval/5:e.minorTickInterval,this.single=this.min===this.max&&l(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=t=i&&i.slice(),!t&&((t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max)).length>this.len&&(t=[t[0],t.pop()]),this.tickPositions=t,n&&(n=n.apply(this,[this.min,this.max])))&&(this.tickPositions=t=n),this.paddedTicks=t.slice(0),this.trimTicks(t,r,o),this.isLinked||(this.single&&2>t.length&&(this.min-=.5,this.max+=.5),i||n||this.adjustTickAmount())},trimTicks:function(t,e,i){var n=t[0],r=t[t.length-1],o=this.minPointOffset||0;if(!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-o>t[0];)t.shift();if(i)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&l(n)&&t.push((r+n)/2)}},alignToOthers:function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||this.isLog||u(this.chart[this.coll],function(i){var n=i.options,n=[i.horiz?n.left:n.top,n.width,n.height,n.pane].join();i.series.length&&(e[n]?t=!0:e[n]=1)}),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!l(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,i=this.tickAmount,n=this.finalTickAmt,r=e&&e.length;if(r<i){for(;e.length<i;)e.push(s(e[e.length-1]+t));this.transA*=(r-1)/(i-1),this.max=e[e.length-1]}else r>i&&(this.tickInterval*=2,this.setTickPositions());if(l(n)){for(t=i=e.length;t--;)(3===n&&1==t%2||2>=n&&0<t&&t<i-1)&&e.splice(t,1);this.finalTickAmt=void 0}},setScale:function(){var t,e;this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),e=this.len!==this.oldAxisLength,u(this.series,function(e){(e.isDirtyData||e.isDirty||e.xAxis.isDirty)&&(t=!0)}),e||t||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(t,e,i,n,r){var o=this,s=o.chart;i=M(i,!0),u(o.series,function(t){delete t.kdTree}),r=d(r,{min:t,max:e}),p(o,"setExtremes",r,function(){o.userMin=t,o.userMax=e,o.eventArgs=r,i&&s.redraw(n)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,r=this.options,o=Math.min(i,M(r.min,i)),r=Math.max(n,M(r.max,n));return t===this.min&&e===this.max||(this.allowZoomOutside||(l(i)&&(t<o&&(t=o),t>r&&(t=r)),l(n)&&(e<o&&(e=o),e>r&&(e=r))),this.displayBtn=void 0!==t||void 0!==e,this.setExtremes(t,e,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var e=this.chart,i=(a=this.options).offsets||[0,0,0,0],n=this.horiz,r=this.width=Math.round(t.relativeLength(M(a.width,e.plotWidth-i[3]+i[1]),e.plotWidth)),o=this.height=Math.round(t.relativeLength(M(a.height,e.plotHeight-i[0]+i[2]),e.plotHeight)),s=this.top=Math.round(t.relativeLength(M(a.top,e.plotTop+i[0]),e.plotHeight,e.plotTop)),a=this.left=Math.round(t.relativeLength(M(a.left,e.plotLeft+i[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-o-s,this.right=e.chartWidth-r-a,this.len=Math.max(n?r:o,0),this.pos=n?a:s},getExtremes:function(){var t=this.isLog,e=this.lin2log;return{min:t?s(e(this.min)):this.min,max:t?s(e(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=this.lin2log,n=e?i(this.min):this.min,e=e?i(this.max):this.max;return null===t?t=n:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){return 15<(t=(M(t,0)-90*this.side+720)%360)&&165>t?"right":195<t&&345>t?"left":"center"},tickSize:function(t){var e=this.options,i=e[t+"Length"],n=M(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(n&&i)return"inside"===e[t+"Position"]&&(i=-i),[i,n]},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,n=this.options.labels,r=this.horiz,o=this.tickInterval,s=o,a=this.len/(((this.categories?1:0)+this.max-this.min)/o),c=n.rotation,d=this.labelMetrics(),p=Number.MAX_VALUE,f=function(t){return t/=a||1,(t=1<t?Math.ceil(t):1)*o};return r?(i=!n.staggerLines&&!n.step&&(l(c)?[c]:a<M(n.autoRotationLimit,80)&&n.autoRotation))&&u(i,function(i){var n;(i===c||i&&-90<=i&&90>=i)&&(e=f(Math.abs(d.h/Math.sin(h*i))),(n=e+Math.abs(i/360))<p&&(p=n,t=i,s=e))}):n.step||(s=f(d.h)),this.autoRotation=i,this.labelRotation=M(t,c),s},getSlotWidth:function(){var t=this.chart,e=this.horiz,i=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=t.margin[3];return e&&2>(i.step||0)&&!i.rotation&&(this.staggerLines||1)*this.len/n||!e&&(r&&r-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,i,n=this.chart,r=n.renderer,o=this.tickPositions,s=this.ticks,a=this.options.labels,l=this.horiz,h=this.getSlotWidth(),c=Math.max(1,Math.round(h-2*(a.padding||5))),d={},p=this.labelMetrics(),f=a.style&&a.style.textOverflow,g=0;if(b(a.rotation)||(d.rotation=a.rotation||0),u(o,function(t){(t=s[t])&&t.labelLength>g&&(g=t.labelLength)}),this.maxLabelLength=g,this.autoRotation)g>c&&g>p.h?d.rotation=this.labelRotation:this.labelRotation=0;else if(h&&(t={width:c+"px"},!f))for(t.textOverflow="clip",e=o.length;!l&&e--;)i=o[e],(c=s[i].label)&&(c.styles&&"ellipsis"===c.styles.textOverflow?c.css({textOverflow:"clip"}):s[i].labelLength>h&&c.css({width:h+"px"}),c.getBBox().height>this.len/o.length-(p.h-p.f)&&(c.specCss={textOverflow:"ellipsis"}));d.rotation&&(t={width:(g>.5*n.chartHeight?.33*n.chartHeight:n.chartHeight)+"px"},f||(t.textOverflow="ellipsis")),(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))&&(d.align=this.labelAlign),u(o,function(e){var i=(e=s[e])&&e.label;i&&(i.attr(d),t&&i.css(w(t,i.specCss)),delete i.specCss,e.rotation=d.rotation)}),this.tickRotCorr=r.rotCorr(p.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||l(this.min)&&l(this.max)&&!!this.tickPositions},addTitle:function(t){var e,i=this.chart.renderer,n=this.horiz,r=this.opposite,o=this.options.title;this.axisTitle||((e=o.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title").css(o.style).add(this.axisGroup),this.axisTitle.isNew=!0),o.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](!0)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new A(this,t)},getOffset:function(){var t,e,i,n=this,r=(x=n.chart).renderer,o=n.options,s=n.tickPositions,a=n.ticks,h=n.horiz,c=n.side,d=x.inverted&&!n.isZAxis?[1,0,3,2][c]:c,p=0,f=0,g=o.title,m=o.labels,v=0,y=x.axisOffset,x=x.clipOffset,b=[-1,1,1,-1][c],w=o.className,k=n.axisParent,C=this.tickSize("tick");t=n.hasData(),n.showAxis=e=t||M(o.showEmpty,!0),n.staggerLines=n.horiz&&m.staggerLines,n.axisGroup||(n.gridGroup=r.g("grid").attr({zIndex:o.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(w||"")).add(k),n.axisGroup=r.g("axis").attr({zIndex:o.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(w||"")).add(k),n.labelGroup=r.g("axis-labels").attr({zIndex:m.zIndex||7}).addClass("highcharts-"+n.coll.toLowerCase()+"-labels "+(w||"")).add(k)),t||n.isLinked?(u(s,function(t,e){n.generateTick(t,e)}),n.renderUnsquish(),!1===m.reserveSpace||0!==c&&2!==c&&{1:"left",3:"right"}[c]!==n.labelAlign&&"center"!==n.labelAlign||u(s,function(t){v=Math.max(a[t].getLabelSize(),v)}),n.staggerLines&&(v*=n.staggerLines,n.labelOffset=v*(n.opposite?-1:1))):T(a,function(t,e){t.destroy(),delete a[e]}),g&&g.text&&!1!==g.enabled&&(n.addTitle(e),e&&!1!==g.reserveSpace&&(n.titleOffset=p=n.axisTitle.getBBox()[h?"height":"width"],i=g.offset,f=l(i)?0:M(g.margin,h?5:10))),n.renderLine(),n.offset=b*M(o.offset,y[c]),n.tickRotCorr=n.tickRotCorr||{x:0,y:0},r=0===c?-n.labelMetrics().h:2===c?n.tickRotCorr.y:0,f=Math.abs(v)+f,v&&(f=f-r+b*(h?M(m.y,n.tickRotCorr.y+8*b):m.x)),n.axisTitleMargin=M(i,f),y[c]=Math.max(y[c],n.axisTitleMargin+p+b*n.offset,f,t&&s.length&&C?C[0]+b*n.offset:0),s=2*Math.floor(n.axisLine.strokeWidth()/2),0<o.offset&&(s-=2*o.offset),x[d]=Math.max(x[d]||s,s)},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,r=this.horiz,o=this.left+(i?this.width:0)+n,n=e.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(t*=-1),e.renderer.crispLine(["M",r?this.left:o,r?n:this.top,"L",r?e.chartWidth-this.right:o,r?n:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,n=this.len,r=this.options.title,o=t?e:i,s=this.opposite,a=this.offset,l=r.x||0,h=r.y||0,c=this.axisTitle,u=this.chart.renderer.fontMetrics(r.style&&r.style.fontSize,c),c=Math.max(c.getBBox(null,0).height-u.h-1,0),n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[r.align],e=(t?i+this.height:e)+(t?1:-1)*(s?-1:1)*this.axisTitleMargin+[-c,c,u.f,-c][this.side];return{x:t?n+l:e+(s?this.width:0)+a+l,y:t?e+h-(s?this.height:0)+a:n+h}},renderMinorTick:function(t){var e=this.chart.hasRendered&&x(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new A(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,n=this.ticks,r=this.chart.hasRendered&&x(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(n[t]||(n[t]=new A(this,t)),r&&n[t].isNew&&n[t].render(e,!0,.1),n[t].render(e))},render:function(){var e,n,r=this,o=r.chart,s=r.options,a=r.isLog,l=r.lin2log,h=r.isLinked,c=r.tickPositions,d=r.axisTitle,p=r.ticks,f=r.minorTicks,g=r.alternateBands,m=s.stackLabels,v=s.alternateGridColor,y=r.tickmarkOffset,b=r.axisLine,w=r.showAxis,k=i(o.renderer.globalAnimation);r.labelEdge.length=0,r.overlap=!1,u([p,f,g],function(t){T(t,function(t){t.isActive=!1})}),(r.hasData()||h)&&(r.minorTickInterval&&!r.categories&&u(r.getMinorTickPositions(),function(t){r.renderMinorTick(t)}),c.length&&(u(c,function(t,e){r.renderTick(t,e)}),y&&(0===r.min||r.single)&&(p[-1]||(p[-1]=new A(r,-1,null,!0)),p[-1].render(-1))),v&&u(c,function(i,s){n=void 0!==c[s+1]?c[s+1]+y:r.max-y,0==s%2&&i<r.max&&n<=r.max+(o.polar?-y:y)&&(g[i]||(g[i]=new t.PlotLineOrBand(r)),e=i+y,g[i].options={from:a?l(e):e,to:a?l(n):n,color:v},g[i].render(),g[i].isActive=!0)}),r._addedPlotLB||(u((s.plotLines||[]).concat(s.plotBands||[]),function(t){r.addPlotBandOrLine(t)}),r._addedPlotLB=!0)),u([p,f,g],function(t){var e,i=[],n=k.duration;T(t,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),D(function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])},t!==g&&o.hasRendered&&n?n:0)}),b&&(b[b.isPlaced?"animate":"attr"]({d:this.getLinePath(b.strokeWidth())}),b.isPlaced=!0,b[w?"show":"hide"](!0)),d&&w&&(s=r.getTitlePosition(),x(s.y)?(d[d.isNew?"attr":"animate"](s),d.isNew=!1):(d.attr("y",-9999),d.isNew=!0)),m&&m.enabled&&r.renderStackTotals(),r.isDirty=!1},redraw:function(){this.visible&&(this.render(),u(this.plotLinesAndBands,function(t){t.render()})),u(this.series,function(t){t.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(t){var e,i=this,n=i.stacks,r=i.plotLinesAndBands;if(t||C(i),T(n,function(t,e){c(t),n[e]=null}),u([i.ticks,i.minorTicks,i.alternateBands],function(t){c(t)}),r)for(t=r.length;t--;)r[t].destroy();u("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),function(t){i[t]&&(i[t]=i[t].destroy())});for(e in i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();T(i,function(t,e){-1===v(e,i.keepProps)&&delete i[e]})},drawCrosshair:function(t,e){var i,n,r=this.crosshair,s=M(r.snap,!0),a=this.cross;t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(l(e)||!s)?(s?l(e)&&(n=this.isXAxis?e.plotX:this.len-e.plotY):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),l(n)&&(i=this.getPlotLinePath(e&&(this.isXAxis?e.x:M(e.stackY,e.y)),null,null,null,n)||null),l(i)?(e=this.categories&&!this.isRadial,a||(this.cross=a=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(e?"category ":"thin ")+r.className).attr({zIndex:M(r.zIndex,2)}).add(),a.attr({stroke:r.color||(e?o("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":M(r.width,1)}),r.dashStyle&&a.attr({dashstyle:r.dashStyle})),a.show().attr({d:i}),e&&!r.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t):this.hideCrosshair()):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}}),t.Axis=L}(t);return function(t){var e=t.Axis,i=t.Date,n=t.dateFormat,r=t.defaultOptions,o=t.defined,s=t.each,a=t.extend,l=t.getMagnitude,h=t.getTZOffset,c=t.normalizeTickInterval,u=t.pick,d=t.timeUnits;e.prototype.getTimeTicks=function(t,e,l,c){var p,f,g,m=[],v={},y=r.global.useUTC,x=new i(e-Math.max(h(e),h(l))),b=i.hcMakeTime,w=t.unitRange,k=t.count;if(o(e)){x[i.hcSetMilliseconds](w>=d.second?0:k*Math.floor(x.getMilliseconds()/k)),w>=d.second&&x[i.hcSetSeconds](w>=d.minute?0:k*Math.floor(x.getSeconds()/k)),w>=d.minute&&x[i.hcSetMinutes](w>=d.hour?0:k*Math.floor(x[i.hcGetMinutes]()/k)),w>=d.hour&&x[i.hcSetHours](w>=d.day?0:k*Math.floor(x[i.hcGetHours]()/k)),w>=d.day&&x[i.hcSetDate](w>=d.month?1:k*Math.floor(x[i.hcGetDate]()/k)),w>=d.month&&(x[i.hcSetMonth](w>=d.year?0:k*Math.floor(x[i.hcGetMonth]()/k)),p=x[i.hcGetFullYear]()),w>=d.year&&x[i.hcSetFullYear](p-p%k),w===d.week&&x[i.hcSetDate](x[i.hcGetDate]()-x[i.hcGetDay]()+u(c,1)),p=x[i.hcGetFullYear](),c=x[i.hcGetMonth]();var T=x[i.hcGetDate](),M=x[i.hcGetHours]();for((i.hcTimezoneOffset||i.hcGetTimezoneOffset)&&(g=(!y||!!i.hcGetTimezoneOffset)&&(l-e>4*d.month||h(e)!==h(l)),x=x.getTime(),f=h(x),x=new i(x+f)),y=x.getTime(),e=1;y<l;)m.push(y),y=w===d.year?b(p+e*k,0):w===d.month?b(p,c+e*k):!g||w!==d.day&&w!==d.week?g&&w===d.hour?b(p,c,T,M+e*k,0,0,f)-f:y+w*k:b(p,c,T+e*k*(w===d.day?1:7)),e++;m.push(y),w<=d.hour&&1e4>m.length&&s(m,function(t){0==t%18e5&&"000000000"===n("%H%M%S%L",t)&&(v[t]="day")})}return m.info=a(t,{higherRanks:v,totalRange:w*k}),m},e.prototype.normalizeTimeTickInterval=function(t,e){var i,n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],r=d[(e=n[n.length-1])[0]],o=e[1];for(i=0;i<n.length&&(e=n[i],r=d[e[0]],o=e[1],!(n[i+1]&&t<=(r*o[o.length-1]+d[n[i+1][0]])/2));i++);return r===d.year&&t<5*r&&(o=[1,2,5]),t=c(t/r,o,"year"===e[0]?Math.max(l(t/r),1):1),{unitRange:r,count:t,unitName:e[0]}}}(t),function(t){var e=t.Axis,i=t.getMagnitude,n=t.map,r=t.normalizeTickInterval,o=t.pick;e.prototype.getLogTickPositions=function(t,e,s,a){var l=this.options,h=this.len,c=this.lin2log,u=this.log2lin,d=[];if(a||(this._minorAutoInterval=null),.5<=t)t=Math.round(t),d=this.getLinearTickPositions(t,e,s);else if(.08<=t)for(var p,f,g,m,v,h=Math.floor(e),l=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<s+1&&!v;h++)for(f=l.length,p=0;p<f&&!v;p++)(g=u(c(h)*l[p]))>e&&(!a||m<=s)&&void 0!==m&&d.push(m),m>s&&(v=!0),m=g;else e=c(e),s=c(s),t=l[a?"minorTickInterval":"tickInterval"],t=o("auto"===t?null:t,this._minorAutoInterval,l.tickPixelInterval/(a?5:1)*(s-e)/((a?h/this.tickPositions.length:h)||1)),t=r(t,null,i(t)),d=n(this.getLinearTickPositions(t,e,s),u),a||(this._minorAutoInterval=t/5);return a||(this.tickInterval=t),d},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}(t),function(t,e){var i=t.arrayMax,n=t.arrayMin,r=t.defined,o=t.destroyObjectProperties,s=t.each,a=t.erase,l=t.merge,h=t.pick;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){var e=this,i=e.axis,n=i.horiz,o=e.options,s=o.label,a=e.label,c=o.to,u=o.from,d=o.value,p=r(u)&&r(c),f=r(d),g=e.svgElem,m=!g,v=[],y=o.color,x=h(o.zIndex,0),b=o.events,v={class:"highcharts-plot-"+(p?"band ":"line ")+(o.className||"")},w={},k=i.chart.renderer,T=p?"bands":"lines",M=i.log2lin;if(i.isLog&&(u=M(u),c=M(c),d=M(d)),f?(v={stroke:y,"stroke-width":o.width},o.dashStyle&&(v.dashstyle=o.dashStyle)):p&&(y&&(v.fill=y),o.borderWidth&&(v.stroke=o.borderColor,v["stroke-width"]=o.borderWidth)),w.zIndex=x,T+="-"+x,(y=i.plotLinesAndBandsGroups[T])||(i.plotLinesAndBandsGroups[T]=y=k.g("plot-"+T).attr(w).add()),m&&(e.svgElem=g=k.path().attr(v).add(y)),f)v=i.getPlotLinePath(d,g.strokeWidth());else{if(!p)return;v=i.getPlotBandPath(u,c,o)}return m&&v&&v.length?(g.attr({d:v}),b&&t.objectEach(b,function(t,i){g.on(i,function(t){b[i].apply(e,[t])})})):g&&(v?(g.show(),g.animate({d:v})):(g.hide(),a&&(e.label=a=a.destroy()))),s&&r(s.text)&&v&&v.length&&0<i.width&&0<i.height&&!v.flat?(s=l({align:n&&p&&"center",x:n?!p&&4:10,verticalAlign:!n&&p&&"middle",y:n?p?16:10:p?6:-4,rotation:n&&!p&&90},s),this.renderLabel(s,v,p,x)):a&&a.hide(),e},renderLabel:function(t,e,r,o){var s=this.label,a=this.axis.chart.renderer;s||(s={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(r?"band":"line")+"-label "+(t.className||"")},s.zIndex=o,this.label=s=a.text(t.text,0,0,t.useHTML).attr(s).add(),s.css(t.style)),o=[e[1],e[4],r?e[6]:e[1]],e=[e[2],e[5],r?e[7]:e[2]],r=n(o),a=n(e),s.align(t,!1,{x:r,y:a,width:i(o)-r,height:i(e)-a}),s.show()},destroy:function(){a(this.axis.plotLinesAndBands,this),delete this.axis,o(this)}},t.extend(e.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e,null,null,!0),n=this.getPlotLinePath(t,null,null,!0),r=this.horiz,o=1;return t=t<this.min&&e<this.min||t>this.max&&e>this.max,n&&i?(t&&(n.flat=n.toString()===i.toString(),o=0),n.push(r&&i[4]===n[4]?i[4]+o:i[4],r||i[5]!==n[5]?i[5]:i[5]+o,r&&i[1]===n[1]?i[1]+o:i[1],r||i[2]!==n[2]?i[2]:i[2]+o)):n=null,n},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var n=new t.PlotLineOrBand(this,e).render(),r=this.userOptions;return n&&(i&&(r[i]=r[i]||[],r[i].push(e)),this.plotLinesAndBands.push(n)),n},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,r=e.length;r--;)e[r].id===t&&e[r].destroy();s([i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]],function(e){for(r=e.length;r--;)e[r].id===t&&a(e,e[r])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})}(t,e),function(t){var e=t.dateFormat,i=t.each,n=t.extend,r=t.format,o=t.isNumber,s=t.map,a=t.merge,l=t.pick,h=t.splat,c=t.syncTimeout,u=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split},cleanSplit:function(t){i(this.chart.series,function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},getLabel:function(){var t=this.chart.renderer,e=this.options;return this.label||(this.split?this.label=t.g("tooltip"):(this.label=t.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:e.padding,r:e.borderRadius}),this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth}).css(e.style).shadow(e.shadow)),this.label.attr({zIndex:8}).add()),this.label},update:function(t){this.destroy(),a(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,a(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,r){var o=this,s=o.now,a=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-s.x)||1<Math.abs(e-s.y)),l=o.followPointer||1<o.len;n(s,{x:a?(2*s.x+t)/3:t,y:a?(s.y+e)/2:e,anchorX:l?void 0:a?(2*s.anchorX+i)/3:i,anchorY:l?void 0:a?(s.anchorY+r)/2:r}),o.getLabel().attr(s),a&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(t,e,i,r)},32))},hide:function(t){var e=this;clearTimeout(this.hideTimer),t=l(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=c(function(){e.getLabel()[t?"fadeOut":"hide"](),e.isHidden=!0},t))},getAnchor:function(t,e){var n,r,o,a=this.chart,l=a.inverted,c=a.plotTop,u=a.plotLeft,d=0,p=0;return t=h(t),n=t[0].tooltipPos,this.followPointer&&e&&(void 0===e.chartX&&(e=a.pointer.normalize(e)),n=[e.chartX-a.plotLeft,e.chartY-c]),n||(i(t,function(t){r=t.series.yAxis,o=t.series.xAxis,d+=t.plotX+(!l&&o?o.left-u:0),p+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!l&&r?r.top-c:0)}),d/=t.length,p/=t.length,n=[l?a.plotWidth-p:d,this.shared&&!l&&1<t.length&&e?e.chartY-c:l?a.plotHeight-d:p]),s(n,Math.round)},getPosition:function(t,e,i){var n,r=this.chart,o=this.distance,s={},a=i.h||0,h=["y",r.chartHeight,e,i.plotY+r.plotTop,r.plotTop,r.plotTop+r.plotHeight],c=["x",r.chartWidth,t,i.plotX+r.plotLeft,r.plotLeft,r.plotLeft+r.plotWidth],u=!this.followPointer&&l(i.ttBelow,!r.inverted==!!i.negative),d=function(t,e,i,n,r,l){var h=i<n-o,c=n+o+i<e,d=n-o-i;if(n+=o,u&&c)s[t]=n;else if(!u&&h)s[t]=d;else if(h)s[t]=Math.min(l-i,0>d-a?d:d-a);else{if(!c)return!1;s[t]=Math.max(r,n+a+i>e?n:n+a)}},p=function(t,e,i,n){var r;return n<o||n>e-o?r=!1:s[t]=n<i/2?1:n>e-i/2?e-i-2:n-i/2,r},f=function(t){var e=h;h=c,c=e,n=t},g=function(){!1!==d.apply(0,h)?!1!==p.apply(0,c)||n||(f(!0),g()):n?s.x=s.y=0:(f(!0),g())};return(r.inverted||1<this.len)&&f(),g(),s},defaultFormatter:function(t){var e,i=this.points||h(this);return e=[t.tooltipFooterHeaderFormatter(i[0])],(e=e.concat(t.bodyFormatter(i))).push(t.tooltipFooterHeaderFormatter(i[0],!0)),e},refresh:function(t,e){var n,r,o,s=this.options,a=t,c={},u=[];n=s.formatter||this.defaultFormatter;var d,c=this.shared;s.enabled&&(clearTimeout(this.hideTimer),this.followPointer=h(a)[0].series.tooltipOptions.followPointer,o=this.getAnchor(a,e),e=o[0],r=o[1],!c||a.series&&a.series.noSharedTooltip?c=a.getLabelConfig():(i(a,function(t){t.setState("hover"),u.push(t.getLabelConfig())}),c={x:a[0].category,y:a[0].y},c.points=u,a=a[0]),this.len=u.length,c=n.call(c,this),d=a.series,this.distance=l(d.tooltipOptions.distance,16),!1===c?this.hide():(n=this.getLabel(),this.isHidden&&n.attr({opacity:1}).show(),this.split?this.renderSplit(c,t):(s.style.width||n.css({width:this.chart.spacingBox.width}),n.attr({text:c&&c.join?c.join(""):c}),n.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+l(a.colorIndex,d.colorIndex)),n.attr({stroke:s.borderColor||a.color||d.color||"#666666"}),this.updatePosition({plotX:e,plotY:r,negative:a.negative,ttBelow:a.ttBelow,h:o[2]||0})),this.isHidden=!1))},renderSplit:function(e,n){var r=this,o=[],s=this.chart,a=s.renderer,h=!0,c=this.options,u=0,d=this.getLabel();i(e.slice(0,n.length+1),function(t,e){if(!1!==t){var i=(e=n[e-1]||{isHeader:!0,plotX:n[0].plotX}).series||r,p=i.tt,f=e.series||{},g="highcharts-color-"+l(e.colorIndex,f.colorIndex,"none");p||(i.tt=p=a.label(null,null,null,"callout").addClass("highcharts-tooltip-box "+g).attr({padding:c.padding,r:c.borderRadius,fill:c.backgroundColor,stroke:c.borderColor||e.color||f.color||"#333333","stroke-width":c.borderWidth}).add(d)),p.isActive=!0,p.attr({text:t}),p.css(c.style).shadow(c.shadow),f=(t=p.getBBox()).width+p.strokeWidth(),e.isHeader?(u=t.height,f=Math.max(0,Math.min(e.plotX+s.plotLeft-f/2,s.chartWidth-f))):f=e.plotX+s.plotLeft-l(c.distance,16)-f,0>f&&(h=!1),t=(e.series&&e.series.yAxis&&e.series.yAxis.pos)+(e.plotY||0),t-=s.plotTop,o.push({target:e.isHeader?s.plotHeight+u:t,rank:e.isHeader?1:0,size:i.tt.getBBox().height+1,point:e,x:f,tt:p})}}),this.cleanSplit(),t.distribute(o,s.plotHeight+u),i(o,function(t){var e=t.point,i=e.series;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:h||e.isHeader?t.x:e.plotX+s.plotLeft+l(c.distance,16),y:t.pos+s.plotTop,anchorX:e.isHeader?e.plotX+s.plotLeft:e.plotX+i.xAxis.pos,anchorY:e.isHeader?t.pos+s.plotTop-15:e.plotY+i.yAxis.pos})})},updatePosition:function(t){var e=this.chart,i=this.getLabel(),i=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(Math.round(i.x),Math.round(i.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getDateFormat:function(t,i,n,r){var o,s,a=e("%m-%d %H:%M:%S.%L",i),l={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(s in u){if(t===u.week&&+e("%w",i)===n&&"00:00:00.000"===a.substr(6)){s="week";break}if(u[s]>t){s=h;break}if(l[s]&&a.substr(l[s])!=="01-01 00:00:00.000".substr(l[s]))break;"week"!==s&&(h=s)}return s&&(o=r[s]),o},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header",n=(e=t.series).tooltipOptions,s=n.xDateFormat,a=e.xAxis,l=a&&"datetime"===a.options.type&&o(t.key),i=n[i+"Format"];return l&&!s&&(s=this.getXDateFormat(t,n,a)),l&&s&&(i=i.replace("{point.key}","{point.key:"+s+"}")),r(i,{point:t,series:e})},bodyFormatter:function(t){return s(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}}}(t),function(t){var e=t.addEvent,i=t.attr,n=t.charts,r=t.color,o=t.css,s=t.defined,a=t.each,l=t.extend,h=t.find,c=t.fireEvent,u=t.isObject,d=t.offset,p=t.pick,f=t.removeEvent,g=t.splat,m=t.Tooltip,v=t.win;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},m&&(t.tooltip=new m(t,e.tooltip),this.followTouchMove=p(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=(n=this.chart).options.chart,i=e.zoomType||"",n=n.inverted;/touch/.test(t.type)&&(i=p(e.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=i=/y/.test(i),this.zoomHor=t&&!n||i&&n,this.zoomVert=i&&!n||t&&n,this.hasZoom=t||i},normalize:function(t,e){var i,n;return(t=t||v.event).target||(t.target=t.srcElement),n=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=d(this.chart.container)),void 0===n.pageX?(i=Math.max(t.x,t.clientX-e.left),e=t.y):(i=n.pageX-e.left,e=n.pageY-e.top),l(t,{chartX:Math.round(i),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return a(this.chart.axes,function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},findNearestKDPoint:function(t,e,i){var n;return a(t,function(t){r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,r),(r=u(t,!0))&&!(r=!u(n,!0)))var r=n.distX-t.distX,o=n.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(n.series.group&&n.series.group.zIndex),r=0<(0!==r&&e?r:0!==o?o:0!==s?s:n.series.index>t.series.index?-1:1);r&&(n=t)}),n},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=(n=t.series).xAxis,n=n.yAxis;if(i&&n)return e?{chartX:i.len+i.pos-t.clientX,chartY:n.len+n.pos-t.plotY}:{chartX:t.clientX+i.pos,chartY:t.plotY+n.pos}},getHoverData:function(e,i,n,r,o,s){var l,c=[];r=!(!r||!e);var d=i&&!i.stickyTracking?[i]:t.grep(n,function(t){return t.visible&&!(!o&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&t.stickyTracking});return i=(l=r?e:this.findNearestKDPoint(d,o,s))&&l.series,l&&(o&&!i.noSharedTooltip?(d=t.grep(n,function(t){return t.visible&&!(!o&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}),a(d,function(t){t=h(t.points,function(t){return t.x===l.x}),u(t)&&!t.isNull&&c.push(t)})):c.push(l)),{hoverPoint:l,hoverSeries:i,hoverPoints:c}},runPointActions:function(i,r){var o,s=this.chart,l=s.tooltip,h=!!l&&l.shared,c=(u=r||s.hoverPoint)&&u.series||s.hoverSeries,u=(c=this.getHoverData(u,c,s.series,!!r||c&&c.directTouch&&this.isDirectTouch,h,i)).hoverPoint;o=c.hoverPoints,r=(c=c.hoverSeries)&&c.tooltipOptions.followPointer,h=h&&c&&!c.noSharedTooltip,u&&(u!==s.hoverPoint||l&&l.isHidden)?(a(s.hoverPoints||[],function(e){-1===t.inArray(e,o)&&e.setState()}),a(o||[],function(t){t.setState("hover")}),s.hoverSeries!==c&&c.onMouseOver(),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),u.firePointEvent("mouseOver"),s.hoverPoints=o,s.hoverPoint=u,l&&l.refresh(h?o:u,i)):r&&l&&!l.isHidden&&(u=l.getAnchor([{}],i),l.updatePosition({plotX:u[0],plotY:u[1]})),this.unDocMouseMove||(this.unDocMouseMove=e(s.container.ownerDocument,"mousemove",function(e){var i=n[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),a(s.axes,function(e){var n=p(e.crosshair.snap,!0),r=n?t.find(o,function(t){return t.series[e.coll]===e}):void 0;r||!n?e.drawCrosshair(i,r):e.hideCrosshair()})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,r=i.hoverPoint,o=i.hoverPoints,s=i.tooltip,l=s&&s.shared?o:r;t&&l&&a(g(l),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&l&&(s.refresh(l),r&&(r.setState(r.state,!0),a(i.axes,function(t){t.crosshair&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&a(o,function(t){t.setState()}),n&&n.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),a(i.axes,function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;a(n.series,function(r){i=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,n=i.options.chart,o=t.chartX,s=t.chartY,a=this.zoomHor,l=this.zoomVert,h=i.plotLeft,c=i.plotTop,u=i.plotWidth,d=i.plotHeight,p=this.selectionMarker,f=this.mouseDownX,g=this.mouseDownY,m=n.panKey&&t[n.panKey+"Key"];p&&p.touch||(o<h?o=h:o>h+u&&(o=h+u),s<c?s=c:s>c+d&&(s=c+d),this.hasDragged=Math.sqrt(Math.pow(f-o,2)+Math.pow(g-s,2)),10<this.hasDragged&&(e=i.isInsidePlot(f-h,g-c),i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!m&&!p&&(this.selectionMarker=p=i.renderer.rect(h,c,a?1:u,l?1:d,0).attr({fill:n.selectionMarkerFill||r("#335cad").setOpacity(.25).get(),class:"highcharts-selection-marker",zIndex:7}).add()),p&&a&&(o-=f,p.attr({width:Math.abs(o),x:(0<o?0:o)+f})),p&&l&&(o=s-g,p.attr({height:Math.abs(o),y:(0<o?0:o)+g})),e&&!p&&n.panning&&i.pan(t,n.panning)))},drop:function(t){var e=this,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var r,h={originalEvent:t,xAxis:[],yAxis:[]},u=this.selectionMarker,d=u.attr?u.attr("x"):u.x,p=u.attr?u.attr("y"):u.y,f=u.attr?u.attr("width"):u.width,g=u.attr?u.attr("height"):u.height;(this.hasDragged||n)&&(a(i.axes,function(i){if(i.zoomEnabled&&s(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var o=i.horiz,a="touchend"===t.type?i.minPixelPadding:0,l=i.toValue((o?d:p)+a),o=i.toValue((o?d+f:p+g)-a);h[i.coll].push({axis:i,min:Math.min(l,o),max:Math.max(l,o)}),r=!0}}),r&&c(i,"selection",h,function(t){i.zoom(l(t,n?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),n&&this.scaleGroups()}i&&(o(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){t=this.normalize(t),this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t)},onDocumentMouseUp:function(e){n[t.hoverChartIndex]&&n[t.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(e){var i=n[t.hoverChartIndex];i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=null)},onContainerMouseMove:function(e){var i=this.chart;s(t.hoverChartIndex)&&n[t.hoverChartIndex]&&n[t.hoverChartIndex].mouseIsDown||(t.hoverChartIndex=i.index),(e=this.normalize(e)).returnValue=!1,"mousedown"===i.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)||i.openMenu||this.runPointActions(e)},inClass:function(t,e){for(var n;t;){if(n=i(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries;t=t.relatedTarget||t.toElement,this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,r=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(c(i.series,"click",l(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(l(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-r)&&c(e,"click",t)))},setDOMEvents:function(){var i=this,n=i.chart.container,r=n.ownerDocument;n.onmousedown=function(t){i.onContainerMouseDown(t)},n.onmousemove=function(t){i.onContainerMouseMove(t)},n.onclick=function(t){i.onContainerClick(t)},e(n,"mouseleave",i.onContainerMouseLeave),1===t.chartCount&&e(r,"mouseup",i.onDocumentMouseUp),t.hasTouch&&(n.ontouchstart=function(t){i.onContainerTouchStart(t)},n.ontouchmove=function(t){i.onContainerTouchMove(t)},1===t.chartCount&&e(r,"touchend",i.onDocumentTouchEnd))},destroy:function(){var e=this,i=this.chart.container.ownerDocument;e.unDocMouseMove&&e.unDocMouseMove(),f(e.chart.container,"mouseleave",e.onContainerMouseLeave),t.chartCount||(f(i,"mouseup",e.onDocumentMouseUp),t.hasTouch&&f(i,"touchend",e.onDocumentTouchEnd)),clearInterval(e.tooltipTimeout),t.objectEach(e,function(t,i){e[i]=null})}}}(t),function(t){var e=t.charts,i=t.each,n=t.extend,r=t.map,o=t.noop,s=t.pick;n(t.Pointer.prototype,{pinchTranslate:function(t,e,i,n,r,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,n,r,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,n,r,o)},pinchTranslateDirection:function(t,e,i,n,r,o,s,a){var l,h,c,u=this.chart,d=t?"x":"y",p=t?"X":"Y",f="chart"+p,g=t?"width":"height",m=u["plot"+(t?"Left":"Top")],v=a||1,y=u.inverted,x=u.bounds[t?"h":"v"],b=1===e.length,w=e[0][f],k=i[0][f],T=!b&&e[1][f],M=!b&&i[1][f];(i=function(){!b&&20<Math.abs(w-T)&&(v=a||Math.abs(k-M)/Math.abs(w-T)),h=(m-k)/v+w,l=u["plot"+(t?"Width":"Height")]/v})(),(e=h)<x.min?(e=x.min,c=!0):e+l>x.max&&(e=x.max-l,c=!0),c?(k-=.8*(k-s[d][0]),b||(M-=.8*(M-s[d][1])),i()):s[d]=[k,M],y||(o[d]=h-m,o[g]=l),o=y?1/v:v,r[g]=l,r[d]=e,n[y?t?"scaleY":"scaleX":"scale"+p]=v,n["translate"+p]=o*m+(k-o*w)},pinch:function(t){var e=this,a=e.chart,l=e.pinchDown,h=t.touches,c=h.length,u=e.lastValidTouch,d=e.hasZoom,p=e.selectionMarker,f={},g=1===c&&(e.inClass(t.target,"highcharts-tracker")&&a.runTrackerClick||e.runChartClick),m={};1<c&&(e.initiated=!0),d&&e.initiated&&!g&&t.preventDefault(),r(h,function(t){return e.normalize(t)}),"touchstart"===t.type?(i(h,function(t,e){l[e]={chartX:t.chartX,chartY:t.chartY}}),u.x=[l[0].chartX,l[1]&&l[1].chartX],u.y=[l[0].chartY,l[1]&&l[1].chartY],i(a.axes,function(t){if(t.zoomEnabled){var e=a.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,n=t.toPixels(s(t.options.min,t.dataMin)),r=t.toPixels(s(t.options.max,t.dataMax)),o=Math.max(n,r);e.min=Math.min(t.pos,Math.min(n,r)-i),e.max=Math.max(t.pos+t.len,o+i)}}),e.res=!0):e.followTouchMove&&1===c?this.runPointActions(e.normalize(t)):l.length&&(p||(e.selectionMarker=p=n({destroy:o,touch:!0},a.plotBox)),e.pinchTranslate(l,h,f,p,m,u),e.hasPinched=d,e.scaleGroups(f,m),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(e,i){var n,r=this.chart;r.index!==t.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),t.hoverChartIndex=r.index,1===e.touches.length?(e=this.normalize(e),r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop)&&!r.openMenu?(i&&this.runPointActions(e),"touchmove"===e.type&&(i=this.pinchDown,n=!!i[0]&&4<=Math.sqrt(Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2))),s(n,!0)&&this.pinch(e)):i&&this.reset()):2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(i){e[t.hoverChartIndex]&&e[t.hoverChartIndex].pointer.drop(i)}})}(t),function(t){var e=t.addEvent,i=t.charts,n=t.css,r=t.doc,o=t.extend,s=t.noop,a=t.Pointer,l=t.removeEvent,h=t.win,c=t.wrap;if(!t.hasTouch&&(h.PointerEvent||h.MSPointerEvent)){var u={},d=!!h.PointerEvent,p=function(){var e=[];return e.item=function(t){return this[t]},t.objectEach(u,function(t){e.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),e},f=function(e,n,r,o){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!i[t.hoverChartIndex]||(o(e),(o=i[t.hoverChartIndex].pointer)[n]({type:r,target:e.currentTarget,preventDefault:s,touches:p()}))};o(a.prototype,{onContainerPointerDown:function(t){f(t,"onContainerTouchStart","touchstart",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){f(t,"onContainerTouchMove","touchmove",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY},u[t.pointerId].target||(u[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){f(t,"onDocumentTouchEnd","touchend",function(t){delete u[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,d?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,d?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(r,d?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),c(a.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&n(e.container,{"-ms-touch-action":"none","touch-action":"none"})}),c(a.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(e)}),c(a.prototype,"destroy",function(t){this.batchMSEvents(l),t.call(this)})}}(t),function(t){var e=t.addEvent,i=t.css,n=t.discardElement,r=t.defined,o=t.each,s=t.isFirefox,a=t.marginNames,l=t.merge,h=t.pick,c=t.setAnimation,u=t.stableSort,d=t.win,p=t.wrap;t.Legend=function(t,e){this.init(t,e)},t.Legend.prototype={init:function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),e(this.chart,"endResize",function(){this.legend.positionCheckboxes()}))},setOptions:function(t){var e=h(t.padding,8);this.options=t,this.itemStyle=t.itemStyle,this.itemHiddenStyle=l(this.itemStyle,t.itemHiddenStyle),this.itemMarginTop=t.itemMarginTop||0,this.padding=e,this.initialItemY=e-5,this.itemHeight=this.maxItemWidth=0,this.symbolWidth=h(t.symbolWidth,16),this.pages=[]},update:function(t,e){var i=this.chart;this.setOptions(l(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,h(e,!0)&&i.redraw()},colorizeItem:function(t,e){t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden");var i=this.options,n=t.legendItem,r=t.legendLine,o=t.legendSymbol,s=this.itemHiddenStyle.color,i=e?i.itemStyle.color:s,a=e?t.color||s:s,l=t.options&&t.options.marker,h={fill:a};n&&n.css({fill:i,color:i}),r&&r.attr({stroke:a}),o&&(l&&o.isMarker&&(h=t.pointAttribs(),e||(h.stroke=h.fill=s)),o.attr(h))},positionItem:function(t){var e=(i=this.options).symbolPadding,i=!i.rtl,n=(r=t._legendItemPos)[0],r=r[1],o=t.checkbox;(t=t.legendGroup)&&t.element&&t.translate(i?n:this.legendWidth-n-2*e-4,r),o&&(o.x=n,o.y=r)},destroyItem:function(t){var e=t.checkbox;o(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&n(t.checkbox)},destroy:function(){function t(t){this[t]&&(this[t]=this[t].destroy())}o(this.getAllItems(),function(e){o(["legendItem","legendGroup"],t,e)}),o("clipRect up down pager nav box title group".split(" "),t,this),this.display=null},positionCheckboxes:function(t){var e,n=this.group&&this.group.alignAttr,r=this.clipHeight||this.legendHeight,s=this.titleHeight;n&&(e=n.translateY,o(this.allItems,function(o){var a,l=o.checkbox;l&&(a=e+s+l.y+(t||0)+3,i(l,{left:n.translateX+o.checkboxOffset+l.x-20+"px",top:a+"px",display:a>e-6&&a<e+r-6?"":"none"}))}))},renderTitle:function(){var t=this.options,e=this.padding,i=t.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}).css(i.style).add(this.group)),t=this.title.getBBox(),n=t.height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},setText:function(e){var i=this.options;e.legendItem.attr({text:i.labelFormat?t.format(i.labelFormat,e):i.labelFormatter.call(e)})},renderItem:function(t){var e=this.chart,i=e.renderer,n=this.options,r="horizontal"===n.layout,o=this.symbolWidth,s=n.symbolPadding,a=this.itemStyle,c=this.itemHiddenStyle,u=this.padding,d=r?h(n.itemDistance,20):0,p=!n.rtl,f=n.width,g=n.itemMarginBottom||0,m=this.itemMarginTop,v=t.legendItem,y=!t.series,x=!y&&t.series.drawLegendSymbol?t.series:t,b=x.options,w=this.createCheckboxForItem&&b&&b.showCheckbox,b=o+s+d+(w?20:0),k=n.useHTML,T=t.options.className;v||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+x.type+"-series highcharts-color-"+t.colorIndex+(T?" "+T:"")+(y?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=v=i.text("",p?o+s:-s,this.baseline||0,k).css(l(t.visible?a:c)).attr({align:p?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(o=a.fontSize,this.fontMetrics=i.fontMetrics(o,v),this.baseline=this.fontMetrics.f+3+m,v.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,x.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,v,k),w&&this.createCheckboxForItem(t)),this.colorizeItem(t,t.visible),a.width||v.css({width:(n.itemWidth||n.width||e.spacingBox.width)-b}),this.setText(t),i=v.getBBox(),a=t.checkboxOffset=n.itemWidth||t.legendItemWidth||i.width+b,this.itemHeight=i=Math.round(t.legendItemHeight||i.height||this.symbolHeight),r&&this.itemX-u+a>(f||e.spacingBox.width-2*u-n.x)&&(this.itemX=u,this.itemY+=m+this.lastLineHeight+g,this.lastLineHeight=0),this.maxItemWidth=Math.max(this.maxItemWidth,a),this.lastItemY=m+this.itemY+g,this.lastLineHeight=Math.max(i,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=a:(this.itemY+=m+i+g,this.lastLineHeight=i),this.offsetWidth=f||Math.max((r?this.itemX-u-(t.checkbox?0:d):a)+u,this.offsetWidth)},getAllItems:function(){var t=[];return o(this.chart.series,function(e){var i=e&&e.options;e&&h(i.showInLegend,!r(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var i=this.chart,n=this.options,s=n.align.charAt(0)+n.verticalAlign.charAt(0)+n.layout.charAt(0);n.floating||o([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,l){o.test(s)&&!r(t[l])&&(i[a[l]]=Math.max(i[a[l]],i.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*n[l%2?"x":"y"]+h(n.margin,12)+e[l]))})},render:function(){var t,e,i,n,r=this,s=r.chart,a=s.renderer,h=r.group,c=r.box,d=r.options,p=r.padding;r.itemX=p,r.itemY=r.initialItemY,r.offsetWidth=0,r.lastItemY=0,h||(r.group=h=a.g("legend").attr({zIndex:7}).add(),r.contentGroup=a.g().attr({zIndex:1}).add(h),r.scrollGroup=a.g().add(r.contentGroup)),r.renderTitle(),t=r.getAllItems(),u(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),d.reversed&&t.reverse(),r.allItems=t,r.display=e=!!t.length,r.lastLineHeight=0,o(t,function(t){r.renderItem(t)}),i=(d.width||r.offsetWidth)+p,n=r.lastItemY+r.lastLineHeight+r.titleHeight,n=r.handleOverflow(n),n+=p,c||(r.box=c=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(h),c.isNew=!0),c.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow),0<i&&0<n&&(c[c.isNew?"attr":"animate"](c.crisp({x:0,y:0,width:i,height:n},c.strokeWidth())),c.isNew=!1),c[e?"show":"hide"](),r.legendWidth=i,r.legendHeight=n,o(t,function(t){r.positionItem(t)}),e&&h.align(l(d,{width:i,height:n}),!0,"spacingBox"),s.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,r=(c=this.chart).renderer,s=this.options,a=s.y,l=this.padding,c=c.spacingBox.height+("top"===s.verticalAlign?-a:a)-l,a=s.maxHeight,u=this.clipRect,d=s.navigation,p=h(d.animation,!0),f=d.arrowSize||12,g=this.nav,m=this.pages,v=this.allItems,y=function(t){"number"==typeof t?u.attr({height:t}):u&&(n.clipRect=u.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+l+"px,9999px,"+(l+t)+"px,0)":"auto")};return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(c/=2),a&&(c=Math.min(c,a)),m.length=0,t>c&&!1!==d.enabled?(this.clipHeight=e=Math.max(c-20-this.titleHeight-l,0),this.currentPage=h(this.currentPage,1),this.fullHeight=t,o(v,function(t,n){var r=t._legendItemPos[1];t=Math.round(t.legendItem.getBBox().height);var o=m.length;(!o||r-m[o-1]>e&&(i||r)!==m[o-1])&&(m.push(i||r),o++),n===v.length-1&&r+t-m[o-1]>e&&m.push(r),r!==i&&(i=r)}),u||(u=n.clipRect=r.clipRect(0,l,9999,0),n.contentGroup.clip(u)),y(e),g||(this.nav=g=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,f,f).on("click",function(){n.scroll(-1,p)}).add(g),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation").css(d.style).add(g),this.down=r.symbol("triangle-down",0,0,f,f).on("click",function(){n.scroll(1,p)}).add(g)),n.scroll(0),t=c):g&&(y(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length;t=this.currentPage+t;var r=this.clipHeight,o=this.options.navigation,s=this.pager,a=this.padding;t>n&&(t=n),0<t&&(void 0!==e&&c(e,this.chart),this.nav.attr({translateX:a,translateY:r+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({class:1===t?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),s.attr({text:t+"/"+n}),this.down.attr({x:18+this.pager.getBBox().width,class:t===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),this.up.attr({fill:1===t?o.inactiveColor:o.activeColor}).css({cursor:1===t?"default":"pointer"}),this.down.attr({fill:t===n?o.inactiveColor:o.activeColor}).css({cursor:t===n?"default":"pointer"}),e=-i[t-1]+this.initialItemY,this.scrollGroup.animate({translateY:e}),this.currentPage=t,this.positionCheckboxes(e))}},t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,n=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(n?(t.symbolWidth-i)/2:0,t.baseline-i+1,n?i:t.symbolWidth,i,h(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,i=e.marker,n=t.symbolWidth,r=t.symbolHeight,o=r/2,s=this.chart.renderer,a=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c;c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle),this.legendLine=s.path(["M",0,t,"L",n,t]).addClass("highcharts-graph").attr(c).add(a),i&&!1!==i.enabled&&(e=Math.min(h(i.radius,o),o),0===this.symbol.indexOf("url")&&(i=l(i,{width:r,height:r}),e=0),this.legendSymbol=i=s.symbol(this.symbol,n/2-e,t-e,2*e,2*e,i).addClass("highcharts-point").add(a),i.isMarker=!0)}},(/Trident\/7\.0/.test(d.navigator.userAgent)||s)&&p(t.Legend.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),setTimeout(n)})}(t),function(t){var e=t.addEvent,i=t.animate,n=t.animObject,r=t.attr,o=t.doc,s=t.Axis,a=t.createElement,l=t.defaultOptions,h=t.discardElement,c=t.charts,u=t.css,d=t.defined,p=t.each,f=t.extend,g=t.find,m=t.fireEvent,v=t.getStyle,y=t.grep,x=t.isNumber,b=t.isObject,w=t.isString,k=t.Legend,T=t.marginNames,M=t.merge,C=t.objectEach,S=t.Pointer,D=t.pick,A=t.pInt,L=t.removeEvent,O=t.seriesTypes,P=t.splat,E=t.svg,N=t.syncTimeout,I=t.win,_=t.Renderer,z=t.Chart=function(){this.getArgs.apply(this,arguments)};t.chart=function(t,e,i){return new z(t,e,i)},f(z.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(w(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(i,n){var r,o,s=i.series,a=i.plotOptions||{};i.series=null,r=M(l,i);for(o in r.plotOptions)r.plotOptions[o].tooltip=a[o]&&M(a[o].tooltip)||void 0;r.tooltip.userOptions=i.chart&&i.chart.forExport&&i.tooltip.userOptions||i.tooltip,r.series=i.series=s,this.userOptions=i,o=(i=r.chart).events,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.callback=n,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.hasCartesianSeries=i.showAxes;var h=this;h.index=c.length,c.push(h),t.chartCount++,o&&C(o,function(t,i){e(h,i,t)}),h.xAxis=[],h.yAxis=[],h.pointCount=h.colorCounter=h.symbolCounter=0,h.firstRender()},initSeries:function(e){var i=this.options.chart;return(i=O[e.type||i.type||i.defaultSeriesType])||t.error(17,!0),(i=new i).init(this,e),i},orderSeries:function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].name||"Series "+(e[t].index+1))},isInsidePlot:function(t,e,i){var n=i?e:t;return t=i?t:e,0<=n&&n<=this.plotWidth&&0<=t&&t<=this.plotHeight},redraw:function(e){var i,n,r,o=this.axes,s=this.series,a=this.pointer,l=this.legend,h=this.isDirtyLegend,c=this.hasCartesianSeries,u=this.isDirtyBox,d=this.renderer,g=d.isHidden(),v=[];for(this.setResponsive&&this.setResponsive(!1),t.setAnimation(e,this),g&&this.temporaryDisplay(),this.layOutTitles(),e=s.length;e--;)if((r=s[e]).options.stacking&&(i=!0,r.isDirty)){n=!0;break}if(n)for(e=s.length;e--;)(r=s[e]).options.stacking&&(r.isDirty=!0);p(s,function(t){t.isDirty&&"point"===t.options.legendType&&(t.updateTotals&&t.updateTotals(),h=!0),t.isDirtyData&&m(t,"updatedData")}),h&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),c&&p(o,function(t){t.updateNames(),t.setScale()}),this.getMargins(),c&&(p(o,function(t){t.isDirty&&(u=!0)}),p(o,function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,v.push(function(){m(t,"afterSetExtremes",f(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()})),u&&this.drawChartBox(),m(this,"predraw"),p(s,function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),d.draw(),m(this,"redraw"),m(this,"render"),g&&this.temporaryDisplay(!0),p(v,function(t){t.call()})},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,n,r=this.series;for(i=g(this.axes,e)||g(this.series,e),n=0;!i&&n<r.length;n++)i=g(r[n].points||[],e);return i},getAxes:function(){var t=this,e=(i=this.options).xAxis=P(i.xAxis||{}),i=i.yAxis=P(i.yAxis||{});p(e,function(t,e){t.index=e,t.isX=!0}),p(i,function(t,e){t.index=e}),e=e.concat(i),p(e,function(e){new s(t,e)})},getSelectedPoints:function(){var t=[];return p(this.series,function(e){t=t.concat(y(e.data||[],function(t){return t.selected}))}),t},getSelectedSeries:function(){return y(this.series,function(t){return t.selected})},setTitle:function(t,e,i){var n,r=this,o=r.options;n=o.title=M({style:{color:"#333333",fontSize:o.isStock?"16px":"18px"}},o.title,t),o=o.subtitle=M({style:{color:"#666666"}},o.subtitle,e),p([["title",t,n],["subtitle",e,o]],function(t,e){var i=t[0],n=r[i],o=t[1];t=t[2],n&&o&&(r[i]=n=n.destroy()),t&&t.text&&!n&&(r[i]=r.renderer.text(t.text,0,0,t.useHTML).attr({align:t.align,class:"highcharts-"+i,zIndex:t.zIndex||4}).add(),r[i].update=function(t){r.setTitle(!e&&t,e&&t)},r[i].css(t.style))}),r.layOutTitles(i)},layOutTitles:function(t){var e,i=0,n=this.renderer,r=this.spacingBox;p(["title","subtitle"],function(t){var e=this[t],o=this.options[t];t="title"===t?-3:o.verticalAlign?0:i+2;var s;e&&(s=o.style.fontSize,s=n.fontMetrics(s,e).b,e.css({width:(o.width||r.width+o.widthAdjust)+"px"}).align(f({y:t+s},o),!1,"spacingBox"),o.floating||o.verticalAlign||(i=Math.ceil(i+e.getBBox(o.useHTML).height)))},this),e=this.titleOffset!==i,this.titleOffset=i,!this.isDirtyBox&&e&&(this.isDirtyBox=e,this.hasRendered&&D(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=(i=this.options.chart).width,i=i.height,n=this.renderTo;d(e)||(this.containerWidth=v(n,"width")),d(i)||(this.containerHeight=v(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,t.relativeLength(i,this.chartWidth)||this.containerHeight||400)},temporaryDisplay:function(e){var i=this.renderTo;if(e)for(;i&&i.style;)i.hcOrigStyle&&(t.css(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(o.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(o.body.contains(i)||(i.hcOrigDetached=!0,o.body.appendChild(i)),("none"===v(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),t.css(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==o.body););},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var e,i,n,s=this.options,l=s.chart;e=this.renderTo;var h,u=t.uniqueKey();e||(this.renderTo=e=l.renderTo),w(e)&&(this.renderTo=e=o.getElementById(e)),e||t.error(13,!0),i=A(r(e,"data-highcharts-chart")),x(i)&&c[i]&&c[i].hasRendered&&c[i].destroy(),r(e,"data-highcharts-chart",this.index),e.innerHTML="",l.skipClone||e.offsetWidth||this.temporaryDisplay(),this.getChartSize(),i=this.chartWidth,n=this.chartHeight,h=f({position:"relative",overflow:"hidden",width:i+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},l.style),this.container=e=a("div",{id:u},h,e),this._cursor=e.style.cursor,this.renderer=new(t[l.renderer]||_)(e,i,n,null,l.forExport,s.exporting&&s.exporting.allowHTML),this.setClassName(l.className),this.renderer.setStyle(l.style),this.renderer.chartIndex=this.index},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n&&!d(i[0])&&(this.plotTop=Math.max(this.plotTop,n+this.options.title.margin+e[0])),this.legend.display&&this.legend.adjustMargins(i,e),this.extraMargin&&(this[this.extraMargin.type]=(this[this.extraMargin.type]||0)+this.extraMargin.value),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.margin;t.hasCartesianSeries&&p(t.axes,function(t){t.visible&&t.getOffset()}),p(T,function(n,r){d(i[r])||(t[n]+=e[r])}),t.setChartSize()},reflow:function(t){var e=this,i=e.options.chart,n=e.renderTo,r=d(i.width)&&d(i.height),s=i.width||v(n,"width"),i=i.height||v(n,"height"),n=t?t.target:I;r||e.isPrinting||!s||!i||n!==I&&n!==o||(s===e.containerWidth&&i===e.containerHeight||(clearTimeout(e.reflowTimeout),e.reflowTimeout=N(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=s,e.containerHeight=i)},initReflow:function(){var t,i=this;t=e(I,"resize",function(t){i.reflow(t)}),e(i,"destroy",t)},setSize:function(e,r,o){var s=this,a=s.renderer;s.isResizing+=1,t.setAnimation(o,s),s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==e&&(s.options.chart.width=e),void 0!==r&&(s.options.chart.height=r),s.getChartSize(),((e=a.globalAnimation)?i:u)(s.container,{width:s.chartWidth+"px",height:s.chartHeight+"px"},e),s.setChartSize(!0),a.setSize(s.chartWidth,s.chartHeight,o),p(s.axes,function(t){t.isDirty=!0,t.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(o),s.oldChartHeight=null,m(s,"resize"),N(function(){s&&m(s,"endResize",null,function(){--s.isResizing})},n(e).duration)},setChartSize:function(t){function e(t){return t=f[t]||0,Math.max(s||t,t)/2}var i,n,r,o,s,a=this.inverted,l=this.renderer,h=this.chartWidth,c=this.chartHeight,u=this.options.chart,d=this.spacing,f=this.clipOffset;this.plotLeft=i=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(h-i-this.marginRight)),this.plotHeight=o=Math.max(0,Math.round(c-n-this.marginBottom)),this.plotSizeX=a?o:r,this.plotSizeY=a?r:o,this.plotBorderWidth=u.plotBorderWidth||0,this.spacingBox=l.spacingBox={x:d[3],y:d[0],width:h-d[3]-d[1],height:c-d[0]-d[2]},this.plotBox=l.plotBox={x:i,y:n,width:r,height:o},s=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(e(3)),l=Math.ceil(e(0)),this.clipBox={x:a,y:l,width:Math.floor(this.plotSizeX-e(1)-a),height:Math.max(0,Math.floor(this.plotSizeY-e(2)-l))},t||p(this.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this,e=t.options.chart;p(["margin","spacing"],function(i){var n=e[i],r=b(n)?n:[n,n,n,n];p(["Top","Right","Bottom","Left"],function(n,o){t[i][o]=D(e[i+n],r[o])})}),p(T,function(e,i){t[e]=D(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[]},drawChartBox:function(){var t,e,i=this.options.chart,n=this.renderer,r=this.chartWidth,o=this.chartHeight,s=this.chartBackground,a=this.plotBackground,l=this.plotBorder,h=this.plotBGImage,c=i.backgroundColor,u=i.plotBackgroundColor,d=i.plotBackgroundImage,p=this.plotLeft,f=this.plotTop,g=this.plotWidth,m=this.plotHeight,v=this.plotBox,y=this.clipRect,x=this.clipBox,b="animate";s||(this.chartBackground=s=n.rect().addClass("highcharts-background").add(),b="attr"),e=(t=i.borderWidth||0)+(i.shadow?8:0),c={fill:c||"none"},(t||s["stroke-width"])&&(c.stroke=i.borderColor,c["stroke-width"]=t),s.attr(c).shadow(i.shadow),s[b]({x:e/2,y:e/2,width:r-e-t%2,height:o-e-t%2,r:i.borderRadius}),b="animate",a||(b="attr",this.plotBackground=a=n.rect().addClass("highcharts-plot-background").add()),a[b](v),a.attr({fill:u||"none"}).shadow(i.plotShadow),d&&(h?h.animate(v):this.plotBGImage=n.image(d,p,f,g,m).add()),y?y.animate({width:x.width,height:x.height}):this.clipRect=n.clipRect(x),b="animate",l||(b="attr",this.plotBorder=l=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l.attr({stroke:i.plotBorderColor,"stroke-width":i.plotBorderWidth||0,fill:"none"}),l[b](l.crisp({x:p,y:f,width:g,height:m},-l.strokeWidth())),this.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,r=n.options.chart,o=n.options.series;p(["inverted","angular","polar"],function(s){for(t=O[r.type||r.defaultSeriesType],i=r[s]||t&&t.prototype[s],e=o&&o.length;!i&&e--;)(t=O[o[e].type])&&t.prototype[s]&&(i=!0);n[s]=i})},linkSeries:function(){var t=this,e=t.series;p(e,function(t){t.linkedSeries.length=0}),p(e,function(e){var i=e.options.linkedTo;w(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,e.visible=D(e.options.visible,i.options.visible,e.visible))})},renderSeries:function(){p(this.series,function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,e=t.options.labels;e.items&&p(e.items,function(i){var n=f(e.style,i.style),r=A(n.left)+t.plotLeft,o=A(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(i.html,r,o).attr({zIndex:2}).css(n).add()})},render:function(){var t,e,i,n=this.axes,r=this.renderer,o=this.options;this.setTitle(),this.legend=new k(this,o.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),o=this.plotWidth,t=this.plotHeight-=21,p(n,function(t){t.setScale()}),this.getAxisMargins(),e=1.1<o/this.plotWidth,i=1.05<t/this.plotHeight,(e||i)&&(p(n,function(t){(t.horiz&&e||!t.horiz&&i)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&p(n,function(t){t.visible&&t.render()}),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=M(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){t.href&&(I.location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},destroy:function(){var e,i=this,n=i.axes,r=i.series,o=i.container,s=o&&o.parentNode;for(m(i,"destroy"),i.renderer.forExport?t.erase(c,i):c[i.index]=void 0,t.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),L(i),e=n.length;e--;)n[e]=n[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=r.length;e--;)r[e]=r[e].destroy();p("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())}),o&&(o.innerHTML="",L(o),s&&h(o)),C(i,function(t,e){delete i[e]})},isReadyToRender:function(){var t=this;return!(!E&&I==I.top&&"complete"!==o.readyState)||(o.attachEvent("onreadystatechange",function(){o.detachEvent("onreadystatechange",t.firstRender),"complete"===o.readyState&&t.firstRender()}),!1)},firstRender:function(){var t=this,e=t.options;t.isReadyToRender()&&(t.getContainer(),m(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),p(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),m(t,"beforeRender"),S&&(t.pointer=new S(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){p([this.callback].concat(this.callbacks),function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),m(this,"load"),m(this,"render"),d(this.index)&&!1!==this.options.chart.reflow&&this.initReflow(),this.onload=null}})}(t),function(t){var e,i=t.each,n=t.extend,r=t.erase,o=t.fireEvent,s=t.format,a=t.isArray,l=t.isNumber,h=t.pick,c=t.removeEvent;t.Point=e=function(){},t.Point.prototype={init:function(t,e,i){return this.series=t,this.color=t.color,this.applyOptions(e,i),t.options.colorByPoint?(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length,i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=h(this.colorIndex,i),t.chart.pointCount++,this},applyOptions:function(t,i){var r=this.series,o=r.options.pointValKey||r.pointValKey;return t=e.prototype.optionsToObject.call(this,t),n(this,t),this.options=this.options?n(this.options,t):t,t.group&&delete this.group,o&&(this.y=this[o]),this.isNull=h(this.isValid&&!this.isValid(),null===this.x||!l(this.y,!0)),this.selected&&(this.state="select"),"name"in this&&void 0===i&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),void 0===this.x&&r&&(this.x=void 0===i?r.autoIncrement(this):i),this},optionsToObject:function(t){var e={},i=this.series,n=i.options.keys,r=n||i.pointArrayMap||["y"],o=r.length,s=0,h=0;if(l(t)||null===t)e[r[0]]=t;else if(a(t))for(!n&&t.length>o&&("string"===(i=typeof t[0])?e.name=t[0]:"number"===i&&(e.x=t[0]),s++);h<o;)n&&void 0===t[s]||(e[r[h]]=t[s]),s++,h++;else"object"==typeof t&&(e=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return e},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var t,e=(i=this.series).zones,i=i.zoneAxis||"y",n=0;for(t=e[n];this[i]>=t.value;)t=e[++n];return t&&t.color&&!this.options.color&&(this.color=t.color),t},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;e.pointCount--,i&&(this.setState(),r(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(c(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],i=6;i--;)t=e[i],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,n=e.tooltipOptions,r=h(n.valueDecimals,""),o=n.valuePrefix||"",a=n.valueSuffix||"";return i(e.pointArrayMap||["y"],function(e){e="{point."+e,(o||a)&&(t=t.replace(e+"}",o+e+"}"+a)),t=t.replace(e+"}",e+":,."+r+"f}")}),s(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var n=this,r=this.series.options;(r.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),o(this,t,e,i)},visible:!0}}(t),function(t){var e=t.addEvent,i=t.animObject,n=t.arrayMax,r=t.arrayMin,o=t.correctFloat,s=t.Date,a=t.defaultOptions,l=t.defaultPlotOptions,h=t.defined,c=t.each,u=t.erase,d=t.extend,p=t.fireEvent,f=t.grep,g=t.isArray,m=t.isNumber,v=t.isString,y=t.merge,x=t.objectEach,b=t.pick,w=t.removeEvent,k=t.splat,T=t.SVGElement,M=t.syncTimeout,C=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:t.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(t,i){var n,r,o=this,s=t.series;o.chart=t,o.options=i=o.setOptions(i),o.linkedSeries=[],o.bindAxes(),d(o,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected}),n=i.events,x(n,function(t,i){e(o,i,t)}),(n&&n.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),c(o.parallelArrays,function(t){o[t+"Data"]=[]}),o.setData(i.data,!1),o.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(r=s[s.length-1]),o._i=b(r&&r._i,-1)+1,t.orderSeries(this.insert(s))},insert:function(t){var e,i=this.options.index;if(m(i)){for(e=t.length;e--;)if(i>=b(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return b(e,t.length-1)},bindAxes:function(){var e,i=this,n=i.options,r=i.chart;c(i.axisTypes||[],function(o){c(r[o],function(t){e=t.options,(n[o]===e.index||void 0!==n[o]&&n[o]===e.id||void 0===n[o]&&0===e.index)&&(i.insert(t.series),i[o]=t,t.isDirty=!0)}),i[o]||i.optionalAxis===o||t.error(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,n=arguments,r=m(e)?function(n){var r="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=r}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};c(i.parallelArrays,r)},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,i=b(i,e.pointStart,0);return this.pointInterval=t=b(this.pointInterval,e.pointInterval,1),n&&(e=new s(i),"day"===n?e=+e[s.hcSetDate](e[s.hcGetDate]()+t):"month"===n?e=+e[s.hcSetMonth](e[s.hcGetMonth]()+t):"year"===n&&(e=+e[s.hcSetFullYear](e[s.hcGetFullYear]()+t)),t=e-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,n=i.plotOptions,r=(e.userOptions||{}).plotOptions||{},o=n[this.type];return this.userOptions=t,e=y(o,n.series,t),this.tooltipOptions=y(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=b(t.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===o.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&h(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),e},getCyclic:function(t,e,i){var n,r=this.chart,o=this.userOptions,s=t+"Index",a=t+"Counter",l=i?i.length:b(r.options.chart[t+"Count"],r[t+"Count"]);e||(n=b(o[s],o["_"+s]),h(n)||(r.series.length||(r[a]=0),o["_"+s]=n=r[a]%l,r[a]+=1),i&&(e=i[n])),void 0!==n&&(this[s]=n),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||l[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,setData:function(e,i,n,r){var o,s=this,a=s.points,l=a&&a.length||0,h=s.options,u=s.chart,d=null,p=s.xAxis,f=h.turboThreshold,y=this.xData,x=this.yData,w=(o=s.pointArrayMap)&&o.length;if(e=e||[],o=e.length,i=b(i,!0),!1!==r&&o&&l===o&&!s.cropped&&!s.hasGroupedData&&s.visible)c(e,function(t,e){a[e].update&&t!==h.data[e]&&a[e].update(t,!1,null,!1)});else{if(s.xIncrement=null,s.colorCounter=0,c(this.parallelArrays,function(t){s[t+"Data"].length=0}),f&&o>f){for(n=0;null===d&&n<o;)d=e[n],n++;if(m(d))for(n=0;n<o;n++)y[n]=this.autoIncrement(),x[n]=e[n];else if(g(d))if(w)for(n=0;n<o;n++)d=e[n],y[n]=d[0],x[n]=d.slice(1,w+1);else for(n=0;n<o;n++)d=e[n],y[n]=d[0],x[n]=d[1];else t.error(12)}else for(n=0;n<o;n++)void 0!==e[n]&&(d={series:s},s.pointClass.prototype.applyOptions.apply(d,[e[n]]),s.updateParallelArrays(d,n));for(v(x[0])&&t.error(14,!0),s.data=[],s.options.data=s.userOptions.data=e,n=l;n--;)a[n]&&a[n].destroy&&a[n].destroy();p&&(p.minRange=p.userMinRange),s.isDirty=u.isDirtyBox=!0,s.isDirtyData=!!a,n=!1}"point"===h.legendType&&(this.processData(),this.generatePoints()),i&&u.redraw(n)},processData:function(e){var i,n=this.xData,r=this.yData,o=n.length;i=0;var s,a,l,h=this.xAxis;l=(f=this.options).cropThreshold;var c,u,d=this.getExtremesFromAll||f.getExtremesFromAll,p=this.isCartesian,f=h&&h.val2lin,g=h&&h.isLog;if(p&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!e)return!1;for(h&&(e=h.getExtremes(),c=e.min,u=e.max),p&&this.sorted&&!d&&(!l||o>l||this.forceCrop)&&(n[o-1]<c||n[0]>u?(n=[],r=[]):(n[0]<c||n[o-1]>u)&&(i=this.cropData(this.xData,this.yData,c,u),n=i.xData,r=i.yData,i=i.start,s=!0)),l=n.length||1;--l;)0<(o=g?f(n[l])-f(n[l-1]):n[l]-n[l-1])&&(void 0===a||o<a)?a=o:0>o&&this.requireSorting&&t.error(15);this.cropped=s,this.cropStart=i,this.processedXData=n,this.processedYData=r,this.closestPointRange=a},cropData:function(t,e,i,n){var r,o=t.length,s=0,a=o,l=b(this.cropShoulder,1);for(r=0;r<o;r++)if(t[r]>=i){s=Math.max(0,r-l);break}for(i=r;i<o;i++)if(t[i]>n){a=i+l;break}return{xData:t.slice(s,a),yData:e.slice(s,a),start:s,end:a}},generatePoints:function(){var t,e,i,n,r=(d=this.options).data,o=this.data,s=this.processedXData,a=this.processedYData,l=this.pointClass,h=s.length,c=this.cropStart||0,u=this.hasGroupedData,d=d.keys,p=[];for(o||u||(o=[],o.length=r.length,o=this.data=o),d&&u&&(this.options.keys=!1),n=0;n<h;n++)e=c+n,u?(i=(new l).init(this,[s[n]].concat(k(a[n]))),i.dataGroup=this.groupMap[n]):(i=o[e])||void 0===r[e]||(o[e]=i=(new l).init(this,r[e],s[n])),i&&(i.index=e,p[n]=i);if(this.options.keys=d,o&&(h!==(t=o.length)||u))for(n=0;n<t;n++)n!==c||u||(n+=h),o[n]&&(o[n].destroyElements(),o[n].plotX=void 0);this.data=o,this.points=p},getExtremes:function(t){var e,i,o,s,a,l=this.yAxis,h=this.processedXData,c=[],u=0,d=(e=this.xAxis.getExtremes()).min,p=e.max;for(e=(t=t||this.stackedYData||this.processedYData||[]).length,a=0;a<e;a++)if(o=h[a],s=t[a],i=(m(s,!0)||g(s))&&(!l.positiveValuesOnly||s.length||0<s),o=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(h[a]||o)>=d&&(h[a]||o)<=p,i&&o)if(i=s.length)for(;i--;)null!==s[i]&&(c[u++]=s[i]);else c[u++]=s;this.dataMin=r(c),this.dataMax=n(c)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,n,r=this.options,s=r.stacking,a=this.xAxis,l=a.categories,c=this.yAxis,u=this.points,d=u.length,p=!!this.modifyValue,f=r.pointPlacement,g="between"===f||m(f),v=r.threshold,y=r.startFromThreshold?v:0,x=Number.MAX_VALUE;for("between"===f&&(f=.5),m(f)&&(f*=b(r.pointRange||a.pointRange)),r=0;r<d;r++){var w=u[r],k=w.x,T=w.y;e=w.low;var M,C=s&&c.stacks[(this.negStacks&&T<(y?0:v)?"-":"")+this.stackKey];c.positiveValuesOnly&&null!==T&&0>=T&&(w.isNull=!0),w.plotX=t=o(Math.min(Math.max(-1e5,a.translate(k,0,0,0,1,f,"flags"===this.type)),1e5)),s&&this.visible&&!w.isNull&&C&&C[k]&&(n=this.getStackIndicator(n,k,this.index),M=C[k],T=M.points[n.key],e=T[0],T=T[1],e===y&&n.key===C[k].base&&(e=b(v,c.min)),c.positiveValuesOnly&&0>=e&&(e=null),w.total=w.stackTotal=M.total,w.percentage=M.total&&w.y/M.total*100,w.stackY=T,M.setOffset(this.pointXOffset||0,this.barW||0)),w.yBottom=h(e)?c.translate(e,0,1,0,1):null,p&&(T=this.modifyValue(T,w)),w.plotY=e="number"==typeof T&&1/0!==T?Math.min(Math.max(-1e5,c.translate(T,0,1,0,1)),1e5):void 0,w.isInside=void 0!==e&&0<=e&&e<=c.len&&0<=t&&t<=a.len,w.clientX=g?o(a.translate(k,0,0,0,1,f)):t,w.negative=w.y<(v||0),w.category=l&&void 0!==l[w.x]?l[w.x]:w.x,w.isNull||(void 0!==i&&(x=Math.min(x,Math.abs(t-i))),i=t),w.zone=this.zones.length&&w.getZone()}this.closestPointRangePx=x},getValidPoints:function(t,e){var i=this.chart;return f(t||this.points||[],function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,i.inverted))&&!t.isNull})},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,r=e.inverted,o=this.clipBox,s=o||e.clipBox,a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,s.height,i.xAxis,i.yAxis].join(),l=e[a],h=e[a+"m"];l||(t&&(s.width=0,e[a+"m"]=h=n.clipRect(-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[a]=l=n.clipRect(s),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1!==i.clip&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=a),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e,n=this.chart,r=i(this.options.animation);t?this.setClip(r):(e=this.sharedClipKey,(t=n[e])&&t.animate({width:n.plotSizeX},r),n[e+"m"]&&n[e+"m"].animate({width:n.plotSizeX+99},r),this.animate=null)},afterAnimate:function(){this.setClip(),p(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i,n,r,o,s,a,l=this.points,h=this.chart,c=this.options.marker,u=this[this.specialGroup]||this.markerGroup,d=b(c.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=2*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;e<l.length;e++)i=l[e],t=i.plotY,n=i.graphic,r=i.marker||{},o=!!i.marker,s=d&&void 0===r.enabled||r.enabled,a=i.isInside,s&&m(t)&&null!==i.y?(t=b(r.symbol,this.symbol),i.hasImage=0===t.indexOf("url"),s=this.markerAttribs(i,i.selected&&"select"),n?n[a?"show":"hide"](!0).animate(s):a&&(0<s.width||i.hasImage)&&(i.graphic=n=h.renderer.symbol(t,s.x,s.y,s.width,s.height,o?r:c).add(u)),n&&n.attr(this.pointAttribs(i,i.selected&&"select")),n&&n.addClass(i.getClassName(),!0)):n&&(i.graphic=n.destroy())},markerAttribs:function(t,e){var i=this.options.marker,n=t.marker||{},r=b(n.radius,i.radius);return e&&(i=i.states[e],e=n.states&&n.states[e],r=b(e&&e.radius,i&&i.radius,r+(i&&i.radiusPlus||0))),t.hasImage&&(r=0),t={x:Math.floor(t.plotX)-r,y:t.plotY-r},r&&(t.width=t.height=2*r),t},pointAttribs:function(t,e){var i=this.options.marker,n=(a=t&&t.options)&&a.marker||{},r=this.color,o=a&&a.color,s=t&&t.color,a=b(n.lineWidth,i.lineWidth);return t=t&&t.zone&&t.zone.color,r=o||t||s||r,t=n.fillColor||i.fillColor||r,r=n.lineColor||i.lineColor||r,e&&(i=i.states[e],e=n.states&&n.states[e]||{},a=b(e.lineWidth,i.lineWidth,a+b(e.lineWidthPlus,i.lineWidthPlus,0)),t=e.fillColor||i.fillColor||t,r=e.lineColor||i.lineColor||r),{stroke:r,"stroke-width":a,fill:t}},destroy:function(){var t,e,i,n,r=this,o=r.chart,s=/AppleWebKit\/533/.test(C.navigator.userAgent),a=r.data||[];for(p(r,"destroy"),w(r),c(r.axisTypes||[],function(t){(n=r[t])&&n.series&&(u(n.series,r),n.isDirty=n.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();r.points=null,clearTimeout(r.animationTimeout),x(r,function(e,i){e instanceof T&&!e.survive&&(t=s&&"group"===i?"hide":"destroy",e[t]())}),o.hoverSeries===r&&(o.hoverSeries=null),u(o.series,r),o.orderSeries(),x(r,function(t,e){delete r[e]})},getGraphPath:function(t,e,i){var n,r,o=this,s=o.options,a=s.step,l=[],u=[];return t=t||o.points,(n=t.reversed)&&t.reverse(),(a={right:1,center:2}[a]||a&&3)&&n&&(a=4-a),!s.connectNulls||e||i||(t=this.getValidPoints(t)),c(t,function(n,c){var d=n.plotX,p=n.plotY,f=t[c-1];(n.leftCliff||f&&f.rightCliff)&&!i&&(r=!0),n.isNull&&!h(e)&&0<c?r=!s.connectNulls:n.isNull&&!e?r=!0:(0===c||r?c=["M",n.plotX,n.plotY]:o.getPointSpline?c=o.getPointSpline(t,n,c):a?(c=1===a?["L",f.plotX,p]:2===a?["L",(f.plotX+d)/2,f.plotY,"L",(f.plotX+d)/2,p]:["L",d,f.plotY]).push("L",d,p):c=["L",d,p],u.push(n.x),a&&u.push(n.x),l.push.apply(l,c),r=!1)}),l.xMap=u,o.graphPath=l},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),n=[["graph","highcharts-graph",e.lineColor||this.color,e.dashStyle]];c(this.zones,function(i,r){n.push(["zone-graph-"+r,"highcharts-graph highcharts-zone-graph-"+r+" "+(i.className||""),i.color||t.color,i.dashStyle||e.dashStyle])}),c(n,function(n,r){var o=n[0],s=t[o];s?(s.endX=i.xMap,s.animate({d:i})):i.length&&(t[o]=t.chart.renderer.path(i).addClass(n[1]).attr({zIndex:1}).add(t.group),s={stroke:n[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},n[3]?s.dashstyle=n[3]:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),s=t[o].attr(s).shadow(2>r&&e.shadow)),s&&(s.startX=i.xMap,s.isArea=i.isArea)})},applyZones:function(){var t,e,i,n,r,o,s,a,l,h=this,u=this.chart,d=u.renderer,p=this.zones,f=this.clips||[],g=this.graph,m=this.area,v=Math.max(u.chartWidth,u.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],x=u.inverted,w=!1;p.length&&(g||m)&&y&&void 0!==y.min&&(r=y.reversed,o=y.horiz,g&&g.hide(),m&&m.hide(),n=y.getExtremes(),c(p,function(c,p){t=r?o?u.plotWidth:0:o?0:y.toPixels(n.min),t=Math.min(Math.max(b(e,t),0),v),e=Math.min(Math.max(Math.round(y.toPixels(b(c.value,n.max),!0)),0),v),w&&(t=e=y.toPixels(n.max)),s=Math.abs(t-e),a=Math.min(t,e),l=Math.max(t,e),y.isXAxis?(i={x:x?l:a,y:0,width:s,height:v},o||(i.x=u.plotHeight-i.x)):(i={x:0,y:x?l:a,width:v,height:s},o&&(i.y=u.plotWidth-i.y)),x&&d.isVML&&(i=y.isXAxis?{x:0,y:r?a:l,height:i.width,width:u.chartWidth}:{x:i.y-u.plotLeft-u.spacingBox.x,y:0,width:i.height,height:u.chartHeight}),f[p]?f[p].animate(i):(f[p]=d.clipRect(i),g&&h["zone-graph-"+p].clip(f[p]),m&&h["zone-area-"+p].clip(f[p])),w=c.value>n.max}),this.clips=f)},invertGroups:function(t){function i(){c(["group","markerGroup"],function(e){r[e]&&(o.renderer.isVML&&r[e].attr({width:r.yAxis.len,height:r.xAxis.len}),r[e].width=r.yAxis.len,r[e].height=r.xAxis.len,r[e].invert(t))})}var n,r=this,o=r.chart;r.xAxis&&(n=e(o,"resize",i),e(r,"destroy",n),i(),r.invertGroups=i)},plotGroup:function(t,e,i,n,r){var o=this[t],s=!o;return s&&(this[t]=o=this.chart.renderer.g().attr({zIndex:n||.1}).add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),!0),o.attr({visibility:i})[s?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,n=e.chart,r=e.options,o=!!e.animate&&n.renderer.isSVG&&i(r.animation).duration,s=e.visible?"inherit":"hidden",a=r.zIndex,l=e.hasRendered,h=n.seriesGroup,c=n.inverted;t=e.plotGroup("group","series",s,a,h),e.markerGroup=e.plotGroup("markerGroup","markers",s,a,h),o&&e.animate(!0),t.inverted=!!e.isCartesian&&c,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),!1===r.clip||e.sharedClipKey||l||t.clip(n.clipRect),o&&e.animate(),l||(e.animationTimeout=M(function(){e.afterAnimate()},o)),e.isDirty=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,r=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:b(n&&n.left,t.plotLeft),translateY:b(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?n.len-t.chartX+n.pos:t.chartY-n.pos},e)},buildKDTree:function(){function t(i,n,r){var o,s;if(s=i&&i.length)return o=e.kdAxisArray[n%r],i.sort(function(t,e){return t[o]-e[o]}),s=Math.floor(s/2),{point:i[s],left:t(i.slice(0,s),n+1,r),right:t(i.slice(s+1),n+1,r)}}this.buildingKdTree=!0;var e=this,i=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree,M(function(){e.kdTree=t(e.getValidPoints(null,!e.directTouch),i,i),e.buildingKdTree=!1},e.options.kdNow?0:1)},searchKDTree:function(t,e){function i(t,e,a,l){var c,u,d=e.point,p=n.kdAxisArray[a%l],f=d;return u=h(t[r])&&h(d[r])?Math.pow(t[r]-d[r],2):null,c=h(t[o])&&h(d[o])?Math.pow(t[o]-d[o],2):null,c=(u||0)+(c||0),d.dist=h(c)?Math.sqrt(c):Number.MAX_VALUE,d.distX=h(u)?Math.sqrt(u):Number.MAX_VALUE,p=t[p]-d[p],c=0>p?"left":"right",u=0>p?"right":"left",e[c]&&(c=i(t,e[c],a+1,l),f=c[s]<f[s]?c:d),e[u]&&Math.sqrt(p*p)<f[s]&&(t=i(t,e[u],a+1,l),f=t[s]<f[s]?t:f),f}var n=this,r=this.kdAxisArray[0],o=this.kdAxisArray[1],s=e?"distX":"dist";if(e=-1<n.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(),this.kdTree)return i(t,this.kdTree,e,e)}})}(t),function(t){var e=t.Axis,i=t.Chart,n=t.correctFloat,r=t.defined,o=t.destroyObjectProperties,s=t.each,a=t.format,l=t.objectEach,h=t.pick,c=t.Series;t.StackItem=function(t,e,i,n,r){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.total=null,this.points={},this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:h(e.y,o?4:i?14:-6),x:h(e.x,o?i?-6:6:0)},this.textAlign=e.textAlign||(o?i?"right":"left":"center")},t.StackItem.prototype={destroy:function(){o(this,this.axis)},render:function(t){var e=this.options,i=(i=e.format)?a(i,this):e.formatter.call(this);this.label?this.label.attr({text:i,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(i,null,null,e.useHTML).css(e.style).attr({align:this.textAlign,rotation:e.rotation,visibility:"hidden"}).add(t)},setOffset:function(t,e){var i=(r=this.axis).chart,n=r.translate(r.usePercentage?100:this.total,0,0,0,1),r=r.translate(0),r=Math.abs(n-r);t=i.xAxis[0].translate(this.x)+t,n=this.getStackBox(i,this,t,n,e,r),(e=this.label)&&(e.align(this.alignOptions,null,n),n=e.alignAttr,e[!1===this.options.crop||i.isInsidePlot(n.x,n.y)?"show":"hide"](!0))},getStackBox:function(t,e,i,n,r,o){var s=e.axis.reversed,a=t.inverted;return t=t.plotHeight,e=e.isNegative&&!s||!e.isNegative&&s,{x:a?e?n:n-o:i,y:a?t-i-r:e?t-n-o:t-n,width:a?o:r,height:a?r:o}}},i.prototype.getStacks=function(){var t=this;s(t.yAxis,function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),s(t.series,function(e){!e.options.stacking||!0!==e.visible&&!1!==t.options.chart.ignoreHiddenSeries||(e.stackKey=e.type+h(e.options.stack,""))})},e.prototype.buildStacks=function(){var t,e=this.series,i=h(this.options.reversedStacks,!0),n=e.length;if(!this.isXAxis){for(this.usePercentage=!1,t=n;t--;)e[i?t:n-t-1].setStackedPoints();if(this.usePercentage)for(t=0;t<n;t++)e[t].setPercentStacks()}},e.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,n=this.stackTotalGroup;n||(this.stackTotalGroup=n=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),n.translate(t.plotLeft,t.plotTop),l(i,function(t){l(t,function(t){t.render(n)})})},e.prototype.resetStacks=function(){var t=this,e=t.stacks;t.isXAxis||l(e,function(e){l(e,function(i,n){i.touched<t.stacksTouched?(i.destroy(),delete e[n]):(i.total=null,i.cum=null)})})},e.prototype.cleanStacks=function(){var t;this.isXAxis||(this.oldStacks&&(t=this.stacks=this.oldStacks),l(t,function(t){l(t,function(t){t.cum=t.total})}))},c.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e,i,o,s,a,l,c,u=this.processedXData,d=this.processedYData,p=[],f=d.length,g=(y=this.options).threshold,m=y.startFromThreshold?g:0,v=y.stack,y=y.stacking,x=this.stackKey,b="-"+x,w=this.negStacks,k=this.yAxis,T=k.stacks,M=k.oldStacks;for(k.stacksTouched+=1,a=0;a<f;a++)l=u[a],c=d[a],e=this.getStackIndicator(e,l,this.index),s=e.key,o=(i=w&&c<(m?0:g))?b:x,T[o]||(T[o]={}),T[o][l]||(M[o]&&M[o][l]?(T[o][l]=M[o][l],T[o][l].total=null):T[o][l]=new t.StackItem(k,k.options.stackLabels,i,l,v)),o=T[o][l],null!==c&&(o.points[s]=o.points[this.index]=[h(o.cum,m)],r(o.cum)||(o.base=s),o.touched=k.stacksTouched,0<e.index&&!1===this.singleStacks&&(o.points[s][0]=o.points[this.index+","+l+",0"][0])),"percent"===y?(i=i?x:b,w&&T[i]&&T[i][l]?(i=T[i][l],o.total=i.total=Math.max(i.total,o.total)+Math.abs(c)||0):o.total=n(o.total+(Math.abs(c)||0))):o.total=n(o.total+(c||0)),o.cum=h(o.cum,m)+(c||0),null!==c&&(o.points[s].push(o.cum),p[a]=o.cum);"percent"===y&&(k.usePercentage=!0),this.stackedYData=p,k.oldStacks={}}},c.prototype.setPercentStacks=function(){var t,e=this,i=e.stackKey,r=e.yAxis.stacks,o=e.processedXData;s([i,"-"+i],function(i){for(var s,a,l=o.length;l--;)s=o[l],t=e.getStackIndicator(t,s,e.index,i),(s=(a=r[i]&&r[i][s])&&a.points[t.key])&&(a=a.total?100/a.total:0,s[0]=n(s[0]*a),s[1]=n(s[1]*a),e.stackedYData[l]=s[1])})},c.prototype.getStackIndicator=function(t,e,i,n){return!r(t)||t.x!==e||n&&t.key!==n?t={x:e,index:0,key:n}:t.index++,t.key=[i,e,t.index].join(),t}}(t),function(t){var e=t.addEvent,i=t.animate,n=t.Axis,r=t.createElement,o=t.css,s=t.defined,a=t.each,l=t.erase,h=t.extend,c=t.fireEvent,u=t.inArray,d=t.isNumber,p=t.isObject,f=t.isArray,g=t.merge,m=t.objectEach,v=t.pick,y=t.Point,x=t.Series,b=t.seriesTypes,w=t.setAnimation,k=t.splat;h(t.Chart.prototype,{addSeries:function(t,e,i){var n,r=this;return t&&(e=v(e,!0),c(r,"addSeries",{options:t},function(){n=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),e&&r.redraw(i)})),n},addAxis:function(t,e,i,r){var o=e?"xAxis":"yAxis",s=this.options;return t=g(t,{index:this[o].length,isX:e}),e=new n(this,t),s[o]=k(s[o]||{}),s[o].push(t),v(i,!0)&&this.redraw(r),e},showLoading:function(t){var n=this,s=n.options,a=n.loadingDiv,l=s.loading,c=function(){a&&o(a,{left:n.plotLeft+"px",top:n.plotTop+"px",width:n.plotWidth+"px",height:n.plotHeight+"px"})};a||(n.loadingDiv=a=r("div",{className:"highcharts-loading highcharts-loading-hidden"},null,n.container),n.loadingSpan=r("span",{className:"highcharts-loading-inner"},null,a),e(n,"redraw",c)),a.className="highcharts-loading",n.loadingSpan.innerHTML=t||s.lang.loading,o(a,h(l.style,{zIndex:10})),o(n.loadingSpan,l.labelStyle),n.loadingShown||(o(a,{opacity:0,display:""}),i(a,{opacity:l.style.opacity||.5},{duration:l.showDuration||0})),n.loadingShown=!0,c()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",i(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){o(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "),update:function(t,e,i){var n,r,o=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},h=t.chart,c=[];h&&(g(!0,o.options.chart,h),"className"in h&&o.setClassName(h.className),("inverted"in h||"polar"in h)&&(o.propFromSeries(),n=!0),"alignTicks"in h&&(n=!0),m(h,function(t,e){-1!==u("chart."+e,o.propsRequireUpdateSeries)&&(r=!0),-1!==u(e,o.propsRequireDirtyBox)&&(o.isDirtyBox=!0)}),"style"in h&&o.renderer.setStyle(h.style)),t.colors&&(this.options.colors=t.colors),t.plotOptions&&g(!0,this.options.plotOptions,t.plotOptions),m(t,function(t,e){o[e]&&"function"==typeof o[e].update?o[e].update(t,!1):"function"==typeof o[l[e]]&&o[l[e]](t),"chart"!==e&&-1!==u(e,o.propsRequireUpdateSeries)&&(r=!0)}),a("xAxis yAxis zAxis series colorAxis pane".split(" "),function(e){t[e]&&(a(k(t[e]),function(t,n){(n=s(t.id)&&o.get(t.id)||o[e][n])&&n.coll===e&&(n.update(t,!1),i&&(n.touched=!0)),!n&&i&&("series"===e?o.addSeries(t,!1).touched=!0:"xAxis"!==e&&"yAxis"!==e||(o.addAxis(t,"xAxis"===e,!1).touched=!0))}),i&&a(o[e],function(t){t.touched?delete t.touched:c.push(t)}))}),a(c,function(t){t.remove(!1)}),n&&a(o.axes,function(t){t.update({},!1)}),r&&a(o.series,function(t){t.update({},!1)}),t.loading&&g(!0,o.options.loading,t.loading),n=h&&h.width,h=h&&h.height,d(n)&&n!==o.chartWidth||d(h)&&h!==o.chartHeight?o.setSize(n,h):v(e,!0)&&o.redraw()},setSubtitle:function(t){this.setTitle(void 0,t)}}),h(y.prototype,{update:function(t,e,i,n){function r(){s.applyOptions(t),null===s.y&&l&&(s.graphic=l.destroy()),p(t,!0)&&(l&&l.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=l.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy())),o=s.index,a.updateParallelArrays(s,o),c.data[o]=p(c.data[o],!0)||p(t,!0)?s.options:t,a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(h.isDirtyBox=!0),"point"===c.legendType&&(h.isDirtyLegend=!0),e&&h.redraw(i)}var o,s=this,a=s.series,l=s.graphic,h=a.chart,c=a.options;e=v(e,!0),!1===n?r():s.firePointEvent("update",{options:t},r)},remove:function(t,e){this.series.removePoint(u(this,this.series.data),t,e)}}),h(x.prototype,{addPoint:function(t,e,i,n){var r,o,s,a,l=this.options,h=this.data,c=this.chart,u=(u=this.xAxis)&&u.hasNames&&u.names,d=l.data,p=this.xData;if(e=v(e,!0),r={series:this},this.pointClass.prototype.applyOptions.apply(r,[t]),a=r.x,s=p.length,this.requireSorting&&a<p[s-1])for(o=!0;s&&p[s-1]>a;)s--;this.updateParallelArrays(r,"splice",s,0,0),this.updateParallelArrays(r,s),u&&r.name&&(u[a]=r.name),d.splice(s,0,t),o&&(this.data.splice(s,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(r,"shift"),d.shift())),this.isDirtyData=this.isDirty=!0,e&&c.redraw(n)},removePoint:function(t,e,i){var n=this,r=n.data,o=r[t],s=n.points,a=n.chart,l=function(){s&&s.length===r.length&&s.splice(t,1),r.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};w(i,a),e=v(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e,i){function n(){r.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),v(t,!0)&&o.redraw(e)}var r=this,o=r.chart;!1!==i?c(r,"remove",null,n):n()},update:function(t,e){var i,n=this,r=n.chart,o=n.userOptions,s=n.oldType||n.type,l=t.type||o.type||r.options.chart.type,c=b[s].prototype,u=["group","markerGroup","dataLabelsGroup","navigatorSeries","baseSeries"],d=n.finishedAnimating&&{animation:!1};if(Object.keys&&"data"===Object.keys(t).toString())return this.setData(t.data,e);(l&&l!==s||void 0!==t.zIndex)&&(u.length=0),a(u,function(t){u[t]=n[t],delete n[t]}),t=g(o,d,{index:n.index,pointStart:n.xData[0]},{data:n.options.data},t),n.remove(!1,null,!1);for(i in c)n[i]=void 0;h(n,b[l||s].prototype),a(u,function(t){n[t]=u[t]}),n.init(r,t),n.oldType=s,r.linkSeries(),v(e,!0)&&r.redraw(!1)}}),h(n.prototype,{update:function(t,e){var i=this.chart;t=i.options[this.coll][this.options.index]=g(this.userOptions,t),this.destroy(!0),this.init(i,h(t,{events:void 0})),i.isDirtyBox=!0,v(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,r=n.length;r--;)n[r]&&n[r].remove(!1);l(e.axes,this),l(e[i],this),f(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],a(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,v(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}(t),function(t){var e=t.color,i=t.each,n=t.map,r=t.pick,o=t.Series;(0,t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(e){var o,s,a=[],l=[],h=this.xAxis,c=this.yAxis,u=c.stacks[this.stackKey],d={},p=this.index,f=c.series,g=f.length,m=r(c.options.reversedStacks,!0)?1:-1;if(e=e||this.points,this.options.stacking){for(s=0;s<e.length;s++)d[e[s].x]=e[s];t.objectEach(u,function(t,e){null!==t.total&&l.push(e)}),l.sort(function(t,e){return t-e}),o=n(f,function(){return this.visible}),i(l,function(t,e){var n,r,f=0;if(d[t]&&!d[t].isNull)a.push(d[t]),i([-1,1],function(i){var a=1===i?"rightNull":"leftNull",h=0,c=u[l[e+i]];if(c)for(s=p;0<=s&&s<g;)(n=c.points[s])||(s===p?d[t][a]=!0:o[s]&&(r=u[t].points[s])&&(h-=r[1]-r[0])),s+=m;d[t][1===i?"rightCliff":"leftCliff"]=h});else{for(s=p;0<=s&&s<g;){if(n=u[t].points[s]){f=n[1];break}s+=m}f=c.translate(f,0,1,0,1),a.push({isNull:!0,plotX:h.translate(t,0,0,0,1),x:t,plotY:f,yBottom:f})}})}return a},getGraphPath:function(t){var e,i,n,s,a=o.prototype.getGraphPath,l=(m=this.options).stacking,h=this.yAxis,c=[],u=[],d=this.index,p=h.stacks[this.stackKey],f=m.threshold,g=h.getThreshold(m.threshold),m=m.connectNulls||"percent"===l,v=function(e,i,r){m=t[e];e=l&&p[m.x].points[d];var o=m[r+"Null"]||0;r=m[r+"Cliff"]||0;var s,a,m=!0;r||o?(s=(o?e[0]:e[1])+r,a=e[0]+r,m=!!o):!l&&t[i]&&t[i].isNull&&(s=a=f),void 0!==s&&(u.push({plotX:n,plotY:null===s?g:h.getThreshold(s),isNull:m,isCliff:!0}),c.push({plotX:n,plotY:null===a?g:h.getThreshold(a),doCurve:!1}))};for(t=t||this.points,l&&(t=this.getStackPoints(t)),e=0;e<t.length;e++)i=t[e].isNull,n=r(t[e].rectPlotX,t[e].plotX),s=r(t[e].yBottom,g),(!i||m)&&(m||v(e,e-1,"left"),i&&!l&&m||(u.push(t[e]),c.push({x:e,plotX:n,plotY:s})),m||v(e,e+1,"right"));return e=a.call(this,u,!0,!0),c.reversed=!0,(i=a.call(this,c,!0,!0)).length&&(i[0]="L"),i=e.concat(i),a=a.call(this,u,!1,m),i.xMap=e.xMap,this.areaPath=i,a},drawGraph:function(){this.areaPath=[],o.prototype.drawGraph.apply(this);var t=this,n=this.areaPath,s=this.options,a=[["area","highcharts-area",this.color,s.fillColor]];i(this.zones,function(e,i){a.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+e.className,e.color||t.color,e.fillColor||s.fillColor])}),i(a,function(i){var o=i[0],a=t[o];a?(a.endX=n.xMap,a.animate({d:n})):(a=t[o]=t.chart.renderer.path(n).addClass(i[1]).attr({fill:r(i[3],e(i[2]).setOpacity(r(s.fillOpacity,.75)).get()),zIndex:0}).add(t.group),a.isArea=!0),a.startX=n.xMap,a.shiftUnit=s.step?2:1})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}(t),function(t){var e=t.pick;(t=t.seriesType)("spline","line",{},{getPointSpline:function(t,i,n){var r=i.plotX,o=i.plotY,s=t[n-1];n=t[n+1];var a,l,h,c;if(s&&!s.isNull&&!1!==s.doCurve&&!i.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!i.isCliff){t=s.plotY,h=n.plotX;var u=0;l=(1.5*o+t)/2.5,c=(1.5*o+(n=n.plotY))/2.5,(h=(1.5*r+h)/2.5)!==(a=(1.5*r+s.plotX)/2.5)&&(u=(c-l)*(h-r)/(h-a)+o-c),c+=u,(l+=u)>t&&l>o?(l=Math.max(t,o),c=2*o-l):l<t&&l<o&&(l=Math.min(t,o),c=2*o-l),c>n&&c>o?(c=Math.max(n,o),l=2*o-c):c<n&&c<o&&(c=Math.min(n,o),l=2*o-c),i.rightContX=h,i.rightContY=c}return i=["C",e(s.rightContX,s.plotX),e(s.rightContY,s.plotY),e(a,r),e(l,o),r,o],s.rightContX=s.rightContY=null,i}})}(t),function(t){var e=t.seriesTypes.area.prototype;(0,t.seriesType)("areaspline","spline",t.defaultPlotOptions.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,drawGraph:e.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}(t),function(t){var e=t.animObject,i=t.color,n=t.each,r=t.extend,o=t.isNumber,s=t.merge,a=t.pick,l=t.Series,h=t.seriesType,c=t.svg;h("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1,shadow:!1},select:{color:"#cccccc",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){l.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&n(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e=this,i=e.options,r=e.xAxis,o=e.yAxis,s=r.reversed,l={},h=0;!1===i.grouping?h=1:n(e.chart.series,function(i){var n,r=i.options,s=i.yAxis;i.type!==e.type||!i.visible&&e.chart.options.chart.ignoreHiddenSeries||o.len!==s.len||o.pos!==s.pos||(r.stacking?(t=i.stackKey,void 0===l[t]&&(l[t]=h++),n=l[t]):!1!==r.grouping&&(n=h++),i.columnIndex=n)});var c=Math.min(Math.abs(r.transA)*(r.ordinalSlope||i.pointRange||r.closestPointRange||r.tickInterval||1),r.len),u=c*i.groupPadding,d=(c-2*u)/(h||1),i=Math.min(i.maxPointWidth||r.len,a(i.pointWidth,d*(1-2*i.pointPadding)));return e.columnMetrics={width:i,offset:(d-i)/2+(u+((e.columnIndex||0)+(s?1:0))*d-c/2)*(s?-1:1)},e.columnMetrics},crispCol:function(t,e,i,n){var r=this.chart,o=-((s=this.borderWidth)%2?.5:0),s=s%2?.5:1;return r.inverted&&r.renderer.isVML&&(s+=1),this.options.crisp&&(i=Math.round(t+i)+o,t=Math.round(t)+o,i-=t),n=Math.round(e+n)+s,o=.5>=Math.abs(e)&&.5<n,e=Math.round(e)+s,n-=e,o&&n&&(--e,n+=1),{x:t,y:e,width:i,height:n}},translate:function(){var t=this,e=t.chart,i=t.options,r=t.dense=2>t.closestPointRange*t.xAxis.transA,r=t.borderWidth=a(i.borderWidth,r?0:1),o=t.yAxis,s=t.translatedThreshold=o.getThreshold(i.threshold),h=a(i.minPointLength,5),c=t.getColumnMetrics(),u=c.width,d=t.barW=Math.max(u,1+2*r),p=t.pointXOffset=c.offset;e.inverted&&(s-=.5),i.pointPadding&&(d=Math.ceil(d)),l.prototype.translate.apply(t),n(t.points,function(i){var n,r=a(i.yBottom,s),l=999+Math.abs(r),l=Math.min(Math.max(-l,i.plotY),o.len+l),c=i.plotX+p,f=d,g=Math.min(l,r),m=Math.max(l,r)-g;Math.abs(m)<h&&h&&(m=h,n=!o.reversed&&!i.negative||o.reversed&&i.negative,g=Math.abs(g-s)>h?r-h:s-(n?h:0)),i.barX=c,i.pointWidth=u,i.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-l,t.xAxis.len-c-f/2,m]:[c+f/2,l+o.pos-e.plotTop,m],i.shapeType="rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[c,s,f,0]:[c,g,f,m])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var n,r=this.options;n=(c=this.pointAttrToOptions||{}).stroke||"borderColor";var o=c["stroke-width"]||"borderWidth",a=t&&t.color||this.color,l=t[n]||r[n]||this.color||a,h=t[o]||r[o]||this[o]||0,c=r.dashStyle;return t&&this.zones.length&&(a=t.getZone(),a=t.options.color||a&&a.color||this.color),e&&(t=s(r.states[e],t.options.states&&t.options.states[e]||{}),e=t.brightness,a=t.color||void 0!==e&&i(a).brighten(t.brightness).get()||a,l=t[n]||l,h=t[o]||h,c=t.dashStyle||c),n={fill:a,stroke:l,"stroke-width":h},c&&(n.dashstyle=c),n},drawPoints:function(){var t,e=this,i=this.chart,r=e.options,a=i.renderer,l=r.animationLimit||250;n(e.points,function(n){var h=n.graphic;o(n.plotY)&&null!==n.y?(t=n.shapeArgs,h?h[i.pointCount<l?"animate":"attr"](s(t)):n.graphic=h=a[n.shapeType](t).add(n.group||e.group),r.borderRadius&&h.attr({r:r.borderRadius}),h.attr(e.pointAttribs(n,n.selected&&"select")).shadow(r.shadow,null,r.stacking&&!r.borderRadius),h.addClass(n.getClassName(),!0)):h&&(n.graphic=h.destroy())})},animate:function(t){var i=this,n=this.yAxis,o=i.options,s=this.chart.inverted,a={};c&&(t?(a.scaleY=.001,t=Math.min(n.pos+n.len,Math.max(n.pos,n.toPixels(o.threshold))),s?a.translateX=t-n.len:a.translateY=t,i.group.attr(a)):(a[s?"translateX":"translateY"]=n.pos,i.group.animate(a,r(e(i.options.animation),{step:function(t,e){i.group.attr({scaleY:Math.max(.001,e.pos)})}})),i.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&n(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),l.prototype.remove.apply(t,arguments)}})}(t),function(t){(t=t.seriesType)("bar","column",null,{inverted:!0})}(t),function(t){var e=t.Series;(t=t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.85em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)}})}(t),function(t){var e=t.pick,i=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t,n,r=this.options,o=this.chart,s=2*(r.slicedOffset||0),a=o.plotWidth-2*s,o=o.plotHeight-2*s,l=r.center,l=[e(l[0],"50%"),e(l[1],"50%"),r.size||"100%",r.innerSize||0],h=Math.min(a,o);for(t=0;4>t;++t)n=l[t],r=2>t||2===t&&/%$/.test(n),l[t]=i(n,[a,o,h,l[2]][t])+(r?s:0);return l[3]>l[2]&&(l[3]=l[2]),l}}}(t),function(t){var e=t.addEvent,i=t.defined,n=t.each,r=t.extend,o=t.inArray,s=t.noop,a=t.pick,l=t.Point,h=t.Series,c=t.seriesType,u=t.setAnimation;c("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1,shadow:!1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,r=e.startAngleRad;t||(n(i,function(t){var i=t.graphic,n=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:r,end:r}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,i=0,n=this.points,r=n.length,o=this.options.ignoreHiddenPoint;for(t=0;t<r;t++)e=n[t],i+=o&&!e.visible?0:e.isNull?0:e.y;for(this.total=i,t=0;t<r;t++)e=n[t],e.percentage=0<i&&(e.visible||!o)?e.y/i*100:0,e.total=i},generatePoints:function(){h.prototype.generatePoints.call(this),this.updateTotals()},translate:function(t){this.generatePoints();var e,i,n,r,o,s,l=0,h=(g=this.options).slicedOffset,c=h+(g.borderWidth||0),u=g.startAngle||0,d=this.startAngleRad=Math.PI/180*(u-90),u=(this.endAngleRad=Math.PI/180*(a(g.endAngle,u+360)-90))-d,p=this.points,f=g.dataLabels.distance,g=g.ignoreHiddenPoint,m=p.length;for(t||(this.center=t=this.getCenter()),this.getX=function(e,i,r){return n=Math.asin(Math.min((e-t[1])/(t[2]/2+r.labelDistance),1)),t[0]+(i?-1:1)*Math.cos(n)*(t[2]/2+r.labelDistance)},o=0;o<m;o++)(s=p[o]).labelDistance=a(s.options.dataLabels&&s.options.dataLabels.distance,f),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,s.labelDistance),e=d+l*u,g&&!s.visible||(l+=s.percentage/100),i=d+l*u,s.shapeType="arc",s.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3},(n=(i+e)/2)>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(n)*h),translateY:Math.round(Math.sin(n)*h)},i=Math.cos(n)*t[2]/2,r=Math.sin(n)*t[2]/2,s.tooltipPos=[t[0]+.7*i,t[1]+.7*r],s.half=n<-Math.PI/2||n>Math.PI/2?1:0,s.angle=n,e=Math.min(c,s.labelDistance/5),s.labelPos=[t[0]+i+Math.cos(n)*s.labelDistance,t[1]+r+Math.sin(n)*s.labelDistance,t[0]+i+Math.cos(n)*e,t[1]+r+Math.sin(n)*e,t[0]+i,t[1]+r,0>s.labelDistance?"center":s.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var t,e,i,o,s=this,a=s.chart.renderer,l=s.options.shadow;l&&!s.shadowGroup&&(s.shadowGroup=a.g("shadow").add(s.group)),n(s.points,function(n){if(!n.isNull){e=n.graphic,o=n.shapeArgs,t=n.getTranslate();var h=n.shadowGroup;l&&!h&&(h=n.shadowGroup=a.g("shadow").add(s.shadowGroup)),h&&h.attr(t),i=s.pointAttribs(n,n.selected&&"select"),e?e.setRadialReference(s.center).attr(i).animate(r(o,t)):(n.graphic=e=a[n.shapeType](o).setRadialReference(s.center).attr(t).add(s.group),n.visible||e.attr({visibility:"hidden"}),e.attr(i).attr({"stroke-linejoin":"round"}).shadow(l,h)),e.addClass(n.getClassName())}})},searchPoint:s,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:t.CenteredSeriesMixin.getCenter,getSymbol:s},{init:function(){l.prototype.init.apply(this,arguments);var t,i=this;return i.name=a(i.name,"Slice"),t=function(t){i.slice("select"===t.type)},e(i,"select",t),e(i,"unselect",t),i},isValid:function(){return t.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var i=this,r=i.series,s=r.chart,l=r.options.ignoreHiddenPoint;e=a(e,l),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,r.options.data[o(i,r.data)]=i.options,n(["graphic","dataLabel","connector","shadowGroup"],function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&s.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),l&&(r.isDirty=!0),e&&s.redraw())},slice:function(t,e,n){var r=this.series;u(n,r.chart),a(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,r.options.data[o(this,r.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}})}(t),function(t){var e=t.addEvent,i=t.arrayMax,n=t.defined,r=t.each,o=t.extend,s=t.format,a=t.map,l=t.merge,h=t.noop,c=t.pick,u=t.relativeLength,d=t.Series,p=t.seriesTypes,f=t.stableSort;t.distribute=function(t,e){function i(t,e){return t.target-e.target}var n,o,s=!0,l=t,h=[];for(o=0,n=t.length;n--;)o+=t[n].size;if(o>e){for(f(t,function(t,e){return(e.rank||0)-(t.rank||0)}),o=n=0;o<=e;)o+=t[n].size,n++;h=t.splice(n-1,t.length)}for(f(t,i),t=a(t,function(t){return{size:t.size,targets:[t.target]}});s;){for(n=t.length;n--;)s=t[n],o=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=Math.min(Math.max(0,o-s.size/2),e-s.size);for(n=t.length,s=!1;n--;)0<n&&t[n-1].pos+t[n-1].size>t[n].pos&&(t[n-1].size+=t[n].size,t[n-1].targets=t[n-1].targets.concat(t[n].targets),t[n-1].pos+t[n-1].size>e&&(t[n-1].pos=e-t[n-1].size),t.splice(n,1),s=!0)}n=0,r(t,function(t){var e=0;r(t.targets,function(){l[n].pos=t.pos+e,e+=l[n].size,n++})}),l.push.apply(l,h),f(l,i)},d.prototype.drawDataLabels=function(){var i,o,a,h,u=this,d=u.options,p=d.dataLabels,f=u.points,g=u.hasRendered||0,m=c(p.defer,!!d.animation),v=u.chart.renderer;(p.enabled||u._hasPointLabels)&&(u.dlProcessOptions&&u.dlProcessOptions(p),h=u.plotGroup("dataLabelsGroup","data-labels",m&&!g?"hidden":"visible",p.zIndex||6),m&&(h.attr({opacity:+g}),g||e(u,"afterAnimate",function(){u.visible&&h.show(!0),h[d.animation?"animate":"attr"]({opacity:1},{duration:200})})),o=p,r(f,function(e){var r,f,g,m,y=e.dataLabel,x=e.connector,b=!y;i=e.dlOptions||e.options&&e.options.dataLabels,(r=c(i&&i.enabled,o.enabled)&&null!==e.y)&&(p=l(o,i),f=e.getLabelConfig(),a=p.format?s(p.format,f):p.formatter.call(f,p),m=p.style,f=p.rotation,m.color=c(p.color,m.color,u.color,"#000000"),"contrast"===m.color&&(e.contrastColor=v.getContrast(e.color||u.color),m.color=p.inside||0>c(e.labelDistance,p.distance)||d.stacking?e.contrastColor:"#000000"),d.cursor&&(m.cursor=d.cursor),g={fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.borderWidth,r:p.borderRadius||0,rotation:f,padding:p.padding,zIndex:1},t.objectEach(g,function(t,e){void 0===t&&delete g[e]})),!y||r&&n(a)?r&&n(a)&&(y?g.text=a:(y=e.dataLabel=v[f?"text":"label"](a,0,-9999,p.shape,null,null,p.useHTML,null,"data-label")).addClass("highcharts-data-label-color-"+e.colorIndex+" "+(p.className||"")+(p.useHTML?"highcharts-tracker":"")),y.attr(g),y.css(m).shadow(p.shadow),y.added||y.add(h),u.alignDataLabel(e,y,p,null,b)):(e.dataLabel=y=y.destroy(),x&&(e.connector=x.destroy()))}))},d.prototype.alignDataLabel=function(t,e,i,n,r){var s,a=this.chart,l=a.inverted,h=c(t.plotX,-9999),u=c(t.plotY,-9999),d=e.getBBox(),p=i.rotation,f=i.align,g=this.visible&&(t.series.forceDL||a.isInsidePlot(h,Math.round(u),l)||n&&a.isInsidePlot(h,l?n.x+1:n.y+n.height-1,l)),m="justify"===c(i.overflow,"justify");g&&(s=i.style.fontSize,s=a.renderer.fontMetrics(s,e).b,n=o({x:l?this.yAxis.len-u:h,y:Math.round(l?this.xAxis.len-h:u),width:0,height:0},n),o(i,{width:d.width,height:d.height}),p?(m=!1,h=a.renderer.rotCorr(s,p),h={x:n.x+i.x+n.width/2+h.x,y:n.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},e[r?"attr":"animate"](h).attr({align:f}),u=(p+720)%360,u=180<u&&360>u,"left"===f?h.y-=u?d.height:0:"center"===f?(h.x-=d.width/2,h.y-=d.height/2):"right"===f&&(h.x-=d.width,h.y-=u?0:d.height)):(e.align(i,null,n),h=e.alignAttr),m?t.isLabelJustified=this.justifyDataLabel(e,i,h,d,n,r):c(i.crop,!0)&&(g=a.isInsidePlot(h.x,h.y)&&a.isInsidePlot(h.x+d.width,h.y+d.height)),i.shape&&!p)&&e[r?"attr":"animate"]({anchorX:l?a.plotWidth-t.plotY:t.plotX,anchorY:l?a.plotHeight-t.plotX:t.plotY}),g||(e.attr({y:-9999}),e.placed=!1)},d.prototype.justifyDataLabel=function(t,e,i,n,r,o){var s,a,l=this.chart,h=e.align,c=e.verticalAlign,u=t.box?0:t.padding||0;return 0>(s=i.x+u)&&("right"===h?e.align="left":e.x=-s,a=!0),(s=i.x+n.width-u)>l.plotWidth&&("left"===h?e.align="right":e.x=l.plotWidth-s,a=!0),0>(s=i.y+u)&&("bottom"===c?e.verticalAlign="top":e.y=-s,a=!0),(s=i.y+n.height-u)>l.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=l.plotHeight-s,a=!0),a&&(t.placed=!o,t.align(e,null,r)),a},p.pie&&(p.pie.prototype.drawDataLabels=function(){var e,o,s,a,l,h,u,p,f,g,m=this,v=m.data,y=m.chart,x=m.options.dataLabels,b=c(x.connectorPadding,10),w=c(x.connectorWidth,1),k=y.plotWidth,T=y.plotHeight,M=m.center,C=M[2]/2,S=M[1],D=[[],[]],A=[0,0,0,0];m.visible&&(x.enabled||m._hasPointLabels)&&(r(v,function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),d.prototype.drawDataLabels.apply(m),r(v,function(t){t.dataLabel&&t.visible&&(D[t.half].push(t),t.dataLabel._pos=null)}),r(D,function(i,o){var d,v,w,D=i.length,L=[];if(D)for(m.sortByAngle(i,o-.5),0<m.maxLabelDistance&&(d=Math.max(0,S-C-m.maxLabelDistance),v=Math.min(S+C+m.maxLabelDistance,y.plotHeight),r(i,function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,S-C-t.labelDistance),t.bottom=Math.min(S+C+t.labelDistance,y.plotHeight),w=t.dataLabel.getBBox().height||21,t.positionsIndex=L.push({target:t.labelPos[1]-t.top+w/2,size:w,rank:t.y})-1)}),t.distribute(L,v+w-d)),g=0;g<D;g++)e=i[g],v=e.positionsIndex,l=e.labelPos,s=e.dataLabel,f=!1===e.visible?"hidden":"inherit",d=l[1],L&&n(L[v])?void 0===L[v].pos?f="hidden":(h=L[v].size,p=e.top+L[v].pos):p=d,delete e.positionIndex,u=x.justify?M[0]+(o?-1:1)*(C+e.labelDistance):m.getX(p<e.top+2||p>e.bottom-2?d:p,o,e),s._attr={visibility:f,align:l[6]},s._pos={x:u+x.x+({left:b,right:-b}[l[6]]||0),y:p+x.y-10},l.x=u,l.y=p,c(x.crop,!0)&&(a=s.getBBox().width,d=null,u-a<b?(d=Math.round(a-u+b),A[3]=Math.max(d,A[3])):u+a>k-b&&(d=Math.round(u+a-k+b),A[1]=Math.max(d,A[1])),0>p-h/2?A[0]=Math.max(Math.round(h/2-p),A[0]):p+h/2>T&&(A[2]=Math.max(Math.round(p+h/2-T),A[2])),s.sideOverflow=d)}),0===i(A)||this.verifyDataLabelOverflow(A))&&(this.placeDataLabels(),w&&r(this.points,function(t){var e;o=t.connector,(s=t.dataLabel)&&s._pos&&t.visible&&0<t.labelDistance?(f=s._attr.visibility,(e=!o)&&(t.connector=o=y.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex).add(m.dataLabelsGroup),o.attr({"stroke-width":w,stroke:x.connectorColor||t.color||"#666666"})),o[e?"attr":"animate"]({d:m.connectorPath(t.labelPos)}),o.attr("visibility",f)):o&&(t.connector=o.destroy())}))},p.pie.prototype.connectorPath=function(t){var e=t.x,i=t.y;return c(this.options.dataLabels.softConnector,!0)?["M",e+("left"===t[6]?5:-5),i,"C",e,i,2*t[2]-t[4],2*t[3]-t[5],t[2],t[3],"L",t[4],t[5]]:["M",e+("left"===t[6]?5:-5),i,"L",t[2],t[3],"L",t[4],t[5]]},p.pie.prototype.placeDataLabels=function(){r(this.points,function(t){var e=t.dataLabel;e&&t.visible&&((t=e._pos)?(e.sideOverflow&&(e._attr.width=e.getBBox().width-e.sideOverflow,e.css({width:e._attr.width+"px",textOverflow:"ellipsis"}),e.shortened=!0),e.attr(e._attr),e[e.moved?"animate":"attr"](t),e.moved=!0):e&&e.attr({y:-9999}))},this)},p.pie.prototype.alignDataLabel=h,p.pie.prototype.verifyDataLabelOverflow=function(t){var e,i=this.center,n=this.options,r=n.center,o=n.minSize||80,s=null!==n.size;return s||(null!==r[0]?e=Math.max(i[2]-Math.max(t[1],t[3]),o):(e=Math.max(i[2]-t[1]-t[3],o),i[0]+=(t[3]-t[1])/2),null!==r[1]?e=Math.max(Math.min(e,i[2]-Math.max(t[0],t[2])),o):(e=Math.max(Math.min(e,i[2]-t[0]-t[2]),o),i[1]+=(t[0]-t[2])/2),e<i[2]?(i[2]=e,i[3]=Math.min(u(n.innerSize||0,e),e),this.translate(i),this.drawDataLabels&&this.drawDataLabels()):s=!0),s}),p.column&&(p.column.prototype.alignDataLabel=function(t,e,i,n,r){var o=this.chart.inverted,s=t.series,a=t.dlBox||t.shapeArgs,h=c(t.below,t.plotY>c(this.translatedThreshold,s.yAxis.len)),u=c(i.inside,!!this.options.stacking);a&&(0>(n=l(a)).y&&(n.height+=n.y,n.y=0),0<(a=n.y+n.height-s.yAxis.len)&&(n.height-=a),o&&(n={x:s.yAxis.len-n.y-n.height,y:s.xAxis.len-n.x-n.width,width:n.height,height:n.width}),u||(o?(n.x+=h?0:n.width,n.width=0):(n.y+=h?n.height:0,n.height=0))),i.align=c(i.align,!o||u?"center":h?"right":"left"),i.verticalAlign=c(i.verticalAlign,o||u?"middle":h?"top":"bottom"),d.prototype.alignDataLabel.call(this,t,e,i,n,r),t.isLabelJustified&&t.contrastColor&&t.dataLabel.css({color:t.contrastColor})})}(t),function(t){var e=t.Chart,i=t.each,n=t.objectEach,r=t.pick,o=t.addEvent;e.prototype.callbacks.push(function(t){function e(){var e=[];i(t.yAxis||[],function(t){t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&n(t.stacks,function(t){n(t,function(t){e.push(t.label)})})}),i(t.series||[],function(t){var n=t.options.dataLabels,o=t.dataLabelCollections||["dataLabel"];(n.enabled||t._hasPointLabels)&&!n.allowOverlap&&t.visible&&i(o,function(n){i(t.points,function(t){t[n]&&(t[n].labelrank=r(t.labelrank,t.shapeArgs&&t.shapeArgs.height),e.push(t[n]))})})}),t.hideOverlappingLabels(e)}e(),o(t,"redraw",e)}),e.prototype.hideOverlappingLabels=function(t){var e,n,r,o,s,a,l,h,c,u=t.length;for(n=0;n<u;n++)(e=t[n])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.width||(r=e.getBBox(),e.width=r.width,e.height=r.height));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),n=0;n<u;n++)for(r=t[n],e=n+1;e<u;++e)o=t[e],r&&o&&r!==o&&r.placed&&o.placed&&0!==r.newOpacity&&0!==o.newOpacity&&(s=r.alignAttr,a=o.alignAttr,l=r.parentGroup,h=o.parentGroup,c=2*(r.box?0:r.padding||0),s=function(t,e,i,n,r,o,s,a){return!(r>t+i||r+s<t||o>e+n||o+a<e)}(s.x+l.translateX,s.y+l.translateY,r.width-c,r.height-c,a.x+h.translateX,a.y+h.translateY,o.width-c,o.height-c))&&((r.labelrank<o.labelrank?r:o).newOpacity=0);i(t,function(t){var e,i;t&&(i=t.newOpacity,t.oldOpacity!==i&&t.placed&&(i?t.show(!0):e=function(){t.hide()},t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e)),t.isOld=!0)})}}(t),function(t){var e,i=t.addEvent,n=t.Chart,r=t.createElement,o=t.css,s=t.defaultOptions,a=t.defaultPlotOptions,l=t.each,h=t.extend,c=t.fireEvent,u=t.hasTouch,d=t.inArray,p=t.isObject,f=t.Legend,g=t.merge,m=t.pick,v=t.Point,y=t.Series,x=t.seriesTypes,b=t.svg;e=t.TrackerMixin={drawTrackerPoint:function(){var t=this,e=t.chart.pointer,i=function(t){var i=e.getPointFromEvent(t);void 0!==i&&(e.isDirectTouch=!0,i.onMouseOver(t))};l(t.points,function(t){t.graphic&&(t.graphic.element.point=t),t.dataLabel&&(t.dataLabel.div?t.dataLabel.div.point=t:t.dataLabel.element.point=t)}),t._hasTracking||(l(t.trackerGroups,function(n){t[n]&&(t[n].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(t){e.onTrackerMouseOut(t)}),u&&t[n].on("touchstart",i),t.options.cursor&&t[n].css(o).css({cursor:t.options.cursor}))}),t._hasTracking=!0)},drawTrackerGraph:function(){var t,e=this,i=e.options,n=i.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),o=r.length,s=e.chart,a=s.pointer,h=s.renderer,c=s.options.tooltip.snap,d=e.tracker,p=function(){s.hoverSeries!==e&&e.onMouseOver()},f="rgba(192,192,192,"+(b?1e-4:.002)+")";if(o&&!n)for(t=o+1;t--;)"M"===r[t]&&r.splice(t+1,0,r[t+1]-c,r[t+2],"L"),(t&&"M"===r[t]||t===o)&&r.splice(t,0,"L",r[t-2]+c,r[t-1]);d?d.attr({d:r}):e.graph&&(e.tracker=h.path(r).attr({"stroke-linejoin":"round",visibility:e.visible?"visible":"hidden",stroke:f,fill:n?f:"none","stroke-width":e.graph.strokeWidth()+(n?0:2*c),zIndex:2}).add(e.group),l([e.tracker,e.markerGroup],function(t){t.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(t){a.onTrackerMouseOut(t)}),i.cursor&&t.css({cursor:i.cursor}),u&&t.on("touchstart",p)}))}},x.column&&(x.column.prototype.drawTracker=e.drawTrackerPoint),x.pie&&(x.pie.prototype.drawTracker=e.drawTrackerPoint),x.scatter&&(x.scatter.prototype.drawTracker=e.drawTrackerPoint),h(f.prototype,{setItemEvents:function(t,e,i){var n=this,r=n.chart.renderer.boxWrapper,o="highcharts-legend-"+(t.series?"point":"series")+"-active";(i?e:t.legendGroup).on("mouseover",function(){t.setState("hover"),r.addClass(o),e.css(n.options.itemHoverStyle)}).on("mouseout",function(){e.css(g(t.visible?n.itemStyle:n.itemHiddenStyle)),r.removeClass(o),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible()};e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):c(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=r("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),i(t.checkbox,"click",function(e){c(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),s.legend.itemStyle.cursor="pointer",h(n.prototype,{showResetZoom:function(){var t=this,e=s.lang,i=t.options.chart.resetZoomButton,n=i.theme,r=n.states,o="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},n,r&&r.hover).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)},zoomOut:function(){var t=this;c(t,"selection",{resetSelection:!0},function(){t.zoom()})},zoom:function(t){var e,i,n=this.pointer,r=!1;!t||t.resetSelection?(l(this.axes,function(t){e=t.zoom()}),n.initiated=!1):l(t.xAxis.concat(t.yAxis),function(t){var i=t.axis;n[i.isXAxis?"zoomX":"zoomY"]&&(e=i.zoom(t.min,t.max),i.displayBtn&&(r=!0))}),i=this.resetZoomButton,r&&!i?this.showResetZoom():!r&&p(i)&&(this.resetZoomButton=i.destroy()),e&&this.redraw(m(this.options.chart.animation,t&&t.animation,100>this.pointCount))},pan:function(t,e){var i,n=this,r=n.hoverPoints;r&&l(r,function(t){t.setState()}),l("xy"===e?[1,0]:[1],function(e){var r,o=(e=n[e?"xAxis":"yAxis"][0]).horiz,s=t[o?"chartX":"chartY"],a=n[o=o?"mouseDownX":"mouseDownY"],l=(e.pointRange||0)/2,h=e.getExtremes(),c=e.toValue(a-s,!0)+l,a=(u=(l=e.toValue(a+e.len-s,!0)-l)<c)?l:c,c=u?c:l,l=Math.min(h.dataMin,e.toValue(e.toPixels(h.min)-e.minPixelPadding)),u=Math.max(h.dataMax,e.toValue(e.toPixels(h.max)+e.minPixelPadding));0<(r=l-a)&&(c+=r,a=l),0<(r=c-u)&&(c=u,a-=r),e.series.length&&a!==h.min&&c!==h.max&&(e.setExtremes(a,c,!1,!1,{trigger:"pan"}),i=!0),n[o]=s}),i&&n.redraw(!1),o(n.container,{cursor:"move"})}}),h(v.prototype,{select:function(t,e){var i=this,n=i.series,r=n.chart;t=m(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[d(i,n.data)]=i.options,i.setState(t&&"select"),e||l(r.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=t.options.selected=!1,n.options.data[d(t,n.data)]=t.options,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),l(t.hoverPoints||[],function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var e=this,n=g(e.series.options.point,e.options).events;e.events=n,t.objectEach(n,function(t,n){i(e,n,t)}),this.hasImportedEvents=!0}},setState:function(t,e){var i,n=Math.floor(this.plotX),r=this.plotY,o=this.series,s=o.options.states[t]||{},l=a[o.type].marker&&o.options.marker,c=l&&!1===l.enabled,u=l&&l.states&&l.states[t]||{},d=!1===u.enabled,p=o.stateMarkerGraphic,f=this.marker||{},g=o.chart,v=o.halo,y=l&&o.markerAttribs;(t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===s.enabled||t&&(d||c&&!1===u.enabled)||t&&f.states&&f.states[t]&&!1===f.states[t].enabled||(y&&(i=o.markerAttribs(this,t)),this.graphic?(this.state&&this.graphic.removeClass("highcharts-point-"+this.state),t&&this.graphic.addClass("highcharts-point-"+t),this.graphic.animate(o.pointAttribs(this,t),m(g.options.chart.animation,s.animation)),i&&this.graphic.animate(i,m(g.options.chart.animation,u.animation,l.animation)),p&&p.hide()):(t&&u&&(l=f.symbol||o.symbol,p&&p.currentSymbol!==l&&(p=p.destroy()),p?p[e?"animate":"attr"]({x:i.x,y:i.y}):l&&(o.stateMarkerGraphic=p=g.renderer.symbol(l,i.x,i.y,i.width,i.height).add(o.markerGroup),p.currentSymbol=l),p&&p.attr(o.pointAttribs(this,t))),p&&(p[t&&g.isInsidePlot(n,r,g.inverted)?"show":"hide"](),p.element.point=this)),(n=s.halo)&&n.size?(v||(o.halo=v=g.renderer.path().add((this.graphic||p).parentGroup)),v[e?"animate":"attr"]({d:this.haloPath(n.size)}),v.attr({class:"highcharts-halo highcharts-color-"+m(this.colorIndex,o.colorIndex)}),v.point=this,v.attr(h({fill:this.color||o.color,"fill-opacity":n.opacity,zIndex:-1},n.attributes))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)}),this.state=t)},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),h(y.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&c(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&c(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),this.setState()},setState:function(t){var e=this,i=e.options,n=e.graph,r=i.states,o=i.lineWidth,i=0;if(t=t||"",e.state!==t&&(l([e.group,e.markerGroup,e.dataLabelsGroup],function(i){i&&(e.state&&i.removeClass("highcharts-series-"+e.state),t&&i.addClass("highcharts-series-"+t))}),e.state=t,!r[t]||!1!==r[t].enabled)&&(t&&(o=r[t].lineWidth||o+(r[t].lineWidthPlus||0)),n&&!n.dashstyle))for(o={"stroke-width":o},n.animate(o,m(e.chart.options.chart.animation,r[t]&&r[t].animation));e["zone-graph-"+i];)e["zone-graph-"+i].attr(o),i+=1},setVisible:function(t,e){var i,n=this,r=n.chart,o=n.legendItem,s=r.options.chart.ignoreHiddenSeries,a=n.visible;i=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!a:t)?"show":"hide",l(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(t){n[t]&&n[t][i]()}),r.hoverSeries!==n&&(r.hoverPoint&&r.hoverPoint.series)!==n||n.onMouseOut(),o&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&l(r.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),l(n.linkedSeries,function(e){e.setVisible(t,!1)}),s&&(r.isDirtyBox=!0),!1!==e&&r.redraw(),c(n,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),c(this,t?"select":"unselect")},drawTracker:e.drawTrackerGraph})}(t),function(t){var e=t.Chart,i=t.each,n=t.inArray,r=t.isArray,o=t.isObject,s=t.pick,a=t.splat;e.prototype.setResponsive=function(e){var n=this.options.responsive,r=[],o=this.currentResponsive;n&&n.rules&&i(n.rules,function(i){void 0===i._id&&(i._id=t.uniqueKey()),this.matchResponsiveRule(i,r,e)},this);var s=t.merge.apply(0,t.map(r,function(e){return t.find(n.rules,function(t){return t._id===e}).chartOptions}));(r=r.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e),r?(this.currentResponsive={ruleIds:r,mergedOptions:s,undoOptions:this.currentOptions(s)},this.update(s,e)):this.currentResponsive=void 0)},e.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=s(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=s(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=s(i.minWidth,0)&&this.chartHeight>=s(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(e){function i(e,s,l,h){var c;t.objectEach(e,function(t,u){if(!h&&-1<n(u,["series","xAxis","yAxis"]))for(e[u]=a(e[u]),l[u]=[],c=0;c<e[u].length;c++)s[u][c]&&(l[u][c]={},i(t[c],s[u][c],l[u][c],h+1));else o(t)?(l[u]=r(t)?[]:{},i(t,s[u]||{},l[u],h+1)):l[u]=s[u]||null})}var s={};return i(e,this.options,s,0),s}}(t),t}),function(){function t(t){function e(e,i,n,r,o,s){for(;o>=0&&s>o;o+=t){var a=r?r[o]:o;n=i(n,e[a],a,e)}return n}return function(i,n,r,o){n=x(n,o,4);var s=!S(i)&&y.keys(i),a=(s||i).length,l=t>0?0:a-1;return arguments.length<3&&(r=i[s?s[l]:l],l+=t),e(i,n,r,s,l,a)}}function e(t){return function(e,i,n){i=b(i,n);for(var r=C(e),o=t>0?0:r-1;o>=0&&r>o;o+=t)if(i(e[o],o,e))return o;return-1}}function i(t,e,i){return function(n,r,o){var s=0,a=C(n);if("number"==typeof o)t>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(i&&o&&a)return o=i(n,r),n[o]===r?o:-1;if(r!==r)return(o=e(c.call(n,s,a),y.isNaN))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&a>o;o+=t)if(n[o]===r)return o;return-1}}function n(t,e){var i=P.length,n=t.constructor,r=y.isFunction(n)&&n.prototype||a,o="constructor";for(y.has(t,o)&&!y.contains(e,o)&&e.push(o);i--;)(o=P[i])in t&&t[o]!==r[o]&&!y.contains(e,o)&&e.push(o)}var r=this,o=r._,s=Array.prototype,a=Object.prototype,l=Function.prototype,h=s.push,c=s.slice,u=a.toString,d=a.hasOwnProperty,p=Array.isArray,f=Object.keys,g=l.bind,m=Object.create,v=function(){},y=function(t){return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=y),exports._=y):r._=y,y.VERSION="1.8.3";var x=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)};case 4:return function(i,n,r,o){return t.call(e,i,n,r,o)}}return function(){return t.apply(e,arguments)}},b=function(t,e,i){return null==t?y.identity:y.isFunction(t)?x(t,e,i):y.isObject(t)?y.matcher(t):y.property(t)};y.iteratee=function(t,e){return b(t,e,1/0)};var w=function(t,e){return function(i){var n=arguments.length;if(2>n||null==i)return i;for(var r=1;n>r;r++)for(var o=arguments[r],s=t(o),a=s.length,l=0;a>l;l++){var h=s[l];e&&void 0!==i[h]||(i[h]=o[h])}return i}},k=function(t){if(!y.isObject(t))return{};if(m)return m(t);v.prototype=t;var e=new v;return v.prototype=null,e},T=function(t){return function(e){return null==e?void 0:e[t]}},M=Math.pow(2,53)-1,C=T("length"),S=function(t){var e=C(t);return"number"==typeof e&&e>=0&&M>=e};y.each=y.forEach=function(t,e,i){e=x(e,i);var n,r;if(S(t))for(n=0,r=t.length;r>n;n++)e(t[n],n,t);else{var o=y.keys(t);for(n=0,r=o.length;r>n;n++)e(t[o[n]],o[n],t)}return t},y.map=y.collect=function(t,e,i){e=b(e,i);for(var n=!S(t)&&y.keys(t),r=(n||t).length,o=Array(r),s=0;r>s;s++){var a=n?n[s]:s;o[s]=e(t[a],a,t)}return o},y.reduce=y.foldl=y.inject=t(1),y.reduceRight=y.foldr=t(-1),y.find=y.detect=function(t,e,i){var n;return void 0!==(n=S(t)?y.findIndex(t,e,i):y.findKey(t,e,i))&&-1!==n?t[n]:void 0},y.filter=y.select=function(t,e,i){var n=[];return e=b(e,i),y.each(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n},y.reject=function(t,e,i){return y.filter(t,y.negate(b(e)),i)},y.every=y.all=function(t,e,i){e=b(e,i);for(var n=!S(t)&&y.keys(t),r=(n||t).length,o=0;r>o;o++){var s=n?n[o]:o;if(!e(t[s],s,t))return!1}return!0},y.some=y.any=function(t,e,i){e=b(e,i);for(var n=!S(t)&&y.keys(t),r=(n||t).length,o=0;r>o;o++){var s=n?n[o]:o;if(e(t[s],s,t))return!0}return!1},y.contains=y.includes=y.include=function(t,e,i,n){return S(t)||(t=y.values(t)),("number"!=typeof i||n)&&(i=0),y.indexOf(t,e,i)>=0},y.invoke=function(t,e){var i=c.call(arguments,2),n=y.isFunction(e);return y.map(t,function(t){var r=n?e:t[e];return null==r?r:r.apply(t,i)})},y.pluck=function(t,e){return y.map(t,y.property(e))},y.where=function(t,e){return y.filter(t,y.matcher(e))},y.findWhere=function(t,e){return y.find(t,y.matcher(e))},y.max=function(t,e,i){var n,r,o=-1/0,s=-1/0;if(null==e&&null!=t)for(var a=0,l=(t=S(t)?t:y.values(t)).length;l>a;a++)(n=t[a])>o&&(o=n);else e=b(e,i),y.each(t,function(t,i,n){((r=e(t,i,n))>s||r===-1/0&&o===-1/0)&&(o=t,s=r)});return o},y.min=function(t,e,i){var n,r,o=1/0,s=1/0;if(null==e&&null!=t)for(var a=0,l=(t=S(t)?t:y.values(t)).length;l>a;a++)n=t[a],o>n&&(o=n);else e=b(e,i),y.each(t,function(t,i,n){r=e(t,i,n),(s>r||1/0===r&&1/0===o)&&(o=t,s=r)});return o},y.shuffle=function(t){for(var e,i=S(t)?t:y.values(t),n=i.length,r=Array(n),o=0;n>o;o++)(e=y.random(0,o))!==o&&(r[o]=r[e]),r[e]=i[o];return r},y.sample=function(t,e,i){return null==e||i?(S(t)||(t=y.values(t)),t[y.random(t.length-1)]):y.shuffle(t).slice(0,Math.max(0,e))},y.sortBy=function(t,e,i){return e=b(e,i),y.pluck(y.map(t,function(t,i,n){return{value:t,index:i,criteria:e(t,i,n)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(n>i||void 0===n)return-1}return t.index-e.index}),"value")};var D=function(t){return function(e,i,n){var r={};return i=b(i,n),y.each(e,function(n,o){var s=i(n,o,e);t(r,n,s)}),r}};y.groupBy=D(function(t,e,i){y.has(t,i)?t[i].push(e):t[i]=[e]}),y.indexBy=D(function(t,e,i){t[i]=e}),y.countBy=D(function(t,e,i){y.has(t,i)?t[i]++:t[i]=1}),y.toArray=function(t){return t?y.isArray(t)?c.call(t):S(t)?y.map(t,y.identity):y.values(t):[]},y.size=function(t){return null==t?0:S(t)?t.length:y.keys(t).length},y.partition=function(t,e,i){e=b(e,i);var n=[],r=[];return y.each(t,function(t,i,o){(e(t,i,o)?n:r).push(t)}),[n,r]},y.first=y.head=y.take=function(t,e,i){return null==t?void 0:null==e||i?t[0]:y.initial(t,t.length-e)},y.initial=function(t,e,i){return c.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},y.last=function(t,e,i){return null==t?void 0:null==e||i?t[t.length-1]:y.rest(t,Math.max(0,t.length-e))},y.rest=y.tail=y.drop=function(t,e,i){return c.call(t,null==e||i?1:e)},y.compact=function(t){return y.filter(t,y.identity)};var A=function(t,e,i,n){for(var r=[],o=0,s=n||0,a=C(t);a>s;s++){var l=t[s];if(S(l)&&(y.isArray(l)||y.isArguments(l))){e||(l=A(l,e,i));var h=0,c=l.length;for(r.length+=c;c>h;)r[o++]=l[h++]}else i||(r[o++]=l)}return r};y.flatten=function(t,e){return A(t,e,!1)},y.without=function(t){return y.difference(t,c.call(arguments,1))},y.uniq=y.unique=function(t,e,i,n){y.isBoolean(e)||(n=i,i=e,e=!1),null!=i&&(i=b(i,n));for(var r=[],o=[],s=0,a=C(t);a>s;s++){var l=t[s],h=i?i(l,s,t):l;e?(s&&o===h||r.push(l),o=h):i?y.contains(o,h)||(o.push(h),r.push(l)):y.contains(r,l)||r.push(l)}return r},y.union=function(){return y.uniq(A(arguments,!0,!0))},y.intersection=function(t){for(var e=[],i=arguments.length,n=0,r=C(t);r>n;n++){var o=t[n];if(!y.contains(e,o)){for(var s=1;i>s&&y.contains(arguments[s],o);s++);s===i&&e.push(o)}}return e},y.difference=function(t){var e=A(arguments,!0,!0,1);return y.filter(t,function(t){return!y.contains(e,t)})},y.zip=function(){return y.unzip(arguments)},y.unzip=function(t){for(var e=t&&y.max(t,C).length||0,i=Array(e),n=0;e>n;n++)i[n]=y.pluck(t,n);return i},y.object=function(t,e){for(var i={},n=0,r=C(t);r>n;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},y.findIndex=e(1),y.findLastIndex=e(-1),y.sortedIndex=function(t,e,i,n){for(var r=(i=b(i,n,1))(e),o=0,s=C(t);s>o;){var a=Math.floor((o+s)/2);i(t[a])<r?o=a+1:s=a}return o},y.indexOf=i(1,y.findIndex,y.sortedIndex),y.lastIndexOf=i(-1,y.findLastIndex),y.range=function(t,e,i){null==e&&(e=t||0,t=0),i=i||1;for(var n=Math.max(Math.ceil((e-t)/i),0),r=Array(n),o=0;n>o;o++,t+=i)r[o]=t;return r};var L=function(t,e,i,n,r){if(!(n instanceof e))return t.apply(i,r);var o=k(t.prototype),s=t.apply(o,r);return y.isObject(s)?s:o};y.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,c.call(arguments,1));if(!y.isFunction(t))throw new TypeError("Bind must be called on a function");var i=c.call(arguments,2),n=function(){return L(t,n,e,this,i.concat(c.call(arguments)))};return n},y.partial=function(t){var e=c.call(arguments,1),i=function(){for(var n=0,r=e.length,o=Array(r),s=0;r>s;s++)o[s]=e[s]===y?arguments[n++]:e[s];for(;n<arguments.length;)o.push(arguments[n++]);return L(t,i,this,this,o)};return i},y.bindAll=function(t){var e,i,n=arguments.length;if(1>=n)throw new Error("bindAll must be passed function names");for(e=1;n>e;e++)i=arguments[e],t[i]=y.bind(t[i],t);return t},y.memoize=function(t,e){var i=function(n){var r=i.cache,o=""+(e?e.apply(this,arguments):n);return y.has(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return i.cache={},i},y.delay=function(t,e){var i=c.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)},y.defer=y.partial(y.delay,y,1),y.throttle=function(t,e,i){var n,r,o,s=null,a=0;i||(i={});var l=function(){a=!1===i.leading?0:y.now(),s=null,o=t.apply(n,r),s||(n=r=null)};return function(){var h=y.now();a||!1!==i.leading||(a=h);var c=e-(h-a);return n=this,r=arguments,0>=c||c>e?(s&&(clearTimeout(s),s=null),a=h,o=t.apply(n,r),s||(n=r=null)):s||!1===i.trailing||(s=setTimeout(l,c)),o}},y.debounce=function(t,e,i){var n,r,o,s,a,l=function(){var h=y.now()-s;e>h&&h>=0?n=setTimeout(l,e-h):(n=null,i||(a=t.apply(o,r),n||(o=r=null)))};return function(){o=this,r=arguments,s=y.now();var h=i&&!n;return n||(n=setTimeout(l,e)),h&&(a=t.apply(o,r),o=r=null),a}},y.wrap=function(t,e){return y.partial(e,t)},y.negate=function(t){return function(){return!t.apply(this,arguments)}},y.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}},y.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},y.before=function(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),1>=t&&(e=null),i}},y.once=y.partial(y.before,2);var O=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];y.keys=function(t){if(!y.isObject(t))return[];if(f)return f(t);var e=[];for(var i in t)y.has(t,i)&&e.push(i);return O&&n(t,e),e},y.allKeys=function(t){if(!y.isObject(t))return[];var e=[];for(var i in t)e.push(i);return O&&n(t,e),e},y.values=function(t){for(var e=y.keys(t),i=e.length,n=Array(i),r=0;i>r;r++)n[r]=t[e[r]];return n},y.mapObject=function(t,e,i){e=b(e,i);for(var n,r=y.keys(t),o=r.length,s={},a=0;o>a;a++)n=r[a],s[n]=e(t[n],n,t);return s},y.pairs=function(t){for(var e=y.keys(t),i=e.length,n=Array(i),r=0;i>r;r++)n[r]=[e[r],t[e[r]]];return n},y.invert=function(t){for(var e={},i=y.keys(t),n=0,r=i.length;r>n;n++)e[t[i[n]]]=i[n];return e},y.functions=y.methods=function(t){var e=[];for(var i in t)y.isFunction(t[i])&&e.push(i);return e.sort()},y.extend=w(y.allKeys),y.extendOwn=y.assign=w(y.keys),y.findKey=function(t,e,i){e=b(e,i);for(var n,r=y.keys(t),o=0,s=r.length;s>o;o++)if(n=r[o],e(t[n],n,t))return n},y.pick=function(t,e,i){var n,r,o={},s=t;if(null==s)return o;y.isFunction(e)?(r=y.allKeys(s),n=x(e,i)):(r=A(arguments,!1,!1,1),n=function(t,e,i){return e in i},s=Object(s));for(var a=0,l=r.length;l>a;a++){var h=r[a],c=s[h];n(c,h,s)&&(o[h]=c)}return o},y.omit=function(t,e,i){if(y.isFunction(e))e=y.negate(e);else{var n=y.map(A(arguments,!1,!1,1),String);e=function(t,e){return!y.contains(n,e)}}return y.pick(t,e,i)},y.defaults=w(y.allKeys,!0),y.create=function(t,e){var i=k(t);return e&&y.extendOwn(i,e),i},y.clone=function(t){return y.isObject(t)?y.isArray(t)?t.slice():y.extend({},t):t},y.tap=function(t,e){return e(t),t},y.isMatch=function(t,e){var i=y.keys(e),n=i.length;if(null==t)return!n;for(var r=Object(t),o=0;n>o;o++){var s=i[o];if(e[s]!==r[s]||!(s in r))return!1}return!0};var E=function(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof y&&(t=t._wrapped),e instanceof y&&(e=e._wrapped);var r=u.call(t);if(r!==u.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===r;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(y.isFunction(s)&&s instanceof s&&y.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}i=i||[],n=n||[];for(var l=i.length;l--;)if(i[l]===t)return n[l]===e;if(i.push(t),n.push(e),o){if((l=t.length)!==e.length)return!1;for(;l--;)if(!E(t[l],e[l],i,n))return!1}else{var h,c=y.keys(t);if(l=c.length,y.keys(e).length!==l)return!1;for(;l--;)if(h=c[l],!y.has(e,h)||!E(t[h],e[h],i,n))return!1}return i.pop(),n.pop(),!0};y.isEqual=function(t,e){return E(t,e)},y.isEmpty=function(t){return null==t||(S(t)&&(y.isArray(t)||y.isString(t)||y.isArguments(t))?0===t.length:0===y.keys(t).length)},y.isElement=function(t){return!(!t||1!==t.nodeType)},y.isArray=p||function(t){return"[object Array]"===u.call(t)},y.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},y.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){y["is"+t]=function(e){return u.call(e)==="[object "+t+"]"}}),y.isArguments(arguments)||(y.isArguments=function(t){return y.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(y.isFunction=function(t){return"function"==typeof t||!1}),y.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},y.isNaN=function(t){return y.isNumber(t)&&t!==+t},y.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)},y.isNull=function(t){return null===t},y.isUndefined=function(t){return void 0===t},y.has=function(t,e){return null!=t&&d.call(t,e)},y.noConflict=function(){return r._=o,this},y.identity=function(t){return t},y.constant=function(t){return function(){return t}},y.noop=function(){},y.property=T,y.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},y.matcher=y.matches=function(t){return t=y.extendOwn({},t),function(e){return y.isMatch(e,t)}},y.times=function(t,e,i){var n=Array(Math.max(0,t));e=x(e,i,1);for(var r=0;t>r;r++)n[r]=e(r);return n},y.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},y.now=Date.now||function(){return(new Date).getTime()};var N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},I=y.invert(N),_=function(t){var e=function(e){return t[e]},i="(?:"+y.keys(t).join("|")+")",n=RegExp(i),r=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(r,e):t}};y.escape=_(N),y.unescape=_(I),y.result=function(t,e,i){var n=null==t?void 0:t[e];return void 0===n&&(n=i),y.isFunction(n)?n.call(t):n};var z=0;y.uniqueId=function(t){var e=++z+"";return t?t+e:e},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,j={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\u2028|\u2029/g,H=function(t){return"\\"+j[t]};y.template=function(t,e,i){!e&&i&&(e=i),e=y.defaults({},e,y.templateSettings);var n=RegExp([(e.escape||R).source,(e.interpolate||R).source,(e.evaluate||R).source].join("|")+"|$","g"),r=0,o="__p+='";t.replace(n,function(e,i,n,s,a){return o+=t.slice(r,a).replace(F,H),r=a+e.length,i?o+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var a=function(t){return s.call(this,t,y)},l=e.variable||"obj";return a.source="function("+l+"){\n"+o+"}",a},y.chain=function(t){var e=y(t);return e._chain=!0,e};var B=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){y.each(y.functions(t),function(e){var i=y[e]=t[e];y.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),B(this,i.apply(y,t))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=s[t];y.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0],B(this,i)}}),y.each(["concat","join","slice"],function(t){var e=s[t];y.prototype[t]=function(){return B(this,e.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return y})}.call(this),$(document).ready(function(){var t=$("a[data-dismiss=alert]");t.click(function(){$(this).parent().parent().parent().slideUp()}),setTimeout(function(){t.parent().parent().parent().slideUp()},5e3),$("h2").tooltip({placement:"right"}),$("img.customer").tooltip(),$("a.product").tooltip(),$(".love").tooltip(),$("#id_customer_typeahead").keyup(function(t){filter_customers(t.target.value)}),$("li.customer").click(function(){enable_all_customers(),$(this).addClass("marked");var t=$(this).children("span.name").text();$("#id_customer_typeahead").val(t);var e=$(this).children("span.id").text();$("#id_customer option, #id_user option").removeAttr("selected"),""===e?$("#id_customer option:first-child, #id_user option:first-child").attr("selected","selected"):$("#id_customer option[value="+e+"], #id_user option[value="+e+"]").attr("selected","selected"),update_total(this)}),Highcharts.setOptions({credits:{enabled:!1}}),$("#register li.product").click(function(){$(this).addClass("marked");var t=$(this).children("input[name$=amount]"),e=$(this).children(".qty"),i=Number(t.val())+1;t.val(i),e.html(i),update_total(this)}),$("#register button[type=reset]").click(function(){$("#id_customer option").removeAttr("selected"),$("#id_customer_typeahead").val(""),$("span.total_text").html(""),enable_all_customers(),enable_all_products(),reset_qtys()}),$(".toggle-infrequent-users").on("click",function(t){t.preventDefault(),$("li.customer.infrequent").toggleClass("hidden"),$(".users-description .infrequent-users").toggleClass("hidden"),"Vis alle"===$(this).text()?$(this).text("Skjul gamliser"):$(this).text("Vis alle")});var e=$(".inventory-report-form #id_start_time");e.datepicker({language:"nb",format:"yyyy-mm-dd",todayHighlight:!0,weekStart:1,endDate:new Date}).on("changeDate",function(t){i.datepicker("setStartDate",t.date)});var i=$(".inventory-report-form #id_end_time");i.datepicker({language:"nb",format:"yyyy-mm-dd",todayHighlight:!0,weekStart:1,endDate:new Date}).on("changeDate",function(t){e.datepicker("setEndDate",t.date)})}),$(document).ready(function(){if($("#user-profile").length){var t=$("#user-profile").attr("data-user-id");$.getJSON("/stats/products/by_user/"+t,function(t){t.hasOwnProperty("error")||$(".profile-stats-orderline").highcharts({title:{text:!1},xAxis:{type:"datetime"},yAxis:{title:{text:"Kjøp"}},plotOptions:{series:{marker:{radius:3}}},series:t})})}});var products=null,products_realtime_chart=null,products_url="/api/products/",products_stat_url="/api/products/group_by_user",order_base_url="/stats/orders/{group}/",products_realtime_url="/stats/orders/products_realtime",orderFormatters={hourly:function(){return this.value+":00"},daily:function(){return{0:"Mandag",1:"Tirsdag",2:"Onsdag",3:"Torsdag",4:"Fredag",5:"Lørdag",6:"Søndag"}[this.value]},monthly:function(){return{1:"Januar",2:"Februar",3:"Mars",4:"April",5:"Mai",6:"Juni",7:"Juli",8:"August",9:"September",10:"Oktober",11:"November",12:"Desember"}[this.value]},yearly:function(){return this.value}};$(document).ready(function(){$("#stats").length>0&&($.getJSON(products_stat_url,function(t){products=t,renderProductCharts(t)}),$("[data-group]").each(function(){var t=order_base_url.replace("{group}",$(this).data("group"));$.getJSON(t,renderOrdersGroupedChart)}),products_realtime_chart=new Highcharts.Chart({chart:{renderTo:"products_realtime_chart"},title:{text:"Produkter solgt over tid"},xAxis:{type:"datetime"},yAxis:{title:{text:"Antall solgt"}},plotOptions:{series:{marker:{radius:3}}},series:{}}),get_products_realtime_data())});