From 160eb74a0b402de2624cea459de9e314510a9e21 Mon Sep 17 00:00:00 2001 From: zemlyansky Date: Thu, 8 Nov 2018 20:12:38 +0200 Subject: [PATCH] v0.9.0 --- dist/bundle.js | 2 +- package.json | 2 +- src/app.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index dbb1c7e..2498626 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1 +1 @@ -!function(){return function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){return o(e[a][1][t]||t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a0?r-4:r,d=0;d>16&255,s[l++]=e>>8&255,s[l++]=255&e;2===a&&(e=o[t.charCodeAt(d)]<<2|o[t.charCodeAt(d+1)]>>4,s[l++]=255&e);1===a&&(e=o[t.charCodeAt(d)]<<10|o[t.charCodeAt(d+1)]<<4|o[t.charCodeAt(d+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e);return s},n.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var o,i,a=[],s=e;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],2:[function(t,e,n){},{}],3:[function(t,e,n){"use strict";var r=t("base64-js"),o=t("ieee754");n.Buffer=s,n.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function a(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|f(t,e),r=a(n),o=r.write(t,e);o!==n&&(r=r.slice(0,o));return r}(t,e);if(ArrayBuffer.isView(t))return d(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer))return function(t,e,n){if(e<0||t.byteLength=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function f(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(o)return r?-1:I(t).length;e=(""+e).toLowerCase(),o=!0}}function p(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,o){var i,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var c=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var d=!0,h=0;ho&&(r=o):r=o;var i=e.length;r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(i=t[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=d}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return x(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),""},s.prototype.compare=function(t,e,n,r,o){if(B(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),l=Math.min(i,a),u=this.slice(r,o),c=t.slice(e,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return b(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return _(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function T(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;or)&&(n=r);for(var o="",i=e;in)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,n,r,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function N(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,i){return e=+e,n>>>=0,i||N(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,i){return e=+e,n>>>=0,i||N(t,0,n,8),o.write(t,e,n,r,52,8),n+8}s.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||R(t,e,this.length);for(var r=this[t],o=1,i=0;++i>>=0,e>>>=0,n||R(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},s.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);for(var r=this[t],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||A(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i>>=0,n>>>=0,r)||A(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var o=Math.pow(2,8*n-1);A(this,t,e,n,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i>0)-s&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var o=Math.pow(2,8*n-1);A(this,t,e,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||A(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return o},s.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var o=t.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(t=o)}}else"number"==typeof t&&(t&=255);if(e<0||this.length>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,r){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function B(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function W(t){return t!=t}},{"base64-js":1,ieee754:41}],4:[function(t,e,n){"use strict";n.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},o=e||{},a=t.split(i),l=o.decode||r,u=0;u=0},this._={decoder:new a,quoting:!1,commenting:!1,field:null,nextChar:null,closingQuote:0,line:[],chunks:[],rawBuf:"",buf:"",rowDelimiterMaxLength:this.options.rowDelimiter?Math.max(...this.options.rowDelimiter.map(function(t){return t.length})):void 0,lineHasError:!1,isEnded:!1},this},u.inherits(i,l.Transform),e.exports.Parser=i,i.prototype._transform=function(t,e,n){return o(()=>{var e;return t instanceof r&&(t=this._.decoder.write(t)),(e=this.__write(t,!1))?this.emit("error",e):n()})},i.prototype._flush=function(t){return t(this.__flush())},i.prototype.__flush=function(){return this.__write(this._.decoder.end(),!0)||(this._.quoting?this.error(`Quoted field not terminated at line ${this.lines+1}`):this._.line.length>0?this.__push(this._.line):void 0)},i.prototype.__push=function(t){var e,n,r,o,i,a,s,l,u,c;if(!(this._.isEnded||this.options.skip_lines_with_empty_values&&""===t.join("").trim()))if(c=null,!0!==this.options.columns){if("function"==typeof this.options.columns)return e=function(t,e){try{return[null,t.call(null,e)]}catch(t){return[t]}},[o,r]=e(this.options.columns,t),o||void(this.options.columns=r);if(!this._.line_length&&t.length>0&&(this._.line_length=this.options.columns?this.options.columns.length:t.length),1===t.length&&""===t[0])this.empty_line_count++;else if(t.length!==this._.line_length){if(!this.options.relax_column_count)return o=null!=this.options.columns?this.error(`Number of columns on line ${this.lines} does not match header`):this.error(`Number of columns is inconsistent on line ${this.lines}`);this.count++,this.skipped_line_count++}else this.count++;if(null!=this.options.columns){for(u={},a=s=0,l=t.length;s=this.options.to?(this._.isEnded=!0,this.push(null)):null}else this.options.columns=t},i.prototype.__write=function(t,e){var n,r,o,i,a,s,l,u,c,d,h,f,p,m,v,g,y,b,w,_,C,E,S,O,T,x,k,M,R,A;for(g=(t=>"function"==typeof this.is_int?this.is_int(t):this.is_int.test(t)),v=(t=>"function"==typeof this.is_float?this.is_float(t):this.is_float.test(t)),o=((t,e={})=>this.options.cast?(null==e.quoting&&(e.quoting=!!this._.closingQuote),null==e.lines&&(e.lines=this.lines),null==e.count&&(e.count=this.count),null==e.index&&(e.index=this._.line.length),null==e.header&&(e.header=!0===this.options.columns),null==e.column&&(e.column=Array.isArray(this.options.columns)?this.options.columns[e.index]:e.index),"function"==typeof this.options.cast?this.options.cast(t,e):(g(t)?t=parseInt(t):v(t)?t=parseFloat(t):this.options.cast_date&&(t=this.options.cast_date(t,e)),t)):t),b=this.options.trim||this.options.ltrim,R=this.options.trim||this.options.rtrim,t=this._.buf+t,y=t.length,l=0,0===this.lines&&65279===t.charCodeAt(0)&&l++;ly||!this._.commenting&&y-l(this.options.quote+t).substr(0,y-l)===k)||y-l<=this.options.delimiter.length&&this.options.delimiter.substr(0,y-l)===k||y-l<=this.options.escape.length&&this.options.escape.substr(0,y-l)===k)));)if(i=this._.nextChar?this._.nextChar:t.charAt(l),this._.nextChar=y>l+1?t.charAt(l+1):null,this.options.raw&&(this._.rawBuf+=i),null==this.options.rowDelimiter&&(w=l,M=null,this._.quoting||"\n"!==i&&"\r"!==i?!this._.quoting||i!==this.options.quote||"\n"!==(_=this._.nextChar)&&"\r"!==_||(M=this._.nextChar,w+=2):(M=i,w+=1),M&&("\r"===M&&"\n"===t.charAt(w)&&(M+="\n"),this.options.rowDelimiter=[M],this._.rowDelimiterMaxLength=M.length)),this._.commenting||i!==this.options.escape||(s=this.options.escape===this.options.quote,c=this._.nextChar===this.options.escape,f=this._.nextChar===this.options.quote,s&&!this._.field&&!this._.quoting||!c&&!f)){if(!this._.commenting&&i===this.options.quote){if(this._.acceptOnlyEmptyChars&&" "!==i&&"\t"!==i)return this.error("Only trimable characters are accepted after quotes");if(this._.quoting){if(h=R&&(" "===(C=this._.nextChar)||"\t"===C),r=this.options.rowDelimiter&&this.options.rowDelimiter.some(function(e){return t.substr(l+1,e.length)===e}),n=t.substr(l+1,this.options.delimiter.length)===this.options.delimiter,d=this._.nextChar===this.options.comment,null==this._.nextChar||h||r||n||d){if(null!=this._.nextChar&&h){l++,this._.quoting=!1,this._.closingQuote=this.options.quote.length,this._.acceptOnlyEmptyChars=!0;continue}l++,this._.quoting=!1,this._.closingQuote=this.options.quote.length,e&&l===y&&(this._.line.push(o(this._.field||"")),this._.field=null);continue}if(this.options.relax)this._.quoting=!1,this._.field&&(this._.field=`${this.options.quote}${this._.field}`);else if(a=this.error(`Invalid closing quote at line ${this.lines+1}; found ${JSON.stringify(this._.nextChar)} instead of delimiter ${JSON.stringify(this.options.delimiter)}`))return a}else{if(!this._.field){this._.quoting=!0,l++;continue}if(null!=this._.field&&!this.options.relax&&(a=this.error(`Invalid opening quote at line ${this.lines+1}`)))return a}}if(((p=this.options.rowDelimiter&&this.options.rowDelimiter.some(function(e){return t.substr(l,e.length)===e}))||e&&l===y-1)&&this.lines++,A=!1,this._.commenting||this._.quoting||!this.options.comment||t.substr(l,this.options.comment.length)!==this.options.comment?this._.commenting&&p&&(A=!0,this._.commenting=!1):this._.commenting=!0,u=t.substr(l,this.options.delimiter.length)===this.options.delimiter,this._.acceptOnlyEmptyChars){if(!u&&!p){if(" "===i||"\t"===i){l++;continue}return this.error("Only trimable characters are accepted after quotes")}this._.acceptOnlyEmptyChars=!1}if(this._.commenting||this._.quoting||!u&&!p)this._.commenting||this._.quoting||" "!==i&&"\t"!==i?this._.commenting?l++:(null==this._.field&&(this._.field=""),this._.field+=i,l++):(null==this._.field&&(this._.field=""),b&&!this._.field||(this._.field+=i),l++);else{if(p&&(m=this.options.rowDelimiter.filter(function(e){return t.substr(l,e.length)===e})[0].length),p&&0===this._.line.length&&null==this._.field&&(A||this.options.skip_empty_lines)){l+=m,this._.nextChar=t.charAt(l);continue}if(R&&(this._.closingQuote||(this._.field=null!=(E=this._.field)?E.trimRight():void 0)),this._.line.push(o(this._.field||"")),this._.closingQuote=0,this._.field=null,u&&!p&&(l+=this.options.delimiter.length,this._.nextChar=t.charAt(l),e&&!this._.nextChar&&(p=!0,this._.line.push(""))),p){if(!this._.lineHasError&&(a=this.__push(this._.line)))return a;this._.lineHasError&&(this._.lineHasError=!1),this._.line=[],l+=m,this._.nextChar=t.charAt(l);continue}}if(!this._.commenting&&(null!=(S=this._.field)?S.length:void 0)>this.options.max_limit_on_data_read)return Error(`Field exceeds max_limit_on_data_read setting (${this.options.max_limit_on_data_read}) ${JSON.stringify(this.options.delimiter)}`);if(!this._.commenting&&(null!=(O=this._.line)?O.length:void 0)>this.options.max_limit_on_data_read)return Error(`Row delimiter not found in the file ${JSON.stringify(this.options.rowDelimiter)}`)}else l++,i=this._.nextChar,this._.nextChar=t.charAt(l+1),null==this._.field&&(this._.field=""),this._.field+=i,this.options.raw&&(this._.rawBuf+=i),l++;if(e){if(0===y&&this.lines++,null!=this._.field&&(R&&(this._.closingQuote||(this._.field=null!=(T=this._.field)?T.trimRight():void 0)),this._.line.push(o(this._.field||"")),this._.field=null),(null!=(x=this._.field)?x.length:void 0)>this.options.max_limit_on_data_read)return Error(`Delimiter not found in the file ${JSON.stringify(this.options.delimiter)}`);if(this._.line.length>this.options.max_limit_on_data_read)return Error(`Row delimiter not found in the file ${JSON.stringify(this.options.rowDelimiter)}`)}return this._.buf=t.substr(l),null},i.prototype.error=function(t){var e;return e=Error(t),this.options.skip_lines_with_error?(this._.lineHasError||(this._.lineHasError=!0,this.emit("skip",e)),null):e},s=function(t){var e;return e=t,"object"==typeof t&&null!==t&&!Array.isArray(t)&&function(){for(;null!==Object.getPrototypeOf(e=Object.getPrototypeOf(e)););return Object.getPrototypeOf(t===e)}()}}).call(this,t("_process"),t("buffer").Buffer,t("timers").setImmediate)},{_process:70,buffer:3,stream:86,string_decoder:88,timers:89,util:92}],7:[function(t,e,n){var r,o;r=this,o=function(t){"use strict";function e(t,e){return te?1:t>=e?0:NaN}function n(t){var n;return 1===t.length&&(n=t,t=function(t,r){return e(n(t),r)}),{left:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;t(e[i],n)>0?o=i:r=i+1}return r}}}var r=n(e),o=r.right,i=r.left;function a(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var n,r,o=t.length,i=0,a=-1,l=0,u=0;if(null==e)for(;++a1)return u/(i-1)}function u(t,e){var n=l(t,e);return n?Math.sqrt(n):n}function c(t,e){var n,r,o,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o=0?(i>=g?10:i>=y?5:i>=b?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=g?10:i>=y?5:i>=b?2:1)}function _(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=g?o*=10:i>=y?o*=5:i>=b&&(o*=2),e=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function S(t,e){var n,r,o=t.length,i=-1;if(null==e){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r}function O(t){if(!(o=t.length))return[];for(var e=-1,n=S(t,T),r=new Array(n);++et?1:e>=t?0:NaN},t.deviation=u,t.extent=c,t.histogram=function(){var t=m,e=c,n=C;function r(r){var i,a,s=r.length,l=new Array(s);for(i=0;id;)h.pop(),--f;var p,m=new Array(f+1);for(i=0;i<=f;++i)(p=m[i]=[]).x0=i>0?h[i-1]:c,p.x1=i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},t.mean=function(t,e){var n,r=t.length,o=r,i=-1,a=0;if(null==e)for(;++i=0;)for(e=(r=t[o]).length;--e>=0;)n[--a]=r[e];return n},t.min=S,t.pairs=function(t,e){null==e&&(e=a);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),i=new Array(o=Math.ceil(e-t+1));++s0){for(v=g=Date.now();g-v0;)p=n(e[y][i]),m=r(e[y][a]),d[f=p*o+m][d[f].length]=e[y],d[f].k||(d[f].x=p,d[f].y=m,d[f].k=!0),g=Date.now();requestAnimationFrame(b)}else d=d.filter(function(t){return t.k}),requestAnimationFrame(w)};requestAnimationFrame(b);var w=function(){c(d)};return l}l.bins=function(t){return arguments.length?(o=t,l):o},l.indices=function(t){return arguments.length?(i=t[0],a=t[1],l):[i,a]},l.interval=function(t){return arguments.length?(s=t,l):s},l.domain=function(e){return arguments.length?(t=e,l):t},l.size=function(t){return arguments.length?(e=[t[0]/o,t[1]/o],l):e};var u=function(t){var e=+t[0],n=+t[t.length-1],r=o/(n-e),i=o-1;return function(t){return Math.max(0,Math.min(i,Math.floor(r*(t-e))))}};return l},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n):"function"==typeof define&&define.amd?define(["exports"],o):o(r.d3=r.d3||{})},{}],9:[function(t,e,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function i(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],i(n),i(r))}function a(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(r),n=1;n=0){var d=t[l-e];null===d[1]||isNaN(d[1])||(o-=d[2][0],a-=d[1],i-=d[2][1],s-=1)}c[l]=s?[t[l][0],1*a/s,[1*o/s,1*i/s]]:[t[l][0],null,[null,null]]}return c},n.default=a,e.exports=n.default},{"./bars":14}],12:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=t("./bars"),i=(r=o)&&r.__esModule?r:{default:r},a=function(){};(a.prototype=new i.default).extractSeries=function(t,e,n){for(var r,o,i,a,s=[],l=n.get("sigma"),u=n.get("logscale"),c=0;c=0&&(c-=t[i-e][2][2],d-=t[i-e][2][3]);var h=t[i][0],f=d?c/d:0;if(u)if(d){var p=f<0?0:f,m=d,v=l*Math.sqrt(p*(1-p)/m+l*l/(4*m*m)),g=1+l*l/d;r=(p+l*l/(2*d)-v)/g,o=(p+l*l/(2*d)+v)/g,s[i]=[h,100*p,[100*r,100*o]]}else s[i]=[h,0,[0,0]];else a=d?l*Math.sqrt(f*(1-f)/d):1,s[i]=[h,100*f,[100*(f-a),100*(f+a)]]}return s},n.default=a,e.exports=n.default},{"./bars":14}],14:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=r(t("./datahandler")),i=r(t("../dygraph-layout")),a=function(){o.default.call(this)};(a.prototype=new o.default).extractSeries=function(t,e,n){},a.prototype.rollingAverage=function(t,e,n){},a.prototype.onPointsCreated_=function(t,e){for(var n=0;nr&&(l=r),ui)&&(i=u),(null===o||l=0&&(i-=t[r-e][2][0],a-=t[r-e][2][1]);var s=t[r][0],l=a?i/a:0;o[r]=[s,100*l]}return o},n.default=i,e.exports=n.default},{"./datahandler":15,"./default":17}],17:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=t("./datahandler"),i=(r=o)&&r.__esModule?r:{default:r},a=function(){};(a.prototype=new i.default).extractSeries=function(t,e,n){for(var r=[],o=n.get("logscale"),i=0;ii)&&(i=r),(null===o||r=2,v=t.drawingContext;v.save(),m&&v.setLineDash&&v.setLineDash(r);var g=s._drawSeries(t,p,n,l,i,d,c,e);s._drawPointsOnLine(t,g,a,e,l),m&&v.setLineDash&&v.setLineDash([]),v.restore()},s._drawSeries=function(t,e,n,r,o,i,a,s){var l,u,c=null,d=null,h=null,f=[],p=!0,m=t.drawingContext;m.beginPath(),m.strokeStyle=s,m.lineWidth=n;for(var v=e.array_,g=e.end_,y=e.predicate_,b=e.start_;b0;n--)if(2==(s=e[n])[0]){var r=e[n-1];r[1]==s[1]&&r[2]==s[2]&&e.splice(n,1)}for(n=0;n2&&!t){var o=0;2==e[0][0]&&o++;var i=null,a=null;for(n=o;ne[a][2]&&(a=n)}}var u=e[i],c=e[a];e.splice(o,e.length-o),ia?(e.push(c),e.push(u)):e.push(u)}}}(n);for(var i=0,a=e.length;i1||s-n>1),n=s);e.push([t,o,a])};return{moveTo:function(t,e){a(2,t,e)},lineTo:function(t,e){a(1,t,e)},stroke:function(){i(!0),t.stroke()},fill:function(){i(!0),t.fill()},beginPath:function(){i(!0),t.beginPath()},closePath:function(){i(!0),t.closePath()},_count:function(){return o}}},s._fillPlotter=function(t){if(!t.singleSeriesName&&0===t.seriesIndex){for(var e=t.dygraph,n=e.getLabels().slice(1),r=n.length;r>=0;r--)e.visibility()[r]||n.splice(r,1);if(function(){for(var t=0;t=0;o--){var i=r[o];t.lineTo(i[0],i[1])}},v=d-1;v>=0;v--){var g=t.drawingContext,y=n[v];if(e.getBooleanOption("fillGraph",y)){var b=e.getNumericOption("fillAlpha",y),w=e.getBooleanOption("stepPlot",y),_=f[v],C=e.axisPropertiesForSeries(y),E=1+C.minyval*C.yscale;E<0?E=0:E>1&&(E=1),E=u.h*E+u.y;var S,O=c[v],T=o.createIterator(O,0,O.length,s._getIteratorPredicate(e.getBooleanOption("connectSeparatedPoints",y))),x=NaN,k=[-1,-1],M=o.toRGB_(_),R="rgba("+M.r+","+M.g+","+M.b+","+b+")";g.fillStyle=R,g.beginPath();var A,N=!0;(O.length>2*e.width_||a.default.FORCE_FAST_PROXY)&&(g=s._fastCanvasProxy(g));for(var P,L=[];T.hasNext;)if(P=T.next(),o.isOK(P.y)||w){if(h){if(!N&&A==P.xval)continue;var D;N=!1,A=P.xval,D=void 0===(i=p[P.canvasx])?E:l?i[0]:i,S=[P.canvasy,D],w?-1===k[0]?p[P.canvasx]=[P.canvasy,E]:p[P.canvasx]=[P.canvasy,k[0]]:p[P.canvasx]=P.canvasy}else S=isNaN(P.canvasy)&&w?[u.y+u.h,E]:[P.canvasy,E];isNaN(x)?(g.moveTo(P.canvasx,S[1]),g.lineTo(P.canvasx,S[0])):(w?(g.lineTo(P.canvasx,k[0]),g.lineTo(P.canvasx,S[0])):g.lineTo(P.canvasx,S[0]),h&&(L.push([x,k[1]]),l&&i?L.push([P.canvasx,i[1]]):L.push([P.canvasx,S[1]]))),k=S,x=P.canvasx}else m(g,x,k[1],L),L=[],x=NaN,null===P.y_stacked||isNaN(P.y_stacked)||(p[P.canvasx]=u.h*P.y_stacked+u.y);l=w,S&&P&&(m(g,P.canvasx,S[1],L),L=[]),g.fill()}}}},n.default=s,e.exports=n.default},{"./dygraph":27,"./dygraph-utils":26}],19:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Object.defineProperty(n,"__esModule",{value:!0});var i=o(t("./dygraph-tickers")),a=r(t("./dygraph-interaction-model")),s=r(t("./dygraph-canvas")),l=o(t("./dygraph-utils")),u={highlightCircleSize:3,highlightSeriesOpts:null,highlightSeriesBackgroundAlpha:.5,highlightSeriesBackgroundColor:"rgb(255, 255, 255)",labelsSeparateLines:!1,labelsShowZeroValues:!0,labelsKMB:!1,labelsKMG2:!1,showLabelsOnHighlight:!0,digitsAfterDecimal:2,maxNumberWidth:6,sigFigs:null,strokeWidth:1,strokeBorderWidth:0,strokeBorderColor:"white",axisTickSize:3,axisLabelFontSize:14,rightGap:5,showRoller:!1,xValueParser:void 0,delimiter:",",sigma:2,errorBars:!1,fractions:!1,wilsonInterval:!0,customBars:!1,fillGraph:!1,fillAlpha:.15,connectSeparatedPoints:!1,stackedGraph:!1,stackedGraphNaNFill:"all",hideOverlayOnMouseOut:!0,legend:"onmouseover",stepPlot:!1,xRangePad:0,yRangePad:null,drawAxesAtZero:!1,titleHeight:28,xLabelHeight:18,yLabelWidth:18,axisLineColor:"black",axisLineWidth:.3,gridLineWidth:.3,axisLabelWidth:50,gridLineColor:"rgb(128,128,128)",interactionModel:a.default.defaultModel,animatedZooms:!1,showRangeSelector:!1,rangeSelectorHeight:40,rangeSelectorPlotStrokeColor:"#808FAB",rangeSelectorPlotFillGradientColor:"white",rangeSelectorPlotFillColor:"#A7B1C4",rangeSelectorBackgroundStrokeColor:"gray",rangeSelectorBackgroundLineWidth:1,rangeSelectorPlotLineWidth:1.5,rangeSelectorForegroundStrokeColor:"black",rangeSelectorForegroundLineWidth:1,rangeSelectorAlpha:.6,showInRangeSelector:null,plotter:[s.default._fillPlotter,s.default._errorPlotter,s.default._linePlotter],plugins:[],axes:{x:{pixelsPerLabel:70,axisLabelWidth:60,axisLabelFormatter:l.dateAxisLabelFormatter,valueFormatter:l.dateValueFormatter,drawGrid:!0,drawAxis:!0,independentTicks:!0,ticker:i.dateTicker},y:{axisLabelWidth:50,pixelsPerLabel:30,valueFormatter:l.numberValueFormatter,axisLabelFormatter:l.numberAxisLabelFormatter,drawGrid:!0,drawAxis:!0,independentTicks:!0,ticker:i.numericTicks},y2:{axisLabelWidth:50,pixelsPerLabel:30,valueFormatter:l.numberValueFormatter,axisLabelFormatter:l.numberAxisLabelFormatter,drawAxis:!0,drawGrid:!1,independentTicks:!1,ticker:i.numericTicks}}};n.default=u,e.exports=n.default},{"./dygraph-canvas":18,"./dygraph-interaction-model":21,"./dygraph-tickers":25,"./dygraph-utils":26}],20:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=t("./dygraph"),i=(r=o)&&r.__esModule?r:{default:r},a=function(t){this.container=t};a.prototype.draw=function(t,e){this.container.innerHTML="",void 0!==this.date_graph&&this.date_graph.destroy(),this.date_graph=new i.default(this.container,t,e)},a.prototype.setSelection=function(t){var e=!1;t.length&&(e=t[0].row),this.date_graph.setSelection(e)},a.prototype.getSelection=function(){var t=[],e=this.date_graph.getSelection();if(e<0)return t;for(var n=this.date_graph.layout_.points,r=0;rn.boundedDates[1]&&(i=(o-=i-n.boundedDates[1])+n.dateRange),e.getOptionForAxis("logscale","x")?e.dateWindow_=[Math.pow(r.LOG_SCALE,o),Math.pow(r.LOG_SCALE,i)]:e.dateWindow_=[o,i],n.is2DPan)for(var a=n.dragEndY-n.dragStartY,s=0;s=10&&n.dragDirection==r.HORIZONTAL){var a=Math.min(n.dragStartX,n.dragEndX),s=Math.max(n.dragStartX,n.dragEndX);(a=Math.max(a,i.x))<(s=Math.min(s,i.x+i.w))&&e.doZoomX_(a,s),n.cancelNextDblclick=!0}else if(n.regionHeight>=10&&n.dragDirection==r.VERTICAL){var l=Math.min(n.dragStartY,n.dragEndY),u=Math.max(n.dragStartY,n.dragEndY);(l=Math.max(l,i.y))<(u=Math.min(u,i.y+i.h))&&e.doZoomY_(l,u),n.cancelNextDblclick=!0}n.dragStartX=null,n.dragStartY=null},o.startTouch=function(t,e,n){t.preventDefault(),t.touches.length>1&&(n.startTimeForDoubleTapMs=null);for(var r=[],o=0;o=2){n.initialPinchCenter={pageX:.5*(r[0].pageX+r[1].pageX),pageY:.5*(r[0].pageY+r[1].pageY),dataX:.5*(r[0].dataX+r[1].dataX),dataY:.5*(r[0].dataY+r[1].dataY)};var a=180/Math.PI*Math.atan2(n.initialPinchCenter.pageY-r[0].pageY,r[0].pageX-n.initialPinchCenter.pageX);(a=Math.abs(a))>90&&(a=90-a),n.touchDirections={x:a<67.5,y:a>22.5}}n.initialRange={x:e.xAxisRange(),y:e.yAxisRange()}},o.moveTouch=function(t,e,n){n.startTimeForDoubleTapMs=null;var r,o=[];for(r=0;r=2){var p=u[1].pageX-c.pageX;s=(o[1].pageX-a.pageX)/p;var m=u[1].pageY-c.pageY;l=(o[1].pageY-a.pageY)/m}s=Math.min(8,Math.max(.125,s)),l=Math.min(8,Math.max(.125,l));var v=!1;if(n.touchDirections.x&&(e.dateWindow_=[c.dataX-d.dataX+(n.initialRange.x[0]-c.dataX)/s,c.dataX-d.dataX+(n.initialRange.x[1]-c.dataX)/s],v=!0),n.touchDirections.y)for(r=0;r<1;r++){var g=e.axes_[r];e.attributes_.getForAxis("logscale",r)||(g.valueRange=[c.dataY-d.dataY+(n.initialRange.y[0]-c.dataY)/l,c.dataY-d.dataY+(n.initialRange.y[1]-c.dataY)/l],v=!0)}if(e.drawGraph_(!1),v&&o.length>1&&e.getFunctionOption("zoomCallback")){var y=e.xAxisRange();e.getFunctionOption("zoomCallback").call(e,y[0],y[1],e.yAxisRanges())}},o.endTouch=function(t,e,n){if(0!==t.touches.length)o.startTouch(t,e,n);else if(1==t.changedTouches.length){var r=(new Date).getTime(),i=t.changedTouches[0];n.startTimeForDoubleTapMs&&r-n.startTimeForDoubleTapMs<500&&n.doubleTapX&&Math.abs(n.doubleTapX-i.screenX)<50&&n.doubleTapY&&Math.abs(n.doubleTapY-i.screenY)<50?e.resetZoom():(n.startTimeForDoubleTapMs=r,n.doubleTapX=i.screenX,n.doubleTapY=i.screenY)}};var i=function(t,e,n){return tn?t-n:0};o.defaultModel={mousedown:function(t,e,n){if(!t.button||2!=t.button){n.initializeMouseDown(t,e,n),t.altKey||t.shiftKey?o.startPan(t,e,n):o.startZoom(t,e,n);var a=function(t){n.isZooming?function(t,e){var n=r.findPos(e.canvas_),o={left:n.x,right:n.x+e.canvas_.offsetWidth,top:n.y,bottom:n.y+e.canvas_.offsetHeight},a={x:r.pageX(t),y:r.pageY(t)},s=i(a.x,o.left,o.right),l=i(a.y,o.top,o.bottom);return Math.max(s,l)}(t,e)<100?o.moveZoom(t,e,n):null!==n.dragEndX&&(n.dragEndX=null,n.dragEndY=null,e.clearZoomRect_()):n.isPanning&&o.movePan(t,e,n)};e.addAndTrackEvent(document,"mousemove",a),e.addAndTrackEvent(document,"mouseup",function t(i){n.isZooming?null!==n.dragEndX?o.endZoom(i,e,n):o.maybeTreatMouseOpAsClick(i,e,n):n.isPanning&&o.endPan(i,e,n),r.removeEvent(document,"mousemove",a),r.removeEvent(document,"mouseup",t),n.destroy()})}},willDestroyContextMyself:!0,touchstart:function(t,e,n){o.startTouch(t,e,n)},touchmove:function(t,e,n){o.moveTouch(t,e,n)},touchend:function(t,e,n){o.endTouch(t,e,n)},dblclick:function(t,e,n){if(n.cancelNextDblclick)n.cancelNextDblclick=!1;else{var r={canvasx:n.dragEndX,canvasy:n.dragEndY,cancelable:!0};e.cascadeEvents_("dblclick",r)||t.altKey||t.shiftKey||e.resetZoom()}}},o.nonInteractiveModel_={mousedown:function(t,e,n){n.initializeMouseDown(t,e,n)},mouseup:o.maybeTreatMouseOpAsClick},o.dragIsPanInteractionModel={mousedown:function(t,e,n){n.initializeMouseDown(t,e,n),o.startPan(t,e,n)},mousemove:function(t,e,n){n.isPanning&&o.movePan(t,e,n)},mouseup:function(t,e,n){n.isPanning&&o.endPan(t,e,n)}},n.default=o,e.exports=n.default},{"./dygraph-utils":26}],22:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./dygraph-utils")),o=function(t){this.dygraph_=t,this.points=[],this.setNames=[],this.annotations=[],this.yAxes_=null,this.xTicks_=null,this.yTicks_=null};o.prototype.addDataset=function(t,e){this.points.push(e),this.setNames.push(t)},o.prototype.getPlotArea=function(){return this.area_},o.prototype.computePlotArea=function(){var t={x:0,y:0};t.w=this.dygraph_.width_-t.x-this.dygraph_.getOption("rightGap"),t.h=this.dygraph_.height_;var e={chart_div:this.dygraph_.graphDiv,reserveSpaceLeft:function(e){var n={x:t.x,y:t.y,w:e,h:t.h};return t.x+=e,t.w-=e,n},reserveSpaceRight:function(e){var n={x:t.x+t.w-e,y:t.y,w:e,h:t.h};return t.w-=e,n},reserveSpaceTop:function(e){var n={x:t.x,y:t.y,w:t.w,h:e};return t.y+=e,t.h-=e,n},reserveSpaceBottom:function(e){var n={x:t.x,y:t.y+t.h-e,w:t.w,h:e};return t.h-=e,n},chartRect:function(){return{x:t.x,y:t.y,w:t.w,h:t.h}}};this.dygraph_.cascadeEvents_("layout",e),this.area_=t},o.prototype.setAnnotations=function(t){this.annotations=[];for(var e=this.dygraph_.getOption("xValueParser")||function(t){return t},n=0;n=0&&r<1&&this.xticks.push({pos:r,label:n,has_tick:i});for(this.yticks=[],t=0;t0&&r<=1&&this.yticks.push({axis:t,pos:r,label:n,has_tick:i})},o.prototype._evaluateAnnotations=function(){var t,e={};for(t=0;t1&&i.update(this.yAxes_[1].options,l.y2||{}),i.update(this.xAxis_.options,l.x||{})}},s.prototype.get=function(t){var e=this.getGlobalUser_(t);return null!==e?e:this.getGlobalDefault_(t)},s.prototype.getGlobalUser_=function(t){return this.user_.hasOwnProperty(t)?this.user_[t]:null},s.prototype.getGlobalDefault_=function(t){return this.global_.hasOwnProperty(t)?this.global_[t]:a.default.hasOwnProperty(t)?a.default[t]:null},s.prototype.getForAxis=function(t,e){var n,r;if("number"==typeof e)r=0===(n=e)?"y":"y2";else{if("y1"==e&&(e="y"),"y"==e)n=0;else if("y2"==e)n=1;else{if("x"!=e)throw"Unknown axis "+e;n=-1}r=e}var o=-1==n?this.xAxis_:this.yAxes_[n];if(o){var i=o.options;if(i.hasOwnProperty(t))return i[t]}if("x"!==e||"logscale"!==t){var s=this.getGlobalUser_(t);if(null!==s)return s}var l=a.default.axes[r];return l.hasOwnProperty(t)?l[t]:this.getGlobalDefault_(t)},s.prototype.getForSeries=function(t,e){if(e===this.dygraph_.getHighlightSeries()&&this.highlightSeries_.hasOwnProperty(t))return this.highlightSeries_[t];if(!this.series_.hasOwnProperty(e))throw"Unknown series: "+e;var n=this.series_[e],r=n.options;return r.hasOwnProperty(t)?r[t]:this.getForAxis(t,n.yAxis)},s.prototype.numAxes=function(){return this.yAxes_.length},s.prototype.axisForSeries=function(t){return this.series_[t].yAxis},s.prototype.axisOptions=function(t){return this.yAxes_[t].options},s.prototype.seriesForAxis=function(t){return this.yAxes_[t].series},s.prototype.seriesNames=function(){return this.labels_},void 0!==r);n.default=s,e.exports=n.default}).call(this,t("_process"))},{"./dygraph-default-attrs":19,"./dygraph-options-reference":23,"./dygraph-utils":26,_process:70}],25:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./dygraph-utils"));n.numericLinearTicks=function(t,e,n,r,i,a){return o(t,e,n,function(t){return"logscale"!==t&&r(t)},i,a)};var o=function(t,e,n,o,i,a){var s,l,u,c,d=o("pixelsPerLabel"),h=[];if(a)for(s=0;s=c/4){for(var g=p;g>=f;g--){var y=m[g],b=Math.log(y/t)/Math.log(e/t)*n,w={v:y};null===v?v={tickValue:y,pixel_coord:b}:Math.abs(b-v.pixel_coord)>=d?v={tickValue:y,pixel_coord:b}:w.label="",h.push(w)}h.reverse()}}if(0===h.length){var _,C;o("labelsKMG2")?(_=[1,2,4,8,16,32,64,128,256],C=16):(_=[1,2,5,10,20,50,100],C=10);var E,S,O,T=Math.ceil(n/d),x=Math.abs(e-t)/T,k=Math.floor(Math.log(x)/Math.log(C)),M=Math.pow(C,k);for(l=0;l<_.length&&(E=M*_[l],S=Math.floor(t/E)*E,O=Math.ceil(e/E)*E,!(n/(c=Math.abs(O-S)/E)>d));l++);for(S>O&&(E*=-1),s=0;s<=c;s++)u=S+s*E,h.push({v:u})}}var R=o("axisLabelFormatter");for(s=0;s=0?y(t,e,a,r,o):[]};var i={MILLISECONDLY:0,TWO_MILLISECONDLY:1,FIVE_MILLISECONDLY:2,TEN_MILLISECONDLY:3,FIFTY_MILLISECONDLY:4,HUNDRED_MILLISECONDLY:5,FIVE_HUNDRED_MILLISECONDLY:6,SECONDLY:7,TWO_SECONDLY:8,FIVE_SECONDLY:9,TEN_SECONDLY:10,THIRTY_SECONDLY:11,MINUTELY:12,TWO_MINUTELY:13,FIVE_MINUTELY:14,TEN_MINUTELY:15,THIRTY_MINUTELY:16,HOURLY:17,TWO_HOURLY:18,SIX_HOURLY:19,DAILY:20,TWO_DAILY:21,WEEKLY:22,MONTHLY:23,QUARTERLY:24,BIANNUAL:25,ANNUAL:26,DECADAL:27,CENTENNIAL:28,NUM_GRANULARITIES:29};n.Granularity=i;var a=0,s=1,l=2,u=3,c=4,d=5,h=6,f=7,p=[];p[i.MILLISECONDLY]={datefield:h,step:1,spacing:1},p[i.TWO_MILLISECONDLY]={datefield:h,step:2,spacing:2},p[i.FIVE_MILLISECONDLY]={datefield:h,step:5,spacing:5},p[i.TEN_MILLISECONDLY]={datefield:h,step:10,spacing:10},p[i.FIFTY_MILLISECONDLY]={datefield:h,step:50,spacing:50},p[i.HUNDRED_MILLISECONDLY]={datefield:h,step:100,spacing:100},p[i.FIVE_HUNDRED_MILLISECONDLY]={datefield:h,step:500,spacing:500},p[i.SECONDLY]={datefield:d,step:1,spacing:1e3},p[i.TWO_SECONDLY]={datefield:d,step:2,spacing:2e3},p[i.FIVE_SECONDLY]={datefield:d,step:5,spacing:5e3},p[i.TEN_SECONDLY]={datefield:d,step:10,spacing:1e4},p[i.THIRTY_SECONDLY]={datefield:d,step:30,spacing:3e4},p[i.MINUTELY]={datefield:c,step:1,spacing:6e4},p[i.TWO_MINUTELY]={datefield:c,step:2,spacing:12e4},p[i.FIVE_MINUTELY]={datefield:c,step:5,spacing:3e5},p[i.TEN_MINUTELY]={datefield:c,step:10,spacing:6e5},p[i.THIRTY_MINUTELY]={datefield:c,step:30,spacing:18e5},p[i.HOURLY]={datefield:u,step:1,spacing:36e5},p[i.TWO_HOURLY]={datefield:u,step:2,spacing:72e5},p[i.SIX_HOURLY]={datefield:u,step:6,spacing:216e5},p[i.DAILY]={datefield:l,step:1,spacing:864e5},p[i.TWO_DAILY]={datefield:l,step:2,spacing:1728e5},p[i.WEEKLY]={datefield:l,step:7,spacing:6048e5},p[i.MONTHLY]={datefield:s,step:1,spacing:2629817280},p[i.QUARTERLY]={datefield:s,step:3,spacing:216e5*365.2524},p[i.BIANNUAL]={datefield:s,step:6,spacing:432e5*365.2524},p[i.ANNUAL]={datefield:a,step:1,spacing:864e5*365.2524},p[i.DECADAL]={datefield:a,step:10,spacing:315578073600},p[i.CENTENNIAL]={datefield:a,step:100,spacing:3155780736e3};var m=function(){for(var t=[],e=-39;e<=39;e++)for(var n=Math.pow(10,e),r=1;r<=9;r++){var o=n*r;t.push(o)}return t}(),v=function(t,e,n,r){for(var o=r("pixelsPerLabel"),a=0;a=o)return a}return-1},g=function(t,e,n){var r=p[n].spacing;return Math.round(1*(e-t)/r)},y=function(t,e,n,o,m){var v=o("axisLabelFormatter"),g=o("labelsUTC")?r.DateAccessorsUTC:r.DateAccessorsLocal,y=p[n].datefield,b=p[n].step,w=p[n].spacing,_=new Date(t),C=[];C[a]=g.getFullYear(_),C[s]=g.getMonth(_),C[l]=g.getDate(_),C[u]=g.getHours(_),C[c]=g.getMinutes(_),C[d]=g.getSeconds(_),C[h]=g.getMilliseconds(_);var E=C[y]%b;n==i.WEEKLY&&(E=g.getDay(_)),C[y]-=E;for(var S=y+1;S=i.DAILY||g.getHours(T)%b==0)&&O.push({v:x,label:v.call(m,T,n,o,m)}),C[y]+=b,x=(T=g.makeDate.apply(null,C)).getTime();return O};n.getDateAxis=y},{"./dygraph-utils":26}],26:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.removeEvent=function(t,e,n){t.removeEventListener(e,n,!1)},n.cancelEvent=function(t){(t=t||window.event).stopPropagation&&t.stopPropagation();t.preventDefault&&t.preventDefault();return t.cancelBubble=!0,t.cancel=!0,t.returnValue=!1,!1},n.hsvToRGB=function(t,e,n){var r,o,i;if(0===e)r=n,o=n,i=n;else{var a=Math.floor(6*t),s=6*t-a,l=n*(1-e),u=n*(1-e*s),c=n*(1-e*(1-s));switch(a){case 1:r=u,o=n,i=l;break;case 2:r=l,o=n,i=c;break;case 3:r=l,o=u,i=n;break;case 4:r=c,o=l,i=n;break;case 5:r=n,o=l,i=u;break;case 6:case 0:r=n,o=c,i=l}}return r=Math.floor(255*r+.5),o=Math.floor(255*o+.5),i=Math.floor(255*i+.5),"rgb("+r+","+o+","+i+")"},n.findPos=function(t){var e=t.getBoundingClientRect(),n=window,r=document.documentElement;return{x:e.left+(n.pageXOffset||r.scrollLeft),y:e.top+(n.pageYOffset||r.scrollTop)}},n.pageX=a,n.pageY=s,n.dragGetX_=function(t,e){return a(t)-e.px},n.dragGetY_=function(t,e){return s(t)-e.py},n.isOK=function(t){return!!t&&!isNaN(t)},n.isValidPoint=function(t,e){return!!t&&null!==t.yval&&null!==t.x&&void 0!==t.x&&null!==t.y&&void 0!==t.y&&!(isNaN(t.x)||!e&&isNaN(t.y))},n.floatFormat=l,n.zeropad=u,n.hmsString_=h,n.dateString_=f,n.round_=p,n.binarySearch=function(t,e,n,r,o){var i=!0;for(;i;){var a=t,s=e,l=n,u=r,c=o;if(i=!1,null!=u&&null!=c||(u=0,c=s.length-1),u>c)return-1;null==l&&(l=0);var d,h=function(t){return t>=0&&ta){if(l>0&&h(d=f-1)&&s[d]a)return f;t=a,e=s,n=l,r=f+1,o=c,i=!0,h=f=p=d=void 0}}},n.dateParser=function(t){var e,n;if((-1==t.search("-")||-1!=t.search("T")||-1!=t.search("Z"))&&(n=m(t))&&!isNaN(n))return n;if(-1!=t.search("-")){for(e=t.replace("-","/","g");-1!=e.search("-");)e=e.replace("-","/");n=m(e)}else 8==t.length?(e=t.substr(0,4)+"/"+t.substr(4,2)+"/"+t.substr(6,2),n=m(e)):n=m(t);n&&!isNaN(n)||console.error("Couldn't parse "+t+" as a date");return n},n.dateStrToMillis=m,n.update=function(t,e){if(null!=e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},n.updateDeep=function t(e,n){function r(t){return"object"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(null===n[o]?e[o]=null:v(n[o])?e[o]=n[o].slice():r(n[o])?e[o]=n[o]:"object"==typeof n[o]?("object"==typeof e[o]&&null!==e[o]||(e[o]={}),t(e[o],n[o])):e[o]=n[o]);return e},n.isArrayLike=v,n.isDateLike=function(t){if("object"!=typeof t||null===t||"function"!=typeof t.getTime)return!1;return!0},n.clone=function t(e){var n=[];for(var r=0;r=e||y.call(window,function(){var e=(new Date).getTime(),u=e-a;o=i;var c=(i=Math.floor(u/n))-o,d=i+c>s;d||i>=s?(t(s),r()):(0!==c&&t(i),l())})}()},n.isPixelChangingOptionList=function(t,e){var n={};if(t)for(var r=1;r=r.Granularity.DECADAL)return""+i;if(e>=r.Granularity.MONTHLY)return k[a]+" "+i;var v=3600*l+60*f+p+.001*m;if(0===v||e>=r.Granularity.DAILY)return u(s)+" "+k[a];if(er.Granularity.MINUTELY?h(l,f,p,0):h(l,f,p,m)},n.dateValueFormatter=function(t,e){return f(t,e("labelsUTC"))};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./dygraph-tickers"));n.LOG_SCALE=10;var o=Math.log(10);n.LN_TEN=o;var i=function(t){return Math.log(t)/o};n.log10=i;n.logRangeFraction=function(t,e,n){var r=i(t),o=r+n*(i(e)-r);return Math.pow(10,o)};n.DOTTED_LINE=[2,2];n.DASHED_LINE=[7,3];n.DOT_DASH_LINE=[7,2,2,2];n.HORIZONTAL=1;n.VERTICAL=2;n.getContext=function(t){return t.getContext("2d")};function a(t){return!t.pageX||t.pageX<0?0:t.pageX}function s(t){return!t.pageY||t.pageY<0?0:t.pageY}function l(t,e){var n=Math.min(Math.max(1,e||2),21);return Math.abs(t)<.001&&0!==t?t.toExponential(n-1):t.toPrecision(n)}function u(t){return t<10?"0"+t:""+t}n.addEvent=function(t,e,n){t.addEventListener(e,n,!1)};var c={getFullYear:function(t){return t.getFullYear()},getMonth:function(t){return t.getMonth()},getDate:function(t){return t.getDate()},getHours:function(t){return t.getHours()},getMinutes:function(t){return t.getMinutes()},getSeconds:function(t){return t.getSeconds()},getMilliseconds:function(t){return t.getMilliseconds()},getDay:function(t){return t.getDay()},makeDate:function(t,e,n,r,o,i,a){return new Date(t,e,n,r,o,i,a)}};n.DateAccessorsLocal=c;var d={getFullYear:function(t){return t.getUTCFullYear()},getMonth:function(t){return t.getUTCMonth()},getDate:function(t){return t.getUTCDate()},getHours:function(t){return t.getUTCHours()},getMinutes:function(t){return t.getUTCMinutes()},getSeconds:function(t){return t.getUTCSeconds()},getMilliseconds:function(t){return t.getUTCMilliseconds()},getDay:function(t){return t.getUTCDay()},makeDate:function(t,e,n,r,o,i,a){return new Date(Date.UTC(t,e,n,r,o,i,a))}};function h(t,e,n,r){var o=u(t)+":"+u(e);if(n&&(o+=":"+u(n),r)){var i=""+r;o+="."+("000"+i).substring(i.length)}return o}function f(t,e){var n=e?d:c,r=new Date(t),o=n.getFullYear(r),i=n.getMonth(r),a=n.getDate(r),s=n.getHours(r),l=n.getMinutes(r),f=n.getSeconds(r),p=n.getMilliseconds(r),m=""+o+"/"+u(i+1)+"/"+u(a);return 3600*s+60*l+f+.001*p&&(m+=" "+h(s,l,f,p)),m}function p(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}function m(t){return new Date(t).getTime()}function v(t){var e=typeof t;return("object"==e||"function"==e&&"function"==typeof t.item)&&null!==t&&"number"==typeof t.length&&3!==t.nodeType}function g(t,e,n,r){e=e||0,n=n||t.length,this.hasNext=!0,this.peek=null,this.start_=e,this.array_=t,this.predicate_=r,this.end_=Math.min(t.length,e+n),this.nextIdx_=e-1,this.next()}n.DateAccessorsUTC=d,g.prototype.next=function(){if(!this.hasNext)return null;for(var t=this.peek,e=this.nextIdx_+1,n=!1;e=Math.pow(10,i)||Math.abs(t)=0;m--,f/=u)if(h>=f){r=p(t/f,o)+c[m];break}if(s){var v=String(t.toExponential()).split("e-");2===v.length&&v[1]>=3&&v[1]<=24&&(r=v[1]%3>0?p(v[0]/_(10,v[1]%3),o):Number(v[0]).toFixed(2),r+=d[Math.floor(v[1]/3)-1])}}return r}var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},{"./dygraph-tickers":25}],27:[function(t,e,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}var s=a(t("./dygraph-layout")),l=a(t("./dygraph-canvas")),u=a(t("./dygraph-options")),c=a(t("./dygraph-interaction-model")),d=i(t("./dygraph-tickers")),h=i(t("./dygraph-utils")),f=a(t("./dygraph-default-attrs")),p=(a(t("./dygraph-options-reference")),a(t("./iframe-tarp"))),m=a(t("./datahandler/default")),v=a(t("./datahandler/bars-error")),g=a(t("./datahandler/bars-custom")),y=a(t("./datahandler/default-fractions")),b=a(t("./datahandler/bars-fractions")),w=a(t("./datahandler/bars")),_=a(t("./plugins/annotations")),C=a(t("./plugins/axes")),E=a(t("./plugins/chart-labels")),S=a(t("./plugins/grid")),O=a(t("./plugins/legend")),T=a(t("./plugins/range-selector")),x=a(t("./dygraph-gviz")),k=function(t,e,n){this.__init__(t,e,n)};k.NAME="Dygraph",k.VERSION="2.0.0",k.DEFAULT_ROLL_PERIOD=1,k.DEFAULT_WIDTH=480,k.DEFAULT_HEIGHT=320,k.ANIMATION_STEPS=12,k.ANIMATION_DURATION=200,k.Plotters=l.default._Plotters,k.addedAnnotationCSS=!1,k.prototype.__init__=function(t,e,n){if(this.is_initial_draw_=!0,this.readyFns_=[],null==n&&(n={}),n=k.copyUserAttrs_(n),"string"==typeof t&&(t=document.getElementById(t)),!t)throw new Error("Constructing dygraph with a non-existent div!");this.maindiv_=t,this.file_=e,this.rollPeriod_=n.rollPeriod||k.DEFAULT_ROLL_PERIOD,this.previousVerticalX_=-1,this.fractions_=n.fractions||!1,this.dateWindow_=n.dateWindow||null,this.annotations_=[],t.innerHTML="",""===t.style.width&&n.width&&(t.style.width=n.width+"px"),""===t.style.height&&n.height&&(t.style.height=n.height+"px"),""===t.style.height&&0===t.clientHeight&&(t.style.height=k.DEFAULT_HEIGHT+"px",""===t.style.width&&(t.style.width=k.DEFAULT_WIDTH+"px")),this.width_=t.clientWidth||n.width||0,this.height_=t.clientHeight||n.height||0,n.stackedGraph&&(n.fillGraph=!0),this.user_attrs_={},h.update(this.user_attrs_,n),this.attrs_={},h.updateDeep(this.attrs_,f.default),this.boundaryIds_=[],this.setIndexByName_={},this.datasetIndex_=[],this.registeredEvents_=[],this.eventListeners_={},this.attributes_=new u.default(this),this.createInterface_(),this.plugins_=[];for(var r=k.PLUGINS.concat(this.getOption("plugins")),o=0;o=0;o--){var i=r[o][0];if(r[o][1].call(i,n),n.propagationStopped)break}return n.defaultPrevented},k.prototype.getPluginInstance_=function(t){for(var e=0;e=0;if(null==t)return e||n;if("y"===t)return n;throw new Error("axis parameter is ["+t+"] must be null, 'x' or 'y'.")},k.prototype.toString=function(){var t=this.maindiv_;return"[Dygraph "+(t&&t.id?t.id:t)+"]"},k.prototype.attr_=function(t,e){return e?this.attributes_.getForSeries(t,e):this.attributes_.get(t)},k.prototype.getOption=function(t,e){return this.attr_(t,e)},k.prototype.getNumericOption=function(t,e){return this.getOption(t,e)},k.prototype.getStringOption=function(t,e){return this.getOption(t,e)},k.prototype.getBooleanOption=function(t,e){return this.getOption(t,e)},k.prototype.getFunctionOption=function(t,e){return this.getOption(t,e)},k.prototype.getOptionForAxis=function(t,e){return this.attributes_.getForAxis(t,e)},k.prototype.optionsViewForAxis_=function(t){var e=this;return function(n){var r=e.user_attrs_.axes;return r&&r[t]&&r[t].hasOwnProperty(n)?r[t][n]:("x"!==t||"logscale"!==n)&&(void 0!==e.user_attrs_[n]?e.user_attrs_[n]:(r=e.attrs_.axes)&&r[t]&&r[t].hasOwnProperty(n)?r[t][n]:"y"==t&&e.axes_[0].hasOwnProperty(n)?e.axes_[0][n]:"y2"==t&&e.axes_[1].hasOwnProperty(n)?e.axes_[1][n]:e.attr_(n))}},k.prototype.rollPeriod=function(){return this.rollPeriod_},k.prototype.xAxisRange=function(){return this.dateWindow_?this.dateWindow_:this.xAxisExtremes()},k.prototype.xAxisExtremes=function(){var t=this.getNumericOption("xRangePad")/this.plotter_.area.w;if(0===this.numRows())return[0-t,1+t];var e=this.rawData_[0][0],n=this.rawData_[this.rawData_.length-1][0];if(t){var r=n-e;e-=r*t,n+=r*t}return[e,n]},k.prototype.yAxisExtremes=function(){var t=this.gatherDatasets_(this.rolledSeries_,null).extremes,e=this.axes_;this.computeYAxisRanges_(t);var n=this.axes_;return this.axes_=e,n.map(function(t){return t.extremeRange})},k.prototype.yAxisRange=function(t){if(void 0===t&&(t=0),t<0||t>=this.axes_.length)return null;var e=this.axes_[t];return[e.computedValueRange[0],e.computedValueRange[1]]},k.prototype.yAxisRanges=function(){for(var t=[],e=0;ethis.rawData_.length?null:e<0||e>this.rawData_[t].length?null:this.rawData_[t][e]},k.prototype.createInterface_=function(){var t=this.maindiv_;this.graphDiv=document.createElement("div"),this.graphDiv.style.textAlign="left",this.graphDiv.style.position="relative",t.appendChild(this.graphDiv),this.canvas_=h.createCanvas(),this.canvas_.style.position="absolute",this.hidden_=this.createPlotKitCanvas_(this.canvas_),this.canvas_ctx_=h.getContext(this.canvas_),this.hidden_ctx_=h.getContext(this.hidden_),this.resizeElements_(),this.graphDiv.appendChild(this.hidden_),this.graphDiv.appendChild(this.canvas_),this.mouseEventElement_=this.createMouseEventElement_(),this.layout_=new s.default(this);var e=this;this.mouseMoveHandler_=function(t){e.mouseMove_(t)},this.mouseOutHandler_=function(t){var n=t.target||t.fromElement,r=t.relatedTarget||t.toElement;h.isNodeContainedBy(n,e.graphDiv)&&!h.isNodeContainedBy(r,e.graphDiv)&&e.mouseOut_(t)},this.addAndTrackEvent(window,"mouseout",this.mouseOutHandler_),this.addAndTrackEvent(this.mouseEventElement_,"mousemove",this.mouseMoveHandler_),this.resizeHandler_||(this.resizeHandler_=function(t){e.resize()},this.addAndTrackEvent(window,"resize",this.resizeHandler_))},k.prototype.resizeElements_=function(){this.graphDiv.style.width=this.width_+"px",this.graphDiv.style.height=this.height_+"px";var t=this.getNumericOption("pixelRatio"),e=t||h.getContextPixelRatio(this.canvas_ctx_);this.canvas_.width=this.width_*e,this.canvas_.height=this.height_*e,this.canvas_.style.width=this.width_+"px",this.canvas_.style.height=this.height_+"px",1!==e&&this.canvas_ctx_.scale(e,e);var n=t||h.getContextPixelRatio(this.hidden_ctx_);this.hidden_.width=this.width_*n,this.hidden_.height=this.height_*n,this.hidden_.style.width=this.width_+"px",this.hidden_.style.height=this.height_+"px",1!==n&&this.hidden_ctx_.scale(n,n)},k.prototype.destroy=function(){this.canvas_ctx_.restore(),this.hidden_ctx_.restore();for(var t=this.plugins_.length-1;t>=0;t--){var e=this.plugins_.pop();e.plugin.destroy&&e.plugin.destroy()}this.removeTrackedEvents_(),h.removeEvent(window,"mouseout",this.mouseOutHandler_),h.removeEvent(this.mouseEventElement_,"mousemove",this.mouseMoveHandler_),h.removeEvent(window,"resize",this.resizeHandler_),this.resizeHandler_=null,function t(e){for(;e.hasChildNodes();)t(e.firstChild),e.removeChild(e.firstChild)}(this.maindiv_);var n=function(t){for(var e in t)"object"==typeof t[e]&&(t[e]=null)};n(this.layout_),n(this.plotter_),n(this)},k.prototype.createPlotKitCanvas_=function(t){var e=h.createCanvas();return e.style.position="absolute",e.style.top=t.style.top,e.style.left=t.style.left,e.width=this.width_,e.height=this.height_,e.style.width=this.width_+"px",e.style.height=this.height_+"px",e},k.prototype.createMouseEventElement_=function(){return this.canvas_},k.prototype.setColors_=function(){var t=this.getLabels(),e=t.length-1;this.colors_=[],this.colorsMap_={};for(var n=this.getNumericOption("colorSaturation")||1,r=this.getNumericOption("colorValue")||.5,o=Math.ceil(e/2),i=this.getOption("colors"),a=this.visibility(),s=0;s=0;--c)for(var d=this.layout_.points[c],f=0;f=s.length)){var l=s[a];if(h.isValidPoint(l)){var u=l.canvasy;if(t>l.canvasx&&a+10)u+=(t-l.canvasx)/d*(c.canvasy-l.canvasy)}else if(t0){var d,f=s[a-1];if(h.isValidPoint(f))if((d=l.canvasx-f.canvasx)>0)u+=(l.canvasx-t)/d*(f.canvasy-l.canvasy)}(0===i||u=0){var i=0,a=this.attr_("labels");for(e=1;ei&&(i=s)}var l=this.previousVerticalX_;n.clearRect(l-i-1,0,2*i+2,this.height_)}if(this.selPoints_.length>0){var u=this.selPoints_[0].canvasx;for(n.save(),e=0;e=0){t!=this.lastRow_&&(r=!0),this.lastRow_=t;for(var o=0;o=0&&a=0&&(r=!0),this.lastRow_=-1;return this.selPoints_.length?this.lastx_=this.selPoints_[0].xval:this.lastx_=-1,void 0!==e&&(this.highlightSet_!==e&&(r=!0),this.highlightSet_=e),void 0!==n&&(this.lockedSet_=n),r&&this.updateSelection_(void 0),r},k.prototype.mouseOut_=function(t){this.getFunctionOption("unhighlightCallback")&&this.getFunctionOption("unhighlightCallback").call(this,t),this.getBooleanOption("hideOverlayOnMouseOut")&&!this.lockedSet_&&this.clearSelection()},k.prototype.clearSelection=function(){this.cascadeEvents_("deselect",{}),this.lockedSet_=!1,this.fadeLevel?this.animateSelection_(-1):(this.canvas_ctx_.clearRect(0,0,this.width_,this.height_),this.fadeLevel=0,this.selPoints_=[],this.lastx_=-1,this.lastRow_=-1,this.highlightSet_=null)},k.prototype.getSelection=function(){if(!this.selPoints_||this.selPoints_.length<1)return-1;for(var t=0;t1&&(n=this.dataHandler_.rollingAverage(n,this.rollPeriod_,this.attributes_)),this.rolledSeries_.push(n)}this.drawGraph_();var r=new Date;this.drawingTimeMs_=r-t},k.PointType=void 0,k.stackPoints_=function(t,e,n,r){for(var o=null,i=null,a=null,s=-1,l=function(e){if(!(s>=e))for(var n=e;nn[1]&&(n[1]=f),f=1;n--)if(this.visibility()[n-1]){if(e){s=t[n];var h=e[0],f=e[1];for(o=null,i=null,r=0;r=h&&null===o&&(o=r),s[r][0]<=f&&(i=r);null===o&&(o=0);for(var p=o,m=!0;m&&p>0;)m=null===s[--p][1];null===i&&(i=s.length-1);var v=i;for(m=!0;m&&v0;){this.readyFns_.pop()(this)}},k.prototype.computeYAxes_=function(){var t,e,n;for(this.axes_=[],t=0;t0&&(g=0),y<0&&(y=0)),g==1/0&&(g=0),y==-1/0&&(y=1),0===(n=y-g)&&(0!==y?n=Math.abs(y):(y=1,n=1));var w=y,_=g;e&&(c?(w=y+o*n,_=g):((_=g-o*n)<0&&g>=0&&(_=0),(w=y+o*n)>0&&y<=0&&(w=0))),u.extremeRange=[_,w]}if(u.valueRange){var C=a(u.valueRange[0])?u.extremeRange[0]:u.valueRange[0],E=a(u.valueRange[1])?u.extremeRange[1]:u.valueRange[1];u.computedValueRange=[C,E]}else u.computedValueRange=u.extremeRange;if(!e)if(c){C=u.computedValueRange[0],E=u.computedValueRange[1];var S=o/(2*o-1),O=(o-1)/(2*o-1);u.computedValueRange[0]=h.logRangeFraction(C,E,S),u.computedValueRange[1]=h.logRangeFraction(C,E,O)}else C=u.computedValueRange[0],n=(E=u.computedValueRange[1])-C,u.computedValueRange[0]=C-n*o,u.computedValueRange[1]=E+n*o;if(f){u.independentTicks=f;var T=(x=this.optionsViewForAxis_("y"+(l?"2":"")))("ticker");u.ticks=T(u.computedValueRange[0],u.computedValueRange[1],this.plotter_.area.h,x,this),i||(i=u)}}if(void 0===i)throw'Configuration Error: At least one axis has to have the "independentTicks" option activated.';for(l=0;l0&&"e"!=t[n-1]&&"E"!=t[n-1]||t.indexOf("/")>=0||isNaN(parseFloat(t))?e=!0:8==t.length&&t>"19700101"&&t<"20371231"&&(e=!0),this.setXAxisOptions_(e)},k.prototype.setXAxisOptions_=function(t){t?(this.attrs_.xValueParser=h.dateParser,this.attrs_.axes.x.valueFormatter=h.dateValueFormatter,this.attrs_.axes.x.ticker=d.dateTicker,this.attrs_.axes.x.axisLabelFormatter=h.dateAxisLabelFormatter):(this.attrs_.xValueParser=function(t){return parseFloat(t)},this.attrs_.axes.x.valueFormatter=function(t){return t},this.attrs_.axes.x.ticker=d.numericTicks,this.attrs_.axes.x.axisLabelFormatter=this.attrs_.axes.x.valueFormatter)},k.prototype.parseCSV_=function(t){var e,n,r=[],o=h.detectLineDelimiter(t),i=t.split(o||"\n"),a=this.getStringOption("delimiter");-1==i[0].indexOf(a)&&i[0].indexOf("\t")>=0&&(a="\t");var s=0;"labels"in this.user_attrs_||(s=1,this.attrs_.labels=i[0].split(a),this.attributes_.reparseSeries());for(var l,u=!1,c=this.attr_("labels").length,d=!1,f=s;f0&&v[0]0;)e=String.fromCharCode(65+(t-1)%26)+e.toLowerCase(),t=Math.floor((t-1)/26);return e},n=t.getNumberOfColumns(),r=t.getNumberOfRows(),o=t.getColumnType(0);if("date"==o||"datetime"==o)this.attrs_.xValueParser=h.dateParser,this.attrs_.axes.x.valueFormatter=h.dateValueFormatter,this.attrs_.axes.x.ticker=d.dateTicker,this.attrs_.axes.x.axisLabelFormatter=h.dateAxisLabelFormatter;else{if("number"!=o)throw new Error("only 'date', 'datetime' and 'number' types are supported for column 1 of DataTable input (Got '"+o+"')");this.attrs_.xValueParser=function(t){return parseFloat(t)},this.attrs_.axes.x.valueFormatter=function(t){return t},this.attrs_.axes.x.ticker=d.numericTicks,this.attrs_.axes.x.axisLabelFormatter=this.attrs_.axes.x.valueFormatter}var i,a,s=[],l={},u=!1;for(i=1;i0&&y[0]0&&this.setAnnotations(g,!0),this.attributes_.reparseSeries()},k.prototype.cascadeDataDidUpdateEvent_=function(){this.cascadeEvents_("dataDidUpdate",{})},k.prototype.start_=function(){var t=this.file_;if("function"==typeof t&&(t=t()),h.isArrayLike(t))this.rawData_=this.parseArray_(t),this.cascadeDataDidUpdateEvent_(),this.predraw_();else if("object"==typeof t&&"function"==typeof t.getColumnRange)this.parseDataTable_(t),this.cascadeDataDidUpdateEvent_(),this.predraw_();else if("string"==typeof t){if(h.detectLineDelimiter(t))this.loadedEvent_(t);else{var e;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var n=this;e.onreadystatechange=function(){4==e.readyState&&(200!==e.status&&0!==e.status||n.loadedEvent_(e.responseText))},e.open("GET",t,!0),e.send(null)}}else console.error("Unknown data format: "+typeof t)},k.prototype.updateOptions=function(t,e){void 0===e&&(e=!1);var n=t.file,r=k.copyUserAttrs_(t);"rollPeriod"in r&&(this.rollPeriod_=r.rollPeriod),"dateWindow"in r&&(this.dateWindow_=r.dateWindow);var o=h.isPixelChangingOptionList(this.attr_("labels"),r);h.updateDeep(this.user_attrs_,r),this.attributes_.reparseSeries(),n?(this.cascadeEvents_("dataWillUpdate",{}),this.file_=n,e||this.start_()):e||(o?this.predraw_():this.renderGraph_(!1))},k.copyUserAttrs_=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&"file"!=n&&t.hasOwnProperty(n)&&(e[n]=t[n]);return e},k.prototype.resize=function(t,e){if(!this.resize_lock){this.resize_lock=!0,null===t!=(null===e)&&(console.warn("Dygraph.resize() should be called with zero parameters or two non-NULL parameters. Pretending it was zero."),t=e=null);var n=this.width_,r=this.height_;t?(this.maindiv_.style.width=t+"px",this.maindiv_.style.height=e+"px",this.width_=t,this.height_=e):(this.width_=this.maindiv_.clientWidth,this.height_=this.maindiv_.clientHeight),n==this.width_&&r==this.height_||(this.resizeElements_(),this.predraw_()),this.resize_lock=!1}},k.prototype.adjustRoll=function(t){this.rollPeriod_=t,this.predraw_()},k.prototype.visibility=function(){for(this.getOption("visibility")||(this.attrs_.visibility=[]);this.getOption("visibility").length=n.length?console.warn("Invalid series number in setVisibility: "+o):n[o]=t[o]);else for(o=0;o=n.length?console.warn("Invalid series number in setVisibility: "+o):n[o]=t[o]:t[o]<0||t[o]>=n.length?console.warn("Invalid series number in setVisibility: "+t[o]):n[t[o]]=e;this.predraw_()},k.prototype.size=function(){return{width:this.width_,height:this.height_}},k.prototype.setAnnotations=function(t,e){this.annotations_=t,this.layout_?(this.layout_.setAnnotations(this.annotations_),e||this.predraw_()):console.warn("Tried to setAnnotations before dygraph was ready. Try setting them in a ready() block. See dygraphs.com/tests/annotation.html")},k.prototype.annotations=function(){return this.annotations_},k.prototype.getLabels=function(){var t=this.attr_("labels");return t?t.slice():null},k.prototype.indexFromSetName=function(t){return this.setIndexByName_[t]},k.prototype.getRowForX=function(t){for(var e=0,n=this.numRows()-1;e<=n;){var r=n+e>>1,o=this.getValue(r,0);if(ot)n=r-1;else{if(e==r)return r;n=r}}return null},k.prototype.ready=function(t){this.is_initial_draw_?this.readyFns_.push(t):t.call(this,this)},k.prototype.addAndTrackEvent=function(t,e,n){h.addEvent(t,e,n),this.registeredEvents_.push({elem:t,type:e,fn:n})},k.prototype.removeTrackedEvents_=function(){if(this.registeredEvents_)for(var t=0;ti.x+i.w||l.canvasyi.y+i.h)){var u=l.annotation,c=6;u.hasOwnProperty("tickHeight")&&(c=u.tickHeight);var d=document.createElement("div");d.style.fontSize=e.getOption("axisLabelFontSize")+"px";var h="dygraph-annotation";u.hasOwnProperty("icon")||(h+=" dygraphDefaultAnnotation dygraph-default-annotation"),u.hasOwnProperty("cssClass")&&(h+=" "+u.cssClass),d.className=h;var f=u.hasOwnProperty("width")?u.width:16,p=u.hasOwnProperty("height")?u.height:16;if(u.hasOwnProperty("icon")){var m=document.createElement("img");m.src=u.icon,m.width=f,m.height=p,d.appendChild(m)}else l.annotation.hasOwnProperty("shortText")&&d.appendChild(document.createTextNode(l.annotation.shortText));var v=l.canvasx-f/2;d.style.left=v+"px";var g=0;if(u.attachAtBottom){var y=i.y+i.h-p-c;a[v]?y-=a[v]:a[v]=0,a[v]+=c+p,g=y}else g=l.canvasy-p-c;d.style.top=g+"px",d.style.width=f+"px",d.style.height=p+"px",d.title=l.annotation.text,d.style.color=e.colorsMap_[l.name],d.style.borderColor=e.colorsMap_[l.name],u.div=d,e.addAndTrackEvent(d,"click",o("clickHandler","annotationClickHandler",l)),e.addAndTrackEvent(d,"mouseover",o("mouseOverHandler","annotationMouseOverHandler",l)),e.addAndTrackEvent(d,"mouseout",o("mouseOutHandler","annotationMouseOutHandler",l)),e.addAndTrackEvent(d,"dblclick",o("dblClickHandler","annotationDblClickHandler",l)),r.appendChild(d),this.annotations_.push(d);var b=t.drawingContext;if(b.save(),b.strokeStyle=u.hasOwnProperty("tickColor")?u.tickColor:e.colorsMap_[l.name],b.lineWidth=u.hasOwnProperty("tickWidth")?u.tickWidth:e.getOption("strokeWidth"),b.beginPath(),u.attachAtBottom){y=g+p;b.moveTo(l.canvasx,y),b.lineTo(l.canvasx,y+c)}else b.moveTo(l.canvasx,l.canvasy),b.lineTo(l.canvasx,l.canvasy-2-c);b.closePath(),b.stroke(),b.restore()}}},r.prototype.destroy=function(){this.detachLabels()},n.default=r,e.exports=n.default},{}],30:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../dygraph-utils")),o=function(){this.xlabels_=[],this.ylabels_=[]};o.prototype.toString=function(){return"Axes Plugin"},o.prototype.activate=function(t){return{layout:this.layout,clearChart:this.clearChart,willDrawChart:this.willDrawChart}},o.prototype.layout=function(t){var e,n=t.dygraph;if(n.getOptionForAxis("drawAxis","y")){var r=n.getOptionForAxis("axisLabelWidth","y")+2*n.getOptionForAxis("axisTickSize","y");t.reserveSpaceLeft(r)}n.getOptionForAxis("drawAxis","x")&&(e=n.getOption("xAxisHeight")?n.getOption("xAxisHeight"):n.getOptionForAxis("axisLabelFontSize","x")+2*n.getOptionForAxis("axisTickSize","x"),t.reserveSpaceBottom(e));if(2==n.numAxes()){if(n.getOptionForAxis("drawAxis","y2")){r=n.getOptionForAxis("axisLabelWidth","y2")+2*n.getOptionForAxis("axisTickSize","y2");t.reserveSpaceRight(r)}}else n.numAxes()>2&&n.error("Only two y-axes are supported at this time. (Trying to use "+n.numAxes()+")")},o.prototype.detachLabels=function(){function t(t){for(var e=0;e0){var g=n.numAxes(),y=[v("y"),v("y2")];p.yticks.forEach(function(t){if(void 0!==t.label){i=m.x;var n="y1",r=y[0];1==t.axis&&(i=m.x+m.w,-1,n="y2",r=y[1]);var s=r("axisLabelFontSize");a=m.y+t.pos*m.h,o=f(t.label,"y",2==g?n:null);var u=a-s/2;u<0&&(u=0),u+s+3>c?o.style.bottom="0":o.style.top=u+"px",0===t.axis?(o.style.left=m.x-r("axisLabelWidth")-r("axisTickSize")+"px",o.style.textAlign="right"):1==t.axis&&(o.style.left=m.x+m.w+r("axisTickSize")+"px",o.style.textAlign="left"),o.style.width=r("axisLabelWidth")+"px",l.appendChild(o),e.ylabels_.push(o)}});var b=this.ylabels_[0],w=n.getOptionForAxis("axisLabelFontSize","y");parseInt(b.style.top,10)+w>c-w&&(b.style.top=parseInt(b.style.top,10)-w/2+"px")}var _;if(n.getOption("drawAxesAtZero"))((S=n.toPercentXCoord(0))>1||S<0||isNaN(S))&&(S=0),_=O(m.x+S*m.w);else _=O(m.x);s.strokeStyle=n.getOptionForAxis("axisLineColor","y"),s.lineWidth=n.getOptionForAxis("axisLineWidth","y"),s.beginPath(),s.moveTo(_,T(m.y)),s.lineTo(_,T(m.y+m.h)),s.closePath(),s.stroke(),2==n.numAxes()&&(s.strokeStyle=n.getOptionForAxis("axisLineColor","y2"),s.lineWidth=n.getOptionForAxis("axisLineWidth","y2"),s.beginPath(),s.moveTo(T(m.x+m.w),T(m.y)),s.lineTo(T(m.x+m.w),T(m.y+m.h)),s.closePath(),s.stroke())}if(n.getOptionForAxis("drawAxis","x")){if(p.xticks){var C=v("x");p.xticks.forEach(function(t){if(void 0!==t.label){i=m.x+t.pos*m.w,a=m.y+m.h,(o=f(t.label,"x")).style.textAlign="center",o.style.top=a+C("axisTickSize")+"px";var n=i-C("axisLabelWidth")/2;n+C("axisLabelWidth")>u&&(n=u-C("axisLabelWidth"),o.style.textAlign="right"),n<0&&(n=0,o.style.textAlign="left"),o.style.left=n+"px",o.style.width=C("axisLabelWidth")+"px",l.appendChild(o),e.xlabels_.push(o)}})}var E,S;if(s.strokeStyle=n.getOptionForAxis("axisLineColor","x"),s.lineWidth=n.getOptionForAxis("axisLineWidth","x"),s.beginPath(),n.getOption("drawAxesAtZero"))((S=n.toPercentYCoord(0,0))>1||S<0)&&(S=1),E=T(m.y+S*m.h);else E=T(m.y+m.h);s.moveTo(O(m.x),E),s.lineTo(O(m.x+m.w),E),s.closePath(),s.stroke()}s.restore()}function O(t){return Math.round(t)+.5}function T(t){return Math.round(t)-.5}},n.default=o,e.exports=n.default},{"../dygraph-utils":26}],31:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){this.title_div_=null,this.xlabel_div_=null,this.ylabel_div_=null,this.y2label_div_=null};r.prototype.toString=function(){return"ChartLabels Plugin"},r.prototype.activate=function(t){return{layout:this.layout,didDrawChart:this.didDrawChart}};var o=function(t){var e=document.createElement("div");return e.style.position="absolute",e.style.left=t.x+"px",e.style.top=t.y+"px",e.style.width=t.w+"px",e.style.height=t.h+"px",e};r.prototype.detachLabels_=function(){for(var t=[this.title_div_,this.xlabel_div_,this.ylabel_div_,this.y2label_div_],e=0;e=2);r=a.yticks,i.save(),r.forEach(function(t){if(t.has_tick){var r=t.axis;f[r]&&(i.save(),p[r]&&i.setLineDash&&i.setLineDash(m[r]),i.strokeStyle=d[r],i.lineWidth=h[r],e=l(s.x),n=u(s.y+t.pos*s.h),i.beginPath(),i.moveTo(e,n),i.lineTo(e+s.w,n),i.stroke(),i.restore())}}),i.restore()}if(o.getOptionForAxis("drawGrid","x")){r=a.xticks,i.save();m=o.getOptionForAxis("gridLinePattern","x");(p=m&&m.length>=2)&&i.setLineDash&&i.setLineDash(m),i.strokeStyle=o.getOptionForAxis("gridLineColor","x"),i.lineWidth=o.getOptionForAxis("gridLineWidth","x"),r.forEach(function(t){t.has_tick&&(e=l(s.x+t.pos*s.w),n=u(s.y+s.h),i.beginPath(),i.moveTo(e,n),i.lineTo(e,s.y),i.closePath(),i.stroke())}),p&&i.setLineDash&&i.setLineDash([]),i.restore()}},r.prototype.destroy=function(){},n.default=r,e.exports=n.default},{}],33:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../dygraph-utils")),o=function(){this.legend_div_=null,this.is_generated_div_=!1};o.prototype.toString=function(){return"Legend Plugin"},o.prototype.activate=function(t){var e,n=t.getOption("labelsDiv");return n&&null!==n?e="string"==typeof n||n instanceof String?document.getElementById(n):n:((e=document.createElement("div")).className="dygraph-legend",t.graphDiv.appendChild(e),this.is_generated_div_=!0),this.legend_div_=e,this.one_em_width_=10,{select:this.select,deselect:this.deselect,predraw:this.predraw,didDrawChart:this.didDrawChart}};function i(t,e,n){if(!t||t.length<=1)return'
';var r,o,i,a,s=0,l=0,u=[];for(r=0;r<=t.length;r++)s+=t[r%t.length];if((a=Math.floor(n/(s-t[0])))>1){for(r=0;r';return c}o.prototype.select=function(t){var e=t.selectedX,n=t.selectedPoints,r=t.selectedRow,i=t.dygraph.getOption("legend");if("never"!==i){if("follow"===i){var a=t.dygraph.plotter_.area,s=this.legend_div_.offsetWidth,l=t.dygraph.getOptionForAxis("axisLabelWidth","y"),u=n[0].x*a.w+50,c=n[0].y*a.h-50;u+s+1>a.w&&(u=u-100-s-(l-a.x)),t.dygraph.graphDiv.appendChild(this.legend_div_),this.legend_div_.style.left=l+u+"px",this.legend_div_.style.top=c+"px"}var d=o.generateLegendHTML(t.dygraph,e,n,this.one_em_width_,r);this.legend_div_.innerHTML=d,this.legend_div_.style.display=""}else this.legend_div_.style.display="none"},o.prototype.deselect=function(t){"always"!==t.dygraph.getOption("legend")&&(this.legend_div_.style.display="none");var e=function(t){var e=document.createElement("span");e.setAttribute("style","margin: 0; padding: 0 0 0 1em; border: 0;"),t.appendChild(e);var n=e.offsetWidth;return t.removeChild(e),n}(this.legend_div_);this.one_em_width_=e;var n=o.generateLegendHTML(t.dygraph,void 0,void 0,e,null);this.legend_div_.innerHTML=n},o.prototype.didDrawChart=function(t){this.deselect(t)},o.prototype.predraw=function(t){if(this.is_generated_div_){t.dygraph.graphDiv.appendChild(this.legend_div_);var e=t.dygraph.getArea(),n=this.legend_div_.offsetWidth;this.legend_div_.style.left=e.x+e.w-n-1+"px",this.legend_div_.style.top=e.y+"px"}},o.prototype.destroy=function(){this.legend_div_=null},o.generateLegendHTML=function(t,e,n,a,s){var l,u={dygraph:t,x:e,series:[]},c={},d=t.getLabels();if(d)for(var h=1;h/g,">")),isVisible:f.visible,color:f.color};u.series.push(p),c[d[h]]=p}if(void 0!==e){var m=t.optionsViewForAxis_("x"),v=m("valueFormatter");u.xHTML=v.call(t,e,m,d[0],t,s,0);var g=[],y=t.numAxes();for(h=0;h":" "),n+=""+i.dashHTML+" "+i.labelHTML+"")}return n}n=t.xHTML+":";for(o=0;o"),n+=" "+i.labelHTML+": "+i.yHTML+""}return n},n.default=o,e.exports=n.default},{"../dygraph-utils":26}],34:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../dygraph-utils")),i=r(t("../dygraph-interaction-model")),a=r(t("../iframe-tarp")),s=function(){this.hasTouchInterface_="undefined"!=typeof TouchEvent,this.isMobileDevice_=/mobile|android/gi.test(navigator.appVersion),this.interfaceCreated_=!1};s.prototype.toString=function(){return"RangeSelector Plugin"},s.prototype.activate=function(t){return this.dygraph_=t,this.getOption_("showRangeSelector")&&this.createInterface_(),{layout:this.reserveSpace_,predraw:this.renderStaticLayer_,didDrawChart:this.renderInteractiveLayer_}},s.prototype.destroy=function(){this.bgcanvas_=null,this.fgcanvas_=null,this.leftZoomHandle_=null,this.rightZoomHandle_=null},s.prototype.getOption_=function(t,e){return this.dygraph_.getOption(t,e)},s.prototype.setDefaultOption_=function(t,e){this.dygraph_.attrs_[t]=e},s.prototype.createInterface_=function(){this.createCanvases_(),this.createZoomHandles_(),this.initInteraction_(),this.getOption_("animatedZooms")&&(console.warn("Animated zooms and range selector are not compatible; disabling animatedZooms."),this.dygraph_.updateOptions({animatedZooms:!1},!0)),this.interfaceCreated_=!0,this.addToGraph_()},s.prototype.addToGraph_=function(){var t=this.graphDiv_=this.dygraph_.graphDiv;t.appendChild(this.bgcanvas_),t.appendChild(this.fgcanvas_),t.appendChild(this.leftZoomHandle_),t.appendChild(this.rightZoomHandle_)},s.prototype.removeFromGraph_=function(){var t=this.graphDiv_;t.removeChild(this.bgcanvas_),t.removeChild(this.fgcanvas_),t.removeChild(this.leftZoomHandle_),t.removeChild(this.rightZoomHandle_),this.graphDiv_=null},s.prototype.reserveSpace_=function(t){this.getOption_("showRangeSelector")&&t.reserveSpaceBottom(this.getOption_("rangeSelectorHeight")+4)},s.prototype.renderStaticLayer_=function(){this.updateVisibility_()&&(this.resize_(),this.drawStaticLayer_())},s.prototype.renderInteractiveLayer_=function(){this.updateVisibility_()&&!this.isChangingRange_&&(this.placeZoomHandles_(),this.drawInteractiveLayer_())},s.prototype.updateVisibility_=function(){var t=this.getOption_("showRangeSelector");if(t)this.interfaceCreated_?this.graphDiv_&&this.graphDiv_.parentNode||this.addToGraph_():this.createInterface_();else if(this.graphDiv_){this.removeFromGraph_();var e=this.dygraph_;setTimeout(function(){e.width_=0,e.resize()},1)}return t},s.prototype.resize_=function(){function t(t,e,n,r){var i=r||o.getContextPixelRatio(e);t.style.top=n.y+"px",t.style.left=n.x+"px",t.width=n.w*i,t.height=n.h*i,t.style.width=n.w+"px",t.style.height=n.h+"px",1!=i&&e.scale(i,i)}var e=this.dygraph_.layout_.getPlotArea(),n=0;this.dygraph_.getOptionForAxis("drawAxis","x")&&(n=this.getOption_("xAxisHeight")||this.getOption_("axisLabelFontSize")+2*this.getOption_("axisTickSize")),this.canvasRect_={x:e.x,y:e.y+e.h+n+4,w:e.w,h:this.getOption_("rangeSelectorHeight")};var r=this.dygraph_.getNumericOption("pixelRatio");t(this.bgcanvas_,this.bgcanvas_ctx_,this.canvasRect_,r),t(this.fgcanvas_,this.fgcanvas_ctx_,this.canvasRect_,r)},s.prototype.createCanvases_=function(){this.bgcanvas_=o.createCanvas(),this.bgcanvas_.className="dygraph-rangesel-bgcanvas",this.bgcanvas_.style.position="absolute",this.bgcanvas_.style.zIndex=9,this.bgcanvas_ctx_=o.getContext(this.bgcanvas_),this.fgcanvas_=o.createCanvas(),this.fgcanvas_.className="dygraph-rangesel-fgcanvas",this.fgcanvas_.style.position="absolute",this.fgcanvas_.style.zIndex=9,this.fgcanvas_.style.cursor="default",this.fgcanvas_ctx_=o.getContext(this.fgcanvas_)},s.prototype.createZoomHandles_=function(){var t=new Image;t.className="dygraph-rangesel-zoomhandle",t.style.position="absolute",t.style.zIndex=10,t.style.visibility="hidden",t.style.cursor="col-resize",t.width=9,t.height=16,t.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAAXNSR0IArs4c6QAAAAZiS0dEANAAzwDP4Z7KegAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB9sHGw0cMqdt1UwAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAaElEQVQoz+3SsRFAQBCF4Z9WJM8KCDVwownl6YXsTmCUsyKGkZzcl7zkz3YLkypgAnreFmDEpHkIwVOMfpdi9CEEN2nGpFdwD03yEqDtOgCaun7sqSTDH32I1pQA2Pb9sZecAxc5r3IAb21d6878xsAAAAAASUVORK5CYII=",this.isMobileDevice_&&(t.width*=2,t.height*=2),this.leftZoomHandle_=t,this.rightZoomHandle_=t.cloneNode(!1)},s.prototype.initInteraction_=function(){var t,e,n,r,s,l,u,c,d,h,f,p,m,v,g=this,y=document,b=0,w=null,_=!1,C=!1,E=!this.isMobileDevice_,S=new a.default;t=function(t){var e=g.dygraph_.xAxisExtremes(),n=(e[1]-e[0])/g.canvasRect_.w;return[e[0]+(t.leftHandlePos-g.canvasRect_.x)*n,e[0]+(t.rightHandlePos-g.canvasRect_.x)*n]},e=function(t){return o.cancelEvent(t),_=!0,b=t.clientX,w=t.target?t.target:t.srcElement,"mousedown"!==t.type&&"dragstart"!==t.type||(o.addEvent(y,"mousemove",n),o.addEvent(y,"mouseup",r)),g.fgcanvas_.style.cursor="col-resize",S.cover(),!0},n=function(t){if(!_)return!1;o.cancelEvent(t);var e=t.clientX-b;if(Math.abs(e)<4)return!0;b=t.clientX;var n,r=g.getZoomHandleStatus_();w==g.leftZoomHandle_?(n=r.leftHandlePos+e,n=Math.min(n,r.rightHandlePos-w.width-3),n=Math.max(n,g.canvasRect_.x)):(n=r.rightHandlePos+e,n=Math.min(n,g.canvasRect_.x+g.canvasRect_.w),n=Math.max(n,r.leftHandlePos+w.width+3));var i=w.width/2;return w.style.left=n-i+"px",g.drawInteractiveLayer_(),E&&s(),!0},r=function(t){return!!_&&(_=!1,S.uncover(),o.removeEvent(y,"mousemove",n),o.removeEvent(y,"mouseup",r),g.fgcanvas_.style.cursor="default",E||s(),!0)},s=function(){try{var e=g.getZoomHandleStatus_();if(g.isChangingRange_=!0,e.isZoomed){var n=t(e);g.dygraph_.doZoomXDates_(n[0],n[1])}else g.dygraph_.resetZoom()}finally{g.isChangingRange_=!1}},l=function(t){var e=g.leftZoomHandle_.getBoundingClientRect(),n=e.left+e.width/2,r=(e=g.rightZoomHandle_.getBoundingClientRect()).left+e.width/2;return t.clientX>n&&t.clientX=g.canvasRect_.x+g.canvasRect_.w?r=(i=g.canvasRect_.x+g.canvasRect_.w)-a:(r+=e,i+=e);var s=g.leftZoomHandle_.width/2;return g.leftZoomHandle_.style.left=r-s+"px",g.rightZoomHandle_.style.left=i-s+"px",g.drawInteractiveLayer_(),E&&h(),!0},d=function(t){return!!C&&(C=!1,o.removeEvent(y,"mousemove",c),o.removeEvent(y,"mouseup",d),E||h(),!0)},h=function(){try{g.isChangingRange_=!0,g.dygraph_.dateWindow_=t(g.getZoomHandleStatus_()),g.dygraph_.drawGraph_(!1)}finally{g.isChangingRange_=!1}},f=function(t){if(!_&&!C){var e=l(t)?"move":"default";e!=g.fgcanvas_.style.cursor&&(g.fgcanvas_.style.cursor=e)}},p=function(t){"touchstart"==t.type&&1==t.targetTouches.length?e(t.targetTouches[0])&&o.cancelEvent(t):"touchmove"==t.type&&1==t.targetTouches.length?n(t.targetTouches[0])&&o.cancelEvent(t):r(t)},m=function(t){"touchstart"==t.type&&1==t.targetTouches.length?u(t.targetTouches[0])&&o.cancelEvent(t):"touchmove"==t.type&&1==t.targetTouches.length?c(t.targetTouches[0])&&o.cancelEvent(t):d(t)},v=function(t,e){for(var n=["touchstart","touchend","touchmove","touchcancel"],r=0;r1&&(p=h.rollingAverage(p,e.rollPeriod(),f)),d.push(p)}var m=[];for(t=0;t0)&&(w=Math.min(w,C),_=Math.max(_,C))}if(n)for(_=o.log10(_),_+=.25*_,w=o.log10(w),t=0;tthis.canvasRect_.x||n+10&&s.length>i){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else s=a[e]=n,++t._eventsCount;return t}function h(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e1&&(e=arguments[1]),e instanceof Error)throw e;var l=new Error('Unhandled "error" event. ('+e+")");throw l.context=e,l}if(!(n=a[t]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:!function(t,e,n){if(e)t.call(n);else for(var r=t.length,o=v(t,r),i=0;i=0;a--)if(n[a]===e||n[a].listener===e){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(t,e){for(var n=e,r=n+1,o=t.length;r=0;i--)this.removeListener(t,e[i]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],36:[function(t,e,n){(function(t){var r,o;r=this,o=function(){"use strict";function n(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){a(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;return e.open("HEAD",t,!1),e.send(),200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var i=function(){try{return Function("return this")()||(0,eval)("this")}catch(e){return"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof t&&t.global===t?t:this}}(),a=i.saveAs||"object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,a){var s=i.URL||i.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?o(l):r(l.href)?n(t,e,a):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){o(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,o){if(e=e||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Depricated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),e);else if(r(t))n(t,e,o);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){clikc(i)})}}:function(t,e,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return n(t,e,r);var a="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},u.readAsDataURL(t)}else{var c=i.URL||i.webkitURL,d=c.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}};e.exports=i.saveAs=a.saveAs=a},"function"==typeof define&&define.amd?define([],o):void 0!==n?o():(o(),r.FileSaver={})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){(function(r,o){var i,a;i="undefined"!=typeof self?self:this,a=function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=208)}([function(t,e,n){"use strict";e.__esModule=!0,e.HTML_CHARACTERS=void 0,e.getParent=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=t;for(;null!==o;){if(n===e){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},e.closest=a,e.closestDown=function(t,e,n){var r=[],o=t;for(;o&&(o=a(o,e,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},e.isChildOf=function(t,e){var n=t.parentNode,r=[];"string"==typeof e?r=Array.prototype.slice.call(document.querySelectorAll(e),0):r.push(e);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},e.isChildOfWebComponentTable=function(t){var e="hot-table",n=!1,r=s(t);function o(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName===e.toUpperCase()}for(;null!==r;){if(o(r)){n=!0;break}if(r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n=o(r.host))break;r=r.host}r=r.parentNode}return n},e.polymerWrap=s,e.polymerUnwrap=l,e.index=function(t){var e=0,n=t;if(n.previousSibling)for(;n=n.previousSibling;)e+=1;return e},e.overlayContainsElement=function(t,e){var n=document.querySelector(".ht_clone_"+t);return n?n.contains(e):null},e.hasClass=function(t,e){return d(t,e)},e.addClass=function(t,e){return h(t,e)},e.removeClass=function(t,e){return f(t,e)},e.removeTextNodes=function t(e,n){if(3===e.nodeType)n.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var r=e.childNodes,o=r.length-1;o>=0;o--)t(r[o],e)},e.empty=g,e.fastInnerHTML=function(t,e){y.test(e)?t.innerHTML=e:_(t,e)},e.fastInnerText=_,e.isVisible=function t(e){var n=e;for(;l(n)!==document.documentElement;){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return t(n.host.impl);if(n.host)return t(n.host);throw new Error("Lost in Web Components world")}return!1}if("none"===n.style.display)return!1;n=n.parentNode}return!0},e.offset=function(t){var e=document.documentElement,n=t,r=void 0,i=void 0,a=void 0,s=void 0;if((0,o.hasCaptionProblem)()&&n.firstChild&&"CAPTION"===n.firstChild.nodeName)return{top:(s=n.getBoundingClientRect()).top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0),left:s.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)};r=n.offsetLeft,i=n.offsetTop,a=n;for(;(n=n.offsetParent)&&n!==document.body;)r+=n.offsetLeft,i+=n.offsetTop,a=n;a&&"fixed"===a.style.position&&(r+=window.pageXOffset||e.scrollLeft,i+=window.pageYOffset||e.scrollTop);return{left:r,top:i}},e.getWindowScrollTop=C,e.getWindowScrollLeft=E,e.getScrollTop=function(t){if(t===window)return C();return t.scrollTop},e.getScrollLeft=function(t){if(t===window)return E();return t.scrollLeft},e.getScrollableElement=function(t){var e=["auto","scroll"],n=t.parentNode,r=void 0,o=void 0,i=void 0,a="",s="",l="",u="";for(;n&&n.style&&document.body!==n;){if(r=n.style.overflow,o=n.style.overflowX,i=n.style.overflowY,"scroll"===r||"scroll"===o||"scroll"===i)return n;if(window.getComputedStyle&&(a=window.getComputedStyle(n),s=a.getPropertyValue("overflow"),l=a.getPropertyValue("overflow-y"),u=a.getPropertyValue("overflow-x"),"scroll"===s||"scroll"===u||"scroll"===l))return n;if(n.clientHeight<=n.scrollHeight+1&&(-1!==e.indexOf(i)||-1!==e.indexOf(r)||-1!==e.indexOf(s)||-1!==e.indexOf(l)))return n;if(n.clientWidth<=n.scrollWidth+1&&(-1!==e.indexOf(o)||-1!==e.indexOf(r)||-1!==e.indexOf(s)||-1!==e.indexOf(u)))return n;n=n.parentNode}return window},e.getTrimmingContainer=function(t){var e=t.parentNode;for(;e&&e.style&&document.body!==e;){if("visible"!==e.style.overflow&&""!==e.style.overflow)return e;var n=S(e),r=["scroll","hidden","auto"],o=n.getPropertyValue("overflow"),i=n.getPropertyValue("overflow-y"),a=n.getPropertyValue("overflow-x");if(r.includes(o)||r.includes(i)||r.includes(a))return e;e=e.parentNode}return window},e.getStyle=function(t,e){if(!t)return;if(t===window)return"width"===e?window.innerWidth+"px":"height"===e?window.innerHeight+"px":void 0;var n,r=t.style[e];if(""!==r&&void 0!==r)return r;if(""!==(n=S(t))[e]&&void 0!==n[e])return n[e]},e.getComputedStyle=S,e.outerWidth=function(t){return t.offsetWidth},e.outerHeight=function(t){if((0,o.hasCaptionProblem)()&&t.firstChild&&"CAPTION"===t.firstChild.nodeName)return t.offsetHeight+t.firstChild.offsetHeight;return t.offsetHeight},e.innerHeight=function(t){return t.clientHeight||t.innerHeight},e.innerWidth=function(t){return t.clientWidth||t.innerWidth},e.addEvent=function(t,e,n){window.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEvent=function(t,e,n){window.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getCaretPosition=function(t){if(t.selectionStart)return t.selectionStart;if(document.selection){t.focus();var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange(),r=n.duplicate();return n.moveToBookmark(e.getBookmark()),r.setEndPoint("EndToStart",n),r.text.length}return 0},e.getSelectionEndPosition=function(t){if(t.selectionEnd)return t.selectionEnd;if(document.selection){var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange();return n.text.indexOf(e.text)+e.text.length}return 0},e.getSelectionText=function(){var t="";window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(t=document.selection.createRange().text);return t},e.setCaretPosition=function(t,e,n){void 0===n&&(n=e);if(t.setSelectionRange){t.focus();try{t.setSelectionRange(e,n)}catch(i){var r=t.parentNode,o=r.style.display;r.style.display="block",t.setSelectionRange(e,n),r.style.display=o}}else if(t.createTextRange){var i=t.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i.select()}},e.getScrollbarWidth=function(){void 0===b&&(b=function(){var t=document.createElement("div");t.style.height="200px",t.style.width="100%";var e=document.createElement("div");e.style.boxSizing="content-box",e.style.height="150px",e.style.left="0px",e.style.overflow="hidden",e.style.position="absolute",e.style.top="0px",e.style.width="200px",e.style.visibility="hidden",e.appendChild(t),(document.body||document.documentElement).appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;n==r&&(r=e.clientWidth);return(document.body||document.documentElement).removeChild(e),n-r}());return b},e.hasVerticalScrollbar=function(t){return t.offsetWidth!==t.clientWidth},e.hasHorizontalScrollbar=function(t){return t.offsetHeight!==t.clientHeight},e.setOverlayPosition=function(t,e,n){(0,r.isIE8)()||(0,r.isIE9)()?(t.style.top=n,t.style.left=e):(0,r.isSafari)()?t.style["-webkit-transform"]="translate3d("+e+","+n+",0)":t.style.transform="translate3d("+e+","+n+",0)"},e.getCssTransform=function(t){var e=void 0;if(t.style.transform&&""!==(e=t.style.transform))return["transform",e];if(t.style["-webkit-transform"]&&""!==(e=t.style["-webkit-transform"]))return["-webkit-transform",e];return-1},e.resetCssTransform=function(t){t.style.transform&&""!==t.style.transform?t.style.transform="":t.style["-webkit-transform"]&&""!==t.style["-webkit-transform"]&&(t.style["-webkit-transform"]="")},e.isInput=O,e.isOutsideInput=function(t){return O(t)&&-1==t.className.indexOf("handsontableInput")&&-1==t.className.indexOf("copyPaste")};var r=n(40),o=n(41);function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e-1||e.indexOf(r)>-1))return r;r=r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode}return null}function s(t){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(t):t}function l(t){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(t):t}var u,c=!!document.documentElement.classList,d=void 0,h=void 0,f=void 0;function p(t){var e=[];if(!t||!t.length)return e;for(var n=0;t[n];)e.push(t[n]),n+=1;return e}if(c){var m=((u=document.createElement("div")).classList.add("test","test2"),u.classList.contains("test2"));d=function(t,e){return void 0!==t.classList&&"string"==typeof e&&""!==e&&t.classList.contains(e)},h=function(t,e){var n,r=e;if("string"==typeof r&&(r=r.split(" ")),(r=p(r)).length>0)if(m)(n=t.classList).add.apply(n,i(r));else for(var o=0;r&&r[o];)t.classList.add(r[o]),o+=1},f=function(t,e){var n,r=e;if("string"==typeof r&&(r=r.split(" ")),(r=p(r)).length>0)if(m)(n=t.classList).remove.apply(n,i(r));else for(var o=0;r&&r[o];)t.classList.remove(r[o]),o+=1}}else{var v=function(t){return new RegExp("(\\s|^)"+t+"(\\s|$)")};d=function(t,e){return void 0!==t.className&&v(e).test(t.className)},h=function(t,e){var n=0,r=t.className,o=e;if("string"==typeof o&&(o=o.split(" ")),""===r)r=o.join(" ");else for(;o&&o[n];)v(o[n]).test(r)||(r+=" "+o[n]),n+=1;t.className=r},f=function(t,e){var n=0,r=t.className,o=e;for("string"==typeof o&&(o=o.split(" "));o&&o[n];)r=r.replace(v(o[n])," ").trim(),n+=1;t.className!==r&&(t.className=r)}}function g(t){for(var e=void 0;e=t.lastChild;)t.removeChild(e)}var y=e.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;var b,w=!!document.createTextNode("test").textContent;function _(t,e){var n=t.firstChild;n&&3===n.nodeType&&null===n.nextSibling?w?n.textContent=e:n.data=e:(g(t),t.appendChild(document.createTextNode(e)))}function C(){var t=window.scrollY;return void 0===t&&(t=document.documentElement.scrollTop),t}function E(){var t=window.scrollX;return void 0===t&&(t=document.documentElement.scrollLeft),t}function S(t){return t.currentStyle||document.defaultView.getComputedStyle(t)}function O(t){return t&&(["INPUT","SELECT","TEXTAREA"].indexOf(t.nodeName)>-1||"true"===t.contentEditable)}},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.duckSchema=function t(e){var n=void 0;Array.isArray(e)?n=[]:(n={},l(e,function(e,o){"__children"!==o&&(e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)?n[o]=t(e):Array.isArray(e)?e.length&&"object"===r(e[0])&&!Array.isArray(e[0])?n[o]=[t(e[0])]:n[o]=[]:n[o]=null)}));return n},e.inherit=function(t,e){return e.prototype.constructor=e,t.prototype=new e,t.prototype.constructor=t,t},e.extend=function(t,e){return l(e,function(e,n){t[n]=e}),t},e.deepExtend=function t(e,n){l(n,function(o,i){n[i]&&"object"===r(n[i])?(e[i]||(Array.isArray(n[i])?e[i]=[]:"[object Date]"===Object.prototype.toString.call(n[i])?e[i]=n[i]:e[i]={}),t(e[i],n[i])):e[i]=n[i]})},e.deepClone=a,e.clone=function(t){var e={};return l(t,function(t,n){e[n]=t}),e},e.mixin=function(t){t.MIXINS||(t.MIXINS=[]);for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:"value",r="_"+n,o=(i(e={_touched:!1},r,t),i(e,"isTouched",function(){return this._touched}),e);return Object.defineProperty(o,n,{get:function(){return this[r]},set:function(t){this._touched=!0,this[r]=t},enumerable:!0,configurable:!0}),o},e.hasOwnProperty=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var o=n(2);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return"object"===(void 0===t?"undefined":r(t))?JSON.parse(JSON.stringify(t)):t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){for(var n in t)if((!t.hasOwnProperty||t.hasOwnProperty&&Object.prototype.hasOwnProperty.call(t,n))&&!1===e(t[n],n,t))break;return t}},function(t,e,n){"use strict";function r(t,e,n,r){var o=-1,i=t,a=n;Array.isArray(t)||(i=Array.from(t));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;oe?t:e},Array.isArray(t)?t[0]:void 0)},e.arrayMin=function(t){return r(t,function(t,e){return t=e&&!1!==n(r););},e.valueAccordingPercent=function(t,e){return e=parseInt(e.toString().replace("%",""),10),e=parseInt(t*e/100,10)}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}return r(t,[{key:"addEventListener",value:function(t,e,n){var r=this,o=this.context;function i(t){n.call(this,c(o,t))}return this.context.eventListeners.push({element:t,event:e,callback:n,callbackProxy:i}),window.addEventListener?t.addEventListener(e,i,!1):t.attachEvent("on"+e,i),l+=1,function(){r.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){for(var r=this.context.eventListeners.length,o=void 0;r;)if(r-=1,(o=this.context.eventListeners[r]).event===e&&o.element===t){if(n&&n!==o.callback)continue;this.context.eventListeners.splice(r,1),o.element.removeEventListener?o.element.removeEventListener(o.event,o.callbackProxy,!1):o.element.detachEvent("on"+o.event,o.callbackProxy),l-=1}}},{key:"clearEvents",value:function(){if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var e=this.context.eventListeners[t];e&&this.removeEventListener(e.element,e.event,e.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(t,e){var n={bubbles:!0,cancelable:"mousemove"!==e,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0},r=void 0;document.createEvent?(r=document.createEvent("MouseEvents")).initMouseEvent(e,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget||document.body.parentNode):r=document.createEventObject(),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r)}}]),t}();function c(t,e){var n=void 0,r=void 0,l=void 0,c=void 0,d=void 0;e.isTargetWebComponent=!1,e.realTarget=e.target;var h=e.stopImmediatePropagation;if(e.stopImmediatePropagation=function(){h.apply(this),(0,s.stopImmediatePropagation)(this)},!u.isHotTableEnv)return e;for(d=(e=(0,o.polymerWrap)(e)).path?e.path.length:0;d;){if(d-=1,"HOT-TABLE"===e.path[d].nodeName)n=!0;else if(n&&e.path[d].shadowRoot){c=e.path[d];break}0!==d||c||(c=e.path[d])}return c||(c=e.target),e.isTargetWebComponent=!0,(0,a.isWebComponentSupportedNatively)()?e.realTarget=e.srcElement||e.toElement:((0,i.hasOwnProperty)(t,"hot")||t.isHotTableEnv||t.wtTable)&&((0,i.hasOwnProperty)(t,"hot")?r=t.hot?t.hot.view.wt.wtTable.TABLE:null:t.isHotTableEnv?r=t.view.activeWt.wtTable.TABLE.parentNode.parentNode:t.wtTable&&(r=t.wtTable.TABLE.parentNode.parentNode),l=(0,o.closest)(e.target,["HOT-TABLE"],r),e.realTarget=l&&r.querySelector("HOT-TABLE")||e.target),Object.defineProperty(e,"target",{get:function(){return(0,o.polymerWrap)(c)},enumerable:!0,configurable:!0}),e}e.default=u},function(t,e,n){"use strict";e.__esModule=!0;var r=e.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",o=(e.CONTEXTMENU_ITEMS_ROW_ABOVE=r+".insertRowAbove",e.CONTEXTMENU_ITEMS_ROW_BELOW=r+".insertRowBelow",e.CONTEXTMENU_ITEMS_INSERT_LEFT=r+".insertColumnOnTheLeft",e.CONTEXTMENU_ITEMS_INSERT_RIGHT=r+".insertColumnOnTheRight",e.CONTEXTMENU_ITEMS_REMOVE_ROW=r+".removeRow",e.CONTEXTMENU_ITEMS_REMOVE_COLUMN=r+".removeColumn",e.CONTEXTMENU_ITEMS_UNDO=r+".undo",e.CONTEXTMENU_ITEMS_REDO=r+".redo",e.CONTEXTMENU_ITEMS_READ_ONLY=r+".readOnly",e.CONTEXTMENU_ITEMS_CLEAR_COLUMN=r+".clearColumn",e.CONTEXTMENU_ITEMS_COPY=r+".copy",e.CONTEXTMENU_ITEMS_CUT=r+".cut",e.CONTEXTMENU_ITEMS_FREEZE_COLUMN=r+".freezeColumn",e.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=r+".unfreezeColumn",e.CONTEXTMENU_ITEMS_MERGE_CELLS=r+".mergeCells",e.CONTEXTMENU_ITEMS_UNMERGE_CELLS=r+".unmergeCells",e.CONTEXTMENU_ITEMS_ADD_COMMENT=r+".addComment",e.CONTEXTMENU_ITEMS_EDIT_COMMENT=r+".editComment",e.CONTEXTMENU_ITEMS_REMOVE_COMMENT=r+".removeComment",e.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=r+".readOnlyComment",e.CONTEXTMENU_ITEMS_ALIGNMENT=r+".align",e.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=r+".align.left",e.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=r+".align.center",e.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=r+".align.right",e.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=r+".align.justify",e.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=r+".align.top",e.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=r+".align.middle",e.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=r+".align.bottom",e.CONTEXTMENU_ITEMS_BORDERS=r+".borders",e.CONTEXTMENU_ITEMS_BORDERS_TOP=r+".borders.top",e.CONTEXTMENU_ITEMS_BORDERS_RIGHT=r+".borders.right",e.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=r+".borders.bottom",e.CONTEXTMENU_ITEMS_BORDERS_LEFT=r+".borders.left",e.CONTEXTMENU_ITEMS_REMOVE_BORDERS=r+".borders.remove",e.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=r+".nestedHeaders.insertChildRow",e.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=r+".nestedHeaders.detachFromParent",e.CONTEXTMENU_ITEMS_HIDE_COLUMN=r+".hideColumn",e.CONTEXTMENU_ITEMS_SHOW_COLUMN=r+".showColumn",e.CONTEXTMENU_ITEMS_HIDE_ROW=r+".hideRow",e.CONTEXTMENU_ITEMS_SHOW_ROW=r+".showRow",e.FILTERS_NAMESPACE="Filters:"),i=e.FILTERS_CONDITIONS_NAMESPACE=o+"conditions";e.FILTERS_CONDITIONS_NONE=i+".none",e.FILTERS_CONDITIONS_EMPTY=i+".isEmpty",e.FILTERS_CONDITIONS_NOT_EMPTY=i+".isNotEmpty",e.FILTERS_CONDITIONS_EQUAL=i+".isEqualTo",e.FILTERS_CONDITIONS_NOT_EQUAL=i+".isNotEqualTo",e.FILTERS_CONDITIONS_BEGINS_WITH=i+".beginsWith",e.FILTERS_CONDITIONS_ENDS_WITH=i+".endsWith",e.FILTERS_CONDITIONS_CONTAINS=i+".contains",e.FILTERS_CONDITIONS_NOT_CONTAIN=i+".doesNotContain",e.FILTERS_CONDITIONS_BY_VALUE=i+".byValue",e.FILTERS_CONDITIONS_GREATER_THAN=i+".greaterThan",e.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=i+".greaterThanOrEqualTo",e.FILTERS_CONDITIONS_LESS_THAN=i+".lessThan",e.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=i+".lessThanOrEqualTo",e.FILTERS_CONDITIONS_BETWEEN=i+".isBetween",e.FILTERS_CONDITIONS_NOT_BETWEEN=i+".isNotBetween",e.FILTERS_CONDITIONS_AFTER=i+".after",e.FILTERS_CONDITIONS_BEFORE=i+".before",e.FILTERS_CONDITIONS_TODAY=i+".today",e.FILTERS_CONDITIONS_TOMORROW=i+".tomorrow",e.FILTERS_CONDITIONS_YESTERDAY=i+".yesterday",e.FILTERS_DIVS_FILTER_BY_CONDITION=o+"labels.filterByCondition",e.FILTERS_DIVS_FILTER_BY_VALUE=o+"labels.filterByValue",e.FILTERS_LABELS_CONJUNCTION=o+"labels.conjunction",e.FILTERS_LABELS_DISJUNCTION=o+"labels.disjunction",e.FILTERS_VALUES_BLANK_CELLS=o+"values.blankCells",e.FILTERS_BUTTONS_SELECT_ALL=o+"buttons.selectAll",e.FILTERS_BUTTONS_CLEAR=o+"buttons.clear",e.FILTERS_BUTTONS_OK=o+"buttons.ok",e.FILTERS_BUTTONS_CANCEL=o+"buttons.cancel",e.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=o+"buttons.placeholder.search",e.FILTERS_BUTTONS_PLACEHOLDER_VALUE=o+"buttons.placeholder.value",e.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=o+"buttons.placeholder.secondValue"},function(t,e,n){"use strict";e.__esModule=!0,e.getPluginName=e.getRegistredPluginNames=e.getPlugin=e.registerPlugin=void 0;var r,o=n(16),i=(r=o)&&r.__esModule?r:{default:r},a=n(1),s=n(34);var l=new WeakMap;e.registerPlugin=function(t,e){var n=(0,s.toUpperCaseFirst)(t);i.default.getSingleton().add("construct",function(){l.has(this)||l.set(this,{});var t=l.get(this);t[n]||(t[n]=new e(this))}),i.default.getSingleton().add("afterDestroy",function(){if(l.has(this)){var t=l.get(this);(0,a.objectEach)(t,function(t){return t.destroy()}),l.delete(this)}})},e.getPlugin=function(t,e){if("string"!=typeof e)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,s.toUpperCaseFirst)(e);if(l.has(t)&&l.get(t)[n])return l.get(t)[n]},e.getRegistredPluginNames=function(t){return l.has(t)?Object.keys(l.get(t)):[]},e.getPluginName=function(t,e){var n=null;return l.has(t)&&(0,a.objectEach)(l.get(t),function(t,r){t===e&&(n=r)}),n}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";e.__esModule=!0;var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=(r=["\n Your license key of Handsontable Pro has expired.‌‌‌‌ \n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n "],o=["\n Your license key of Handsontable Pro has expired.‌‌‌‌ \n Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n "],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}})));e.stringify=function(t){var e=void 0;switch(void 0===t?"undefined":i(t)){case"string":case"number":e=""+t;break;case"object":e=null===t?"":t.toString();break;case"undefined":e="";break;default:e=t.toString()}return e},e.isDefined=function(t){return void 0!==t},e.isUndefined=d,e.isEmpty=h,e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e._injectProductInfo=function(t,e){t=y(t||"");var n="",r=!0,o=function(t){var e=[][f],n=e;if(t[f]!==g("Z"))return!1;for(var r="",o="B>1:r=v(t,i,i?1===o[f]?9:8:6);return n===e}(t),i=w(),s=h(t)||"trial"===t;if(s||o)if(o){var l=Math.floor((0,u.default)("23/10/2018","DD/MM/YYYY").toDate().getTime()/864e5),d=b(t);(d>45e3||d!==parseInt(d,10))&&(n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly."),n||(l>d+1&&(n=(0,c.toSingleLine)(a)),r=l>d+15)}else n="Evaluation version of Handsontable Pro. Not licensed for use in a production environment.";else n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly.";i&&(n=!1,r=!1);n&&!_&&(console[s?"info":"warn"](n),_=!0);if(r&&e.parentNode){var C=document.createElement("div");C.id="hot-display-license-info",C.appendChild(document.createTextNode("Evaluation version of Handsontable Pro.")),C.appendChild(document.createElement("br")),C.appendChild(document.createTextNode("Not licensed for production use.")),e.parentNode.insertBefore(C,e.nextSibling)}};var s,l=n(58),u=(s=l)&&s.__esModule?s:{default:s},c=n(42);function d(t){return void 0===t}function h(t){return null===t||""===t||d(t)}var f="length",p=function(t){return parseInt(t,16)},m=function(t){return parseInt(t,10)},v=function(t,e,n){return t.substr(e,n)},g=function(t){return t.codePointAt(0)-65},y=function(t){return(""+t).replace(/\-/g,"")},b=function(t){return p(v(y(t),p("12"),g("F")))/(p(v(y(t),g("B"),~~![][f]))||9)},w=function(){return"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)},_=!1},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n=0&&u.splice(u.indexOf(this.pluginName),1),u.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(t,e){l.get(this).hooks[t]=l.get(this).hooks[t]||[];var n=l.get(this).hooks[t];this.hot.addHook(t,e),n.push(e),l.get(this).hooks[t]=n}},{key:"removeHooks",value:function(t){var e=this;(0,i.arrayEach)(l.get(this).hooks[t]||[],function(n){e.hot.removeHook(t,n)})}},{key:"clearHooks",value:function(){var t=this,e=l.get(this).hooks;(0,o.objectEach)(e,function(e,n){return t.removeHooks(n)}),e.length=0}},{key:"callOnPluginsReady",value:function(t){this.isPluginsReady?t():this.pluginsInitializedCallbacks.push(t)}},{key:"onAfterPluginsInitialized",value:function(){(0,i.arrayEach)(this.pluginsInitializedCallbacks,function(t){return t()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var t=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,o.objectEach)(this,function(e,n){"hot"!==n&&"t"!==n&&(t[n]=null)}),delete this.t,delete this.hot}}]),t}();e.default=c},function(t,e,n){var r=n(79)("wks"),o=n(51),i=n(15).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";e.__esModule=!0,e.stopImmediatePropagation=function(t){t.isImmediatePropagationEnabled=!1,t.cancelBubble=!0},e.isImmediatePropagationStopped=function(t){return!1===t.isImmediatePropagationEnabled},e.stopPropagation=function(t){"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.pageX=function(t){if(t.pageX)return t.pageX;return t.clientX+(0,r.getWindowScrollLeft)()},e.pageY=function(t){if(t.pageY)return t.pageY;return t.clientY+(0,r.getWindowScrollTop)()},e.isRightClick=function(t){return 2===t.button},e.isLeftClick=function(t){return 0===t.button};var r=n(0)},function(t,e,n){"use strict";e.__esModule=!0,e.getRegisteredRenderers=e.getRegisteredRendererNames=e.hasRenderer=e.getRenderer=e.registerRenderer=void 0;var r=d(n(39)),o=d(n(246)),i=d(n(247)),a=d(n(248)),s=d(n(249)),l=d(n(250)),u=d(n(252)),c=d(n(253));function d(t){return t&&t.__esModule?t:{default:t}}var h=(0,r.default)("renderers"),f=h.register,p=h.getItem,m=h.hasItem,v=h.getNames,g=h.getValues;f("base",o.default),f("autocomplete",i.default),f("checkbox",a.default),f("html",s.default),f("numeric",l.default),f("password",u.default),f("text",c.default),e.registerRenderer=f,e.getRenderer=function(t){if("function"==typeof t)return t;if(!m(t))throw Error('No registered renderer found under "'+t+'" name');return p(t)},e.hasRenderer=m,e.getRegisteredRendererNames=v,e.getRegisteredRenderers=g},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return t?(t.pluginHookBucket||(t.pluginHookBucket=this.createEmptyBucket()),t.pluginHookBucket):this.globalBucket}},{key:"add",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(e))(0,o.arrayEach)(e,function(e){return n.add(t,e,r)});else{var i=this.getBucket(r);if(void 0===i[t]&&(this.register(t),i[t]=[]),e.skip=!1,-1===i[t].indexOf(e)){var a=!1;e.initialHook&&(0,o.arrayEach)(i[t],function(n,r){if(n.initialHook)return i[t][r]=e,a=!0,!1}),a||i[t].push(e)}}return this}},{key:"once",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(e)?(0,o.arrayEach)(e,function(e){return n.once(t,e,r)}):(e.runOnce=!0,this.add(t,e,r))}},{key:"remove",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[t]&&r[t].indexOf(e)>=0&&(e.skip=!0,!0)}},{key:"has",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(e);return!(void 0===n[t]||!n[t].length)}},{key:"run",value:function(t,e,n,r,o,i,a,s){var l=this.globalBucket[e],u=l?l.length:0,c=0;if(u)for(;c0&&void 0!==arguments[0]?arguments[0]:null;(0,i.objectEach)(this.getBucket(t),function(t,e,n){return n[e].length=0})}},{key:"register",value:function(t){this.isRegistered(t)||a.push(t)}},{key:"deregister",value:function(t){this.isRegistered(t)&&a.splice(a.indexOf(t),1)}},{key:"isRegistered",value:function(t){return a.indexOf(t)>=0}},{key:"getRegistered",value:function(){return a}}]),t}(),l=new s;e.default=s},function(t,e,n){"use strict";e.__esModule=!0,e.getRegisteredEditors=e.getRegisteredEditorNames=e.hasEditor=e.getEditorInstance=e.getEditor=e.registerEditor=void 0,e.RegisteredEditor=E,e._getEditorInstance=S;var r=m(n(39)),o=m(n(16)),i=m(n(56)),a=m(n(191)),s=m(n(238)),l=m(n(239)),u=m(n(242)),c=m(n(192)),d=m(n(243)),h=m(n(244)),f=m(n(245)),p=m(n(59));function m(t){return t&&t.__esModule?t:{default:t}}var v=new WeakMap,g=(0,r.default)("editors"),y=g.register,b=g.getItem,w=g.hasItem,_=g.getNames,C=g.getValues;function E(t){var e={},n=t;this.getConstructor=function(){return t},this.getInstance=function(t){return t.guid in e||(e[t.guid]=new n(t)),e[t.guid]},o.default.getSingleton().add("afterDestroy",function(){e[this.guid]=null})}function S(t,e){var n=void 0;if("function"==typeof t)v.get(t)||O(null,t),n=v.get(t);else{if("string"!=typeof t)throw Error('Only strings and functions can be passed as "editor" parameter');n=b(t)}if(!n)throw Error('No editor registered under name "'+t+'"');return n.getInstance(e)}function O(t,e){var n=new E(e);"string"==typeof t&&y(t,n),v.set(e,n)}O("base",i.default),O("autocomplete",a.default),O("checkbox",s.default),O("date",l.default),O("dropdown",u.default),O("handsontable",c.default),O("numeric",d.default),O("password",h.default),O("select",f.default),O("text",p.default),e.registerEditor=O,e.getEditor=function(t){if(!w(t))throw Error('No registered editor found under "'+t+'" name');return b(t).getConstructor()},e.getEditorInstance=S,e.hasEditor=w,e.getRegisteredEditorNames=_,e.getRegisteredEditors=C},function(t,e,n){var r=n(9);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";e.__esModule=!0,e.normalizeSelection=function(t){return(0,r.arrayMap)(t,function(t){return{start:t.getTopLeftCorner(),end:t.getBottomRightCorner()}})},e.isSeparator=function(t){return(0,o.hasClass)(t,"htSeparator")},e.hasSubMenu=function(t){return(0,o.hasClass)(t,"htSubmenu")},e.isDisabled=function(t){return(0,o.hasClass)(t,"htDisabled")},e.isSelectionDisabled=function(t){return(0,o.hasClass)(t,"htSelectionDisabled")},e.getValidSelection=function(t){var e=t.getSelected();if(!e)return null;if(e[0]<0)return null;return e},e.prepareVerticalAlignClass=a,e.prepareHorizontalAlignClass=s,e.getAlignmentClasses=function(t,e){var n={};return(0,r.arrayEach)(t,function(t){for(var r=t.from,o=t.to,i=r.row;i<=o.row;i++)for(var a=r.col;a<=o.col;a++)n[i]||(n[i]=[]),n[i][a]=e(i,a)}),n},e.align=function(t,e,n,o,i){(0,r.arrayEach)(t,function(t){var r=t.from,a=t.to;if(r.row===a.row&&r.col===a.col)l(r.row,r.col,e,n,o,i);else for(var s=r.row;s<=a.row;s++)for(var u=r.col;u<=a.col;u++)l(s,u,e,n,o,i)})},e.checkSelectionConsistency=function(t,e){var n=!1;Array.isArray(t)&&(0,r.arrayEach)(t,function(t){return t.forAll(function(t,r){if(e(t,r))return n=!0,!1}),n});return n},e.markLabelAsSelected=function(t){return''+String.fromCharCode(10003)+""+t},e.isItemHidden=function(t,e){return!t.hidden||!("function"==typeof t.hidden&&t.hidden.call(e))},e.filterSeparators=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.KEY,n=t.slice(0);return n=function(t){var e=[];return(0,r.arrayEach)(t,function(t,n){n>0?e[e.length-1].name!==t.name&&e.push(t):e.push(t)}),e}(n=function(t,e){var n=t.slice(0);return n.reverse(),(n=u(n,e)).reverse(),n}(n=u(n,e),e))};var r=n(2),o=n(0),i=n(96);function a(t,e){return-1!==t.indexOf(e)?t:t.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")+" "+e}function s(t,e){return-1!==t.indexOf(e)?t:t.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")+" "+e}function l(t,e,n,r,o,i){var l=o(t,e),u=r;l.className&&(u="vertical"===n?a(l.className,r):s(l.className,r)),i(t,e,"className",u)}function u(t,e){for(var n=t.slice(0);0=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90},e.isMetaKey=function(t){return-1!==[o.ARROW_DOWN,o.ARROW_UP,o.ARROW_LEFT,o.ARROW_RIGHT,o.HOME,o.END,o.DELETE,o.BACKSPACE,o.F1,o.F2,o.F3,o.F4,o.F5,o.F6,o.F7,o.F8,o.F9,o.F10,o.F11,o.F12,o.TAB,o.PAGE_DOWN,o.PAGE_UP,o.ENTER,o.ESCAPE,o.SHIFT,o.CAPS_LOCK,o.ALT].indexOf(t)},e.isCtrlKey=function(t){var e=[];window.navigator.platform.includes("Mac")?e.push(o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX):e.push(o.CONTROL);return e.includes(t)},e.isCtrlMetaKey=function(t){return[o.CONTROL,o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX].includes(t)},e.isKey=function(t,e){var n=e.split("|"),i=!1;return(0,r.arrayEach)(n,function(e){if(t===o[e])return i=!0,!1}),i};var r=n(2),o=e.KEY_CODES={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL:17,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88}},function(t,e,n){t.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(77),o=n(37);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(60),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(3),o=n(38),i=n(23);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],e=this.shouldBeRendered();this.clone&&(this.needFullRender||e)&&this.clone.draw(t),this.needFullRender=e}},{key:"reset",value:function(){if(this.clone){var t=this.clone.wtTable.holder,e=this.clone.wtTable.hider,n=t.style,r=e.style,o=t.parentNode.style;(0,a.arrayEach)([n,r,o],function(t){t.width="",t.height=""})}}},{key:"destroy",value:function(){new s.default(this.clone).destroy()}}]),t}();e.default=d},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(15),o=n(30),i=n(28),a=n(51)("src"),s=Function.toString,l=(""+s).split("toString");n(38).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,a)||o(n,a,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(20),o=n(52);t.exports=n(22)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(63);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(37);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(51)("meta"),o=n(9),i=n(28),a=n(20).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(23)(function(){return l(Object.preventExtensions({}))}),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return u&&d.NEED&&l(t)&&!i(t,r)&&c(t),t}}},function(t,e,n){"use strict";e.__esModule=!0,e.toUpperCaseFirst=function(t){return t[0].toUpperCase()+t.substr(1)},e.equalsIgnoreCase=function(){for(var t=[],e=arguments.length,n=Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return(""+t).replace(/(?:\\)?\[([^[\]]+)]/g,function(t,n){return"\\"===t.charAt(0)?t.substr(1,t.length-1):void 0===e[n]?"":e[n]})},e.stripTags=function(t){return(""+t).replace(o,"")};var r=n(10);var o=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi},function(t,e,n){"use strict";e.__esModule=!0,e.getRegisteredValidators=e.getRegisteredValidatorNames=e.hasValidator=e.getValidator=e.registerValidator=void 0;var r=l(n(39)),o=l(n(254)),i=l(n(255)),a=l(n(256)),s=l(n(257));function l(t){return t&&t.__esModule?t:{default:t}}var u=(0,r.default)("validators"),c=u.register,d=u.getItem,h=u.hasItem,f=u.getNames,p=u.getValues;c("autocomplete",o.default),c("date",i.default),c("numeric",a.default),c("time",s.default),e.registerValidator=c,e.getValidator=function(t){if("function"==typeof t)return t;if(!h(t))throw Error('No registered validator found under "'+t+'" name');return d(t)},e.hasValidator=h,e.getRegisteredValidatorNames=f,e.getRegisteredValidators=p},function(t,e,n){var r=n(102),o=n(80);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"common";o.has(t)||o.set(t,new Map);var e=o.get(t);return{register:function(t,n){e.set(t,n)},getItem:function(t){return e.get(t)},hasItem:function(t){return e.has(t)},getNames:function(){return[].concat(r(e.keys()))},getValues:function(){return[].concat(r(e.values()))}}};var o=e.collection=new Map},function(t,e,n){"use strict";e.__esModule=!0,e.setBrowserMeta=a,e.isChrome=function(){return i.chrome.value},e.isEdge=function(){return i.edge.value},e.isIE=function(){return i.ie.value},e.isIE8=function(){return i.ie8.value},e.isIE9=function(){return i.ie9.value},e.isMSBrowser=function(){return i.ie.value||i.edge.value},e.isMobileBrowser=function(){return i.mobile.value},e.isSafari=function(){return i.safari.value};var r=n(1),o=function(t){var e={value:!1,test:function(n,r){e.value=t(n,r)}};return e},i={chrome:o(function(t,e){return/Chrome/.test(t)&&/Google/.test(e)}),edge:o(function(t){return/Edge/.test(t)}),ie:o(function(t){return/Trident/.test(t)}),ie8:o(function(){return!document.createTextNode("test").textContent}),ie9:o(function(){return!!document.documentMode}),mobile:o(function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)}),safari:o(function(t,e){return/Safari/.test(t)&&/Apple Computer/.test(e)})};function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.userAgent,n=void 0===e?navigator.userAgent:e,o=t.vendor,a=void 0===o?navigator.vendor:o;(0,r.objectEach)(i,function(t){(0,t.test)(n,a)})}a()},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.requestAnimationFrame=function(t){return a.call(window,t)},e.cancelAnimationFrame=function(t){s.call(window,t)},e.isTouchSupported=function(){return"ontouchstart"in window},e.isWebComponentSupportedNatively=function(){var t=document.createElement("div");return!(!t.createShadowRoot||!t.createShadowRoot.toString().match(/\[native code\]/))},e.hasCaptionProblem=function(){void 0===u&&function(){var t=document.createElement("TABLE");t.style.borderSpacing=0,t.style.borderWidth=0,t.style.padding=0;var e=document.createElement("TBODY");t.appendChild(e),e.appendChild(document.createElement("TR")),e.firstChild.appendChild(document.createElement("TD")),e.firstChild.firstChild.innerHTML="t
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
c",n.style.padding=0,n.style.margin=0,t.insertBefore(n,e),document.body.appendChild(t),u=t.offsetHeight<2*t.lastChild.offsetHeight,document.body.removeChild(t)}();return u},e.getComparisonFunction=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(c)return c;c="object"===("undefined"==typeof Intl?"undefined":r(Intl))?new Intl.Collator(t,e).compare:"function"==typeof String.prototype.localeCompare?function(t,e){return(""+t).localeCompare(e)}:function(t,e){return t===e?0:t>e?-1:1};return c};for(var o=0,i=["ms","moz","webkit","o"],a=window.requestAnimationFrame,s=window.cancelAnimationFrame,l=0;l1?e-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=o(t,e),i=n;function a(){for(var e=arguments.length,n=Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:200,n=null,r=void 0;return function(){for(var o=this,i=arguments.length,a=Array(i),s=0;s1?e-1:0),r=1;r=e?t.apply(this,s):n(s)}}([])},e.curryRight=function(t){var e=t.length;return function n(r){return function(){for(var o=arguments.length,i=Array(o),a=0;a=e?t.apply(this,s):n(s)}}([])};var r=n(2);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;return function(){for(var i=this,a=arguments.length,s=Array(a),l=0;l1?n-1:0),i=1;i'+String.fromCharCode(10003)+""+t};var r=n(1),o=n(2);function i(t,e){return"border_row"+t+"col"+e}function a(){return{width:1,color:"#000"}}function s(){return{hide:!0}}function l(){return{width:1,color:"#000",cornerVisible:!1}}},function(t,e){t.exports=!1},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r=n(20).f,o=n(28),i=n(12)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";e.__esModule=!0,e.EditorState=void 0;var r=n(4),o=n(10),i=e.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};function a(t){this.instance=t,this.state=i.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}a.prototype._fireCallbacks=function(t){this._closeCallback&&(this._closeCallback(t),this._closeCallback=null)},a.prototype.init=function(){},a.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},a.prototype.setValue=function(){throw Error("Editor setValue() method unimplemented")},a.prototype.open=function(){throw Error("Editor open() method unimplemented")},a.prototype.close=function(){throw Error("Editor close() method unimplemented")},a.prototype.prepare=function(t,e,n,r,o,a){this.TD=r,this.row=t,this.col=e,this.prop=n,this.originalValue=o,this.cellProperties=a,this.state=i.VIRGIN},a.prototype.extend=function(){var t=this.constructor;return function(t,e){function n(){}return n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t}(function(){for(var e=arguments.length,n=Array(e),r=0;rn[2]&&(r=n[0],n[0]=n[2],n[2]=r),n[1]>n[3]&&(r=n[1],n[1]=n[3],n[3]=r)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],t,n[2],n[3],"edit")},a.prototype.beginEditing=function(t,e){if(this.state===i.VIRGIN){if(this.instance.view.scrollViewport(new r.CellCoords(this.row,this.col)),this.state=i.EDITING,this.isInFullEditMode()){var n="string"==typeof t?t:(0,o.stringify)(this.originalValue);this.setValue(n)}this.open(e),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col)}},a.prototype.finishEditing=function(t,e,n){var r=this,o=void 0;if(n){var a=this._closeCallback;this._closeCallback=function(t){a&&a(t),n(t),r.instance.view.render()}}if(!this.isWaiting())if(this.state!==i.VIRGIN){if(this.state===i.EDITING){if(t)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=i.WAITING,this.saveValue(o,e),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(t){r.state=i.FINISHED,r.discardEditor(t)}):(this.state=i.FINISHED,this.discardEditor(!0))}}else this.instance._registerTimeout(function(){r._fireCallbacks(!0)})},a.prototype.cancelChanges=function(){this.state=i.FINISHED,this.discardEditor()},a.prototype.discardEditor=function(t){this.state===i.FINISHED&&(!1===t&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=i.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=i.VIRGIN,this._fireCallbacks(!0)))},a.prototype.enableFullEditMode=function(){this._fullEditMode=!0},a.prototype.isInFullEditMode=function(){return this._fullEditMode},a.prototype.isOpened=function(){return this._opened},a.prototype.isWaiting=function(){return this.state===i.WAITING},a.prototype.checkEditorSection=function(){var t=this.instance.countRows(),e="";return this.row=t-this.instance.getSettings().fixedRowsBottom?e=this.col=t.getSetting("totalRows")||this.col>=t.getSetting("totalColumns"))}},{key:"isEqual",value:function(t){return t===this||this.row===t.row&&this.col===t.col}},{key:"isSouthEastOf",value:function(t){return this.row>=t.row&&this.col>=t.col}},{key:"isNorthWestOf",value:function(t){return this.row<=t.row&&this.col<=t.col}},{key:"isSouthWestOf",value:function(t){return this.row>=t.row&&this.col<=t.col}},{key:"isNorthEastOf",value:function(t){return this.row<=t.row&&this.col>=t.col}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),t}();e.default=o},function(e,n){e.exports=t},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0),o=c(n(237)),i=n(56),a=c(i),s=c(n(6)),l=n(21),u=n(13);function c(t){return t&&t.__esModule?t:{default:t}}var d=a.default.prototype.extend();d.prototype.init=function(){var t=this;this.createElements(),this.eventManager=new s.default(this),this.bindEvents(),this.autoResize=(0,o.default)(),this.holderZIndex=-1,this.instance.addHook("afterDestroy",function(){t.destroy()})},d.prototype.prepare=function(t,e,n,r,o,s){for(var l=this,u=this.state,c=arguments.length,d=Array(c>6?c-6:0),h=6;h=0?this.holderZIndex:"",this.textareaParentStyle.position=""},d.prototype.getValue=function(){return this.TEXTAREA.value},d.prototype.setValue=function(t){this.TEXTAREA.value=t},d.prototype.beginEditing=function(){if(this.state===i.EditorState.VIRGIN){this.TEXTAREA.value="";for(var t=arguments.length,e=Array(t),n=0;n0&&void 0!==arguments[0]&&arguments[0];if(this.state===i.EditorState.EDITING||t)if(this.TD=this.getEditedCell(),this.TD){var e=(0,r.offset)(this.TD),n=(0,r.offset)(this.instance.rootElement),o=this.instance.view.wt.wtOverlays.topOverlay.mainTableScrollableElement,a=this.instance.view.wt.wtOverlays.leftOverlay.mainTableScrollableElement,s=this.instance.countRows(),l=o!==window?o.scrollTop:0,u=a!==window?a.scrollLeft:0,c=this.checkEditorSection(),d=["","left"].includes(c)?l:0,h=["","top","bottom"].includes(c)?u:0,f=e.top===n.top?0:1,p=this.instance.getSettings(),m=this.instance.hasColHeaders(),v=this.TD.style.backgroundColor,g=e.top-n.top-f-d,y=e.left-n.left-1-h,b=void 0;switch(c){case"top":b=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":b=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":b=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":b=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":b=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(m&&0===this.instance.getSelectedLast()[0]||p.fixedRowsBottom&&this.instance.getSelectedLast()[0]===s-p.fixedRowsBottom)&&(g+=1),0===this.instance.getSelectedLast()[1]&&(y+=1),b&&-1!==b?this.textareaParentStyle[b[0]]=b[1]:(0,r.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=g+"px",this.textareaParentStyle.left=y+"px",this.showEditableElement();var w=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,_=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,C=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),E=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),S=(0,r.getScrollbarWidth)(),O=this.TD.offsetTop+w-E,T=this.TD.offsetLeft+_-C,x=(0,r.innerWidth)(this.TD)-8,k=(0,r.hasVerticalScrollbar)(o)?S:0,M=(0,r.hasHorizontalScrollbar)(a)?S:0,R=this.instance.view.maximumVisibleElementWidth(T)-9-k,A=this.TD.scrollHeight+1,N=Math.max(this.instance.view.maximumVisibleElementHeight(O)-M,23),P=(0,r.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=P.fontSize,this.TEXTAREA.style.fontFamily=P.fontFamily,this.TEXTAREA.style.backgroundColor=v,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(A,N),maxHeight:N,minWidth:Math.min(x,R),maxWidth:R},!0)}else t||this.close(!0)},d.prototype.bindEvents=function(){var t=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(t){(0,u.stopPropagation)(t)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(t){(0,u.stopPropagation)(t)}),this.instance.addHook("afterScrollHorizontally",function(){t.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){t.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){t.refreshDimensions(),t.focus()}),this.instance.addHook("afterRowResize",function(){t.refreshDimensions(),t.focus()}),this.instance.addHook("afterDestroy",function(){t.eventManager.destroy()})},d.prototype.destroy=function(){this.eventManager.destroy()},e.default=d},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(60),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(29);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(31),o=n(105),i=n(106),a=n(18),s=n(25),l=n(107),u={},c={};(e=t.exports=function(t,e,n,d,h){var f,p,m,v,g=h?function(){return t}:l(t),y=r(n,d,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(f=s(t.length);f>b;b++)if((v=e?y(a(p=t[b])[0],p[1]):y(t[b]))===u||v===c)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=o(m,y,p.value,e))===u||v===c)return v}).BREAK=u,e.RETURN=c},function(t,e,n){"use strict";var r=n(15),o=n(3),i=n(29),a=n(62),s=n(33),l=n(65),u=n(64),c=n(9),d=n(23),h=n(81),f=n(54),p=n(211);t.exports=function(t,e,n,m,v,g){var y=r[t],b=y,w=v?"set":"add",_=b&&b.prototype,C={},E=function(t){var e=_[t];i(_,t,"delete"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(g||_.forEach&&!d(function(){(new b).entries().next()}))){var S=new b,O=S[w](g?{}:-0,1)!=S,T=d(function(){S.has(1)}),x=h(function(t){new b(t)}),k=!g&&d(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});x||((b=e(function(e,n){u(e,b,t);var r=p(new y,e,b);return null!=n&&l(n,v,r[w],r),r})).prototype=_,_.constructor=b),(T||k)&&(E("delete"),E("has"),v&&E("get")),(k||O)&&E(w),g&&_.clear&&delete _.clear}else b=m.getConstructor(e,t,v,w),a(b.prototype,n),s.NEED=!0;return f(b,t),C[t]=b,o(o.G+o.W+o.F*(b!=y),C),g||m.setStrong(b,t,v),b}},function(t,e,n){var r=n(55),o=n(52),i=n(24),a=n(75),s=n(28),l=n(101),u=Object.getOwnPropertyDescriptor;e.f=n(22)?u:function(t,e){if(t=i(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(31),o=n(77),i=n(32),a=n(25),s=n(212);t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,d=6==t,h=5==t||d,f=e||s;return function(e,s,p){for(var m,v,g=i(e),y=o(g),b=r(s,p,3),w=a(y.length),_=0,C=n?f(e,w):l?f(e,0):void 0;w>_;_++)if((h||_ in y)&&(v=b(m=y[_],_,g),t))if(n)C[_]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:C.push(m)}else if(c)return!1;return d?-1:u||c?c:C}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(30),o=n(29),i=n(23),a=n(37),s=n(12);t.exports=function(t,e,n){var l=s(t),u=n(a,l,""[t]),c=u[0],d=u[1];i(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,c),r(RegExp.prototype,l,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)}))}},function(t,e,n){"use strict";e.__esModule=!0,e.DEFAULT_LANGUAGE_CODE=e.getLanguagesDictionaries=e.getDefaultLanguageDictionary=e.hasLanguageDictionary=e.getLanguageDictionary=e.registerLanguageDictionary=void 0;var r=n(1),o=n(200),i=s(n(39)),a=s(n(273));function s(t){return t&&t.__esModule?t:{default:t}}var l=a.default.languageCode,u=(0,i.default)("languagesDictionaries"),c=u.register,d=u.getItem,h=u.hasItem,f=u.getValues;function p(t,e){var n=t,i=e;return(0,r.isObject)(t)&&(n=(i=t).languageCode),function(t,e){t!==l&&(0,o.extendNotExistingKeys)(e,d(l))}(n,i),c(n,(0,r.deepClone)(i)),(0,r.deepClone)(i)}function m(t){return h(t)}e.registerLanguageDictionary=p,e.getLanguageDictionary=function(t){return m(t)?(0,r.deepClone)(d(t)):null},e.hasLanguageDictionary=m,e.getDefaultLanguageDictionary=function(){return a.default},e.getLanguagesDictionaries=function(){return f()},e.DEFAULT_LANGUAGE_CODE=l,p(a.default)},function(t,e,n){"use strict";e.__esModule=!0,e.SELECTION_TYPES=e.SELECTION_TYPE_OBJECT=e.SELECTION_TYPE_ARRAY=e.SELECTION_TYPE_EMPTY=e.SELECTION_TYPE_UNRECOGNIZED=void 0;var r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.detectSelectionType=v,e.normalizeSelectionFactory=g,e.transformSelectionToColumnDistance=function(t){var e=v(t);if(e===l||e===u)return[];var n=g(e),o=new Set;(0,a.arrayEach)(t,function(t){var e=n(t),i=r(e,4),s=i[1],l=i[3],u=l-s+1;(0,a.arrayEach)(Array.from(new Array(u),function(t,e){return s+e}),function(t){o.has(t)||o.add(t)})});var i=Array.from(o).sort(function(t,e){return t-e});return(0,a.arrayReduce)(i,function(t,e,n,r){return 0!==n&&e===r[n-1]+1?t[t.length-1][1]+=1:t.push([e,1]),t},[])},e.transformSelectionToRowDistance=function(t){var e=v(t);if(e===l||e===u)return[];var n=g(e),o=new Set;(0,a.arrayEach)(t,function(t){var e=n(t),i=r(e,3),s=i[0],l=i[2],u=l-s+1;(0,a.arrayEach)(Array.from(new Array(u),function(t,e){return s+e}),function(t){o.has(t)||o.add(t)})});var i=Array.from(o).sort(function(t,e){return t-e});return(0,a.arrayReduce)(i,function(t,e,n,r){return 0!==n&&e===r[n-1]+1?t[t.length-1][1]+=1:t.push([e,1]),t},[])},e.isValidCoord=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof t&&t>=0&&t1&&void 0!==arguments[1]?arguments[1]:p;if(e!==p&&e!==m)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(t),r=e===p,a=l;if(n){var s=t[0];if(0===t.length)a=u;else if(r&&s instanceof i.CellRange)a=d;else if(r&&Array.isArray(s))a=v(s,m);else if(t.length>=2&&t.length<=4){!t.some(function(t,e){return!f[e].includes(void 0===t?"undefined":o(t))})&&(a=c)}}return a}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.keepDirection,r=void 0!==n&&n,o=e.propToCol;if(!h.includes(t))throw new Error("Unsupported selection ranges schema type was provided.");return function(e){var n=t===d,i=n?e.from.row:e[0],a=n?e.from.col:e[1],l=n?e.to.row:e[2],u=n?e.to.col:e[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof u&&(u=o(u))),(0,s.isUndefined)(l)&&(l=i),(0,s.isUndefined)(u)&&(u=a),!r){var c=i,h=a,f=l,p=u;i=Math.min(c,f),a=Math.min(h,p),l=Math.max(c,f),u=Math.max(h,p)}return[i,a,l,u]}}},function(t,e,n){"use strict";e.__esModule=!0,e.FIRST_AFTER_SECOND=e.FIRST_BEFORE_SECOND=e.DO_NOT_SWAP=void 0,e.mainSortComparator=function(t,e){return function(n,a){var l,u,c,d,h,f,p=s(n),m=p.slice(1),v=s(a),g=v.slice(1);return u=t[l=0],c=e[l],d=m[l],h=g[l],f=function(t){var e=t.columnSorting;if(e.compareFunctionFactory)return e.compareFunctionFactory;if("date"===t.type)return r.default;if("numeric"===t.type)return i.default;return o.default}(c),f(u,c)(d,h)}};var r=a(n(297)),o=a(n(298)),i=a(n(299));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return Array.isArray(t)?t:Array.from(t)}e.DO_NOT_SWAP=0,e.FIRST_BEFORE_SECOND=-1,e.FIRST_AFTER_SECOND=1},function(t,e,n){var r=n(9),o=n(15).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(18),o=n(209),i=n(80),a=n(78)("IE_PROTO"),s=function(){},l=function(){var t,e=n(74)("iframe"),r=i.length;for(e.style.display="none",n(104).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("