/* Highcharts JS v6.0.6 (2018-02-05) Data module (c) 2012-2017 Torstein Honsi License: www.highcharts.com/license */ (function(y){"object"===typeof module&&module.exports?module.exports=y:y(Highcharts)})(function(y){(function(m){var y=m.win.document,w=m.each,E=m.objectEach,F=m.pick,B=m.inArray,C=m.isNumber,G=m.splat,H=m.fireEvent,D,r;D=Array.prototype.some?function(a,b,c){Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var f=0,e=a.length;fq||q>z?(++q,n=""):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f("number")):isNaN(Date.parse(n))?f("string"):(n=n.replace(/\//g,"-"),f("date")),l.lengthv[","]?";":",";d.decimalPoint||(d.decimalPoint=b>c?".":",",e.decimalRegex=new RegExp("^(-?[0-9]+)"+d.decimalPoint+"([0-9]+)$"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],l=[],h;if(!b||b>a.length)b=a.length;for(;gc[h]?"YY":"YYYY":12=c[h]?(f[h]="dd",k=!0):f[h].length||(f[h]="mm")));if(k){for(h=0;ha)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?t=d.itemDelimiter:(t=null,t=c(k));for(var n=0,q=a;q<=g;q++)"#"===k[q][0]?n++:b(k[q],q-a-n);d.columnTypes&&0!==d.columnTypes.length|| !u.length||!u[0].length||"date"!==u[0][1]||d.dateFormat||(d.dateFormat=f(l[0]));this.dataFound()}return l},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&("string"===typeof b&&(b=y.getElementById(b)),w(b.getElementsByTagName("tr"),function(a,b){b>=f&&b<=e&&w(a.children,function(a,e){("TD"===a.tagName||"TH"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}), this.dataFound())},parseGoogleSpreadsheet:function(){function a(a){var b=["https://spreadsheets.google.com/feeds/cells",f,e,"public/values?alt\x3djson"].join("/");m.ajax({url:b,dataType:"json",success:a,error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=c.googleSpreadsheetWorksheet||1,d=this.columns,k=c.startRow||0,l=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,r=c.endColumn||Number.MAX_VALUE,z,t;f&&a(function(a){a=a.feed.entry;var c,f=a.length, e=0,m=0,p;for(p=0;p=g&&p<=r&&(d[p-g]=[],d[p-g].length=Math.min(m,l-k));for(p=0;p=g&&t<=r&&z>=k&&z<=l&&(e=c.gs$cell||c.content,c=null,e.numericValue?c=0<=e.$t.indexOf("/")||0<=e.$t.indexOf("-")?e.$t:0a[e+1])):(l&&l.length&&(t=this.parseDate(d)),r&&C(t)&&"float"!==n?(q[e]=d,a[e]=t,a.isDatetime=!0,void 0!==a[e+1]&&(d=t>a[e+1],d!==v&&void 0!==v&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat, e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),v=d)):(a[e]=""===l?null:l,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&v&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+ 2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if("string"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats["YYYY/mm/dd"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),"object"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset(): C(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b