diff --git a/build/components.jsx b/build/components.jsx index 34df36ef..378b6167 100644 --- a/build/components.jsx +++ b/build/components.jsx @@ -1,21 +1,21 @@ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.augurReactComponents=e()}}(function(){var e;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new u(3*s/4-o),i=o>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,a[l++]=r>>8&255,a[l++]=255&r;return 2===o?(r=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[l++]=255&r):1===o&&(r=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[l++]=r>>8&255,a[l++]=255&r),a}function o(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function a(e,t,n){for(var i,r=[],a=t;au?u:c+s));return 1===i?(t=e[n-1],r+=l[t>>2],r+=l[t<<4&63],r+="=="):2===i&&(t=(e[n-2]<<8)+e[n-1],r+=l[t>>10],r+=l[t>>4&63],r+=l[t<<2&63],r+="="),o.push(r),o.join("")}n.toByteArray=r,n.fromByteArray=s;var l=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array;i()},{}],3:[function(e,t,n){"use strict";function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function r(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),a.alloc(+e)}function y(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(i)return W(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return M(this,t,n);case"binary":return D(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function b(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function k(e,t,n,i){function r(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,a=e.length,s=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,n/=2}for(var l=-1,c=n;cr&&(i=r)):i=r;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,c,u,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=e[r+1],128===(192&l)&&(d=(31&o)<<6|63&l,d>127&&(a=d));break;case 3:l=e[r+1],c=e[r+2],128===(192&l)&&128===(192&c)&&(d=(15&o)<<12|(63&l)<<6|63&c,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:l=e[r+1],c=e[r+2],u=e[r+3],128===(192&l)&&128===(192&c)&&128===(192&u)&&(d=(15&o)<<18|(63&l)<<12|(63&c)<<6|63&u,d>65535&&d<1114112&&(a=d))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return O(i)}function O(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var n="",i=0;ii)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,i,r,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function I(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function L(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function F(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,i,r){return r||F(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,n,i,23,4),n+4}function B(e,t,n,i,r){return r||F(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,n,i,52,8),n+8}function Y(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function q(e){return Q.toByteArray(Y(e))}function X(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function K(e){return e!==e}var Q=e("base64-js"),Z=e("ieee754"),$=e("isarray");n.Buffer=a,n.SlowBuffer=g,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:i(),n.kMaxLength=r(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return s(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return c(null,e,t,n)},a.allocUnsafe=function(e){return u(null,e)},a.allocUnsafeSlow=function(e){return u(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,i,r){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var o=r-i,s=n-t,l=Math.min(o,s),c=this.slice(i,r),u=e.slice(t,n),d=0;d2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(t<0&&(t=Math.max(this.length+t,0)),"string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:k(this,e,t,n);if("number"==typeof e)return a.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):k(this,[e],t,n);throw new TypeError("val must be string, number or Buffer")},a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(n)?(n=0|n,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"binary":return P(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(r*=256);)i+=this[e+--t]*r;return i},a.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var i=this[e],r=1,o=0;++o=r&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=0|t,n=0|n,!i){var r=Math.pow(2,8*n)-1;j(this,e,t,n,r,0)}var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=0|t,!i){var r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=0|t,!i){var r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;oe,"expected #{this} to have a length above #{exp} but got #{act}","expected #{this} to not have a length above #{exp}",e,i)}else this.assert(n>e,"expected #{this} to be above "+e,"expected #{this} to be at most "+e)}function c(e,t){t&&O(this,"message",t);var n=O(this,"object");if(O(this,"doLength")){new _(n,t).to.have.property("length");var i=n.length;this.assert(i>=e,"expected #{this} to have a length at least #{exp} but got #{act}","expected #{this} to have a length below #{exp}",e,i)}else this.assert(n>=e,"expected #{this} to be at least "+e,"expected #{this} to be below "+e)}function u(e,t){t&&O(this,"message",t);var n=O(this,"object");if(O(this,"doLength")){new _(n,t).to.have.property("length");var i=n.length;this.assert(i1)throw new Error(o);break;case"object":if(arguments.length>1)throw new Error(o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}if(!e.length)throw new Error("keys required");var a=Object.keys(i),s=e,l=e.length,c=O(this,"any"),u=O(this,"all");if(c||u||(u=!0),c){var d=s.filter(function(e){return~a.indexOf(e)});r=d.length>0}if(u&&(r=e.every(function(e){return~a.indexOf(e)}),O(this,"negate")||O(this,"contains")||(r=r&&e.length==a.length)),l>1){e=e.map(function(e){return t.inspect(e)});var p=e.pop();u&&(n=e.join(", ")+", and "+p),c&&(n=e.join(", ")+", or "+p)}else n=t.inspect(e[0]);n=(l>1?"keys ":"key ")+n,n=(O(this,"contains")?"contain ":"have ")+n,this.assert(r,"expected #{this} to "+n,"expected #{this} to not "+n,s.slice(0).sort(),a.sort(),!0)}function b(e,n,i){i&&O(this,"message",i);var r=O(this,"object");new _(r,i).is.a("function");var o=!1,a=null,s=null,l=null;0===arguments.length?(n=null,e=null):e&&(e instanceof RegExp||"string"==typeof e)?(n=e,e=null):e&&e instanceof Error?(a=e,e=null,n=null):"function"==typeof e?(s=e.prototype.name,(!s||"Error"===s&&e!==Error)&&(s=e.name||(new e).name)):e=null;try{r()}catch(i){if(a)return this.assert(i===a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}",a instanceof Error?a.toString():a,i instanceof Error?i.toString():i),O(this,"object",i),this;if(e&&(this.assert(i instanceof e,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp} but #{act} was thrown",s,i instanceof Error?i.toString():i),!n))return O(this,"object",i),this;var c="error"===t.type(i)&&"message"in i?i.message:""+i;if(null!=c&&n&&n instanceof RegExp)return this.assert(n.exec(c),"expected #{this} to throw error matching #{exp} but got #{act}","expected #{this} to throw error not matching #{exp}",n,c),O(this,"object",i),this;if(null!=c&&n&&"string"==typeof n)return this.assert(~c.indexOf(n),"expected #{this} to throw error including #{exp} but got #{act}","expected #{this} to throw error not including #{act}",n,c),O(this,"object",i),this;o=!0,l=i}var u="",d=null!==s?s:a?"#{exp}":"an error";o&&(u=" but #{act} was thrown"),this.assert(o===!0,"expected #{this} to throw "+d+u,"expected #{this} to not throw "+d+u,a instanceof Error?a.toString():a,l instanceof Error?l.toString():l),O(this,"object",l)}function k(e,n){n&&O(this,"message",n);var i=O(this,"object"),r=O(this,"itself"),o="function"!==t.type(i)||r?i[e]:i.prototype[e];this.assert("function"==typeof o,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}function x(e,n){n&&O(this,"message",n);var i=O(this,"object"),r=e(i);this.assert(r,"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),!this.negate,r)}function w(e,n,i){i&&O(this,"message",i);var r=O(this,"object");if(new _(r,i).is.a("number"),"number"!==t.type(e)||"number"!==t.type(n))throw new Error("the arguments to closeTo or approximately must be numbers");this.assert(Math.abs(r-e)<=n,"expected #{this} to be close to "+e+" +/- "+n,"expected #{this} not to be close to "+e+" +/- "+n)}function E(e,t,n){return e.every(function(e){return n?t.some(function(t){return n(e,t)}):t.indexOf(e)!==-1})}function P(e,t){t&&O(this,"message",t);var n=O(this,"object");new _(e).to.be.an("array"),this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n); -}function C(e,t,n){n&&O(this,"message",n);var i=O(this,"object");new _(e,n).to.have.property(t),new _(i).is.a("function");var r=e[t];i(),this.assert(r!==e[t],"expected ."+t+" to change","expected ."+t+" to not change")}function T(e,t,n){n&&O(this,"message",n);var i=O(this,"object");new _(e,n).to.have.property(t),new _(i).is.a("function");var r=e[t];i(),this.assert(e[t]-r>0,"expected ."+t+" to increase","expected ."+t+" to not increase")}function S(e,t,n){n&&O(this,"message",n);var i=O(this,"object");new _(e,n).to.have.property(t),new _(i).is.a("function");var r=e[t];i(),this.assert(e[t]-r<0,"expected ."+t+" to decrease","expected ."+t+" to not decrease")}var _=e.Assertion,O=(Object.prototype.toString,t.flag);["to","be","been","is","and","has","have","with","that","which","at","of","same"].forEach(function(e){_.addProperty(e,function(){return this})}),_.addProperty("not",function(){O(this,"negate",!0)}),_.addProperty("deep",function(){O(this,"deep",!0)}),_.addProperty("any",function(){O(this,"any",!0),O(this,"all",!1)}),_.addProperty("all",function(){O(this,"all",!0),O(this,"any",!1)}),_.addChainableMethod("an",n),_.addChainableMethod("a",n),_.addChainableMethod("include",r,i),_.addChainableMethod("contain",r,i),_.addChainableMethod("contains",r,i),_.addChainableMethod("includes",r,i),_.addProperty("ok",function(){this.assert(O(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),_.addProperty("true",function(){this.assert(!0===O(this,"object"),"expected #{this} to be true","expected #{this} to be false",!this.negate)}),_.addProperty("false",function(){this.assert(!1===O(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!this.negate)}),_.addProperty("null",function(){this.assert(null===O(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}),_.addProperty("undefined",function(){this.assert(void 0===O(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}),_.addProperty("NaN",function(){this.assert(isNaN(O(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")}),_.addProperty("exist",function(){this.assert(null!=O(this,"object"),"expected #{this} to exist","expected #{this} to not exist")}),_.addProperty("empty",function(){var e=O(this,"object"),t=e;Array.isArray(e)||"string"==typeof object?t=e.length:"object"==typeof e&&(t=Object.keys(e).length),this.assert(!t,"expected #{this} to be empty","expected #{this} not to be empty")}),_.addProperty("arguments",o),_.addProperty("Arguments",o),_.addMethod("equal",a),_.addMethod("equals",a),_.addMethod("eq",a),_.addMethod("eql",s),_.addMethod("eqls",s),_.addMethod("above",l),_.addMethod("gt",l),_.addMethod("greaterThan",l),_.addMethod("least",c),_.addMethod("gte",c),_.addMethod("below",u),_.addMethod("lt",u),_.addMethod("lessThan",u),_.addMethod("most",d),_.addMethod("lte",d),_.addMethod("within",function(e,t,n){n&&O(this,"message",n);var i=O(this,"object"),r=e+".."+t;if(O(this,"doLength")){new _(i,n).to.have.property("length");var o=i.length;this.assert(o>=e&&o<=t,"expected #{this} to have a length within "+r,"expected #{this} to not have a length within "+r)}else this.assert(i>=e&&i<=t,"expected #{this} to be within "+r,"expected #{this} to not be within "+r)}),_.addMethod("instanceof",p),_.addMethod("instanceOf",p),_.addMethod("property",function(e,n,i){i&&O(this,"message",i);var r=!!O(this,"deep"),o=r?"deep property ":"property ",a=O(this,"negate"),s=O(this,"object"),l=r?t.getPathInfo(e,s):null,c=r?l.exists:t.hasProperty(e,s),u=r?l.value:s[e];if(a&&arguments.length>1){if(void 0===u)throw i=null!=i?i+": ":"",new Error(i+t.inspect(s)+" has no "+o+t.inspect(e))}else this.assert(c,"expected #{this} to have a "+o+t.inspect(e),"expected #{this} to not have "+o+t.inspect(e));arguments.length>1&&this.assert(n===u,"expected #{this} to have a "+o+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have a "+o+t.inspect(e)+" of #{act}",n,u),O(this,"object",u)}),_.addMethod("ownProperty",h),_.addMethod("haveOwnProperty",h),_.addMethod("ownPropertyDescriptor",f),_.addMethod("haveOwnPropertyDescriptor",f),_.addChainableMethod("length",g,m),_.addMethod("lengthOf",g),_.addMethod("match",y),_.addMethod("matches",y),_.addMethod("string",function(e,n){n&&O(this,"message",n);var i=O(this,"object");new _(i,n).is.a("string"),this.assert(~i.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))}),_.addMethod("keys",v),_.addMethod("key",v),_.addMethod("throw",b),_.addMethod("throws",b),_.addMethod("Throw",b),_.addMethod("respondTo",k),_.addMethod("respondsTo",k),_.addProperty("itself",function(){O(this,"itself",!0)}),_.addMethod("satisfy",x),_.addMethod("satisfies",x),_.addMethod("closeTo",w),_.addMethod("approximately",w),_.addMethod("members",function(e,n){n&&O(this,"message",n);var i=O(this,"object");new _(i).to.be.an("array"),new _(e).to.be.an("array");var r=O(this,"deep")?t.eql:void 0;return O(this,"contains")?this.assert(E(e,i,r),"expected #{this} to be a superset of #{act}","expected #{this} to not be a superset of #{act}",i,e):void this.assert(E(i,e,r)&&E(e,i,r),"expected #{this} to have the same members as #{act}","expected #{this} to not have the same members as #{act}",i,e)}),_.addMethod("oneOf",P),_.addChainableMethod("change",C),_.addChainableMethod("changes",C),_.addChainableMethod("increase",T),_.addChainableMethod("increases",T),_.addChainableMethod("decrease",S),_.addChainableMethod("decreases",S),_.addProperty("extensible",function(){var e,t=O(this,"object");try{e=Object.isExtensible(t)}catch(t){if(!(t instanceof TypeError))throw t;e=!1}this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")}),_.addProperty("sealed",function(){var e,t=O(this,"object");try{e=Object.isSealed(t)}catch(t){if(!(t instanceof TypeError))throw t;e=!0}this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")}),_.addProperty("frozen",function(){var e,t=O(this,"object");try{e=Object.isFrozen(t)}catch(t){if(!(t instanceof TypeError))throw t;e=!0}this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})}},{}],9:[function(e,t,n){t.exports=function(e,t){var n=e.Assertion,i=t.flag,r=e.assert=function(t,i){var r=new n(null,null,e.assert);r.assert(t,i,"[ negation message unavailable ]")};r.fail=function(t,n,i,o){throw i=i||"assert.fail()",new e.AssertionError(i,{actual:t,expected:n,operator:o},r.fail)},r.isOk=function(e,t){new n(e,t).is.ok},r.isNotOk=function(e,t){new n(e,t).is.not.ok},r.equal=function(e,t,o){var a=new n(e,o,r.equal);a.assert(t==i(a,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e)},r.notEqual=function(e,t,o){var a=new n(e,o,r.notEqual);a.assert(t!=i(a,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e)},r.strictEqual=function(e,t,i){new n(e,i).to.equal(t)},r.notStrictEqual=function(e,t,i){new n(e,i).to.not.equal(t)},r.deepEqual=function(e,t,i){new n(e,i).to.eql(t)},r.notDeepEqual=function(e,t,i){new n(e,i).to.not.eql(t)},r.isAbove=function(e,t,i){new n(e,i).to.be.above(t)},r.isAtLeast=function(e,t,i){new n(e,i).to.be.least(t)},r.isBelow=function(e,t,i){new n(e,i).to.be.below(t)},r.isAtMost=function(e,t,i){new n(e,i).to.be.most(t)},r.isTrue=function(e,t){new n(e,t).is.true},r.isNotTrue=function(e,t){new n(e,t).to.not.equal(!0)},r.isFalse=function(e,t){new n(e,t).is.false},r.isNotFalse=function(e,t){new n(e,t).to.not.equal(!1)},r.isNull=function(e,t){new n(e,t).to.equal(null)},r.isNotNull=function(e,t){new n(e,t).to.not.equal(null)},r.isNaN=function(e,t){new n(e,t).to.be.NaN},r.isNotNaN=function(e,t){new n(e,t).not.to.be.NaN},r.isUndefined=function(e,t){new n(e,t).to.equal(void 0)},r.isDefined=function(e,t){new n(e,t).to.not.equal(void 0)},r.isFunction=function(e,t){new n(e,t).to.be.a("function")},r.isNotFunction=function(e,t){new n(e,t).to.not.be.a("function")},r.isObject=function(e,t){new n(e,t).to.be.a("object")},r.isNotObject=function(e,t){new n(e,t).to.not.be.a("object")},r.isArray=function(e,t){new n(e,t).to.be.an("array")},r.isNotArray=function(e,t){new n(e,t).to.not.be.an("array")},r.isString=function(e,t){new n(e,t).to.be.a("string")},r.isNotString=function(e,t){new n(e,t).to.not.be.a("string")},r.isNumber=function(e,t){new n(e,t).to.be.a("number")},r.isNotNumber=function(e,t){new n(e,t).to.not.be.a("number")},r.isBoolean=function(e,t){new n(e,t).to.be.a("boolean")},r.isNotBoolean=function(e,t){new n(e,t).to.not.be.a("boolean")},r.typeOf=function(e,t,i){new n(e,i).to.be.a(t)},r.notTypeOf=function(e,t,i){new n(e,i).to.not.be.a(t)},r.instanceOf=function(e,t,i){new n(e,i).to.be.instanceOf(t)},r.notInstanceOf=function(e,t,i){new n(e,i).to.not.be.instanceOf(t)},r.include=function(e,t,i){new n(e,i,r.include).include(t)},r.notInclude=function(e,t,i){new n(e,i,r.notInclude).not.include(t)},r.match=function(e,t,i){new n(e,i).to.match(t)},r.notMatch=function(e,t,i){new n(e,i).to.not.match(t)},r.property=function(e,t,i){new n(e,i).to.have.property(t)},r.notProperty=function(e,t,i){new n(e,i).to.not.have.property(t)},r.deepProperty=function(e,t,i){new n(e,i).to.have.deep.property(t)},r.notDeepProperty=function(e,t,i){new n(e,i).to.not.have.deep.property(t)},r.propertyVal=function(e,t,i,r){new n(e,r).to.have.property(t,i)},r.propertyNotVal=function(e,t,i,r){new n(e,r).to.not.have.property(t,i)},r.deepPropertyVal=function(e,t,i,r){new n(e,r).to.have.deep.property(t,i)},r.deepPropertyNotVal=function(e,t,i,r){new n(e,r).to.not.have.deep.property(t,i)},r.lengthOf=function(e,t,i){new n(e,i).to.have.length(t)},r.throws=function(e,t,r,o){("string"==typeof t||t instanceof RegExp)&&(r=t,t=null);var a=new n(e,o).to.throw(t,r);return i(a,"object")},r.doesNotThrow=function(e,t,i){"string"==typeof t&&(i=t,t=null),new n(e,i).to.not.Throw(t)},r.operator=function(e,r,o,a){var s;switch(r){case"==":s=e==o;break;case"===":s=e===o;break;case">":s=e>o;break;case">=":s=e>=o;break;case"<":s=e1&&n===t.length-1?"or ":"";return r+i+" "+e}).join(", ");if(!t.some(function(t){return o(e)===t}))throw new i("object tested must be "+n+", but "+o(e)+" given")}},{"./flag":16,"assertion-error":1,"type-detect":220}],16:[function(e,t,n){t.exports=function(e,t,n){var i=e.__flags||(e.__flags=Object.create(null));return 3!==arguments.length?i[t]:void(i[t]=n)}},{}],17:[function(e,t,n){t.exports=function(e,t){return t.length>4?t[4]:e._obj}},{}],18:[function(e,t,n){t.exports=function(e){var t=[];for(var n in e)t.push(n);return t}},{}],19:[function(e,t,n){var i=e("./flag"),r=e("./getActual"),o=(e("./inspect"),e("./objDisplay"));t.exports=function(e,t){var n=i(e,"negate"),a=i(e,"object"),s=t[3],l=r(e,t),c=n?t[2]:t[1],u=i(e,"message");return"function"==typeof c&&(c=c()),c=c||"",c=c.replace(/#\{this\}/g,function(){return o(a)}).replace(/#\{act\}/g,function(){return o(l)}).replace(/#\{exp\}/g,function(){return o(s)}),u?u+": "+c:c}},{"./flag":16,"./getActual":17,"./inspect":26,"./objDisplay":27}],20:[function(e,t,n){t.exports=function(e){if(e.name)return e.name;var t=/^\s?function ([^(]*)\(/.exec(e);return t&&t[1]?t[1]:""}},{}],21:[function(e,t,n){function i(e){var t=e.replace(/([^\\])\[/g,"$1.["),n=t.match(/(\\\.|[^.]+?)+/g);return n.map(function(e){var t=/^\[(\d+)\]$/,n=t.exec(e);return n?{i:parseFloat(n[1])}:{p:e.replace(/\\([.\[\]])/g,"$1")}})}function r(e,t,n){var i,r=t;n=void 0===n?e.length:n;for(var o=0,a=n;o1?r(n,t,n.length-1):t,name:a.p||a.i,value:r(n,t)};return s.exists=o(s.name,s.parent),s}},{"./hasProperty":24}],22:[function(e,t,n){var i=e("./getPathInfo");t.exports=function(e,t){var n=i(e,t);return n.value}},{"./getPathInfo":21}],23:[function(e,t,n){t.exports=function(e){function t(e){n.indexOf(e)===-1&&n.push(e)}for(var n=Object.getOwnPropertyNames(e),i=Object.getPrototypeOf(e);null!==i;)Object.getOwnPropertyNames(i).forEach(t),i=Object.getPrototypeOf(i);return n}},{}],24:[function(e,t,n){var i=e("type-detect"),r={number:Number,string:String};t.exports=function(e,t){var n=i(t);return"null"!==n&&"undefined"!==n&&(r[n]&&"object"!=typeof t&&(t=new r[n](t)),e in t)}},{"type-detect":220}],25:[function(e,t,n){var n=t.exports={};n.test=e("./test"),n.type=e("type-detect"),n.expectTypes=e("./expectTypes"),n.getMessage=e("./getMessage"),n.getActual=e("./getActual"),n.inspect=e("./inspect"),n.objDisplay=e("./objDisplay"),n.flag=e("./flag"),n.transferFlags=e("./transferFlags"),n.eql=e("deep-eql"),n.getPathValue=e("./getPathValue"),n.getPathInfo=e("./getPathInfo"),n.hasProperty=e("./hasProperty"),n.getName=e("./getName"),n.addProperty=e("./addProperty"),n.addMethod=e("./addMethod"),n.overwriteProperty=e("./overwriteProperty"),n.overwriteMethod=e("./overwriteMethod"),n.addChainableMethod=e("./addChainableMethod"),n.overwriteChainableMethod=e("./overwriteChainableMethod")},{"./addChainableMethod":12,"./addMethod":13,"./addProperty":14,"./expectTypes":15,"./flag":16,"./getActual":17,"./getMessage":19,"./getName":20,"./getPathInfo":21,"./getPathValue":22,"./hasProperty":24,"./inspect":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./test":31,"./transferFlags":32,"deep-eql":34,"type-detect":220}],26:[function(e,t,n){function i(e,t,n,i){var o={showHidden:t,seen:[],stylize:function(e){return e}};return r(o,e,"undefined"==typeof n?2:n)}function r(e,t,i){if(t&&"function"==typeof t.inspect&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var f=t.inspect(i);return"string"!=typeof f&&(f=r(e,f,i)),f}var b=o(e,t);if(b)return b;if(v(t)){if("outerHTML"in t)return t.outerHTML;try{if(document.xmlVersion){var k=new XMLSerializer;return k.serializeToString(t)}var x="http://www.w3.org/1999/xhtml",w=document.createElementNS(x,"_");return w.appendChild(t.cloneNode(!1)),html=w.innerHTML.replace("><",">"+t.innerHTML+"<"),w.innerHTML="",html}catch(e){}}var E=y(t),P=e.showHidden?g(t):E;if(0===P.length||h(t)&&(1===P.length&&"stack"===P[0]||2===P.length&&"description"===P[0]&&"stack"===P[1])){if("function"==typeof t){var C=m(t),T=C?": "+C:"";return e.stylize("[Function"+T+"]","special")}if(d(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(p(t))return e.stylize(Date.prototype.toUTCString.call(t),"date");if(h(t))return a(t)}var S="",_=!1,O=["{","}"];if(u(t)&&(_=!0,O=["[","]"]),"function"==typeof t){var C=m(t),T=C?": "+C:"";S=" [Function"+T+"]"}if(d(t)&&(S=" "+RegExp.prototype.toString.call(t)),p(t)&&(S=" "+Date.prototype.toUTCString.call(t)),h(t))return a(t);if(0===P.length&&(!_||0==t.length))return O[0]+S+O[1];if(i<0)return d(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var M;return M=_?s(e,t,i,E,P):P.map(function(n){return l(e,t,i,E,n,_)}),e.seen.pop(),c(M,S,O)}function o(e,t){switch(typeof t){case"undefined":return e.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string");case"number":return 0===t&&1/t===-(1/0)?e.stylize("-0","number"):e.stylize(""+t,"number");case"boolean":return e.stylize(""+t,"boolean")}if(null===t)return e.stylize("null","null")}function a(e){return"["+Error.prototype.toString.call(e)+"]"}function s(e,t,n,i,r){for(var o=[],a=0,s=t.length;a-1&&(l=a?l.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+l.split("\n").map(function(e){return" "+e}).join("\n"))):l=e.stylize("[Circular]","special")),"undefined"==typeof s){if(a&&o.match(/^\d+$/))return l;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+l}function c(e,t,n){var i=0,r=e.reduce(function(e,t){return i++,t.indexOf("\n")>=0&&i++,e+t.length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function u(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===f(e)}function d(e){return"object"==typeof e&&"[object RegExp]"===f(e)}function p(e){return"object"==typeof e&&"[object Date]"===f(e)}function h(e){return"object"==typeof e&&"[object Error]"===f(e)}function f(e){return Object.prototype.toString.call(e)}var m=e("./getName"),g=e("./getProperties"),y=e("./getEnumerableProperties");t.exports=i;var v=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}},{"./getEnumerableProperties":18,"./getName":20,"./getProperties":23}],27:[function(e,t,n){var i=e("./inspect"),r=e("../config");t.exports=function(e){var t=i(e),n=Object.prototype.toString.call(e);if(r.truncateThreshold&&t.length>=r.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var o=Object.keys(e),a=o.length>2?o.splice(0,2).join(", ")+", ...":o.join(", ");return"{ Object ("+a+") }"}return t}return t}},{"../config":7,"./inspect":26}],28:[function(e,t,n){t.exports=function(e,t,n,i){var r=e.__methods[t],o=r.chainingBehavior;r.chainingBehavior=function(){var e=i(o).call(this);return void 0===e?this:e};var a=r.method;r.method=function(){var e=n(a).apply(this,arguments);return void 0===e?this:e}}},{}],29:[function(e,t,n){t.exports=function(e,t,n){var i=e[t],r=function(){return this};i&&"function"==typeof i&&(r=i),e[t]=function(){var e=n(r).apply(this,arguments);return void 0===e?this:e}}},{}],30:[function(e,t,n){t.exports=function(e,t,n){var i=Object.getOwnPropertyDescriptor(e,t),r=function(){};i&&"function"==typeof i.get&&(r=i.get),Object.defineProperty(e,t,{get:function(){var e=n(r).call(this);return void 0===e?this:e},configurable:!0})}},{}],31:[function(e,t,n){var i=e("./flag");t.exports=function(e,t){var n=i(e,"negate"),r=t[0];return n?!r:r}},{"./flag":16}],32:[function(e,t,n){t.exports=function(e,t,n){var i=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n;for(var r in i)(n||"object"!==r&&"ssfi"!==r&&"message"!=r)&&(t.__flags[r]=i[r])}},{}],33:[function(t,n,i){!function(){"use strict";function t(){for(var e=[],n=0;n=0;r--)if(s=o[r],!i(e[s],t[s],n))return!1;return!0}var f,m=e("type-detect");try{f=e("buffer").Buffer}catch(e){f={},f.isBuffer=function(){return!1}}t.exports=i},{buffer:3,"type-detect":36}],36:[function(e,t,n){t.exports=e("./lib/type")},{"./lib/type":37}],37:[function(e,t,n){function i(e){var t=Object.prototype.toString.call(e);return o[t]?o[t]:null===e?"null":void 0===e?"undefined":e===Object(e)?"object":typeof e}function r(){this.tests={}}var n=t.exports=i,o={"[object Array]":"array","[object RegExp]":"regexp","[object Function]":"function","[object Arguments]":"arguments","[object Date]":"date"};n.Library=r,r.prototype.of=i,r.prototype.define=function(e,t){return 1===arguments.length?this.tests[e]:(this.tests[e]=t,this)},r.prototype.test=function(e,t){if(t===i(e))return!0;var n=this.tests[t];if(n&&"regexp"===i(n))return n.test(e);if(n&&"function"===i(n))return n(e);throw new ReferenceError('Type test "'+t+'" not defined or invalid.')}},{}],38:[function(e,t,n){"use strict";var i=e("./emptyFunction"),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:i}},registerDefault:function(){}};t.exports=r},{"./emptyFunction":45}],39:[function(e,t,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=r},{}],40:[function(e,t,n){"use strict";function i(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;t.exports=i},{}],41:[function(e,t,n){"use strict";function i(e){return r(e.replace(o,"ms-"))}var r=e("./camelize"),o=/^-ms-/;t.exports=i},{"./camelize":40}],42:[function(e,t,n){"use strict";function i(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?i(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=e("./isTextNode");t.exports=i},{"./isTextNode":55}],43:[function(e,t,n){"use strict";function i(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?a(!1):void 0,"number"!=typeof t?a(!1):void 0,0===t||t-1 in e?void 0:a(!1),"function"==typeof e.callee?a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?p[e]:null}var r=e("./ExecutionEnvironment"),o=e("./invariant"),a=r.canUseDOM?document.createElement("div"):null,s={},l=[1,'"],c=[1,"","
"],u=[3,"","
"],d=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:l,option:l,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:u,th:u},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(e){p[e]=d,s[e]=!0}),t.exports=i},{"./ExecutionEnvironment":39,"./invariant":53}],50:[function(e,t,n){"use strict";function i(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=i},{}],51:[function(e,t,n){"use strict";function i(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=i},{}],52:[function(e,t,n){"use strict";function i(e){return r(e).replace(o,"-ms-")}var r=e("./hyphenate"),o=/^ms-/;t.exports=i},{"./hyphenate":51}],53:[function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,r,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=i},{}],54:[function(e,t,n){"use strict";function i(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=i},{}],55:[function(e,t,n){"use strict";function i(e){return r(e)&&3==e.nodeType}var r=e("./isNode");t.exports=i},{"./isNode":54}],56:[function(e,t,n){"use strict";var i=e("./invariant"),r=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:i(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=r},{"./invariant":53}],57:[function(e,t,n){"use strict"; -var i=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=i},{}],58:[function(e,t,n){"use strict";function i(e,t,n){if(!e)return null;var i={};for(var o in e)r.call(e,o)&&(i[o]=t.call(n,e[o],o,e));return i}var r=Object.prototype.hasOwnProperty;t.exports=i},{}],59:[function(e,t,n){"use strict";function i(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=i},{}],60:[function(e,t,n){"use strict";var i,r=e("./ExecutionEnvironment");r.canUseDOM&&(i=window.performance||window.msPerformance||window.webkitPerformance),t.exports=i||{}},{"./ExecutionEnvironment":39}],61:[function(e,t,n){"use strict";var i,r=e("./performance");i=r.now?function(){return r.now()}:function(){return Date.now()},t.exports=i},{"./performance":60}],62:[function(e,t,n){"use strict";function i(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function r(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1?o.thousandsSep:""))):n=U(i,n))}c.push(n),e=e.slice(s+1),s=(l=!l)?"}":"{"}return c.push(e),c.join("")}function b(e){return ae.pow(10,le(ae.log(e)/ae.LN10))}function k(e,t,n,i,r){var o,a=e,n=Ze(n,1);for(o=e/n,t||(t=[1,2,2.5,5,10],i===!1&&(1===n?t=[1,2,5,10]:n<=.1&&(t=[1/n]))),i=0;i=e||!r&&o<=(t[i]+(t[i+1]||t[i]))/2));i++);return a*=n}function x(e,t){var n,i,r=e.length;for(i=0;in&&(n=e[t]);return n}function P(e,t){for(var n in e)e[n]&&e[n]!==t&&e[n].destroy&&e[n].destroy(),delete e[n]}function C(e){L||(L=f(Re)),e&&L.appendChild(e),L.innerHTML=""}function T(e,t){return parseFloat(e.toPrecision(t||14))}function S(e,t){t.renderer.globalAnimation=Ze(e,t.animation)}function _(e){return a(e)?i(e):{duration:e?500:0}}function O(){var t=F.global,n=t.useUTC,i=n?"getUTC":"get",r=n?"setUTC":"set";Y=t.Date||e.Date,H=n&&t.timezoneOffset,W=n&&t.getTimezoneOffset,V=function(e,t,i,r,o,a){var s;return n?(s=Y.UTC.apply(0,arguments),s+=y(s)):s=new Y(e,t,Ze(i,1),Ze(r,0),Ze(o,0),Ze(a,0)).getTime(),s},z=i+"Minutes",G=i+"Hours",q=i+"Day",X=i+"Date",K=i+"Month",Q=i+"FullYear",Z=r+"Milliseconds",$=r+"Seconds",J=r+"Minutes",ee=r+"Hours",te=r+"Date",ne=r+"Month",ie=r+"FullYear"}function M(e){return this instanceof M?void this.init(e):new M(e)}function D(){}function N(e,t,n,i){this.axis=e,this.pos=t,this.type=n||"",this.isNew=!0,!n&&!i&&this.addLabel()}function R(e,t,n,i,r){var o=e.chart.inverted;this.axis=e,this.isNegative=n,this.options=t,this.x=i,this.total=null,this.points={},this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:t.align||(o?n?"left":"right":"center"),verticalAlign:t.verticalAlign||(o?"middle":n?"bottom":"top"),y:Ze(t.y,o?4:n?14:-6),x:Ze(t.x,o?n?-6:6:0)},this.textAlign=t.textAlign||(o?n?"right":"left":"center")}var A,j,I,L,F,U,B,Y,V,H,W,z,G,q,X,K,Q,Z,$,J,ee,te,ne,ie,re,oe=e.document,ae=Math,se=ae.round,le=ae.floor,ce=ae.ceil,ue=ae.max,de=ae.min,pe=ae.abs,he=ae.cos,fe=ae.sin,me=ae.PI,ge=2*me/360,ye=e.navigator&&e.navigator.userAgent||"",ve=e.opera,be=/(msie|trident|edge)/i.test(ye)&&!ve,ke=oe&&8===oe.documentMode,xe=!be&&/AppleWebKit/.test(ye),we=/Firefox/.test(ye),Ee=/(Mobile|Android|Windows Phone)/.test(ye),Pe="http://www.w3.org/2000/svg",Ce=oe&&oe.createElementNS&&!!oe.createElementNS(Pe,"svg").createSVGRect,Te=we&&parseInt(ye.split("Firefox/")[1],10)<4,Se=oe&&!Ce&&!be&&!!oe.createElement("canvas").getContext,_e={},Oe=0,Me=function(){},De=[],Ne=0,Re="div",Ae=/^[0-9]+$/,je=["plotTop","marginRight","marginBottom","plotLeft"],Ie={};re=e.Highcharts?t(16,!0):{win:e},re.seriesTypes=Ie;var Le,Fe,Ue,Be,Ye,Ve,He,We,ze,Ge,qe,Xe=[];n.prototype={dSetter:function(){var e,t=this.paths[0],n=this.paths[1],i=[],r=this.now,o=t.length;if(1===r)i=this.toD;else if(o===n.length&&r<1)for(;o--;)e=parseFloat(t[o]),i[o]=isNaN(e)?t[o]:r*parseFloat(n[o]-e)+e;else i=n;this.elem.attr("d",i)},update:function(){var e=this.elem,t=this.prop,n=this.now,i=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n):e.style[t]=n+this.unit,i&&i.call(e,n,this)},run:function(e,t,n){var i,r=this,o=function(e){return!o.stopped&&r.step(e)};this.startTime=+new Y,this.start=e,this.end=t,this.unit=n,this.now=this.start,this.pos=0,o.elem=this.elem,o()&&1===Xe.push(o)&&(o.timerId=setInterval(function(){for(i=0;i=a+this.startTime){this.now=this.end,this.pos=1,this.update(),e=s[this.prop]=!0;for(r in s)s[r]!==!0&&(e=!1);e&&o&&o.call(t),t=!1}else this.pos=i.easing((n-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},initPath:function(e,t,n){var i,t=t||"",r=e.shift,o=t.indexOf("C")>-1,a=o?7:3,t=t.split(" "),n=[].concat(n),s=e.isArea,l=s?2:1,c=function(e){for(i=e.length;i--;)("M"===e[i]||"L"===e[i])&&e.splice(i+1,0,e[i+1],e[i+2],e[i+1],e[i+2])};if(o&&(c(t),c(n)),r<=n.length/a&&t.length===n.length)for(;r--;)n=n.slice(0,a).concat(n),s&&(n=n.concat(n.slice(n.length-a)));if(e.shift=0,t.length)for(e=n.length;t.length3?o.length%3:0,n=Ze(n,s.decimalPoint),i=Ze(i,s.thousandsSep),e=e<0?"-":"",e+=a?o.substr(0,a)+i:"",e+=o.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+i),t&&(i=Math.abs(c-o+Math.pow(10,-Math.max(t,l)-1)),e+=n+i.toFixed(t).slice(2)),e},Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)},Le=function(t,n){var i;return"width"===n?Math.min(t.offsetWidth,t.scrollWidth)-Le(t,"padding-left")-Le(t,"padding-right"):"height"===n?Math.min(t.offsetHeight,t.scrollHeight)-Le(t,"padding-top")-Le(t,"padding-bottom"):(i=e.getComputedStyle(t,void 0))&&r(i.getPropertyValue(n))},Fe=function(e,t){return t.indexOf?t.indexOf(e):[].indexOf.call(t,e)},Be=function(e,t){return[].filter.call(e,t)},Ve=function(e,t){for(var n=[],i=0,r=e.length;i-1&&(o.splice(a,1),s[t]=o),i(t,n)):(r(),s[t]=[])):(r(),e.hcEvents={}))},ze=function(e,t,n,i){var r;r=e.hcEvents;var o,a,n=n||{};if(oe.createEvent&&(e.dispatchEvent||e.fireEvent))r=oe.createEvent("Events"),r.initEvent(t,!0,!0),r.target=e,Ke(r,n),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent(t,r);else if(r)for(r=r[t]||[],o=r.length,n.preventDefault||(n.preventDefault=function(){n.defaultPrevented=!0}),n.target=e,n.type||(n.type=t),t=0;t{point.key}
',pointFormat:' {series.name}: {point.y}
',shadow:!0,snap:Ee?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var Je=F.plotOptions,et=Je.line;O(),M.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(e){return[r(e[1]),r(e[2]),r(e[3]),parseFloat(e[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(e){return[r(e[1],16),r(e[2],16),r(e[3],16),1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[r(e[1]),r(e[2]),r(e[3]),1]}}],init:function(e){var t,n,i,r;if((this.input=e)&&e.stops)this.stops=Ve(e.stops,function(e){return new M(e[1])});else for(i=this.parsers.length;i--&&!n;)r=this.parsers[i],(t=r.regex.exec(e))&&(n=r.parse(t));this.rgba=n||[]},get:function(e){var t,n=this.input,r=this.rgba;return this.stops?(t=i(n),t.stops=[].concat(t.stops),Ue(this.stops,function(n,i){t.stops[i]=[t.stops[i][0],n.get(e)]})):t=r&&Qe(r[0])?"rgb"===e||!e&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===e?r[3]:"rgba("+r.join(",")+")":n,t},brighten:function(e){var t,n=this.rgba;if(this.stops)Ue(this.stops,function(t){t.brighten(e)});else if(Qe(e)&&0!==e)for(t=0;t<3;t++)n[t]+=r(255*e),n[t]<0&&(n[t]=0),n[t]>255&&(n[t]=255);return this},setOpacity:function(e){return this.rgba[3]=e,this}},D.prototype={opacity:1,textProps:"direction,fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textOverflow,textShadow".split(","),init:function(e,t){this.element="span"===t?f(t):oe.createElementNS(Pe,t),this.renderer=e},animate:function(e,t,n){return t=Ze(t,this.renderer.globalAnimation,!0),qe(this),t?(n&&(t.complete=n),Ge(this,e,t)):this.attr(e,null,n),this},colorGradient:function(e,t,n){var r,o,a,l,u,d,p,h,f,m,g,y,v=this.renderer,b=[];if(e.linearGradient?o="linearGradient":e.radialGradient&&(o="radialGradient"),o){a=e[o],u=v.gradients,p=e.stops,m=n.radialReference,s(a)&&(e[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&m&&!c(a.gradientUnits)&&(l=a,a=i(a,v.getRadialAttr(m,l),{gradientUnits:"userSpaceOnUse"}));for(g in a)"id"!==g&&b.push(g,a[g]);for(g in p)b.push(p[g]);b=b.join(","),u[b]?m=u[b].attr("id"):(a.id=m="highcharts-"+Oe++,u[b]=d=v.createElement(o).attr(a).add(v.defs),d.radAttr=l,d.stops=[],Ue(p,function(e){0===e[1].indexOf("rgba")?(r=M(e[1]),h=r.get("rgb"),f=r.get("a")):(h=e[1],f=1),e=v.createElement("stop").attr({offset:e[0],"stop-color":h,"stop-opacity":f}).add(d),d.stops.push(e)})),y="url("+v.url+"#"+m+")",n.setAttribute(t,y),n.gradient=b,e.toString=function(){return y}}},applyTextShadow:function(e){var t,n=this.element,i=e.indexOf("contrast")!==-1,o={},a=this.renderer.forExport,s=a||n.style.textShadow!==A&&!be;i&&(o.textShadow=e=e.replace(/contrast/g,this.renderer.getContrast(n.style.fill))),(xe||a)&&(o.textRendering="geometricPrecision"),s?this.css(o):(this.fakeTS=!0,this.ySetter=this.xSetter,t=[].slice.call(n.getElementsByTagName("tspan")),Ue(e.split(/\s?,\s?/g),function(e){var i,o,a=n.firstChild,e=e.split(" ");i=e[e.length-1],(o=e[e.length-2])&&Ue(t,function(e,t){var s;0===t&&(e.setAttribute("x",n.getAttribute("x")),t=n.getAttribute("y"),e.setAttribute("y",t||0),null===t&&n.setAttribute("y",0)),s=e.cloneNode(1),u(s,{class:"highcharts-text-shadow",fill:i,stroke:i,"stroke-opacity":1/ue(r(o),3),"stroke-width":o,"stroke-linejoin":"round"}),n.insertBefore(s,a)})}))},attr:function(e,t,n){var i,r,o,a=this.element,s=this;if("string"==typeof e&&t!==A&&(i=e,e={},e[i]=t),"string"==typeof e)s=(this[e+"Getter"]||this._defaultGetter).call(this,e,a);else{for(i in e)t=e[i],o=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(i)&&(r||(this.symbolAttr(e),r=!0),o=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),o||(o=this[i+"Setter"]||this._defaultSetter,o.call(this,t,i,a),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,t,o));this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return n&&n(),s},updateShadows:function(e,t,n){for(var i=this.shadows,r=i.length;r--;)n.call(i[r],"height"===e?Math.max(t-(i[r].cutHeight||0),0):"d"===e?this.d:t,e,i[r])},addClass:function(e){var t=this.element,n=u(t,"class")||"";return n.indexOf(e)===-1&&u(t,"class",n+" "+e),this},symbolAttr:function(e){var t=this;Ue("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(n){t[n]=Ze(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})},clip:function(e){return this.attr("clip-path",e?"url("+this.renderer.url+"#"+e.id+")":"none")},crisp:function(e){var t,n,i={},r=this.strokeWidth||0;n=se(r)%2/2,e.x=le(e.x||this.x||0)+n,e.y=le(e.y||this.y||0)+n,e.width=le((e.width||this.width||0)-2*n),e.height=le((e.height||this.height||0)-2*n),e.strokeWidth=r;for(t in e)this[t]!==e[t]&&(this[t]=i[t]=e[t]);return i},css:function(e){var t,n,i=this.styles,o={},a=this.element,s="";if(t=!i,e&&e.color&&(e.fill=e.color),i)for(n in e)e[n]!==i[n]&&(o[n]=e[n],t=!0);if(t){if(t=this.textWidth=e&&e.width&&"text"===a.nodeName.toLowerCase()&&r(e.width)||this.textWidth,i&&(e=Ke(i,o)),this.styles=e,t&&(Se||!Ce&&this.renderer.forExport)&&delete e.width,be&&!Ce)h(this.element,e);else{i=function(e,t){return"-"+t.toLowerCase()};for(n in e)s+=n.replace(/([A-Z])/g,i)+":"+e[n]+";";u(a,"style",s)}t&&this.added&&this.renderer.buildText(this)}return this},on:function(e,t){var n=this,i=n.element;return I&&"click"===e?(i.ontouchstart=function(e){n.touchEventFired=Y.now(),e.preventDefault(),t.call(i,e)},i.onclick=function(e){(ye.indexOf("Android")===-1||Y.now()-(n.touchEventFired||0)>1100)&&t.call(i,e)}):i["on"+e]=t,this},setRadialReference:function(e){var t=this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this},translate:function(e,t){return this.attr({translateX:e,translateY:t})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var e=this.translateX||0,t=this.translateY||0,n=this.scaleX,i=this.scaleY,r=this.inverted,o=this.rotation,a=this.element;r&&(e+=this.attr("width"),t+=this.attr("height")),e=["translate("+e+","+t+")"],r?e.push("rotate(90) scale(-1,1)"):o&&e.push("rotate("+o+" "+(a.getAttribute("x")||0)+" "+(a.getAttribute("y")||0)+")"),(c(n)||c(i))&&e.push("scale("+Ze(n,1)+" "+Ze(i,1)+")"),e.length&&a.setAttribute("transform",e.join(" "))},toFront:function(){var e=this.element;return e.parentNode.appendChild(e),this},align:function(e,t,n){var i,r,a,s,c={};return r=this.renderer,a=r.alignedObjects,e?(this.alignOptions=e,this.alignByTranslate=t,(!n||o(n))&&(this.alignTo=i=n||"renderer",l(a,this),a.push(this),n=null)):(e=this.alignOptions,t=this.alignByTranslate,i=this.alignTo),n=Ze(n,r[i],r),i=e.align,r=e.verticalAlign,a=(n.x||0)+(e.x||0),s=(n.y||0)+(e.y||0),"right"!==i&&"center"!==i||(a+=(n.width-(e.width||0))/{right:1,center:2}[i]),c[t?"translateX":"x"]=se(a),"bottom"!==r&&"middle"!==r||(s+=(n.height-(e.height||0))/({bottom:1,middle:2}[r]||1)),c[t?"translateY":"y"]=se(s),this[this.placed?"animate":"attr"](c),this.placed=!0,this.alignAttr=c,this},getBBox:function(e,t){var n,i,r,o,a=this.renderer,s=this.element,l=this.styles;i=this.textStr;var c,u,d,p=s.style,h=a.cache,f=a.cacheKeys;if(r=Ze(t,this.rotation),o=r*ge,i!==A&&(d=["",r||0,l&&l.fontSize,s.style.width].join(","),d=""===i||Ae.test(i)?"num:"+i.toString().length+d:i+d),d&&!e&&(n=h[d]),!n){if(s.namespaceURI===Pe||a.forExport){try{u=this.fakeTS&&function(e){Ue(s.querySelectorAll(".highcharts-text-shadow"),function(t){t.style.display=e})},we&&p.textShadow?(c=p.textShadow,p.textShadow=""):u&&u("none"),n=s.getBBox?Ke({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight},c?p.textShadow=c:u&&u("")}catch(e){}(!n||n.width<0)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(a.isSVG&&(a=n.width,i=n.height,be&&l&&"11px"===l.fontSize&&"16.9"===i.toPrecision(3)&&(n.height=i=14),r&&(n.width=pe(i*fe(o))+pe(a*he(o)),n.height=pe(i*he(o))+pe(a*fe(o)))),d){for(;f.length>250;)delete h[f.shift()];h[d]||f.push(d),h[d]=n}}return n},show:function(e){return this.attr({visibility:e?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(e){var t=this;t.animate({opacity:0},{duration:e||150,complete:function(){t.attr({y:-9999})}})},add:function(e){var t,n=this.renderer,i=this.element;return e&&(this.parentGroup=e),this.parentInverted=e&&e.inverted,void 0!==this.textStr&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(e){var t=e.parentNode;t&&t.removeChild(e)},destroy:function(){var e,t,n=this,i=n.element||{},r=n.shadows,o=n.renderer.isSVG&&"SPAN"===i.nodeName&&n.parentGroup;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,qe(n),n.clipPath&&(n.clipPath=n.clipPath.destroy()),n.stops){for(t=0;t]*>/g,"")))},textSetter:function(e){e!==this.textStr&&(delete this.bBox,this.textStr=e,this.added&&this.renderer.buildText(this))},fillSetter:function(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.colorGradient(e,t,n)},visibilitySetter:function(e,t,n){"inherit"===e?n.removeAttribute(t):n.setAttribute(t,e)},zIndexSetter:function(e,t){var n,i,o,a=this.renderer,s=this.parentGroup,a=(s||a).element||a.box,l=this.element;n=this.added;var u;if(c(e)&&(l.zIndex=e,e=+e,this[t]===e&&(n=!1),this[t]=e),n){for((e=this.zIndex)&&s&&(s.handleZ=!0),s=a.childNodes,u=0;ue||!c(e)&&c(i))&&(a.insertBefore(l,n),o=!0);o||a.appendChild(l)}return o},_defaultSetter:function(e,t,n){n.setAttribute(t,e)}},D.prototype.yGetter=D.prototype.xGetter,D.prototype.translateXSetter=D.prototype.translateYSetter=D.prototype.rotationSetter=D.prototype.verticalAlignSetter=D.prototype.scaleXSetter=D.prototype.scaleYSetter=function(e,t){this[t]=e,this.doTransform=!0},D.prototype["stroke-widthSetter"]=D.prototype.strokeSetter=function(e,t,n){this[t]=e,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],D.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===t&&0===e&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)};var tt=function(){this.init.apply(this,arguments)};tt.prototype={Element:D,init:function(t,n,i,r,o,a){var s,r=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(r));s=r.element,t.appendChild(s),t.innerHTML.indexOf("xmlns")===-1&&u(s,"xmlns",Pe),this.isSVG=!0,this.box=s,this.boxWrapper=r,this.alignedObjects=[],this.url=(we||xe)&&oe.getElementsByTagName("base").length?e.location.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(oe.createTextNode("Created with Highcharts 4.2.5")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(n,i,!1);var l;we&&t.getBoundingClientRect&&(this.subPixelFix=n=function(){h(t,{left:0,top:0}),l=t.getBoundingClientRect(),h(t,{left:ce(l.left)-l.left+"px",top:ce(l.top)-l.top+"px"})},n(),He(e,"resize",n))},getStyle:function(e){return this.style=Ke({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),P(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.subPixelFix&&We(e,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(e){var t=new this.Element;return t.init(this,e),t},draw:function(){},getRadialAttr:function(e,t){return{cx:e[0]-e[2]/2+t.cx*e[2],cy:e[1]-e[2]/2+t.cy*e[2],r:t.r*e[2]}},buildText:function(e){for(var t,n,i,o=e.element,a=this,s=a.forExport,l=Ze(e.textStr,"").toString(),c=l.indexOf("<")!==-1,d=o.childNodes,p=u(o,"x"),f=e.styles,m=e.textWidth,g=f&&f.lineHeight,y=f&&f.textShadow,v=f&&"ellipsis"===f.textOverflow,b=d.length,k=m&&!e.added&&this.box,x=function(e){return g?r(g):a.fontMetrics(/(px|em)$/.test(e&&e.style.fontSize)?e.style.fontSize:f&&f.fontSize||a.style.fontSize||12,e).h},w=function(e){return e.replace(/</g,"<").replace(/>/g,">")};b--;)o.removeChild(d[b]);c||y||v||l.indexOf(" ")!==-1?(t=/<.*style="([^"]+)".*>/,n=/<.*href="(http[^"]+)".*>/,k&&k.appendChild(o),l=c?l.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[l],l=Be(l,function(e){return""!==e}),Ue(l,function(r,l){var c,d=0,r=r.replace(/^\s+|\s+$/g,"").replace(//g,"|||");c=r.split("|||"),Ue(c,function(r){if(""!==r||1===c.length){var g,y={},b=oe.createElementNS(Pe,"tspan");if(t.test(r)&&(g=r.match(t)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),u(b,"style",g)),n.test(r)&&!s&&(u(b,"onclick",'location.href="'+r.match(n)[1]+'"'),h(b,{cursor:"pointer"})),r=w(r.replace(/<(.|\n)*?>/g,"")||" ")," "!==r){if(b.appendChild(oe.createTextNode(r)),d?y.dx=0:l&&null!==p&&(y.x=p),u(b,y),o.appendChild(b),!d&&l&&(!Ce&&s&&h(b,{display:"block"}),u(b,"dy",x(b))),m){for(var k,E,y=r.replace(/([^\^])-/g,"$1- ").split(" "),P=c.length>1||l||y.length>1&&"nowrap"!==f.whiteSpace,C=[],T=x(b),S=1,_=e.rotation,O=r,M=O.length;(P||v)&&(y.length||C.length);)e.rotation=0,k=e.getBBox(!0),E=k.width,!Ce&&a.forExport&&(E=a.measureSpanWidth(b.firstChild.data,e.styles)), -k=E>m,void 0===i&&(i=k),v&&i?(M/=2,""===O||!k&&M<.5?y=[]:(O=r.substring(0,O.length+(k?-1:1)*ce(M)),y=[O+(m>3?"…":"")],b.removeChild(b.firstChild))):k&&1!==y.length?(b.removeChild(b.firstChild),C.unshift(y.pop())):(y=C,C=[],y.length&&(S++,b=oe.createElementNS(Pe,"tspan"),u(b,{dy:T,x:p}),g&&u(b,"style",g),o.appendChild(b)),E>m&&(m=E)),y.length&&b.appendChild(oe.createTextNode(y.join(" ").replace(/- /g,"-")));e.rotation=_}d++}}})}),i&&e.attr("title",e.textStr),k&&k.removeChild(o),y&&e.applyTextShadow&&e.applyTextShadow(y)):o.appendChild(oe.createTextNode(w(l)))},getContrast:function(e){return e=M(e).rgba,e[0]+e[1]+e[2]>384?"#000000":"#FFFFFF"},button:function(e,t,n,r,o,a,s,l,c){var u,d,p,h,f,m,g=this.label(e,t,n,c,null,null,null,null,"button"),y=0,e={x1:0,y1:0,x2:0,y2:1},o=i({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:e,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},o);return p=o.style,delete o.style,a=i(o,{stroke:"#68A",fill:{linearGradient:e,stops:[[0,"#FFF"],[1,"#ACF"]]}},a),h=a.style,delete a.style,s=i(o,{stroke:"#68A",fill:{linearGradient:e,stops:[[0,"#9BD"],[1,"#CDF"]]}},s),f=s.style,delete s.style,l=i(o,{style:{color:"#CCC"}},l),m=l.style,delete l.style,He(g.element,be?"mouseover":"mouseenter",function(){3!==y&&g.attr(a).css(h)}),He(g.element,be?"mouseout":"mouseleave",function(){3!==y&&(u=[o,a,s][y],d=[p,h,f][y],g.attr(u).css(d))}),g.setState=function(e){(g.state=y=e)?2===e?g.attr(s).css(f):3===e&&g.attr(l).css(m):g.attr(o).css(p)},g.on("click",function(e){3!==y&&r.call(g,e)}).attr(o).css(Ke({cursor:"default"},p))},crispLine:function(e,t){return e[1]===e[4]&&(e[1]=e[4]=se(e[1])-t%2/2),e[2]===e[5]&&(e[2]=e[5]=se(e[2])+t%2/2),e},path:function(e){var t={fill:"none"};return s(e)?t.d=e:a(e)&&Ke(t,e),this.createElement("path").attr(t)},circle:function(e,t,n){return e=a(e)?e:{x:e,y:t,r:n},t=this.createElement("circle"),t.xSetter=t.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},t.attr(e)},arc:function(e,t,n,i,r,o){return a(e)&&(t=e.y,n=e.r,i=e.innerR,r=e.start,o=e.end,e=e.x),e=this.symbol("arc",e||0,t||0,n||0,n||0,{innerR:i||0,start:r||0,end:o||0}),e.r=n,e},rect:function(e,t,n,i,r,o){var r=a(e)?e.r:r,s=this.createElement("rect"),e=a(e)?e:e===A?{}:{x:e,y:t,width:ue(n,0),height:ue(i,0)};return o!==A&&(s.strokeWidth=o,e=s.crisp(e)),r&&(e.r=r),s.rSetter=function(e,t,n){u(n,{rx:e,ry:e})},s.attr(e)},setSize:function(e,t,n){var i=this.alignedObjects,r=i.length;for(this.width=e,this.height=t,this.boxWrapper[Ze(n,!0)?"animate":"attr"]({width:e,height:t});r--;)i[r].align()},g:function(e){var t=this.createElement("g");return c(e)?t.attr({class:"highcharts-"+e}):t},image:function(e,t,n,i,r){var o={preserveAspectRatio:"none"};return arguments.length>1&&Ke(o,{x:t,y:n,width:i,height:r}),o=this.createElement("image").attr(o),o.element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",e):o.element.setAttribute("hc-svg-href",e),o},symbol:function(e,t,n,i,r,o){var a,s,l,c=this,u=this.symbols[e],u=u&&u(se(t),se(n),i,r,o),d=/^url\((.*?)\)$/;return u?(a=this.path(u),Ke(a,{symbolName:e,x:t,y:n,width:i,height:r}),o&&Ke(a,o)):d.test(e)&&(l=function(e,t){e.element&&(e.attr({width:t[0],height:t[1]}),e.alignByTranslate||e.translate(se((i-t[0])/2),se((r-t[1])/2)))},s=e.match(d)[1],e=_e[s]||o&&o.width&&o.height&&[o.width,o.height],a=this.image(s).attr({x:t,y:n}),a.isImg=!0,e?l(a,e):(a.attr({width:0,height:0}),f("img",{onload:function(){0===this.width&&(h(this,{position:"absolute",top:"-999em"}),oe.body.appendChild(this)),l(a,_e[s]=[this.width,this.height]),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,!c.imgCount&&De[c.chartIndex].onload&&De[c.chartIndex].onload()},src:s}),this.imgCount++)),a},symbols:{circle:function(e,t,n,i){var r=.166*n;return["M",e+n/2,t,"C",e+n+r,t,e+n+r,t+i,e+n/2,t+i,"C",e-r,t+i,e-r,t,e+n/2,t,"Z"]},square:function(e,t,n,i){return["M",e,t,"L",e+n,t,e+n,t+i,e,t+i,"Z"]},triangle:function(e,t,n,i){return["M",e+n/2,t,"L",e+n,t+i,e,t+i,"Z"]},"triangle-down":function(e,t,n,i){return["M",e,t,"L",e+n,t,e+n/2,t+i,"Z"]},diamond:function(e,t,n,i){return["M",e+n/2,t,"L",e+n,t+i/2,e+n/2,t+i,e,t+i/2,"Z"]},arc:function(e,t,n,i,r){var o=r.start,n=r.r||n||i,a=r.end-.001,i=r.innerR,s=r.open,l=he(o),c=fe(o),u=he(a),a=fe(a),r=r.end-on&&r>t+s&&rt+s&&ri&&l>e+s&&le+s&&lp&&/[ \-]/.test(t.textContent||t.innerText)?(h(t,{width:p+"px",display:"block",whiteSpace:f||"normal"}),this.hasTextWidth=!0):this.hasTextWidth&&(h(t,{width:"",display:"",whiteSpace:f||"nowrap"}),this.hasTextWidth=!1),this.getSpanCorrection(this.hasTextWidth?p:t.offsetWidth,d,l,u,s)),h(t,{left:o+(this.xCorr||0)+"px",top:a+(this.yCorr||0)+"px"}),xe&&(d=t.offsetHeight),this.cTT=m}}else this.alignOnAdd=!0},setSpanRotation:function(e,t,n){var i={},r=be?"-ms-transform":xe?"-webkit-transform":we?"MozTransform":ve?"-o-transform":"";i[r]=i.transform="rotate("+e+"deg)",i[r+(we?"Origin":"-origin")]=i.transformOrigin=100*t+"% "+n+"px",h(this.element,i)},getSpanCorrection:function(e,t,n){this.xCorr=-e*n,this.yCorr=-t}}),Ke(tt.prototype,{html:function(e,t,n){var i=this.createElement("span"),r=i.element,o=i.renderer,a=o.isSVG,s=function(e,t){Ue(["opacity","visibility"],function(n){$e(e,n+"Setter",function(e,n,i,r){e.call(this,n,i,r),t[i]=n})})};return i.textSetter=function(e){e!==r.innerHTML&&delete this.bBox,r.innerHTML=this.textStr=e,i.htmlUpdateTransform()},a&&s(i,i.element.style),i.xSetter=i.ySetter=i.alignSetter=i.rotationSetter=function(e,t){"align"===t&&(t="textAlign"),i[t]=e,i.htmlUpdateTransform()},i.attr({text:e,x:se(t),y:se(n)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),r.style.whiteSpace="nowrap",i.css=i.htmlCss,a&&(i.add=function(e){var t,n=o.box.parentNode,a=[];if(this.parentGroup=e){if(t=e.div,!t){for(;e;)a.push(e),e=e.parentGroup;Ue(a.reverse(),function(e){var i,r=u(e.element,"class");r&&(r={className:r}),t=e.div=e.div||f(Re,r,{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px",opacity:e.opacity},t||n),i=t.style,Ke(e,{translateXSetter:function(t,n){i.left=t+"px",e[n]=t,e.doTransform=!0},translateYSetter:function(t,n){i.top=t+"px",e[n]=t,e.doTransform=!0}}),s(e,i)})}}else t=n;return t.appendChild(r),i.added=!0,i.alignOnAdd&&i.htmlUpdateTransform(),i}),i}});var nt;if(!Ce&&!Se){nt={init:function(e,t){var n=["<",t,' filled="f" stroked="f"'],i=["position: ","absolute",";"],r=t===Re;("shape"===t||r)&&i.push("left:0;top:0;width:1px;height:1px;"),i.push("visibility: ",r?"hidden":"visible"),n.push(' style="',i.join(""),'"/>'),t&&(n=r||"span"===t||"img"===t?n.join(""):e.prepVML(n),this.element=f(n)),this.renderer=e},add:function(e){var t=this.renderer,n=this.element,i=t.box,r=e&&e.inverted,i=e?e.element||e:i;return e&&(this.parentGroup=e),r&&t.invertChild(n,i),i.appendChild(n),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:D.prototype.htmlUpdateTransform,setSpanRotation:function(){var e=this.rotation,t=he(e*ge),n=fe(e*ge);h(this.element,{filter:e?["progid:DXImageTransform.Microsoft.Matrix(M11=",t,", M12=",-n,", M21=",n,", M22=",t,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(e,t,n,i,r){var o,a=i?he(i*ge):1,s=i?fe(i*ge):0,l=Ze(this.elemHeight,this.element.offsetHeight);this.xCorr=a<0&&-e,this.yCorr=s<0&&-l,o=a*s<0,this.xCorr+=s*t*(o?1-n:n),this.yCorr-=a*t*(i?o?n:1-n:1),r&&"left"!==r&&(this.xCorr-=e*n*(a<0?-1:1),i&&(this.yCorr-=l*n*(s<0?-1:1)),h(this.element,{textAlign:r}))},pathToVML:function(e){for(var t=e.length,n=[];t--;)Qe(e[t])?n[t]=se(10*e[t])-5:"Z"===e[t]?n[t]="x":(n[t]=e[t],!e.isArc||"wa"!==e[t]&&"at"!==e[t]||(n[t+5]===n[t+7]&&(n[t+7]+=e[t+7]>e[t+5]?1:-1),n[t+6]===n[t+8]&&(n[t+8]+=e[t+8]>e[t+6]?1:-1)));return n.join(" ")||"x"},clip:function(e){var t,n=this;return e?(t=e.members,l(t,n),t.push(n),n.destroyClip=function(){l(t,n)},e=e.getCSS(n)):(n.destroyClip&&n.destroyClip(),e={clip:ke?"inherit":"rect(auto)"}),n.css(e)},css:D.prototype.htmlCss,safeRemoveChild:function(e){e.parentNode&&C(e)},destroy:function(){return this.destroyClip&&this.destroyClip(),D.prototype.destroy.apply(this)},on:function(t,n){return this.element["on"+t]=function(){var t=e.event;t.target=t.srcElement,n(t)},this},cutOffPath:function(e,t){var n,e=e.split(/[ ,]/);return n=e.length,9!==n&&11!==n||(e[n-4]=e[n-2]=r(e[n-2])-10*t),e.join(" ")},shadow:function(e,t,n){var i,o,a,s,l,c,u,d=[],p=this.element,h=this.renderer,m=p.style,g=p.path;if(g&&"string"!=typeof g.value&&(g="x"),l=g,e){for(c=Ze(e.width,3),u=(e.opacity||.15)/c,i=1;i<=3;i++)s=2*c+1-2*i,n&&(l=this.cutOffPath(g.value,s+.5)),a=[''],o=f(h.prepVML(a),null,{left:r(m.left)+Ze(e.offsetX,1),top:r(m.top)+Ze(e.offsetY,1)}),n&&(o.cutOff=s+1),a=[''],f(h.prepVML(a),null,null,o),t?t.element.appendChild(o):p.parentNode.insertBefore(o,p),d.push(o);this.shadows=d}return this},updateShadows:Me,setAttr:function(e,t){ke?this.element[e]=t:this.element.setAttribute(e,t)},classSetter:function(e){this.element.className=e},dashstyleSetter:function(e,t,n){(n.getElementsByTagName("stroke")[0]||f(this.renderer.prepVML([""]),null,null,n))[t]=e||"solid",this[t]=e},dSetter:function(e,t,n){var i=this.shadows,e=e||[];if(this.d=e.join&&e.join(" "),n.path=e=this.pathToVML(e),i)for(n=i.length;n--;)i[n].path=i[n].cutOff?this.cutOffPath(e,i[n].cutOff):e;this.setAttr(t,e)},fillSetter:function(e,t,n){var i=n.nodeName;"SPAN"===i?n.style.color=e:"IMG"!==i&&(n.filled="none"!==e,this.setAttr("fillcolor",this.renderer.color(e,n,t,this)))},"fill-opacitySetter":function(e,t,n){f(this.renderer.prepVML(["<",t.split("-")[0],' opacity="',e,'"/>']),null,null,n)},opacitySetter:Me,rotationSetter:function(e,t,n){n=n.style,this[t]=n[t]=e,n.left=-se(fe(e*ge)+1)+"px",n.top=se(he(e*ge))+"px"},strokeSetter:function(e,t,n){this.setAttr("strokecolor",this.renderer.color(e,n,t,this))},"stroke-widthSetter":function(e,t,n){n.stroked=!!e,this[t]=e,Qe(e)&&(e+="px"),this.setAttr("strokeweight",e)},titleSetter:function(e,t){this.setAttr(t,e)},visibilitySetter:function(e,t,n){"inherit"===e&&(e="visible"),this.shadows&&Ue(this.shadows,function(n){n.style[t]=e}),"DIV"===n.nodeName&&(e="hidden"===e?"-999em":0,ke||(n.style[t]=e?"visible":"hidden"),t="top"),n.style[t]=e},xSetter:function(e,t,n){this[t]=e,"x"===t?t="left":"y"===t&&(t="top"),this.updateClipping?(this[t]=e,this.updateClipping()):n.style[t]=e},zIndexSetter:function(e,t,n){n.style[t]=e}},nt["stroke-opacitySetter"]=nt["fill-opacitySetter"],re.VMLElement=nt=m(D,nt),nt.prototype.ySetter=nt.prototype.widthSetter=nt.prototype.heightSetter=nt.prototype.xSetter;var it={Element:nt,isIE8:ye.indexOf("MSIE 8.0")>-1,init:function(e,t,n,i){var r;if(this.alignedObjects=[],i=this.createElement(Re).css(Ke(this.getStyle(i),{position:"relative"})),r=i.element,e.appendChild(i.element),this.isVML=!0,this.box=r,this.boxWrapper=i,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1),!oe.namespaces.hcv){oe.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{oe.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(e){oe.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(e,t,n,i){var r=this.createElement(),o=a(e);return Ke(r,{members:[],count:0,left:(o?e.x:e)+1,top:(o?e.y:t)+1,width:(o?e.width:n)-1,height:(o?e.height:i)-1,getCSS:function(e){var t=e.element,n=t.nodeName,e=e.inverted,i=this.top-("shape"===n?t.offsetTop:0),r=this.left,t=r+this.width,o=i+this.height,i={clip:"rect("+se(e?r:i)+"px,"+se(e?o:t)+"px,"+se(e?t:o)+"px,"+se(e?i:r)+"px)"};return!e&&ke&&"DIV"===n&&Ke(i,{width:t+"px",height:o+"px"}),i},updateClipping:function(){Ue(r.members,function(e){e.element&&e.css(r.getCSS(e))})}})},color:function(e,t,n,i){var r,o,a,s=this,l=/^rgba/,c="none";if(e&&e.linearGradient?a="gradient":e&&e.radialGradient&&(a="pattern"),a){var u,d,p,h,m,g,y,v,b=e.linearGradient||e.radialGradient,k="",e=e.stops,x=[],w=function(){o=[''],f(s.prepVML(o),null,null,t)};if(p=e[0],v=e[e.length-1],p[0]>0&&e.unshift([0,p[1]]),v[0]<1&&e.push([1,v[1]]),Ue(e,function(e,t){l.test(e[1])?(r=M(e[1]),u=r.get("rgb"),d=r.get("a")):(u=e[1],d=1),x.push(100*e[0]+"% "+u),t?(m=d,g=u):(h=d,y=u)}),"fill"===n)if("gradient"===a)n=b.x1||b[0]||0,e=b.y1||b[1]||0,p=b.x2||b[2]||0,b=b.y2||b[3]||0,k='angle="'+(90-180*ae.atan((b-e)/(p-n))/me)+'"',w();else{var E,c=b.r,P=2*c,C=2*c,T=b.cx,S=b.cy,_=t.radialReference,c=function(){_&&(E=i.getBBox(),T+=(_[0]-E.x)/E.width-.5,S+=(_[1]-E.y)/E.height-.5,P*=_[2]/E.width,C*=_[2]/E.height),k='src="'+F.global.VMLRadialGradientURL+'" size="'+P+","+C+'" origin="0.5,0.5" position="'+T+","+S+'" color2="'+y+'" ',w()};i.added?c():i.onAdd=c,c=g}else c=u}else l.test(e)&&"IMG"!==t.tagName?(r=M(e),i[n+"-opacitySetter"](r.get("a"),n,t),c=r.get("rgb")):(c=t.getElementsByTagName(n),c.length&&(c[0].opacity=1,c[0].type="solid"),c=e);return c},prepVML:function(e){var t=this.isIE8,e=e.join("");return t?(e=e.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),e=e.indexOf('style="')===-1?e.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):e.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):e=e.replace("<","1&&o.attr({x:t,y:n,width:i,height:r}),o},createElement:function(e){return"rect"===e?this.symbol(e):tt.prototype.createElement.call(this,e)},invertChild:function(e,t){var n=this,i=t.style,o="IMG"===e.tagName&&e.style;h(e,{flip:"x",left:r(i.width)-(o?r(o.top):1),top:r(i.height)-(o?r(o.left):1),rotation:-90}),Ue(e.childNodes,function(t){n.invertChild(t,e)})},symbols:{arc:function(e,t,n,i,r){var o=r.start,a=r.end,s=r.r||n||i,n=r.innerR,i=he(o),l=fe(o),c=he(a),u=fe(a);return a-o===0?["x"]:(o=["wa",e-s,t-s,e+s,t+s,e+s*i,t+s*l,e+s*c,t+s*u],r.open&&!n&&o.push("e","M",e,t),o.push("at",e-n,t-n,e+n,t+n,e+n*c,t+n*u,e+n*i,t+n*l,"x","e"),o.isArc=!0,o)},circle:function(e,t,n,i,r){return r&&(n=i=2*r.r),r&&r.isCircle&&(e-=n/2,t-=i/2),["wa",e,t,e+n,t+i,e+n,t+i/2,e+n,t+i/2,"e"]},rect:function(e,t,n,i,r){return tt.prototype.symbols[c(r)&&r.r?"callout":"square"].call(0,e,t,n,i,r)}}};re.VMLRenderer=nt=function(){this.init.apply(this,arguments)},nt.prototype=i(tt.prototype,it),j=nt}tt.prototype.measureSpanWidth=function(e,t){var n,i=oe.createElement("span");return n=oe.createTextNode(e),i.appendChild(n),h(i,t),this.box.appendChild(i),n=i.offsetWidth,C(i),n};var rt;Se&&(re.CanVGRenderer=nt=function(){Pe="http://www.w3.org/1999/xhtml"},nt.prototype.symbols={},rt=function(){function e(){var e,n=t.length;for(e=0;e0&&i+c*u>o&&(t=se((r-i)/he(l*ge))):(r=i+(1-c)*u,i-c*uo&&(p=o-e.x+p*c,h=-1),p=de(d,p),pp||n.autoRotation&&s.styles.width)&&(t=p)),t&&(f.width=t,n.options.labels.style.textOverflow||(f.textOverflow="ellipsis"),s.css(f))},getPosition:function(e,t,n,i){var r=this.axis,o=r.chart,a=i&&o.oldChartHeight||o.chartHeight;return{x:e?r.translate(t+n,null,null,i)+r.transB:r.left+r.offset+(r.opposite?(i&&o.oldChartWidth||o.chartWidth)-r.right-r.left:0),y:e?a-r.bottom+r.offset-(r.opposite?r.height:0):a-r.translate(t+n,null,null,i)-r.transB}},getLabelPosition:function(e,t,n,i,r,o,a,s){var l=this.axis,u=l.transA,d=l.reversed,p=l.staggerLines,h=l.tickRotCorr||{x:0,y:0},f=r.y;return c(f)||(f=0===l.side?n.rotation?-8:-n.getBBox().height:2===l.side?h.y+8:he(n.rotation*ge)*(h.y-n.getBBox(!1,0).height/2)),e=e+r.x+h.x-(o&&i?o*u*(d?-1:1):0),t=t+f-(o&&!i?o*u*(d?1:-1):0),p&&(n=a/(s||1)%p,l.opposite&&(n=p-n-1),t+=n*(l.labelOffset/p)),{x:e,y:se(t)}},getMarkPath:function(e,t,n,i,r,o){return o.crispLine(["M",e,t,"L",e+(r?0:-n),t+(r?n:0)],i)},render:function(e,t,n){var i=this.axis,r=i.options,o=i.chart.renderer,a=i.horiz,s=this.type,l=this.label,c=this.pos,u=r.labels,d=this.gridLine,p=s?s+"Grid":"grid",h=s?s+"Tick":"tick",f=r[p+"LineWidth"],m=r[p+"LineColor"],g=r[p+"LineDashStyle"],p=i.tickSize(h),h=r[h+"Color"],y=this.mark,v=u.step,b=!0,k=i.tickmarkOffset,x=this.getPosition(a,c,k,t),w=x.x,x=x.y,E=a&&w===i.pos+i.len||!a&&x===i.pos?-1:1,n=Ze(n,1);this.isActive=!0,f&&(c=i.getPlotLinePath(c+k,f*E,t,!0),d===A&&(d={stroke:m,"stroke-width":f},g&&(d.dashstyle=g),s||(d.zIndex=1),t&&(d.opacity=0),this.gridLine=d=f?o.path(c).attr(d).add(i.gridGroup):null),!t&&d&&c&&d[this.isNew?"attr":"animate"]({d:c,opacity:n})),p&&(i.opposite&&(p[0]=-p[0]),s=this.getMarkPath(w,x,p[0],p[1]*E,a,o),y?y.animate({d:s,opacity:n}):this.mark=o.path(s).attr({stroke:h,"stroke-width":p[1],opacity:n}).add(i.axisGroup)),l&&Qe(w)&&(l.xy=x=this.getLabelPosition(w,x,l,a,u,k,e,v),this.isFirst&&!this.isLast&&!Ze(r.showFirstLabel,1)||this.isLast&&!this.isFirst&&!Ze(r.showLastLabel,1)?b=!1:a&&!i.isRadial&&!u.step&&!u.rotation&&!t&&0!==n&&this.handleOverflow(x),v&&e%v&&(b=!1),b&&Qe(x.y)?(x.opacity=n,l[this.isNew?"attr":"animate"](x),this.isNew=!1):l.attr("y",-9999))},destroy:function(){P(this,this.axis)}},re.PlotLineOrBand=function(e,t){this.axis=e,t&&(this.options=t,this.id=t.id)},re.PlotLineOrBand.prototype={render:function(){var e,t=this,n=t.axis,r=n.horiz,o=t.options,a=o.label,s=t.label,l=o.width,u=o.to,d=o.from,p=c(d)&&c(u),h=o.value,f=o.dashStyle,m=t.svgElem,g=[],y=o.color,v=Ze(o.zIndex,0),b=o.events,k={},x=n.chart.renderer,g=n.log2lin;if(n.isLog&&(d=g(d),u=g(u),h=g(h)),l)g=n.getPlotLinePath(h,l),k={stroke:y,"stroke-width":l},f&&(k.dashstyle=f);else{if(!p)return;g=n.getPlotBandPath(d,u,o),y&&(k.fill=y),o.borderWidth&&(k.stroke=o.borderColor,k["stroke-width"]=o.borderWidth)}if(k.zIndex=v,m)g?(m.show(),m.animate({d:g})):(m.hide(),s&&(t.label=s=s.destroy()));else if(g&&g.length&&(t.svgElem=m=x.path(g).attr(k).add(),b))for(e in o=function(e){m.on(e,function(n){b[e].apply(t,[n])})},b)o(e);return a&&c(a.text)&&g&&g.length&&n.width>0&&n.height>0&&!g.flat?(a=i({align:r&&p&&"center",x:r?!p&&4:10,verticalAlign:!r&&p&&"middle",y:r?p?16:10:p?6:-4,rotation:r&&!p&&90},a),this.renderLabel(a,g,p,v)):s&&s.hide(),t},renderLabel:function(e,t,n,i){var r=this.label,o=this.axis.chart.renderer;r||(r={align:e.textAlign||e.align,rotation:e.rotation},r.zIndex=i,this.label=r=o.text(e.text,0,0,e.useHTML).attr(r).css(e.style).add()),i=[t[1],t[4],n?t[6]:t[1]],t=[t[2],t[5],n?t[7]:t[2]],n=w(i),o=w(t),r.align(e,!1,{x:n,y:o,width:E(i)-n,height:E(t)-o}),r.show()},destroy:function(){l(this.axis.plotLinesAndBands,this),delete this.axis,P(this)}};var ot=re.Axis=function(){this.init.apply(this,arguments)};ot.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,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0},lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return re.numberFormat(this.total,-1)},style:i(Je.line.dataLabels.style,{color:"#000000"})}},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(e,t){var n=t.isX;this.chart=e,this.horiz=e.inverted?!n:n,this.coll=(this.isXAxis=n)?"xAxis":"yAxis",this.opposite=t.opposite,this.side=t.side||(this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(t);var i=this.options,r=i.type;this.labelFormatter=i.labels.formatter||this.defaultLabelFormatter,this.userOptions=t,this.minPixelPadding=0,this.reversed=i.reversed,this.visible=i.visible!==!1,this.zoomEnabled=i.zoomEnabled!==!1,this.categories=i.categories||"category"===r,this.names=this.names||[],this.isLog="logarithmic"===r,this.isDatetimeAxis="datetime"===r,this.isLinked=c(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.stacks={},this.oldStacks={},this.stacksTouched=0,this.min=this.max=null,this.crosshair=Ze(i.crosshair,d(e.options.tooltip.crosshairs)[n?0:1],!1);var o,i=this.options.events;Fe(this,e.axes)===-1&&(n&&!this.isColorAxis?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&n&&this.reversed===A&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(o in i)He(this,o,i[o]);this.isLog&&(this.val2lin=this.log2lin,this.lin2val=this.lin2log)},setOptions:function(e){this.options=i(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],i(F[this.coll],e))},defaultLabelFormatter:function(){var e,t=this.axis,n=this.value,i=t.categories,r=this.dateTimeLabelFormat,o=F.lang.numericSymbols,a=o&&o.length,s=t.options.labels.format,t=t.isLog?n:t.tickInterval;if(s)e=v(s,this);else if(i)e=n;else if(r)e=U(r,n);else if(a&&t>=1e3)for(;a--&&e===A;)i=Math.pow(1e3,a+1),t>=i&&10*n%i===0&&null!==o[a]&&(e=re.numberFormat(n/i,-1)+o[a]);return e===A&&(e=pe(n)>=1e4?re.numberFormat(n,-1):re.numberFormat(n,-1,A,"")),e},getSeriesExtremes:function(){var e=this,t=e.chart;e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),Ue(e.series,function(n){if(n.visible||!t.options.chart.ignoreHiddenSeries){var i,r=n.options,o=r.threshold;e.hasVisibleSeries=!0,e.isLog&&o<=0&&(o=null),e.isXAxis?(r=n.xData,r.length&&(n=w(r),!Qe(n)&&!(n instanceof Y)&&(r=Be(r,function(e){return Qe(e)}),n=w(r)),e.dataMin=de(Ze(e.dataMin,r[0]),n),e.dataMax=ue(Ze(e.dataMax,r[0]),E(r)))):(n.getExtremes(),i=n.dataMax,n=n.dataMin,c(n)&&c(i)&&(e.dataMin=de(Ze(e.dataMin,n),n),e.dataMax=ue(Ze(e.dataMax,i),i)),c(o)&&(e.threshold=o),r.softThreshold&&!e.isLog||(e.softThreshold=!1))}})},translate:function(e,t,n,i,r,o){var a=this.linkedParent||this,s=1,l=0,c=i?a.oldTransA:a.transA,i=i?a.oldMin:a.min,u=a.minPixelPadding,r=(a.isOrdinal||a.isBroken||a.isLog&&r)&&a.lin2val;return c||(c=a.transA),n&&(s*=-1,l=a.len),a.reversed&&(s*=-1,l-=s*(a.sector||a.len)),t?(e=e*s+l,e-=u,e=e/c+i,r&&(e=a.lin2val(e))):(r&&(e=a.val2lin(e)),"between"===o&&(o=.5),e=s*(e-i)*c+l+s*u+(Qe(o)?c*o*a.pointRange:0)),e},toPixels:function(e,t){return this.translate(e,!1,!this.horiz,null,!0)+(t?0:this.pos)},toValue:function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(e,t,n,i,r){var o,a,s,l=this.chart,c=this.left,u=this.top,d=n&&l.oldChartHeight||l.chartHeight,p=n&&l.oldChartWidth||l.chartWidth;o=this.transB;var h=function(e,t,n){return(en)&&(i?e=de(ue(t,e),n):s=!0),e},r=Ze(r,this.translate(e,null,null,n)),e=n=se(r+o);return o=a=se(d-r-o),Qe(r)?this.horiz?(o=u,a=d-this.bottom,e=n=h(e,c,c+this.width)):(e=c,n=p-this.right,o=a=h(o,u,u+this.height)):s=!0,s&&!i?null:l.renderer.crispLine(["M",e,o,"L",n,a],t||1)},getLinearTickPositions:function(e,t,n){var i,r=T(le(t/e)*e),o=T(ce(n/e)*e),a=[];if(t===n&&Qe(t))return[t];for(t=r;t<=o&&(a.push(t),t=T(t+e),t!==i);)i=t;return a},getMinorTickPositions:function(){var e,t=this.options,n=this.tickPositions,i=this.minorTickInterval,r=[],o=this.pointRangePadding||0;e=this.min-o;var o=this.max+o,a=o-e;if(a&&a/i=this.minRange;this.isXAxis&&this.minRange===A&&!this.isLog&&(c(s.min)||c(s.max)?this.minRange=null:(Ue(this.series,function(e){for(r=e.xData,n=o=e.xIncrement?1:r.length-1;n>0;n--)i=r[n]-r[n-1],(t===A||i=w?(n=w,g=0):a.dataMax<=w&&(i=w,m=0)),a.min=Ze(r,n,a.dataMin),a.max=Ze(o,i,a.dataMax)),u&&(!e&&de(a.min,Ze(a.dataMin,a.min))<=0&&t(10,1),a.min=T(d(a.min),15),a.max=T(d(a.max),15)),a.range&&c(a.max)&&(a.userMin=a.min=r=ue(a.min,a.minFromRange()),a.userMax=o=a.max,a.range=null),ze(a,"foundExtremes"),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),x||a.axisPointRange||a.usePercentage||f||!c(a.min)||!c(a.max)||!(d=a.max-a.min)||(!c(r)&&g&&(a.min-=d*g),!c(o)&&m&&(a.max+=d*m)),Qe(l.floor)&&(a.min=ue(a.min,l.floor)),Qe(l.ceiling)&&(a.max=de(a.max,l.ceiling)),E&&c(a.dataMin)&&(w=w||0,!c(r)&&a.min=w?a.min=w:!c(o)&&a.max>w&&a.dataMax<=w&&(a.max=w)),a.tickInterval=a.min===a.max||void 0===a.min||void 0===a.max?1:f&&!y&&v===a.linkedParent.options.tickPixelInterval?y=a.linkedParent.tickInterval:Ze(y,this.tickAmount?(a.max-a.min)/ue(this.tickAmount-1,1):void 0,x?1:(a.max-a.min)*v/ue(a.len,v)),h&&!e&&Ue(a.series,function(e){e.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&&!y&&(a.tickInterval=ue(a.pointRange,a.tickInterval)),e=Ze(l.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!y&&a.tickInterval.5&&a.tickInterval<5&&a.max>1e3&&a.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var e,t,n=this.options,i=n.tickPositions,r=n.tickPositioner,o=n.startOnTick,a=n.endOnTick;this.tickmarkOffset=this.categories&&"between"===n.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n.minorTickInterval&&this.tickInterval?this.tickInterval/5:n.minorTickInterval,this.tickPositions=e=i&&i.slice(),!e&&(e=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,n.units),this.min,this.max,n.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),e.length>this.len&&(e=[e[0],e.pop()]),this.tickPositions=e,r&&(r=r.apply(this,[this.min,this.max])))&&(this.tickPositions=e=r),this.isLinked||(this.trimTicks(e,o,a),this.min===this.max&&c(this.min)&&!this.tickAmount&&(t=!0,this.min-=.5,this.max+=.5),this.single=t,!i&&!r&&this.adjustTickAmount())},trimTicks:function(e,t,n){var i=e[0],r=e[e.length-1],o=this.minPointOffset||0;if(t)this.min=i;else for(;this.min-o>e[0];)e.shift();if(n)this.max=r;else for(;this.max+on&&(this.tickInterval*=2,this.setTickPositions());if(c(i)){for(e=n=t.length;e--;)(3===i&&e%2===1||i<=2&&e>0&&e=r&&(t=r)),this.displayBtn=e!==A||t!==A,this.setExtremes(e,t,!1,A,{trigger:"zoom"}),!0},setAxisSize:function(){var e=this.chart,t=this.options,n=t.offsetLeft||0,i=this.horiz,r=Ze(t.width,e.plotWidth-n+(t.offsetRight||0)),o=Ze(t.height,e.plotHeight),a=Ze(t.top,e.plotTop),t=Ze(t.left,e.plotLeft+n),n=/%$/;n.test(o)&&(o=Math.round(parseFloat(o)/100*e.plotHeight)),n.test(a)&&(a=Math.round(parseFloat(a)/100*e.plotHeight+e.plotTop)),this.left=t,this.top=a,this.width=r,this.height=o,this.bottom=e.chartHeight-o-a,this.right=e.chartWidth-r-t,this.len=ue(i?r:o,0),this.pos=i?t:a},getExtremes:function(){var e=this.isLog,t=this.lin2log;return{min:e?T(t(this.min)):this.min,max:e?T(t(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(e){var t=this.isLog,n=this.lin2log,i=t?n(this.min):this.min,t=t?n(this.max):this.max;return null===e?e=t<0?t:i:i>e?e=i:t15&&e<165?"right":e>195&&e<345?"left":"center"},tickSize:function(e){var t=this.options,n=t[e+"Length"],i=Ze(t[e+"Width"],"tick"===e&&this.isXAxis?1:0);if(i&&n)return"inside"===t[e+"Position"]&&(n=-n),[n,i]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var e,t,n,i=this.options.labels,r=this.horiz,o=this.tickInterval,a=o,s=this.len/(((this.categories?1:0)+this.max-this.min)/o),l=i.rotation,u=this.labelMetrics(),d=Number.MAX_VALUE,p=function(e){return e/=s||1,e=e>1?ce(e):1,e*o};return r?(n=!i.staggerLines&&!i.step&&(c(l)?[l]:s=-90&&n<=90)&&(t=p(pe(u.h/fe(ge*n))),i=t+pe(n/360),ig&&(g=e.labelLength)}),g>p&&g>f.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(e={width:p+"px"},!m))for(e.textOverflow="clip",t=s.length;!u&&t--;)n=s[t],(p=l[n].label)&&("ellipsis"===p.styles.textOverflow?p.css({textOverflow:"clip"}):l[n].labelLength>d&&p.css({width:d+"px"}),p.getBBox().height>this.len/s.length-(f.h-f.f)&&(p.specCss={textOverflow:"ellipsis"}));h.rotation&&(e={width:(g>.5*r.chartHeight?.33*r.chartHeight:r.chartHeight)+"px"},!m)&&(e.textOverflow="ellipsis"),(this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation))&&(h.align=this.labelAlign),Ue(s,function(t){var n=(t=l[t])&&t.label;n&&(n.attr(h),e&&n.css(i(e,n.specCss)),delete n.specCss,t.rotation=h.rotation)}),this.tickRotCorr=a.rotCorr(f.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||c(this.min)&&c(this.max)&&!!this.tickPositions},getOffset:function(){var e,t,n,i,r=this,o=r.chart,a=o.renderer,s=r.options,l=r.tickPositions,u=r.ticks,d=r.horiz,p=r.side,h=o.inverted?[1,0,3,2][p]:p,f=0,m=0,g=s.title,y=s.labels,v=0,b=r.opposite,k=o.axisOffset,o=o.clipOffset,x=[-1,1,1,-1][p],w=r.axisParent,E=this.tickSize("tick");if(e=r.hasData(),r.showAxis=t=e||Ze(s.showEmpty,!0),r.staggerLines=r.horiz&&y.staggerLines,r.axisGroup||(r.gridGroup=a.g("grid").attr({zIndex:s.gridZIndex||1}).add(w),r.axisGroup=a.g("axis").attr({zIndex:s.zIndex||2}).add(w),r.labelGroup=a.g("axis-labels").attr({zIndex:y.zIndex||7}).addClass("highcharts-"+r.coll.toLowerCase()+"-labels").add(w)),e||r.isLinked)Ue(l,function(e){u[e]?u[e].addLabel():u[e]=new N(r,e)}),r.renderUnsquish(),y.reserveSpace!==!1&&(0===p||2===p||{1:"left",3:"right"}[p]===r.labelAlign||"center"===r.labelAlign)&&Ue(l,function(e){v=ue(u[e].getLabelSize(),v)}),r.staggerLines&&(v*=r.staggerLines,r.labelOffset=v*(r.opposite?-1:1));else for(i in u)u[i].destroy(),delete u[i];g&&g.text&&g.enabled!==!1&&(r.axisTitle||((i=g.textAlign)||(i=(d?{low:"left",middle:"center",high:"right"}:{low:b?"right":"left",middle:"center",high:b?"left":"right"})[g.align]),r.axisTitle=a.text(g.text,0,0,g.useHTML).attr({zIndex:7,rotation:g.rotation||0,align:i}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(g.style).add(r.axisGroup),r.axisTitle.isNew=!0),t&&(f=r.axisTitle.getBBox()[d?"height":"width"],n=g.offset,m=c(n)?0:Ze(g.margin,d?5:10)),r.axisTitle[t?"show":"hide"](!0)),r.offset=x*Ze(s.offset,k[p]),r.tickRotCorr=r.tickRotCorr||{x:0,y:0},a=0===p?-r.labelMetrics().h:2===p?r.tickRotCorr.y:0,m=Math.abs(v)+m,v&&(m-=a,m+=x*(d?Ze(y.y,r.tickRotCorr.y+8*x):y.x)),r.axisTitleMargin=Ze(n,m),k[p]=ue(k[p],r.axisTitleMargin+f+x*r.offset,m,e&&l.length&&E?E[0]:0),s=s.offset?0:2*le(s.lineWidth/2),o[h]=ue(o[h],s)},getLinePath:function(e){var t=this.chart,n=this.opposite,i=this.offset,r=this.horiz,o=this.left+(n?this.width:0)+i,i=t.chartHeight-this.bottom-(n?this.height:0)+i;return n&&(e*=-1),t.renderer.crispLine(["M",r?this.left:o,r?i:this.top,"L",r?t.chartWidth-this.right:o,r?i:t.chartHeight-this.bottom],e)},getTitlePosition:function(){var e=this.horiz,t=this.left,n=this.top,i=this.len,o=this.options.title,a=e?t:n,s=this.opposite,l=this.offset,c=o.x||0,u=o.y||0,d=r(o.style.fontSize||12),i={low:a+(e?0:i),middle:a+i/2,high:a+(e?i:0)}[o.align],t=(e?n+this.height:t)+(e?1:-1)*(s?-1:1)*this.axisTitleMargin+(2===this.side?d:0);return{x:e?i+c:t+(s?this.width:0)+l+c,y:e?t+u-(s?this.height:0)+l:i+u}},render:function(){var e,t,n,i=this,r=i.chart,o=r.renderer,a=i.options,s=i.isLog,l=i.lin2log,c=i.isLinked,u=i.tickPositions,d=i.axisTitle,h=i.ticks,f=i.minorTicks,m=i.alternateBands,g=a.stackLabels,y=a.alternateGridColor,v=i.tickmarkOffset,b=a.lineWidth,k=r.hasRendered&&Qe(i.oldMin),x=i.showAxis,w=_(o.globalAnimation);i.labelEdge.length=0,i.overlap=!1,Ue([h,f,m],function(e){for(var t in e)e[t].isActive=!1}),(i.hasData()||c)&&(i.minorTickInterval&&!i.categories&&Ue(i.getMinorTickPositions(),function(e){f[e]||(f[e]=new N(i,e,"minor")),k&&f[e].isNew&&f[e].render(null,!0),f[e].render(null,!1,1)}),u.length&&(Ue(u,function(e,t){(!c||e>=i.min&&e<=i.max)&&(h[e]||(h[e]=new N(i,e)),k&&h[e].isNew&&h[e].render(t,!0,.1),h[e].render(t))}),v&&(0===i.min||i.single))&&(h[-1]||(h[-1]=new N(i,(-1),null,(!0))),h[-1].render(-1)),y&&Ue(u,function(e,o){n=u[o+1]!==A?u[o+1]+v:i.max-v,o%2===0&&e=B.second?0:d*le(l.getMilliseconds()/d)),u>=B.second&&l[$](u>=B.minute?0:d*le(l.getSeconds()/d)),u>=B.minute&&l[J](u>=B.hour?0:d*le(l[z]()/d)),u>=B.hour&&l[ee](u>=B.day?0:d*le(l[G]()/d)),u>=B.day&&l[te](u>=B.month?1:d*le(l[X]()/d)),u>=B.month&&(l[ne](u>=B.year?0:d*le(l[K]()/d)),r=l[Q]()),u>=B.year&&(r-=r%d,l[ie](r)),u===B.week&&l[te](l[X]()-l[q]()+Ze(i,1)),t=1,(H||W)&&(l=l.getTime(),l=new Y(l+y(l))),r=l[Q]();for(var i=l.getTime(),p=l[K](),h=l[X](),f=!s||!!W,m=(B.day+(s?y(l):6e4*l.getTimezoneOffset()))%B.day;i=.5)e=se(e),l=this.getLinearTickPositions(e,t,n);else if(e>=.08)for(var c,u,d,p,h,o=le(t),r=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];ot&&(!i||p<=n)&&p!==A&&l.push(p),p>n&&(h=!0),p=d;else t=a(t),n=a(n),e=r[i?"minorTickInterval":"tickInterval"],e=Ze("auto"===e?null:e,this._minorAutoInterval,(n-t)*(r.tickPixelInterval/(i?5:1))/((i?o/this.tickPositions.length:o)||1)),e=k(e,null,b(e)),l=Ve(this.getLinearTickPositions(e,t,n),s),i||(this._minorAutoInterval=e/5);return i||(this.tickInterval=e),l},ot.prototype.log2lin=function(e){return ae.log(e)/ae.LN10},ot.prototype.lin2log=function(e){return ae.pow(10,e)};var at=re.Tooltip=function(){this.init.apply(this,arguments)};at.prototype={init:function(e,t){var n=t.borderWidth,i=t.style,o=r(i.padding);this.chart=e,this.options=t,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=e.renderer.label("",0,0,t.shape||"callout",null,null,t.useHTML,null,"tooltip").attr({padding:o,fill:t.backgroundColor,"stroke-width":n,r:t.borderRadius,zIndex:8}).css(i).css({padding:0}).add().attr({y:-9999}),Se||this.label.shadow(t.shadow),this.shared=t.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(e,t,n,i){var r=this,o=r.now,a=r.options.animation!==!1&&!r.isHidden&&(pe(e-o.x)>1||pe(t-o.y)>1),s=r.followPointer||r.len>1;Ke(o,{x:a?(2*o.x+e)/3:e,y:a?(o.y+t)/2:t,anchorX:s?A:a?(2*o.anchorX+n)/3:n,anchorY:s?A:a?(o.anchorY+i)/2:i}),r.label.attr(o),a&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(e,t,n,i)},32))},hide:function(e){var t=this;clearTimeout(this.hideTimer),e=Ze(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=p(function(){t.label[e?"fadeOut":"hide"](),t.isHidden=!0},e))},getAnchor:function(e,t){var n,i,r,o=this.chart,a=o.inverted,s=o.plotTop,l=o.plotLeft,c=0,u=0,e=d(e);return n=e[0].tooltipPos,this.followPointer&&t&&(t.chartX===A&&(t=o.pointer.normalize(t)),n=[t.chartX-o.plotLeft,t.chartY-s]),n||(Ue(e,function(e){i=e.series.yAxis,r=e.series.xAxis,c+=e.plotX+(!a&&r?r.left-l:0),u+=(e.plotLow?(e.plotLow+e.plotHigh)/2:e.plotY)+(!a&&i?i.top-s:0)}),c/=e.length,u/=e.length,n=[a?o.plotWidth-u:c,this.shared&&!a&&e.length>1&&t?t.chartY-s:a?o.plotHeight-c:u]),Ve(n,se)},getPosition:function(e,t,n){var i,r=this.chart,o=this.distance,a={},s=n.h||0,l=["y",r.chartHeight,t,n.plotY+r.plotTop,r.plotTop,r.plotTop+r.plotHeight],c=["x",r.chartWidth,e,n.plotX+r.plotLeft,r.plotLeft,r.plotLeft+r.plotWidth],u=!this.followPointer&&Ze(n.ttBelow,!r.inverted==!!n.negative),d=function(e,t,n,i,r,l){var c=nt?i:i+s)}},p=function(e,t,n,i){var r;return it-o?r=!1:a[e]=it-n/2?t-n-2:i-n/2,r},h=function(e){var t=l;l=c,c=t,i=e},f=function(){d.apply(0,l)!==!1?p.apply(0,c)===!1&&!i&&(h(!0),f()):i?a.x=a.y=0:(h(!0),f())};return(r.inverted||this.len>1)&&h(),f(),a},defaultFormatter:function(e){var t,n=this.points||d(this);return t=[e.tooltipFooterHeaderFormatter(n[0])],t=t.concat(e.bodyFormatter(n)),t.push(e.tooltipFooterHeaderFormatter(n[0],!0)),t.join("")},refresh:function(e,t){var n,i,r,o,a=this.chart,s=this.label,l=this.options,c={},u=[];o=l.formatter||this.defaultFormatter;var p,c=a.hoverPoints,h=this.shared;clearTimeout(this.hideTimer),this.followPointer=d(e)[0].series.tooltipOptions.followPointer,r=this.getAnchor(e,t),n=r[0],i=r[1],!h||e.series&&e.series.noSharedTooltip?c=e.getLabelConfig():(a.hoverPoints=e,c&&Ue(c,function(e){e.setState()}),Ue(e,function(e){e.setState("hover"),u.push(e.getLabelConfig())}),c={x:e[0].category,y:e[0].y},c.points=u,this.len=u.length,e=e[0]),o=o.call(c,this),c=e.series,this.distance=Ze(c.tooltipOptions.distance,16),o===!1?this.hide():(this.isHidden&&(qe(s),s.attr("opacity",1).show()),s.attr({text:o}),p=l.borderColor||e.color||c.color||"#606060",s.attr({stroke:p}),this.updatePosition({plotX:n,plotY:i,negative:e.negative,ttBelow:e.ttBelow,h:r[2]||0}),this.isHidden=!1),ze(a,"tooltipRefresh",{text:o,x:n+a.plotLeft,y:i+a.plotTop,borderColor:p})},updatePosition:function(e){var t=this.chart,n=this.label,n=(this.options.positioner||this.getPosition).call(this,n.width,n.height,e);this.move(se(n.x),se(n.y||0),e.plotX+t.plotLeft,e.plotY+t.plotTop)},getXDateFormat:function(e,t,n){var i,r,o,t=t.dateTimeLabelFormats,a=n&&n.closestPointRange,s={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";if(a){o=U("%m-%d %H:%M:%S.%L",e.x);for(r in B){if(a===B.week&&+U("%w",e.x)===n.options.startOfWeek&&"00:00:00.000"===o.substr(6)){r="week";break}if(B[r]>a){r=l;break}if(s[r]&&o.substr(s[r])!=="01-01 00:00:00.000".substr(s[r]))break;"week"!==r&&(l=r)}r&&(i=t[r])}else i=t.day;return i||t.year},tooltipFooterHeaderFormatter:function(e,t){var n=t?"footer":"header",i=e.series,r=i.tooltipOptions,o=r.xDateFormat,a=i.xAxis,s=a&&"datetime"===a.options.type&&Qe(e.key),n=r[n+"Format"];return s&&!o&&(o=this.getXDateFormat(e,r,a)),s&&o&&(n=n.replace("{point.key}","{point.key:"+o+"}")),v(n,{point:e,series:i})},bodyFormatter:function(e){return Ve(e,function(e){var t=e.series.tooltipOptions;return(t.pointFormatter||e.point.tooltipFormatter).call(e.point,t.pointFormat)})}};var st;I=oe&&oe.documentElement.ontouchstart!==A;var lt=re.Pointer=function(e,t){this.init(e,t)};if(lt.prototype={init:function(e,t){var n,i=t.chart,r=i.events,o=Se?"":i.zoomType,i=e.inverted;this.options=t,this.chart=e,this.zoomX=n=/x/.test(o),this.zoomY=o=/y/.test(o),this.zoomHor=n&&!i||o&&i,this.zoomVert=o&&!i||n&&i,this.hasZoom=n||o,this.runChartClick=r&&!!r.click,this.pinchDown=[],this.lastValidTouch={},re.Tooltip&&t.tooltip.enabled&&(e.tooltip=new at(e,t.tooltip),this.followTouchMove=Ze(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(t,n){var i,r,t=t||e.event;return t.target||(t.target=t.srcElement),r=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,n||(this.chartPosition=n=Ye(this.chart.container)),r.pageX===A?(i=ue(t.x,t.clientX-n.left),r=t.y):(i=r.pageX-n.left,r=r.pageY-n.top),Ke(t,{chartX:se(i),chartY:se(r)})},getCoordinates:function(e){var t={xAxis:[],yAxis:[]};return Ue(this.chart.axes,function(n){t[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(e[n.horiz?"chartX":"chartY"])})}),t},runPointActions:function(e){var t,n,i,r,o=this.chart,a=o.series,s=o.tooltip,l=!!s&&s.shared,c=o.hoverPoint,u=o.hoverSeries,d=[Number.MAX_VALUE,Number.MAX_VALUE],p=[],h=[];if(!l&&!u)for(t=0;t=h[n].series.group.zIndex;(e[t]l+u&&(r=l+u),oc+d&&(o=c+d),this.hasDragged=Math.sqrt(Math.pow(h-r,2)+Math.pow(f-o,2)),this.hasDragged>10&&(t=n.isInsidePlot(h-l,f-c),n.hasCartesianSeries&&(this.zoomX||this.zoomY)&&t&&!m&&!p&&(this.selectionMarker=p=n.renderer.rect(l,c,a?1:u,s?1:d,0).attr({fill:i.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),p&&a&&(r-=h,p.attr({width:pe(r),x:(r>0?0:r)+h})),p&&s&&(r=o-f,p.attr({height:pe(r),y:(r>0?0:r)+f})),t&&!p&&i.panning&&n.pan(e,i.panning)))},drop:function(e){var t=this,n=this.chart,i=this.hasPinched;if(this.selectionMarker){var r,o={originalEvent:e,xAxis:[],yAxis:[]},a=this.selectionMarker,s=a.attr?a.attr("x"):a.x,l=a.attr?a.attr("y"):a.y,u=a.attr?a.attr("width"):a.width,d=a.attr?a.attr("height"):a.height;(this.hasDragged||i)&&(Ue(n.axes,function(n){if(n.zoomEnabled&&c(n.min)&&(i||t[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])){var a=n.horiz,p="touchend"===e.type?n.minPixelPadding:0,h=n.toValue((a?s:l)+p),a=n.toValue((a?s+u:l+d)-p);o[n.coll].push({axis:n,min:de(h,a),max:ue(h,a)}),r=!0}}),r&&ze(n,"selection",o,function(e){n.zoom(Ke(e,i?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),i&&this.scaleGroups()}n&&(h(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(e){e=this.normalize(e),e.preventDefault&&e.preventDefault(),this.dragStart(e)},onDocumentMouseUp:function(e){De[st]&&De[st].pointer.drop(e)},onDocumentMouseMove:function(e){var t=this.chart,n=this.chartPosition,e=this.normalize(e,n);n&&!this.inClass(e.target,"highcharts-tracker")&&!t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop)&&this.reset()},onContainerMouseLeave:function(e){var t=De[st];t&&(e.relatedTarget||e.toElement)&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(e){var t=this.chart;c(st)&&De[st]&&De[st].mouseIsDown||(st=t.index),e=this.normalize(e),e.returnValue=!1,"mousedown"===t.mouseIsDown&&this.drag(e),(this.inClass(e.target,"highcharts-tracker")||t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop))&&!t.openMenu&&this.runPointActions(e)},inClass:function(e,t){for(var n;e;){if(n=u(e,"class")){if(n.indexOf(t)!==-1)return!0;if(n.indexOf("highcharts-container")!==-1)return!1}e=e.parentNode}},onTrackerMouseOut:function(e){var t=this.chart.hoverSeries,e=e.relatedTarget||e.toElement;!t||!e||t.options.stickyTracking||this.inClass(e,"highcharts-tooltip")||this.inClass(e,"highcharts-series-"+t.index)||t.onMouseOut()},onContainerClick:function(e){var t=this.chart,n=t.hoverPoint,i=t.plotLeft,r=t.plotTop,e=this.normalize(e);t.cancelClick||(n&&this.inClass(e.target,"highcharts-tracker")?(ze(n.series,"click",Ke(e,{point:n})),t.hoverPoint&&n.firePointEvent("click",e)):(Ke(e,this.getCoordinates(e)),t.isInsidePlot(e.chartX-i,e.chartY-r)&&ze(t,"click",e)))},setDOMEvents:function(){var e=this,t=e.chart.container;t.onmousedown=function(t){e.onContainerMouseDown(t)},t.onmousemove=function(t){e.onContainerMouseMove(t)},t.onclick=function(t){e.onContainerClick(t)},He(t,"mouseleave",e.onContainerMouseLeave),1===Ne&&He(oe,"mouseup",e.onDocumentMouseUp),I&&(t.ontouchstart=function(t){e.onContainerTouchStart(t)},t.ontouchmove=function(t){e.onContainerTouchMove(t)},1===Ne&&He(oe,"touchend",e.onDocumentTouchEnd))},destroy:function(){var e;We(this.chart.container,"mouseleave",this.onContainerMouseLeave),Ne||(We(oe,"mouseup",this.onDocumentMouseUp),We(oe,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(e in this)this[e]=null}},Ke(re.Pointer.prototype,{pinchTranslate:function(e,t,n,i,r,o){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,e,t,n,i,r,o),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,e,t,n,i,r,o)},pinchTranslateDirection:function(e,t,n,i,r,o,a,s){var l,c,u,d=this.chart,p=e?"x":"y",h=e?"X":"Y",f="chart"+h,m=e?"width":"height",g=d["plot"+(e?"Left":"Top")],y=s||1,v=d.inverted,b=d.bounds[e?"h":"v"],k=1===t.length,x=t[0][f],w=n[0][f],E=!k&&t[1][f],P=!k&&n[1][f],n=function(){!k&&pe(x-E)>20&&(y=s||pe(w-P)/pe(x-E)),c=(g-w)/y+x,l=d["plot"+(e?"Width":"Height")]/y};n(),t=c,tb.max&&(t=b.max-l,u=!0),u?(w-=.8*(w-a[p][0]),k||(P-=.8*(P-a[p][1])),n()):a[p]=[w,P],v||(o[p]=c-g,o[m]=l),o=v?1/y:y,r[m]=l,r[p]=t,i[v?e?"scaleY":"scaleX":"scale"+h]=y,i["translate"+h]=o*g+(w-o*x)},pinch:function(e){var t=this,n=t.chart,i=t.pinchDown,r=e.touches,o=r.length,a=t.lastValidTouch,s=t.hasZoom,l=t.selectionMarker,c={},u=1===o&&(t.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||t.runChartClick),d={};o>1&&(t.initiated=!0),s&&t.initiated&&!u&&e.preventDefault(),Ve(r,function(e){return t.normalize(e)}),"touchstart"===e.type?(Ue(r,function(e,t){i[t]={chartX:e.chartX,chartY:e.chartY}}),a.x=[i[0].chartX,i[1]&&i[1].chartX],a.y=[i[0].chartY,i[1]&&i[1].chartY],Ue(n.axes,function(e){if(e.zoomEnabled){var t=n.bounds[e.horiz?"h":"v"],i=e.minPixelPadding,r=e.toPixels(Ze(e.options.min,e.dataMin)),o=e.toPixels(Ze(e.options.max,e.dataMax)),a=de(r,o),r=ue(r,o);t.min=de(e.pos,a-i),t.max=ue(e.pos+e.len,r+i)}}),t.res=!0):i.length&&(l||(t.selectionMarker=l=Ke({destroy:Me,touch:!0},n.plotBox)),t.pinchTranslate(i,r,c,l,d,a),t.hasPinched=s,t.scaleGroups(c,d),!s&&t.followTouchMove&&1===o?this.runPointActions(t.normalize(e)):t.res&&(t.res=!1,this.reset(!1,0)))},touch:function(e,t){var n,i=this.chart;st=i.index,1===e.touches.length?(e=this.normalize(e),i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)&&!i.openMenu?(t&&this.runPointActions(e),"touchmove"===e.type&&(i=this.pinchDown,n=!!i[0]&&Math.sqrt(Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2))>=4),Ze(n,!0)&&this.pinch(e)):t&&this.reset()):2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(e){ -this.touch(e,!0)},onContainerTouchMove:function(e){this.touch(e)},onDocumentTouchEnd:function(e){De[st]&&De[st].pointer.drop(e)}}),e.PointerEvent||e.MSPointerEvent){var ct={},ut=!!e.PointerEvent,dt=function(){var e,t=[];t.item=function(e){return this[e]};for(e in ct)ct.hasOwnProperty(e)&&t.push({pageX:ct[e].pageX,pageY:ct[e].pageY,target:ct[e].target});return t},pt=function(e,t,n,i){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!De[st]||(i(e),i=De[st].pointer,i[t]({type:n,target:e.currentTarget,preventDefault:Me,touches:dt()}))};Ke(lt.prototype,{onContainerPointerDown:function(e){pt(e,"onContainerTouchStart","touchstart",function(e){ct[e.pointerId]={pageX:e.pageX,pageY:e.pageY,target:e.currentTarget}})},onContainerPointerMove:function(e){pt(e,"onContainerTouchMove","touchmove",function(e){ct[e.pointerId]={pageX:e.pageX,pageY:e.pageY},ct[e.pointerId].target||(ct[e.pointerId].target=e.currentTarget)})},onDocumentPointerUp:function(e){pt(e,"onDocumentTouchEnd","touchend",function(e){delete ct[e.pointerId]})},batchMSEvents:function(e){e(this.chart.container,ut?"pointerdown":"MSPointerDown",this.onContainerPointerDown),e(this.chart.container,ut?"pointermove":"MSPointerMove",this.onContainerPointerMove),e(oe,ut?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),$e(lt.prototype,"init",function(e,t,n){e.call(this,t,n),this.hasZoom&&h(t.container,{"-ms-touch-action":"none","touch-action":"none"})}),$e(lt.prototype,"setDOMEvents",function(e){e.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(He)}),$e(lt.prototype,"destroy",function(e){this.batchMSEvents(We),e.call(this)})}var ht=re.Legend=function(e,t){this.init(e,t)};ht.prototype={init:function(e,t){var n=this,r=t.itemStyle,o=t.itemMarginTop||0;this.options=t,t.enabled&&(n.itemStyle=r,n.itemHiddenStyle=i(r,t.itemHiddenStyle),n.itemMarginTop=o,n.padding=r=Ze(t.padding,8),n.initialItemX=r,n.initialItemY=r-5,n.maxItemWidth=0,n.chart=e,n.itemHeight=0,n.symbolWidth=Ze(t.symbolWidth,16),n.pages=[],n.render(),He(n.chart,"endResize",function(){n.positionCheckboxes()}))},colorizeItem:function(e,t){var n,i=this.options,r=e.legendItem,o=e.legendLine,a=e.legendSymbol,s=this.itemHiddenStyle.color,i=t?i.itemStyle.color:s,l=t?e.legendColor||e.color||"#CCC":s,s=e.options&&e.options.marker,c={fill:l};if(r&&r.css({fill:i,color:i}),o&&o.attr({stroke:l}),a){if(s&&a.isMarker)for(n in c.stroke=l,s=e.convertAttribs(s))r=s[n],r!==A&&(c[n]=r);a.attr(c)}},positionItem:function(e){var t=this.options,n=t.symbolPadding,t=!t.rtl,i=e._legendItemPos,r=i[0],i=i[1],o=e.checkbox;(e=e.legendGroup)&&e.element&&e.translate(t?r:this.legendWidth-r-2*n-4,i),o&&(o.x=r,o.y=i)},destroyItem:function(e){var t=e.checkbox;Ue(["legendItem","legendLine","legendSymbol","legendGroup"],function(t){e[t]&&(e[t]=e[t].destroy())}),t&&C(e.checkbox)},destroy:function(){var e=this.group,t=this.box;t&&(this.box=t.destroy()),e&&(this.group=e.destroy())},positionCheckboxes:function(e){var t,n=this.group.alignAttr,i=this.clipHeight||this.legendHeight,r=this.titleHeight;n&&(t=n.translateY,Ue(this.allItems,function(o){var a,s=o.checkbox;s&&(a=t+r+s.y+(e||0)+3,h(s,{left:n.translateX+o.checkboxOffset+s.x-20+"px",top:a+"px",display:a>t-6&&a(h||t.chartWidth-2*u-g-r.x)&&(this.itemX=g,this.itemY+=m+this.lastLineHeight+f,this.lastLineHeight=0),this.maxItemWidth=ue(this.maxItemWidth,a),this.lastItemY=m+this.itemY+f,this.lastLineHeight=ue(s,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=a:(this.itemY+=m+s+f,this.lastLineHeight=s),this.offsetWidth=h||ue((o?this.itemX-g-d:a)+u,this.offsetWidth)},getAllItems:function(){var e=[];return Ue(this.chart.series,function(t){var n=t.options;Ze(n.showInLegend,!c(n.linkedTo)&&A,!0)&&(e=e.concat(t.legendItems||("point"===n.legendType?t.data:t)))}),e},adjustMargins:function(e,t){var n=this.chart,i=this.options,r=i.align.charAt(0)+i.verticalAlign.charAt(0)+i.layout.charAt(0);this.display&&!i.floating&&Ue([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,a){o.test(r)&&!c(e[a])&&(n[je[a]]=ue(n[je[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*i[a%2?"x":"y"]+Ze(i.margin,12)+t[a]))})},render:function(){var e,t,n,i,r=this,o=r.chart,a=o.renderer,s=r.group,l=r.box,c=r.options,u=r.padding,d=c.borderWidth,p=c.backgroundColor;r.itemX=r.initialItemX,r.itemY=r.initialItemY,r.offsetWidth=0,r.lastItemY=0,s||(r.group=s=a.g("legend").attr({zIndex:7}).add(),r.contentGroup=a.g().attr({zIndex:1}).add(s),r.scrollGroup=a.g().add(r.contentGroup)),r.renderTitle(),e=r.getAllItems(),x(e,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),c.reversed&&e.reverse(),r.allItems=e,r.display=t=!!e.length,r.lastLineHeight=0,Ue(e,function(e){r.renderItem(e)}),n=(c.width||r.offsetWidth)+u,i=r.lastItemY+r.lastLineHeight+r.titleHeight,i=r.handleOverflow(i),i+=u,(d||p)&&(l?n>0&&i>0&&(l[l.isNew?"attr":"animate"](l.crisp({width:n,height:i})),l.isNew=!1):(r.box=l=a.rect(0,0,n,i,c.borderRadius,d||0).attr({stroke:c.borderColor,"stroke-width":d||0,fill:p||"none"}).add(s).shadow(c.shadow),l.isNew=!0),l[t?"show":"hide"]()),r.legendWidth=n,r.legendHeight=i,Ue(e,function(e){r.positionItem(e)}),t&&s.align(Ke({width:n,height:i},c),!0,"spacingBox"),o.isResizing||this.positionCheckboxes()},handleOverflow:function(e){var t,n,i=this,r=this.chart,o=r.renderer,a=this.options,s=a.y,s=r.spacingBox.height+("top"===a.verticalAlign?-s:s)-this.padding,l=a.maxHeight,c=this.clipRect,u=a.navigation,d=Ze(u.animation,!0),p=u.arrowSize||12,h=this.nav,f=this.pages,m=this.padding,g=this.allItems,y=function(e){c.attr({height:e}),i.contentGroup.div&&(i.contentGroup.div.style.clip="rect("+m+"px,9999px,"+(m+e)+"px,0)")};return"horizontal"===a.layout&&(s/=2),l&&(s=de(s,l)),f.length=0,e>s&&u.enabled!==!1?(this.clipHeight=t=ue(s-20-this.titleHeight-m,0),this.currentPage=Ze(this.currentPage,1),this.fullHeight=e,Ue(g,function(e,i){var r=e._legendItemPos[1],o=se(e.legendItem.getBBox().height),a=f.length;(!a||r-f[a-1]>t&&(n||r)!==f[a-1])&&(f.push(n||r),a++),i===g.length-1&&r+o-f[a-1]>t&&f.push(r),r!==n&&(n=r)}),c||(c=i.clipRect=o.clipRect(0,m,9999,0),i.contentGroup.clip(c)),y(t),h||(this.nav=h=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,p,p).on("click",function(){i.scroll(-1,d)}).add(h),this.pager=o.text("",15,10).css(u.style).add(h),this.down=o.symbol("triangle-down",0,0,p,p).on("click",function(){i.scroll(1,d)}).add(h)),i.scroll(0),e=s):h&&(y(r.chartHeight),h.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},scroll:function(e,t){var n=this.pages,i=n.length,r=this.currentPage+e,o=this.clipHeight,a=this.options.navigation,s=a.activeColor,a=a.inactiveColor,l=this.pager,c=this.padding;r>i&&(r=i),r>0&&(t!==A&&S(t,this.chart),this.nav.attr({translateX:c,translateY:o+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===r?a:s}).css({cursor:1===r?"default":"pointer"}),l.attr({text:r+"/"+i}),this.down.attr({x:18+this.pager.getBBox().width,fill:r===i?a:s}).css({cursor:r===i?"default":"pointer"}),n=-n[r-1]+this.initialItemY,this.scrollGroup.animate({translateY:n}),this.currentPage=r,this.positionCheckboxes(n))}},nt=re.LegendSymbolMixin={drawRectangle:function(e,t){var n=e.options.symbolHeight||e.fontMetrics.f;t.legendSymbol=this.chart.renderer.rect(0,e.baseline-n+1,e.symbolWidth,n,e.options.symbolRadius||0).attr({zIndex:3}).add(t.legendGroup)},drawLineMarker:function(e){var t,n=this.options,i=n.marker,r=e.symbolWidth,o=this.chart.renderer,a=this.legendGroup,e=e.baseline-se(.3*e.fontMetrics.b);n.lineWidth&&(t={"stroke-width":n.lineWidth},n.dashStyle&&(t.dashstyle=n.dashStyle),this.legendLine=o.path(["M",0,e,"L",r,e]).attr(t).add(a)),i&&i.enabled!==!1&&(n=i.radius,this.legendSymbol=i=o.symbol(this.symbol,r/2-n,e-n,2*n,2*n,i).add(a),i.isMarker=!0)}},(/Trident\/7\.0/.test(ye)||we)&&$e(ht.prototype,"positionItem",function(e,t){var n=this,i=function(){t._legendItemPos&&e.call(n,t)};i(),setTimeout(i)});var ft=re.Chart=function(){this.getArgs.apply(this,arguments)};re.chart=function(e,t,n){return new ft(e,t,n)},ft.prototype={callbacks:[],getArgs:function(){var e=[].slice.call(arguments);(o(e[0])||e[0].nodeName)&&(this.renderTo=e.shift()),this.init(e[0],e[1])},init:function(e,t){var n,r=e.series;e.series=null,n=i(F,e),n.series=e.series=r,this.userOptions=e,r=n.chart,this.margin=this.splashArray("margin",r),this.spacing=this.splashArray("spacing",r);var o=r.events;this.bounds={h:{},v:{}},this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=r.showAxes;var a,s=this;if(s.index=De.length,De.push(s),Ne++,r.reflow!==!1&&He(s,"load",function(){s.initReflow()}),o)for(a in o)He(s,a,o[a]);s.xAxis=[],s.yAxis=[],s.animation=!Se&&Ze(r.animation,!0),s.pointCount=s.colorCounter=s.symbolCounter=0,s.firstRender()},initSeries:function(e){var n=this.options.chart;return(n=Ie[e.type||n.type||n.defaultSeriesType])||t(17,!0),n=new n,n.init(this,e),n},isInsidePlot:function(e,t,n){var i=n?t:e,e=n?e:t;return i>=0&&i<=this.plotWidth&&e>=0&&e<=this.plotHeight},redraw:function(e){var t,n,i=this.axes,r=this.series,o=this.pointer,a=this.legend,s=this.isDirtyLegend,l=this.hasCartesianSeries,c=this.isDirtyBox,u=r.length,d=u,p=this.renderer,h=p.isHidden(),f=[];for(S(e,this),h&&this.cloneRenderTo(),this.layOutTitles();d--;)if(e=r[d],e.options.stacking&&(t=!0,e.isDirty)){n=!0;break}if(n)for(d=u;d--;)e=r[d],e.options.stacking&&(e.isDirty=!0);Ue(r,function(e){e.isDirty&&"point"===e.options.legendType&&(e.updateTotals&&e.updateTotals(),s=!0),e.isDirtyData&&ze(e,"updatedData")}),s&&a.options.enabled&&(a.render(),this.isDirtyLegend=!1),t&&this.getStacks(),l&&!this.isResizing&&(this.maxTicks=null,Ue(i,function(e){e.setScale()})),this.getMargins(),l&&(Ue(i,function(e){e.isDirty&&(c=!0)}),Ue(i,function(e){var n=e.min+","+e.max;e.extKey!==n&&(e.extKey=n,f.push(function(){ze(e,"afterSetExtremes",Ke(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(c||t)&&e.redraw()})),c&&this.drawChartBox(),Ue(r,function(e){e.isDirty&&e.visible&&(!e.isCartesian||e.xAxis)&&e.redraw()}),o&&o.reset(!0),p.draw(),ze(this,"redraw"),h&&this.cloneRenderTo(!0),Ue(f,function(e){e.call()})},get:function(e){var t,n,i=this.axes,r=this.series;for(t=0;t19?this.containerHeight:400))},cloneRenderTo:function(e){var t=this.renderToClone,n=this.container;e?t&&(this.renderTo.appendChild(n),C(t),delete this.renderToClone):(n&&n.parentNode===this.renderTo&&this.renderTo.removeChild(n),this.renderToClone=t=this.renderTo.cloneNode(0),h(t,{position:"absolute",top:"-9999px",display:"block"}),t.style.setProperty&&t.style.setProperty("display","block","important"),oe.body.appendChild(t),n&&t.appendChild(n))},getContainer:function(){var e,n,i,a=this.options,s=a.chart;e=this.renderTo;var l="highcharts-"+Oe++;e||(this.renderTo=e=s.renderTo),o(e)&&(this.renderTo=e=oe.getElementById(e)),e||t(13,!0),n=r(u(e,"data-highcharts-chart")),Qe(n)&&De[n]&&De[n].hasRendered&&De[n].destroy(),u(e,"data-highcharts-chart",this.index),e.innerHTML="",!s.skipClone&&!e.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),n=this.chartWidth,i=this.chartHeight,this.container=e=f(Re,{className:"highcharts-container"+(s.className?" "+s.className:""),id:l},Ke({position:"relative",overflow:"hidden",width:n+"px",height:i+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},s.style),this.renderToClone||e),this._cursor=e.style.cursor,this.renderer=new(re[s.renderer]||j)(e,n,i,s.style,s.forExport,a.exporting&&a.exporting.allowHTML),Se&&this.renderer.create(this,e,n,i),this.renderer.chartIndex=this.index},getMargins:function(e){var t=this.spacing,n=this.margin,i=this.titleOffset;this.resetMargins(),i&&!c(n[0])&&(this.plotTop=ue(this.plotTop,i+this.options.title.margin+t[0])),this.legend.adjustMargins(n,t),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),e||this.getAxisMargins()},getAxisMargins:function(){var e=this,t=e.axisOffset=[0,0,0,0],n=e.margin;e.hasCartesianSeries&&Ue(e.axes,function(e){e.visible&&e.getOffset()}),Ue(je,function(i,r){c(n[r])||(e[i]+=t[r])}),e.setChartSize()},reflow:function(t){var n=this,i=n.options.chart,r=n.renderTo,o=i.width||Le(r,"width"),a=i.height||Le(r,"height"),i=t?t.target:e;n.hasUserSize||n.isPrinting||!o||!a||i!==e&&i!==oe||(o===n.containerWidth&&a===n.containerHeight||(clearTimeout(n.reflowTimeout),n.reflowTimeout=p(function(){n.container&&(n.setSize(o,a,!1),n.hasUserSize=null)},t?100:0)),n.containerWidth=o,n.containerHeight=a)},initReflow:function(){var t=this,n=function(e){t.reflow(e)};He(e,"resize",n),He(t,"destroy",function(){We(e,"resize",n)})},setSize:function(e,t,n){var i,r,o=this,a=o.renderer;o.isResizing+=1,S(n,o),o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,c(e)&&(o.chartWidth=i=ue(0,se(e)),o.hasUserSize=!!i),c(t)&&(o.chartHeight=r=ue(0,se(t))),e=a.globalAnimation,(e?Ge:h)(o.container,{width:i+"px",height:r+"px"},e),o.setChartSize(!0),a.setSize(i,r,n),o.maxTicks=null,Ue(o.axes,function(e){e.isDirty=!0,e.setScale()}),Ue(o.series,function(e){e.isDirty=!0}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(n),o.oldChartHeight=null,ze(o,"resize"),p(function(){o&&ze(o,"endResize",null,function(){o.isResizing-=1})},_(e).duration)},setChartSize:function(e){var t,n,i,r,o=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,u=this.spacing,d=this.clipOffset;this.plotLeft=t=se(this.plotLeft),this.plotTop=n=se(this.plotTop),this.plotWidth=i=ue(0,se(s-t-this.marginRight)),this.plotHeight=r=ue(0,se(l-n-this.marginBottom)),this.plotSizeX=o?r:i,this.plotSizeY=o?i:r,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:u[3],y:u[0],width:s-u[3]-u[1],height:l-u[0]-u[2]},this.plotBox=a.plotBox={x:t,y:n,width:i,height:r},s=2*le(this.plotBorderWidth/2),o=ce(ue(s,d[3])/2),a=ce(ue(s,d[0])/2),this.clipBox={x:o,y:a,width:le(this.plotSizeX-ue(s,d[1])/2-o),height:ue(0,le(this.plotSizeY-ue(s,d[2])/2-a))},e||Ue(this.axes,function(e){e.setAxisSize(),e.setAxisTranslation()})},resetMargins:function(){var e=this;Ue(je,function(t,n){e[t]=Ze(e.margin[n],e.spacing[n])}),e.axisOffset=[0,0,0,0],e.clipOffset=[0,0,0,0]},drawChartBox:function(){var e,t=this.options.chart,n=this.renderer,i=this.chartWidth,r=this.chartHeight,o=this.chartBackground,a=this.plotBackground,s=this.plotBorder,l=this.plotBGImage,c=t.borderWidth||0,u=t.backgroundColor,d=t.plotBackgroundColor,p=t.plotBackgroundImage,h=t.plotBorderWidth||0,f=this.plotLeft,m=this.plotTop,g=this.plotWidth,y=this.plotHeight,v=this.plotBox,b=this.clipRect,k=this.clipBox;e=c+(t.shadow?8:0),(c||u)&&(o?o.animate(o.crisp({width:i-e,height:r-e})):(o={fill:u||"none"},c&&(o.stroke=t.borderColor,o["stroke-width"]=c),this.chartBackground=n.rect(e/2,e/2,i-e,r-e,t.borderRadius,c).attr(o).addClass("highcharts-background").add().shadow(t.shadow))),d&&(a?a.animate(v):this.plotBackground=n.rect(f,m,g,y,0).attr({fill:d}).add().shadow(t.plotShadow)),p&&(l?l.animate(v):this.plotBGImage=n.image(p,f,m,g,y).add()),b?b.animate({width:k.width,height:k.height}):this.clipRect=n.clipRect(k),h&&(s?(s.strokeWidth=-h,s.animate(s.crisp({x:f,y:m,width:g,height:y}))):this.plotBorder=n.rect(f,m,g,y,0,-h).attr({stroke:t.plotBorderColor,"stroke-width":h,fill:"none",zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var e,t,n,i=this,r=i.options.chart,o=i.options.series;Ue(["inverted","angular","polar"],function(a){for(e=Ie[r.type||r.defaultSeriesType],n=i[a]||r[a]||e&&e.prototype[a],t=o&&o.length;!n&&t--;)(e=Ie[o[t].type])&&e.prototype[a]&&(n=!0);i[a]=n})},linkSeries:function(){var e=this,t=e.series;Ue(t,function(e){e.linkedSeries.length=0}),Ue(t,function(t){var n=t.options.linkedTo;o(n)&&(n=":previous"===n?e.series[t.index-1]:e.get(n))&&(n.linkedSeries.push(t),t.linkedParent=n,t.visible=Ze(t.options.visible,n.options.visible,t.visible))})},renderSeries:function(){Ue(this.series,function(e){e.translate(),e.render()})},renderLabels:function(){var e=this,t=e.options.labels;t.items&&Ue(t.items,function(n){var i=Ke(t.style,n.style),o=r(i.left)+e.plotLeft,a=r(i.top)+e.plotTop+12;delete i.left,delete i.top,e.renderer.text(n.html,o,a).attr({zIndex:2}).css(i).add()})},render:function(){var e,t,n,i,r=this.axes,o=this.renderer,a=this.options;this.setTitle(),this.legend=new ht(this,a.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),e=this.plotWidth,t=this.plotHeight-=21,Ue(r,function(e){e.setScale()}),this.getAxisMargins(),n=e/this.plotWidth>1.1,i=t/this.plotHeight>1.05,(n||i)&&(this.maxTicks=null,Ue(r,function(e){(e.horiz&&n||!e.horiz&&i)&&e.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&Ue(r,function(e){e.visible&&e.render()}),this.seriesGroup||(this.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.showCredits(a.credits),this.hasRendered=!0},showCredits:function(t){t.enabled&&!this.credits&&(this.credits=this.renderer.text(t.text,0,0).on("click",function(){t.href&&(e.location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position))},destroy:function(){var e,t=this,n=t.axes,i=t.series,r=t.container,o=r&&r.parentNode;for(ze(t,"destroy"),De[t.index]=A,Ne--,t.renderTo.removeAttribute("data-highcharts-chart"),We(t),e=n.length;e--;)n[e]=n[e].destroy();for(e=i.length;e--;)i[e]=i[e].destroy();Ue("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(e){var n=t[e];n&&n.destroy&&(t[e]=n.destroy())}),r&&(r.innerHTML="",We(r),o&&C(r));for(e in t)delete t[e]},isReadyToRender:function(){var t=this;return!(!Ce&&e==e.top&&"complete"!==oe.readyState||Se&&!e.canvg)||(Se?rt.push(function(){t.firstRender()},t.options.global.canvasToolsURL):oe.attachEvent("onreadystatechange",function(){oe.detachEvent("onreadystatechange",t.firstRender),"complete"===oe.readyState&&t.firstRender()}),!1)},firstRender:function(){var e=this,t=e.options;e.isReadyToRender()&&(e.getContainer(),ze(e,"init"),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes(),Ue(t.series||[],function(t){e.initSeries(t)}),e.linkSeries(),ze(e,"beforeRender"),re.Pointer&&(e.pointer=new lt(e,t)),e.render(),e.renderer.draw(),!e.renderer.imgCount&&e.onload&&e.onload(),e.cloneRenderTo(!0))},onload:function(){var e=this;Ue([this.callback].concat(this.callbacks),function(t){t&&void 0!==e.index&&t.apply(e,[e])}),ze(e,"load"),this.onload=null},splashArray:function(e,t){var n=t[e],n=a(n)?n:[n,n,n,n];return[Ze(t[e+"Top"],n[0]),Ze(t[e+"Right"],n[1]),Ze(t[e+"Bottom"],n[2]),Ze(t[e+"Left"],n[3])]}};var it=re.CenteredSeriesMixin={getCenter:function(){var e,t,n=this.options,i=this.chart,r=2*(n.slicedOffset||0),o=i.plotWidth-2*r,i=i.plotHeight-2*r,a=n.center,a=[Ze(a[0],"50%"),Ze(a[1],"50%"),n.size||"100%",n.innerSize||0],s=de(o,i);for(e=0;e<4;++e)t=a[e],n=e<2||2===e&&/%$/.test(t),a[e]=(/%$/.test(t)?[o,i,s,a[2]][e]*parseFloat(t)/100:parseFloat(t))+(n?r:0);return a[3]>a[2]&&(a[3]=a[2]),a}},mt=function(){};mt.prototype={init:function(e,t,n){return this.series=e,this.color=e.color,this.applyOptions(t,n),this.pointAttr={},e.options.colorByPoint&&(t=e.options.colors||e.chart.options.colors,this.color=this.color||t[e.colorCounter++],e.colorCounter===t.length)&&(e.colorCounter=0),e.chart.pointCount++,this},applyOptions:function(e,t){var n=this.series,i=n.options.pointValKey||n.pointValKey,e=mt.prototype.optionsToObject.call(this,e);return Ke(this,e),this.options=this.options?Ke(this.options,e):e,i&&(this.y=this[i]),this.isNull=null===this.x||null===this.y,void 0===this.x&&n&&(this.x=void 0===t?n.autoIncrement():t),this},optionsToObject:function(e){var t={},n=this.series,i=n.options.keys,r=i||n.pointArrayMap||["y"],o=r.length,a=0,l=0;if(Qe(e)||null===e)t[r[0]]=e;else if(s(e))for(!i&&e.length>o&&(n=typeof e[0],"string"===n?t.name=e[0]:"number"===n&&(t.x=e[0]),a++);ly){for(i=0;null===f&&il||this.forceCrop)&&(i[o-1]p?(i=[],r=[]):(i[0]p)&&(n=this.cropData(this.xData,this.yData,d,p),i=n.xData,r=n.yData,n=n.start,a=!0)),l=i.length||1;--l;)o=m?u(i[l])-u(i[l-1]):i[l]-i[l-1],o>0&&(s===A||o=n){a=ue(0,r-l);break}for(n=r;ni){s=n+l;break}return{xData:e.slice(a,s),yData:t.slice(a,s),start:a,end:s}},generatePoints:function(){var e,t,n,i,r=this.options.data,o=this.data,a=this.processedXData,s=this.processedYData,l=this.pointClass,c=a.length,u=this.cropStart||0,p=this.hasGroupedData,h=[];for(o||p||(o=[],o.length=r.length,o=this.data=o),i=0;i0),s=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(i[c+1]||s)>=u&&(i[c-1]||s)<=d,a&&s)if(a=l.length)for(;a--;)null!==l[a]&&(r[o++]=l[a]);else r[o++]=l;this.dataMin=w(r),this.dataMax=E(r)},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var e,n,i,r,o=this.options,a=o.stacking,s=this.xAxis,l=s.categories,u=this.yAxis,d=this.points,p=d.length,h=!!this.modifyValue,f=o.pointPlacement,m="between"===f||Qe(f),g=o.threshold,y=o.startFromThreshold?g:0,v=Number.MAX_VALUE,o=0;o=0&&n<=u.len&&e>=0&&e<=s.len,b.clientX=m?s.translate(k,0,0,0,1):e,b.negative=b.y<(g||0),b.category=l&&l[b.x]!==A?l[b.x]:b.x,b.isNull||(void 0!==i&&(v=de(v,pe(e-i))),i=e)}this.closestPointRangePx=v},getValidPoints:function(e,t){var n=this.chart;return Be(e||this.points||[],function(e){return!(t&&!n.isInsidePlot(e.plotX,e.plotY,n.inverted))&&!e.isNull})},setClip:function(e){var t=this.chart,n=this.options,i=t.renderer,r=t.inverted,o=this.clipBox,a=o||t.clipBox,s=this.sharedClipKey||["_sharedClip",e&&e.duration,e&&e.easing,a.height,n.xAxis,n.yAxis].join(","),l=t[s],c=t[s+"m"];l||(e&&(a.width=0,t[s+"m"]=c=i.clipRect(-99,r?-t.plotLeft:-t.plotTop,99,r?t.chartWidth:t.chartHeight)),t[s]=l=i.clipRect(a)),e&&(l.count+=1),n.clip!==!1&&(this.group.clip(e||o?l:t.clipRect),this.markerGroup.clip(c),this.sharedClipKey=s),e||(l.count-=1,l.count<=0&&s&&t[s]&&(o||(t[s]=t[s].destroy()),t[s+"m"]&&(t[s+"m"]=t[s+"m"].destroy())))},animate:function(e){var t,n=this.chart,i=this.options.animation;i&&!a(i)&&(i=Je[this.type].animation),e?this.setClip(i):(t=this.sharedClipKey,(e=n[t])&&e.animate({width:n.plotSizeX},i),n[t+"m"]&&n[t+"m"].animate({width:n.plotSizeX+99},i),this.animate=null)},afterAnimate:function(){this.setClip(),ze(this,"afterAnimate")},drawPoints:function(){var e,t,n,i,r,o,a,s,l,c,u,d,p=this.points,h=this.chart,f=this.options.marker,m=this.pointAttr[""],g=this.markerGroup,y=Ze(f.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*f.radius);if(f.enabled!==!1||this._hasPointMarkers)for(i=p.length;i--;)r=p[i],t=le(r.plotX),n=r.plotY,l=r.graphic,c=r.marker||{},u=!!r.marker,e=y&&c.enabled===A||c.enabled,d=r.isInside,e&&Qe(n)&&null!==r.y?(e=r.pointAttr[r.selected?"select":""]||m,o=e.r,a=Ze(c.symbol,this.symbol),s=0===a.indexOf("url"),l?l[d?"show":"hide"](!0).attr(e).animate(Ke({x:t-o,y:n-o},l.symbolName?{width:2*o,height:2*o}:{})):d&&(o>0||s)&&(r.graphic=h.renderer.symbol(a,t-o,n-o,2*o,2*o,u?c:f).attr(e).add(g))):l&&(r.graphic=l.destroy())},convertAttribs:function(e,t,n,i){var r,o,a=this.pointAttrToOptions,s={},e=e||{},t=t||{},n=n||{},i=i||{};for(r in a)o=a[r],s[r]=Ze(e[o],t[r],n[r],i[r]);return s},getAttribs:function(){var e,t,n,i=this,r=i.options,o=Je[i.type].marker?r.marker:r,a=o.states,s=a.hover,l=i.color,u=i.options.negativeColor,d={stroke:l,fill:l},p=i.points||[],h=[],f=i.pointAttrToOptions;e=i.hasPointSpecificOptions;var m=o.lineColor,g=o.fillColor;t=r.turboThreshold;var y,v,b=i.zones,k=i.zoneAxis||"y";if(r.marker?(s.radius=s.radius||o.radius+s.radiusPlus,s.lineWidth=s.lineWidth||o.lineWidth+s.lineWidthPlus):(s.color=s.color||M(s.color||l).brighten(s.brightness).get(),s.negativeColor=s.negativeColor||M(s.negativeColor||u).brighten(s.brightness).get()),h[""]=i.convertAttribs(o,d),Ue(["hover","select"],function(e){h[e]=i.convertAttribs(a[e],h[""])}),i.pointAttr=h,l=p.length,!t||l=d.value;)d=b[++e];t.color=t.fillColor=d=Ze(d.color,i.color)}if(e=r.colorByPoint||t.color,t.options)for(v in f)c(o[f[v]])&&(e=!0);e?(o=o||{},n=[],a=o.states||{},e=a.hover=a.hover||{},r.marker&&(!t.negative||e.fillColor||s.fillColor)||(e[i.pointAttrToOptions.fill]=e.color||!t.options.color&&s[t.negative&&u?"negativeColor":"color"]||M(t.color).brighten(e.brightness||s.brightness).get()),y={color:t.color},g||(y.fillColor=t.color),m||(y.lineColor=t.color),o.hasOwnProperty("color")&&!o.color&&delete o.color,d&&!s.fillColor&&(e.fillColor=d),n[""]=i.convertAttribs(Ke(y,o),h[""]),n.hover=i.convertAttribs(a.hover,h.hover,n[""]),n.select=i.convertAttribs(a.select,h.select,n[""])):n=h,t.pointAttr=n}},destroy:function(){var e,t,n,i,r=this,o=r.chart,a=/AppleWebKit\/533/.test(ye),s=r.data||[];for(ze(r,"destroy"),We(r),Ue(r.axisTypes||[],function(e){(i=r[e])&&(l(i.series,r),i.isDirty=i.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),e=s.length;e--;)(t=s[e])&&t.destroy&&t.destroy();r.points=null,clearTimeout(r.animationTimeout);for(n in r)r[n]instanceof D&&!r[n].survive&&(e=a&&"group"===n?"hide":"destroy",r[n][e]());o.hoverSeries===r&&(o.hoverSeries=null),l(o.series,r);for(n in r)delete r[n]},getGraphPath:function(e,t,n){var i,r,o=this,a=o.options,s=a.step,l=[],e=e||o.points;return(i=e.reversed)&&e.reverse(),(s={right:1,center:2}[s]||s&&3)&&i&&(s=4-s),a.connectNulls&&!t&&!n&&(e=this.getValidPoints(e)),Ue(e,function(i,u){var d=i.plotX,p=i.plotY,h=e[u-1];(i.leftCliff||h&&h.rightCliff)&&!n&&(r=!0),i.isNull&&!c(t)&&u>0?r=!a.connectNulls:i.isNull&&!t?r=!0:(0===u||r?h=["M",i.plotX,i.plotY]:o.getPointSpline?h=o.getPointSpline(e,i,u):s?(h=1===s?["L",h.plotX,p]:2===s?["L",(h.plotX+d)/2,h.plotY,"L",(h.plotX+d)/2,p]:["L",d,h.plotY],h.push("L",d,p)):h=["L",d,p],l.push.apply(l,h),r=!1)}),o.graphPath=l},drawGraph:function(){var e=this,t=this.options,n=[["graph",t.lineColor||this.color,t.dashStyle]],i=t.lineWidth,r="square"!==t.linecap,o=(this.gappedPath||this.getGraphPath).call(this),a=this.fillGraph&&this.color||"none";Ue(this.zones,function(i,r){n.push(["zoneGraph"+r,i.color||e.color,i.dashStyle||t.dashStyle])}),Ue(n,function(n,s){var l=n[0],c=e[l];c?c.animate({d:o}):(i||a)&&o.length&&(c={stroke:n[1],"stroke-width":i,fill:a,zIndex:1},n[2]?c.dashstyle=n[2]:r&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),e[l]=e.chart.renderer.path(o).attr(c).add(e.group).shadow(s<2&&t.shadow))})},applyZones:function(){var e,t,n,i,r,o,a,s=this,l=this.chart,c=l.renderer,u=this.zones,d=this.clips||[],p=this.graph,h=this.area,f=ue(l.chartWidth,l.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],g=m.reversed,y=l.inverted,v=m.horiz,b=!1;u.length&&(p||h)&&m.min!==A&&(p&&p.hide(),h&&h.hide(),i=m.getExtremes(),Ue(u,function(u,k){e=g?v?l.plotWidth:0:v?0:m.toPixels(i.min),e=de(ue(Ze(t,e),0),f),t=de(ue(se(m.toPixels(Ze(u.value,i.max),!0)),0),f),b&&(e=t=m.toPixels(i.max)),r=Math.abs(e-t),o=de(e,t),a=ue(e,t),m.isXAxis?(n={x:y?a:o,y:0,width:r,height:f},v||(n.x=l.plotHeight-n.x)):(n={x:0,y:y?a:o,width:f,height:r},v&&(n.y=l.plotWidth-n.y)),l.inverted&&c.isVML&&(n=m.isXAxis?{x:0,y:g?o:a,height:n.width,width:l.chartWidth}:{x:n.y-l.plotLeft-l.spacingBox.x,y:0,width:n.height,height:l.chartHeight}),d[k]?d[k].animate(n):(d[k]=c.clipRect(n),p&&s["zoneGraph"+k].clip(d[k]),h&&s["zoneArea"+k].clip(d[k])),b=u.value>i.max}),this.clips=d)},invertGroups:function(){function e(){var e={width:t.yAxis.len,height:t.xAxis.len};Ue(["group","markerGroup"],function(n){t[n]&&t[n].attr(e).invert()})}var t=this,n=t.chart;t.xAxis&&(He(n,"resize",e),He(t,"destroy",function(){We(n,"resize",e)}),e(),t.invertGroups=e)},plotGroup:function(e,t,n,i,r){var o=this[e],a=!o;return a&&(this[e]=o=this.chart.renderer.g(t).attr({zIndex:i||.1}).add(r),o.addClass("highcharts-series-"+this.index)),o.attr({visibility:n})[a?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var e=this.chart,t=this.xAxis,n=this.yAxis;return e.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:e.plotLeft,translateY:n?n.top:e.plotTop,scaleX:1,scaleY:1}},render:function(){var e,t=this,n=t.chart,i=t.options,r=!!t.animate&&n.renderer.isSVG&&_(i.animation).duration,o=t.visible?"inherit":"hidden",a=i.zIndex,s=t.hasRendered,l=n.seriesGroup;e=t.plotGroup("group","series",o,a,l),t.markerGroup=t.plotGroup("markerGroup","markers",o,a,l),r&&t.animate(!0),t.getAttribs(),e.inverted=!!t.isCartesian&&n.inverted,t.drawGraph&&(t.drawGraph(),t.applyZones()),Ue(t.points,function(e){e.redraw&&e.redraw()}),t.drawDataLabels&&t.drawDataLabels(),t.visible&&t.drawPoints(),t.drawTracker&&t.options.enableMouseTracking!==!1&&t.drawTracker(),n.inverted&&t.invertGroups(),i.clip!==!1&&!t.sharedClipKey&&!s&&e.clip(n.clipRect),r&&t.animate(),s||(t.animationTimeout=p(function(){t.afterAnimate()},r)),t.isDirty=t.isDirtyData=!1,t.hasRendered=!0},redraw:function(){var e=this.chart,t=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:Ze(i&&i.left,e.plotLeft),translateY:Ze(r&&r.top,e.plotTop)})),this.translate(),this.render(),t&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(e,t){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:r?i.len-e.chartX+i.pos:e.chartY-i.pos},t)},buildKDTree:function(){function e(n,i,r){var o,a;if(a=n&&n.length)return o=t.kdAxisArray[i%r],n.sort(function(e,t){return e[o]-t[o]}),a=Math.floor(a/2),{point:n[a],left:e(n.slice(0,a),i+1,r),right:e(n.slice(a+1),i+1,r)}}var t=this,n=t.kdDimensions;delete t.kdTree,p(function(){t.kdTree=e(t.getValidPoints(null,!t.directTouch),n,n)},t.options.kdNow?0:1)},searchKDTree:function(e,t){function n(e,t,s,l){var u,d,p=t.point,h=i.kdAxisArray[s%l],f=p;return d=c(e[r])&&c(p[r])?Math.pow(e[r]-p[r],2):null,u=c(e[o])&&c(p[o])?Math.pow(e[o]-p[o],2):null,u=(d||0)+(u||0),p.dist=c(u)?Math.sqrt(u):Number.MAX_VALUE,p.distX=c(d)?Math.sqrt(d):Number.MAX_VALUE,h=e[h]-p[h],u=h<0?"left":"right",d=h<0?"right":"left",t[u]&&(u=n(e,t[u],s+1,l),f=u[a]0&&this.singleStacks===!1&&(n.points[i][0]=n.points[this.index+","+o+",0"][0])),"percent"===d?(t=t?m:g,y&&b[t]&&b[t][o]?(t=b[t][o],n.total=t.total=ue(t.total,n.total)+pe(a)||0):n.total=T(n.total+(pe(a)||0))):n.total=T(n.total+(a||0)),n.cum=Ze(n.cum,h)+(a||0),null!==a&&(n.points[i].push(n.cum),c[r]=n.cum);"percent"===d&&(v.usePercentage=!0),this.stackedYData=c,v.oldStacks={}}},gt.prototype.setPercentStacks=function(){var e,t=this,n=t.stackKey,i=t.yAxis.stacks,r=t.processedXData;Ue([n,"-"+n],function(n){for(var o,a,s,l=r.length;l--;)a=r[l],e=t.getStackIndicator(e,a,t.index),o=(s=i[n]&&i[n][a])&&s.points[e.key],(a=o)&&(s=s.total?100/s.total:0,a[0]=T(a[0]*s),a[1]=T(a[1]*s),t.stackedYData[l]=a[1])})},gt.prototype.getStackIndicator=function(e,t,n){return c(e)&&e.x===t?e.index++:e={x:t,index:0},e.key=[n,t,e.index].join(","),e},Ke(ft.prototype,{addSeries:function(e,t,n){var i,r=this;return e&&(t=Ze(t,!0),ze(r,"addSeries",{options:e},function(){i=r.initSeries(e),r.isDirtyLegend=!0,r.linkSeries(),t&&r.redraw(n)})),i},addAxis:function(e,t,n,r){var o=t?"xAxis":"yAxis",a=this.options,e=i(e,{index:this[o].length,isX:t});new ot(this,e),a[o]=d(a[o]||{}),a[o].push(e),Ze(n,!0)&&this.redraw(r)},showLoading:function(e){var t=this,n=t.options,i=t.loadingDiv,r=n.loading,o=function(){i&&h(i,{left:t.plotLeft+"px",top:t.plotTop+"px",width:t.plotWidth+"px",height:t.plotHeight+"px"})};i||(t.loadingDiv=i=f(Re,{className:"highcharts-loading"},Ke(r.style,{zIndex:10,display:"none"}),t.container),t.loadingSpan=f("span",null,r.labelStyle,i),He(t,"redraw",o)),t.loadingSpan.innerHTML=e||n.lang.loading,t.loadingShown||(h(i,{opacity:0,display:""}),Ge(i,{opacity:r.style.opacity},{duration:r.showDuration||0}),t.loadingShown=!0),o()},hideLoading:function(){var e=this.options,t=this.loadingDiv;t&&Ge(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){h(t,{display:"none"})}}),this.loadingShown=!1}}),Ke(mt.prototype,{update:function(e,t,n,i){function r(){l.applyOptions(e),null===l.y&&u&&(l.graphic=u.destroy()),a(e)&&!s(e)&&(l.redraw=function(){u&&u.element&&e&&e.marker&&e.marker.symbol&&(l.graphic=u.destroy()),e&&e.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.redraw=null}),o=l.index,c.updateParallelArrays(l,o),h&&l.name&&(h[l.x]=l.name),p.data[o]=a(p.data[o])&&!s(p.data[o])?l.options:e,c.isDirty=c.isDirtyData=!0,!c.fixedBox&&c.hasCartesianSeries&&(d.isDirtyBox=!0),"point"===p.legendType&&(d.isDirtyLegend=!0),t&&d.redraw(n)}var o,l=this,c=l.series,u=l.graphic,d=c.chart,p=c.options,h=c.xAxis&&c.xAxis.names,t=Ze(t,!0);i===!1?r():l.firePointEvent("update",{options:e},r)},remove:function(e,t){this.series.removePoint(Fe(this,this.series.data),e,t)}}),Ke(gt.prototype,{addPoint:function(e,t,n,i){var r,o=this,a=o.options,s=o.data,l=o.graph,c=o.area,u=o.chart,d=o.xAxis&&o.xAxis.names,p=l&&l.shift||0,h=["graph","area"],l=a.data,f=o.xData;if(S(i,u),n){for(i=o.zones.length;i--;)h.push("zoneGraph"+i,"zoneArea"+i);Ue(h,function(e){o[e]&&(o[e].shift=p+(a.step?2:1))})}if(c&&(c.isArea=!0),t=Ze(t,!0),c={series:o},o.pointClass.prototype.applyOptions.apply(c,[e]),h=c.x,i=f.length,o.requireSorting&&hh;)i--;o.updateParallelArrays(c,"splice",i,0,0),o.updateParallelArrays(c,i),d&&c.name&&(d[h]=c.name),l.splice(i,0,e),r&&(o.data.splice(i,0,null),o.processData()),"point"===a.legendType&&o.generatePoints(),n&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),o.updateParallelArrays(c,"shift"),l.shift())),o.isDirty=!0,o.isDirtyData=!0,t&&(o.getAttribs(),u.redraw())},removePoint:function(e,t,n){var i=this,r=i.data,o=r[e],a=i.points,s=i.chart,l=function(){a&&a.length===r.length&&a.splice(e,1),r.splice(e,1),i.options.data.splice(e,1),i.updateParallelArrays(o||{series:i},"splice",e,1),o&&o.destroy(),i.isDirty=!0,i.isDirtyData=!0,t&&s.redraw()};S(n,s),t=Ze(t,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(e,t){var n=this,i=n.chart;ze(n,"remove",null,function(){n.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,i.linkSeries(),Ze(e,!0)&&i.redraw(t)})},update:function(e,t){var n,r=this,o=this.chart,a=this.userOptions,s=this.type,l=Ie[s].prototype,c=["group","markerGroup","dataLabelsGroup"];(e.type&&e.type!==s||void 0!==e.zIndex)&&(c.length=0),Ue(c,function(e){c[e]=r[e],delete r[e]}),e=i(a,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},e),this.remove(!1);for(n in l)this[n]=A;Ke(this,Ie[e.type||s].prototype),Ue(c,function(e){r[e]=c[e]}),this.init(o,e),o.linkSeries(),Ze(t,!0)&&o.redraw(!1)}}),Ke(ot.prototype,{update:function(e,t){var n=this.chart,e=n.options[this.coll][this.options.index]=i(this.userOptions,e);this.destroy(!0),this._addedPlotLB=this.chart._labelPanes=A,this.init(n,Ke(e,{events:A})),n.isDirtyBox=!0,Ze(t,!0)&&n.redraw()},remove:function(e){for(var t=this.chart,n=this.coll,i=this.series,r=i.length;r--;)i[r]&&i[r].remove(!1);l(t.axes,this),l(t[n],this),t.options[n].splice(this.options.index,1),Ue(t[n],function(e,t){e.options.index=t}),this.destroy(),t.isDirtyBox=!0,Ze(e,!0)&&t.redraw()},setTitle:function(e,t){this.update({title:e},t)},setCategories:function(e,t){this.update({categories:e},t)}});var yt=m(gt);Ie.line=yt,Je.area=i(et,{softThreshold:!1,threshold:0});var vt=m(gt,{type:"area",singleStacks:!1,getStackPoints:function(){var e,t,n,i=[],r=[],o=this.xAxis,a=this.yAxis,s=a.stacks[this.stackKey],l={},c=this.points,u=this.index,d=a.series,p=d.length,h=Ze(a.options.reversedStacks,!0)?1:-1;if(this.options.stacking){for(t=0;t=0&&t=0&&te&&r>l?(r=ue(e,l),a=2*l-r):rn&&a>l?(a=ue(n,l),r=2*l-a):a.5,t=Math.round(t)+o,i-=t,a&&i&&(t-=1,i+=1),{x:e,y:t,width:n,height:i}},translate:function(){var e=this,t=e.chart,n=e.options,i=e.borderWidth=Ze(n.borderWidth,e.closestPointRange*e.xAxis.transA<2?0:1),r=e.yAxis,o=e.translatedThreshold=r.getThreshold(n.threshold),a=Ze(n.minPointLength,5),s=e.getColumnMetrics(),l=s.width,c=e.barW=ue(l,1+2*i),u=e.pointXOffset=s.offset;t.inverted&&(o-=.5),n.pointPadding&&(c=ce(c)),gt.prototype.translate.apply(e),Ue(e.points,function(n){var i,s=de(Ze(n.yBottom,o),9e4),d=999+pe(s),d=de(ue(-d,n.plotY),r.len+d),p=n.plotX+u,h=c,f=de(d,s),m=ue(d,s)-f;pe(m)a?s-a:o-(i?a:0)),n.barX=p,n.pointWidth=l,n.tooltipPos=t.inverted?[r.len+r.pos-t.plotLeft-d,e.xAxis.len-p-h/2,m]:[p+h/2,d+r.pos-t.plotTop,m],n.shapeType="rect",n.shapeArgs=e.crispCol(p,f,h,m)})},getSymbol:Me,drawLegendSymbol:nt.drawRectangle,drawGraph:Me,drawPoints:function(){var e,t,n=this,r=this.chart,o=n.options,a=r.renderer,s=o.animationLimit||250;Ue(n.points,function(l){var u,d=l.graphic;Qe(l.plotY)&&null!==l.y?(e=l.shapeArgs,u=c(n.borderWidth)?{"stroke-width":n.borderWidth}:{},t=l.pointAttr[l.selected?"select":""]||n.pointAttr[""],d?(qe(d),d.attr(u).attr(t)[r.pointCount {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),vt=m(gt,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&>.prototype.drawGraph.call(this)}}),Ie.scatter=vt,Je.pie=i(et,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return null===this.y?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}}),et={type:"pie",isCartesian:!1,pointClass:m(mt,{init:function(){mt.prototype.init.apply(this,arguments);var e,t=this;return t.name=Ze(t.name,"Slice"),e=function(e){t.slice("select"===e.type)},He(t,"select",e),He(t,"unselect",e),t},setVisible:function(e,t){var n=this,i=n.series,r=i.chart,o=i.options.ignoreHiddenPoint,t=Ze(t,o);e!==n.visible&&(n.visible=n.options.visible=e=e===A?!n.visible:e,i.options.data[Fe(n,i.data)]=n.options,Ue(["graphic","dataLabel","connector","shadowGroup"],function(t){n[t]&&n[t][e?"show":"hide"](!0)}),n.legendItem&&r.legend.colorizeItem(n,e),!e&&"hover"===n.state&&n.setState(""),o&&(i.isDirty=!0),t&&r.redraw())},slice:function(e,t,n){var i=this.series;S(n,i.chart),Ze(t,!0),this.sliced=this.options.sliced=e=c(e)?e:!this.sliced,i.options.data[Fe(this,i.data)]=this.options,e=e?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(e),this.shadowGroup&&this.shadowGroup.animate(e)},haloPath:function(e){var t=this.shapeArgs,n=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(n.plotLeft+t.x,n.plotTop+t.y,t.r+e,t.r+e,{innerR:this.shapeArgs.r,start:t.start,end:t.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},animate:function(e){var t=this,n=t.points,i=t.startAngleRad;e||(Ue(n,function(e){var n=e.graphic,r=e.shapeArgs;n&&(n.attr({r:e.startR||t.center[3]/2,start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},t.options.animation))}),t.animate=null)},updateTotals:function(){var e,t,n=0,i=this.points,r=i.length,o=this.options.ignoreHiddenPoint;for(e=0;e0&&(t.visible||!o)?t.y/n*100:0,t.total=n},generatePoints:function(){gt.prototype.generatePoints.call(this),this.updateTotals()},translate:function(e){this.generatePoints();var t,n,i,r,o,a=0,s=this.options,l=s.slicedOffset,c=l+s.borderWidth,u=s.startAngle||0,d=this.startAngleRad=me/180*(u-90),u=(this.endAngleRad=me/180*(Ze(s.endAngle,u+360)-90))-d,p=this.points,h=s.dataLabels.distance,s=s.ignoreHiddenPoint,f=p.length;for(e||(this.center=e=this.getCenter()),this.getX=function(t,n){return i=ae.asin(de((t-e[1])/(e[2]/2+h),1)),e[0]+(n?-1:1)*he(i)*(e[2]/2+h)},r=0;r1.5*me?i-=2*me:i<-me/2&&(i+=2*me),o.slicedTranslation={translateX:se(he(i)*l),translateY:se(fe(i)*l)},t=he(i)*e[2]/2,n=fe(i)*e[2]/2,o.tooltipPos=[e[0]+.7*t,e[1]+.7*n],o.half=i<-me/2||i>me/2?1:0,o.angle=i,c=de(c,h/2),o.labelPos=[e[0]+t+he(i)*h,e[1]+n+fe(i)*h,e[0]+t+he(i)*c,e[1]+n+fe(i)*c,e[0]+t,e[1]+n,h<0?"center":o.half?"right":"left",i]},drawGraph:null,drawPoints:function(){var e,t,n,i,r,o,a=this,s=a.chart.renderer,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=s.g("shadow").add(a.group)),Ue(a.points,function(c){null!==c.y&&(t=c.graphic,r=c.shapeArgs,n=c.shadowGroup,i=c.pointAttr[c.selected?"select":""],i.stroke||(i.stroke=i.fill),l&&!n&&(n=c.shadowGroup=s.g("shadow").add(a.shadowGroup)),e=c.sliced?c.slicedTranslation:{translateX:0,translateY:0},n&&n.attr(e),t?t.setRadialReference(a.center).attr(i).animate(Ke(r,e)):(o={"stroke-linejoin":"round"},c.visible||(o.visibility="hidden"),c.graphic=t=s[c.shapeType](r).setRadialReference(a.center).attr(i).attr(o).attr(e).add(a.group).shadow(l,n)))})},searchPoint:Me,sortByAngle:function(e,t){e.sort(function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t})},drawLegendSymbol:nt.drawRectangle,getCenter:it.getCenter,getSymbol:Me},et=m(gt,et),Ie.pie=et,gt.prototype.drawDataLabels=function(){var e,t,n,r,o=this,a=o.options,s=a.cursor,l=a.dataLabels,u=o.points,d=o.hasRendered||0,p=Ze(l.defer,!0),h=o.chart.renderer;(l.enabled||o._hasPointLabels)&&(o.dlProcessOptions&&o.dlProcessOptions(l),r=o.plotGroup("dataLabelsGroup","data-labels",p&&!d?"hidden":"visible",l.zIndex||6),p&&(r.attr({opacity:+d}),d||He(o,"afterAnimate",function(){o.visible&&r.show(),r[a.animation?"animate":"attr"]({opacity:1},{duration:200})})),t=l,Ue(u,function(u){var d,p,f,m,g=u.dataLabel,y=u.connector,b=!0,k={};if(e=u.dlOptions||u.options&&u.options.dataLabels,d=Ze(e&&e.enabled,t.enabled)&&null!==u.y,g&&!d)u.dataLabel=g.destroy();else if(d){if(l=i(t,e),m=l.style,d=l.rotation,p=u.getLabelConfig(),n=l.format?v(l.format,p):l.formatter.call(p,l),m.color=Ze(l.color,m.color,o.color,"black"),g)c(n)?(g.attr({text:n}),b=!1):(u.dataLabel=g=g.destroy(),y&&(u.connector=y.destroy()));else if(c(n)){g={fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.borderWidth,r:l.borderRadius||0,rotation:d,padding:l.padding,zIndex:1},"contrast"===m.color&&(k.color=l.inside||l.distance<0||a.stacking?h.getContrast(u.color||o.color):"#000000"),s&&(k.cursor=s);for(f in g)g[f]===A&&delete g[f];g=u.dataLabel=h[d?"text":"label"](n,0,-9999,l.shape,null,null,l.useHTML).attr(g).css(Ke(m,k)).add(r).shadow(l.shadow)}g&&o.alignDataLabel(u,g,l,null,b)}}))},gt.prototype.alignDataLabel=function(e,t,n,i,r){var o=this.chart,a=o.inverted,s=Ze(e.plotX,-9999),l=Ze(e.plotY,-9999),c=t.getBBox(),u=o.renderer.fontMetrics(n.style.fontSize).b,d=n.rotation,p=n.align,h=this.visible&&(e.series.forceDL||o.isInsidePlot(s,se(l),a)||i&&o.isInsidePlot(s,a?i.x+1:i.y+i.height-1,a)),f="justify"===Ze(n.overflow,"justify");h&&(i=Ke({x:a?o.plotWidth-l:s,y:se(a?o.plotHeight-s:l),width:0,height:0},i),Ke(n,{width:c.width,height:c.height}),d?(f=!1,a=o.renderer.rotCorr(u,d),a={x:i.x+n.x+i.width/2+a.x,y:i.y+n.y+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height},t[r?"attr":"animate"](a).attr({align:p}),s=(d+720)%360,s=s>180&&s<360,"left"===p?a.y-=s?c.height:0:"center"===p?(a.x-=c.width/2,a.y-=c.height/2):"right"===p&&(a.x-=c.width,a.y-=s?0:c.height)):(t.align(n,null,i),a=t.alignAttr),f?this.justifyDataLabel(t,n,a,c,i,r):Ze(n.crop,!0)&&(h=o.isInsidePlot(a.x,a.y)&&o.isInsidePlot(a.x+c.width,a.y+c.height)),n.shape&&!d&&t.attr({anchorX:e.plotX,anchorY:e.plotY})),h||(qe(t),t.attr({y:-9999}),t.placed=!1)},gt.prototype.justifyDataLabel=function(e,t,n,i,r,o){var a,s,l=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0;a=n.x+d,a<0&&("right"===c?t.align="left":t.x=-a,s=!0),a=n.x+i.width-d,a>l.plotWidth&&("left"===c?t.align="right":t.x=l.plotWidth-a,s=!0),a=n.y+d,a<0&&("bottom"===u?t.verticalAlign="top":t.y=-a,s=!0),a=n.y+i.height-d,a>l.plotHeight&&("top"===u?t.verticalAlign="bottom":t.y=l.plotHeight-a,s=!0),s&&(e.placed=!o,e.align(t,null,r))},Ie.pie&&(Ie.pie.prototype.drawDataLabels=function(){var e,t,n,i,r,o,a,s,l,c,u,d=this,p=d.data,h=d.chart,f=d.options.dataLabels,m=Ze(f.connectorPadding,10),g=Ze(f.connectorWidth,1),y=h.plotWidth,v=h.plotHeight,b=Ze(f.softConnector,!0),k=f.distance,x=d.center,w=x[2]/2,P=x[1],C=k>0,T=[[],[]],S=[0,0,0,0],_=function(e,t){return t.y-e.y};if(d.visible&&(f.enabled||d._hasPointLabels)){for(gt.prototype.drawDataLabels.apply(d), -Ue(p,function(e){e.dataLabel&&e.visible&&(T[e.half].push(e),e.dataLabel._pos=null)}),c=2;c--;){var O,M=[],D=[],N=T[c],R=N.length;if(R){for(d.sortByAngle(N,c-.5),u=p=0;!p&&N[u];)p=N[u]&&N[u].dataLabel&&(N[u].dataLabel.getBBox().height||21),u++;if(k>0){for(r=de(P+w+k,h.plotHeight),u=ue(0,P-w-k);u<=r;u+=p)M.push(u);if(r=M.length,R>r){for(e=[].concat(N),e.sort(_),u=R;u--;)e[u].rank=u;for(u=R;u--;)N[u].rank>=r&&N.splice(u,1);R=N.length}for(u=0;u0?(r=D.pop(),O=r.i,s=r.y,(e>s&&null!==M[O+1]||ey-m&&(S[1]=ue(se(a+r-y+m),S[1])),s-p/2<0?S[0]=ue(se(-s+p/2),S[0]):s+p/2>v&&(S[2]=ue(se(s+p/2-v),S[2])))}}(0===E(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),C&&g&&Ue(this.points,function(e){t=e.connector,o=e.labelPos,(i=e.dataLabel)&&i._pos&&e.visible?(l=i._attr.visibility,a=i.connX,s=i.connY,n=b?["M",a+("left"===o[6]?5:-5),s,"C",a,s,2*o[2]-o[4],2*o[3]-o[5],o[2],o[3],"L",o[4],o[5]]:["M",a+("left"===o[6]?5:-5),s,"L",o[2],o[3],"L",o[4],o[5]],t?(t.animate({d:n}),t.attr("visibility",l)):e.connector=t=d.chart.renderer.path(n).attr({"stroke-width":g,stroke:f.connectorColor||e.color||"#606060",visibility:l}).add(d.dataLabelsGroup)):t&&(e.connector=t.destroy())}))}},Ie.pie.prototype.placeDataLabels=function(){Ue(this.points,function(e){var t=e.dataLabel;t&&e.visible&&((e=t._pos)?(t.attr(t._attr),t[t.moved?"animate":"attr"](e),t.moved=!0):t&&t.attr({y:-9999}))})},Ie.pie.prototype.alignDataLabel=Me,Ie.pie.prototype.verifyDataLabelOverflow=function(e){var t,n=this.center,i=this.options,r=i.center,o=i.minSize||80,a=o;return null!==r[0]?a=ue(n[2]-ue(e[1],e[3]),o):(a=ue(n[2]-e[1]-e[3],o),n[0]+=(e[3]-e[1])/2),null!==r[1]?a=ue(de(a,n[2]-ue(e[0],e[2])),o):(a=ue(de(a,n[2]-e[0]-e[2]),o),n[1]+=(e[0]-e[2])/2),aZe(this.translatedThreshold,s.yAxis.len)),u=Ze(n.inside,!!this.options.stacking);l&&(r=i(l),r.y<0&&(r.height+=r.y,r.y=0),l=r.y+r.height-s.yAxis.len,l>0&&(r.height-=l),a&&(r={x:s.yAxis.len-r.y-r.height,y:s.xAxis.len-r.x-r.width,width:r.height,height:r.width}),u||(a?(r.x+=c?0:r.width,r.width=0):(r.y+=c?r.height:0,r.height=0))),n.align=Ze(n.align,!a||u?"center":c?"right":"left"),n.verticalAlign=Ze(n.verticalAlign,a||u?"middle":c?"top":"bottom"),gt.prototype.alignDataLabel.call(this,e,t,n,r,o)}),function(e){var t=e.Chart,n=e.each,i=e.pick,r=e.addEvent;t.prototype.callbacks.push(function(e){function t(){var t=[];n(e.series,function(e){var r=e.options.dataLabels,o=e.dataLabelCollections||["dataLabel"];(r.enabled||e._hasPointLabels)&&!r.allowOverlap&&e.visible&&n(o,function(r){n(e.points,function(e){e[r]&&(e[r].labelrank=i(e.labelrank,e.shapeArgs&&e.shapeArgs.height),t.push(e[r]))})})}),e.hideOverlappingLabels(t)}t(),r(e,"redraw",t)}),t.prototype.hideOverlappingLabels=function(e){var t,i,r,o,a,s,l,c,u,d=e.length;for(i=0;ia.x+l.translateX+(r.width-u)||s.x+c.translateX+(o.width-u)a.y+l.translateY+(r.height-u)||s.y+c.translateY+(o.height-u)o;t.series.length&&(a||c>de(l.dataMin,l.min))&&(!a||s>1,u=-7,d=n?r-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,i),o-=c}return(h?-1:1)*a*Math.pow(2,o-i)},n.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?p/l:p*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+h]=255&s,h+=f,s/=256,r-=8);for(a=a<0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m}},{}],66:[function(e,t,n){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],67:[function(t,n,i){!function(t,r){"object"==typeof i&&"undefined"!=typeof n?n.exports=r():"function"==typeof e&&e.amd?e(r):t.moment=r()}(this,function(){"use strict";function e(){return mi.apply(null,arguments)}function i(e){mi=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t;for(t in e)return!1;return!0}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n0)for(n in yi)i=yi[n],r=t[i],g(r)||(e[i]=r);return e}function v(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),vi===!1&&(vi=!0,e.updateOffset(this),vi=!1)}function b(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function w(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();_i[n]=_i[n+"s"]=_i[t]=e}function L(e){return"string"==typeof e?_i[e]||_i[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)c(e,n)&&(t=L(n),t&&(i[t]=e[n]));return i}function U(e,t){Oi[e]=t}function B(e){var t=[];for(var n in e)t.push({unit:n,priority:Oi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function Y(t,n){return function(i){return null!=i?(H(this,t,i),e.updateOffset(this,n),this):V(this,t)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function H(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function W(e){return e=L(e),T(this[e])?this[e]():this}function z(e,t){if("object"==typeof e){e=F(e);for(var n=B(e),i=0;i=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function q(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Ri[e]=r),t&&(Ri[t[0]]=function(){return G(r.apply(this,arguments),t[1],t[2])}),n&&(Ri[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function X(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function K(e){var t,n,i=e.match(Mi);for(t=0,n=i.length;t=0&&Di.test(e);)e=e.replace(Di,n),Di.lastIndex=0,i-=1;return e}function $(e,t,n){Zi[e]=T(t)?t:function(e,i){return e&&n?n:t}}function J(e,t){return c(Zi,e)?Zi[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=x(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ke(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var i=7+t-n,r=(7+ke(e,0,i).getUTCDay()-t)%7;return-r+i-1}function we(e,t,n,i,r){var o,a,s=(7+n-i)%7,l=xe(e,i,r),c=1+7*(t-1)+s+l;return c<=0?(o=e-1,a=ge(o)+c):c>ge(e)?(o=e+1,a=c-ge(e)):(o=e,a=c),{year:o,dayOfYear:a}}function Ee(e,t,n){var i,r,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Pe(r,t,n)):a>Pe(e.year(),t,n)?(i=a-Pe(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Pe(e,t,n){var i=xe(e,t,n),r=xe(e+1,t,n);return(ge(e)-i+r)/7}function Ce(e){return Ee(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function Se(){return this._week.doy}function _e(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Oe(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Me(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function De(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ne(e,t){return r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Re(e){return this._weekdaysShort[e.day()]}function Ae(e){return this._weekdaysMin[e.day()]}function je(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=xi.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=xi.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=xi.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=xi.call(this._weekdaysParse,a),r!==-1?r:(r=xi.call(this._shortWeekdaysParse,a),r!==-1?r:(r=xi.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=xi.call(this._shortWeekdaysParse,a),r!==-1?r:(r=xi.call(this._weekdaysParse,a),r!==-1?r:(r=xi.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=xi.call(this._minWeekdaysParse,a),r!==-1?r:(r=xi.call(this._weekdaysParse,a),r!==-1?r:(r=xi.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function Ie(e,t,n){var i,r,o;if(this._weekdaysParseExact)return je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Me(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ue(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=De(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=vr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ye(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=br),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=te(s[t]),l[t]=te(l[t]),c[t]=te(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function We(){return this.hours()%12||12}function ze(){return this.hours()||24}function Ge(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function qe(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,i,r,o=0;o0;){if(i=$e(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&w(r,n,!0)>=t-1)break;t--}o++}return null}function $e(e){var i=null;if(!Cr[e]&&"undefined"!=typeof n&&n&&n.exports)try{i=xr._abbr,t("./locale/"+e),Je(i)}catch(e){}return Cr[e]}function Je(e,t){var n;return e&&(n=g(t)?nt(e):et(e,t),n&&(xr=n)),xr._abbr}function et(e,t){if(null!==t){var n=Pr;return t.abbr=e,null!=Cr[e]?(C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Cr[e]._config):null!=t.parentLocale&&(null!=Cr[t.parentLocale]?n=Cr[t.parentLocale]._config:C("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),Cr[e]=new O(_(n,t)),Je(e),Cr[e]}return delete Cr[e],null}function tt(e,t){if(null!=t){var n,i=Pr;null!=Cr[e]&&(i=Cr[e]._config),t=_(i,t),n=new O(t),n.parentLocale=Cr[e],Cr[e]=n,Je(e)}else null!=Cr[e]&&(null!=Cr[e].parentLocale?Cr[e]=Cr[e].parentLocale:null!=Cr[e]&&delete Cr[e]);return Cr[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xr;if(!r(e)){if(t=$e(e))return t;e=[e]}return Ze(e)}function it(){return ki(Cr)}function rt(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[er]<0||n[er]>11?er:n[tr]<1||n[tr]>oe(n[Ji],n[er])?tr:n[nr]<0||n[nr]>24||24===n[nr]&&(0!==n[ir]||0!==n[rr]||0!==n[or])?nr:n[ir]<0||n[ir]>59?ir:n[rr]<0||n[rr]>59?rr:n[or]<0||n[or]>999?or:-1,h(e)._overflowDayOfYear&&(ttr)&&(t=tr),h(e)._overflowWeeks&&t===-1&&(t=ar),h(e)._overflowWeekday&&t===-1&&(t=sr),h(e).overflow=t),e}function ot(e){var t,n,i,r,o,a,s=e._i,l=Tr.exec(s)||Sr.exec(s);if(l){for(h(e).iso=!0,t=0,n=Or.length;tge(r)&&(h(e)._overflowDayOfYear=!0), -n=ke(r,0,e._dayOfYear),e._a[er]=n.getUTCMonth(),e._a[tr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[nr]&&0===e._a[ir]&&0===e._a[rr]&&0===e._a[or]&&(e._nextDay=!0,e._a[nr]=0),e._d=(e._useUTC?ke:be).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[nr]=24)}}function ut(e){var t,n,i,r,o,a,s,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=st(t.GG,e._a[Ji],Ee(bt(),1,4).year),i=st(t.W,1),r=st(t.E,1),(r<1||r>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,n=st(t.gg,e._a[Ji],Ee(bt(),o,a).year),i=st(t.w,1),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),i<1||i>Pe(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=we(n,i,r,o,a),e._a[Ji]=s.year,e._dayOfYear=s.dayOfYear)}function dt(t){if(t._f===e.ISO_8601)return void ot(t);t._a=[],h(t).empty=!0;var n,i,r,o,a,s=""+t._i,l=s.length,c=0;for(r=Z(t._f,t._locale).match(Mi)||[],n=0;n0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),c+=i.length),Ri[o]?(i?h(t).empty=!1:h(t).unusedTokens.push(o),re(o,i,t)):t._strict&&!i&&h(t).unusedTokens.push(o);h(t).charsLeftOver=l-c,s.length>0&&h(t).unusedInput.push(s),t._a[nr]<=12&&h(t).bigHour===!0&&t._a[nr]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[nr]=pt(t._locale,t._a[nr],t._meridiem),ct(t),rt(t)}function pt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function ht(e){var t,n,i,r,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function It(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=gt(e),e._a){var t=e._isUTC?d(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Lt(){return!!this.isValid()&&!this._isUTC}function Ft(){return!!this.isValid()&&this._isUTC}function Ut(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Bt(e,t){var n,i,r,o=e,a=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(a=Ir.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[tr])*n,h:x(a[nr])*n,m:x(a[ir])*n,s:x(a[rr])*n,ms:x(a[or])*n}):(a=Lr.exec(e))?(n="-"===a[1]?-1:1,o={y:Yt(a[2],n),M:Yt(a[3],n),w:Yt(a[4],n),d:Yt(a[5],n),h:Yt(a[6],n),m:Yt(a[7],n),s:Yt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Ht(bt(o.from),bt(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new Et(o),Pt(e)&&c(e,"_locale")&&(i._locale=e._locale),i}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){var n;return e.isValid()&&t.isValid()?(t=St(t,e),e.isBefore(t)?n=Vt(e,t):(n=Vt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function zt(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Bt(n,i),Gt(this,r,e),this}}function Gt(t,n,i,r){var o=n._milliseconds,a=Wt(n._days),s=Wt(n._months);t.isValid()&&(r=null==r||r,o&&t._d.setTime(t._d.valueOf()+o*i),a&&H(t,"Date",V(t,"Date")+a*i),s&&ue(t,V(t,"Month")+s*i),r&&e.updateOffset(t,a||s))}function qt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Xt(t,n){var i=t||bt(),r=St(i,this).startOf("day"),o=e.calendarFormat(this,r)||"sameElse",a=n&&(T(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,bt(i)))}function Kt(){return new v(this)}function Qt(e,t){var n=b(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=L(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()o&&(t=o),Nn.call(this,e,t,n,i,r))}function Nn(e,t,n,i,r){var o=we(e,t,n,i,r),a=ke(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Rn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function An(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function jn(e,t){t[or]=x(1e3*("0."+e))}function In(){return this._isUTC?"UTC":""}function Ln(){return this._isUTC?"Coordinated Universal Time":""}function Fn(e){return bt(1e3*e)}function Un(){return bt.apply(null,arguments).parseZone()}function Bn(e){return e}function Yn(e,t,n,i){var r=nt(),o=d().set(i,t);return r[n](o,e)}function Vn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Yn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Yn(e,i,n,"month");return r}function Hn(e,t,n,i){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var r=nt(),o=e?r._week.dow:0;if(null!=n)return Yn(t,(n+o)%7,i,"day");var a,s=[];for(a=0;a<7;a++)s[a]=Yn(t,(a+o)%7,i,"day");return s}function Wn(e,t){return Vn(e,t,"months")}function zn(e,t){return Vn(e,t,"monthsShort")}function Gn(e,t,n){return Hn(e,t,n,"weekdays")}function qn(e,t,n){return Hn(e,t,n,"weekdaysShort")}function Xn(e,t,n){return Hn(e,t,n,"weekdaysMin")}function Kn(){var e=this._data;return this._milliseconds=Kr(this._milliseconds),this._days=Kr(this._days),this._months=Kr(this._months),e.milliseconds=Kr(e.milliseconds),e.seconds=Kr(e.seconds),e.minutes=Kr(e.minutes),e.hours=Kr(e.hours),e.months=Kr(e.months),e.years=Kr(e.years),this}function Qn(e,t,n,i){var r=Bt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Zn(e,t){return Qn(this,e,t,1)}function $n(e,t){return Qn(this,e,t,-1)}function Jn(e){return e<0?Math.floor(e):Math.ceil(e)}function ei(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Jn(ni(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=k(o/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),r=k(ti(a)),s+=r,a-=Jn(ni(r)),i=k(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function ti(e){return 4800*e/146097}function ni(e){return 146097*e/4800}function ii(e){var t,n,i=this._milliseconds;if(e=L(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+ti(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ni(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function ri(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function oi(e){return function(){return this.as(e)}}function ai(e){return e=L(e),this[e+"s"]()}function si(e){return function(){return this._data[e]}}function li(){return k(this.days()/7)}function ci(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function ui(e,t,n){var i=Bt(e).abs(),r=po(i.as("s")),o=po(i.as("m")),a=po(i.as("h")),s=po(i.as("d")),l=po(i.as("M")),c=po(i.as("y")),u=r0,u[4]=n,ci.apply(null,u)}function di(e){return void 0===e?po:"function"==typeof e&&(po=e,!0)}function pi(e,t){return void 0!==ho[e]&&(void 0===t?ho[e]:(ho[e]=t,!0))}function hi(e){var t=this.localeData(),n=ui(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function fi(){var e,t,n,i=fo(this._milliseconds)/1e3,r=fo(this._days),o=fo(this._months);e=k(i/60),t=k(e/60),i%=60,e%=60,n=k(o/12),o%=12;var a=n,s=o,l=r,c=t,u=e,d=i,p=this.asSeconds();return p?(p<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(c||u||d?"T":"")+(c?c+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var mi,gi;gi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var hr=Y("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),U("week",5),U("isoWeek",5),$("w",Ui),$("ww",Ui,ji),$("W",Ui),$("WW",Ui,ji),ie(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=x(e)});var fr={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),$("d",Ui),$("e",Ui),$("E",Ui),$("dd",function(e,t){return t.weekdaysMinRegex(e)}),$("ddd",function(e,t){return t.weekdaysShortRegex(e)}),$("dddd",function(e,t){return t.weekdaysRegex(e)}),ie(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:h(n).invalidWeekday=e}),ie(["d","e","E"],function(e,t,n,i){t[i]=x(e)});var mr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vr=Qi,br=Qi,kr=Qi;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,We),q("k",["kk",2],0,ze),q("hmm",0,0,function(){return""+We.apply(this)+G(this.minutes(),2)}),q("hmmss",0,0,function(){return""+We.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),Ge("a",!0),Ge("A",!1),I("hour","h"),U("hour",13),$("a",qe),$("A",qe),$("H",Ui),$("h",Ui),$("HH",Ui,ji),$("hh",Ui,ji),$("hmm",Bi),$("hmmss",Yi),$("Hmm",Bi),$("Hmmss",Yi),ne(["H","HH"],nr),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[nr]=x(e),h(n).bigHour=!0}),ne("hmm",function(e,t,n){var i=e.length-2;t[nr]=x(e.substr(0,i)),t[ir]=x(e.substr(i)),h(n).bigHour=!0}),ne("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[nr]=x(e.substr(0,i)),t[ir]=x(e.substr(i,2)),t[rr]=x(e.substr(r)),h(n).bigHour=!0}),ne("Hmm",function(e,t,n){var i=e.length-2;t[nr]=x(e.substr(0,i)),t[ir]=x(e.substr(i))}),ne("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[nr]=x(e.substr(0,i)),t[ir]=x(e.substr(i,2)),t[rr]=x(e.substr(r))});var xr,wr=/[ap]\.?m?\.?/i,Er=Y("Hours",!0),Pr={calendar:wi,longDateFormat:Ei,invalidDate:Pi,ordinal:Ci,ordinalParse:Ti,relativeTime:Si,months:cr,monthsShort:ur,week:fr,weekdays:mr,weekdaysMin:yr,weekdaysShort:gr,meridiemParse:wr},Cr={},Tr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Sr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,_r=/Z|[+-]\d\d(?::?\d\d)?/,Or=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dr=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=P("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Nr=P("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:m()}),Ar=function(){return Date.now?Date.now():+new Date};Ct("Z",":"),Ct("ZZ",""),$("Z",Xi),$("ZZ",Xi),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Tt(Xi,e)});var jr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Ir=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Lr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Bt.fn=Et.prototype;var Fr=zt(1,"add"),Ur=zt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Br=P("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tn("gggg","weekYear"),Tn("ggggg","weekYear"),Tn("GGGG","isoWeekYear"),Tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),$("G",Gi),$("g",Gi),$("GG",Ui,ji),$("gg",Ui,ji),$("GGGG",Hi,Li),$("gggg",Hi,Li),$("GGGGG",Wi,Fi),$("ggggg",Wi,Fi),ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=x(e)}),ie(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),I("quarter","Q"),U("quarter",7),$("Q",Ai),ne("Q",function(e,t){t[er]=3*(x(e)-1)}),q("D",["DD",2],"Do","date"),I("date","D"),U("date",9),$("D",Ui),$("DD",Ui,ji),$("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ne(["D","DD"],tr),ne("Do",function(e,t){t[tr]=x(e.match(Ui)[0],10)});var Yr=Y("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),U("dayOfYear",4),$("DDD",Vi),$("DDDD",Ii),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),q("m",["mm",2],0,"minute"),I("minute","m"),U("minute",14),$("m",Ui),$("mm",Ui,ji),ne(["m","mm"],ir);var Vr=Y("Minutes",!1);q("s",["ss",2],0,"second"),I("second","s"),U("second",15),$("s",Ui),$("ss",Ui,ji),ne(["s","ss"],rr);var Hr=Y("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),U("millisecond",16),$("S",Vi,Ai),$("SS",Vi,ji),$("SSS",Vi,Ii);var Wr;for(Wr="SSSS";Wr.length<=9;Wr+="S")$(Wr,zi);for(Wr="S";Wr.length<=9;Wr+="S")ne(Wr,jn);var zr=Y("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var Gr=v.prototype;Gr.add=Fr,Gr.calendar=Xt,Gr.clone=Kt,Gr.diff=nn,Gr.endOf=mn,Gr.format=sn,Gr.from=ln,Gr.fromNow=cn,Gr.to=un,Gr.toNow=dn,Gr.get=W,Gr.invalidAt=Pn,Gr.isAfter=Qt,Gr.isBefore=Zt,Gr.isBetween=$t,Gr.isSame=Jt,Gr.isSameOrAfter=en,Gr.isSameOrBefore=tn,Gr.isValid=wn,Gr.lang=Br,Gr.locale=pn,Gr.localeData=hn,Gr.max=Rr,Gr.min=Nr,Gr.parsingFlags=En,Gr.set=z,Gr.startOf=fn,Gr.subtract=Ur,Gr.toArray=bn,Gr.toObject=kn,Gr.toDate=vn,Gr.toISOString=an,Gr.toJSON=xn,Gr.toString=on,Gr.unix=yn,Gr.valueOf=gn,Gr.creationData=Cn,Gr.year=hr,Gr.isLeapYear=ve,Gr.weekYear=Sn,Gr.isoWeekYear=_n,Gr.quarter=Gr.quarters=Rn,Gr.month=de,Gr.daysInMonth=pe,Gr.week=Gr.weeks=_e,Gr.isoWeek=Gr.isoWeeks=Oe,Gr.weeksInYear=Mn,Gr.isoWeeksInYear=On,Gr.date=Yr,Gr.day=Gr.days=Le,Gr.weekday=Fe,Gr.isoWeekday=Ue,Gr.dayOfYear=An,Gr.hour=Gr.hours=Er,Gr.minute=Gr.minutes=Vr,Gr.second=Gr.seconds=Hr,Gr.millisecond=Gr.milliseconds=zr,Gr.utcOffset=Ot,Gr.utc=Dt,Gr.local=Nt,Gr.parseZone=Rt,Gr.hasAlignedHourOffset=At,Gr.isDST=jt,Gr.isLocal=Lt,Gr.isUtcOffset=Ft,Gr.isUtc=Ut,Gr.isUTC=Ut,Gr.zoneAbbr=In,Gr.zoneName=Ln,Gr.dates=P("dates accessor is deprecated. Use date instead.",Yr),Gr.months=P("months accessor is deprecated. Use month instead",de),Gr.years=P("years accessor is deprecated. Use year instead",hr),Gr.zone=P("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mt),Gr.isDSTShifted=P("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",It);var qr=Gr,Xr=O.prototype;Xr.calendar=M,Xr.longDateFormat=D,Xr.invalidDate=N,Xr.ordinal=R,Xr.preparse=Bn,Xr.postformat=Bn,Xr.relativeTime=A,Xr.pastFuture=j,Xr.set=S,Xr.months=ae,Xr.monthsShort=se,Xr.monthsParse=ce,Xr.monthsRegex=fe,Xr.monthsShortRegex=he,Xr.week=Ce,Xr.firstDayOfYear=Se,Xr.firstDayOfWeek=Te,Xr.weekdays=Ne,Xr.weekdaysMin=Ae,Xr.weekdaysShort=Re,Xr.weekdaysParse=Ie,Xr.weekdaysRegex=Be,Xr.weekdaysShortRegex=Ye,Xr.weekdaysMinRegex=Ve,Xr.isPM=Xe,Xr.meridiem=Ke,Je("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=P("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=P("moment.langData is deprecated. Use moment.localeData instead.",nt);var Kr=Math.abs,Qr=oi("ms"),Zr=oi("s"),$r=oi("m"),Jr=oi("h"),eo=oi("d"),to=oi("w"),no=oi("M"),io=oi("y"),ro=si("milliseconds"),oo=si("seconds"),ao=si("minutes"),so=si("hours"),lo=si("days"),co=si("months"),uo=si("years"),po=Math.round,ho={s:45,m:45,h:22,d:26,M:11},fo=Math.abs,mo=Et.prototype;mo.abs=Kn,mo.add=Zn,mo.subtract=$n,mo.as=ii,mo.asMilliseconds=Qr,mo.asSeconds=Zr,mo.asMinutes=$r,mo.asHours=Jr,mo.asDays=eo,mo.asWeeks=to,mo.asMonths=no,mo.asYears=io,mo.valueOf=ri,mo._bubble=ei,mo.get=ai,mo.milliseconds=ro,mo.seconds=oo,mo.minutes=ao,mo.hours=so,mo.days=lo,mo.weeks=li,mo.months=co,mo.years=uo,mo.humanize=hi,mo.toISOString=fi,mo.toString=fi,mo.toJSON=fi,mo.locale=pn,mo.localeData=hn,mo.toIsoString=P("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",fi),mo.lang=Br,q("X",0,0,"unix"),q("x",0,0,"valueOf"),$("x",Gi),$("X",Ki),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(x(e))}),e.version="2.14.1",i(bt),e.fn=qr,e.min=xt,e.max=wt,e.now=Ar,e.utc=d,e.unix=Fn,e.months=Wn,e.isDate=s,e.locale=Je,e.invalid=m,e.duration=Bt,e.isMoment=b,e.weekdays=Gn,e.parseZone=Un,e.localeData=nt,e.isDuration=Pt,e.monthsShort=zn,e.weekdaysMin=Xn,e.defineLocale=et,e.updateLocale=tt,e.locales=it,e.weekdaysShort=qn,e.normalizeUnits=L,e.relativeTimeRounding=di,e.relativeTimeThreshold=pi,e.calendarFormat=qt,e.prototype=qr;var go=e;return go})},{}],68:[function(e,t,n){"use strict";function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(e,t){for(var n,r,s=i(e),l=1;lu||l.year()>c)&&(e+=" rdtNew"),s&&l.isSame(s,"day")&&(e+=" rdtActive"),l.isSame(r(),"day")&&(e+=" rdtToday"),t=!f(i,s),t&&(e+=" rdtDisabled"),n={key:l.format("M_D"),"data-value":l.date(),className:e},t||(n.onClick=this.updateSelectedDate),p.push(h(n,i,s)),7==p.length&&(d.push(o.tr({key:l.format("M_D")},p)),p=[]),l.add(1,"d");return d},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t,n){return o.td(e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return o.tfoot({key:"tf"},o.tr({},o.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},isValidDate:function(){return 1}});t.exports=a},{moment:67,react:219}],72:[function(e,t,n){"use strict";var i=e("react"),r=(e("moment"),i.DOM),o=i.createClass({render:function(){return r.div({className:"rdtMonths"},[r.table({key:"a"},r.thead({},r.tr({},[r.th({key:"prev",className:"rdtPrev"},r.span({onClick:this.props.subtractTime(1,"years")},"‹")),r.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),r.th({key:"next",className:"rdtNext"},r.span({onClick:this.props.addTime(1,"years")},"›"))]))),r.table({key:"months"},r.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n=this.props.selectedDate,i=this.props.viewDate.month(),o=this.props.viewDate.year(),a=[],s=0,l=[],c=this.props.renderMonth||this.renderMonth;s<12;)e="rdtMonth",n&&s===i&&o===n.year()&&(e+=" rdtActive"),t={key:s,"data-value":s,className:e,onClick:"months"==this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")},l.push(c(t,s,o,n&&n.clone())),4==l.length&&(a.push(r.tr({key:i+"_"+a.length},l)),l=[]),s++;return a},updateSelectedMonth:function(e){this.props.updateSelectedDate(e,!0)},renderMonth:function(e,t,n,i){return r.td(e,this.props.viewDate.localeData()._monthsShort[t])}});t.exports=o},{moment:67,react:219}],73:[function(e,t,n){"use strict";var i=e("react"),r=i.DOM,o=i.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,i=[];n.indexOf("H")==-1&&n.indexOf("h")==-1||(i.push("hours"),n.indexOf("m")!=-1&&(i.push("minutes"),n.indexOf("s")!=-1&&i.push("seconds")));var r=!1;return this.props.timeFormat.indexOf(" A")!=-1&&null!=this.state&&(r=this.state.hours>12?"PM":"AM"),{hours:t.format("H"),minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:r,counters:i}},renderCounter:function(e){if("daypart"!==e){var t=this.state[e];return"hours"===e&&this.props.timeFormat.indexOf(" A")!=-1&&t>12&&(t-=12),r.div({key:e,className:"rdtCounter"},[r.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e)},"▲"),r.div({key:"c",className:"rdtCount"},t),r.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e)},"▼")])}return""},render:function(){var e=this,t=[];return this.state.counters.forEach(function(n){t.length&&t.push(r.div({key:"sep"+t.length,className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(n))}),this.state.daypart!==!1&&t.push(r.div({key:this.state.daypart,className:"rdtDayPart"},this.state.daypart)),3==this.state.counters.length&&this.props.timeFormat.indexOf("S")!=-1&&(t.push(r.div({className:"rdtCounterSeparator",key:"sep5"},":")),t.push(r.div({className:"rdtCounter rdtMilli",key:"m"},r.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),r.div({className:"rdtTime"},r.table({},[this.renderHeader(),r.tbody({key:"b"},r.tr({},r.td({},r.div({className:"rdtCounters"},t))))]))},componentWillReceiveProps:function(e,t){this.setState(this.calculateState(e))},updateMilli:function(e){var t=parseInt(e.target.value);t==e.target.value&&t>=0&&t<1e3&&(this.props.setTime("milliseconds",t),this.setState({milliseconds:t}))},renderHeader:function(){if(!this.props.dateFormat)return null;var e=this.props.selectedDate||this.props.viewDate;return r.thead({key:"h"},r.tr({},r.th({className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},e.format(this.props.dateFormat))))},onStartClicking:function(e,t){var n=this;this.state[t];return function(){var i={};i[t]=n[e](t),n.setState(i),n.timer=setTimeout(function(){n.increaseTimer=setInterval(function(){i[t]=n[e](t),n.setState(i)},70)},500),n.mouseUpListener=function(){clearTimeout(n.timer),clearInterval(n.increaseTimer),n.props.setTime(t,n.state[t]),document.body.removeEventListener("mouseup",n.mouseUpListener)},document.body.addEventListener("mouseup",n.mouseUpListener)}},maxValues:{hours:23,minutes:59,seconds:59,milliseconds:999},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},increase:function(e){var t=parseInt(this.state[e])+1;return t>this.maxValues[e]&&(t=0),this.pad(e,t)},decrease:function(e){var t=parseInt(this.state[e])-1;return t<0&&(t=this.maxValues[e]),this.pad(e,t)},pad:function(e,t){for(var n=t+"";n.length0||r[1]>13)&&(i=e("react-dom"));var o=[],a=[],s="ignore-react-onclickoutside",l=function(e,t){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(s):e.classList.contains(s))};t.exports={componentDidMount:function(){if("function"!=typeof this.handleClickOutside)throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");var e=this.__outsideClickHandler=function(e,t){return function(n){n.stopPropagation();for(var i=n.target,r=!1;i.parentNode;){if(r=l(i,e))return;i=i.parentNode}t(n)}}(i.findDOMNode(this),this.handleClickOutside),t=o.length;o.push(this),a[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=o.indexOf(this);e>-1&&a[e]&&(a.splice(e,1),o.splice(e,1))},enableOnClickOutside:function(){var e=this.__outsideClickHandler;document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},disableOnClickOutside:function(){var e=this.__outsideClickHandler;document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}},{react:219,"react-dom":76}],76:[function(e,t,n){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":114}],77:[function(t,n,i){!function(r,o){"object"==typeof i&&"object"==typeof n?n.exports=o(t("react"),t("highcharts")):"function"==typeof e&&e.amd?e(["react","highcharts"],o):"object"==typeof i?i.ReactHighcharts=o(t("react"),t("highcharts")):r.ReactHighcharts=o(r.React,r.Highcharts)}(this,function(e,t){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(3)},function(t,n){t.exports=e},function(e,t,n){(function(t){"use strict";function i(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}var r=Object.assign||function(e){for(var t=1;t8&&E<=11),T=32,S=String.fromCharCode(T),_=h.topLevelTypes,O={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[_.topCompositionEnd,_.topKeyPress,_.topTextInput,_.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[_.topBlur,_.topCompositionEnd,_.topKeyDown,_.topKeyPress,_.topKeyUp,_.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[_.topBlur,_.topCompositionStart,_.topKeyDown,_.topKeyPress,_.topKeyUp,_.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[_.topBlur,_.topCompositionUpdate,_.topKeyDown,_.topKeyPress,_.topKeyUp,_.topMouseDown]}},M=!1,D=null,N={eventTypes:O,extractEvents:function(e,t,n,i){return[c(e,t,n,i),p(e,t,n,i)]}};t.exports=N},{"./EventConstants":93,"./EventPropagators":97,"./FallbackCompositionState":98,"./SyntheticCompositionEvent":175,"./SyntheticInputEvent":179,"fbjs/lib/ExecutionEnvironment":39,"fbjs/lib/keyOf":57}],80:[function(e,t,n){"use strict";function i(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[i(t,e)]=r[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:r,shorthandPropertyExpansions:a};t.exports=s},{}],81:[function(e,t,n){"use strict";var i=e("./CSSProperty"),r=e("fbjs/lib/ExecutionEnvironment"),o=(e("./ReactInstrumentation"),e("fbjs/lib/camelizeStyleName"),e("./dangerousStyleValue")),a=e("fbjs/lib/hyphenateStyleName"),s=e("fbjs/lib/memoizeStringOnly"),l=(e("fbjs/lib/warning"),s(function(e){return a(e)})),c=!1,u="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){c=!0}void 0===document.documentElement.style.cssFloat&&(u="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];null!=r&&(n+=l(i)+":",n+=o(i,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=o(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=u),s)r[a]=s;else{var l=c&&i.shorthandPropertyExpansions[a];if(l)for(var d in l)r[d]="";else r[a]=""}}}};t.exports=p},{"./CSSProperty":80,"./ReactInstrumentation":150,"./dangerousStyleValue":193,"fbjs/lib/ExecutionEnvironment":39,"fbjs/lib/camelizeStyleName":41,"fbjs/lib/hyphenateStyleName":52,"fbjs/lib/memoizeStringOnly":59,"fbjs/lib/warning":63}],82:[function(e,t,n){"use strict";function i(){this._callbacks=null,this._contexts=null}var r=e("./reactProdInvariant"),o=e("object-assign"),a=e("./PooledClass");e("fbjs/lib/invariant");o(i.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?r("24"):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n8));var I=!1;x.canUseDOM&&(I=T("input")&&(!("documentMode"in document)||document.documentMode>11));var L={get:function(){return A.get.call(this)},set:function(e){R=""+e,A.set.call(this,e)}},F={eventTypes:M,extractEvents:function(e,t,n,r){var o,a,s=t?w.getNodeFromInstance(t):window;if(i(s)?j?o=l:a=c:S(s)?I?o=h:(o=m,a=f):g(s)&&(o=y),o){var u=o(e,t);if(u){var d=P.getPooled(M.change,u,n,r);return d.type="change",k.accumulateTwoPhaseDispatches(d),d}}a&&a(e,s,t)}};t.exports=F},{"./EventConstants":93,"./EventPluginHub":94,"./EventPropagators":97,"./ReactDOMComponentTree":118,"./ReactUpdates":168,"./SyntheticEvent":177,"./getEventTarget":201,"./isEventSupported":208,"./isTextInputElement":209,"fbjs/lib/ExecutionEnvironment":39,"fbjs/lib/keyOf":57}],84:[function(e,t,n){"use strict";function i(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function r(e,t,n){u.insertTreeBefore(e,t,n)}function o(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):g(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],l(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,i){for(var r=t;;){var o=r.nextSibling;if(g(e,r,i),r===n)break;r=o}}function l(e,t,n){for(;;){var i=t.nextSibling;if(i===n)break;e.removeChild(i)}}function c(e,t,n){var i=e.parentNode,r=e.nextSibling;r===t?n&&g(i,document.createTextNode(n),r):n?(m(r,n),l(i,r,t)):l(i,e,t)}var u=e("./DOMLazyTree"),d=e("./Danger"),p=e("./ReactMultiChildUpdateTypes"),h=(e("./ReactDOMComponentTree"),e("./ReactInstrumentation"),e("./createMicrosoftUnsafeLocalFunction")),f=e("./setInnerHTML"),m=e("./setTextContent"),g=h(function(e,t,n){e.insertBefore(t,n)}),y=d.dangerouslyReplaceNodeWithMarkup,v={dangerouslyReplaceNodeWithMarkup:y,replaceDelimitedText:c,processUpdates:function(e,t){for(var n=0;n-1?void 0:a("96",e),!c.plugins[n]){t.extractEvents?void 0:a("97",e),c.plugins[n]=t;var i=t.eventTypes;for(var o in i)r(i[o],t,o)?void 0:a("98",o,e)}}}function r(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,c.eventNameDispatchConfigs[n]=e;var i=e.phasedRegistrationNames;if(i){for(var r in i)if(i.hasOwnProperty(r)){var s=i[r];o(s,t,n)}return!0}return!!e.registrationName&&(o(e.registrationName,t,n),!0)}function o(e,t,n){c.registrationNameModules[e]?a("100",e):void 0,c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e("./reactProdInvariant"),s=(e("fbjs/lib/invariant"),null),l={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),i()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];l.hasOwnProperty(n)&&l[n]===r||(l[n]?a("102",n):void 0,l[n]=r,t=!0)}t&&i()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var i=c.registrationNameModules[t.phasedRegistrationNames[n]];if(i)return i}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var i=c.registrationNameModules;for(var r in i)i.hasOwnProperty(r)&&delete i[r]}};t.exports=c},{"./reactProdInvariant":212,"fbjs/lib/invariant":53}],96:[function(e,t,n){"use strict";function i(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function r(e){return e===v.topMouseMove||e===v.topTouchMove}function o(e){return e===v.topMouseDown||e===v.topTouchStart}function a(e,t,n,i){var r=e.type||"unknown-event";e.currentTarget=b.getNodeFromInstance(i),t?g.invokeGuardedCallbackWithCatch(r,n,e):g.invokeGuardedCallback(r,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,i=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),o.addPoolingTo(i),t.exports=i},{"./PooledClass":102,"./getTextContentAccessor":205,"object-assign":68}],99:[function(e,t,n){"use strict";var i=e("./DOMProperty"),r=i.injection.MUST_USE_PROPERTY,o=i.injection.HAS_BOOLEAN_VALUE,a=i.injection.HAS_NUMERIC_VALUE,s=i.injection.HAS_POSITIVE_NUMERIC_VALUE,l=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+i.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:o,allowTransparency:0,alt:0,async:o,autoComplete:0,autoPlay:o,capture:o,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|o,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:o,coords:0,crossOrigin:0,data:0,dateTime:0,default:o,defer:o,dir:0,disabled:o,download:l,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:o,formTarget:0,frameBorder:0,headers:0,height:0,hidden:o,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:o,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|o,muted:r|o,name:0,nonce:0,noValidate:o,open:o,optimum:0,pattern:0,placeholder:0,poster:0,preload:0,profile:0,radioGroup:0,readOnly:o,rel:0,required:o,reversed:o,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:o,scrolling:0,seamless:o,selected:r|o,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:o,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=c},{"./DOMProperty":87}],100:[function(e,t,n){"use strict";function i(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},i=(""+e).replace(t,function(e){return n[e]});return"$"+i}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},i="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+i).replace(t,function(e){return n[e]})}var o={escape:i,unescape:r};t.exports=o},{}],101:[function(e,t,n){"use strict";function i(e){null!=e.checkedLink&&null!=e.valueLink?s("87"):void 0}function r(e){i(e),null!=e.value||null!=e.onChange?s("88"):void 0}function o(e){i(e),null!=e.checked||null!=e.onChange?s("89"):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=e("./reactProdInvariant"),l=e("./ReactPropTypes"),c=e("./ReactPropTypeLocations"),u=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),d={value:function(e,t,n){return!e[t]||u[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:l.func},p={},h={checkPropTypes:function(e,t,n){for(var i in d){if(d.hasOwnProperty(i))var r=d[i](t,i,e,c.prop);if(r instanceof Error&&!(r.message in p)){p[r.message]=!0;a(n)}}},getValue:function(e){return e.valueLink?(r(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(o(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(r(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(o(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=h},{"./ReactPropTypeLocations":160,"./ReactPropTypes":161,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],102:[function(e,t,n){"use strict";var i=e("./reactProdInvariant"),r=(e("fbjs/lib/invariant"),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),o=function(e,t){var n=this;if(n.instancePool.length){var i=n.instancePool.pop();return n.call(i,e,t),i}return new n(e,t)},a=function(e,t,n){var i=this;if(i.instancePool.length){var r=i.instancePool.pop();return i.call(r,e,t,n),r}return new i(e,t,n)},s=function(e,t,n,i){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n,i),o}return new r(e,t,n,i)},l=function(e,t,n,i,r){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,i,r),a}return new o(e,t,n,i,r)},c=function(e){var t=this;e instanceof t?void 0:i("25"),e.destructor(),t.instancePool.length=0||null!=t.is}function f(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=null,this._domID=null,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=e("./reactProdInvariant"),g=e("object-assign"),y=e("./AutoFocusUtils"),v=e("./CSSPropertyOperations"),b=e("./DOMLazyTree"),k=e("./DOMNamespaces"),x=e("./DOMProperty"),w=e("./DOMPropertyOperations"),E=e("./EventConstants"),P=e("./EventPluginHub"),C=e("./EventPluginRegistry"),T=e("./ReactBrowserEventEmitter"),S=e("./ReactComponentBrowserEnvironment"),_=e("./ReactDOMButton"),O=e("./ReactDOMComponentFlags"),M=e("./ReactDOMComponentTree"),D=e("./ReactDOMInput"),N=e("./ReactDOMOption"),R=e("./ReactDOMSelect"),A=e("./ReactDOMTextarea"),j=(e("./ReactInstrumentation"),e("./ReactMultiChild")),I=e("./ReactServerRenderingTransaction"),L=(e("fbjs/lib/emptyFunction"),e("./escapeTextContentForBrowser")),F=(e("fbjs/lib/invariant"),e("./isEventSupported"),e("fbjs/lib/keyOf")),U=(e("fbjs/lib/shallowEqual"),e("./validateDOMNesting"),e("fbjs/lib/warning"),O),B=P.deleteListener,Y=M.getNodeFromInstance,V=T.listenTo,H=C.registrationNameModules,W={string:!0,number:!0},z=F({style:null}),G=F({__html:null}),q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},X=11,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Z={listing:!0,pre:!0,textarea:!0},$=g({menuitem:!0},Q),J=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ee={},te={}.hasOwnProperty,ne=1;f.displayName="ReactDOMComponent",f.Mixin={mountComponent:function(e,t,n,i){this._rootNodeID=ne++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var o=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(u,this);break;case"button":o=_.getHostProps(this,o,t);break;case"input":D.mountWrapper(this,o,t),o=D.getHostProps(this,o),e.getReactMountReady().enqueue(u,this);break;case"option":N.mountWrapper(this,o,t),o=N.getHostProps(this,o);break;case"select":R.mountWrapper(this,o,t),o=R.getHostProps(this,o),e.getReactMountReady().enqueue(u,this);break;case"textarea":A.mountWrapper(this,o,t),o=A.getHostProps(this,o),e.getReactMountReady().enqueue(u,this)}r(this,o);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===k.svg&&"foreignobject"===d)&&(a=k.html),a===k.html&&("svg"===this._tag?a=k.svg:"math"===this._tag&&(a=k.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var h,f=n._ownerDocument;if(a===k.html)if("script"===this._tag){var m=f.createElement("div"),g=this._currentElement.type;m.innerHTML="<"+g+">",h=m.removeChild(m.firstChild)}else h=o.is?f.createElement(this._currentElement.type,o.is):f.createElement(this._currentElement.type);else h=f.createElementNS(a,this._currentElement.type);M.precacheNode(this,h),this._flags|=U.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(h),this._updateDOMProperties(null,o,e);var v=b(h);this._createInitialChildren(e,o,i,v),p=v}else{var x=this._createOpenTagMarkupAndPutListeners(e,o),E=this._createContentMarkup(e,o,i);p=!E&&Q[this._tag]?x+"/>":x+">"+E+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(l,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(null!=r)if(H.hasOwnProperty(i))r&&o(this,i,r,e);else{i===z&&(r&&(r=this._previousStyleCopy=g({},t.style)),r=v.createMarkupForStyles(r,this));var a=null;null!=this._tag&&h(this._tag,t)?q.hasOwnProperty(i)||(a=w.createMarkupForCustomAttribute(i,r)):a=w.createMarkupForProperty(i,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var i="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(i=r.__html);else{var o=W[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)i=L(o);else if(null!=a){var s=this.mountChildren(a,e,n);i=s.join("")}}return Z[this._tag]&&"\n"===i.charAt(0)?"\n"+i:i},_createInitialChildren:function(e,t,n,i){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&b.queueHTML(i,r.__html);else{var o=W[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)b.queueText(i,o);else if(null!=a)for(var s=this.mountChildren(a,e,n),l=0;l"},receiveComponent:function(){},getHostNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),t.exports=a},{"./DOMLazyTree":85,"./ReactDOMComponentTree":118,"object-assign":68}],122:[function(e,t,n){"use strict";function i(e){return r.createFactory(e)}var r=e("./ReactElement"),o=e("fbjs/lib/mapObject"),a=o({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},i);t.exports=a},{"./ReactElement":138,"./ReactElementValidator":139,"fbjs/lib/mapObject":58}],123:[function(e,t,n){"use strict";var i={useCreateElement:!0};t.exports=i},{}],124:[function(e,t,n){"use strict";var i=e("./DOMChildrenOperations"),r=e("./ReactDOMComponentTree"),o={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);i.processUpdates(n,t)}};t.exports=o},{"./DOMChildrenOperations":84,"./ReactDOMComponentTree":118}],125:[function(e,t,n){"use strict";function i(){this._rootNodeID&&p.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=c.executeOnChange(t,e);d.asap(i,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),s=a;s.parentNode;)s=s.parentNode;for(var l=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,i=t.start):(n=t.start,i=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",i-n),r.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),i=e[u()].length,r=Math.min(t.start,i),o=void 0===t.end?r:Math.min(t.end,i);if(!n.extend&&r>o){var a=o;o=r,r=a}var s=c(e,r),l=c(e,o);if(s&&l){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),r>o?(n.addRange(d),n.extend(l.node,l.offset)):(d.setEnd(l.node,l.offset),n.addRange(d))}}}var l=e("fbjs/lib/ExecutionEnvironment"),c=e("./getNodeForCharacterOffset"),u=e("./getTextContentAccessor"),d=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:o,setOffsets:d?a:s};t.exports=p},{"./getNodeForCharacterOffset":204,"./getTextContentAccessor":205,"fbjs/lib/ExecutionEnvironment":39}],131:[function(e,t,n){"use strict";var i=e("./reactProdInvariant"),r=e("object-assign"),o=e("./DOMChildrenOperations"),a=e("./DOMLazyTree"),s=e("./ReactDOMComponentTree"),l=(e("./ReactInstrumentation"),e("./escapeTextContentForBrowser")),c=(e("fbjs/lib/invariant"),e("./validateDOMNesting"),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=null,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(c.prototype,{mountComponent:function(e,t,n,i){var r=n._idCounter++,o=" react-text: "+r+" ",c=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var u=n._ownerDocument,d=u.createComment(o),p=u.createComment(c),h=a(u.createDocumentFragment());return a.queueChild(h,a(d)),this._stringText&&a.queueChild(h,a(u.createTextNode(this._stringText))),a.queueChild(h,a(p)),s.precacheNode(this,d),this._closingComment=p,h}var f=l(this._stringText);return e.renderToStaticMarkup?f:""+f+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var i=this.getHostNode();o.replaceDelimitedText(i[0],i[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?i("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=c},{"./DOMChildrenOperations":84,"./DOMLazyTree":85,"./ReactDOMComponentTree":118,"./ReactInstrumentation":150,"./escapeTextContentForBrowser":194,"./reactProdInvariant":212,"./validateDOMNesting":218,"fbjs/lib/invariant":53,"object-assign":68}],132:[function(e,t,n){"use strict";function i(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(i,this),n}var o=e("./reactProdInvariant"),a=e("object-assign"),s=e("./DisabledInputUtils"),l=e("./LinkedValueUtils"),c=e("./ReactDOMComponentTree"),u=e("./ReactUpdates"),d=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?o("91"):void 0;var n=a({},s.getHostProps(e,t),{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=l.getValue(t),i=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a?o("92"):void 0,Array.isArray(s)&&(s.length<=1?void 0:o("93"),s=s[0]),a=""+s),null==a&&(a=""),i=a}e._wrapperState={initialValue:""+i,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e),i=l.getValue(t);if(null!=i){var r=""+i;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=c.getNodeFromInstance(e);t.value=t.textContent}});t.exports=d},{"./DisabledInputUtils":91,"./LinkedValueUtils":101,"./ReactDOMComponentTree":118,"./ReactUpdates":168,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63,"object-assign":68}],133:[function(e,t,n){"use strict";function i(e,t){"_hostNode"in e?void 0:l("33"),"_hostNode"in t?void 0:l("33");for(var n=0,i=e;i;i=i._hostParent)n++;for(var r=0,o=t;o;o=o._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e?void 0:l("35"),"_hostNode"in t?void 0:l("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function o(e){return"_hostNode"in e?void 0:l("36"),e._hostParent}function a(e,t,n){for(var i=[];e;)i.push(e),e=e._hostParent;var r;for(r=i.length;r-- >0;)t(i[r],!1,n);for(r=0;r0;)n(l[c],!1,o)}var l=e("./reactProdInvariant");e("fbjs/lib/invariant");t.exports={isAncestor:r,getLowestCommonAncestor:i,getParentInstance:o,traverseTwoPhase:a,traverseEnterLeave:s}},{"./reactProdInvariant":212,"fbjs/lib/invariant":53}],134:[function(e,t,n){"use strict";function i(e,t){null!=t&&"string"==typeof t.type&&(t.type.indexOf("-")>=0||t.props.is||o(e,t))}var r,o=(e("./DOMProperty"),e("./EventPluginRegistry"),e("./ReactComponentTreeDevtool"),e("fbjs/lib/warning"),function(e,t){var n=[];for(var i in t.props){var o=r(t.type,i,e);o||n.push(i)}n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length||n.length>1}),a={onBeforeMountComponent:function(e,t){i(e,t)},onBeforeUpdateComponent:function(e,t){i(e,t)}};t.exports=a},{"./DOMProperty":87,"./EventPluginRegistry":95,"./ReactComponentTreeDevtool":111,"fbjs/lib/warning":63}],135:[function(e,t,n){"use strict";function i(e,t,n,i,r,o){y.forEach(function(a){try{a[e]&&a[e](t,n,i,r,o)}catch(t){v[e]=!0}})}function r(){f.purgeUnmountedComponents(),h.clearHistory()}function o(e){return e.reduce(function(e,t){var n=f.getOwnerID(t),i=f.getParentID(t);return e[t]={displayName:f.getDisplayName(t),text:f.getText(t),updateCount:f.getUpdateCount(t),childIDs:f.getChildIDs(t),ownerID:n||f.getOwnerID(i),parentID:i},e},{})}function a(){var e=P,t=E||[],n=h.getHistory();if(0===w)return P=null,E=null,void r();if(t.length||n.length){var i=f.getRegisteredIDs();k.push({duration:g()-e,measurements:t||[],operations:n||[],treeSnapshot:o(i)})}r(),P=g(),E=[]}function s(e){}function l(e,t){0!==w&&(T=g(),S=0,C=e,_=t)}function c(e,t){0!==w&&(b&&E.push({timerType:t,instanceID:e,duration:g()-T-S}),T=null,S=null,C=null,_=null)}function u(){var e={startTime:T,nestedFlushStartTime:g(),debugID:C,timerType:_};x.push(e),T=null,S=null,C=null,_=null}function d(){var e=x.pop(),t=e.startTime,n=e.nestedFlushStartTime,i=e.debugID,r=e.timerType,o=g()-n;T=t,S+=o,C=i,_=r}var p=e("./ReactInvalidSetStateWarningDevTool"),h=e("./ReactHostOperationHistoryDevtool"),f=e("./ReactComponentTreeDevtool"),m=e("fbjs/lib/ExecutionEnvironment"),g=e("fbjs/lib/performanceNow"),y=(e("fbjs/lib/warning"),[]),v={},b=!1,k=[],x=[],w=0,E=null,P=null,C=null,T=null,S=null,_=null,O={addDevtool:function(e){y.push(e)},removeDevtool:function(e){for(var t=0;t1){for(var g=Array(m),y=0;y1){for(var b=Array(v),k=0;k.")}return t}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=h.uniqueKey||(h.uniqueKey={}),i=r(t);if(!n[i]){n[i]=!0;var o="";e&&e._owner&&e._owner!==l.current&&(o=" It was passed a child from "+e._owner.getName()+".")}}}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n/,o=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=i(e);return o.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=i(e);return r===n}};t.exports=a},{"./adler32":189}],153:[function(e,t,n){"use strict";function i(e,t){for(var n=Math.min(e.length,t.length),i=0;i.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=b(L,null,null,null,null,null,t);if(e){var l=x.get(e);a=l._processChildContext(l._context)}else a=T;var u=d(n);if(u){var h=u._currentElement,f=h.props;if(O(f,t)){var m=u._renderedComponent.getPublicInstance(),g=i&&function(){i.call(m)};return F._updateRootComponent(u,s,a,n,g),m}F.unmountComponentAtNode(n)}var y=r(n),v=y&&!!o(y),k=c(n),w=v&&!u&&!k,E=F._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return i&&i.call(E),E},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){!e||e.nodeType!==N&&e.nodeType!==R&&e.nodeType!==A?p("40"):void 0;var t=d(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(D);return!1}return delete j[t._instance.rootID],C.batchedUpdates(l,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,o,a){if(!t||t.nodeType!==N&&t.nodeType!==R&&t.nodeType!==A?p("41"):void 0,o){var s=r(t);if(w.canReuseMarkup(e,s))return void g.precacheNode(n,s);var l=s.getAttribute(w.CHECKSUM_ATTR_NAME);s.removeAttribute(w.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(w.CHECKSUM_ATTR_NAME,l);var u=e,d=i(u,c),f=" (client) "+u.substring(d-20,d+20)+"\n (server) "+c.substring(d-20,d+20);t.nodeType===R?p("42",f):void 0}if(t.nodeType===R?p("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else _(t,e),g.precacheNode(n,t.firstChild)}};t.exports=F},{"./DOMLazyTree":85,"./DOMProperty":87,"./ReactBrowserEventEmitter":104,"./ReactCurrentOwner":113,"./ReactDOMComponentTree":118,"./ReactDOMContainerInfo":119,"./ReactDOMFeatureFlags":123,"./ReactElement":138,"./ReactFeatureFlags":144,"./ReactInstanceMap":149,"./ReactInstrumentation":150,"./ReactMarkupChecksum":152,"./ReactReconciler":163,"./ReactUpdateQueue":167,"./ReactUpdates":168,"./instantiateReactComponent":207,"./reactProdInvariant":212,"./setInnerHTML":214,"./shouldUpdateReactComponent":216,"fbjs/lib/emptyObject":46,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],154:[function(e,t,n){"use strict";function i(e,t,n){return{type:p.INSERT_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:p.MOVE_EXISTING,content:null,fromIndex:e._mountIndex,fromNode:h.getHostNode(e),toIndex:n,afterNode:t}}function o(e,t){return{type:p.REMOVE_NODE,content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:p.SET_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:p.TEXT_CONTENT,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){d.processChildrenUpdates(e,t)}var u=e("./reactProdInvariant"),d=e("./ReactComponentEnvironment"),p=(e("./ReactInstanceMap"),e("./ReactInstrumentation"),e("./ReactMultiChildUpdateTypes")),h=(e("./ReactCurrentOwner"),e("./ReactReconciler")),f=e("./ReactChildReconciler"),m=(e("fbjs/lib/emptyFunction"),e("./flattenChildren")),g=(e("fbjs/lib/invariant"),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,i,r){var o;return o=m(t),f.updateChildren(e,o,n,i,r),o},mountChildren:function(e,t,n){var i=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=i;var r=[],o=0;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a],l=h.mountComponent(s,t,this,this._hostContainerInfo,n); -s._mountIndex=o++,r.push(l)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&u("118");var i=[s(e)];c(this,i)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&u("118");var i=[a(e)];c(this,i)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var i=this._renderedChildren,r={},o=this._reconcilerUpdateChildren(i,e,r,t,n);if(o||i){var a,s=null,u=0,d=0,p=null;for(a in o)if(o.hasOwnProperty(a)){var f=i&&i[a],m=o[a];f===m?(s=l(s,this.moveChild(f,p,d,u)),u=Math.max(f._mountIndex,u),f._mountIndex=d):(f&&(u=Math.max(f._mountIndex,u)),s=l(s,this._mountChildAtIndex(m,p,d,t,n))),d++,p=h.getHostNode(m)}for(a in r)r.hasOwnProperty(a)&&(s=l(s,this._unmountChild(i[a],r[a])));s&&c(this,s),this._renderedChildren=o}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,i){if(e._mountIndex>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),symbol:o("symbol"),any:a(),arrayOf:s,element:l(),instanceOf:c,node:h(),objectOf:d,oneOf:u,oneOfType:p,shape:f};t.exports=C},{"./ReactElement":138,"./ReactPropTypeLocationNames":159,"./getIteratorFn":203,"fbjs/lib/emptyFunction":45}],162:[function(e,t,n){"use strict";function i(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=e}var r=e("object-assign"),o=e("./CallbackQueue"),a=e("./PooledClass"),s=e("./ReactBrowserEventEmitter"),l=e("./ReactInputSelection"),c=(e("./ReactInstrumentation"),e("./Transaction")),u=e("./ReactUpdateQueue"),d={initialize:l.getSelectionInformation,close:l.restoreSelection},p={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},f=[d,p,h],m={getTransactionWrappers:function(){return f},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return u},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};r(i.prototype,c.Mixin,m),a.addPoolingTo(i),t.exports=i},{"./CallbackQueue":82,"./PooledClass":102,"./ReactBrowserEventEmitter":104,"./ReactInputSelection":148,"./ReactInstrumentation":150,"./ReactUpdateQueue":167,"./Transaction":186,"object-assign":68}],163:[function(e,t,n){"use strict";function i(){o.attachRefs(this,this._currentElement)}var r=e("./reactProdInvariant"),o=e("./ReactRef"),a=(e("./ReactInstrumentation"),e("fbjs/lib/invariant"),{mountComponent:function(e,t,n,r,o){var a=e.mountComponent(t,n,r,o);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(i,e),a},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){o.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,r){var a=e._currentElement;if(t!==a||r!==e._context){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,r),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(i,e)}},performUpdateIfNecessary:function(e,t,n){return e._updateBatchNumber!==n?void(null!=e._updateBatchNumber&&e._updateBatchNumber!==n+1?r("121",n,e._updateBatchNumber):void 0):void e.performUpdateIfNecessary(t)}});t.exports=a},{"./ReactInstrumentation":150,"./ReactRef":164,"./reactProdInvariant":212,"fbjs/lib/invariant":53}],164:[function(e,t,n){"use strict";function i(e,t,n){"function"==typeof e?e(t.getPublicInstance()):o.addComponentAsRefTo(t,e,n)}function r(e,t,n){"function"==typeof e?e(null):o.removeComponentAsRefFrom(t,e,n)}var o=e("./ReactOwner"),a={};a.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&i(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,i=null===t||t===!1;return n||i||t._owner!==e._owner||t.ref!==e.ref},a.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},t.exports=a},{"./ReactOwner":158}],165:[function(e,t,n){"use strict";function i(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new s(this)}var r=e("object-assign"),o=e("./PooledClass"),a=e("./Transaction"),s=(e("./ReactInstrumentation"),e("./ReactServerUpdateQueue")),l=[],c={enqueue:function(){}},u={getTransactionWrappers:function(){return l},getReactMountReady:function(){return c},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};r(i.prototype,a.Mixin,u),o.addPoolingTo(i),t.exports=i},{"./PooledClass":102,"./ReactInstrumentation":150,"./ReactServerUpdateQueue":166,"./Transaction":186,"object-assign":68}],166:[function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){}var o=e("./ReactUpdateQueue"),a=(e("./Transaction"),e("fbjs/lib/warning"),function(){function e(t){i(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&o.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?o.enqueueForceUpdate(e):r(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?o.enqueueReplaceState(e,t):r(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?o.enqueueSetState(e,t):r(e,"setState")},e}());t.exports=a},{"./ReactUpdateQueue":167,"./Transaction":186,"fbjs/lib/warning":63}],167:[function(e,t,n){"use strict";function i(e){l.enqueueUpdate(e)}function r(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,i=Object.keys(e);return i.length>0&&i.length<20?n+" (keys: "+i.join(", ")+")":n}function o(e,t){var n=s.get(e);return n?n:null}var a=e("./reactProdInvariant"),s=(e("./ReactCurrentOwner"),e("./ReactInstanceMap")),l=(e("./ReactInstrumentation"),e("./ReactUpdates")),c=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var r=o(e);return r?(r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],void i(r)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],i(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,i(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,i(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var r=n._pendingStateQueue||(n._pendingStateQueue=[]);r.push(t),i(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,i(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,r(e)):void 0}});t.exports=c},{"./ReactCurrentOwner":113,"./ReactInstanceMap":149,"./ReactInstrumentation":150,"./ReactUpdates":168,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],168:[function(e,t,n){"use strict";function i(){S.ReactReconcileTransaction&&x?void 0:u("123")}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function o(e,t,n,r,o,a){i(),x.batchedUpdates(e,t,n,r,o,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length?u("124",t,y.length):void 0,y.sort(a),v++;for(var n=0;n]/;t.exports=r},{}],195:[function(e,t,n){"use strict";function i(e){if(null==e)return null;if(1===e.nodeType)return e;var t=a.get(e);return t?(t=s(t),t?o.getNodeFromInstance(t):null):void("function"==typeof e.render?r("44"):r("45",Object.keys(e)))}var r=e("./reactProdInvariant"),o=(e("./ReactCurrentOwner"),e("./ReactDOMComponentTree")),a=e("./ReactInstanceMap"),s=e("./getHostComponentFromComposite");e("fbjs/lib/invariant"),e("fbjs/lib/warning");t.exports=i},{"./ReactCurrentOwner":113,"./ReactDOMComponentTree":118,"./ReactInstanceMap":149,"./getHostComponentFromComposite":202,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],196:[function(e,t,n){"use strict";function i(e,t,n,i){if(e&&"object"==typeof e){var r=e,o=void 0===r[n];o&&null!=t&&(r[n]=t)}}function r(e,t){if(null==e)return e;var n={};return o(e,i,n),n}var o=(e("./KeyEscapeUtils"),e("./traverseAllChildren"));e("fbjs/lib/warning");t.exports=r},{"./KeyEscapeUtils":100,"./ReactComponentTreeDevtool":111,"./traverseAllChildren":217,"fbjs/lib/warning":63}],197:[function(e,t,n){"use strict";function i(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}t.exports=i},{}],198:[function(e,t,n){"use strict";function i(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=i},{}],199:[function(e,t,n){"use strict";function i(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var r=e("./getEventCharCode"),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=i},{"./getEventCharCode":198}],200:[function(e,t,n){"use strict";function i(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var i=o[e];return!!i&&!!n[i]}function r(e){return i}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},{}],201:[function(e,t,n){"use strict";function i(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}t.exports=i},{}],202:[function(e,t,n){"use strict";function i(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=e("./ReactNodeTypes");t.exports=i},{"./ReactNodeTypes":156}],203:[function(e,t,n){"use strict";function i(e){var t=e&&(r&&e[r]||e[o]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=i},{}],204:[function(e,t,n){"use strict";function i(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var n=i(e),o=0,a=0;n;){if(3===n.nodeType){if(a=o+n.textContent.length,o<=t&&a>=t)return{node:n,offset:t-o};o=a}n=i(r(n))}}t.exports=o},{}],205:[function(e,t,n){"use strict";function i(){return!o&&r.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var r=e("fbjs/lib/ExecutionEnvironment"),o=null;t.exports=i},{"fbjs/lib/ExecutionEnvironment":39}],206:[function(e,t,n){"use strict";function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in l)return s[e]=t[n];return""}var o=e("fbjs/lib/ExecutionEnvironment"),a={animationend:i("Animation","AnimationEnd"),animationiteration:i("Animation","AnimationIteration"),animationstart:i("Animation","AnimationStart"),transitionend:i("Transition","TransitionEnd")},s={},l={};o.canUseDOM&&(l=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=r},{"fbjs/lib/ExecutionEnvironment":39}],207:[function(e,t,n){"use strict";function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,t){var n;if(null===e||e===!1)n=c.create(o);else if("object"==typeof e){var s=e;!s||"function"!=typeof s.type&&"string"!=typeof s.type?a("130",null==s.type?s.type:typeof s.type,i(s._owner)):void 0,"string"==typeof s.type?n=u.createInternalComponent(s):r(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(s)}else"string"==typeof e||"number"==typeof e?n=u.createInstanceForText(e):a("131",typeof e);n._mountIndex=0,n._mountImage=null;return n}var a=e("./reactProdInvariant"),s=e("object-assign"),l=e("./ReactCompositeComponent"),c=e("./ReactEmptyComponent"),u=e("./ReactHostComponent"),d=(e("./ReactInstrumentation"),e("fbjs/lib/invariant"),e("fbjs/lib/warning"),function(e){this.construct(e)});s(d.prototype,l.Mixin,{_instantiateReactComponent:o});t.exports=o},{"./ReactCompositeComponent":112,"./ReactEmptyComponent":140,"./ReactHostComponent":145,"./ReactInstrumentation":150,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63,"object-assign":68}],208:[function(e,t,n){"use strict";function i(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var r,o=e("fbjs/lib/ExecutionEnvironment");o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=i},{"fbjs/lib/ExecutionEnvironment":39}],209:[function(e,t,n){"use strict";function i(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=i},{}],210:[function(e,t,n){"use strict";function i(e){return o.isValidElement(e)?void 0:r("23"),e}var r=e("./reactProdInvariant"),o=e("./ReactElement");e("fbjs/lib/invariant");t.exports=i},{"./ReactElement":138,"./reactProdInvariant":212,"fbjs/lib/invariant":53}],211:[function(e,t,n){"use strict";function i(e){return'"'+r(e)+'"'}var r=e("./escapeTextContentForBrowser");t.exports=i},{"./escapeTextContentForBrowser":194}],212:[function(e,t,n){"use strict";function i(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,i=0;i]/,l=e("./createMicrosoftUnsafeLocalFunction"),c=l(function(e,t){if(e.namespaceURI!==o.svg||"innerHTML"in e)e.innerHTML=t;else{i=i||document.createElement("div"),i.innerHTML=""+t+"";for(var n=i.firstChild.childNodes,r=0;r=n.props.listMinElements)?i[e]=t:i.splice(e,1),n.state.timeoutID&&clearTimeout(n.state.timeoutID),n.setState({timeoutID:setTimeout(function(){return n.props.onChange(i)},750),list:i})},n.fillMinElements=function(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1],n=void 0,i=void 0,r=e;if(t&&e.length0,negative:e.formattedValue<0})},e.formatted&&o.default.createElement("span",{className:"value"},e.formatted),e.denomination&&o.default.createElement("span",{className:"denomination"},e.denomination))};l.propTypes={className:r.PropTypes.string,value:r.PropTypes.number,formattedValue:r.PropTypes.number,formatted:r.PropTypes.string,denomination:r.PropTypes.string},n.default=l},{classnames:33,react:219}],238:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("react"),o=i(r),a=e("../../markets/constants/market-types"),s=function(e){return o.default.createElement("div",{className:"step-1"},o.default.createElement("h1",null,"Select the type of market you want to create"),o.default.createElement("hr",null),o.default.createElement("div",{className:"market-types"},o.default.createElement("div",{className:"market-type binary"},o.default.createElement("h4",null,"A market with a YES or NO outcome"),o.default.createElement("button",{className:"button select",onClick:function(){return e.onValuesUpdated({type:a.BINARY,step:2})}},"Yes / No"),o.default.createElement("p",null,"Ask a question that has a simple YES or NO answer")),o.default.createElement("hr",null),o.default.createElement("div",{className:"market-type categorical"},o.default.createElement("h4",null,"A market with a MULTIPLE CHOICE outcome"),o.default.createElement("button",{className:"button select",onClick:function(){return e.onValuesUpdated({type:a.CATEGORICAL,step:2})}},"Multiple Choice"),o.default.createElement("p",null,"Ask a question and provide a set of multiple choice answers")),o.default.createElement("hr",null),o.default.createElement("div",{className:"market-type scalar"},o.default.createElement("h4",null,"A market with a NUMERIC outcome"),o.default.createElement("button",{className:"button select",onClick:function(){return e.onValuesUpdated({type:a.SCALAR,step:2})}},"Numeric"),o.default.createElement("p",null,"Ask a question that has an answer within a range of numbers"))),o.default.createElement("hr",null),o.default.createElement("div",{className:"important-message"},o.default.createElement("h4",null,"Important:"),o.default.createElement("p",null,"There is a 30.00 ETH bond charged to your account when you create a new market. If the outcome of your market cannot be determined (and the market cannot be expired as a result) or if your market is ruled unethical, this bond will be forfeited. If your market is expired the bond will be returned to you in full.")))};s.propTypes={onValuesUpdated:r.PropTypes.func},n.default=s},{"../../markets/constants/market-types":262,react:219}],239:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("react"),o=i(r),a=e("../../common/components/input-list"),s=i(a),l=function(e){return o.default.createElement("div",{className:"categorical"},o.default.createElement("h4",null,"What are the possible answers to your question? (required)"),o.default.createElement("p",null,'All possible outcomes to your question must be covered by these answers. You can add an "any other outcome" type answer at the end to ensure everything is covered.'),o.default.createElement(s.default,{className:"categorical-list",list:e.categoricalOutcomes,errors:e.errors&&e.errors.categoricalOutcomes||[],listMinElements:e.categoricalOutcomesMinNum,listMaxElements:e.categoricalOutcomesMaxNum,itemMaxLength:e.categoricalOutcomeMaxLength,onChange:function(t){return e.onValuesUpdated({categoricalOutcomes:t})}}))};l.propTypes={categoricalOutcomes:r.PropTypes.array,errors:r.PropTypes.object,categoricalOutcomesMinNum:r.PropTypes.number,categoricalOutcomesMaxNum:r.PropTypes.number,categoricalOutcomeMaxLength:r.PropTypes.number,onValuesUpdated:r.PropTypes.func},n.default=l},{"../../common/components/input-list":234,react:219}],240:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("react"),o=i(r),a=e("../../common/components/input"),s=i(a),l=function(e){return o.default.createElement("div",{className:"scalar"},o.default.createElement("h4",null,"What are the minimum and maximum values allowed when answering?"),o.default.createElement("p",null,"The answer to your question must be a number that falls between the minimum and maximum values you're about to set."),o.default.createElement("div",{className:"scalar-num min"},o.default.createElement("label",null,"Minimum"),o.default.createElement(s.default,{type:"text",value:e.scalarSmallNum,placeholder:"Minimum answer",maxLength:6,onChange:function(t){return e.onValuesUpdated({scalarSmallNum:t})}}),e.errors.scalarSmallNum&&o.default.createElement("span",{className:"error-message"},e.errors.scalarSmallNum)),o.default.createElement("div",{className:"scalar-num min"},o.default.createElement("label",null,"Maximum"),o.default.createElement(s.default,{type:"text",value:e.scalarBigNum,placeholder:"Maximum answer",maxLength:6,onChange:function(t){return e.onValuesUpdated({scalarBigNum:t})}}),e.errors.scalarBigNum&&o.default.createElement("span",{className:"error-message"},e.errors.scalarBigNum)))};l.propTypes={scalarSmallNum:r.PropTypes.string,scalarBigNum:r.PropTypes.string,onValuesUpdated:r.PropTypes.func},n.default=l},{"../../common/components/input":235,react:219}],241:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("react"),o=i(r),a=e("../../markets/constants/market-types"),s=e("./create-market-form-2-categorical"),l=i(s),c=e("./create-market-form-2-scalar"),u=i(c),d=e("../../create-market/components/create-market-form-buttons"),p=i(d),h=e("../../common/components/input"),f=i(h),m=e("../../common/components/datepicker"),g=i(m),y=function(e){var t=void 0;switch(e.type){case a.CATEGORICAL:t=o.default.createElement(l.default,e);break;case a.SCALAR:t=o.default.createElement(u.default,e)}return o.default.createElement("div",{className:"step-2"},o.default.createElement("div",{className:"description"},o.default.createElement("h1",null,"What do you want to ask?"),o.default.createElement(f.default,{type:"text",value:e.description,placeholder:e.descriptionPlaceholder,maxLength:e.descriptionMaxLength,onChange:function(t){return e.onValuesUpdated({description:t})}}),e.errors.description&&o.default.createElement("span",{className:"error-message"},e.errors.description)),t,o.default.createElement("div",{className:"end-date"},o.default.createElement("h4",null,"What's the end date for your question?"),o.default.createElement(g.default,{endDate:e.endDate,onValuesUpdated:e.onValuesUpdated}),e.errors.endDate&&o.default.createElement("span",{className:"error-message"},e.errors.endDate)),o.default.createElement(p.default,{disabled:!e.isValid,onNext:function(){return e.onValuesUpdated({step:e.step+1})},onPrev:function(){return e.onValuesUpdated({step:e.step-1})}}))};y.propTypes={type:r.PropTypes.string,description:r.PropTypes.string,endDate:r.PropTypes.object,descriptionPlaceholder:r.PropTypes.string,descriptionMaxLength:r.PropTypes.number,minEndDate:r.PropTypes.object,isValid:r.PropTypes.bool,errors:r.PropTypes.object,onValuesUpdated:r.PropTypes.func},n.default=y},{"../../common/components/datepicker":232,"../../common/components/input":235,"../../create-market/components/create-market-form-buttons":245,"../../markets/constants/market-types":262,"./create-market-form-2-categorical":239,"./create-market-form-2-scalar":240,react:219}],242:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("react"),o=i(r),a=e("classnames"),s=i(a),l=e("../../common/components/input-list"),c=i(l),u=e("../../create-market/components/create-market-form-buttons"),d=i(u),p=e("../../common/components/input"),h=i(p),f=function(e){return o.default.createElement("div",{className:"step-3"},o.default.createElement("h1",null,"Additional market information"),o.default.createElement("div",{className:"expiry"},o.default.createElement("h4",null,"What is the source of expiry information for your question?"),o.default.createElement("span",{className:"expiry-source-option"},o.default.createElement("input",{value:e.expirySourceTypes.generic,type:"radio",checked:e.expirySource===e.expirySourceTypes.generic,onChange:function(){return e.onValuesUpdated({expirySource:e.expirySourceTypes.generic})}}),o.default.createElement("span",null,"Outcome will be covered by local, national or international news media.")),o.default.createElement("span",{className:"expiry-source-option"},o.default.createElement("input",{value:e.expirySourceTypes.specific,type:"radio",checked:e.expirySource===e.expirySourceTypes.specific,onChange:function(){return e.onValuesUpdated({expirySource:e.expirySourceTypes.specific})}}),o.default.createElement("span",null,"Outcome will be detailed on a specific publicly available website:")),o.default.createElement("div",{className:(0,s.default)("expiry-source-url",{displayNone:e.expirySource!==e.expirySourceTypes.specific})},o.default.createElement(h.default,{type:"text",value:e.expirySourceUrl,placeholder:"http://www.boxofficemojo.com",onChange:function(t){return e.onValuesUpdated({expirySourceUrl:t})}})),(e.errors.expirySource||e.errors.expirySourceUrl)&&o.default.createElement("span",{className:"error-message"},e.errors.expirySource||e.errors.expirySourceUrl)),o.default.createElement("div",{className:"tags"},o.default.createElement("h4",null,"Add some tags to your market (optional)"),o.default.createElement("p",null,"Up to three tags can be added to categorize your market. For example: politics, sports, entertainment or technology."),o.default.createElement(c.default,{className:"tags-list",list:e.tags,errors:e.errors&&e.errors.tags,listMaxElements:e.tagsMaxNum,itemMaxLength:e.tagMaxLength,onChange:function(t){return e.onValuesUpdated({tags:t})}})),o.default.createElement("div",{className:"details-text"},o.default.createElement("h4",null,"Does your question need further explanation? (optional)"),o.default.createElement("p",null,"Your question: ",e.description),o.default.createElement(h.default,{className:"details-text-input",value:e.detailsText,isMultiline:!0,maxLength:500,placeholder:"Optional: enter a more detailed description of your market.",onChange:function(t){return e.onValuesUpdated({detailsText:t})}})),o.default.createElement(d.default,{disabled:!e.isValid,onNext:function(){return e.onValuesUpdated({step:e.step+1})},onPrev:function(){return e.onValuesUpdated({step:e.step-1})}}))};f.propTypes={expirySource:r.PropTypes.string,expirySourceUrl:r.PropTypes.string,expirySourceTypes:r.PropTypes.object,tags:r.PropTypes.array,tagsMaxNum:r.PropTypes.number,tagMaxLength:r.PropTypes.number, -description:r.PropTypes.string,detailsText:r.PropTypes.string,isValid:r.PropTypes.bool,errors:r.PropTypes.object,onValuesUpdated:r.PropTypes.func},n.default=f},{"../../common/components/input":235,"../../common/components/input-list":234,"../../create-market/components/create-market-form-buttons":245,classnames:33,react:219}],243:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{series.name}: {point.y}
',valueDecimals:2},series:e.series};return c.default.createElement("div",{className:"price-history-chart"},c.default.createElement(h.default,{config:t}))}}]),t}(l.Component);f.propTypes={series:l.PropTypes.array},n.default=f},{"../../../utils/should-component-update-pure":287,react:219,"react-highcharts":77}],253:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&a.default.createElement(f.default,r({className:"positions-gain"},e.positionsSummary.gainPercent,{formatted:e.positionsSummary.gainPercent.rounded,formattedValue:e.positionsSummary.gainPercent.roundedValue}))),!!e.loginAccount&&!!e.loginAccount.id&&a.default.createElement(p.default,r({className:(0,l.default)("site-nav-link",c.TRANSACTIONS,{active:e.activePage===c.TRANSACTIONS},{working:e.isTransactionsWorking}),title:e.loginAccount.realEther&&"real ether: "+e.loginAccount.realEther.full},e.transactionsLink),(!e.isTransactionsWorking||e.activePage===c.TRANSACTIONS)&&a.default.createElement(f.default,r({},e.loginAccount.rep||{},{formatted:e.loginAccount.rep&&e.loginAccount.rep.rounded,formattedValue:e.loginAccount.rep&&e.loginAccount.rep.roundedValue})),(!e.isTransactionsWorking||e.activePage===c.TRANSACTIONS)&&a.default.createElement(f.default,r({},e.loginAccount.ether||{},{formatted:e.loginAccount.ether&&e.loginAccount.ether.rounded,formattedValue:e.loginAccount.ether&&e.loginAccount.ether.roundedValue})),e.isTransactionsWorking&&e.activePage!==c.TRANSACTIONS&&a.default.createElement("span",{className:"link-text"},e.transactionsTotals.title)),!e.loginAccount.id&&a.default.createElement(p.default,r({className:(0,l.default)("site-nav-link",u.AUTH_TYPES[e.activePage],{active:!!u.AUTH_TYPES[e.activePage]})},e.authLink),"Sign Up / Login"),e.loginAccount.id&&a.default.createElement(p.default,r({className:(0,l.default)("site-nav-link",c.ACCOUNT,{active:e.activePage===c.ACCOUNT})},e.accountLink),e.accountLinkText)))};m.propTypes={activePage:a.default.PropTypes.string,loginAccount:a.default.PropTypes.object,positionsSummary:a.default.PropTypes.object,transactionsTotals:a.default.PropTypes.object,isTransactionsWorking:a.default.PropTypes.bool,marketsLink:a.default.PropTypes.object,positionsLink:a.default.PropTypes.object,transactionsLink:a.default.PropTypes.object,authLink:a.default.PropTypes.object},n.default=m},{"../../auth/constants/auth-types":228,"../../common/components/value-denomination":237,"../../link/components/link":249,"../../site/constants/pages":274,classnames:33,react:219}],274:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=n.MARKETS="markets";n.MAKE="make",n.POSITIONS="positions",n.TRANSACTIONS="transactions",n.M="m",n.ACCOUNT="account",n.DEFAULT_PAGE=i},{}],275:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("react"),o=i(r),a=e("../../../modules/trade/components/trade-panel-row-outcome"),s=i(a),l=e("../../../modules/trade/components/trade-panel-row-order"),c=i(l),u=function(e){for(var t=[],n=Math.max(e.outcome.orderBook.bids.length,e.outcome.orderBook.asks.length),i=1,r=i;r35&&"..."||"")),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.marketDescription},e.data.marketDescription.substring(0,100)+(e.data.marketDescription.length>100&&"..."||""))),e.type===c.BUY_SHARES?t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.shares&&!!e.shares.value&&a.default.createElement(p.default,r({className:"value-change shares"},e.shares)),!!e.etherNegative&&!!e.etherNegative.value&&a.default.createElement(p.default,r({className:"value-change ether"},e.etherNegative))):t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.sharesNegative&&!!e.sharesNegative.value&&a.default.createElement(p.default,r({className:"value-change shares"},e.sharesNegative)),!!e.ether&&!!e.ether.value&&a.default.createElement(p.default,r({className:"value-change ether"},e.ether)));break;case c.TRADE_SUMMARY:t.description=a.default.createElement("span",{className:"description"}," "),t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.shares&&!!e.shares.value&&a.default.createElement(p.default,r({className:"value-change shares"},e.shares)),!!e.ether&&!!e.ether.value&&a.default.createElement(p.default,r({className:"value-change ether"},e.ether)));break;case u.LOGIN:t.description=a.default.createElement("span",{className:"description"},"Login");break;case u.REGISTER:t.description=a.default.createElement("span",{className:"description"},"Load free beta assets");break;case c.CREATE_MARKET:t.description=a.default.createElement("span",{className:"description"},a.default.createElement("span",null,"Make"),a.default.createElement("strong",null,e.data.type),a.default.createElement("span",null,"market"),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.description},e.data.description.substring(0,100)+(e.data.description.length>100&&"..."||"")));break;case c.SUBMIT_REPORT:t.description=a.default.createElement("span",{className:"description"},a.default.createElement("span",null,"Report"),a.default.createElement("strong",null,e.data.outcome.name.substring(0,35)+(e.data.outcome.name.length>35&&"..."||"")),!!e.data.isUnethical&&a.default.createElement("strong",{className:"unethical"}," and Unethical"),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.market.description},e.data.market.description.substring(0,100)+(e.data.market.description.length>100&&"..."||"")));break;case c.GENERATE_ORDER_BOOK:t.description=a.default.createElement("span",{className:"description"},a.default.createElement("span",null,"Generate Order Book"),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.description},e.data.description.substring(0,100)+(e.data.description.length>100&&"..."||"")));break;default:t.description=a.default.createElement("span",{className:"description"},e.type),t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.shares&&!!e.shares.value&&a.default.createElement(p.default,r({className:"value-change shares"},e.shares)),!!e.ether&&!!e.ether.value&&a.default.createElement(p.default,r({className:"value-change ether"},e.ether)))}return a.default.createElement("article",{className:(0,l.default)("transaction-item",e.className,e.status)},e.index&&a.default.createElement("span",{className:"index"},e.index+"."),t.description,t.valueChange,e.status&&a.default.createElement("div",{className:"status-and-message"},a.default.createElement("span",{className:"status"},e.status),a.default.createElement("br",null),a.default.createElement("span",{className:"message"},e.message)))};h.propTypes={className:a.default.PropTypes.string,index:a.default.PropTypes.number,type:a.default.PropTypes.string,status:a.default.PropTypes.string,data:a.default.PropTypes.object,shares:a.default.PropTypes.object,ether:a.default.PropTypes.object,asksToBuy:a.default.PropTypes.array},n.default=h},{"../../auth/constants/auth-types":228,"../../common/components/value-denomination":237,"../../transactions/constants/types":285,classnames:33,react:219}],283:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("react"),o=i(r),a=e("../../site/components/site-header"),s=i(a),l=e("../../site/components/site-footer"),c=i(l),u=e("../../transactions/components/transactions"),d=i(u),p=function(e){return o.default.createElement("main",{className:"page transactions"},o.default.createElement(s.default,e.siteHeader),o.default.createElement("header",{className:"page-header"},o.default.createElement("div",{className:"l-container"},o.default.createElement("span",{className:"big-line"},e.transactionsTotals.title))),o.default.createElement("div",{className:"page-content"},o.default.createElement("div",{className:"l-container"},o.default.createElement(d.default,{className:"transactions-content",transactions:e.transactions}))),o.default.createElement(c.default,null))};p.propTypes={className:o.default.PropTypes.string,siteHeader:o.default.PropTypes.object,transactions:o.default.PropTypes.array,transactionsTotals:o.default.PropTypes.object},n.default=p},{"../../site/components/site-footer":272,"../../site/components/site-header":273,"../../transactions/components/transactions":284,react:219}],284:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new u(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function o(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function a(e,t,n){for(var r,i=[],a=t;au?u:c+s));return 1===r?(t=e[n-1],i+=l[t>>2],i+=l[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=l[t>>10],i+=l[t>>4&63],i+=l[t<<2&63],i+="="),o.push(i),o.join("")}n.toByteArray=i,n.fromByteArray=s;var l=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array;r()},{}],3:[function(e,t,n){"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),a.alloc(+e)}function y(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return M(this,t,n);case"binary":return D(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r){function i(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,a=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,n/=2}for(var l=-1,c=n;ci&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var l,c,u,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=e[i+1],128===(192&l)&&(d=(31&o)<<6|63&l,d>127&&(a=d));break;case 3:l=e[i+1],c=e[i+2],128===(192&l)&&128===(192&c)&&(d=(15&o)<<12|(63&l)<<6|63&c,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:l=e[i+1],c=e[i+2],u=e[i+3],128===(192&l)&&128===(192&c)&&128===(192&u)&&(d=(15&o)<<18|(63&l)<<12|(63&c)<<6|63&u,d>65535&&d<1114112&&(a=d))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return _(r)}function _(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function F(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||F(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||F(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,n,r,52,8),n+8}function Y(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function q(e){return Q.toByteArray(Y(e))}function X(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e){return e!==e}var Q=e("base64-js"),Z=e("ieee754"),$=e("isarray");n.Buffer=a,n.SlowBuffer=g,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:r(),n.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return s(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return c(null,e,t,n)},a.allocUnsafe=function(e){return u(null,e)},a.allocUnsafeSlow=function(e){return u(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,l=Math.min(o,s),c=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(t<0&&(t=Math.max(this.length+t,0)),"string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:k(this,e,t,n);if("number"==typeof e)return a.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):k(this,[e],t,n);throw new TypeError("val must be string, number or Buffer")},a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"binary":return P(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;oe,"expected #{this} to have a length above #{exp} but got #{act}","expected #{this} to not have a length above #{exp}",e,r)}else this.assert(n>e,"expected #{this} to be above "+e,"expected #{this} to be at most "+e)}function c(e,t){t&&_(this,"message",t);var n=_(this,"object");if(_(this,"doLength")){new O(n,t).to.have.property("length");var r=n.length;this.assert(r>=e,"expected #{this} to have a length at least #{exp} but got #{act}","expected #{this} to have a length below #{exp}",e,r)}else this.assert(n>=e,"expected #{this} to be at least "+e,"expected #{this} to be below "+e)}function u(e,t){t&&_(this,"message",t);var n=_(this,"object");if(_(this,"doLength")){new O(n,t).to.have.property("length");var r=n.length;this.assert(r1)throw new Error(o);break;case"object":if(arguments.length>1)throw new Error(o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}if(!e.length)throw new Error("keys required");var a=Object.keys(r),s=e,l=e.length,c=_(this,"any"),u=_(this,"all");if(c||u||(u=!0),c){var d=s.filter(function(e){return~a.indexOf(e)});i=d.length>0}if(u&&(i=e.every(function(e){return~a.indexOf(e)}),_(this,"negate")||_(this,"contains")||(i=i&&e.length==a.length)),l>1){e=e.map(function(e){return t.inspect(e)});var p=e.pop();u&&(n=e.join(", ")+", and "+p),c&&(n=e.join(", ")+", or "+p)}else n=t.inspect(e[0]);n=(l>1?"keys ":"key ")+n,n=(_(this,"contains")?"contain ":"have ")+n,this.assert(i,"expected #{this} to "+n,"expected #{this} to not "+n,s.slice(0).sort(),a.sort(),!0)}function b(e,n,r){r&&_(this,"message",r);var i=_(this,"object");new O(i,r).is.a("function");var o=!1,a=null,s=null,l=null;0===arguments.length?(n=null,e=null):e&&(e instanceof RegExp||"string"==typeof e)?(n=e,e=null):e&&e instanceof Error?(a=e,e=null,n=null):"function"==typeof e?(s=e.prototype.name,(!s||"Error"===s&&e!==Error)&&(s=e.name||(new e).name)):e=null;try{i()}catch(r){if(a)return this.assert(r===a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}",a instanceof Error?a.toString():a,r instanceof Error?r.toString():r),_(this,"object",r),this;if(e&&(this.assert(r instanceof e,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp} but #{act} was thrown",s,r instanceof Error?r.toString():r),!n))return _(this,"object",r),this;var c="error"===t.type(r)&&"message"in r?r.message:""+r;if(null!=c&&n&&n instanceof RegExp)return this.assert(n.exec(c),"expected #{this} to throw error matching #{exp} but got #{act}","expected #{this} to throw error not matching #{exp}",n,c),_(this,"object",r),this;if(null!=c&&n&&"string"==typeof n)return this.assert(~c.indexOf(n),"expected #{this} to throw error including #{exp} but got #{act}","expected #{this} to throw error not including #{act}",n,c),_(this,"object",r),this;o=!0,l=r}var u="",d=null!==s?s:a?"#{exp}":"an error";o&&(u=" but #{act} was thrown"),this.assert(o===!0,"expected #{this} to throw "+d+u,"expected #{this} to not throw "+d+u,a instanceof Error?a.toString():a,l instanceof Error?l.toString():l),_(this,"object",l)}function k(e,n){n&&_(this,"message",n);var r=_(this,"object"),i=_(this,"itself"),o="function"!==t.type(r)||i?r[e]:r.prototype[e];this.assert("function"==typeof o,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}function x(e,n){n&&_(this,"message",n);var r=_(this,"object"),i=e(r);this.assert(i,"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),!this.negate,i)}function w(e,n,r){r&&_(this,"message",r);var i=_(this,"object");if(new O(i,r).is.a("number"),"number"!==t.type(e)||"number"!==t.type(n))throw new Error("the arguments to closeTo or approximately must be numbers");this.assert(Math.abs(i-e)<=n,"expected #{this} to be close to "+e+" +/- "+n,"expected #{this} not to be close to "+e+" +/- "+n)}function E(e,t,n){return e.every(function(e){return n?t.some(function(t){return n(e,t)}):t.indexOf(e)!==-1})}function P(e,t){t&&_(this,"message",t);var n=_(this,"object");new O(e).to.be.an("array"),this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n); +}function C(e,t,n){n&&_(this,"message",n);var r=_(this,"object");new O(e,n).to.have.property(t),new O(r).is.a("function");var i=e[t];r(),this.assert(i!==e[t],"expected ."+t+" to change","expected ."+t+" to not change")}function T(e,t,n){n&&_(this,"message",n);var r=_(this,"object");new O(e,n).to.have.property(t),new O(r).is.a("function");var i=e[t];r(),this.assert(e[t]-i>0,"expected ."+t+" to increase","expected ."+t+" to not increase")}function S(e,t,n){n&&_(this,"message",n);var r=_(this,"object");new O(e,n).to.have.property(t),new O(r).is.a("function");var i=e[t];r(),this.assert(e[t]-i<0,"expected ."+t+" to decrease","expected ."+t+" to not decrease")}var O=e.Assertion,_=(Object.prototype.toString,t.flag);["to","be","been","is","and","has","have","with","that","which","at","of","same"].forEach(function(e){O.addProperty(e,function(){return this})}),O.addProperty("not",function(){_(this,"negate",!0)}),O.addProperty("deep",function(){_(this,"deep",!0)}),O.addProperty("any",function(){_(this,"any",!0),_(this,"all",!1)}),O.addProperty("all",function(){_(this,"all",!0),_(this,"any",!1)}),O.addChainableMethod("an",n),O.addChainableMethod("a",n),O.addChainableMethod("include",i,r),O.addChainableMethod("contain",i,r),O.addChainableMethod("contains",i,r),O.addChainableMethod("includes",i,r),O.addProperty("ok",function(){this.assert(_(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),O.addProperty("true",function(){this.assert(!0===_(this,"object"),"expected #{this} to be true","expected #{this} to be false",!this.negate)}),O.addProperty("false",function(){this.assert(!1===_(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!this.negate)}),O.addProperty("null",function(){this.assert(null===_(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}),O.addProperty("undefined",function(){this.assert(void 0===_(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}),O.addProperty("NaN",function(){this.assert(isNaN(_(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")}),O.addProperty("exist",function(){this.assert(null!=_(this,"object"),"expected #{this} to exist","expected #{this} to not exist")}),O.addProperty("empty",function(){var e=_(this,"object"),t=e;Array.isArray(e)||"string"==typeof object?t=e.length:"object"==typeof e&&(t=Object.keys(e).length),this.assert(!t,"expected #{this} to be empty","expected #{this} not to be empty")}),O.addProperty("arguments",o),O.addProperty("Arguments",o),O.addMethod("equal",a),O.addMethod("equals",a),O.addMethod("eq",a),O.addMethod("eql",s),O.addMethod("eqls",s),O.addMethod("above",l),O.addMethod("gt",l),O.addMethod("greaterThan",l),O.addMethod("least",c),O.addMethod("gte",c),O.addMethod("below",u),O.addMethod("lt",u),O.addMethod("lessThan",u),O.addMethod("most",d),O.addMethod("lte",d),O.addMethod("within",function(e,t,n){n&&_(this,"message",n);var r=_(this,"object"),i=e+".."+t;if(_(this,"doLength")){new O(r,n).to.have.property("length");var o=r.length;this.assert(o>=e&&o<=t,"expected #{this} to have a length within "+i,"expected #{this} to not have a length within "+i)}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+i,"expected #{this} to not be within "+i)}),O.addMethod("instanceof",p),O.addMethod("instanceOf",p),O.addMethod("property",function(e,n,r){r&&_(this,"message",r);var i=!!_(this,"deep"),o=i?"deep property ":"property ",a=_(this,"negate"),s=_(this,"object"),l=i?t.getPathInfo(e,s):null,c=i?l.exists:t.hasProperty(e,s),u=i?l.value:s[e];if(a&&arguments.length>1){if(void 0===u)throw r=null!=r?r+": ":"",new Error(r+t.inspect(s)+" has no "+o+t.inspect(e))}else this.assert(c,"expected #{this} to have a "+o+t.inspect(e),"expected #{this} to not have "+o+t.inspect(e));arguments.length>1&&this.assert(n===u,"expected #{this} to have a "+o+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have a "+o+t.inspect(e)+" of #{act}",n,u),_(this,"object",u)}),O.addMethod("ownProperty",h),O.addMethod("haveOwnProperty",h),O.addMethod("ownPropertyDescriptor",f),O.addMethod("haveOwnPropertyDescriptor",f),O.addChainableMethod("length",g,m),O.addMethod("lengthOf",g),O.addMethod("match",y),O.addMethod("matches",y),O.addMethod("string",function(e,n){n&&_(this,"message",n);var r=_(this,"object");new O(r,n).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))}),O.addMethod("keys",v),O.addMethod("key",v),O.addMethod("throw",b),O.addMethod("throws",b),O.addMethod("Throw",b),O.addMethod("respondTo",k),O.addMethod("respondsTo",k),O.addProperty("itself",function(){_(this,"itself",!0)}),O.addMethod("satisfy",x),O.addMethod("satisfies",x),O.addMethod("closeTo",w),O.addMethod("approximately",w),O.addMethod("members",function(e,n){n&&_(this,"message",n);var r=_(this,"object");new O(r).to.be.an("array"),new O(e).to.be.an("array");var i=_(this,"deep")?t.eql:void 0;return _(this,"contains")?this.assert(E(e,r,i),"expected #{this} to be a superset of #{act}","expected #{this} to not be a superset of #{act}",r,e):void this.assert(E(r,e,i)&&E(e,r,i),"expected #{this} to have the same members as #{act}","expected #{this} to not have the same members as #{act}",r,e)}),O.addMethod("oneOf",P),O.addChainableMethod("change",C),O.addChainableMethod("changes",C),O.addChainableMethod("increase",T),O.addChainableMethod("increases",T),O.addChainableMethod("decrease",S),O.addChainableMethod("decreases",S),O.addProperty("extensible",function(){var e,t=_(this,"object");try{e=Object.isExtensible(t)}catch(t){if(!(t instanceof TypeError))throw t;e=!1}this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")}),O.addProperty("sealed",function(){var e,t=_(this,"object");try{e=Object.isSealed(t)}catch(t){if(!(t instanceof TypeError))throw t;e=!0}this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")}),O.addProperty("frozen",function(){var e,t=_(this,"object");try{e=Object.isFrozen(t)}catch(t){if(!(t instanceof TypeError))throw t;e=!0}this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})}},{}],9:[function(e,t,n){t.exports=function(e,t){var n=e.Assertion,r=t.flag,i=e.assert=function(t,r){var i=new n(null,null,e.assert);i.assert(t,r,"[ negation message unavailable ]")};i.fail=function(t,n,r,o){throw r=r||"assert.fail()",new e.AssertionError(r,{actual:t,expected:n,operator:o},i.fail)},i.isOk=function(e,t){new n(e,t).is.ok},i.isNotOk=function(e,t){new n(e,t).is.not.ok},i.equal=function(e,t,o){var a=new n(e,o,i.equal);a.assert(t==r(a,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e)},i.notEqual=function(e,t,o){var a=new n(e,o,i.notEqual);a.assert(t!=r(a,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e)},i.strictEqual=function(e,t,r){new n(e,r).to.equal(t)},i.notStrictEqual=function(e,t,r){new n(e,r).to.not.equal(t)},i.deepEqual=function(e,t,r){new n(e,r).to.eql(t)},i.notDeepEqual=function(e,t,r){new n(e,r).to.not.eql(t)},i.isAbove=function(e,t,r){new n(e,r).to.be.above(t)},i.isAtLeast=function(e,t,r){new n(e,r).to.be.least(t)},i.isBelow=function(e,t,r){new n(e,r).to.be.below(t)},i.isAtMost=function(e,t,r){new n(e,r).to.be.most(t)},i.isTrue=function(e,t){new n(e,t).is.true},i.isNotTrue=function(e,t){new n(e,t).to.not.equal(!0)},i.isFalse=function(e,t){new n(e,t).is.false},i.isNotFalse=function(e,t){new n(e,t).to.not.equal(!1)},i.isNull=function(e,t){new n(e,t).to.equal(null)},i.isNotNull=function(e,t){new n(e,t).to.not.equal(null)},i.isNaN=function(e,t){new n(e,t).to.be.NaN},i.isNotNaN=function(e,t){new n(e,t).not.to.be.NaN},i.isUndefined=function(e,t){new n(e,t).to.equal(void 0)},i.isDefined=function(e,t){new n(e,t).to.not.equal(void 0)},i.isFunction=function(e,t){new n(e,t).to.be.a("function")},i.isNotFunction=function(e,t){new n(e,t).to.not.be.a("function")},i.isObject=function(e,t){new n(e,t).to.be.a("object")},i.isNotObject=function(e,t){new n(e,t).to.not.be.a("object")},i.isArray=function(e,t){new n(e,t).to.be.an("array")},i.isNotArray=function(e,t){new n(e,t).to.not.be.an("array")},i.isString=function(e,t){new n(e,t).to.be.a("string")},i.isNotString=function(e,t){new n(e,t).to.not.be.a("string")},i.isNumber=function(e,t){new n(e,t).to.be.a("number")},i.isNotNumber=function(e,t){new n(e,t).to.not.be.a("number")},i.isBoolean=function(e,t){new n(e,t).to.be.a("boolean")},i.isNotBoolean=function(e,t){new n(e,t).to.not.be.a("boolean")},i.typeOf=function(e,t,r){new n(e,r).to.be.a(t)},i.notTypeOf=function(e,t,r){new n(e,r).to.not.be.a(t)},i.instanceOf=function(e,t,r){new n(e,r).to.be.instanceOf(t)},i.notInstanceOf=function(e,t,r){new n(e,r).to.not.be.instanceOf(t)},i.include=function(e,t,r){new n(e,r,i.include).include(t)},i.notInclude=function(e,t,r){new n(e,r,i.notInclude).not.include(t)},i.match=function(e,t,r){new n(e,r).to.match(t)},i.notMatch=function(e,t,r){new n(e,r).to.not.match(t)},i.property=function(e,t,r){new n(e,r).to.have.property(t)},i.notProperty=function(e,t,r){new n(e,r).to.not.have.property(t)},i.deepProperty=function(e,t,r){new n(e,r).to.have.deep.property(t)},i.notDeepProperty=function(e,t,r){new n(e,r).to.not.have.deep.property(t)},i.propertyVal=function(e,t,r,i){new n(e,i).to.have.property(t,r)},i.propertyNotVal=function(e,t,r,i){new n(e,i).to.not.have.property(t,r)},i.deepPropertyVal=function(e,t,r,i){new n(e,i).to.have.deep.property(t,r)},i.deepPropertyNotVal=function(e,t,r,i){new n(e,i).to.not.have.deep.property(t,r)},i.lengthOf=function(e,t,r){new n(e,r).to.have.length(t)},i.throws=function(e,t,i,o){("string"==typeof t||t instanceof RegExp)&&(i=t,t=null);var a=new n(e,o).to.throw(t,i);return r(a,"object")},i.doesNotThrow=function(e,t,r){"string"==typeof t&&(r=t,t=null),new n(e,r).to.not.Throw(t)},i.operator=function(e,i,o,a){var s;switch(i){case"==":s=e==o;break;case"===":s=e===o;break;case">":s=e>o;break;case">=":s=e>=o;break;case"<":s=e1&&n===t.length-1?"or ":"";return i+r+" "+e}).join(", ");if(!t.some(function(t){return o(e)===t}))throw new r("object tested must be "+n+", but "+o(e)+" given")}},{"./flag":16,"assertion-error":1,"type-detect":220}],16:[function(e,t,n){t.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));return 3!==arguments.length?r[t]:void(r[t]=n)}},{}],17:[function(e,t,n){t.exports=function(e,t){return t.length>4?t[4]:e._obj}},{}],18:[function(e,t,n){t.exports=function(e){var t=[];for(var n in e)t.push(n);return t}},{}],19:[function(e,t,n){var r=e("./flag"),i=e("./getActual"),o=(e("./inspect"),e("./objDisplay"));t.exports=function(e,t){var n=r(e,"negate"),a=r(e,"object"),s=t[3],l=i(e,t),c=n?t[2]:t[1],u=r(e,"message");return"function"==typeof c&&(c=c()),c=c||"",c=c.replace(/#\{this\}/g,function(){return o(a)}).replace(/#\{act\}/g,function(){return o(l)}).replace(/#\{exp\}/g,function(){return o(s)}),u?u+": "+c:c}},{"./flag":16,"./getActual":17,"./inspect":26,"./objDisplay":27}],20:[function(e,t,n){t.exports=function(e){if(e.name)return e.name;var t=/^\s?function ([^(]*)\(/.exec(e);return t&&t[1]?t[1]:""}},{}],21:[function(e,t,n){function r(e){var t=e.replace(/([^\\])\[/g,"$1.["),n=t.match(/(\\\.|[^.]+?)+/g);return n.map(function(e){var t=/^\[(\d+)\]$/,n=t.exec(e);return n?{i:parseFloat(n[1])}:{p:e.replace(/\\([.\[\]])/g,"$1")}})}function i(e,t,n){var r,i=t;n=void 0===n?e.length:n;for(var o=0,a=n;o1?i(n,t,n.length-1):t,name:a.p||a.i,value:i(n,t)};return s.exists=o(s.name,s.parent),s}},{"./hasProperty":24}],22:[function(e,t,n){var r=e("./getPathInfo");t.exports=function(e,t){var n=r(e,t);return n.value}},{"./getPathInfo":21}],23:[function(e,t,n){t.exports=function(e){function t(e){n.indexOf(e)===-1&&n.push(e)}for(var n=Object.getOwnPropertyNames(e),r=Object.getPrototypeOf(e);null!==r;)Object.getOwnPropertyNames(r).forEach(t),r=Object.getPrototypeOf(r);return n}},{}],24:[function(e,t,n){var r=e("type-detect"),i={number:Number,string:String};t.exports=function(e,t){var n=r(t);return"null"!==n&&"undefined"!==n&&(i[n]&&"object"!=typeof t&&(t=new i[n](t)),e in t)}},{"type-detect":220}],25:[function(e,t,n){var n=t.exports={};n.test=e("./test"),n.type=e("type-detect"),n.expectTypes=e("./expectTypes"),n.getMessage=e("./getMessage"),n.getActual=e("./getActual"),n.inspect=e("./inspect"),n.objDisplay=e("./objDisplay"),n.flag=e("./flag"),n.transferFlags=e("./transferFlags"),n.eql=e("deep-eql"),n.getPathValue=e("./getPathValue"),n.getPathInfo=e("./getPathInfo"),n.hasProperty=e("./hasProperty"),n.getName=e("./getName"),n.addProperty=e("./addProperty"),n.addMethod=e("./addMethod"),n.overwriteProperty=e("./overwriteProperty"),n.overwriteMethod=e("./overwriteMethod"),n.addChainableMethod=e("./addChainableMethod"),n.overwriteChainableMethod=e("./overwriteChainableMethod")},{"./addChainableMethod":12,"./addMethod":13,"./addProperty":14,"./expectTypes":15,"./flag":16,"./getActual":17,"./getMessage":19,"./getName":20,"./getPathInfo":21,"./getPathValue":22,"./hasProperty":24,"./inspect":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./test":31,"./transferFlags":32,"deep-eql":34,"type-detect":220}],26:[function(e,t,n){function r(e,t,n,r){var o={showHidden:t,seen:[],stylize:function(e){return e}};return i(o,e,"undefined"==typeof n?2:n)}function i(e,t,r){if(t&&"function"==typeof t.inspect&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var f=t.inspect(r);return"string"!=typeof f&&(f=i(e,f,r)),f}var b=o(e,t);if(b)return b;if(v(t)){if("outerHTML"in t)return t.outerHTML;try{if(document.xmlVersion){var k=new XMLSerializer;return k.serializeToString(t)}var x="http://www.w3.org/1999/xhtml",w=document.createElementNS(x,"_");return w.appendChild(t.cloneNode(!1)),html=w.innerHTML.replace("><",">"+t.innerHTML+"<"),w.innerHTML="",html}catch(e){}}var E=y(t),P=e.showHidden?g(t):E;if(0===P.length||h(t)&&(1===P.length&&"stack"===P[0]||2===P.length&&"description"===P[0]&&"stack"===P[1])){if("function"==typeof t){var C=m(t),T=C?": "+C:"";return e.stylize("[Function"+T+"]","special")}if(d(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(p(t))return e.stylize(Date.prototype.toUTCString.call(t),"date");if(h(t))return a(t)}var S="",O=!1,_=["{","}"];if(u(t)&&(O=!0,_=["[","]"]),"function"==typeof t){var C=m(t),T=C?": "+C:"";S=" [Function"+T+"]"}if(d(t)&&(S=" "+RegExp.prototype.toString.call(t)),p(t)&&(S=" "+Date.prototype.toUTCString.call(t)),h(t))return a(t);if(0===P.length&&(!O||0==t.length))return _[0]+S+_[1];if(r<0)return d(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var M;return M=O?s(e,t,r,E,P):P.map(function(n){return l(e,t,r,E,n,O)}),e.seen.pop(),c(M,S,_)}function o(e,t){switch(typeof t){case"undefined":return e.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string");case"number":return 0===t&&1/t===-(1/0)?e.stylize("-0","number"):e.stylize(""+t,"number");case"boolean":return e.stylize(""+t,"boolean")}if(null===t)return e.stylize("null","null")}function a(e){return"["+Error.prototype.toString.call(e)+"]"}function s(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(l=a?l.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+l.split("\n").map(function(e){return" "+e}).join("\n"))):l=e.stylize("[Circular]","special")),"undefined"==typeof s){if(a&&o.match(/^\d+$/))return l;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+l}function c(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function u(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===f(e)}function d(e){return"object"==typeof e&&"[object RegExp]"===f(e)}function p(e){return"object"==typeof e&&"[object Date]"===f(e)}function h(e){return"object"==typeof e&&"[object Error]"===f(e)}function f(e){return Object.prototype.toString.call(e)}var m=e("./getName"),g=e("./getProperties"),y=e("./getEnumerableProperties");t.exports=r;var v=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}},{"./getEnumerableProperties":18,"./getName":20,"./getProperties":23}],27:[function(e,t,n){var r=e("./inspect"),i=e("../config");t.exports=function(e){var t=r(e),n=Object.prototype.toString.call(e);if(i.truncateThreshold&&t.length>=i.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var o=Object.keys(e),a=o.length>2?o.splice(0,2).join(", ")+", ...":o.join(", ");return"{ Object ("+a+") }"}return t}return t}},{"../config":7,"./inspect":26}],28:[function(e,t,n){t.exports=function(e,t,n,r){var i=e.__methods[t],o=i.chainingBehavior;i.chainingBehavior=function(){var e=r(o).call(this);return void 0===e?this:e};var a=i.method;i.method=function(){var e=n(a).apply(this,arguments);return void 0===e?this:e}}},{}],29:[function(e,t,n){t.exports=function(e,t,n){var r=e[t],i=function(){return this};r&&"function"==typeof r&&(i=r),e[t]=function(){var e=n(i).apply(this,arguments);return void 0===e?this:e}}},{}],30:[function(e,t,n){t.exports=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t),i=function(){};r&&"function"==typeof r.get&&(i=r.get),Object.defineProperty(e,t,{get:function(){var e=n(i).call(this);return void 0===e?this:e},configurable:!0})}},{}],31:[function(e,t,n){var r=e("./flag");t.exports=function(e,t){var n=r(e,"negate"),i=t[0];return n?!i:i}},{"./flag":16}],32:[function(e,t,n){t.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n;for(var i in r)(n||"object"!==i&&"ssfi"!==i&&"message"!=i)&&(t.__flags[i]=r[i])}},{}],33:[function(t,n,r){!function(){"use strict";function t(){for(var e=[],n=0;n=0;i--)if(s=o[i],!r(e[s],t[s],n))return!1;return!0}var f,m=e("type-detect");try{f=e("buffer").Buffer}catch(e){f={},f.isBuffer=function(){return!1}}t.exports=r},{buffer:3,"type-detect":36}],36:[function(e,t,n){t.exports=e("./lib/type")},{"./lib/type":37}],37:[function(e,t,n){function r(e){var t=Object.prototype.toString.call(e);return o[t]?o[t]:null===e?"null":void 0===e?"undefined":e===Object(e)?"object":typeof e}function i(){this.tests={}}var n=t.exports=r,o={"[object Array]":"array","[object RegExp]":"regexp","[object Function]":"function","[object Arguments]":"arguments","[object Date]":"date"};n.Library=i,i.prototype.of=r,i.prototype.define=function(e,t){return 1===arguments.length?this.tests[e]:(this.tests[e]=t,this)},i.prototype.test=function(e,t){if(t===r(e))return!0;var n=this.tests[t];if(n&&"regexp"===r(n))return n.test(e);if(n&&"function"===r(n))return n(e);throw new ReferenceError('Type test "'+t+'" not defined or invalid.')}},{}],38:[function(e,t,n){"use strict";var r=e("./emptyFunction"),i={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=i},{"./emptyFunction":45}],39:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},{}],40:[function(e,t,n){"use strict";function r(e){return e.replace(i,function(e,t){return t.toUpperCase()})}var i=/-(.)/g;t.exports=r},{}],41:[function(e,t,n){"use strict";function r(e){return i(e.replace(o,"ms-"))}var i=e("./camelize"),o=/^-ms-/;t.exports=r},{"./camelize":40}],42:[function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!i(e)&&(i(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var i=e("./isTextNode");t.exports=r},{"./isTextNode":55}],43:[function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?a(!1):void 0,"number"!=typeof t?a(!1):void 0,0===t||t-1 in e?void 0:a(!1),"function"==typeof e.callee?a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?p[e]:null}var i=e("./ExecutionEnvironment"),o=e("./invariant"),a=i.canUseDOM?document.createElement("div"):null,s={},l=[1,'"],c=[1,"","
"],u=[3,"","
"],d=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:l,option:l,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:u,th:u},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(e){p[e]=d,s[e]=!0}),t.exports=r},{"./ExecutionEnvironment":39,"./invariant":53}],50:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],51:[function(e,t,n){"use strict";function r(e){return e.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;t.exports=r},{}],52:[function(e,t,n){"use strict";function r(e){return i(e).replace(o,"-ms-")}var i=e("./hyphenate"),o=/^ms-/;t.exports=r},{"./hyphenate":51}],53:[function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=r},{}],54:[function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],55:[function(e,t,n){"use strict";function r(e){return i(e)&&3==e.nodeType}var i=e("./isNode");t.exports=r},{"./isNode":54}],56:[function(e,t,n){"use strict";var r=e("./invariant"),i=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=i},{"./invariant":53}],57:[function(e,t,n){"use strict"; +var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],58:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var o in e)i.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r}var i=Object.prototype.hasOwnProperty;t.exports=r},{}],59:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],60:[function(e,t,n){"use strict";var r,i=e("./ExecutionEnvironment");i.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":39}],61:[function(e,t,n){"use strict";var r,i=e("./performance");r=i.now?function(){return i.now()}:function(){return Date.now()},t.exports=r},{"./performance":60}],62:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a-1?o.thousandsSep:""))):n=U(r,n))}c.push(n),e=e.slice(s+1),s=(l=!l)?"}":"{"}return c.push(e),c.join("")}function b(e){return ae.pow(10,le(ae.log(e)/ae.LN10))}function k(e,t,n,r,i){var o,a=e,n=Ze(n,1);for(o=e/n,t||(t=[1,2,2.5,5,10],r===!1&&(1===n?t=[1,2,5,10]:n<=.1&&(t=[1/n]))),r=0;r=e||!i&&o<=(t[r]+(t[r+1]||t[r]))/2));r++);return a*=n}function x(e,t){var n,r,i=e.length;for(r=0;rn&&(n=e[t]);return n}function P(e,t){for(var n in e)e[n]&&e[n]!==t&&e[n].destroy&&e[n].destroy(),delete e[n]}function C(e){L||(L=f(Re)),e&&L.appendChild(e),L.innerHTML=""}function T(e,t){return parseFloat(e.toPrecision(t||14))}function S(e,t){t.renderer.globalAnimation=Ze(e,t.animation)}function O(e){return a(e)?r(e):{duration:e?500:0}}function _(){var t=F.global,n=t.useUTC,r=n?"getUTC":"get",i=n?"setUTC":"set";Y=t.Date||e.Date,H=n&&t.timezoneOffset,W=n&&t.getTimezoneOffset,V=function(e,t,r,i,o,a){var s;return n?(s=Y.UTC.apply(0,arguments),s+=y(s)):s=new Y(e,t,Ze(r,1),Ze(i,0),Ze(o,0),Ze(a,0)).getTime(),s},z=r+"Minutes",G=r+"Hours",q=r+"Day",X=r+"Date",K=r+"Month",Q=r+"FullYear",Z=i+"Milliseconds",$=i+"Seconds",J=i+"Minutes",ee=i+"Hours",te=i+"Date",ne=i+"Month",re=i+"FullYear"}function M(e){return this instanceof M?void this.init(e):new M(e)}function D(){}function N(e,t,n,r){this.axis=e,this.pos=t,this.type=n||"",this.isNew=!0,!n&&!r&&this.addLabel()}function R(e,t,n,r,i){var o=e.chart.inverted;this.axis=e,this.isNegative=n,this.options=t,this.x=r,this.total=null,this.points={},this.stack=i,this.rightCliff=this.leftCliff=0,this.alignOptions={align:t.align||(o?n?"left":"right":"center"),verticalAlign:t.verticalAlign||(o?"middle":n?"bottom":"top"),y:Ze(t.y,o?4:n?14:-6),x:Ze(t.x,o?n?-6:6:0)},this.textAlign=t.textAlign||(o?n?"right":"left":"center")}var A,j,I,L,F,U,B,Y,V,H,W,z,G,q,X,K,Q,Z,$,J,ee,te,ne,re,ie,oe=e.document,ae=Math,se=ae.round,le=ae.floor,ce=ae.ceil,ue=ae.max,de=ae.min,pe=ae.abs,he=ae.cos,fe=ae.sin,me=ae.PI,ge=2*me/360,ye=e.navigator&&e.navigator.userAgent||"",ve=e.opera,be=/(msie|trident|edge)/i.test(ye)&&!ve,ke=oe&&8===oe.documentMode,xe=!be&&/AppleWebKit/.test(ye),we=/Firefox/.test(ye),Ee=/(Mobile|Android|Windows Phone)/.test(ye),Pe="http://www.w3.org/2000/svg",Ce=oe&&oe.createElementNS&&!!oe.createElementNS(Pe,"svg").createSVGRect,Te=we&&parseInt(ye.split("Firefox/")[1],10)<4,Se=oe&&!Ce&&!be&&!!oe.createElement("canvas").getContext,Oe={},_e=0,Me=function(){},De=[],Ne=0,Re="div",Ae=/^[0-9]+$/,je=["plotTop","marginRight","marginBottom","plotLeft"],Ie={};ie=e.Highcharts?t(16,!0):{win:e},ie.seriesTypes=Ie;var Le,Fe,Ue,Be,Ye,Ve,He,We,ze,Ge,qe,Xe=[];n.prototype={dSetter:function(){var e,t=this.paths[0],n=this.paths[1],r=[],i=this.now,o=t.length;if(1===i)r=this.toD;else if(o===n.length&&i<1)for(;o--;)e=parseFloat(t[o]),r[o]=isNaN(e)?t[o]:i*parseFloat(n[o]-e)+e;else r=n;this.elem.attr("d",r)},update:function(){var e=this.elem,t=this.prop,n=this.now,r=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n):e.style[t]=n+this.unit,r&&r.call(e,n,this)},run:function(e,t,n){var r,i=this,o=function(e){return!o.stopped&&i.step(e)};this.startTime=+new Y,this.start=e,this.end=t,this.unit=n,this.now=this.start,this.pos=0,o.elem=this.elem,o()&&1===Xe.push(o)&&(o.timerId=setInterval(function(){for(r=0;r=a+this.startTime){this.now=this.end,this.pos=1,this.update(),e=s[this.prop]=!0;for(i in s)s[i]!==!0&&(e=!1);e&&o&&o.call(t),t=!1}else this.pos=r.easing((n-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},initPath:function(e,t,n){var r,t=t||"",i=e.shift,o=t.indexOf("C")>-1,a=o?7:3,t=t.split(" "),n=[].concat(n),s=e.isArea,l=s?2:1,c=function(e){for(r=e.length;r--;)("M"===e[r]||"L"===e[r])&&e.splice(r+1,0,e[r+1],e[r+2],e[r+1],e[r+2])};if(o&&(c(t),c(n)),i<=n.length/a&&t.length===n.length)for(;i--;)n=n.slice(0,a).concat(n),s&&(n=n.concat(n.slice(n.length-a)));if(e.shift=0,t.length)for(e=n.length;t.length3?o.length%3:0,n=Ze(n,s.decimalPoint),r=Ze(r,s.thousandsSep),e=e<0?"-":"",e+=a?o.substr(0,a)+r:"",e+=o.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r),t&&(r=Math.abs(c-o+Math.pow(10,-Math.max(t,l)-1)),e+=n+r.toFixed(t).slice(2)),e},Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)},Le=function(t,n){var r;return"width"===n?Math.min(t.offsetWidth,t.scrollWidth)-Le(t,"padding-left")-Le(t,"padding-right"):"height"===n?Math.min(t.offsetHeight,t.scrollHeight)-Le(t,"padding-top")-Le(t,"padding-bottom"):(r=e.getComputedStyle(t,void 0))&&i(r.getPropertyValue(n))},Fe=function(e,t){return t.indexOf?t.indexOf(e):[].indexOf.call(t,e)},Be=function(e,t){return[].filter.call(e,t)},Ve=function(e,t){for(var n=[],r=0,i=e.length;r-1&&(o.splice(a,1),s[t]=o),r(t,n)):(i(),s[t]=[])):(i(),e.hcEvents={}))},ze=function(e,t,n,r){var i;i=e.hcEvents;var o,a,n=n||{};if(oe.createEvent&&(e.dispatchEvent||e.fireEvent))i=oe.createEvent("Events"),i.initEvent(t,!0,!0),i.target=e,Ke(i,n),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(t,i);else if(i)for(i=i[t]||[],o=i.length,n.preventDefault||(n.preventDefault=function(){n.defaultPrevented=!0}),n.target=e,n.type||(n.type=t),t=0;t{point.key}
',pointFormat:' {series.name}: {point.y}
',shadow:!0,snap:Ee?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var Je=F.plotOptions,et=Je.line;_(),M.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(e){return[i(e[1]),i(e[2]),i(e[3]),parseFloat(e[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(e){return[i(e[1],16),i(e[2],16),i(e[3],16),1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[i(e[1]),i(e[2]),i(e[3]),1]}}],init:function(e){var t,n,r,i;if((this.input=e)&&e.stops)this.stops=Ve(e.stops,function(e){return new M(e[1])});else for(r=this.parsers.length;r--&&!n;)i=this.parsers[r],(t=i.regex.exec(e))&&(n=i.parse(t));this.rgba=n||[]},get:function(e){var t,n=this.input,i=this.rgba;return this.stops?(t=r(n),t.stops=[].concat(t.stops),Ue(this.stops,function(n,r){t.stops[r]=[t.stops[r][0],n.get(e)]})):t=i&&Qe(i[0])?"rgb"===e||!e&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===e?i[3]:"rgba("+i.join(",")+")":n,t},brighten:function(e){var t,n=this.rgba;if(this.stops)Ue(this.stops,function(t){t.brighten(e)});else if(Qe(e)&&0!==e)for(t=0;t<3;t++)n[t]+=i(255*e),n[t]<0&&(n[t]=0),n[t]>255&&(n[t]=255);return this},setOpacity:function(e){return this.rgba[3]=e,this}},D.prototype={opacity:1,textProps:"direction,fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textOverflow,textShadow".split(","),init:function(e,t){this.element="span"===t?f(t):oe.createElementNS(Pe,t),this.renderer=e},animate:function(e,t,n){return t=Ze(t,this.renderer.globalAnimation,!0),qe(this),t?(n&&(t.complete=n),Ge(this,e,t)):this.attr(e,null,n),this},colorGradient:function(e,t,n){var i,o,a,l,u,d,p,h,f,m,g,y,v=this.renderer,b=[];if(e.linearGradient?o="linearGradient":e.radialGradient&&(o="radialGradient"),o){a=e[o],u=v.gradients,p=e.stops,m=n.radialReference,s(a)&&(e[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&m&&!c(a.gradientUnits)&&(l=a,a=r(a,v.getRadialAttr(m,l),{gradientUnits:"userSpaceOnUse"}));for(g in a)"id"!==g&&b.push(g,a[g]);for(g in p)b.push(p[g]);b=b.join(","),u[b]?m=u[b].attr("id"):(a.id=m="highcharts-"+_e++,u[b]=d=v.createElement(o).attr(a).add(v.defs),d.radAttr=l,d.stops=[],Ue(p,function(e){0===e[1].indexOf("rgba")?(i=M(e[1]),h=i.get("rgb"),f=i.get("a")):(h=e[1],f=1),e=v.createElement("stop").attr({offset:e[0],"stop-color":h,"stop-opacity":f}).add(d),d.stops.push(e)})),y="url("+v.url+"#"+m+")",n.setAttribute(t,y),n.gradient=b,e.toString=function(){return y}}},applyTextShadow:function(e){var t,n=this.element,r=e.indexOf("contrast")!==-1,o={},a=this.renderer.forExport,s=a||n.style.textShadow!==A&&!be;r&&(o.textShadow=e=e.replace(/contrast/g,this.renderer.getContrast(n.style.fill))),(xe||a)&&(o.textRendering="geometricPrecision"),s?this.css(o):(this.fakeTS=!0,this.ySetter=this.xSetter,t=[].slice.call(n.getElementsByTagName("tspan")),Ue(e.split(/\s?,\s?/g),function(e){var r,o,a=n.firstChild,e=e.split(" ");r=e[e.length-1],(o=e[e.length-2])&&Ue(t,function(e,t){var s;0===t&&(e.setAttribute("x",n.getAttribute("x")),t=n.getAttribute("y"),e.setAttribute("y",t||0),null===t&&n.setAttribute("y",0)),s=e.cloneNode(1),u(s,{class:"highcharts-text-shadow",fill:r,stroke:r,"stroke-opacity":1/ue(i(o),3),"stroke-width":o,"stroke-linejoin":"round"}),n.insertBefore(s,a)})}))},attr:function(e,t,n){var r,i,o,a=this.element,s=this;if("string"==typeof e&&t!==A&&(r=e,e={},e[r]=t),"string"==typeof e)s=(this[e+"Getter"]||this._defaultGetter).call(this,e,a);else{for(r in e)t=e[r],o=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(r)&&(i||(this.symbolAttr(e),i=!0),o=!0),!this.rotation||"x"!==r&&"y"!==r||(this.doTransform=!0),o||(o=this[r+"Setter"]||this._defaultSetter,o.call(this,t,r,a),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(r)&&this.updateShadows(r,t,o));this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return n&&n(),s},updateShadows:function(e,t,n){for(var r=this.shadows,i=r.length;i--;)n.call(r[i],"height"===e?Math.max(t-(r[i].cutHeight||0),0):"d"===e?this.d:t,e,r[i])},addClass:function(e){var t=this.element,n=u(t,"class")||"";return n.indexOf(e)===-1&&u(t,"class",n+" "+e),this},symbolAttr:function(e){var t=this;Ue("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(n){t[n]=Ze(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})},clip:function(e){return this.attr("clip-path",e?"url("+this.renderer.url+"#"+e.id+")":"none")},crisp:function(e){var t,n,r={},i=this.strokeWidth||0;n=se(i)%2/2,e.x=le(e.x||this.x||0)+n,e.y=le(e.y||this.y||0)+n,e.width=le((e.width||this.width||0)-2*n),e.height=le((e.height||this.height||0)-2*n),e.strokeWidth=i;for(t in e)this[t]!==e[t]&&(this[t]=r[t]=e[t]);return r},css:function(e){var t,n,r=this.styles,o={},a=this.element,s="";if(t=!r,e&&e.color&&(e.fill=e.color),r)for(n in e)e[n]!==r[n]&&(o[n]=e[n],t=!0);if(t){if(t=this.textWidth=e&&e.width&&"text"===a.nodeName.toLowerCase()&&i(e.width)||this.textWidth,r&&(e=Ke(r,o)),this.styles=e,t&&(Se||!Ce&&this.renderer.forExport)&&delete e.width,be&&!Ce)h(this.element,e);else{r=function(e,t){return"-"+t.toLowerCase()};for(n in e)s+=n.replace(/([A-Z])/g,r)+":"+e[n]+";";u(a,"style",s)}t&&this.added&&this.renderer.buildText(this)}return this},on:function(e,t){var n=this,r=n.element;return I&&"click"===e?(r.ontouchstart=function(e){n.touchEventFired=Y.now(),e.preventDefault(),t.call(r,e)},r.onclick=function(e){(ye.indexOf("Android")===-1||Y.now()-(n.touchEventFired||0)>1100)&&t.call(r,e)}):r["on"+e]=t,this},setRadialReference:function(e){var t=this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this},translate:function(e,t){return this.attr({translateX:e,translateY:t})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var e=this.translateX||0,t=this.translateY||0,n=this.scaleX,r=this.scaleY,i=this.inverted,o=this.rotation,a=this.element;i&&(e+=this.attr("width"),t+=this.attr("height")),e=["translate("+e+","+t+")"],i?e.push("rotate(90) scale(-1,1)"):o&&e.push("rotate("+o+" "+(a.getAttribute("x")||0)+" "+(a.getAttribute("y")||0)+")"),(c(n)||c(r))&&e.push("scale("+Ze(n,1)+" "+Ze(r,1)+")"),e.length&&a.setAttribute("transform",e.join(" "))},toFront:function(){var e=this.element;return e.parentNode.appendChild(e),this},align:function(e,t,n){var r,i,a,s,c={};return i=this.renderer,a=i.alignedObjects,e?(this.alignOptions=e,this.alignByTranslate=t,(!n||o(n))&&(this.alignTo=r=n||"renderer",l(a,this),a.push(this),n=null)):(e=this.alignOptions,t=this.alignByTranslate,r=this.alignTo),n=Ze(n,i[r],i),r=e.align,i=e.verticalAlign,a=(n.x||0)+(e.x||0),s=(n.y||0)+(e.y||0),"right"!==r&&"center"!==r||(a+=(n.width-(e.width||0))/{right:1,center:2}[r]),c[t?"translateX":"x"]=se(a),"bottom"!==i&&"middle"!==i||(s+=(n.height-(e.height||0))/({bottom:1,middle:2}[i]||1)),c[t?"translateY":"y"]=se(s),this[this.placed?"animate":"attr"](c),this.placed=!0,this.alignAttr=c,this},getBBox:function(e,t){var n,r,i,o,a=this.renderer,s=this.element,l=this.styles;r=this.textStr;var c,u,d,p=s.style,h=a.cache,f=a.cacheKeys;if(i=Ze(t,this.rotation),o=i*ge,r!==A&&(d=["",i||0,l&&l.fontSize,s.style.width].join(","),d=""===r||Ae.test(r)?"num:"+r.toString().length+d:r+d),d&&!e&&(n=h[d]),!n){if(s.namespaceURI===Pe||a.forExport){try{u=this.fakeTS&&function(e){Ue(s.querySelectorAll(".highcharts-text-shadow"),function(t){t.style.display=e})},we&&p.textShadow?(c=p.textShadow,p.textShadow=""):u&&u("none"),n=s.getBBox?Ke({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight},c?p.textShadow=c:u&&u("")}catch(e){}(!n||n.width<0)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(a.isSVG&&(a=n.width,r=n.height,be&&l&&"11px"===l.fontSize&&"16.9"===r.toPrecision(3)&&(n.height=r=14),i&&(n.width=pe(r*fe(o))+pe(a*he(o)),n.height=pe(r*he(o))+pe(a*fe(o)))),d){for(;f.length>250;)delete h[f.shift()];h[d]||f.push(d),h[d]=n}}return n},show:function(e){return this.attr({visibility:e?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(e){var t=this;t.animate({opacity:0},{duration:e||150,complete:function(){t.attr({y:-9999})}})},add:function(e){var t,n=this.renderer,r=this.element;return e&&(this.parentGroup=e),this.parentInverted=e&&e.inverted,void 0!==this.textStr&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(e){var t=e.parentNode;t&&t.removeChild(e)},destroy:function(){var e,t,n=this,r=n.element||{},i=n.shadows,o=n.renderer.isSVG&&"SPAN"===r.nodeName&&n.parentGroup;if(r.onclick=r.onmouseout=r.onmouseover=r.onmousemove=r.point=null,qe(n),n.clipPath&&(n.clipPath=n.clipPath.destroy()),n.stops){for(t=0;t]*>/g,"")))},textSetter:function(e){e!==this.textStr&&(delete this.bBox,this.textStr=e,this.added&&this.renderer.buildText(this))},fillSetter:function(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.colorGradient(e,t,n)},visibilitySetter:function(e,t,n){"inherit"===e?n.removeAttribute(t):n.setAttribute(t,e)},zIndexSetter:function(e,t){var n,r,o,a=this.renderer,s=this.parentGroup,a=(s||a).element||a.box,l=this.element;n=this.added;var u;if(c(e)&&(l.zIndex=e,e=+e,this[t]===e&&(n=!1),this[t]=e),n){for((e=this.zIndex)&&s&&(s.handleZ=!0),s=a.childNodes,u=0;ue||!c(e)&&c(r))&&(a.insertBefore(l,n),o=!0);o||a.appendChild(l)}return o},_defaultSetter:function(e,t,n){n.setAttribute(t,e)}},D.prototype.yGetter=D.prototype.xGetter,D.prototype.translateXSetter=D.prototype.translateYSetter=D.prototype.rotationSetter=D.prototype.verticalAlignSetter=D.prototype.scaleXSetter=D.prototype.scaleYSetter=function(e,t){this[t]=e,this.doTransform=!0},D.prototype["stroke-widthSetter"]=D.prototype.strokeSetter=function(e,t,n){this[t]=e,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],D.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===t&&0===e&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)};var tt=function(){this.init.apply(this,arguments)};tt.prototype={Element:D,init:function(t,n,r,i,o,a){var s,i=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(i));s=i.element,t.appendChild(s),t.innerHTML.indexOf("xmlns")===-1&&u(s,"xmlns",Pe),this.isSVG=!0,this.box=s,this.boxWrapper=i,this.alignedObjects=[],this.url=(we||xe)&&oe.getElementsByTagName("base").length?e.location.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(oe.createTextNode("Created with Highcharts 4.2.5")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(n,r,!1);var l;we&&t.getBoundingClientRect&&(this.subPixelFix=n=function(){h(t,{left:0,top:0}),l=t.getBoundingClientRect(),h(t,{left:ce(l.left)-l.left+"px",top:ce(l.top)-l.top+"px"})},n(),He(e,"resize",n))},getStyle:function(e){return this.style=Ke({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),P(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.subPixelFix&&We(e,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(e){var t=new this.Element;return t.init(this,e),t},draw:function(){},getRadialAttr:function(e,t){return{cx:e[0]-e[2]/2+t.cx*e[2],cy:e[1]-e[2]/2+t.cy*e[2],r:t.r*e[2]}},buildText:function(e){for(var t,n,r,o=e.element,a=this,s=a.forExport,l=Ze(e.textStr,"").toString(),c=l.indexOf("<")!==-1,d=o.childNodes,p=u(o,"x"),f=e.styles,m=e.textWidth,g=f&&f.lineHeight,y=f&&f.textShadow,v=f&&"ellipsis"===f.textOverflow,b=d.length,k=m&&!e.added&&this.box,x=function(e){return g?i(g):a.fontMetrics(/(px|em)$/.test(e&&e.style.fontSize)?e.style.fontSize:f&&f.fontSize||a.style.fontSize||12,e).h},w=function(e){return e.replace(/</g,"<").replace(/>/g,">")};b--;)o.removeChild(d[b]);c||y||v||l.indexOf(" ")!==-1?(t=/<.*style="([^"]+)".*>/,n=/<.*href="(http[^"]+)".*>/,k&&k.appendChild(o),l=c?l.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(/
/g,"").split(//g):[l],l=Be(l,function(e){return""!==e}),Ue(l,function(i,l){var c,d=0,i=i.replace(/^\s+|\s+$/g,"").replace(//g,"|||");c=i.split("|||"),Ue(c,function(i){if(""!==i||1===c.length){var g,y={},b=oe.createElementNS(Pe,"tspan");if(t.test(i)&&(g=i.match(t)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),u(b,"style",g)),n.test(i)&&!s&&(u(b,"onclick",'location.href="'+i.match(n)[1]+'"'),h(b,{cursor:"pointer"})),i=w(i.replace(/<(.|\n)*?>/g,"")||" ")," "!==i){if(b.appendChild(oe.createTextNode(i)),d?y.dx=0:l&&null!==p&&(y.x=p),u(b,y),o.appendChild(b),!d&&l&&(!Ce&&s&&h(b,{display:"block"}),u(b,"dy",x(b))),m){for(var k,E,y=i.replace(/([^\^])-/g,"$1- ").split(" "),P=c.length>1||l||y.length>1&&"nowrap"!==f.whiteSpace,C=[],T=x(b),S=1,O=e.rotation,_=i,M=_.length;(P||v)&&(y.length||C.length);)e.rotation=0,k=e.getBBox(!0),E=k.width,!Ce&&a.forExport&&(E=a.measureSpanWidth(b.firstChild.data,e.styles)), +k=E>m,void 0===r&&(r=k),v&&r?(M/=2,""===_||!k&&M<.5?y=[]:(_=i.substring(0,_.length+(k?-1:1)*ce(M)),y=[_+(m>3?"…":"")],b.removeChild(b.firstChild))):k&&1!==y.length?(b.removeChild(b.firstChild),C.unshift(y.pop())):(y=C,C=[],y.length&&(S++,b=oe.createElementNS(Pe,"tspan"),u(b,{dy:T,x:p}),g&&u(b,"style",g),o.appendChild(b)),E>m&&(m=E)),y.length&&b.appendChild(oe.createTextNode(y.join(" ").replace(/- /g,"-")));e.rotation=O}d++}}})}),r&&e.attr("title",e.textStr),k&&k.removeChild(o),y&&e.applyTextShadow&&e.applyTextShadow(y)):o.appendChild(oe.createTextNode(w(l)))},getContrast:function(e){return e=M(e).rgba,e[0]+e[1]+e[2]>384?"#000000":"#FFFFFF"},button:function(e,t,n,i,o,a,s,l,c){var u,d,p,h,f,m,g=this.label(e,t,n,c,null,null,null,null,"button"),y=0,e={x1:0,y1:0,x2:0,y2:1},o=r({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:e,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},o);return p=o.style,delete o.style,a=r(o,{stroke:"#68A",fill:{linearGradient:e,stops:[[0,"#FFF"],[1,"#ACF"]]}},a),h=a.style,delete a.style,s=r(o,{stroke:"#68A",fill:{linearGradient:e,stops:[[0,"#9BD"],[1,"#CDF"]]}},s),f=s.style,delete s.style,l=r(o,{style:{color:"#CCC"}},l),m=l.style,delete l.style,He(g.element,be?"mouseover":"mouseenter",function(){3!==y&&g.attr(a).css(h)}),He(g.element,be?"mouseout":"mouseleave",function(){3!==y&&(u=[o,a,s][y],d=[p,h,f][y],g.attr(u).css(d))}),g.setState=function(e){(g.state=y=e)?2===e?g.attr(s).css(f):3===e&&g.attr(l).css(m):g.attr(o).css(p)},g.on("click",function(e){3!==y&&i.call(g,e)}).attr(o).css(Ke({cursor:"default"},p))},crispLine:function(e,t){return e[1]===e[4]&&(e[1]=e[4]=se(e[1])-t%2/2),e[2]===e[5]&&(e[2]=e[5]=se(e[2])+t%2/2),e},path:function(e){var t={fill:"none"};return s(e)?t.d=e:a(e)&&Ke(t,e),this.createElement("path").attr(t)},circle:function(e,t,n){return e=a(e)?e:{x:e,y:t,r:n},t=this.createElement("circle"),t.xSetter=t.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},t.attr(e)},arc:function(e,t,n,r,i,o){return a(e)&&(t=e.y,n=e.r,r=e.innerR,i=e.start,o=e.end,e=e.x),e=this.symbol("arc",e||0,t||0,n||0,n||0,{innerR:r||0,start:i||0,end:o||0}),e.r=n,e},rect:function(e,t,n,r,i,o){var i=a(e)?e.r:i,s=this.createElement("rect"),e=a(e)?e:e===A?{}:{x:e,y:t,width:ue(n,0),height:ue(r,0)};return o!==A&&(s.strokeWidth=o,e=s.crisp(e)),i&&(e.r=i),s.rSetter=function(e,t,n){u(n,{rx:e,ry:e})},s.attr(e)},setSize:function(e,t,n){var r=this.alignedObjects,i=r.length;for(this.width=e,this.height=t,this.boxWrapper[Ze(n,!0)?"animate":"attr"]({width:e,height:t});i--;)r[i].align()},g:function(e){var t=this.createElement("g");return c(e)?t.attr({class:"highcharts-"+e}):t},image:function(e,t,n,r,i){var o={preserveAspectRatio:"none"};return arguments.length>1&&Ke(o,{x:t,y:n,width:r,height:i}),o=this.createElement("image").attr(o),o.element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",e):o.element.setAttribute("hc-svg-href",e),o},symbol:function(e,t,n,r,i,o){var a,s,l,c=this,u=this.symbols[e],u=u&&u(se(t),se(n),r,i,o),d=/^url\((.*?)\)$/;return u?(a=this.path(u),Ke(a,{symbolName:e,x:t,y:n,width:r,height:i}),o&&Ke(a,o)):d.test(e)&&(l=function(e,t){e.element&&(e.attr({width:t[0],height:t[1]}),e.alignByTranslate||e.translate(se((r-t[0])/2),se((i-t[1])/2)))},s=e.match(d)[1],e=Oe[s]||o&&o.width&&o.height&&[o.width,o.height],a=this.image(s).attr({x:t,y:n}),a.isImg=!0,e?l(a,e):(a.attr({width:0,height:0}),f("img",{onload:function(){0===this.width&&(h(this,{position:"absolute",top:"-999em"}),oe.body.appendChild(this)),l(a,Oe[s]=[this.width,this.height]),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,!c.imgCount&&De[c.chartIndex].onload&&De[c.chartIndex].onload()},src:s}),this.imgCount++)),a},symbols:{circle:function(e,t,n,r){var i=.166*n;return["M",e+n/2,t,"C",e+n+i,t,e+n+i,t+r,e+n/2,t+r,"C",e-i,t+r,e-i,t,e+n/2,t,"Z"]},square:function(e,t,n,r){return["M",e,t,"L",e+n,t,e+n,t+r,e,t+r,"Z"]},triangle:function(e,t,n,r){return["M",e+n/2,t,"L",e+n,t+r,e,t+r,"Z"]},"triangle-down":function(e,t,n,r){return["M",e,t,"L",e+n,t,e+n/2,t+r,"Z"]},diamond:function(e,t,n,r){return["M",e+n/2,t,"L",e+n,t+r/2,e+n/2,t+r,e,t+r/2,"Z"]},arc:function(e,t,n,r,i){var o=i.start,n=i.r||n||r,a=i.end-.001,r=i.innerR,s=i.open,l=he(o),c=fe(o),u=he(a),a=fe(a),i=i.end-on&&i>t+s&&it+s&&ir&&l>e+s&&le+s&&lp&&/[ \-]/.test(t.textContent||t.innerText)?(h(t,{width:p+"px",display:"block",whiteSpace:f||"normal"}),this.hasTextWidth=!0):this.hasTextWidth&&(h(t,{width:"",display:"",whiteSpace:f||"nowrap"}),this.hasTextWidth=!1),this.getSpanCorrection(this.hasTextWidth?p:t.offsetWidth,d,l,u,s)),h(t,{left:o+(this.xCorr||0)+"px",top:a+(this.yCorr||0)+"px"}),xe&&(d=t.offsetHeight),this.cTT=m}}else this.alignOnAdd=!0},setSpanRotation:function(e,t,n){var r={},i=be?"-ms-transform":xe?"-webkit-transform":we?"MozTransform":ve?"-o-transform":"";r[i]=r.transform="rotate("+e+"deg)",r[i+(we?"Origin":"-origin")]=r.transformOrigin=100*t+"% "+n+"px",h(this.element,r)},getSpanCorrection:function(e,t,n){this.xCorr=-e*n,this.yCorr=-t}}),Ke(tt.prototype,{html:function(e,t,n){var r=this.createElement("span"),i=r.element,o=r.renderer,a=o.isSVG,s=function(e,t){Ue(["opacity","visibility"],function(n){$e(e,n+"Setter",function(e,n,r,i){e.call(this,n,r,i),t[r]=n})})};return r.textSetter=function(e){e!==i.innerHTML&&delete this.bBox,i.innerHTML=this.textStr=e,r.htmlUpdateTransform()},a&&s(r,r.element.style),r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(e,t){"align"===t&&(t="textAlign"),r[t]=e,r.htmlUpdateTransform()},r.attr({text:e,x:se(t),y:se(n)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),i.style.whiteSpace="nowrap",r.css=r.htmlCss,a&&(r.add=function(e){var t,n=o.box.parentNode,a=[];if(this.parentGroup=e){if(t=e.div,!t){for(;e;)a.push(e),e=e.parentGroup;Ue(a.reverse(),function(e){var r,i=u(e.element,"class");i&&(i={className:i}),t=e.div=e.div||f(Re,i,{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px",opacity:e.opacity},t||n),r=t.style,Ke(e,{translateXSetter:function(t,n){r.left=t+"px",e[n]=t,e.doTransform=!0},translateYSetter:function(t,n){r.top=t+"px",e[n]=t,e.doTransform=!0}}),s(e,r)})}}else t=n;return t.appendChild(i),r.added=!0,r.alignOnAdd&&r.htmlUpdateTransform(),r}),r}});var nt;if(!Ce&&!Se){nt={init:function(e,t){var n=["<",t,' filled="f" stroked="f"'],r=["position: ","absolute",";"],i=t===Re;("shape"===t||i)&&r.push("left:0;top:0;width:1px;height:1px;"),r.push("visibility: ",i?"hidden":"visible"),n.push(' style="',r.join(""),'"/>'),t&&(n=i||"span"===t||"img"===t?n.join(""):e.prepVML(n),this.element=f(n)),this.renderer=e},add:function(e){var t=this.renderer,n=this.element,r=t.box,i=e&&e.inverted,r=e?e.element||e:r;return e&&(this.parentGroup=e),i&&t.invertChild(n,r),r.appendChild(n),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:D.prototype.htmlUpdateTransform,setSpanRotation:function(){var e=this.rotation,t=he(e*ge),n=fe(e*ge);h(this.element,{filter:e?["progid:DXImageTransform.Microsoft.Matrix(M11=",t,", M12=",-n,", M21=",n,", M22=",t,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(e,t,n,r,i){var o,a=r?he(r*ge):1,s=r?fe(r*ge):0,l=Ze(this.elemHeight,this.element.offsetHeight);this.xCorr=a<0&&-e,this.yCorr=s<0&&-l,o=a*s<0,this.xCorr+=s*t*(o?1-n:n),this.yCorr-=a*t*(r?o?n:1-n:1),i&&"left"!==i&&(this.xCorr-=e*n*(a<0?-1:1),r&&(this.yCorr-=l*n*(s<0?-1:1)),h(this.element,{textAlign:i}))},pathToVML:function(e){for(var t=e.length,n=[];t--;)Qe(e[t])?n[t]=se(10*e[t])-5:"Z"===e[t]?n[t]="x":(n[t]=e[t],!e.isArc||"wa"!==e[t]&&"at"!==e[t]||(n[t+5]===n[t+7]&&(n[t+7]+=e[t+7]>e[t+5]?1:-1),n[t+6]===n[t+8]&&(n[t+8]+=e[t+8]>e[t+6]?1:-1)));return n.join(" ")||"x"},clip:function(e){var t,n=this;return e?(t=e.members,l(t,n),t.push(n),n.destroyClip=function(){l(t,n)},e=e.getCSS(n)):(n.destroyClip&&n.destroyClip(),e={clip:ke?"inherit":"rect(auto)"}),n.css(e)},css:D.prototype.htmlCss,safeRemoveChild:function(e){e.parentNode&&C(e)},destroy:function(){return this.destroyClip&&this.destroyClip(),D.prototype.destroy.apply(this)},on:function(t,n){return this.element["on"+t]=function(){var t=e.event;t.target=t.srcElement,n(t)},this},cutOffPath:function(e,t){var n,e=e.split(/[ ,]/);return n=e.length,9!==n&&11!==n||(e[n-4]=e[n-2]=i(e[n-2])-10*t),e.join(" ")},shadow:function(e,t,n){var r,o,a,s,l,c,u,d=[],p=this.element,h=this.renderer,m=p.style,g=p.path;if(g&&"string"!=typeof g.value&&(g="x"),l=g,e){for(c=Ze(e.width,3),u=(e.opacity||.15)/c,r=1;r<=3;r++)s=2*c+1-2*r,n&&(l=this.cutOffPath(g.value,s+.5)),a=[''],o=f(h.prepVML(a),null,{left:i(m.left)+Ze(e.offsetX,1),top:i(m.top)+Ze(e.offsetY,1)}),n&&(o.cutOff=s+1),a=[''],f(h.prepVML(a),null,null,o),t?t.element.appendChild(o):p.parentNode.insertBefore(o,p),d.push(o);this.shadows=d}return this},updateShadows:Me,setAttr:function(e,t){ke?this.element[e]=t:this.element.setAttribute(e,t)},classSetter:function(e){this.element.className=e},dashstyleSetter:function(e,t,n){(n.getElementsByTagName("stroke")[0]||f(this.renderer.prepVML([""]),null,null,n))[t]=e||"solid",this[t]=e},dSetter:function(e,t,n){var r=this.shadows,e=e||[];if(this.d=e.join&&e.join(" "),n.path=e=this.pathToVML(e),r)for(n=r.length;n--;)r[n].path=r[n].cutOff?this.cutOffPath(e,r[n].cutOff):e;this.setAttr(t,e)},fillSetter:function(e,t,n){var r=n.nodeName;"SPAN"===r?n.style.color=e:"IMG"!==r&&(n.filled="none"!==e,this.setAttr("fillcolor",this.renderer.color(e,n,t,this)))},"fill-opacitySetter":function(e,t,n){f(this.renderer.prepVML(["<",t.split("-")[0],' opacity="',e,'"/>']),null,null,n)},opacitySetter:Me,rotationSetter:function(e,t,n){n=n.style,this[t]=n[t]=e,n.left=-se(fe(e*ge)+1)+"px",n.top=se(he(e*ge))+"px"},strokeSetter:function(e,t,n){this.setAttr("strokecolor",this.renderer.color(e,n,t,this))},"stroke-widthSetter":function(e,t,n){n.stroked=!!e,this[t]=e,Qe(e)&&(e+="px"),this.setAttr("strokeweight",e)},titleSetter:function(e,t){this.setAttr(t,e)},visibilitySetter:function(e,t,n){"inherit"===e&&(e="visible"),this.shadows&&Ue(this.shadows,function(n){n.style[t]=e}),"DIV"===n.nodeName&&(e="hidden"===e?"-999em":0,ke||(n.style[t]=e?"visible":"hidden"),t="top"),n.style[t]=e},xSetter:function(e,t,n){this[t]=e,"x"===t?t="left":"y"===t&&(t="top"),this.updateClipping?(this[t]=e,this.updateClipping()):n.style[t]=e},zIndexSetter:function(e,t,n){n.style[t]=e}},nt["stroke-opacitySetter"]=nt["fill-opacitySetter"],ie.VMLElement=nt=m(D,nt),nt.prototype.ySetter=nt.prototype.widthSetter=nt.prototype.heightSetter=nt.prototype.xSetter;var rt={Element:nt,isIE8:ye.indexOf("MSIE 8.0")>-1,init:function(e,t,n,r){var i;if(this.alignedObjects=[],r=this.createElement(Re).css(Ke(this.getStyle(r),{position:"relative"})),i=r.element,e.appendChild(r.element),this.isVML=!0,this.box=i,this.boxWrapper=r,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1),!oe.namespaces.hcv){oe.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{oe.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(e){oe.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(e,t,n,r){var i=this.createElement(),o=a(e);return Ke(i,{members:[],count:0,left:(o?e.x:e)+1,top:(o?e.y:t)+1,width:(o?e.width:n)-1,height:(o?e.height:r)-1,getCSS:function(e){var t=e.element,n=t.nodeName,e=e.inverted,r=this.top-("shape"===n?t.offsetTop:0),i=this.left,t=i+this.width,o=r+this.height,r={clip:"rect("+se(e?i:r)+"px,"+se(e?o:t)+"px,"+se(e?t:o)+"px,"+se(e?r:i)+"px)"};return!e&&ke&&"DIV"===n&&Ke(r,{width:t+"px",height:o+"px"}),r},updateClipping:function(){Ue(i.members,function(e){e.element&&e.css(i.getCSS(e))})}})},color:function(e,t,n,r){var i,o,a,s=this,l=/^rgba/,c="none";if(e&&e.linearGradient?a="gradient":e&&e.radialGradient&&(a="pattern"),a){var u,d,p,h,m,g,y,v,b=e.linearGradient||e.radialGradient,k="",e=e.stops,x=[],w=function(){o=[''],f(s.prepVML(o),null,null,t)};if(p=e[0],v=e[e.length-1],p[0]>0&&e.unshift([0,p[1]]),v[0]<1&&e.push([1,v[1]]),Ue(e,function(e,t){l.test(e[1])?(i=M(e[1]),u=i.get("rgb"),d=i.get("a")):(u=e[1],d=1),x.push(100*e[0]+"% "+u),t?(m=d,g=u):(h=d,y=u)}),"fill"===n)if("gradient"===a)n=b.x1||b[0]||0,e=b.y1||b[1]||0,p=b.x2||b[2]||0,b=b.y2||b[3]||0,k='angle="'+(90-180*ae.atan((b-e)/(p-n))/me)+'"',w();else{var E,c=b.r,P=2*c,C=2*c,T=b.cx,S=b.cy,O=t.radialReference,c=function(){O&&(E=r.getBBox(),T+=(O[0]-E.x)/E.width-.5,S+=(O[1]-E.y)/E.height-.5,P*=O[2]/E.width,C*=O[2]/E.height),k='src="'+F.global.VMLRadialGradientURL+'" size="'+P+","+C+'" origin="0.5,0.5" position="'+T+","+S+'" color2="'+y+'" ',w()};r.added?c():r.onAdd=c,c=g}else c=u}else l.test(e)&&"IMG"!==t.tagName?(i=M(e),r[n+"-opacitySetter"](i.get("a"),n,t),c=i.get("rgb")):(c=t.getElementsByTagName(n),c.length&&(c[0].opacity=1,c[0].type="solid"),c=e);return c},prepVML:function(e){var t=this.isIE8,e=e.join("");return t?(e=e.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),e=e.indexOf('style="')===-1?e.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):e.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):e=e.replace("<","1&&o.attr({x:t,y:n,width:r,height:i}),o},createElement:function(e){return"rect"===e?this.symbol(e):tt.prototype.createElement.call(this,e)},invertChild:function(e,t){var n=this,r=t.style,o="IMG"===e.tagName&&e.style;h(e,{flip:"x",left:i(r.width)-(o?i(o.top):1),top:i(r.height)-(o?i(o.left):1),rotation:-90}),Ue(e.childNodes,function(t){n.invertChild(t,e)})},symbols:{arc:function(e,t,n,r,i){var o=i.start,a=i.end,s=i.r||n||r,n=i.innerR,r=he(o),l=fe(o),c=he(a),u=fe(a);return a-o===0?["x"]:(o=["wa",e-s,t-s,e+s,t+s,e+s*r,t+s*l,e+s*c,t+s*u],i.open&&!n&&o.push("e","M",e,t),o.push("at",e-n,t-n,e+n,t+n,e+n*c,t+n*u,e+n*r,t+n*l,"x","e"),o.isArc=!0,o)},circle:function(e,t,n,r,i){return i&&(n=r=2*i.r),i&&i.isCircle&&(e-=n/2,t-=r/2),["wa",e,t,e+n,t+r,e+n,t+r/2,e+n,t+r/2,"e"]},rect:function(e,t,n,r,i){return tt.prototype.symbols[c(i)&&i.r?"callout":"square"].call(0,e,t,n,r,i)}}};ie.VMLRenderer=nt=function(){this.init.apply(this,arguments)},nt.prototype=r(tt.prototype,rt),j=nt}tt.prototype.measureSpanWidth=function(e,t){var n,r=oe.createElement("span");return n=oe.createTextNode(e),r.appendChild(n),h(r,t),this.box.appendChild(r),n=r.offsetWidth,C(r),n};var it;Se&&(ie.CanVGRenderer=nt=function(){Pe="http://www.w3.org/1999/xhtml"},nt.prototype.symbols={},it=function(){function e(){var e,n=t.length;for(e=0;e0&&r+c*u>o&&(t=se((i-r)/he(l*ge))):(i=r+(1-c)*u,r-c*uo&&(p=o-e.x+p*c,h=-1),p=de(d,p),pp||n.autoRotation&&s.styles.width)&&(t=p)),t&&(f.width=t,n.options.labels.style.textOverflow||(f.textOverflow="ellipsis"),s.css(f))},getPosition:function(e,t,n,r){var i=this.axis,o=i.chart,a=r&&o.oldChartHeight||o.chartHeight;return{x:e?i.translate(t+n,null,null,r)+i.transB:i.left+i.offset+(i.opposite?(r&&o.oldChartWidth||o.chartWidth)-i.right-i.left:0),y:e?a-i.bottom+i.offset-(i.opposite?i.height:0):a-i.translate(t+n,null,null,r)-i.transB}},getLabelPosition:function(e,t,n,r,i,o,a,s){var l=this.axis,u=l.transA,d=l.reversed,p=l.staggerLines,h=l.tickRotCorr||{x:0,y:0},f=i.y;return c(f)||(f=0===l.side?n.rotation?-8:-n.getBBox().height:2===l.side?h.y+8:he(n.rotation*ge)*(h.y-n.getBBox(!1,0).height/2)),e=e+i.x+h.x-(o&&r?o*u*(d?-1:1):0),t=t+f-(o&&!r?o*u*(d?1:-1):0),p&&(n=a/(s||1)%p,l.opposite&&(n=p-n-1),t+=n*(l.labelOffset/p)),{x:e,y:se(t)}},getMarkPath:function(e,t,n,r,i,o){return o.crispLine(["M",e,t,"L",e+(i?0:-n),t+(i?n:0)],r)},render:function(e,t,n){var r=this.axis,i=r.options,o=r.chart.renderer,a=r.horiz,s=this.type,l=this.label,c=this.pos,u=i.labels,d=this.gridLine,p=s?s+"Grid":"grid",h=s?s+"Tick":"tick",f=i[p+"LineWidth"],m=i[p+"LineColor"],g=i[p+"LineDashStyle"],p=r.tickSize(h),h=i[h+"Color"],y=this.mark,v=u.step,b=!0,k=r.tickmarkOffset,x=this.getPosition(a,c,k,t),w=x.x,x=x.y,E=a&&w===r.pos+r.len||!a&&x===r.pos?-1:1,n=Ze(n,1);this.isActive=!0,f&&(c=r.getPlotLinePath(c+k,f*E,t,!0),d===A&&(d={stroke:m,"stroke-width":f},g&&(d.dashstyle=g),s||(d.zIndex=1),t&&(d.opacity=0),this.gridLine=d=f?o.path(c).attr(d).add(r.gridGroup):null),!t&&d&&c&&d[this.isNew?"attr":"animate"]({d:c,opacity:n})),p&&(r.opposite&&(p[0]=-p[0]),s=this.getMarkPath(w,x,p[0],p[1]*E,a,o),y?y.animate({d:s,opacity:n}):this.mark=o.path(s).attr({stroke:h,"stroke-width":p[1],opacity:n}).add(r.axisGroup)),l&&Qe(w)&&(l.xy=x=this.getLabelPosition(w,x,l,a,u,k,e,v),this.isFirst&&!this.isLast&&!Ze(i.showFirstLabel,1)||this.isLast&&!this.isFirst&&!Ze(i.showLastLabel,1)?b=!1:a&&!r.isRadial&&!u.step&&!u.rotation&&!t&&0!==n&&this.handleOverflow(x),v&&e%v&&(b=!1),b&&Qe(x.y)?(x.opacity=n,l[this.isNew?"attr":"animate"](x),this.isNew=!1):l.attr("y",-9999))},destroy:function(){P(this,this.axis)}},ie.PlotLineOrBand=function(e,t){this.axis=e,t&&(this.options=t,this.id=t.id)},ie.PlotLineOrBand.prototype={render:function(){var e,t=this,n=t.axis,i=n.horiz,o=t.options,a=o.label,s=t.label,l=o.width,u=o.to,d=o.from,p=c(d)&&c(u),h=o.value,f=o.dashStyle,m=t.svgElem,g=[],y=o.color,v=Ze(o.zIndex,0),b=o.events,k={},x=n.chart.renderer,g=n.log2lin;if(n.isLog&&(d=g(d),u=g(u),h=g(h)),l)g=n.getPlotLinePath(h,l),k={stroke:y,"stroke-width":l},f&&(k.dashstyle=f);else{if(!p)return;g=n.getPlotBandPath(d,u,o),y&&(k.fill=y),o.borderWidth&&(k.stroke=o.borderColor,k["stroke-width"]=o.borderWidth)}if(k.zIndex=v,m)g?(m.show(),m.animate({d:g})):(m.hide(),s&&(t.label=s=s.destroy()));else if(g&&g.length&&(t.svgElem=m=x.path(g).attr(k).add(),b))for(e in o=function(e){m.on(e,function(n){b[e].apply(t,[n])})},b)o(e);return a&&c(a.text)&&g&&g.length&&n.width>0&&n.height>0&&!g.flat?(a=r({align:i&&p&&"center",x:i?!p&&4:10,verticalAlign:!i&&p&&"middle",y:i?p?16:10:p?6:-4,rotation:i&&!p&&90},a),this.renderLabel(a,g,p,v)):s&&s.hide(),t},renderLabel:function(e,t,n,r){var i=this.label,o=this.axis.chart.renderer;i||(i={align:e.textAlign||e.align,rotation:e.rotation},i.zIndex=r,this.label=i=o.text(e.text,0,0,e.useHTML).attr(i).css(e.style).add()),r=[t[1],t[4],n?t[6]:t[1]],t=[t[2],t[5],n?t[7]:t[2]],n=w(r),o=w(t),i.align(e,!1,{x:n,y:o,width:E(r)-n,height:E(t)-o}),i.show()},destroy:function(){l(this.axis.plotLinesAndBands,this),delete this.axis,P(this)}};var ot=ie.Axis=function(){this.init.apply(this,arguments)};ot.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,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0},lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return ie.numberFormat(this.total,-1)},style:r(Je.line.dataLabels.style,{color:"#000000"})}},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(e,t){var n=t.isX;this.chart=e,this.horiz=e.inverted?!n:n,this.coll=(this.isXAxis=n)?"xAxis":"yAxis",this.opposite=t.opposite,this.side=t.side||(this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(t);var r=this.options,i=r.type;this.labelFormatter=r.labels.formatter||this.defaultLabelFormatter,this.userOptions=t,this.minPixelPadding=0,this.reversed=r.reversed,this.visible=r.visible!==!1,this.zoomEnabled=r.zoomEnabled!==!1,this.categories=r.categories||"category"===i,this.names=this.names||[],this.isLog="logarithmic"===i,this.isDatetimeAxis="datetime"===i,this.isLinked=c(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.stacks={},this.oldStacks={},this.stacksTouched=0,this.min=this.max=null,this.crosshair=Ze(r.crosshair,d(e.options.tooltip.crosshairs)[n?0:1],!1);var o,r=this.options.events;Fe(this,e.axes)===-1&&(n&&!this.isColorAxis?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&n&&this.reversed===A&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(o in r)He(this,o,r[o]);this.isLog&&(this.val2lin=this.log2lin,this.lin2val=this.lin2log)},setOptions:function(e){this.options=r(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],r(F[this.coll],e))},defaultLabelFormatter:function(){var e,t=this.axis,n=this.value,r=t.categories,i=this.dateTimeLabelFormat,o=F.lang.numericSymbols,a=o&&o.length,s=t.options.labels.format,t=t.isLog?n:t.tickInterval;if(s)e=v(s,this);else if(r)e=n;else if(i)e=U(i,n);else if(a&&t>=1e3)for(;a--&&e===A;)r=Math.pow(1e3,a+1),t>=r&&10*n%r===0&&null!==o[a]&&(e=ie.numberFormat(n/r,-1)+o[a]);return e===A&&(e=pe(n)>=1e4?ie.numberFormat(n,-1):ie.numberFormat(n,-1,A,"")),e},getSeriesExtremes:function(){var e=this,t=e.chart;e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),Ue(e.series,function(n){if(n.visible||!t.options.chart.ignoreHiddenSeries){var r,i=n.options,o=i.threshold;e.hasVisibleSeries=!0,e.isLog&&o<=0&&(o=null),e.isXAxis?(i=n.xData,i.length&&(n=w(i),!Qe(n)&&!(n instanceof Y)&&(i=Be(i,function(e){return Qe(e)}),n=w(i)),e.dataMin=de(Ze(e.dataMin,i[0]),n),e.dataMax=ue(Ze(e.dataMax,i[0]),E(i)))):(n.getExtremes(),r=n.dataMax,n=n.dataMin,c(n)&&c(r)&&(e.dataMin=de(Ze(e.dataMin,n),n),e.dataMax=ue(Ze(e.dataMax,r),r)),c(o)&&(e.threshold=o),i.softThreshold&&!e.isLog||(e.softThreshold=!1))}})},translate:function(e,t,n,r,i,o){var a=this.linkedParent||this,s=1,l=0,c=r?a.oldTransA:a.transA,r=r?a.oldMin:a.min,u=a.minPixelPadding,i=(a.isOrdinal||a.isBroken||a.isLog&&i)&&a.lin2val;return c||(c=a.transA),n&&(s*=-1,l=a.len),a.reversed&&(s*=-1,l-=s*(a.sector||a.len)),t?(e=e*s+l,e-=u,e=e/c+r,i&&(e=a.lin2val(e))):(i&&(e=a.val2lin(e)),"between"===o&&(o=.5),e=s*(e-r)*c+l+s*u+(Qe(o)?c*o*a.pointRange:0)),e},toPixels:function(e,t){return this.translate(e,!1,!this.horiz,null,!0)+(t?0:this.pos)},toValue:function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(e,t,n,r,i){var o,a,s,l=this.chart,c=this.left,u=this.top,d=n&&l.oldChartHeight||l.chartHeight,p=n&&l.oldChartWidth||l.chartWidth;o=this.transB;var h=function(e,t,n){return(en)&&(r?e=de(ue(t,e),n):s=!0),e},i=Ze(i,this.translate(e,null,null,n)),e=n=se(i+o);return o=a=se(d-i-o),Qe(i)?this.horiz?(o=u,a=d-this.bottom,e=n=h(e,c,c+this.width)):(e=c,n=p-this.right,o=a=h(o,u,u+this.height)):s=!0,s&&!r?null:l.renderer.crispLine(["M",e,o,"L",n,a],t||1)},getLinearTickPositions:function(e,t,n){var r,i=T(le(t/e)*e),o=T(ce(n/e)*e),a=[];if(t===n&&Qe(t))return[t];for(t=i;t<=o&&(a.push(t),t=T(t+e),t!==r);)r=t;return a},getMinorTickPositions:function(){var e,t=this.options,n=this.tickPositions,r=this.minorTickInterval,i=[],o=this.pointRangePadding||0;e=this.min-o;var o=this.max+o,a=o-e;if(a&&a/r=this.minRange;this.isXAxis&&this.minRange===A&&!this.isLog&&(c(s.min)||c(s.max)?this.minRange=null:(Ue(this.series,function(e){for(i=e.xData,n=o=e.xIncrement?1:i.length-1;n>0;n--)r=i[n]-i[n-1],(t===A||r=w?(n=w,g=0):a.dataMax<=w&&(r=w,m=0)),a.min=Ze(i,n,a.dataMin),a.max=Ze(o,r,a.dataMax)),u&&(!e&&de(a.min,Ze(a.dataMin,a.min))<=0&&t(10,1),a.min=T(d(a.min),15),a.max=T(d(a.max),15)),a.range&&c(a.max)&&(a.userMin=a.min=i=ue(a.min,a.minFromRange()),a.userMax=o=a.max,a.range=null),ze(a,"foundExtremes"),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),x||a.axisPointRange||a.usePercentage||f||!c(a.min)||!c(a.max)||!(d=a.max-a.min)||(!c(i)&&g&&(a.min-=d*g),!c(o)&&m&&(a.max+=d*m)),Qe(l.floor)&&(a.min=ue(a.min,l.floor)),Qe(l.ceiling)&&(a.max=de(a.max,l.ceiling)),E&&c(a.dataMin)&&(w=w||0,!c(i)&&a.min=w?a.min=w:!c(o)&&a.max>w&&a.dataMax<=w&&(a.max=w)),a.tickInterval=a.min===a.max||void 0===a.min||void 0===a.max?1:f&&!y&&v===a.linkedParent.options.tickPixelInterval?y=a.linkedParent.tickInterval:Ze(y,this.tickAmount?(a.max-a.min)/ue(this.tickAmount-1,1):void 0,x?1:(a.max-a.min)*v/ue(a.len,v)),h&&!e&&Ue(a.series,function(e){e.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&&!y&&(a.tickInterval=ue(a.pointRange,a.tickInterval)),e=Ze(l.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!y&&a.tickInterval.5&&a.tickInterval<5&&a.max>1e3&&a.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var e,t,n=this.options,r=n.tickPositions,i=n.tickPositioner,o=n.startOnTick,a=n.endOnTick;this.tickmarkOffset=this.categories&&"between"===n.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n.minorTickInterval&&this.tickInterval?this.tickInterval/5:n.minorTickInterval,this.tickPositions=e=r&&r.slice(),!e&&(e=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,n.units),this.min,this.max,n.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),e.length>this.len&&(e=[e[0],e.pop()]),this.tickPositions=e,i&&(i=i.apply(this,[this.min,this.max])))&&(this.tickPositions=e=i),this.isLinked||(this.trimTicks(e,o,a),this.min===this.max&&c(this.min)&&!this.tickAmount&&(t=!0,this.min-=.5,this.max+=.5),this.single=t,!r&&!i&&this.adjustTickAmount())},trimTicks:function(e,t,n){var r=e[0],i=e[e.length-1],o=this.minPointOffset||0;if(t)this.min=r;else for(;this.min-o>e[0];)e.shift();if(n)this.max=i;else for(;this.max+on&&(this.tickInterval*=2,this.setTickPositions());if(c(r)){for(e=n=t.length;e--;)(3===r&&e%2===1||r<=2&&e>0&&e=i&&(t=i)),this.displayBtn=e!==A||t!==A,this.setExtremes(e,t,!1,A,{trigger:"zoom"}),!0},setAxisSize:function(){var e=this.chart,t=this.options,n=t.offsetLeft||0,r=this.horiz,i=Ze(t.width,e.plotWidth-n+(t.offsetRight||0)),o=Ze(t.height,e.plotHeight),a=Ze(t.top,e.plotTop),t=Ze(t.left,e.plotLeft+n),n=/%$/;n.test(o)&&(o=Math.round(parseFloat(o)/100*e.plotHeight)),n.test(a)&&(a=Math.round(parseFloat(a)/100*e.plotHeight+e.plotTop)),this.left=t,this.top=a,this.width=i,this.height=o,this.bottom=e.chartHeight-o-a,this.right=e.chartWidth-i-t,this.len=ue(r?i:o,0),this.pos=r?t:a},getExtremes:function(){var e=this.isLog,t=this.lin2log;return{min:e?T(t(this.min)):this.min,max:e?T(t(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(e){var t=this.isLog,n=this.lin2log,r=t?n(this.min):this.min,t=t?n(this.max):this.max;return null===e?e=t<0?t:r:r>e?e=r:t15&&e<165?"right":e>195&&e<345?"left":"center"},tickSize:function(e){var t=this.options,n=t[e+"Length"],r=Ze(t[e+"Width"],"tick"===e&&this.isXAxis?1:0);if(r&&n)return"inside"===t[e+"Position"]&&(n=-n),[n,r]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var e,t,n,r=this.options.labels,i=this.horiz,o=this.tickInterval,a=o,s=this.len/(((this.categories?1:0)+this.max-this.min)/o),l=r.rotation,u=this.labelMetrics(),d=Number.MAX_VALUE,p=function(e){return e/=s||1,e=e>1?ce(e):1,e*o};return i?(n=!r.staggerLines&&!r.step&&(c(l)?[l]:s=-90&&n<=90)&&(t=p(pe(u.h/fe(ge*n))),r=t+pe(n/360),rg&&(g=e.labelLength)}),g>p&&g>f.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(e={width:p+"px"},!m))for(e.textOverflow="clip",t=s.length;!u&&t--;)n=s[t],(p=l[n].label)&&("ellipsis"===p.styles.textOverflow?p.css({textOverflow:"clip"}):l[n].labelLength>d&&p.css({width:d+"px"}),p.getBBox().height>this.len/s.length-(f.h-f.f)&&(p.specCss={textOverflow:"ellipsis"}));h.rotation&&(e={width:(g>.5*i.chartHeight?.33*i.chartHeight:i.chartHeight)+"px"},!m)&&(e.textOverflow="ellipsis"),(this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation))&&(h.align=this.labelAlign),Ue(s,function(t){var n=(t=l[t])&&t.label;n&&(n.attr(h),e&&n.css(r(e,n.specCss)),delete n.specCss,t.rotation=h.rotation)}),this.tickRotCorr=a.rotCorr(f.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||c(this.min)&&c(this.max)&&!!this.tickPositions},getOffset:function(){var e,t,n,r,i=this,o=i.chart,a=o.renderer,s=i.options,l=i.tickPositions,u=i.ticks,d=i.horiz,p=i.side,h=o.inverted?[1,0,3,2][p]:p,f=0,m=0,g=s.title,y=s.labels,v=0,b=i.opposite,k=o.axisOffset,o=o.clipOffset,x=[-1,1,1,-1][p],w=i.axisParent,E=this.tickSize("tick");if(e=i.hasData(),i.showAxis=t=e||Ze(s.showEmpty,!0),i.staggerLines=i.horiz&&y.staggerLines,i.axisGroup||(i.gridGroup=a.g("grid").attr({zIndex:s.gridZIndex||1}).add(w),i.axisGroup=a.g("axis").attr({zIndex:s.zIndex||2}).add(w),i.labelGroup=a.g("axis-labels").attr({zIndex:y.zIndex||7}).addClass("highcharts-"+i.coll.toLowerCase()+"-labels").add(w)),e||i.isLinked)Ue(l,function(e){u[e]?u[e].addLabel():u[e]=new N(i,e)}),i.renderUnsquish(),y.reserveSpace!==!1&&(0===p||2===p||{1:"left",3:"right"}[p]===i.labelAlign||"center"===i.labelAlign)&&Ue(l,function(e){v=ue(u[e].getLabelSize(),v)}),i.staggerLines&&(v*=i.staggerLines,i.labelOffset=v*(i.opposite?-1:1));else for(r in u)u[r].destroy(),delete u[r];g&&g.text&&g.enabled!==!1&&(i.axisTitle||((r=g.textAlign)||(r=(d?{low:"left",middle:"center",high:"right"}:{low:b?"right":"left",middle:"center",high:b?"left":"right"})[g.align]),i.axisTitle=a.text(g.text,0,0,g.useHTML).attr({zIndex:7,rotation:g.rotation||0,align:r}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(g.style).add(i.axisGroup),i.axisTitle.isNew=!0),t&&(f=i.axisTitle.getBBox()[d?"height":"width"],n=g.offset,m=c(n)?0:Ze(g.margin,d?5:10)),i.axisTitle[t?"show":"hide"](!0)),i.offset=x*Ze(s.offset,k[p]),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},a=0===p?-i.labelMetrics().h:2===p?i.tickRotCorr.y:0,m=Math.abs(v)+m,v&&(m-=a,m+=x*(d?Ze(y.y,i.tickRotCorr.y+8*x):y.x)),i.axisTitleMargin=Ze(n,m),k[p]=ue(k[p],i.axisTitleMargin+f+x*i.offset,m,e&&l.length&&E?E[0]:0),s=s.offset?0:2*le(s.lineWidth/2),o[h]=ue(o[h],s)},getLinePath:function(e){var t=this.chart,n=this.opposite,r=this.offset,i=this.horiz,o=this.left+(n?this.width:0)+r,r=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine(["M",i?this.left:o,i?r:this.top,"L",i?t.chartWidth-this.right:o,i?r:t.chartHeight-this.bottom],e)},getTitlePosition:function(){var e=this.horiz,t=this.left,n=this.top,r=this.len,o=this.options.title,a=e?t:n,s=this.opposite,l=this.offset,c=o.x||0,u=o.y||0,d=i(o.style.fontSize||12),r={low:a+(e?0:r),middle:a+r/2,high:a+(e?r:0)}[o.align],t=(e?n+this.height:t)+(e?1:-1)*(s?-1:1)*this.axisTitleMargin+(2===this.side?d:0);return{x:e?r+c:t+(s?this.width:0)+l+c,y:e?t+u-(s?this.height:0)+l:r+u}},render:function(){var e,t,n,r=this,i=r.chart,o=i.renderer,a=r.options,s=r.isLog,l=r.lin2log,c=r.isLinked,u=r.tickPositions,d=r.axisTitle,h=r.ticks,f=r.minorTicks,m=r.alternateBands,g=a.stackLabels,y=a.alternateGridColor,v=r.tickmarkOffset,b=a.lineWidth,k=i.hasRendered&&Qe(r.oldMin),x=r.showAxis,w=O(o.globalAnimation);r.labelEdge.length=0,r.overlap=!1,Ue([h,f,m],function(e){for(var t in e)e[t].isActive=!1}),(r.hasData()||c)&&(r.minorTickInterval&&!r.categories&&Ue(r.getMinorTickPositions(),function(e){f[e]||(f[e]=new N(r,e,"minor")),k&&f[e].isNew&&f[e].render(null,!0),f[e].render(null,!1,1)}),u.length&&(Ue(u,function(e,t){(!c||e>=r.min&&e<=r.max)&&(h[e]||(h[e]=new N(r,e)),k&&h[e].isNew&&h[e].render(t,!0,.1),h[e].render(t))}),v&&(0===r.min||r.single))&&(h[-1]||(h[-1]=new N(r,(-1),null,(!0))),h[-1].render(-1)),y&&Ue(u,function(e,o){n=u[o+1]!==A?u[o+1]+v:r.max-v,o%2===0&&e=B.second?0:d*le(l.getMilliseconds()/d)),u>=B.second&&l[$](u>=B.minute?0:d*le(l.getSeconds()/d)),u>=B.minute&&l[J](u>=B.hour?0:d*le(l[z]()/d)),u>=B.hour&&l[ee](u>=B.day?0:d*le(l[G]()/d)),u>=B.day&&l[te](u>=B.month?1:d*le(l[X]()/d)),u>=B.month&&(l[ne](u>=B.year?0:d*le(l[K]()/d)),i=l[Q]()),u>=B.year&&(i-=i%d,l[re](i)),u===B.week&&l[te](l[X]()-l[q]()+Ze(r,1)),t=1,(H||W)&&(l=l.getTime(),l=new Y(l+y(l))),i=l[Q]();for(var r=l.getTime(),p=l[K](),h=l[X](),f=!s||!!W,m=(B.day+(s?y(l):6e4*l.getTimezoneOffset()))%B.day;r=.5)e=se(e),l=this.getLinearTickPositions(e,t,n);else if(e>=.08)for(var c,u,d,p,h,o=le(t),i=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];ot&&(!r||p<=n)&&p!==A&&l.push(p),p>n&&(h=!0),p=d;else t=a(t),n=a(n),e=i[r?"minorTickInterval":"tickInterval"],e=Ze("auto"===e?null:e,this._minorAutoInterval,(n-t)*(i.tickPixelInterval/(r?5:1))/((r?o/this.tickPositions.length:o)||1)),e=k(e,null,b(e)),l=Ve(this.getLinearTickPositions(e,t,n),s),r||(this._minorAutoInterval=e/5);return r||(this.tickInterval=e),l},ot.prototype.log2lin=function(e){return ae.log(e)/ae.LN10},ot.prototype.lin2log=function(e){return ae.pow(10,e)};var at=ie.Tooltip=function(){this.init.apply(this,arguments)};at.prototype={init:function(e,t){var n=t.borderWidth,r=t.style,o=i(r.padding);this.chart=e,this.options=t,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=e.renderer.label("",0,0,t.shape||"callout",null,null,t.useHTML,null,"tooltip").attr({padding:o,fill:t.backgroundColor,"stroke-width":n,r:t.borderRadius,zIndex:8}).css(r).css({padding:0}).add().attr({y:-9999}),Se||this.label.shadow(t.shadow),this.shared=t.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(e,t,n,r){var i=this,o=i.now,a=i.options.animation!==!1&&!i.isHidden&&(pe(e-o.x)>1||pe(t-o.y)>1),s=i.followPointer||i.len>1;Ke(o,{x:a?(2*o.x+e)/3:e,y:a?(o.y+t)/2:t,anchorX:s?A:a?(2*o.anchorX+n)/3:n,anchorY:s?A:a?(o.anchorY+r)/2:r}),i.label.attr(o),a&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){i&&i.move(e,t,n,r)},32))},hide:function(e){var t=this;clearTimeout(this.hideTimer),e=Ze(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=p(function(){t.label[e?"fadeOut":"hide"](),t.isHidden=!0},e))},getAnchor:function(e,t){var n,r,i,o=this.chart,a=o.inverted,s=o.plotTop,l=o.plotLeft,c=0,u=0,e=d(e);return n=e[0].tooltipPos,this.followPointer&&t&&(t.chartX===A&&(t=o.pointer.normalize(t)),n=[t.chartX-o.plotLeft,t.chartY-s]),n||(Ue(e,function(e){r=e.series.yAxis,i=e.series.xAxis,c+=e.plotX+(!a&&i?i.left-l:0),u+=(e.plotLow?(e.plotLow+e.plotHigh)/2:e.plotY)+(!a&&r?r.top-s:0)}),c/=e.length,u/=e.length,n=[a?o.plotWidth-u:c,this.shared&&!a&&e.length>1&&t?t.chartY-s:a?o.plotHeight-c:u]),Ve(n,se)},getPosition:function(e,t,n){var r,i=this.chart,o=this.distance,a={},s=n.h||0,l=["y",i.chartHeight,t,n.plotY+i.plotTop,i.plotTop,i.plotTop+i.plotHeight],c=["x",i.chartWidth,e,n.plotX+i.plotLeft,i.plotLeft,i.plotLeft+i.plotWidth],u=!this.followPointer&&Ze(n.ttBelow,!i.inverted==!!n.negative),d=function(e,t,n,r,i,l){var c=nt?r:r+s)}},p=function(e,t,n,r){var i;return rt-o?i=!1:a[e]=rt-n/2?t-n-2:r-n/2,i},h=function(e){var t=l;l=c,c=t,r=e},f=function(){d.apply(0,l)!==!1?p.apply(0,c)===!1&&!r&&(h(!0),f()):r?a.x=a.y=0:(h(!0),f())};return(i.inverted||this.len>1)&&h(),f(),a},defaultFormatter:function(e){var t,n=this.points||d(this);return t=[e.tooltipFooterHeaderFormatter(n[0])],t=t.concat(e.bodyFormatter(n)),t.push(e.tooltipFooterHeaderFormatter(n[0],!0)),t.join("")},refresh:function(e,t){var n,r,i,o,a=this.chart,s=this.label,l=this.options,c={},u=[];o=l.formatter||this.defaultFormatter;var p,c=a.hoverPoints,h=this.shared;clearTimeout(this.hideTimer),this.followPointer=d(e)[0].series.tooltipOptions.followPointer,i=this.getAnchor(e,t),n=i[0],r=i[1],!h||e.series&&e.series.noSharedTooltip?c=e.getLabelConfig():(a.hoverPoints=e,c&&Ue(c,function(e){e.setState()}),Ue(e,function(e){e.setState("hover"),u.push(e.getLabelConfig())}),c={x:e[0].category,y:e[0].y},c.points=u,this.len=u.length,e=e[0]),o=o.call(c,this),c=e.series,this.distance=Ze(c.tooltipOptions.distance,16),o===!1?this.hide():(this.isHidden&&(qe(s),s.attr("opacity",1).show()),s.attr({text:o}),p=l.borderColor||e.color||c.color||"#606060",s.attr({stroke:p}),this.updatePosition({plotX:n,plotY:r,negative:e.negative,ttBelow:e.ttBelow,h:i[2]||0}),this.isHidden=!1),ze(a,"tooltipRefresh",{text:o,x:n+a.plotLeft,y:r+a.plotTop,borderColor:p})},updatePosition:function(e){var t=this.chart,n=this.label,n=(this.options.positioner||this.getPosition).call(this,n.width,n.height,e);this.move(se(n.x),se(n.y||0),e.plotX+t.plotLeft,e.plotY+t.plotTop)},getXDateFormat:function(e,t,n){var r,i,o,t=t.dateTimeLabelFormats,a=n&&n.closestPointRange,s={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";if(a){o=U("%m-%d %H:%M:%S.%L",e.x);for(i in B){if(a===B.week&&+U("%w",e.x)===n.options.startOfWeek&&"00:00:00.000"===o.substr(6)){i="week";break}if(B[i]>a){i=l;break}if(s[i]&&o.substr(s[i])!=="01-01 00:00:00.000".substr(s[i]))break;"week"!==i&&(l=i)}i&&(r=t[i])}else r=t.day;return r||t.year},tooltipFooterHeaderFormatter:function(e,t){var n=t?"footer":"header",r=e.series,i=r.tooltipOptions,o=i.xDateFormat,a=r.xAxis,s=a&&"datetime"===a.options.type&&Qe(e.key),n=i[n+"Format"];return s&&!o&&(o=this.getXDateFormat(e,i,a)),s&&o&&(n=n.replace("{point.key}","{point.key:"+o+"}")),v(n,{point:e,series:r})},bodyFormatter:function(e){return Ve(e,function(e){var t=e.series.tooltipOptions;return(t.pointFormatter||e.point.tooltipFormatter).call(e.point,t.pointFormat)})}};var st;I=oe&&oe.documentElement.ontouchstart!==A;var lt=ie.Pointer=function(e,t){this.init(e,t)};if(lt.prototype={init:function(e,t){var n,r=t.chart,i=r.events,o=Se?"":r.zoomType,r=e.inverted;this.options=t,this.chart=e,this.zoomX=n=/x/.test(o),this.zoomY=o=/y/.test(o),this.zoomHor=n&&!r||o&&r,this.zoomVert=o&&!r||n&&r,this.hasZoom=n||o,this.runChartClick=i&&!!i.click,this.pinchDown=[],this.lastValidTouch={},ie.Tooltip&&t.tooltip.enabled&&(e.tooltip=new at(e,t.tooltip),this.followTouchMove=Ze(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(t,n){var r,i,t=t||e.event;return t.target||(t.target=t.srcElement),i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,n||(this.chartPosition=n=Ye(this.chart.container)),i.pageX===A?(r=ue(t.x,t.clientX-n.left),i=t.y):(r=i.pageX-n.left,i=i.pageY-n.top),Ke(t,{chartX:se(r),chartY:se(i)})},getCoordinates:function(e){var t={xAxis:[],yAxis:[]};return Ue(this.chart.axes,function(n){t[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(e[n.horiz?"chartX":"chartY"])})}),t},runPointActions:function(e){var t,n,r,i,o=this.chart,a=o.series,s=o.tooltip,l=!!s&&s.shared,c=o.hoverPoint,u=o.hoverSeries,d=[Number.MAX_VALUE,Number.MAX_VALUE],p=[],h=[];if(!l&&!u)for(t=0;t=h[n].series.group.zIndex;(e[t]l+u&&(i=l+u),oc+d&&(o=c+d),this.hasDragged=Math.sqrt(Math.pow(h-i,2)+Math.pow(f-o,2)),this.hasDragged>10&&(t=n.isInsidePlot(h-l,f-c),n.hasCartesianSeries&&(this.zoomX||this.zoomY)&&t&&!m&&!p&&(this.selectionMarker=p=n.renderer.rect(l,c,a?1:u,s?1:d,0).attr({fill:r.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),p&&a&&(i-=h,p.attr({width:pe(i),x:(i>0?0:i)+h})),p&&s&&(i=o-f,p.attr({height:pe(i),y:(i>0?0:i)+f})),t&&!p&&r.panning&&n.pan(e,r.panning)))},drop:function(e){var t=this,n=this.chart,r=this.hasPinched;if(this.selectionMarker){var i,o={originalEvent:e,xAxis:[],yAxis:[]},a=this.selectionMarker,s=a.attr?a.attr("x"):a.x,l=a.attr?a.attr("y"):a.y,u=a.attr?a.attr("width"):a.width,d=a.attr?a.attr("height"):a.height;(this.hasDragged||r)&&(Ue(n.axes,function(n){if(n.zoomEnabled&&c(n.min)&&(r||t[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])){var a=n.horiz,p="touchend"===e.type?n.minPixelPadding:0,h=n.toValue((a?s:l)+p),a=n.toValue((a?s+u:l+d)-p);o[n.coll].push({axis:n,min:de(h,a),max:ue(h,a)}),i=!0}}),i&&ze(n,"selection",o,function(e){n.zoom(Ke(e,r?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),r&&this.scaleGroups()}n&&(h(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(e){e=this.normalize(e),e.preventDefault&&e.preventDefault(),this.dragStart(e)},onDocumentMouseUp:function(e){De[st]&&De[st].pointer.drop(e)},onDocumentMouseMove:function(e){var t=this.chart,n=this.chartPosition,e=this.normalize(e,n);n&&!this.inClass(e.target,"highcharts-tracker")&&!t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop)&&this.reset()},onContainerMouseLeave:function(e){var t=De[st];t&&(e.relatedTarget||e.toElement)&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(e){var t=this.chart;c(st)&&De[st]&&De[st].mouseIsDown||(st=t.index),e=this.normalize(e),e.returnValue=!1,"mousedown"===t.mouseIsDown&&this.drag(e),(this.inClass(e.target,"highcharts-tracker")||t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop))&&!t.openMenu&&this.runPointActions(e)},inClass:function(e,t){for(var n;e;){if(n=u(e,"class")){if(n.indexOf(t)!==-1)return!0;if(n.indexOf("highcharts-container")!==-1)return!1}e=e.parentNode}},onTrackerMouseOut:function(e){var t=this.chart.hoverSeries,e=e.relatedTarget||e.toElement;!t||!e||t.options.stickyTracking||this.inClass(e,"highcharts-tooltip")||this.inClass(e,"highcharts-series-"+t.index)||t.onMouseOut()},onContainerClick:function(e){var t=this.chart,n=t.hoverPoint,r=t.plotLeft,i=t.plotTop,e=this.normalize(e);t.cancelClick||(n&&this.inClass(e.target,"highcharts-tracker")?(ze(n.series,"click",Ke(e,{point:n})),t.hoverPoint&&n.firePointEvent("click",e)):(Ke(e,this.getCoordinates(e)),t.isInsidePlot(e.chartX-r,e.chartY-i)&&ze(t,"click",e)))},setDOMEvents:function(){var e=this,t=e.chart.container;t.onmousedown=function(t){e.onContainerMouseDown(t)},t.onmousemove=function(t){e.onContainerMouseMove(t)},t.onclick=function(t){e.onContainerClick(t)},He(t,"mouseleave",e.onContainerMouseLeave),1===Ne&&He(oe,"mouseup",e.onDocumentMouseUp),I&&(t.ontouchstart=function(t){e.onContainerTouchStart(t)},t.ontouchmove=function(t){e.onContainerTouchMove(t)},1===Ne&&He(oe,"touchend",e.onDocumentTouchEnd))},destroy:function(){var e;We(this.chart.container,"mouseleave",this.onContainerMouseLeave),Ne||(We(oe,"mouseup",this.onDocumentMouseUp),We(oe,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(e in this)this[e]=null}},Ke(ie.Pointer.prototype,{pinchTranslate:function(e,t,n,r,i,o){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,e,t,n,r,i,o),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,e,t,n,r,i,o)},pinchTranslateDirection:function(e,t,n,r,i,o,a,s){var l,c,u,d=this.chart,p=e?"x":"y",h=e?"X":"Y",f="chart"+h,m=e?"width":"height",g=d["plot"+(e?"Left":"Top")],y=s||1,v=d.inverted,b=d.bounds[e?"h":"v"],k=1===t.length,x=t[0][f],w=n[0][f],E=!k&&t[1][f],P=!k&&n[1][f],n=function(){!k&&pe(x-E)>20&&(y=s||pe(w-P)/pe(x-E)),c=(g-w)/y+x,l=d["plot"+(e?"Width":"Height")]/y};n(),t=c,tb.max&&(t=b.max-l,u=!0),u?(w-=.8*(w-a[p][0]),k||(P-=.8*(P-a[p][1])),n()):a[p]=[w,P],v||(o[p]=c-g,o[m]=l),o=v?1/y:y,i[m]=l,i[p]=t,r[v?e?"scaleY":"scaleX":"scale"+h]=y,r["translate"+h]=o*g+(w-o*x)},pinch:function(e){var t=this,n=t.chart,r=t.pinchDown,i=e.touches,o=i.length,a=t.lastValidTouch,s=t.hasZoom,l=t.selectionMarker,c={},u=1===o&&(t.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||t.runChartClick),d={};o>1&&(t.initiated=!0),s&&t.initiated&&!u&&e.preventDefault(),Ve(i,function(e){return t.normalize(e)}),"touchstart"===e.type?(Ue(i,function(e,t){r[t]={chartX:e.chartX,chartY:e.chartY}}),a.x=[r[0].chartX,r[1]&&r[1].chartX],a.y=[r[0].chartY,r[1]&&r[1].chartY],Ue(n.axes,function(e){if(e.zoomEnabled){var t=n.bounds[e.horiz?"h":"v"],r=e.minPixelPadding,i=e.toPixels(Ze(e.options.min,e.dataMin)),o=e.toPixels(Ze(e.options.max,e.dataMax)),a=de(i,o),i=ue(i,o);t.min=de(e.pos,a-r),t.max=ue(e.pos+e.len,i+r)}}),t.res=!0):r.length&&(l||(t.selectionMarker=l=Ke({destroy:Me,touch:!0},n.plotBox)),t.pinchTranslate(r,i,c,l,d,a),t.hasPinched=s,t.scaleGroups(c,d),!s&&t.followTouchMove&&1===o?this.runPointActions(t.normalize(e)):t.res&&(t.res=!1,this.reset(!1,0)))},touch:function(e,t){var n,r=this.chart;st=r.index,1===e.touches.length?(e=this.normalize(e),r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop)&&!r.openMenu?(t&&this.runPointActions(e),"touchmove"===e.type&&(r=this.pinchDown,n=!!r[0]&&Math.sqrt(Math.pow(r[0].chartX-e.chartX,2)+Math.pow(r[0].chartY-e.chartY,2))>=4),Ze(n,!0)&&this.pinch(e)):t&&this.reset()):2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(e){ +this.touch(e,!0)},onContainerTouchMove:function(e){this.touch(e)},onDocumentTouchEnd:function(e){De[st]&&De[st].pointer.drop(e)}}),e.PointerEvent||e.MSPointerEvent){var ct={},ut=!!e.PointerEvent,dt=function(){var e,t=[];t.item=function(e){return this[e]};for(e in ct)ct.hasOwnProperty(e)&&t.push({pageX:ct[e].pageX,pageY:ct[e].pageY,target:ct[e].target});return t},pt=function(e,t,n,r){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!De[st]||(r(e),r=De[st].pointer,r[t]({type:n,target:e.currentTarget,preventDefault:Me,touches:dt()}))};Ke(lt.prototype,{onContainerPointerDown:function(e){pt(e,"onContainerTouchStart","touchstart",function(e){ct[e.pointerId]={pageX:e.pageX,pageY:e.pageY,target:e.currentTarget}})},onContainerPointerMove:function(e){pt(e,"onContainerTouchMove","touchmove",function(e){ct[e.pointerId]={pageX:e.pageX,pageY:e.pageY},ct[e.pointerId].target||(ct[e.pointerId].target=e.currentTarget)})},onDocumentPointerUp:function(e){pt(e,"onDocumentTouchEnd","touchend",function(e){delete ct[e.pointerId]})},batchMSEvents:function(e){e(this.chart.container,ut?"pointerdown":"MSPointerDown",this.onContainerPointerDown),e(this.chart.container,ut?"pointermove":"MSPointerMove",this.onContainerPointerMove),e(oe,ut?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),$e(lt.prototype,"init",function(e,t,n){e.call(this,t,n),this.hasZoom&&h(t.container,{"-ms-touch-action":"none","touch-action":"none"})}),$e(lt.prototype,"setDOMEvents",function(e){e.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(He)}),$e(lt.prototype,"destroy",function(e){this.batchMSEvents(We),e.call(this)})}var ht=ie.Legend=function(e,t){this.init(e,t)};ht.prototype={init:function(e,t){var n=this,i=t.itemStyle,o=t.itemMarginTop||0;this.options=t,t.enabled&&(n.itemStyle=i,n.itemHiddenStyle=r(i,t.itemHiddenStyle),n.itemMarginTop=o,n.padding=i=Ze(t.padding,8),n.initialItemX=i,n.initialItemY=i-5,n.maxItemWidth=0,n.chart=e,n.itemHeight=0,n.symbolWidth=Ze(t.symbolWidth,16),n.pages=[],n.render(),He(n.chart,"endResize",function(){n.positionCheckboxes()}))},colorizeItem:function(e,t){var n,r=this.options,i=e.legendItem,o=e.legendLine,a=e.legendSymbol,s=this.itemHiddenStyle.color,r=t?r.itemStyle.color:s,l=t?e.legendColor||e.color||"#CCC":s,s=e.options&&e.options.marker,c={fill:l};if(i&&i.css({fill:r,color:r}),o&&o.attr({stroke:l}),a){if(s&&a.isMarker)for(n in c.stroke=l,s=e.convertAttribs(s))i=s[n],i!==A&&(c[n]=i);a.attr(c)}},positionItem:function(e){var t=this.options,n=t.symbolPadding,t=!t.rtl,r=e._legendItemPos,i=r[0],r=r[1],o=e.checkbox;(e=e.legendGroup)&&e.element&&e.translate(t?i:this.legendWidth-i-2*n-4,r),o&&(o.x=i,o.y=r)},destroyItem:function(e){var t=e.checkbox;Ue(["legendItem","legendLine","legendSymbol","legendGroup"],function(t){e[t]&&(e[t]=e[t].destroy())}),t&&C(e.checkbox)},destroy:function(){var e=this.group,t=this.box;t&&(this.box=t.destroy()),e&&(this.group=e.destroy())},positionCheckboxes:function(e){var t,n=this.group.alignAttr,r=this.clipHeight||this.legendHeight,i=this.titleHeight;n&&(t=n.translateY,Ue(this.allItems,function(o){var a,s=o.checkbox;s&&(a=t+i+s.y+(e||0)+3,h(s,{left:n.translateX+o.checkboxOffset+s.x-20+"px",top:a+"px",display:a>t-6&&a(h||t.chartWidth-2*u-g-i.x)&&(this.itemX=g,this.itemY+=m+this.lastLineHeight+f,this.lastLineHeight=0),this.maxItemWidth=ue(this.maxItemWidth,a),this.lastItemY=m+this.itemY+f,this.lastLineHeight=ue(s,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=a:(this.itemY+=m+s+f,this.lastLineHeight=s),this.offsetWidth=h||ue((o?this.itemX-g-d:a)+u,this.offsetWidth)},getAllItems:function(){var e=[];return Ue(this.chart.series,function(t){var n=t.options;Ze(n.showInLegend,!c(n.linkedTo)&&A,!0)&&(e=e.concat(t.legendItems||("point"===n.legendType?t.data:t)))}),e},adjustMargins:function(e,t){var n=this.chart,r=this.options,i=r.align.charAt(0)+r.verticalAlign.charAt(0)+r.layout.charAt(0);this.display&&!r.floating&&Ue([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,a){o.test(i)&&!c(e[a])&&(n[je[a]]=ue(n[je[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+Ze(r.margin,12)+t[a]))})},render:function(){var e,t,n,r,i=this,o=i.chart,a=o.renderer,s=i.group,l=i.box,c=i.options,u=i.padding,d=c.borderWidth,p=c.backgroundColor;i.itemX=i.initialItemX,i.itemY=i.initialItemY,i.offsetWidth=0,i.lastItemY=0,s||(i.group=s=a.g("legend").attr({zIndex:7}).add(),i.contentGroup=a.g().attr({zIndex:1}).add(s),i.scrollGroup=a.g().add(i.contentGroup)),i.renderTitle(),e=i.getAllItems(),x(e,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),c.reversed&&e.reverse(),i.allItems=e,i.display=t=!!e.length,i.lastLineHeight=0,Ue(e,function(e){i.renderItem(e)}),n=(c.width||i.offsetWidth)+u,r=i.lastItemY+i.lastLineHeight+i.titleHeight,r=i.handleOverflow(r),r+=u,(d||p)&&(l?n>0&&r>0&&(l[l.isNew?"attr":"animate"](l.crisp({width:n,height:r})),l.isNew=!1):(i.box=l=a.rect(0,0,n,r,c.borderRadius,d||0).attr({stroke:c.borderColor,"stroke-width":d||0,fill:p||"none"}).add(s).shadow(c.shadow),l.isNew=!0),l[t?"show":"hide"]()),i.legendWidth=n,i.legendHeight=r,Ue(e,function(e){i.positionItem(e)}),t&&s.align(Ke({width:n,height:r},c),!0,"spacingBox"),o.isResizing||this.positionCheckboxes()},handleOverflow:function(e){var t,n,r=this,i=this.chart,o=i.renderer,a=this.options,s=a.y,s=i.spacingBox.height+("top"===a.verticalAlign?-s:s)-this.padding,l=a.maxHeight,c=this.clipRect,u=a.navigation,d=Ze(u.animation,!0),p=u.arrowSize||12,h=this.nav,f=this.pages,m=this.padding,g=this.allItems,y=function(e){c.attr({height:e}),r.contentGroup.div&&(r.contentGroup.div.style.clip="rect("+m+"px,9999px,"+(m+e)+"px,0)")};return"horizontal"===a.layout&&(s/=2),l&&(s=de(s,l)),f.length=0,e>s&&u.enabled!==!1?(this.clipHeight=t=ue(s-20-this.titleHeight-m,0),this.currentPage=Ze(this.currentPage,1),this.fullHeight=e,Ue(g,function(e,r){var i=e._legendItemPos[1],o=se(e.legendItem.getBBox().height),a=f.length;(!a||i-f[a-1]>t&&(n||i)!==f[a-1])&&(f.push(n||i),a++),r===g.length-1&&i+o-f[a-1]>t&&f.push(i),i!==n&&(n=i)}),c||(c=r.clipRect=o.clipRect(0,m,9999,0),r.contentGroup.clip(c)),y(t),h||(this.nav=h=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,p,p).on("click",function(){r.scroll(-1,d)}).add(h),this.pager=o.text("",15,10).css(u.style).add(h),this.down=o.symbol("triangle-down",0,0,p,p).on("click",function(){r.scroll(1,d)}).add(h)),r.scroll(0),e=s):h&&(y(i.chartHeight),h.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},scroll:function(e,t){var n=this.pages,r=n.length,i=this.currentPage+e,o=this.clipHeight,a=this.options.navigation,s=a.activeColor,a=a.inactiveColor,l=this.pager,c=this.padding;i>r&&(i=r),i>0&&(t!==A&&S(t,this.chart),this.nav.attr({translateX:c,translateY:o+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===i?a:s}).css({cursor:1===i?"default":"pointer"}),l.attr({text:i+"/"+r}),this.down.attr({x:18+this.pager.getBBox().width,fill:i===r?a:s}).css({cursor:i===r?"default":"pointer"}),n=-n[i-1]+this.initialItemY,this.scrollGroup.animate({translateY:n}),this.currentPage=i,this.positionCheckboxes(n))}},nt=ie.LegendSymbolMixin={drawRectangle:function(e,t){var n=e.options.symbolHeight||e.fontMetrics.f;t.legendSymbol=this.chart.renderer.rect(0,e.baseline-n+1,e.symbolWidth,n,e.options.symbolRadius||0).attr({zIndex:3}).add(t.legendGroup)},drawLineMarker:function(e){var t,n=this.options,r=n.marker,i=e.symbolWidth,o=this.chart.renderer,a=this.legendGroup,e=e.baseline-se(.3*e.fontMetrics.b);n.lineWidth&&(t={"stroke-width":n.lineWidth},n.dashStyle&&(t.dashstyle=n.dashStyle),this.legendLine=o.path(["M",0,e,"L",i,e]).attr(t).add(a)),r&&r.enabled!==!1&&(n=r.radius,this.legendSymbol=r=o.symbol(this.symbol,i/2-n,e-n,2*n,2*n,r).add(a),r.isMarker=!0)}},(/Trident\/7\.0/.test(ye)||we)&&$e(ht.prototype,"positionItem",function(e,t){var n=this,r=function(){t._legendItemPos&&e.call(n,t)};r(),setTimeout(r)});var ft=ie.Chart=function(){this.getArgs.apply(this,arguments)};ie.chart=function(e,t,n){return new ft(e,t,n)},ft.prototype={callbacks:[],getArgs:function(){var e=[].slice.call(arguments);(o(e[0])||e[0].nodeName)&&(this.renderTo=e.shift()),this.init(e[0],e[1])},init:function(e,t){var n,i=e.series;e.series=null,n=r(F,e),n.series=e.series=i,this.userOptions=e,i=n.chart,this.margin=this.splashArray("margin",i),this.spacing=this.splashArray("spacing",i);var o=i.events;this.bounds={h:{},v:{}},this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=i.showAxes;var a,s=this;if(s.index=De.length,De.push(s),Ne++,i.reflow!==!1&&He(s,"load",function(){s.initReflow()}),o)for(a in o)He(s,a,o[a]);s.xAxis=[],s.yAxis=[],s.animation=!Se&&Ze(i.animation,!0),s.pointCount=s.colorCounter=s.symbolCounter=0,s.firstRender()},initSeries:function(e){var n=this.options.chart;return(n=Ie[e.type||n.type||n.defaultSeriesType])||t(17,!0),n=new n,n.init(this,e),n},isInsidePlot:function(e,t,n){var r=n?t:e,e=n?e:t;return r>=0&&r<=this.plotWidth&&e>=0&&e<=this.plotHeight},redraw:function(e){var t,n,r=this.axes,i=this.series,o=this.pointer,a=this.legend,s=this.isDirtyLegend,l=this.hasCartesianSeries,c=this.isDirtyBox,u=i.length,d=u,p=this.renderer,h=p.isHidden(),f=[];for(S(e,this),h&&this.cloneRenderTo(),this.layOutTitles();d--;)if(e=i[d],e.options.stacking&&(t=!0,e.isDirty)){n=!0;break}if(n)for(d=u;d--;)e=i[d],e.options.stacking&&(e.isDirty=!0);Ue(i,function(e){e.isDirty&&"point"===e.options.legendType&&(e.updateTotals&&e.updateTotals(),s=!0),e.isDirtyData&&ze(e,"updatedData")}),s&&a.options.enabled&&(a.render(),this.isDirtyLegend=!1),t&&this.getStacks(),l&&!this.isResizing&&(this.maxTicks=null,Ue(r,function(e){e.setScale()})),this.getMargins(),l&&(Ue(r,function(e){e.isDirty&&(c=!0)}),Ue(r,function(e){var n=e.min+","+e.max;e.extKey!==n&&(e.extKey=n,f.push(function(){ze(e,"afterSetExtremes",Ke(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(c||t)&&e.redraw()})),c&&this.drawChartBox(),Ue(i,function(e){e.isDirty&&e.visible&&(!e.isCartesian||e.xAxis)&&e.redraw()}),o&&o.reset(!0),p.draw(),ze(this,"redraw"),h&&this.cloneRenderTo(!0),Ue(f,function(e){e.call()})},get:function(e){var t,n,r=this.axes,i=this.series;for(t=0;t19?this.containerHeight:400))},cloneRenderTo:function(e){var t=this.renderToClone,n=this.container;e?t&&(this.renderTo.appendChild(n),C(t),delete this.renderToClone):(n&&n.parentNode===this.renderTo&&this.renderTo.removeChild(n),this.renderToClone=t=this.renderTo.cloneNode(0),h(t,{position:"absolute",top:"-9999px",display:"block"}),t.style.setProperty&&t.style.setProperty("display","block","important"),oe.body.appendChild(t),n&&t.appendChild(n))},getContainer:function(){var e,n,r,a=this.options,s=a.chart;e=this.renderTo;var l="highcharts-"+_e++;e||(this.renderTo=e=s.renderTo),o(e)&&(this.renderTo=e=oe.getElementById(e)),e||t(13,!0),n=i(u(e,"data-highcharts-chart")),Qe(n)&&De[n]&&De[n].hasRendered&&De[n].destroy(),u(e,"data-highcharts-chart",this.index),e.innerHTML="",!s.skipClone&&!e.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),n=this.chartWidth,r=this.chartHeight,this.container=e=f(Re,{className:"highcharts-container"+(s.className?" "+s.className:""),id:l},Ke({position:"relative",overflow:"hidden",width:n+"px",height:r+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},s.style),this.renderToClone||e),this._cursor=e.style.cursor,this.renderer=new(ie[s.renderer]||j)(e,n,r,s.style,s.forExport,a.exporting&&a.exporting.allowHTML),Se&&this.renderer.create(this,e,n,r),this.renderer.chartIndex=this.index},getMargins:function(e){var t=this.spacing,n=this.margin,r=this.titleOffset;this.resetMargins(),r&&!c(n[0])&&(this.plotTop=ue(this.plotTop,r+this.options.title.margin+t[0])),this.legend.adjustMargins(n,t),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),e||this.getAxisMargins()},getAxisMargins:function(){var e=this,t=e.axisOffset=[0,0,0,0],n=e.margin;e.hasCartesianSeries&&Ue(e.axes,function(e){e.visible&&e.getOffset()}),Ue(je,function(r,i){c(n[i])||(e[r]+=t[i])}),e.setChartSize()},reflow:function(t){var n=this,r=n.options.chart,i=n.renderTo,o=r.width||Le(i,"width"),a=r.height||Le(i,"height"),r=t?t.target:e;n.hasUserSize||n.isPrinting||!o||!a||r!==e&&r!==oe||(o===n.containerWidth&&a===n.containerHeight||(clearTimeout(n.reflowTimeout),n.reflowTimeout=p(function(){n.container&&(n.setSize(o,a,!1),n.hasUserSize=null)},t?100:0)),n.containerWidth=o,n.containerHeight=a)},initReflow:function(){var t=this,n=function(e){t.reflow(e)};He(e,"resize",n),He(t,"destroy",function(){We(e,"resize",n)})},setSize:function(e,t,n){var r,i,o=this,a=o.renderer;o.isResizing+=1,S(n,o),o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,c(e)&&(o.chartWidth=r=ue(0,se(e)),o.hasUserSize=!!r),c(t)&&(o.chartHeight=i=ue(0,se(t))),e=a.globalAnimation,(e?Ge:h)(o.container,{width:r+"px",height:i+"px"},e),o.setChartSize(!0),a.setSize(r,i,n),o.maxTicks=null,Ue(o.axes,function(e){e.isDirty=!0,e.setScale()}),Ue(o.series,function(e){e.isDirty=!0}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(n),o.oldChartHeight=null,ze(o,"resize"),p(function(){o&&ze(o,"endResize",null,function(){o.isResizing-=1})},O(e).duration)},setChartSize:function(e){var t,n,r,i,o=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,u=this.spacing,d=this.clipOffset;this.plotLeft=t=se(this.plotLeft),this.plotTop=n=se(this.plotTop),this.plotWidth=r=ue(0,se(s-t-this.marginRight)),this.plotHeight=i=ue(0,se(l-n-this.marginBottom)),this.plotSizeX=o?i:r,this.plotSizeY=o?r:i,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:u[3],y:u[0],width:s-u[3]-u[1],height:l-u[0]-u[2]},this.plotBox=a.plotBox={x:t,y:n,width:r,height:i},s=2*le(this.plotBorderWidth/2),o=ce(ue(s,d[3])/2),a=ce(ue(s,d[0])/2),this.clipBox={x:o,y:a,width:le(this.plotSizeX-ue(s,d[1])/2-o),height:ue(0,le(this.plotSizeY-ue(s,d[2])/2-a))},e||Ue(this.axes,function(e){e.setAxisSize(),e.setAxisTranslation()})},resetMargins:function(){var e=this;Ue(je,function(t,n){e[t]=Ze(e.margin[n],e.spacing[n])}),e.axisOffset=[0,0,0,0],e.clipOffset=[0,0,0,0]},drawChartBox:function(){var e,t=this.options.chart,n=this.renderer,r=this.chartWidth,i=this.chartHeight,o=this.chartBackground,a=this.plotBackground,s=this.plotBorder,l=this.plotBGImage,c=t.borderWidth||0,u=t.backgroundColor,d=t.plotBackgroundColor,p=t.plotBackgroundImage,h=t.plotBorderWidth||0,f=this.plotLeft,m=this.plotTop,g=this.plotWidth,y=this.plotHeight,v=this.plotBox,b=this.clipRect,k=this.clipBox;e=c+(t.shadow?8:0),(c||u)&&(o?o.animate(o.crisp({width:r-e,height:i-e})):(o={fill:u||"none"},c&&(o.stroke=t.borderColor,o["stroke-width"]=c),this.chartBackground=n.rect(e/2,e/2,r-e,i-e,t.borderRadius,c).attr(o).addClass("highcharts-background").add().shadow(t.shadow))),d&&(a?a.animate(v):this.plotBackground=n.rect(f,m,g,y,0).attr({fill:d}).add().shadow(t.plotShadow)),p&&(l?l.animate(v):this.plotBGImage=n.image(p,f,m,g,y).add()),b?b.animate({width:k.width,height:k.height}):this.clipRect=n.clipRect(k),h&&(s?(s.strokeWidth=-h,s.animate(s.crisp({x:f,y:m,width:g,height:y}))):this.plotBorder=n.rect(f,m,g,y,0,-h).attr({stroke:t.plotBorderColor,"stroke-width":h,fill:"none",zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var e,t,n,r=this,i=r.options.chart,o=r.options.series;Ue(["inverted","angular","polar"],function(a){for(e=Ie[i.type||i.defaultSeriesType],n=r[a]||i[a]||e&&e.prototype[a],t=o&&o.length;!n&&t--;)(e=Ie[o[t].type])&&e.prototype[a]&&(n=!0);r[a]=n})},linkSeries:function(){var e=this,t=e.series;Ue(t,function(e){e.linkedSeries.length=0}),Ue(t,function(t){var n=t.options.linkedTo;o(n)&&(n=":previous"===n?e.series[t.index-1]:e.get(n))&&(n.linkedSeries.push(t),t.linkedParent=n,t.visible=Ze(t.options.visible,n.options.visible,t.visible))})},renderSeries:function(){Ue(this.series,function(e){e.translate(),e.render()})},renderLabels:function(){var e=this,t=e.options.labels;t.items&&Ue(t.items,function(n){var r=Ke(t.style,n.style),o=i(r.left)+e.plotLeft,a=i(r.top)+e.plotTop+12;delete r.left,delete r.top,e.renderer.text(n.html,o,a).attr({zIndex:2}).css(r).add()})},render:function(){var e,t,n,r,i=this.axes,o=this.renderer,a=this.options;this.setTitle(),this.legend=new ht(this,a.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),e=this.plotWidth,t=this.plotHeight-=21,Ue(i,function(e){e.setScale()}),this.getAxisMargins(),n=e/this.plotWidth>1.1,r=t/this.plotHeight>1.05,(n||r)&&(this.maxTicks=null,Ue(i,function(e){(e.horiz&&n||!e.horiz&&r)&&e.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&Ue(i,function(e){e.visible&&e.render()}),this.seriesGroup||(this.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.showCredits(a.credits),this.hasRendered=!0},showCredits:function(t){t.enabled&&!this.credits&&(this.credits=this.renderer.text(t.text,0,0).on("click",function(){t.href&&(e.location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position))},destroy:function(){var e,t=this,n=t.axes,r=t.series,i=t.container,o=i&&i.parentNode;for(ze(t,"destroy"),De[t.index]=A,Ne--,t.renderTo.removeAttribute("data-highcharts-chart"),We(t),e=n.length;e--;)n[e]=n[e].destroy();for(e=r.length;e--;)r[e]=r[e].destroy();Ue("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(e){var n=t[e];n&&n.destroy&&(t[e]=n.destroy())}),i&&(i.innerHTML="",We(i),o&&C(i));for(e in t)delete t[e]},isReadyToRender:function(){var t=this;return!(!Ce&&e==e.top&&"complete"!==oe.readyState||Se&&!e.canvg)||(Se?it.push(function(){t.firstRender()},t.options.global.canvasToolsURL):oe.attachEvent("onreadystatechange",function(){oe.detachEvent("onreadystatechange",t.firstRender),"complete"===oe.readyState&&t.firstRender()}),!1)},firstRender:function(){var e=this,t=e.options;e.isReadyToRender()&&(e.getContainer(),ze(e,"init"),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes(),Ue(t.series||[],function(t){e.initSeries(t)}),e.linkSeries(),ze(e,"beforeRender"),ie.Pointer&&(e.pointer=new lt(e,t)),e.render(),e.renderer.draw(),!e.renderer.imgCount&&e.onload&&e.onload(),e.cloneRenderTo(!0))},onload:function(){var e=this;Ue([this.callback].concat(this.callbacks),function(t){t&&void 0!==e.index&&t.apply(e,[e])}),ze(e,"load"),this.onload=null},splashArray:function(e,t){var n=t[e],n=a(n)?n:[n,n,n,n];return[Ze(t[e+"Top"],n[0]),Ze(t[e+"Right"],n[1]),Ze(t[e+"Bottom"],n[2]),Ze(t[e+"Left"],n[3])]}};var rt=ie.CenteredSeriesMixin={getCenter:function(){var e,t,n=this.options,r=this.chart,i=2*(n.slicedOffset||0),o=r.plotWidth-2*i,r=r.plotHeight-2*i,a=n.center,a=[Ze(a[0],"50%"),Ze(a[1],"50%"),n.size||"100%",n.innerSize||0],s=de(o,r);for(e=0;e<4;++e)t=a[e],n=e<2||2===e&&/%$/.test(t),a[e]=(/%$/.test(t)?[o,r,s,a[2]][e]*parseFloat(t)/100:parseFloat(t))+(n?i:0);return a[3]>a[2]&&(a[3]=a[2]),a}},mt=function(){};mt.prototype={init:function(e,t,n){return this.series=e,this.color=e.color,this.applyOptions(t,n),this.pointAttr={},e.options.colorByPoint&&(t=e.options.colors||e.chart.options.colors,this.color=this.color||t[e.colorCounter++],e.colorCounter===t.length)&&(e.colorCounter=0),e.chart.pointCount++,this},applyOptions:function(e,t){var n=this.series,r=n.options.pointValKey||n.pointValKey,e=mt.prototype.optionsToObject.call(this,e);return Ke(this,e),this.options=this.options?Ke(this.options,e):e,r&&(this.y=this[r]),this.isNull=null===this.x||null===this.y,void 0===this.x&&n&&(this.x=void 0===t?n.autoIncrement():t),this},optionsToObject:function(e){var t={},n=this.series,r=n.options.keys,i=r||n.pointArrayMap||["y"],o=i.length,a=0,l=0;if(Qe(e)||null===e)t[i[0]]=e;else if(s(e))for(!r&&e.length>o&&(n=typeof e[0],"string"===n?t.name=e[0]:"number"===n&&(t.x=e[0]),a++);ly){for(r=0;null===f&&rl||this.forceCrop)&&(r[o-1]p?(r=[],i=[]):(r[0]p)&&(n=this.cropData(this.xData,this.yData,d,p),r=n.xData,i=n.yData,n=n.start,a=!0)),l=r.length||1;--l;)o=m?u(r[l])-u(r[l-1]):r[l]-r[l-1],o>0&&(s===A||o=n){a=ue(0,i-l);break}for(n=i;nr){s=n+l;break}return{xData:e.slice(a,s),yData:t.slice(a,s),start:a,end:s}},generatePoints:function(){var e,t,n,r,i=this.options.data,o=this.data,a=this.processedXData,s=this.processedYData,l=this.pointClass,c=a.length,u=this.cropStart||0,p=this.hasGroupedData,h=[];for(o||p||(o=[],o.length=i.length,o=this.data=o),r=0;r0),s=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(r[c+1]||s)>=u&&(r[c-1]||s)<=d,a&&s)if(a=l.length)for(;a--;)null!==l[a]&&(i[o++]=l[a]);else i[o++]=l;this.dataMin=w(i),this.dataMax=E(i)},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var e,n,r,i,o=this.options,a=o.stacking,s=this.xAxis,l=s.categories,u=this.yAxis,d=this.points,p=d.length,h=!!this.modifyValue,f=o.pointPlacement,m="between"===f||Qe(f),g=o.threshold,y=o.startFromThreshold?g:0,v=Number.MAX_VALUE,o=0;o=0&&n<=u.len&&e>=0&&e<=s.len,b.clientX=m?s.translate(k,0,0,0,1):e,b.negative=b.y<(g||0),b.category=l&&l[b.x]!==A?l[b.x]:b.x,b.isNull||(void 0!==r&&(v=de(v,pe(e-r))),r=e)}this.closestPointRangePx=v},getValidPoints:function(e,t){var n=this.chart;return Be(e||this.points||[],function(e){return!(t&&!n.isInsidePlot(e.plotX,e.plotY,n.inverted))&&!e.isNull})},setClip:function(e){var t=this.chart,n=this.options,r=t.renderer,i=t.inverted,o=this.clipBox,a=o||t.clipBox,s=this.sharedClipKey||["_sharedClip",e&&e.duration,e&&e.easing,a.height,n.xAxis,n.yAxis].join(","),l=t[s],c=t[s+"m"];l||(e&&(a.width=0,t[s+"m"]=c=r.clipRect(-99,i?-t.plotLeft:-t.plotTop,99,i?t.chartWidth:t.chartHeight)),t[s]=l=r.clipRect(a)),e&&(l.count+=1),n.clip!==!1&&(this.group.clip(e||o?l:t.clipRect),this.markerGroup.clip(c),this.sharedClipKey=s),e||(l.count-=1,l.count<=0&&s&&t[s]&&(o||(t[s]=t[s].destroy()),t[s+"m"]&&(t[s+"m"]=t[s+"m"].destroy())))},animate:function(e){var t,n=this.chart,r=this.options.animation;r&&!a(r)&&(r=Je[this.type].animation),e?this.setClip(r):(t=this.sharedClipKey,(e=n[t])&&e.animate({width:n.plotSizeX},r),n[t+"m"]&&n[t+"m"].animate({width:n.plotSizeX+99},r),this.animate=null)},afterAnimate:function(){this.setClip(),ze(this,"afterAnimate")},drawPoints:function(){var e,t,n,r,i,o,a,s,l,c,u,d,p=this.points,h=this.chart,f=this.options.marker,m=this.pointAttr[""],g=this.markerGroup,y=Ze(f.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*f.radius);if(f.enabled!==!1||this._hasPointMarkers)for(r=p.length;r--;)i=p[r],t=le(i.plotX),n=i.plotY,l=i.graphic,c=i.marker||{},u=!!i.marker,e=y&&c.enabled===A||c.enabled,d=i.isInside,e&&Qe(n)&&null!==i.y?(e=i.pointAttr[i.selected?"select":""]||m,o=e.r,a=Ze(c.symbol,this.symbol),s=0===a.indexOf("url"),l?l[d?"show":"hide"](!0).attr(e).animate(Ke({x:t-o,y:n-o},l.symbolName?{width:2*o,height:2*o}:{})):d&&(o>0||s)&&(i.graphic=h.renderer.symbol(a,t-o,n-o,2*o,2*o,u?c:f).attr(e).add(g))):l&&(i.graphic=l.destroy())},convertAttribs:function(e,t,n,r){var i,o,a=this.pointAttrToOptions,s={},e=e||{},t=t||{},n=n||{},r=r||{};for(i in a)o=a[i],s[i]=Ze(e[o],t[i],n[i],r[i]);return s},getAttribs:function(){var e,t,n,r=this,i=r.options,o=Je[r.type].marker?i.marker:i,a=o.states,s=a.hover,l=r.color,u=r.options.negativeColor,d={stroke:l,fill:l},p=r.points||[],h=[],f=r.pointAttrToOptions;e=r.hasPointSpecificOptions;var m=o.lineColor,g=o.fillColor;t=i.turboThreshold;var y,v,b=r.zones,k=r.zoneAxis||"y";if(i.marker?(s.radius=s.radius||o.radius+s.radiusPlus,s.lineWidth=s.lineWidth||o.lineWidth+s.lineWidthPlus):(s.color=s.color||M(s.color||l).brighten(s.brightness).get(),s.negativeColor=s.negativeColor||M(s.negativeColor||u).brighten(s.brightness).get()),h[""]=r.convertAttribs(o,d),Ue(["hover","select"],function(e){h[e]=r.convertAttribs(a[e],h[""])}),r.pointAttr=h,l=p.length,!t||l=d.value;)d=b[++e];t.color=t.fillColor=d=Ze(d.color,r.color)}if(e=i.colorByPoint||t.color,t.options)for(v in f)c(o[f[v]])&&(e=!0);e?(o=o||{},n=[],a=o.states||{},e=a.hover=a.hover||{},i.marker&&(!t.negative||e.fillColor||s.fillColor)||(e[r.pointAttrToOptions.fill]=e.color||!t.options.color&&s[t.negative&&u?"negativeColor":"color"]||M(t.color).brighten(e.brightness||s.brightness).get()),y={color:t.color},g||(y.fillColor=t.color),m||(y.lineColor=t.color),o.hasOwnProperty("color")&&!o.color&&delete o.color,d&&!s.fillColor&&(e.fillColor=d),n[""]=r.convertAttribs(Ke(y,o),h[""]),n.hover=r.convertAttribs(a.hover,h.hover,n[""]),n.select=r.convertAttribs(a.select,h.select,n[""])):n=h,t.pointAttr=n}},destroy:function(){var e,t,n,r,i=this,o=i.chart,a=/AppleWebKit\/533/.test(ye),s=i.data||[];for(ze(i,"destroy"),We(i),Ue(i.axisTypes||[],function(e){(r=i[e])&&(l(r.series,i),r.isDirty=r.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),e=s.length;e--;)(t=s[e])&&t.destroy&&t.destroy();i.points=null,clearTimeout(i.animationTimeout);for(n in i)i[n]instanceof D&&!i[n].survive&&(e=a&&"group"===n?"hide":"destroy",i[n][e]());o.hoverSeries===i&&(o.hoverSeries=null),l(o.series,i);for(n in i)delete i[n]},getGraphPath:function(e,t,n){var r,i,o=this,a=o.options,s=a.step,l=[],e=e||o.points;return(r=e.reversed)&&e.reverse(),(s={right:1,center:2}[s]||s&&3)&&r&&(s=4-s),a.connectNulls&&!t&&!n&&(e=this.getValidPoints(e)),Ue(e,function(r,u){var d=r.plotX,p=r.plotY,h=e[u-1];(r.leftCliff||h&&h.rightCliff)&&!n&&(i=!0),r.isNull&&!c(t)&&u>0?i=!a.connectNulls:r.isNull&&!t?i=!0:(0===u||i?h=["M",r.plotX,r.plotY]:o.getPointSpline?h=o.getPointSpline(e,r,u):s?(h=1===s?["L",h.plotX,p]:2===s?["L",(h.plotX+d)/2,h.plotY,"L",(h.plotX+d)/2,p]:["L",d,h.plotY],h.push("L",d,p)):h=["L",d,p],l.push.apply(l,h),i=!1)}),o.graphPath=l},drawGraph:function(){var e=this,t=this.options,n=[["graph",t.lineColor||this.color,t.dashStyle]],r=t.lineWidth,i="square"!==t.linecap,o=(this.gappedPath||this.getGraphPath).call(this),a=this.fillGraph&&this.color||"none";Ue(this.zones,function(r,i){n.push(["zoneGraph"+i,r.color||e.color,r.dashStyle||t.dashStyle])}),Ue(n,function(n,s){var l=n[0],c=e[l];c?c.animate({d:o}):(r||a)&&o.length&&(c={stroke:n[1],"stroke-width":r,fill:a,zIndex:1},n[2]?c.dashstyle=n[2]:i&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),e[l]=e.chart.renderer.path(o).attr(c).add(e.group).shadow(s<2&&t.shadow))})},applyZones:function(){var e,t,n,r,i,o,a,s=this,l=this.chart,c=l.renderer,u=this.zones,d=this.clips||[],p=this.graph,h=this.area,f=ue(l.chartWidth,l.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],g=m.reversed,y=l.inverted,v=m.horiz,b=!1;u.length&&(p||h)&&m.min!==A&&(p&&p.hide(),h&&h.hide(),r=m.getExtremes(),Ue(u,function(u,k){e=g?v?l.plotWidth:0:v?0:m.toPixels(r.min),e=de(ue(Ze(t,e),0),f),t=de(ue(se(m.toPixels(Ze(u.value,r.max),!0)),0),f),b&&(e=t=m.toPixels(r.max)),i=Math.abs(e-t),o=de(e,t),a=ue(e,t),m.isXAxis?(n={x:y?a:o,y:0,width:i,height:f},v||(n.x=l.plotHeight-n.x)):(n={x:0,y:y?a:o,width:f,height:i},v&&(n.y=l.plotWidth-n.y)),l.inverted&&c.isVML&&(n=m.isXAxis?{x:0,y:g?o:a,height:n.width,width:l.chartWidth}:{x:n.y-l.plotLeft-l.spacingBox.x,y:0,width:n.height,height:l.chartHeight}),d[k]?d[k].animate(n):(d[k]=c.clipRect(n),p&&s["zoneGraph"+k].clip(d[k]),h&&s["zoneArea"+k].clip(d[k])),b=u.value>r.max}),this.clips=d)},invertGroups:function(){function e(){var e={width:t.yAxis.len,height:t.xAxis.len};Ue(["group","markerGroup"],function(n){t[n]&&t[n].attr(e).invert()})}var t=this,n=t.chart;t.xAxis&&(He(n,"resize",e),He(t,"destroy",function(){We(n,"resize",e)}),e(),t.invertGroups=e)},plotGroup:function(e,t,n,r,i){var o=this[e],a=!o;return a&&(this[e]=o=this.chart.renderer.g(t).attr({zIndex:r||.1}).add(i),o.addClass("highcharts-series-"+this.index)),o.attr({visibility:n})[a?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var e=this.chart,t=this.xAxis,n=this.yAxis;return e.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:e.plotLeft,translateY:n?n.top:e.plotTop,scaleX:1,scaleY:1}},render:function(){var e,t=this,n=t.chart,r=t.options,i=!!t.animate&&n.renderer.isSVG&&O(r.animation).duration,o=t.visible?"inherit":"hidden",a=r.zIndex,s=t.hasRendered,l=n.seriesGroup;e=t.plotGroup("group","series",o,a,l),t.markerGroup=t.plotGroup("markerGroup","markers",o,a,l),i&&t.animate(!0),t.getAttribs(),e.inverted=!!t.isCartesian&&n.inverted,t.drawGraph&&(t.drawGraph(),t.applyZones()),Ue(t.points,function(e){e.redraw&&e.redraw()}),t.drawDataLabels&&t.drawDataLabels(),t.visible&&t.drawPoints(),t.drawTracker&&t.options.enableMouseTracking!==!1&&t.drawTracker(),n.inverted&&t.invertGroups(),r.clip!==!1&&!t.sharedClipKey&&!s&&e.clip(n.clipRect),i&&t.animate(),s||(t.animationTimeout=p(function(){t.afterAnimate()},i)),t.isDirty=t.isDirtyData=!1,t.hasRendered=!0},redraw:function(){var e=this.chart,t=this.isDirty||this.isDirtyData,n=this.group,r=this.xAxis,i=this.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:Ze(r&&r.left,e.plotLeft),translateY:Ze(i&&i.top,e.plotTop)})),this.translate(),this.render(),t&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(e,t){var n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:i?r.len-e.chartX+r.pos:e.chartY-r.pos},t)},buildKDTree:function(){function e(n,r,i){var o,a;if(a=n&&n.length)return o=t.kdAxisArray[r%i],n.sort(function(e,t){return e[o]-t[o]}),a=Math.floor(a/2),{point:n[a],left:e(n.slice(0,a),r+1,i),right:e(n.slice(a+1),r+1,i)}}var t=this,n=t.kdDimensions;delete t.kdTree,p(function(){t.kdTree=e(t.getValidPoints(null,!t.directTouch),n,n)},t.options.kdNow?0:1)},searchKDTree:function(e,t){function n(e,t,s,l){var u,d,p=t.point,h=r.kdAxisArray[s%l],f=p;return d=c(e[i])&&c(p[i])?Math.pow(e[i]-p[i],2):null,u=c(e[o])&&c(p[o])?Math.pow(e[o]-p[o],2):null,u=(d||0)+(u||0),p.dist=c(u)?Math.sqrt(u):Number.MAX_VALUE,p.distX=c(d)?Math.sqrt(d):Number.MAX_VALUE,h=e[h]-p[h],u=h<0?"left":"right",d=h<0?"right":"left",t[u]&&(u=n(e,t[u],s+1,l),f=u[a]0&&this.singleStacks===!1&&(n.points[r][0]=n.points[this.index+","+o+",0"][0])),"percent"===d?(t=t?m:g,y&&b[t]&&b[t][o]?(t=b[t][o],n.total=t.total=ue(t.total,n.total)+pe(a)||0):n.total=T(n.total+(pe(a)||0))):n.total=T(n.total+(a||0)),n.cum=Ze(n.cum,h)+(a||0),null!==a&&(n.points[r].push(n.cum),c[i]=n.cum);"percent"===d&&(v.usePercentage=!0),this.stackedYData=c,v.oldStacks={}}},gt.prototype.setPercentStacks=function(){var e,t=this,n=t.stackKey,r=t.yAxis.stacks,i=t.processedXData;Ue([n,"-"+n],function(n){for(var o,a,s,l=i.length;l--;)a=i[l],e=t.getStackIndicator(e,a,t.index),o=(s=r[n]&&r[n][a])&&s.points[e.key],(a=o)&&(s=s.total?100/s.total:0,a[0]=T(a[0]*s),a[1]=T(a[1]*s),t.stackedYData[l]=a[1])})},gt.prototype.getStackIndicator=function(e,t,n){return c(e)&&e.x===t?e.index++:e={x:t,index:0},e.key=[n,t,e.index].join(","),e},Ke(ft.prototype,{addSeries:function(e,t,n){var r,i=this;return e&&(t=Ze(t,!0),ze(i,"addSeries",{options:e},function(){r=i.initSeries(e),i.isDirtyLegend=!0,i.linkSeries(),t&&i.redraw(n)})),r},addAxis:function(e,t,n,i){var o=t?"xAxis":"yAxis",a=this.options,e=r(e,{index:this[o].length,isX:t});new ot(this,e),a[o]=d(a[o]||{}),a[o].push(e),Ze(n,!0)&&this.redraw(i)},showLoading:function(e){var t=this,n=t.options,r=t.loadingDiv,i=n.loading,o=function(){r&&h(r,{left:t.plotLeft+"px",top:t.plotTop+"px",width:t.plotWidth+"px",height:t.plotHeight+"px"})};r||(t.loadingDiv=r=f(Re,{className:"highcharts-loading"},Ke(i.style,{zIndex:10,display:"none"}),t.container),t.loadingSpan=f("span",null,i.labelStyle,r),He(t,"redraw",o)),t.loadingSpan.innerHTML=e||n.lang.loading,t.loadingShown||(h(r,{opacity:0,display:""}),Ge(r,{opacity:i.style.opacity},{duration:i.showDuration||0}),t.loadingShown=!0),o()},hideLoading:function(){var e=this.options,t=this.loadingDiv;t&&Ge(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){h(t,{display:"none"})}}),this.loadingShown=!1}}),Ke(mt.prototype,{update:function(e,t,n,r){function i(){l.applyOptions(e),null===l.y&&u&&(l.graphic=u.destroy()),a(e)&&!s(e)&&(l.redraw=function(){u&&u.element&&e&&e.marker&&e.marker.symbol&&(l.graphic=u.destroy()),e&&e.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.redraw=null}),o=l.index,c.updateParallelArrays(l,o),h&&l.name&&(h[l.x]=l.name),p.data[o]=a(p.data[o])&&!s(p.data[o])?l.options:e,c.isDirty=c.isDirtyData=!0,!c.fixedBox&&c.hasCartesianSeries&&(d.isDirtyBox=!0),"point"===p.legendType&&(d.isDirtyLegend=!0),t&&d.redraw(n)}var o,l=this,c=l.series,u=l.graphic,d=c.chart,p=c.options,h=c.xAxis&&c.xAxis.names,t=Ze(t,!0);r===!1?i():l.firePointEvent("update",{options:e},i)},remove:function(e,t){this.series.removePoint(Fe(this,this.series.data),e,t)}}),Ke(gt.prototype,{addPoint:function(e,t,n,r){var i,o=this,a=o.options,s=o.data,l=o.graph,c=o.area,u=o.chart,d=o.xAxis&&o.xAxis.names,p=l&&l.shift||0,h=["graph","area"],l=a.data,f=o.xData;if(S(r,u),n){for(r=o.zones.length;r--;)h.push("zoneGraph"+r,"zoneArea"+r);Ue(h,function(e){o[e]&&(o[e].shift=p+(a.step?2:1))})}if(c&&(c.isArea=!0),t=Ze(t,!0),c={series:o},o.pointClass.prototype.applyOptions.apply(c,[e]),h=c.x,r=f.length,o.requireSorting&&hh;)r--;o.updateParallelArrays(c,"splice",r,0,0),o.updateParallelArrays(c,r),d&&c.name&&(d[h]=c.name),l.splice(r,0,e),i&&(o.data.splice(r,0,null),o.processData()),"point"===a.legendType&&o.generatePoints(),n&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),o.updateParallelArrays(c,"shift"),l.shift())),o.isDirty=!0,o.isDirtyData=!0,t&&(o.getAttribs(),u.redraw())},removePoint:function(e,t,n){var r=this,i=r.data,o=i[e],a=r.points,s=r.chart,l=function(){a&&a.length===i.length&&a.splice(e,1),i.splice(e,1),r.options.data.splice(e,1),r.updateParallelArrays(o||{series:r},"splice",e,1),o&&o.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&s.redraw()};S(n,s),t=Ze(t,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(e,t){var n=this,r=n.chart;ze(n,"remove",null,function(){n.destroy(),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),Ze(e,!0)&&r.redraw(t)})},update:function(e,t){var n,i=this,o=this.chart,a=this.userOptions,s=this.type,l=Ie[s].prototype,c=["group","markerGroup","dataLabelsGroup"];(e.type&&e.type!==s||void 0!==e.zIndex)&&(c.length=0),Ue(c,function(e){c[e]=i[e],delete i[e]}),e=r(a,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},e),this.remove(!1);for(n in l)this[n]=A;Ke(this,Ie[e.type||s].prototype),Ue(c,function(e){i[e]=c[e]}),this.init(o,e),o.linkSeries(),Ze(t,!0)&&o.redraw(!1)}}),Ke(ot.prototype,{update:function(e,t){var n=this.chart,e=n.options[this.coll][this.options.index]=r(this.userOptions,e);this.destroy(!0),this._addedPlotLB=this.chart._labelPanes=A,this.init(n,Ke(e,{events:A})),n.isDirtyBox=!0,Ze(t,!0)&&n.redraw()},remove:function(e){for(var t=this.chart,n=this.coll,r=this.series,i=r.length;i--;)r[i]&&r[i].remove(!1);l(t.axes,this),l(t[n],this),t.options[n].splice(this.options.index,1),Ue(t[n],function(e,t){e.options.index=t}),this.destroy(),t.isDirtyBox=!0,Ze(e,!0)&&t.redraw()},setTitle:function(e,t){this.update({title:e},t)},setCategories:function(e,t){this.update({categories:e},t)}});var yt=m(gt);Ie.line=yt,Je.area=r(et,{softThreshold:!1,threshold:0});var vt=m(gt,{type:"area",singleStacks:!1,getStackPoints:function(){var e,t,n,r=[],i=[],o=this.xAxis,a=this.yAxis,s=a.stacks[this.stackKey],l={},c=this.points,u=this.index,d=a.series,p=d.length,h=Ze(a.options.reversedStacks,!0)?1:-1;if(this.options.stacking){for(t=0;t=0&&t=0&&te&&i>l?(i=ue(e,l),a=2*l-i):in&&a>l?(a=ue(n,l),i=2*l-a):a.5,t=Math.round(t)+o,r-=t,a&&r&&(t-=1,r+=1),{x:e,y:t,width:n,height:r}},translate:function(){var e=this,t=e.chart,n=e.options,r=e.borderWidth=Ze(n.borderWidth,e.closestPointRange*e.xAxis.transA<2?0:1),i=e.yAxis,o=e.translatedThreshold=i.getThreshold(n.threshold),a=Ze(n.minPointLength,5),s=e.getColumnMetrics(),l=s.width,c=e.barW=ue(l,1+2*r),u=e.pointXOffset=s.offset;t.inverted&&(o-=.5),n.pointPadding&&(c=ce(c)),gt.prototype.translate.apply(e),Ue(e.points,function(n){var r,s=de(Ze(n.yBottom,o),9e4),d=999+pe(s),d=de(ue(-d,n.plotY),i.len+d),p=n.plotX+u,h=c,f=de(d,s),m=ue(d,s)-f;pe(m)a?s-a:o-(r?a:0)),n.barX=p,n.pointWidth=l,n.tooltipPos=t.inverted?[i.len+i.pos-t.plotLeft-d,e.xAxis.len-p-h/2,m]:[p+h/2,d+i.pos-t.plotTop,m],n.shapeType="rect",n.shapeArgs=e.crispCol(p,f,h,m)})},getSymbol:Me,drawLegendSymbol:nt.drawRectangle,drawGraph:Me,drawPoints:function(){var e,t,n=this,i=this.chart,o=n.options,a=i.renderer,s=o.animationLimit||250;Ue(n.points,function(l){var u,d=l.graphic;Qe(l.plotY)&&null!==l.y?(e=l.shapeArgs,u=c(n.borderWidth)?{"stroke-width":n.borderWidth}:{},t=l.pointAttr[l.selected?"select":""]||n.pointAttr[""],d?(qe(d),d.attr(u).attr(t)[i.pointCount {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),vt=m(gt,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&>.prototype.drawGraph.call(this)}}),Ie.scatter=vt,Je.pie=r(et,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return null===this.y?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}}),et={type:"pie",isCartesian:!1,pointClass:m(mt,{init:function(){mt.prototype.init.apply(this,arguments);var e,t=this;return t.name=Ze(t.name,"Slice"),e=function(e){t.slice("select"===e.type)},He(t,"select",e),He(t,"unselect",e),t},setVisible:function(e,t){var n=this,r=n.series,i=r.chart,o=r.options.ignoreHiddenPoint,t=Ze(t,o);e!==n.visible&&(n.visible=n.options.visible=e=e===A?!n.visible:e,r.options.data[Fe(n,r.data)]=n.options,Ue(["graphic","dataLabel","connector","shadowGroup"],function(t){n[t]&&n[t][e?"show":"hide"](!0)}),n.legendItem&&i.legend.colorizeItem(n,e),!e&&"hover"===n.state&&n.setState(""),o&&(r.isDirty=!0),t&&i.redraw())},slice:function(e,t,n){var r=this.series;S(n,r.chart),Ze(t,!0),this.sliced=this.options.sliced=e=c(e)?e:!this.sliced,r.options.data[Fe(this,r.data)]=this.options,e=e?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(e),this.shadowGroup&&this.shadowGroup.animate(e)},haloPath:function(e){var t=this.shapeArgs,n=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(n.plotLeft+t.x,n.plotTop+t.y,t.r+e,t.r+e,{innerR:this.shapeArgs.r,start:t.start,end:t.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},animate:function(e){var t=this,n=t.points,r=t.startAngleRad;e||(Ue(n,function(e){var n=e.graphic,i=e.shapeArgs;n&&(n.attr({r:e.startR||t.center[3]/2,start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},t.options.animation))}),t.animate=null)},updateTotals:function(){var e,t,n=0,r=this.points,i=r.length,o=this.options.ignoreHiddenPoint;for(e=0;e0&&(t.visible||!o)?t.y/n*100:0,t.total=n},generatePoints:function(){gt.prototype.generatePoints.call(this),this.updateTotals()},translate:function(e){this.generatePoints();var t,n,r,i,o,a=0,s=this.options,l=s.slicedOffset,c=l+s.borderWidth,u=s.startAngle||0,d=this.startAngleRad=me/180*(u-90),u=(this.endAngleRad=me/180*(Ze(s.endAngle,u+360)-90))-d,p=this.points,h=s.dataLabels.distance,s=s.ignoreHiddenPoint,f=p.length;for(e||(this.center=e=this.getCenter()),this.getX=function(t,n){return r=ae.asin(de((t-e[1])/(e[2]/2+h),1)),e[0]+(n?-1:1)*he(r)*(e[2]/2+h)},i=0;i1.5*me?r-=2*me:r<-me/2&&(r+=2*me),o.slicedTranslation={translateX:se(he(r)*l),translateY:se(fe(r)*l)},t=he(r)*e[2]/2,n=fe(r)*e[2]/2,o.tooltipPos=[e[0]+.7*t,e[1]+.7*n],o.half=r<-me/2||r>me/2?1:0,o.angle=r,c=de(c,h/2),o.labelPos=[e[0]+t+he(r)*h,e[1]+n+fe(r)*h,e[0]+t+he(r)*c,e[1]+n+fe(r)*c,e[0]+t,e[1]+n,h<0?"center":o.half?"right":"left",r]},drawGraph:null,drawPoints:function(){var e,t,n,r,i,o,a=this,s=a.chart.renderer,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=s.g("shadow").add(a.group)),Ue(a.points,function(c){null!==c.y&&(t=c.graphic,i=c.shapeArgs,n=c.shadowGroup,r=c.pointAttr[c.selected?"select":""],r.stroke||(r.stroke=r.fill),l&&!n&&(n=c.shadowGroup=s.g("shadow").add(a.shadowGroup)),e=c.sliced?c.slicedTranslation:{translateX:0,translateY:0},n&&n.attr(e),t?t.setRadialReference(a.center).attr(r).animate(Ke(i,e)):(o={"stroke-linejoin":"round"},c.visible||(o.visibility="hidden"),c.graphic=t=s[c.shapeType](i).setRadialReference(a.center).attr(r).attr(o).attr(e).add(a.group).shadow(l,n)))})},searchPoint:Me,sortByAngle:function(e,t){e.sort(function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t})},drawLegendSymbol:nt.drawRectangle,getCenter:rt.getCenter,getSymbol:Me},et=m(gt,et),Ie.pie=et,gt.prototype.drawDataLabels=function(){var e,t,n,i,o=this,a=o.options,s=a.cursor,l=a.dataLabels,u=o.points,d=o.hasRendered||0,p=Ze(l.defer,!0),h=o.chart.renderer;(l.enabled||o._hasPointLabels)&&(o.dlProcessOptions&&o.dlProcessOptions(l),i=o.plotGroup("dataLabelsGroup","data-labels",p&&!d?"hidden":"visible",l.zIndex||6),p&&(i.attr({opacity:+d}),d||He(o,"afterAnimate",function(){o.visible&&i.show(),i[a.animation?"animate":"attr"]({opacity:1},{duration:200})})),t=l,Ue(u,function(u){var d,p,f,m,g=u.dataLabel,y=u.connector,b=!0,k={};if(e=u.dlOptions||u.options&&u.options.dataLabels,d=Ze(e&&e.enabled,t.enabled)&&null!==u.y,g&&!d)u.dataLabel=g.destroy();else if(d){if(l=r(t,e),m=l.style,d=l.rotation,p=u.getLabelConfig(),n=l.format?v(l.format,p):l.formatter.call(p,l),m.color=Ze(l.color,m.color,o.color,"black"),g)c(n)?(g.attr({text:n}),b=!1):(u.dataLabel=g=g.destroy(),y&&(u.connector=y.destroy()));else if(c(n)){g={fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.borderWidth,r:l.borderRadius||0,rotation:d,padding:l.padding,zIndex:1},"contrast"===m.color&&(k.color=l.inside||l.distance<0||a.stacking?h.getContrast(u.color||o.color):"#000000"),s&&(k.cursor=s);for(f in g)g[f]===A&&delete g[f];g=u.dataLabel=h[d?"text":"label"](n,0,-9999,l.shape,null,null,l.useHTML).attr(g).css(Ke(m,k)).add(i).shadow(l.shadow)}g&&o.alignDataLabel(u,g,l,null,b)}}))},gt.prototype.alignDataLabel=function(e,t,n,r,i){var o=this.chart,a=o.inverted,s=Ze(e.plotX,-9999),l=Ze(e.plotY,-9999),c=t.getBBox(),u=o.renderer.fontMetrics(n.style.fontSize).b,d=n.rotation,p=n.align,h=this.visible&&(e.series.forceDL||o.isInsidePlot(s,se(l),a)||r&&o.isInsidePlot(s,a?r.x+1:r.y+r.height-1,a)),f="justify"===Ze(n.overflow,"justify");h&&(r=Ke({x:a?o.plotWidth-l:s,y:se(a?o.plotHeight-s:l),width:0,height:0},r),Ke(n,{width:c.width,height:c.height}),d?(f=!1,a=o.renderer.rotCorr(u,d),a={x:r.x+n.x+r.width/2+a.x,y:r.y+n.y+{top:0,middle:.5,bottom:1}[n.verticalAlign]*r.height},t[i?"attr":"animate"](a).attr({align:p}),s=(d+720)%360,s=s>180&&s<360,"left"===p?a.y-=s?c.height:0:"center"===p?(a.x-=c.width/2,a.y-=c.height/2):"right"===p&&(a.x-=c.width,a.y-=s?0:c.height)):(t.align(n,null,r),a=t.alignAttr),f?this.justifyDataLabel(t,n,a,c,r,i):Ze(n.crop,!0)&&(h=o.isInsidePlot(a.x,a.y)&&o.isInsidePlot(a.x+c.width,a.y+c.height)),n.shape&&!d&&t.attr({anchorX:e.plotX,anchorY:e.plotY})),h||(qe(t),t.attr({y:-9999}),t.placed=!1)},gt.prototype.justifyDataLabel=function(e,t,n,r,i,o){var a,s,l=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0;a=n.x+d,a<0&&("right"===c?t.align="left":t.x=-a,s=!0),a=n.x+r.width-d,a>l.plotWidth&&("left"===c?t.align="right":t.x=l.plotWidth-a,s=!0),a=n.y+d,a<0&&("bottom"===u?t.verticalAlign="top":t.y=-a,s=!0),a=n.y+r.height-d,a>l.plotHeight&&("top"===u?t.verticalAlign="bottom":t.y=l.plotHeight-a,s=!0),s&&(e.placed=!o,e.align(t,null,i))},Ie.pie&&(Ie.pie.prototype.drawDataLabels=function(){var e,t,n,r,i,o,a,s,l,c,u,d=this,p=d.data,h=d.chart,f=d.options.dataLabels,m=Ze(f.connectorPadding,10),g=Ze(f.connectorWidth,1),y=h.plotWidth,v=h.plotHeight,b=Ze(f.softConnector,!0),k=f.distance,x=d.center,w=x[2]/2,P=x[1],C=k>0,T=[[],[]],S=[0,0,0,0],O=function(e,t){return t.y-e.y};if(d.visible&&(f.enabled||d._hasPointLabels)){for(gt.prototype.drawDataLabels.apply(d), +Ue(p,function(e){e.dataLabel&&e.visible&&(T[e.half].push(e),e.dataLabel._pos=null)}),c=2;c--;){var _,M=[],D=[],N=T[c],R=N.length;if(R){for(d.sortByAngle(N,c-.5),u=p=0;!p&&N[u];)p=N[u]&&N[u].dataLabel&&(N[u].dataLabel.getBBox().height||21),u++;if(k>0){for(i=de(P+w+k,h.plotHeight),u=ue(0,P-w-k);u<=i;u+=p)M.push(u);if(i=M.length,R>i){for(e=[].concat(N),e.sort(O),u=R;u--;)e[u].rank=u;for(u=R;u--;)N[u].rank>=i&&N.splice(u,1);R=N.length}for(u=0;u0?(i=D.pop(),_=i.i,s=i.y,(e>s&&null!==M[_+1]||ey-m&&(S[1]=ue(se(a+i-y+m),S[1])),s-p/2<0?S[0]=ue(se(-s+p/2),S[0]):s+p/2>v&&(S[2]=ue(se(s+p/2-v),S[2])))}}(0===E(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),C&&g&&Ue(this.points,function(e){t=e.connector,o=e.labelPos,(r=e.dataLabel)&&r._pos&&e.visible?(l=r._attr.visibility,a=r.connX,s=r.connY,n=b?["M",a+("left"===o[6]?5:-5),s,"C",a,s,2*o[2]-o[4],2*o[3]-o[5],o[2],o[3],"L",o[4],o[5]]:["M",a+("left"===o[6]?5:-5),s,"L",o[2],o[3],"L",o[4],o[5]],t?(t.animate({d:n}),t.attr("visibility",l)):e.connector=t=d.chart.renderer.path(n).attr({"stroke-width":g,stroke:f.connectorColor||e.color||"#606060",visibility:l}).add(d.dataLabelsGroup)):t&&(e.connector=t.destroy())}))}},Ie.pie.prototype.placeDataLabels=function(){Ue(this.points,function(e){var t=e.dataLabel;t&&e.visible&&((e=t._pos)?(t.attr(t._attr),t[t.moved?"animate":"attr"](e),t.moved=!0):t&&t.attr({y:-9999}))})},Ie.pie.prototype.alignDataLabel=Me,Ie.pie.prototype.verifyDataLabelOverflow=function(e){var t,n=this.center,r=this.options,i=r.center,o=r.minSize||80,a=o;return null!==i[0]?a=ue(n[2]-ue(e[1],e[3]),o):(a=ue(n[2]-e[1]-e[3],o),n[0]+=(e[3]-e[1])/2),null!==i[1]?a=ue(de(a,n[2]-ue(e[0],e[2])),o):(a=ue(de(a,n[2]-e[0]-e[2]),o),n[1]+=(e[0]-e[2])/2),aZe(this.translatedThreshold,s.yAxis.len)),u=Ze(n.inside,!!this.options.stacking);l&&(i=r(l),i.y<0&&(i.height+=i.y,i.y=0),l=i.y+i.height-s.yAxis.len,l>0&&(i.height-=l),a&&(i={x:s.yAxis.len-i.y-i.height,y:s.xAxis.len-i.x-i.width,width:i.height,height:i.width}),u||(a?(i.x+=c?0:i.width,i.width=0):(i.y+=c?i.height:0,i.height=0))),n.align=Ze(n.align,!a||u?"center":c?"right":"left"),n.verticalAlign=Ze(n.verticalAlign,a||u?"middle":c?"top":"bottom"),gt.prototype.alignDataLabel.call(this,e,t,n,i,o)}),function(e){var t=e.Chart,n=e.each,r=e.pick,i=e.addEvent;t.prototype.callbacks.push(function(e){function t(){var t=[];n(e.series,function(e){var i=e.options.dataLabels,o=e.dataLabelCollections||["dataLabel"];(i.enabled||e._hasPointLabels)&&!i.allowOverlap&&e.visible&&n(o,function(i){n(e.points,function(e){e[i]&&(e[i].labelrank=r(e.labelrank,e.shapeArgs&&e.shapeArgs.height),t.push(e[i]))})})}),e.hideOverlappingLabels(t)}t(),i(e,"redraw",t)}),t.prototype.hideOverlappingLabels=function(e){var t,r,i,o,a,s,l,c,u,d=e.length;for(r=0;ra.x+l.translateX+(i.width-u)||s.x+c.translateX+(o.width-u)a.y+l.translateY+(i.height-u)||s.y+c.translateY+(o.height-u)o;t.series.length&&(a||c>de(l.dataMin,l.min))&&(!a||s>1,u=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?p/l:p*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m}},{}],66:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],67:[function(t,n,r){!function(t,i){"object"==typeof r&&"undefined"!=typeof n?n.exports=i():"function"==typeof e&&e.amd?e(i):t.moment=i()}(this,function(){"use strict";function e(){return mr.apply(null,arguments)}function r(e){mr=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t;for(t in e)return!1;return!0}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n0)for(n in yr)r=yr[n],i=t[r],g(i)||(e[r]=i);return e}function v(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),vr===!1&&(vr=!0,e.updateOffset(this),vr=!1)}function b(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function w(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();Or[n]=Or[n+"s"]=Or[t]=e}function L(e){return"string"==typeof e?Or[e]||Or[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)c(e,n)&&(t=L(n),t&&(r[t]=e[n]));return r}function U(e,t){_r[e]=t}function B(e){var t=[];for(var n in e)t.push({unit:n,priority:_r[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function Y(t,n){return function(r){return null!=r?(H(this,t,r),e.updateOffset(this,n),this):V(this,t)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function H(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function W(e){return e=L(e),T(this[e])?this[e]():this}function z(e,t){if("object"==typeof e){e=F(e);for(var n=B(e),r=0;r=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function q(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Rr[e]=i),t&&(Rr[t[0]]=function(){return G(i.apply(this,arguments),t[1],t[2])}),n&&(Rr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function X(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function K(e){var t,n,r=e.match(Mr);for(t=0,n=r.length;t=0&&Dr.test(e);)e=e.replace(Dr,n),Dr.lastIndex=0,r-=1;return e}function $(e,t,n){Zr[e]=T(t)?t:function(e,r){return e&&n?n:t}}function J(e,t){return c(Zr,e)?Zr[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=x(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ke(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var r=7+t-n,i=(7+ke(e,0,r).getUTCDay()-t)%7;return-i+r-1}function we(e,t,n,r,i){var o,a,s=(7+n-r)%7,l=xe(e,r,i),c=1+7*(t-1)+s+l;return c<=0?(o=e-1,a=ge(o)+c):c>ge(e)?(o=e+1,a=c-ge(e)):(o=e,a=c),{year:o,dayOfYear:a}}function Ee(e,t,n){var r,i,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Pe(i,t,n)):a>Pe(e.year(),t,n)?(r=a-Pe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Pe(e,t,n){var r=xe(e,t,n),i=xe(e+1,t,n);return(ge(e)-r+i)/7}function Ce(e){return Ee(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function Se(){return this._week.doy}function Oe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function _e(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Me(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function De(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ne(e,t){return i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Re(e){return this._weekdaysShort[e.day()]}function Ae(e){return this._weekdaysMin[e.day()]}function je(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=xr.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===t?(i=xr.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=xr.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===t?(i=xr.call(this._weekdaysParse,a),i!==-1?i:(i=xr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=xr.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===t?(i=xr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=xr.call(this._weekdaysParse,a),i!==-1?i:(i=xr.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=xr.call(this._minWeekdaysParse,a),i!==-1?i:(i=xr.call(this._weekdaysParse,a),i!==-1?i:(i=xr.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function Ie(e,t,n){var r,i,o;if(this._weekdaysParseExact)return je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Me(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ue(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=De(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=vi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ye(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ki),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=te(s[t]),l[t]=te(l[t]),c[t]=te(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function We(){return this.hours()%12||12}function ze(){return this.hours()||24}function Ge(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function qe(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,i,o=0;o0;){if(r=$e(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}o++}return null}function $e(e){var r=null;if(!Ci[e]&&"undefined"!=typeof n&&n&&n.exports)try{r=xi._abbr,t("./locale/"+e),Je(r)}catch(e){}return Ci[e]}function Je(e,t){var n;return e&&(n=g(t)?nt(e):et(e,t),n&&(xi=n)),xi._abbr}function et(e,t){if(null!==t){var n=Pi;return t.abbr=e,null!=Ci[e]?(C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ci[e]._config):null!=t.parentLocale&&(null!=Ci[t.parentLocale]?n=Ci[t.parentLocale]._config:C("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),Ci[e]=new _(O(n,t)),Je(e),Ci[e]}return delete Ci[e],null}function tt(e,t){if(null!=t){var n,r=Pi;null!=Ci[e]&&(r=Ci[e]._config),t=O(r,t),n=new _(t),n.parentLocale=Ci[e],Ci[e]=n,Je(e)}else null!=Ci[e]&&(null!=Ci[e].parentLocale?Ci[e]=Ci[e].parentLocale:null!=Ci[e]&&delete Ci[e]);return Ci[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xi;if(!i(e)){if(t=$e(e))return t;e=[e]}return Ze(e)}function rt(){return kr(Ci)}function it(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[ei]<0||n[ei]>11?ei:n[ti]<1||n[ti]>oe(n[Jr],n[ei])?ti:n[ni]<0||n[ni]>24||24===n[ni]&&(0!==n[ri]||0!==n[ii]||0!==n[oi])?ni:n[ri]<0||n[ri]>59?ri:n[ii]<0||n[ii]>59?ii:n[oi]<0||n[oi]>999?oi:-1,h(e)._overflowDayOfYear&&(tti)&&(t=ti),h(e)._overflowWeeks&&t===-1&&(t=ai),h(e)._overflowWeekday&&t===-1&&(t=si),h(e).overflow=t),e}function ot(e){var t,n,r,i,o,a,s=e._i,l=Ti.exec(s)||Si.exec(s);if(l){for(h(e).iso=!0,t=0,n=_i.length;tge(i)&&(h(e)._overflowDayOfYear=!0), +n=ke(i,0,e._dayOfYear),e._a[ei]=n.getUTCMonth(),e._a[ti]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ni]&&0===e._a[ri]&&0===e._a[ii]&&0===e._a[oi]&&(e._nextDay=!0,e._a[ni]=0),e._d=(e._useUTC?ke:be).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ni]=24)}}function ut(e){var t,n,r,i,o,a,s,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=st(t.GG,e._a[Jr],Ee(bt(),1,4).year),r=st(t.W,1),i=st(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,n=st(t.gg,e._a[Jr],Ee(bt(),o,a).year),r=st(t.w,1),null!=t.d?(i=t.d,(i<0||i>6)&&(l=!0)):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Pe(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=we(n,r,i,o,a),e._a[Jr]=s.year,e._dayOfYear=s.dayOfYear)}function dt(t){if(t._f===e.ISO_8601)return void ot(t);t._a=[],h(t).empty=!0;var n,r,i,o,a,s=""+t._i,l=s.length,c=0;for(i=Z(t._f,t._locale).match(Mr)||[],n=0;n0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),Rr[o]?(r?h(t).empty=!1:h(t).unusedTokens.push(o),ie(o,r,t)):t._strict&&!r&&h(t).unusedTokens.push(o);h(t).charsLeftOver=l-c,s.length>0&&h(t).unusedInput.push(s),t._a[ni]<=12&&h(t).bigHour===!0&&t._a[ni]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[ni]=pt(t._locale,t._a[ni],t._meridiem),ct(t),it(t)}function pt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ht(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function It(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=gt(e),e._a){var t=e._isUTC?d(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Lt(){return!!this.isValid()&&!this._isUTC}function Ft(){return!!this.isValid()&&this._isUTC}function Ut(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Bt(e,t){var n,r,i,o=e,a=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(a=Ii.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[ti])*n,h:x(a[ni])*n,m:x(a[ri])*n,s:x(a[ii])*n,ms:x(a[oi])*n}):(a=Li.exec(e))?(n="-"===a[1]?-1:1,o={y:Yt(a[2],n),M:Yt(a[3],n),w:Yt(a[4],n),d:Yt(a[5],n),h:Yt(a[6],n),m:Yt(a[7],n),s:Yt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ht(bt(o.from),bt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Et(o),Pt(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){var n;return e.isValid()&&t.isValid()?(t=St(t,e),e.isBefore(t)?n=Vt(e,t):(n=Vt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function zt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Bt(n,r),Gt(this,i,e),this}}function Gt(t,n,r,i){var o=n._milliseconds,a=Wt(n._days),s=Wt(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),a&&H(t,"Date",V(t,"Date")+a*r),s&&ue(t,V(t,"Month")+s*r),i&&e.updateOffset(t,a||s))}function qt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Xt(t,n){var r=t||bt(),i=St(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",a=n&&(T(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,bt(r)))}function Kt(){return new v(this)}function Qt(e,t){var n=b(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=L(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()o&&(t=o),Nn.call(this,e,t,n,r,i))}function Nn(e,t,n,r,i){var o=we(e,t,n,r,i),a=ke(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Rn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function An(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function jn(e,t){t[oi]=x(1e3*("0."+e))}function In(){return this._isUTC?"UTC":""}function Ln(){return this._isUTC?"Coordinated Universal Time":""}function Fn(e){return bt(1e3*e)}function Un(){return bt.apply(null,arguments).parseZone()}function Bn(e){return e}function Yn(e,t,n,r){var i=nt(),o=d().set(r,t);return i[n](o,e)}function Vn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Yn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Yn(e,r,n,"month");return i}function Hn(e,t,n,r){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var i=nt(),o=e?i._week.dow:0;if(null!=n)return Yn(t,(n+o)%7,r,"day");var a,s=[];for(a=0;a<7;a++)s[a]=Yn(t,(a+o)%7,r,"day");return s}function Wn(e,t){return Vn(e,t,"months")}function zn(e,t){return Vn(e,t,"monthsShort")}function Gn(e,t,n){return Hn(e,t,n,"weekdays")}function qn(e,t,n){return Hn(e,t,n,"weekdaysShort")}function Xn(e,t,n){return Hn(e,t,n,"weekdaysMin")}function Kn(){var e=this._data;return this._milliseconds=Ki(this._milliseconds),this._days=Ki(this._days),this._months=Ki(this._months),e.milliseconds=Ki(e.milliseconds),e.seconds=Ki(e.seconds),e.minutes=Ki(e.minutes),e.hours=Ki(e.hours),e.months=Ki(e.months),e.years=Ki(e.years),this}function Qn(e,t,n,r){var i=Bt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Zn(e,t){return Qn(this,e,t,1)}function $n(e,t){return Qn(this,e,t,-1)}function Jn(e){return e<0?Math.floor(e):Math.ceil(e)}function er(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Jn(nr(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=k(o/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),i=k(tr(a)),s+=i,a-=Jn(nr(i)),r=k(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function tr(e){return 4800*e/146097}function nr(e){return 146097*e/4800}function rr(e){var t,n,r=this._milliseconds;if(e=L(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+tr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ir(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function or(e){return function(){return this.as(e)}}function ar(e){return e=L(e),this[e+"s"]()}function sr(e){return function(){return this._data[e]}}function lr(){return k(this.days()/7)}function cr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ur(e,t,n){var r=Bt(e).abs(),i=po(r.as("s")),o=po(r.as("m")),a=po(r.as("h")),s=po(r.as("d")),l=po(r.as("M")),c=po(r.as("y")),u=i0,u[4]=n,cr.apply(null,u)}function dr(e){return void 0===e?po:"function"==typeof e&&(po=e,!0)}function pr(e,t){return void 0!==ho[e]&&(void 0===t?ho[e]:(ho[e]=t,!0))}function hr(e){var t=this.localeData(),n=ur(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function fr(){var e,t,n,r=fo(this._milliseconds)/1e3,i=fo(this._days),o=fo(this._months);e=k(r/60),t=k(e/60),r%=60,e%=60,n=k(o/12),o%=12;var a=n,s=o,l=i,c=t,u=e,d=r,p=this.asSeconds();return p?(p<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(c||u||d?"T":"")+(c?c+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var mr,gr;gr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var hi=Y("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),U("week",5),U("isoWeek",5),$("w",Ur),$("ww",Ur,jr),$("W",Ur),$("WW",Ur,jr),re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)});var fi={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),$("d",Ur),$("e",Ur),$("E",Ur),$("dd",function(e,t){return t.weekdaysMinRegex(e)}),$("ddd",function(e,t){return t.weekdaysShortRegex(e)}),$("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var mi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vi=Qr,bi=Qr,ki=Qr;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,We),q("k",["kk",2],0,ze),q("hmm",0,0,function(){return""+We.apply(this)+G(this.minutes(),2)}),q("hmmss",0,0,function(){return""+We.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),Ge("a",!0),Ge("A",!1),I("hour","h"),U("hour",13),$("a",qe),$("A",qe),$("H",Ur),$("h",Ur),$("HH",Ur,jr),$("hh",Ur,jr),$("hmm",Br),$("hmmss",Yr),$("Hmm",Br),$("Hmmss",Yr),ne(["H","HH"],ni),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[ni]=x(e),h(n).bigHour=!0}),ne("hmm",function(e,t,n){var r=e.length-2;t[ni]=x(e.substr(0,r)),t[ri]=x(e.substr(r)),h(n).bigHour=!0}),ne("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ni]=x(e.substr(0,r)),t[ri]=x(e.substr(r,2)),t[ii]=x(e.substr(i)),h(n).bigHour=!0}),ne("Hmm",function(e,t,n){var r=e.length-2;t[ni]=x(e.substr(0,r)),t[ri]=x(e.substr(r))}),ne("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ni]=x(e.substr(0,r)),t[ri]=x(e.substr(r,2)),t[ii]=x(e.substr(i))});var xi,wi=/[ap]\.?m?\.?/i,Ei=Y("Hours",!0),Pi={calendar:wr,longDateFormat:Er,invalidDate:Pr,ordinal:Cr,ordinalParse:Tr,relativeTime:Sr,months:ci,monthsShort:ui,week:fi,weekdays:mi,weekdaysMin:yi,weekdaysShort:gi,meridiemParse:wi},Ci={},Ti=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Si=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Oi=/Z|[+-]\d\d(?::?\d\d)?/,_i=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Di=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=P("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Ni=P("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:m()}),Ai=function(){return Date.now?Date.now():+new Date};Ct("Z",":"),Ct("ZZ",""),$("Z",Xr),$("ZZ",Xr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Tt(Xr,e)});var ji=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Ii=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Li=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Bt.fn=Et.prototype;var Fi=zt(1,"add"),Ui=zt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Bi=P("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tn("gggg","weekYear"),Tn("ggggg","weekYear"),Tn("GGGG","isoWeekYear"),Tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),$("G",Gr),$("g",Gr),$("GG",Ur,jr),$("gg",Ur,jr),$("GGGG",Hr,Lr),$("gggg",Hr,Lr),$("GGGGG",Wr,Fr),$("ggggg",Wr,Fr),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),re(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),I("quarter","Q"),U("quarter",7),$("Q",Ar),ne("Q",function(e,t){t[ei]=3*(x(e)-1)}),q("D",["DD",2],"Do","date"),I("date","D"),U("date",9),$("D",Ur),$("DD",Ur,jr),$("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ne(["D","DD"],ti),ne("Do",function(e,t){t[ti]=x(e.match(Ur)[0],10)});var Yi=Y("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),U("dayOfYear",4),$("DDD",Vr),$("DDDD",Ir),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),q("m",["mm",2],0,"minute"),I("minute","m"),U("minute",14),$("m",Ur),$("mm",Ur,jr),ne(["m","mm"],ri);var Vi=Y("Minutes",!1);q("s",["ss",2],0,"second"),I("second","s"),U("second",15),$("s",Ur),$("ss",Ur,jr),ne(["s","ss"],ii);var Hi=Y("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),U("millisecond",16),$("S",Vr,Ar),$("SS",Vr,jr),$("SSS",Vr,Ir);var Wi;for(Wi="SSSS";Wi.length<=9;Wi+="S")$(Wi,zr);for(Wi="S";Wi.length<=9;Wi+="S")ne(Wi,jn);var zi=Y("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var Gi=v.prototype;Gi.add=Fi,Gi.calendar=Xt,Gi.clone=Kt,Gi.diff=nn,Gi.endOf=mn,Gi.format=sn,Gi.from=ln,Gi.fromNow=cn,Gi.to=un,Gi.toNow=dn,Gi.get=W,Gi.invalidAt=Pn,Gi.isAfter=Qt,Gi.isBefore=Zt,Gi.isBetween=$t,Gi.isSame=Jt,Gi.isSameOrAfter=en,Gi.isSameOrBefore=tn,Gi.isValid=wn,Gi.lang=Bi,Gi.locale=pn,Gi.localeData=hn,Gi.max=Ri,Gi.min=Ni,Gi.parsingFlags=En,Gi.set=z,Gi.startOf=fn,Gi.subtract=Ui,Gi.toArray=bn,Gi.toObject=kn,Gi.toDate=vn,Gi.toISOString=an,Gi.toJSON=xn,Gi.toString=on,Gi.unix=yn,Gi.valueOf=gn,Gi.creationData=Cn,Gi.year=hi,Gi.isLeapYear=ve,Gi.weekYear=Sn,Gi.isoWeekYear=On,Gi.quarter=Gi.quarters=Rn,Gi.month=de,Gi.daysInMonth=pe,Gi.week=Gi.weeks=Oe,Gi.isoWeek=Gi.isoWeeks=_e,Gi.weeksInYear=Mn,Gi.isoWeeksInYear=_n,Gi.date=Yi,Gi.day=Gi.days=Le,Gi.weekday=Fe,Gi.isoWeekday=Ue,Gi.dayOfYear=An,Gi.hour=Gi.hours=Ei,Gi.minute=Gi.minutes=Vi,Gi.second=Gi.seconds=Hi,Gi.millisecond=Gi.milliseconds=zi,Gi.utcOffset=_t,Gi.utc=Dt,Gi.local=Nt,Gi.parseZone=Rt,Gi.hasAlignedHourOffset=At,Gi.isDST=jt,Gi.isLocal=Lt,Gi.isUtcOffset=Ft,Gi.isUtc=Ut,Gi.isUTC=Ut,Gi.zoneAbbr=In,Gi.zoneName=Ln,Gi.dates=P("dates accessor is deprecated. Use date instead.",Yi),Gi.months=P("months accessor is deprecated. Use month instead",de),Gi.years=P("years accessor is deprecated. Use year instead",hi),Gi.zone=P("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mt),Gi.isDSTShifted=P("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",It);var qi=Gi,Xi=_.prototype;Xi.calendar=M,Xi.longDateFormat=D,Xi.invalidDate=N,Xi.ordinal=R,Xi.preparse=Bn,Xi.postformat=Bn,Xi.relativeTime=A,Xi.pastFuture=j,Xi.set=S,Xi.months=ae,Xi.monthsShort=se,Xi.monthsParse=ce,Xi.monthsRegex=fe,Xi.monthsShortRegex=he,Xi.week=Ce,Xi.firstDayOfYear=Se,Xi.firstDayOfWeek=Te,Xi.weekdays=Ne,Xi.weekdaysMin=Ae,Xi.weekdaysShort=Re,Xi.weekdaysParse=Ie,Xi.weekdaysRegex=Be,Xi.weekdaysShortRegex=Ye,Xi.weekdaysMinRegex=Ve,Xi.isPM=Xe,Xi.meridiem=Ke,Je("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=P("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=P("moment.langData is deprecated. Use moment.localeData instead.",nt);var Ki=Math.abs,Qi=or("ms"),Zi=or("s"),$i=or("m"),Ji=or("h"),eo=or("d"),to=or("w"),no=or("M"),ro=or("y"),io=sr("milliseconds"),oo=sr("seconds"),ao=sr("minutes"),so=sr("hours"),lo=sr("days"),co=sr("months"),uo=sr("years"),po=Math.round,ho={s:45,m:45,h:22,d:26,M:11},fo=Math.abs,mo=Et.prototype;mo.abs=Kn,mo.add=Zn,mo.subtract=$n,mo.as=rr,mo.asMilliseconds=Qi,mo.asSeconds=Zi,mo.asMinutes=$i,mo.asHours=Ji,mo.asDays=eo,mo.asWeeks=to,mo.asMonths=no,mo.asYears=ro,mo.valueOf=ir,mo._bubble=er,mo.get=ar,mo.milliseconds=io,mo.seconds=oo,mo.minutes=ao,mo.hours=so,mo.days=lo,mo.weeks=lr,mo.months=co,mo.years=uo,mo.humanize=hr,mo.toISOString=fr,mo.toString=fr,mo.toJSON=fr,mo.locale=pn,mo.localeData=hn,mo.toIsoString=P("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",fr),mo.lang=Bi,q("X",0,0,"unix"),q("x",0,0,"valueOf"),$("x",Gr),$("X",Kr),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(x(e))}),e.version="2.14.1",r(bt),e.fn=qi,e.min=xt,e.max=wt,e.now=Ai,e.utc=d,e.unix=Fn,e.months=Wn,e.isDate=s,e.locale=Je,e.invalid=m,e.duration=Bt,e.isMoment=b,e.weekdays=Gn,e.parseZone=Un,e.localeData=nt,e.isDuration=Pt,e.monthsShort=zn,e.weekdaysMin=Xn,e.defineLocale=et,e.updateLocale=tt,e.locales=rt,e.weekdaysShort=qn,e.normalizeUnits=L,e.relativeTimeRounding=dr,e.relativeTimeThreshold=pr,e.calendarFormat=qt,e.prototype=qi;var go=e;return go})},{}],68:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}var o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=i()?Object.assign:function(e,t){for(var n,i,s=r(e),l=1;lu||l.year()>c)&&(e+=" rdtNew"),s&&l.isSame(s,"day")&&(e+=" rdtActive"),l.isSame(i(),"day")&&(e+=" rdtToday"),t=!f(r,s),t&&(e+=" rdtDisabled"),n={key:l.format("M_D"),"data-value":l.date(),className:e},t||(n.onClick=this.updateSelectedDate),p.push(h(n,r,s)),7==p.length&&(d.push(o.tr({key:l.format("M_D")},p)),p=[]),l.add(1,"d");return d},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t,n){return o.td(e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return o.tfoot({key:"tf"},o.tr({},o.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},isValidDate:function(){return 1}});t.exports=a},{moment:67,react:219}],72:[function(e,t,n){"use strict";var r=e("react"),i=(e("moment"),r.DOM),o=r.createClass({render:function(){return i.div({className:"rdtMonths"},[i.table({key:"a"},i.thead({},i.tr({},[i.th({key:"prev",className:"rdtPrev"},i.span({onClick:this.props.subtractTime(1,"years")},"‹")),i.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),i.th({key:"next",className:"rdtNext"},i.span({onClick:this.props.addTime(1,"years")},"›"))]))),i.table({key:"months"},i.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n=this.props.selectedDate,r=this.props.viewDate.month(),o=this.props.viewDate.year(),a=[],s=0,l=[],c=this.props.renderMonth||this.renderMonth;s<12;)e="rdtMonth",n&&s===r&&o===n.year()&&(e+=" rdtActive"),t={key:s,"data-value":s,className:e,onClick:"months"==this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")},l.push(c(t,s,o,n&&n.clone())),4==l.length&&(a.push(i.tr({key:r+"_"+a.length},l)),l=[]),s++;return a},updateSelectedMonth:function(e){this.props.updateSelectedDate(e,!0)},renderMonth:function(e,t,n,r){return i.td(e,this.props.viewDate.localeData()._monthsShort[t])}});t.exports=o},{moment:67,react:219}],73:[function(e,t,n){"use strict";var r=e("react"),i=r.DOM,o=r.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,r=[];n.indexOf("H")==-1&&n.indexOf("h")==-1||(r.push("hours"),n.indexOf("m")!=-1&&(r.push("minutes"),n.indexOf("s")!=-1&&r.push("seconds")));var i=!1;return this.props.timeFormat.indexOf(" A")!=-1&&null!=this.state&&(i=this.state.hours>12?"PM":"AM"),{hours:t.format("H"),minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:i,counters:r}},renderCounter:function(e){if("daypart"!==e){var t=this.state[e];return"hours"===e&&this.props.timeFormat.indexOf(" A")!=-1&&t>12&&(t-=12),i.div({key:e,className:"rdtCounter"},[i.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e)},"▲"),i.div({key:"c",className:"rdtCount"},t),i.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e)},"▼")])}return""},render:function(){var e=this,t=[];return this.state.counters.forEach(function(n){t.length&&t.push(i.div({key:"sep"+t.length,className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(n))}),this.state.daypart!==!1&&t.push(i.div({key:this.state.daypart,className:"rdtDayPart"},this.state.daypart)),3==this.state.counters.length&&this.props.timeFormat.indexOf("S")!=-1&&(t.push(i.div({className:"rdtCounterSeparator",key:"sep5"},":")),t.push(i.div({className:"rdtCounter rdtMilli",key:"m"},i.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),i.div({className:"rdtTime"},i.table({},[this.renderHeader(),i.tbody({key:"b"},i.tr({},i.td({},i.div({className:"rdtCounters"},t))))]))},componentWillReceiveProps:function(e,t){this.setState(this.calculateState(e))},updateMilli:function(e){var t=parseInt(e.target.value);t==e.target.value&&t>=0&&t<1e3&&(this.props.setTime("milliseconds",t),this.setState({milliseconds:t}))},renderHeader:function(){if(!this.props.dateFormat)return null;var e=this.props.selectedDate||this.props.viewDate;return i.thead({key:"h"},i.tr({},i.th({className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},e.format(this.props.dateFormat))))},onStartClicking:function(e,t){var n=this;this.state[t];return function(){var r={};r[t]=n[e](t),n.setState(r),n.timer=setTimeout(function(){n.increaseTimer=setInterval(function(){r[t]=n[e](t),n.setState(r)},70)},500),n.mouseUpListener=function(){clearTimeout(n.timer),clearInterval(n.increaseTimer),n.props.setTime(t,n.state[t]),document.body.removeEventListener("mouseup",n.mouseUpListener)},document.body.addEventListener("mouseup",n.mouseUpListener)}},maxValues:{hours:23,minutes:59,seconds:59,milliseconds:999},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},increase:function(e){var t=parseInt(this.state[e])+1;return t>this.maxValues[e]&&(t=0),this.pad(e,t)},decrease:function(e){var t=parseInt(this.state[e])-1;return t<0&&(t=this.maxValues[e]),this.pad(e,t)},pad:function(e,t){for(var n=t+"";n.length0||i[1]>13)&&(r=e("react-dom"));var o=[],a=[],s="ignore-react-onclickoutside",l=function(e,t){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(s):e.classList.contains(s))};t.exports={componentDidMount:function(){if("function"!=typeof this.handleClickOutside)throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");var e=this.__outsideClickHandler=function(e,t){return function(n){n.stopPropagation();for(var r=n.target,i=!1;r.parentNode;){if(i=l(r,e))return;r=r.parentNode}t(n)}}(r.findDOMNode(this),this.handleClickOutside),t=o.length;o.push(this),a[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=o.indexOf(this);e>-1&&a[e]&&(a.splice(e,1),o.splice(e,1))},enableOnClickOutside:function(){var e=this.__outsideClickHandler;document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},disableOnClickOutside:function(){var e=this.__outsideClickHandler;document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}},{react:219,"react-dom":76}],76:[function(e,t,n){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":114}],77:[function(t,n,r){!function(i,o){"object"==typeof r&&"object"==typeof n?n.exports=o(t("react"),t("highcharts")):"function"==typeof e&&e.amd?e(["react","highcharts"],o):"object"==typeof r?r.ReactHighcharts=o(t("react"),t("highcharts")):i.ReactHighcharts=o(i.React,i.Highcharts)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(3)},function(t,n){t.exports=e},function(e,t,n){(function(t){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t8&&E<=11),T=32,S=String.fromCharCode(T),O=h.topLevelTypes,_={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[O.topCompositionEnd,O.topKeyPress,O.topTextInput,O.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[O.topBlur,O.topCompositionEnd,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[O.topBlur,O.topCompositionStart,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[O.topBlur,O.topCompositionUpdate,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]}},M=!1,D=null,N={eventTypes:_,extractEvents:function(e,t,n,r){return[c(e,t,n,r),p(e,t,n,r)]}};t.exports=N},{"./EventConstants":93,"./EventPropagators":97,"./FallbackCompositionState":98,"./SyntheticCompositionEvent":175,"./SyntheticInputEvent":179,"fbjs/lib/ExecutionEnvironment":39,"fbjs/lib/keyOf":57}],80:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){o.forEach(function(t){i[r(t,e)]=i[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:i,shorthandPropertyExpansions:a};t.exports=s},{}],81:[function(e,t,n){"use strict";var r=e("./CSSProperty"),i=e("fbjs/lib/ExecutionEnvironment"),o=(e("./ReactInstrumentation"),e("fbjs/lib/camelizeStyleName"),e("./dangerousStyleValue")),a=e("fbjs/lib/hyphenateStyleName"),s=e("fbjs/lib/memoizeStringOnly"),l=(e("fbjs/lib/warning"),s(function(e){return a(e)})),c=!1,u="cssFloat";if(i.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){c=!0}void 0===document.documentElement.style.cssFloat&&(u="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];null!=i&&(n+=l(r)+":",n+=o(r,i,t)+";")}return n||null},setValueForStyles:function(e,t,n){var i=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=o(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=u),s)i[a]=s;else{var l=c&&r.shorthandPropertyExpansions[a];if(l)for(var d in l)i[d]="";else i[a]=""}}}};t.exports=p},{"./CSSProperty":80,"./ReactInstrumentation":150,"./dangerousStyleValue":193,"fbjs/lib/ExecutionEnvironment":39,"fbjs/lib/camelizeStyleName":41,"fbjs/lib/hyphenateStyleName":52,"fbjs/lib/memoizeStringOnly":59,"fbjs/lib/warning":63}],82:[function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var i=e("./reactProdInvariant"),o=e("object-assign"),a=e("./PooledClass");e("fbjs/lib/invariant");o(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?i("24"):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n8));var I=!1;x.canUseDOM&&(I=T("input")&&(!("documentMode"in document)||document.documentMode>11));var L={get:function(){return A.get.call(this)},set:function(e){R=""+e,A.set.call(this,e)}},F={eventTypes:M,extractEvents:function(e,t,n,i){var o,a,s=t?w.getNodeFromInstance(t):window;if(r(s)?j?o=l:a=c:S(s)?I?o=h:(o=m,a=f):g(s)&&(o=y),o){var u=o(e,t);if(u){var d=P.getPooled(M.change,u,n,i);return d.type="change",k.accumulateTwoPhaseDispatches(d),d}}a&&a(e,s,t)}};t.exports=F},{"./EventConstants":93,"./EventPluginHub":94,"./EventPropagators":97,"./ReactDOMComponentTree":118,"./ReactUpdates":168,"./SyntheticEvent":177,"./getEventTarget":201,"./isEventSupported":208,"./isTextInputElement":209,"fbjs/lib/ExecutionEnvironment":39,"fbjs/lib/keyOf":57}],84:[function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function i(e,t,n){u.insertTreeBefore(e,t,n)}function o(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):g(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],l(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var i=t;;){var o=i.nextSibling;if(g(e,i,r),i===n)break;i=o}}function l(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function c(e,t,n){var r=e.parentNode,i=e.nextSibling;i===t?n&&g(r,document.createTextNode(n),i):n?(m(i,n),l(r,i,t)):l(r,e,t)}var u=e("./DOMLazyTree"),d=e("./Danger"),p=e("./ReactMultiChildUpdateTypes"),h=(e("./ReactDOMComponentTree"),e("./ReactInstrumentation"),e("./createMicrosoftUnsafeLocalFunction")),f=e("./setInnerHTML"),m=e("./setTextContent"),g=h(function(e,t,n){e.insertBefore(t,n)}),y=d.dangerouslyReplaceNodeWithMarkup,v={dangerouslyReplaceNodeWithMarkup:y,replaceDelimitedText:c,processUpdates:function(e,t){for(var n=0;n-1?void 0:a("96",e),!c.plugins[n]){t.extractEvents?void 0:a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var o in r)i(r[o],t,o)?void 0:a("98",o,e)}}}function i(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];o(s,t,n)}return!0}return!!e.registrationName&&(o(e.registrationName,t,n),!0)}function o(e,t,n){c.registrationNameModules[e]?a("100",e):void 0,c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e("./reactProdInvariant"),s=(e("fbjs/lib/invariant"),null),l={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];l.hasOwnProperty(n)&&l[n]===i||(l[n]?a("102",n):void 0,l[n]=i,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};t.exports=c},{"./reactProdInvariant":212,"fbjs/lib/invariant":53}],96:[function(e,t,n){"use strict";function r(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function i(e){return e===v.topMouseMove||e===v.topTouchMove}function o(e){return e===v.topMouseDown||e===v.topTouchStart}function a(e,t,n,r){var i=e.type||"unknown-event";e.currentTarget=b.getNodeFromInstance(r),t?g.invokeGuardedCallbackWithCatch(i,n,e):g.invokeGuardedCallback(i,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i1?1-t:void 0;return this._fallbackText=i.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{"./PooledClass":102,"./getTextContentAccessor":205,"object-assign":68}],99:[function(e,t,n){"use strict";var r=e("./DOMProperty"),i=r.injection.MUST_USE_PROPERTY,o=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,l=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:o,allowTransparency:0,alt:0,async:o,autoComplete:0,autoPlay:o,capture:o,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:i|o,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:o,coords:0,crossOrigin:0,data:0,dateTime:0,default:o,defer:o,dir:0,disabled:o,download:l,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:o,formTarget:0,frameBorder:0,headers:0,height:0,hidden:o,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:o,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:i|o,muted:i|o,name:0,nonce:0,noValidate:o,open:o,optimum:0,pattern:0,placeholder:0,poster:0,preload:0,profile:0,radioGroup:0,readOnly:o,rel:0,required:o,reversed:o,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:o,scrolling:0,seamless:o,selected:i|o,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:o,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=c},{"./DOMProperty":87}],100:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function i(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var o={escape:r,unescape:i};t.exports=o},{}],101:[function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?s("87"):void 0}function i(e){r(e),null!=e.value||null!=e.onChange?s("88"):void 0}function o(e){r(e),null!=e.checked||null!=e.onChange?s("89"):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=e("./reactProdInvariant"),l=e("./ReactPropTypes"),c=e("./ReactPropTypeLocations"),u=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),d={value:function(e,t,n){return!e[t]||u[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:l.func},p={},h={checkPropTypes:function(e,t,n){for(var r in d){if(d.hasOwnProperty(r))var i=d[r](t,r,e,c.prop);if(i instanceof Error&&!(i.message in p)){p[i.message]=!0;a(n)}}},getValue:function(e){return e.valueLink?(i(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(o(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(i(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(o(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=h},{"./ReactPropTypeLocations":160,"./ReactPropTypes":161,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],102:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),i=(e("fbjs/lib/invariant"),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),o=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n),i}return new r(e,t,n)},s=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},l=function(e,t,n,r,i){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r,i),a}return new o(e,t,n,r,i)},c=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length=0||null!=t.is}function f(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=null,this._domID=null,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=e("./reactProdInvariant"),g=e("object-assign"),y=e("./AutoFocusUtils"),v=e("./CSSPropertyOperations"),b=e("./DOMLazyTree"),k=e("./DOMNamespaces"),x=e("./DOMProperty"),w=e("./DOMPropertyOperations"),E=e("./EventConstants"),P=e("./EventPluginHub"),C=e("./EventPluginRegistry"),T=e("./ReactBrowserEventEmitter"),S=e("./ReactComponentBrowserEnvironment"),O=e("./ReactDOMButton"),_=e("./ReactDOMComponentFlags"),M=e("./ReactDOMComponentTree"),D=e("./ReactDOMInput"),N=e("./ReactDOMOption"),R=e("./ReactDOMSelect"),A=e("./ReactDOMTextarea"),j=(e("./ReactInstrumentation"),e("./ReactMultiChild")),I=e("./ReactServerRenderingTransaction"),L=(e("fbjs/lib/emptyFunction"),e("./escapeTextContentForBrowser")),F=(e("fbjs/lib/invariant"),e("./isEventSupported"),e("fbjs/lib/keyOf")),U=(e("fbjs/lib/shallowEqual"),e("./validateDOMNesting"),e("fbjs/lib/warning"),_),B=P.deleteListener,Y=M.getNodeFromInstance,V=T.listenTo,H=C.registrationNameModules,W={string:!0,number:!0},z=F({style:null}),G=F({__html:null}),q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},X=11,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Z={listing:!0,pre:!0,textarea:!0},$=g({menuitem:!0},Q),J=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ee={},te={}.hasOwnProperty,ne=1;f.displayName="ReactDOMComponent",f.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=ne++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var o=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(u,this);break;case"button":o=O.getHostProps(this,o,t);break;case"input":D.mountWrapper(this,o,t),o=D.getHostProps(this,o),e.getReactMountReady().enqueue(u,this);break;case"option":N.mountWrapper(this,o,t),o=N.getHostProps(this,o);break;case"select":R.mountWrapper(this,o,t),o=R.getHostProps(this,o),e.getReactMountReady().enqueue(u,this);break;case"textarea":A.mountWrapper(this,o,t),o=A.getHostProps(this,o),e.getReactMountReady().enqueue(u,this)}i(this,o);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===k.svg&&"foreignobject"===d)&&(a=k.html),a===k.html&&("svg"===this._tag?a=k.svg:"math"===this._tag&&(a=k.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var h,f=n._ownerDocument;if(a===k.html)if("script"===this._tag){var m=f.createElement("div"),g=this._currentElement.type;m.innerHTML="<"+g+">",h=m.removeChild(m.firstChild)}else h=o.is?f.createElement(this._currentElement.type,o.is):f.createElement(this._currentElement.type);else h=f.createElementNS(a,this._currentElement.type);M.precacheNode(this,h),this._flags|=U.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(h),this._updateDOMProperties(null,o,e);var v=b(h);this._createInitialChildren(e,o,r,v),p=v}else{var x=this._createOpenTagMarkupAndPutListeners(e,o),E=this._createContentMarkup(e,o,r);p=!E&&Q[this._tag]?x+"/>":x+">"+E+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(l,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(H.hasOwnProperty(r))i&&o(this,r,i,e);else{r===z&&(i&&(i=this._previousStyleCopy=g({},t.style)),i=v.createMarkupForStyles(i,this));var a=null;null!=this._tag&&h(this._tag,t)?q.hasOwnProperty(r)||(a=w.createMarkupForCustomAttribute(r,i)):a=w.createMarkupForProperty(r,i),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",i=t.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var o=W[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)r=L(o);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return Z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var i=t.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&b.queueHTML(r,i.__html);else{var o=W[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)b.queueText(r,o);else if(null!=a)for(var s=this.mountChildren(a,e,n),l=0;l"},receiveComponent:function(){},getHostNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),t.exports=a},{"./DOMLazyTree":85,"./ReactDOMComponentTree":118,"object-assign":68}],122:[function(e,t,n){"use strict";function r(e){return i.createFactory(e)}var i=e("./ReactElement"),o=e("fbjs/lib/mapObject"),a=o({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=a},{"./ReactElement":138,"./ReactElementValidator":139,"fbjs/lib/mapObject":58}],123:[function(e,t,n){"use strict";var r={useCreateElement:!0};t.exports=r},{}],124:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),i=e("./ReactDOMComponentTree"),o={dangerouslyProcessChildrenUpdates:function(e,t){var n=i.getNodeFromInstance(e);r.processUpdates(n,t)}};t.exports=o},{"./DOMChildrenOperations":84,"./ReactDOMComponentTree":118}],125:[function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function i(e){var t=this._currentElement.props,n=c.executeOnChange(t,e);d.asap(r,this);var i=t.name;if("radio"===t.type&&null!=i){for(var a=u.getNodeFromInstance(this),s=a;s.parentNode;)s=s.parentNode;for(var l=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),p=0;pt.end?(n=t.end,r=t.start):(n=t.start,r=t.end),i.moveToElementText(e),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[u()].length,i=Math.min(t.start,r),o=void 0===t.end?i:Math.min(t.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=c(e,i),l=c(e,o);if(s&&l){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(d),n.extend(l.node,l.offset)):(d.setEnd(l.node,l.offset),n.addRange(d))}}}var l=e("fbjs/lib/ExecutionEnvironment"),c=e("./getNodeForCharacterOffset"),u=e("./getTextContentAccessor"),d=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?i:o,setOffsets:d?a:s};t.exports=p},{"./getNodeForCharacterOffset":204,"./getTextContentAccessor":205,"fbjs/lib/ExecutionEnvironment":39}],131:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),i=e("object-assign"),o=e("./DOMChildrenOperations"),a=e("./DOMLazyTree"),s=e("./ReactDOMComponentTree"),l=(e("./ReactInstrumentation"),e("./escapeTextContentForBrowser")),c=(e("fbjs/lib/invariant"),e("./validateDOMNesting"),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=null,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});i(c.prototype,{mountComponent:function(e,t,n,r){var i=n._idCounter++,o=" react-text: "+i+" ",c=" /react-text ";if(this._domID=i,this._hostParent=t,e.useCreateElement){var u=n._ownerDocument,d=u.createComment(o),p=u.createComment(c),h=a(u.createDocumentFragment());return a.queueChild(h,a(d)),this._stringText&&a.queueChild(h,a(u.createTextNode(this._stringText))),a.queueChild(h,a(p)),s.precacheNode(this,d),this._closingComment=p,h}var f=l(this._stringText);return e.renderToStaticMarkup?f:""+f+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();o.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=c},{"./DOMChildrenOperations":84,"./DOMLazyTree":85,"./ReactDOMComponentTree":118,"./ReactInstrumentation":150,"./escapeTextContentForBrowser":194,"./reactProdInvariant":212,"./validateDOMNesting":218,"fbjs/lib/invariant":53,"object-assign":68}],132:[function(e,t,n){"use strict";function r(){this._rootNodeID&&d.updateWrapper(this)}function i(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(r,this),n}var o=e("./reactProdInvariant"),a=e("object-assign"),s=e("./DisabledInputUtils"),l=e("./LinkedValueUtils"),c=e("./ReactDOMComponentTree"),u=e("./ReactUpdates"),d=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?o("91"):void 0;var n=a({},s.getHostProps(e,t),{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=l.getValue(t),r=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a?o("92"):void 0,Array.isArray(s)&&(s.length<=1?void 0:o("93"),s=s[0]),a=""+s),null==a&&(a=""),r=a}e._wrapperState={initialValue:""+r,listeners:null,onChange:i.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e),r=l.getValue(t);if(null!=r){var i=""+r;i!==n.value&&(n.value=i),null==t.defaultValue&&(n.defaultValue=i)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=c.getNodeFromInstance(e);t.value=t.textContent}});t.exports=d},{"./DisabledInputUtils":91,"./LinkedValueUtils":101,"./ReactDOMComponentTree":118,"./ReactUpdates":168,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63,"object-assign":68}],133:[function(e,t,n){"use strict";function r(e,t){"_hostNode"in e?void 0:l("33"),"_hostNode"in t?void 0:l("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var i=0,o=t;o;o=o._hostParent)i++;for(;n-i>0;)e=e._hostParent,n--;for(;i-n>0;)t=t._hostParent,i--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function i(e,t){"_hostNode"in e?void 0:l("35"),"_hostNode"in t?void 0:l("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function o(e){return"_hostNode"in e?void 0:l("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var i;for(i=r.length;i-- >0;)t(r[i],!1,n);for(i=0;i0;)n(l[c],!1,o)}var l=e("./reactProdInvariant");e("fbjs/lib/invariant");t.exports={isAncestor:i,getLowestCommonAncestor:r,getParentInstance:o,traverseTwoPhase:a,traverseEnterLeave:s}},{"./reactProdInvariant":212,"fbjs/lib/invariant":53}],134:[function(e,t,n){"use strict";function r(e,t){null!=t&&"string"==typeof t.type&&(t.type.indexOf("-")>=0||t.props.is||o(e,t))}var i,o=(e("./DOMProperty"),e("./EventPluginRegistry"),e("./ReactComponentTreeDevtool"),e("fbjs/lib/warning"),function(e,t){var n=[];for(var r in t.props){var o=i(t.type,r,e);o||n.push(r)}n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length||n.length>1}),a={onBeforeMountComponent:function(e,t){r(e,t)},onBeforeUpdateComponent:function(e,t){r(e,t)}};t.exports=a},{"./DOMProperty":87,"./EventPluginRegistry":95,"./ReactComponentTreeDevtool":111,"fbjs/lib/warning":63}],135:[function(e,t,n){"use strict";function r(e,t,n,r,i,o){y.forEach(function(a){try{a[e]&&a[e](t,n,r,i,o)}catch(t){v[e]=!0}})}function i(){f.purgeUnmountedComponents(),h.clearHistory()}function o(e){return e.reduce(function(e,t){var n=f.getOwnerID(t),r=f.getParentID(t);return e[t]={displayName:f.getDisplayName(t),text:f.getText(t),updateCount:f.getUpdateCount(t),childIDs:f.getChildIDs(t),ownerID:n||f.getOwnerID(r),parentID:r},e},{})}function a(){var e=P,t=E||[],n=h.getHistory();if(0===w)return P=null,E=null,void i();if(t.length||n.length){var r=f.getRegisteredIDs();k.push({duration:g()-e,measurements:t||[],operations:n||[],treeSnapshot:o(r)})}i(),P=g(),E=[]}function s(e){}function l(e,t){0!==w&&(T=g(),S=0,C=e,O=t)}function c(e,t){0!==w&&(b&&E.push({timerType:t,instanceID:e,duration:g()-T-S}),T=null,S=null,C=null,O=null)}function u(){var e={startTime:T,nestedFlushStartTime:g(),debugID:C,timerType:O};x.push(e),T=null,S=null,C=null,O=null}function d(){var e=x.pop(),t=e.startTime,n=e.nestedFlushStartTime,r=e.debugID,i=e.timerType,o=g()-n;T=t,S+=o,C=r,O=i}var p=e("./ReactInvalidSetStateWarningDevTool"),h=e("./ReactHostOperationHistoryDevtool"),f=e("./ReactComponentTreeDevtool"),m=e("fbjs/lib/ExecutionEnvironment"),g=e("fbjs/lib/performanceNow"),y=(e("fbjs/lib/warning"),[]),v={},b=!1,k=[],x=[],w=0,E=null,P=null,C=null,T=null,S=null,O=null,_={addDevtool:function(e){y.push(e)},removeDevtool:function(e){for(var t=0;t1){for(var g=Array(m),y=0;y1){for(var b=Array(v),k=0;k.")}return t}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=h.uniqueKey||(h.uniqueKey={}),r=i(t);if(!n[r]){n[r]=!0;var o="";e&&e._owner&&e._owner!==l.current&&(o=" It was passed a child from "+e._owner.getName()+".")}}}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n/,o=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return o.test(e)?e:e.replace(i," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(e);return i===n}};t.exports=a},{"./adler32":189}],153:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=b(L,null,null,null,null,null,t);if(e){var l=x.get(e);a=l._processChildContext(l._context)}else a=T;var u=d(n);if(u){var h=u._currentElement,f=h.props;if(_(f,t)){var m=u._renderedComponent.getPublicInstance(),g=r&&function(){r.call(m)};return F._updateRootComponent(u,s,a,n,g),m}F.unmountComponentAtNode(n)}var y=i(n),v=y&&!!o(y),k=c(n),w=v&&!u&&!k,E=F._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){!e||e.nodeType!==N&&e.nodeType!==R&&e.nodeType!==A?p("40"):void 0;var t=d(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(D);return!1}return delete j[t._instance.rootID],C.batchedUpdates(l,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,o,a){if(!t||t.nodeType!==N&&t.nodeType!==R&&t.nodeType!==A?p("41"):void 0,o){var s=i(t);if(w.canReuseMarkup(e,s))return void g.precacheNode(n,s);var l=s.getAttribute(w.CHECKSUM_ATTR_NAME);s.removeAttribute(w.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(w.CHECKSUM_ATTR_NAME,l);var u=e,d=r(u,c),f=" (client) "+u.substring(d-20,d+20)+"\n (server) "+c.substring(d-20,d+20);t.nodeType===R?p("42",f):void 0}if(t.nodeType===R?p("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else O(t,e),g.precacheNode(n,t.firstChild)}};t.exports=F},{"./DOMLazyTree":85,"./DOMProperty":87,"./ReactBrowserEventEmitter":104,"./ReactCurrentOwner":113,"./ReactDOMComponentTree":118,"./ReactDOMContainerInfo":119,"./ReactDOMFeatureFlags":123,"./ReactElement":138,"./ReactFeatureFlags":144,"./ReactInstanceMap":149,"./ReactInstrumentation":150,"./ReactMarkupChecksum":152,"./ReactReconciler":163,"./ReactUpdateQueue":167,"./ReactUpdates":168,"./instantiateReactComponent":207,"./reactProdInvariant":212,"./setInnerHTML":214,"./shouldUpdateReactComponent":216,"fbjs/lib/emptyObject":46,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],154:[function(e,t,n){"use strict";function r(e,t,n){return{type:p.INSERT_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function i(e,t,n){return{type:p.MOVE_EXISTING,content:null,fromIndex:e._mountIndex,fromNode:h.getHostNode(e),toIndex:n,afterNode:t}}function o(e,t){return{type:p.REMOVE_NODE,content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:p.SET_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:p.TEXT_CONTENT,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){d.processChildrenUpdates(e,t)}var u=e("./reactProdInvariant"),d=e("./ReactComponentEnvironment"),p=(e("./ReactInstanceMap"),e("./ReactInstrumentation"),e("./ReactMultiChildUpdateTypes")),h=(e("./ReactCurrentOwner"),e("./ReactReconciler")),f=e("./ReactChildReconciler"),m=(e("fbjs/lib/emptyFunction"),e("./flattenChildren")),g=(e("fbjs/lib/invariant"),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,i){var o;return o=m(t),f.updateChildren(e,o,n,r,i),o},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var i=[],o=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],l=h.mountComponent(s,t,this,this._hostContainerInfo,n); +s._mountIndex=o++,i.push(l)}return i},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&u("118");var r=[s(e)];c(this,r)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&u("118");var r=[a(e)];c(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,i={},o=this._reconcilerUpdateChildren(r,e,i,t,n);if(o||r){var a,s=null,u=0,d=0,p=null;for(a in o)if(o.hasOwnProperty(a)){var f=r&&r[a],m=o[a];f===m?(s=l(s,this.moveChild(f,p,d,u)),u=Math.max(f._mountIndex,u),f._mountIndex=d):(f&&(u=Math.max(f._mountIndex,u)),s=l(s,this._mountChildAtIndex(m,p,d,t,n))),d++,p=h.getHostNode(m)}for(a in i)i.hasOwnProperty(a)&&(s=l(s,this._unmountChild(r[a],i[a])));s&&c(this,s),this._renderedChildren=o}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),symbol:o("symbol"),any:a(),arrayOf:s,element:l(),instanceOf:c,node:h(),objectOf:d,oneOf:u,oneOfType:p,shape:f};t.exports=C},{"./ReactElement":138,"./ReactPropTypeLocationNames":159,"./getIteratorFn":203,"fbjs/lib/emptyFunction":45}],162:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=e}var i=e("object-assign"),o=e("./CallbackQueue"),a=e("./PooledClass"),s=e("./ReactBrowserEventEmitter"),l=e("./ReactInputSelection"),c=(e("./ReactInstrumentation"),e("./Transaction")),u=e("./ReactUpdateQueue"),d={initialize:l.getSelectionInformation,close:l.restoreSelection},p={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},f=[d,p,h],m={getTransactionWrappers:function(){return f},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return u},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};i(r.prototype,c.Mixin,m),a.addPoolingTo(r),t.exports=r},{"./CallbackQueue":82,"./PooledClass":102,"./ReactBrowserEventEmitter":104,"./ReactInputSelection":148,"./ReactInstrumentation":150,"./ReactUpdateQueue":167,"./Transaction":186,"object-assign":68}],163:[function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var i=e("./reactProdInvariant"),o=e("./ReactRef"),a=(e("./ReactInstrumentation"),e("fbjs/lib/invariant"),{mountComponent:function(e,t,n,i,o){var a=e.mountComponent(t,n,i,o);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),a},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){o.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||i!==e._context){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){return e._updateBatchNumber!==n?void(null!=e._updateBatchNumber&&e._updateBatchNumber!==n+1?i("121",n,e._updateBatchNumber):void 0):void e.performUpdateIfNecessary(t)}});t.exports=a},{"./ReactInstrumentation":150,"./ReactRef":164,"./reactProdInvariant":212,"fbjs/lib/invariant":53}],164:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):o.addComponentAsRefTo(t,e,n)}function i(e,t,n){"function"==typeof e?e(null):o.removeComponentAsRefFrom(t,e,n)}var o=e("./ReactOwner"),a={};a.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,r=null===t||t===!1;return n||r||t._owner!==e._owner||t.ref!==e.ref},a.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&i(n,e,t._owner)}},t.exports=a},{"./ReactOwner":158}],165:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new s(this)}var i=e("object-assign"),o=e("./PooledClass"),a=e("./Transaction"),s=(e("./ReactInstrumentation"),e("./ReactServerUpdateQueue")),l=[],c={enqueue:function(){}},u={getTransactionWrappers:function(){return l},getReactMountReady:function(){return c},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};i(r.prototype,a.Mixin,u),o.addPoolingTo(r),t.exports=r},{"./PooledClass":102,"./ReactInstrumentation":150,"./ReactServerUpdateQueue":166,"./Transaction":186,"object-assign":68}],166:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){}var o=e("./ReactUpdateQueue"),a=(e("./Transaction"),e("fbjs/lib/warning"),function(){function e(t){r(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&o.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?o.enqueueForceUpdate(e):i(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?o.enqueueReplaceState(e,t):i(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?o.enqueueSetState(e,t):i(e,"setState")},e}());t.exports=a},{"./ReactUpdateQueue":167,"./Transaction":186,"fbjs/lib/warning":63}],167:[function(e,t,n){"use strict";function r(e){l.enqueueUpdate(e)}function i(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function o(e,t){var n=s.get(e);return n?n:null}var a=e("./reactProdInvariant"),s=(e("./ReactCurrentOwner"),e("./ReactInstanceMap")),l=(e("./ReactInstrumentation"),e("./ReactUpdates")),c=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var i=o(e);return i?(i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],void r(i)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,i(e)):void 0}});t.exports=c},{"./ReactCurrentOwner":113,"./ReactInstanceMap":149,"./ReactInstrumentation":150,"./ReactUpdates":168,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],168:[function(e,t,n){"use strict";function r(){S.ReactReconcileTransaction&&x?void 0:u("123")}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function o(e,t,n,i,o,a){r(),x.batchedUpdates(e,t,n,i,o,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length?u("124",t,y.length):void 0,y.sort(a),v++;for(var n=0;n]/;t.exports=i},{}],195:[function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=a.get(e);return t?(t=s(t),t?o.getNodeFromInstance(t):null):void("function"==typeof e.render?i("44"):i("45",Object.keys(e)))}var i=e("./reactProdInvariant"),o=(e("./ReactCurrentOwner"),e("./ReactDOMComponentTree")),a=e("./ReactInstanceMap"),s=e("./getHostComponentFromComposite");e("fbjs/lib/invariant"),e("fbjs/lib/warning");t.exports=r},{"./ReactCurrentOwner":113,"./ReactDOMComponentTree":118,"./ReactInstanceMap":149,"./getHostComponentFromComposite":202,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63}],196:[function(e,t,n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var i=e,o=void 0===i[n];o&&null!=t&&(i[n]=t)}}function i(e,t){if(null==e)return e;var n={};return o(e,r,n),n}var o=(e("./KeyEscapeUtils"),e("./traverseAllChildren"));e("fbjs/lib/warning");t.exports=i},{"./KeyEscapeUtils":100,"./ReactComponentTreeDevtool":111,"./traverseAllChildren":217,"fbjs/lib/warning":63}],197:[function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}t.exports=r},{}],198:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],199:[function(e,t,n){"use strict";function r(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=i(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var i=e("./getEventCharCode"),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{"./getEventCharCode":198}],200:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return!!r&&!!n[r]}function i(e){return r}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=i},{}],201:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}t.exports=r},{}],202:[function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===i.COMPOSITE;)e=e._renderedComponent;return t===i.HOST?e._renderedComponent:t===i.EMPTY?null:void 0}var i=e("./ReactNodeTypes");t.exports=r},{"./ReactNodeTypes":156}],203:[function(e,t,n){"use strict";function r(e){var t=e&&(i&&e[i]||e[o]);if("function"==typeof t)return t}var i="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=r},{}],204:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function i(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var n=r(e),o=0,a=0;n;){if(3===n.nodeType){if(a=o+n.textContent.length,o<=t&&a>=t)return{node:n,offset:t-o};o=a}n=r(i(n))}}t.exports=o},{}],205:[function(e,t,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=e("fbjs/lib/ExecutionEnvironment"),o=null;t.exports=r},{"fbjs/lib/ExecutionEnvironment":39}],206:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function i(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in l)return s[e]=t[n];return""}var o=e("fbjs/lib/ExecutionEnvironment"),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},l={};o.canUseDOM&&(l=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=i},{"fbjs/lib/ExecutionEnvironment":39}],207:[function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function i(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,t){var n;if(null===e||e===!1)n=c.create(o);else if("object"==typeof e){var s=e;!s||"function"!=typeof s.type&&"string"!=typeof s.type?a("130",null==s.type?s.type:typeof s.type,r(s._owner)):void 0,"string"==typeof s.type?n=u.createInternalComponent(s):i(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(s)}else"string"==typeof e||"number"==typeof e?n=u.createInstanceForText(e):a("131",typeof e);n._mountIndex=0,n._mountImage=null;return n}var a=e("./reactProdInvariant"),s=e("object-assign"),l=e("./ReactCompositeComponent"),c=e("./ReactEmptyComponent"),u=e("./ReactHostComponent"),d=(e("./ReactInstrumentation"),e("fbjs/lib/invariant"),e("fbjs/lib/warning"),function(e){this.construct(e)});s(d.prototype,l.Mixin,{_instantiateReactComponent:o});t.exports=o},{"./ReactCompositeComponent":112,"./ReactEmptyComponent":140,"./ReactHostComponent":145,"./ReactInstrumentation":150,"./reactProdInvariant":212,"fbjs/lib/invariant":53,"fbjs/lib/warning":63,"object-assign":68}],208:[function(e,t,n){"use strict";function r(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&i&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=e("fbjs/lib/ExecutionEnvironment");o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{"fbjs/lib/ExecutionEnvironment":39}],209:[function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!i[e.type]:"textarea"===t}var i={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],210:[function(e,t,n){"use strict";function r(e){return o.isValidElement(e)?void 0:i("23"),e}var i=e("./reactProdInvariant"),o=e("./ReactElement");e("fbjs/lib/invariant");t.exports=r},{"./ReactElement":138,"./reactProdInvariant":212,"fbjs/lib/invariant":53}],211:[function(e,t,n){"use strict";function r(e){return'"'+i(e)+'"'}var i=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":194}],212:[function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r]/,l=e("./createMicrosoftUnsafeLocalFunction"),c=l(function(e,t){if(e.namespaceURI!==o.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild.childNodes,i=0;i=n.props.listMinElements)?r[e]=t:r.splice(e,1),n.state.timeoutID&&clearTimeout(n.state.timeoutID),n.setState({timeoutID:setTimeout(function(){return n.props.onChange(r)},750),list:r})},n.fillMinElements=function(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1],n=void 0,r=void 0,i=e;if(t&&e.length0,negative:e.formattedValue<0})},e.formatted&&o.default.createElement("span",{className:"value"},e.formatted),e.denomination&&o.default.createElement("span",{className:"denomination"},e.denomination))};l.propTypes={className:i.PropTypes.string,value:i.PropTypes.number,formattedValue:i.PropTypes.number,formatted:i.PropTypes.string,denomination:i.PropTypes.string},n.default=l},{classnames:33,react:219}],237:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),a=e("../../markets/constants/market-types"),s=function(e){return o.default.createElement("div",{className:"step-1"},o.default.createElement("h1",null,"Select the type of market you want to create"),o.default.createElement("hr",null),o.default.createElement("div",{className:"market-types"},o.default.createElement("div",{className:"market-type binary"},o.default.createElement("h4",null,"A market with a YES or NO outcome"),o.default.createElement("button",{className:"button select",onClick:function(){return e.onValuesUpdated({type:a.BINARY,step:2})}},"Yes / No"),o.default.createElement("p",null,"Ask a question that has a simple YES or NO answer")),o.default.createElement("hr",null),o.default.createElement("div",{className:"market-type categorical"},o.default.createElement("h4",null,"A market with a MULTIPLE CHOICE outcome"),o.default.createElement("button",{className:"button select",onClick:function(){return e.onValuesUpdated({type:a.CATEGORICAL,step:2})}},"Multiple Choice"),o.default.createElement("p",null,"Ask a question and provide a set of multiple choice answers")),o.default.createElement("hr",null),o.default.createElement("div",{className:"market-type scalar"},o.default.createElement("h4",null,"A market with a NUMERIC outcome"),o.default.createElement("button",{className:"button select",onClick:function(){return e.onValuesUpdated({type:a.SCALAR,step:2})}},"Numeric"),o.default.createElement("p",null,"Ask a question that has an answer within a range of numbers"))),o.default.createElement("hr",null),o.default.createElement("div",{className:"important-message"},o.default.createElement("h4",null,"Important:"),o.default.createElement("p",null,"There is a 30.00 ETH bond charged to your account when you create a new market. If the outcome of your market cannot be determined (and the market cannot be expired as a result) or if your market is ruled unethical, this bond will be forfeited. If your market is expired the bond will be returned to you in full.")))};s.propTypes={onValuesUpdated:i.PropTypes.func},n.default=s},{"../../markets/constants/market-types":261,react:219}],238:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),a=e("../../common/components/input-list"),s=r(a),l=function(e){return o.default.createElement("div",{className:"categorical"},o.default.createElement("h4",null,"What are the possible answers to your question? (required)"),o.default.createElement("p",null,'All possible outcomes to your question must be covered by these answers. You can add an "any other outcome" type answer at the end to ensure everything is covered.'),o.default.createElement(s.default,{className:"categorical-list",list:e.categoricalOutcomes,errors:e.errors&&e.errors.categoricalOutcomes||[],listMinElements:e.categoricalOutcomesMinNum,listMaxElements:e.categoricalOutcomesMaxNum,itemMaxLength:e.categoricalOutcomeMaxLength,onChange:function(t){return e.onValuesUpdated({categoricalOutcomes:t})}}))};l.propTypes={categoricalOutcomes:i.PropTypes.array,errors:i.PropTypes.object,categoricalOutcomesMinNum:i.PropTypes.number,categoricalOutcomesMaxNum:i.PropTypes.number,categoricalOutcomeMaxLength:i.PropTypes.number,onValuesUpdated:i.PropTypes.func},n.default=l},{"../../common/components/input-list":233,react:219}],239:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),a=e("../../common/components/input"),s=r(a),l=function(e){return o.default.createElement("div",{className:"scalar"},o.default.createElement("h4",null,"What are the minimum and maximum values allowed when answering?"),o.default.createElement("p",null,"The answer to your question must be a number that falls between the minimum and maximum values you're about to set."),o.default.createElement("div",{className:"scalar-num min"},o.default.createElement("label",null,"Minimum"),o.default.createElement(s.default,{type:"text",value:e.scalarSmallNum,placeholder:"Minimum answer",maxLength:6,onChange:function(t){return e.onValuesUpdated({scalarSmallNum:t})}}),e.errors.scalarSmallNum&&o.default.createElement("span",{className:"error-message"},e.errors.scalarSmallNum)),o.default.createElement("div",{className:"scalar-num min"},o.default.createElement("label",null,"Maximum"),o.default.createElement(s.default,{type:"text",value:e.scalarBigNum,placeholder:"Maximum answer",maxLength:6,onChange:function(t){return e.onValuesUpdated({scalarBigNum:t})}}),e.errors.scalarBigNum&&o.default.createElement("span",{className:"error-message"},e.errors.scalarBigNum)))};l.propTypes={scalarSmallNum:i.PropTypes.string,scalarBigNum:i.PropTypes.string,onValuesUpdated:i.PropTypes.func},n.default=l},{"../../common/components/input":234,react:219}],240:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),a=e("../../markets/constants/market-types"),s=e("./create-market-form-2-categorical"),l=r(s),c=e("./create-market-form-2-scalar"),u=r(c),d=e("../../create-market/components/create-market-form-buttons"),p=r(d),h=e("../../common/components/input"),f=r(h),m=e("../../common/components/datepicker"),g=r(m),y=function(e){var t=void 0;switch(e.type){case a.CATEGORICAL:t=o.default.createElement(l.default,e);break;case a.SCALAR:t=o.default.createElement(u.default,e)}return o.default.createElement("div",{className:"step-2"},o.default.createElement("div",{className:"description"},o.default.createElement("h1",null,"What do you want to ask?"),o.default.createElement(f.default,{type:"text",value:e.description,placeholder:e.descriptionPlaceholder,maxLength:e.descriptionMaxLength,onChange:function(t){return e.onValuesUpdated({description:t})}}),e.errors.description&&o.default.createElement("span",{className:"error-message"},e.errors.description)),t,o.default.createElement("div",{className:"end-date"},o.default.createElement("h4",null,"What's the end date for your question?"),o.default.createElement(g.default,{endDate:e.endDate,onValuesUpdated:e.onValuesUpdated}),e.errors.endDate&&o.default.createElement("span",{className:"error-message"},e.errors.endDate)),o.default.createElement(p.default,{disabled:!e.isValid,onNext:function(){return e.onValuesUpdated({step:e.step+1})},onPrev:function(){return e.onValuesUpdated({step:e.step-1})}}))};y.propTypes={type:i.PropTypes.string,description:i.PropTypes.string,endDate:i.PropTypes.object,descriptionPlaceholder:i.PropTypes.string,descriptionMaxLength:i.PropTypes.number,minEndDate:i.PropTypes.object,isValid:i.PropTypes.bool,errors:i.PropTypes.object,onValuesUpdated:i.PropTypes.func},n.default=y},{"../../common/components/datepicker":231,"../../common/components/input":234,"../../create-market/components/create-market-form-buttons":244,"../../markets/constants/market-types":261,"./create-market-form-2-categorical":238,"./create-market-form-2-scalar":239,react:219}],241:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),a=e("classnames"),s=r(a),l=e("../../common/components/input-list"),c=r(l),u=e("../../create-market/components/create-market-form-buttons"),d=r(u),p=e("../../common/components/input"),h=r(p),f=function(e){return o.default.createElement("div",{className:"step-3"},o.default.createElement("h1",null,"Additional market information"),o.default.createElement("div",{className:"expiry"},o.default.createElement("h4",null,"What is the source of expiry information for your question?"),o.default.createElement("span",{className:"expiry-source-option"},o.default.createElement("input",{value:e.expirySourceTypes.generic,type:"radio",checked:e.expirySource===e.expirySourceTypes.generic,onChange:function(){return e.onValuesUpdated({expirySource:e.expirySourceTypes.generic})}}),o.default.createElement("span",null,"Outcome will be covered by local, national or international news media.")),o.default.createElement("span",{className:"expiry-source-option"},o.default.createElement("input",{value:e.expirySourceTypes.specific,type:"radio",checked:e.expirySource===e.expirySourceTypes.specific,onChange:function(){return e.onValuesUpdated({expirySource:e.expirySourceTypes.specific})}}),o.default.createElement("span",null,"Outcome will be detailed on a specific publicly available website:")),o.default.createElement("div",{className:(0,s.default)("expiry-source-url",{displayNone:e.expirySource!==e.expirySourceTypes.specific})},o.default.createElement(h.default,{type:"text",value:e.expirySourceUrl,placeholder:"http://www.boxofficemojo.com",onChange:function(t){return e.onValuesUpdated({expirySourceUrl:t})}})),(e.errors.expirySource||e.errors.expirySourceUrl)&&o.default.createElement("span",{className:"error-message"},e.errors.expirySource||e.errors.expirySourceUrl)),o.default.createElement("div",{className:"tags"},o.default.createElement("h4",null,"Add some tags to your market (optional)"),o.default.createElement("p",null,"Up to three tags can be added to categorize your market. For example: politics, sports, entertainment or technology."),o.default.createElement(c.default,{className:"tags-list",list:e.tags,errors:e.errors&&e.errors.tags,listMaxElements:e.tagsMaxNum,itemMaxLength:e.tagMaxLength,onChange:function(t){return e.onValuesUpdated({tags:t})}})),o.default.createElement("div",{className:"details-text"},o.default.createElement("h4",null,"Does your question need further explanation? (optional)"),o.default.createElement("p",null,"Your question: ",e.description),o.default.createElement(h.default,{className:"details-text-input",value:e.detailsText,isMultiline:!0,maxLength:500,placeholder:"Optional: enter a more detailed description of your market.",onChange:function(t){return e.onValuesUpdated({detailsText:t})}})),o.default.createElement(d.default,{disabled:!e.isValid,onNext:function(){return e.onValuesUpdated({step:e.step+1})},onPrev:function(){return e.onValuesUpdated({step:e.step-1})}}))};f.propTypes={expirySource:i.PropTypes.string,expirySourceUrl:i.PropTypes.string,expirySourceTypes:i.PropTypes.object,tags:i.PropTypes.array,tagsMaxNum:i.PropTypes.number,tagMaxLength:i.PropTypes.number,description:i.PropTypes.string,detailsText:i.PropTypes.string,isValid:i.PropTypes.bool,errors:i.PropTypes.object,onValuesUpdated:i.PropTypes.func},n.default=f},{"../../common/components/input":234,"../../common/components/input-list":233, +"../../create-market/components/create-market-form-buttons":244,classnames:33,react:219}],242:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t{series.name}: {point.y}
',valueDecimals:2},series:e.series};return c.default.createElement("div",{className:"price-history-chart"},c.default.createElement(h.default,{config:t}))}}]),t}(l.Component);f.propTypes={series:l.PropTypes.array},n.default=f},{"../../../utils/should-component-update-pure":286,react:219,"react-highcharts":77}],252:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0,n=t?e.userOpenOrdersSummary.openOrdersCount+" Open Orders":"No Open Orders";return o.default.createElement("div",{className:"open-orders"},o.default.createElement("h2",null,n),e.outcomes.map(function(t){return null==t.userOpenOrders||0===t.userOpenOrders.length?null:o.default.createElement(s.default,{key:t.id,id:t.id,name:t.name,userOpenOrders:t.userOpenOrders,cancelOrder:e.cancelOrder})}))};l.propTypes={userOpenOrdersSummary:o.default.PropTypes.object,outcomes:o.default.PropTypes.array,updateSelectedUserOpenOrdersGroup:o.default.PropTypes.func.isRequired,cancelOrder:o.default.PropTypes.func.isRequired,selectedUserOpenOrdersGroupID:o.default.PropTypes.string},n.default=l},{"../../open-orders/components/open-orders-group":264,react:219}],256:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&a.default.createElement(f.default,i({className:"positions-gain"},e.positionsSummary.gainPercent,{formatted:e.positionsSummary.gainPercent.rounded,formattedValue:e.positionsSummary.gainPercent.roundedValue}))),!!e.loginAccount&&!!e.loginAccount.id&&a.default.createElement(p.default,i({className:(0,l.default)("site-nav-link",c.TRANSACTIONS,{active:e.activePage===c.TRANSACTIONS},{working:e.isTransactionsWorking}),title:e.loginAccount.realEther&&"real ether: "+e.loginAccount.realEther.full},e.transactionsLink),(!e.isTransactionsWorking||e.activePage===c.TRANSACTIONS)&&a.default.createElement(f.default,i({},e.loginAccount.rep||{},{formatted:e.loginAccount.rep&&e.loginAccount.rep.rounded,formattedValue:e.loginAccount.rep&&e.loginAccount.rep.roundedValue})),(!e.isTransactionsWorking||e.activePage===c.TRANSACTIONS)&&a.default.createElement(f.default,i({},e.loginAccount.ether||{},{formatted:e.loginAccount.ether&&e.loginAccount.ether.rounded,formattedValue:e.loginAccount.ether&&e.loginAccount.ether.roundedValue})),e.isTransactionsWorking&&e.activePage!==c.TRANSACTIONS&&a.default.createElement("span",{className:"link-text"},e.transactionsTotals.title)),!e.loginAccount.id&&a.default.createElement(p.default,i({className:(0,l.default)("site-nav-link",u.AUTH_TYPES[e.activePage],{active:!!u.AUTH_TYPES[e.activePage]})},e.authLink),"Sign Up / Login"),e.loginAccount.id&&a.default.createElement(p.default,i({className:(0,l.default)("site-nav-link",c.ACCOUNT,{active:e.activePage===c.ACCOUNT})},e.accountLink),e.accountLinkText)))};m.propTypes={activePage:a.default.PropTypes.string,loginAccount:a.default.PropTypes.object,positionsSummary:a.default.PropTypes.object,transactionsTotals:a.default.PropTypes.object,isTransactionsWorking:a.default.PropTypes.bool,marketsLink:a.default.PropTypes.object,positionsLink:a.default.PropTypes.object,transactionsLink:a.default.PropTypes.object,authLink:a.default.PropTypes.object},n.default=m},{"../../auth/constants/auth-types":228,"../../common/components/value-denomination":236,"../../link/components/link":248,"../../site/constants/pages":273,classnames:33,react:219}],273:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=n.MARKETS="markets";n.MAKE="make",n.POSITIONS="positions",n.TRANSACTIONS="transactions",n.M="m",n.ACCOUNT="account",n.DEFAULT_PAGE=r},{}],274:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),a=e("../../../modules/trade/components/trade-panel-row-outcome"),s=r(a),l=e("../../../modules/trade/components/trade-panel-row-order"),c=r(l),u=function(e){for(var t=[],n=Math.max(e.outcome.orderBook.bids.length,e.outcome.orderBook.asks.length),r=1,i=r;i35&&"..."||"")),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.marketDescription},e.data.marketDescription.substring(0,100)+(e.data.marketDescription.length>100&&"..."||""))),e.type===c.BUY_SHARES?t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.shares&&!!e.shares.value&&a.default.createElement(p.default,i({className:"value-change shares"},e.shares)),!!e.etherNegative&&!!e.etherNegative.value&&a.default.createElement(p.default,i({className:"value-change ether"},e.etherNegative))):t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.sharesNegative&&!!e.sharesNegative.value&&a.default.createElement(p.default,i({className:"value-change shares"},e.sharesNegative)),!!e.ether&&!!e.ether.value&&a.default.createElement(p.default,i({className:"value-change ether"},e.ether)));break;case c.TRADE_SUMMARY:t.description=a.default.createElement("span",{className:"description"}," "),t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.shares&&!!e.shares.value&&a.default.createElement(p.default,i({className:"value-change shares"},e.shares)),!!e.ether&&!!e.ether.value&&a.default.createElement(p.default,i({className:"value-change ether"},e.ether)));break;case u.LOGIN:t.description=a.default.createElement("span",{className:"description"},"Login");break;case u.REGISTER:t.description=a.default.createElement("span",{className:"description"},"Load free beta assets");break;case c.CREATE_MARKET:t.description=a.default.createElement("span",{className:"description"},a.default.createElement("span",null,"Make"),a.default.createElement("strong",null,e.data.type),a.default.createElement("span",null,"market"),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.description},e.data.description.substring(0,100)+(e.data.description.length>100&&"..."||"")));break;case c.SUBMIT_REPORT:t.description=a.default.createElement("span",{className:"description"},a.default.createElement("span",null,"Report"),a.default.createElement("strong",null,e.data.outcome.name.substring(0,35)+(e.data.outcome.name.length>35&&"..."||"")),!!e.data.isUnethical&&a.default.createElement("strong",{className:"unethical"}," and Unethical"),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.market.description},e.data.market.description.substring(0,100)+(e.data.market.description.length>100&&"..."||"")));break;case c.GENERATE_ORDER_BOOK:t.description=a.default.createElement("span",{className:"description"},a.default.createElement("span",null,"Generate Order Book"),a.default.createElement("br",null),a.default.createElement("span",{className:"market-description",title:e.data.description},e.data.description.substring(0,100)+(e.data.description.length>100&&"..."||"")));break;default:t.description=a.default.createElement("span",{className:"description"},e.type),t.valueChange=a.default.createElement("span",{className:"value-change"},!!e.shares&&!!e.shares.value&&a.default.createElement(p.default,i({className:"value-change shares"},e.shares)),!!e.ether&&!!e.ether.value&&a.default.createElement(p.default,i({className:"value-change ether"},e.ether)))}return a.default.createElement("article",{className:(0,l.default)("transaction-item",e.className,e.status)},e.index&&a.default.createElement("span",{className:"index"},e.index+"."),t.description,t.valueChange,e.status&&a.default.createElement("div",{className:"status-and-message"},a.default.createElement("span",{className:"status"},e.status),a.default.createElement("br",null),a.default.createElement("span",{className:"message"},e.message)))};h.propTypes={className:a.default.PropTypes.string,index:a.default.PropTypes.number,type:a.default.PropTypes.string,status:a.default.PropTypes.string,data:a.default.PropTypes.object,shares:a.default.PropTypes.object,ether:a.default.PropTypes.object,asksToBuy:a.default.PropTypes.array},n.default=h},{"../../auth/constants/auth-types":228,"../../common/components/value-denomination":236,"../../transactions/constants/types":284,classnames:33,react:219}],282:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("react"),o=r(i),a=e("../../site/components/site-header"),s=r(a),l=e("../../site/components/site-footer"),c=r(l),u=e("../../transactions/components/transactions"),d=r(u),p=function(e){return o.default.createElement("main",{className:"page transactions"},o.default.createElement(s.default,e.siteHeader),o.default.createElement("header",{className:"page-header"},o.default.createElement("div",{className:"l-container"},o.default.createElement("span",{className:"big-line"},e.transactionsTotals.title))),o.default.createElement("div",{className:"page-content"},o.default.createElement("div",{className:"l-container"},o.default.createElement(d.default,{className:"transactions-content",transactions:e.transactions}))),o.default.createElement(c.default,null))};p.propTypes={className:o.default.PropTypes.string,siteHeader:o.default.PropTypes.object,transactions:o.default.PropTypes.array,transactionsTotals:o.default.PropTypes.object},n.default=p},{"../../site/components/site-footer":271,"../../site/components/site-header":272,"../../transactions/components/transactions":283,react:219}],283:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t ); diff --git a/src/modules/market/components/open-orders.jsx b/src/modules/market/components/open-orders.jsx index ea547ffe..b8a716e6 100644 --- a/src/modules/market/components/open-orders.jsx +++ b/src/modules/market/components/open-orders.jsx @@ -2,32 +2,35 @@ import React from 'react'; import OpenOrdersGroup from '../../open-orders/components/open-orders-group'; -const OpenOrders = (p) => ( -
-

Open orders

- { - p.outcomes.map(outcome => { - if (outcome.userOpenOrders.length === 0) { - return null; - } +const OpenOrders = (p) => { + const hasOpenOrders = p.userOpenOrdersSummary != null && p.userOpenOrdersSummary.openOrdersCount > 0; + const title = hasOpenOrders ? `${p.userOpenOrdersSummary.openOrdersCount} Open Orders` : 'No Open Orders'; + return ( +
+

{title}

+ { + p.outcomes.map(outcome => { + if (outcome.userOpenOrders == null || outcome.userOpenOrders.length === 0) { + return null; + } - return ( - - ); - }) - } -
-); + return ( + + ); + }) + } +
+ ); +}; OpenOrders.propTypes = { + userOpenOrdersSummary: React.PropTypes.object, outcomes: React.PropTypes.array, updateSelectedUserOpenOrdersGroup: React.PropTypes.func.isRequired, cancelOrder: React.PropTypes.func.isRequired, diff --git a/src/modules/open-orders/components/open-order.jsx b/src/modules/open-orders/components/open-order.jsx index c14cdba8..a9726283 100644 --- a/src/modules/open-orders/components/open-order.jsx +++ b/src/modules/open-orders/components/open-order.jsx @@ -10,19 +10,16 @@ import ValueDenomination from '../../common/components/value-denomination'; const OpenOrder = (p) => ( - {p.type} - - - + {p.outcomeName} - + {p.type} - + - +