UNPKG

@jpmorganchase/perspective-examples

Version:
1 lines 442 kB
!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define([],factory):"object"==typeof exports?exports["perspective-view-highcharts"]=factory():root["perspective-view-highcharts"]=factory()}("undefined"!=typeof self?self:this,function(){return function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=67)}([function(module,exports){var core=module.exports={version:"2.5.7"};"number"==typeof __e&&(__e=core)},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports,__webpack_require__){var store=__webpack_require__(31)("wks"),uid=__webpack_require__(20),Symbol=__webpack_require__(1).Symbol,USE_SYMBOL="function"==typeof Symbol;(module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))}).store=store},function(module,exports,__webpack_require__){var global=__webpack_require__(1),core=__webpack_require__(0),ctx=__webpack_require__(13),hide=__webpack_require__(8),has=__webpack_require__(10),$export=function(type,name,source){var key,own,out,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,IS_WRAP=type&$export.W,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports.prototype,target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{}).prototype;IS_GLOBAL&&(source=name);for(key in source)(own=!IS_FORCED&&target&&void 0!==target[key])&&has(exports,key)||(out=own?target[key]:source[key],exports[key]=IS_GLOBAL&&"function"!=typeof target[key]?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};return F.prototype=C.prototype,F}(out):IS_PROTO&&"function"==typeof out?ctx(Function.call,out):out,IS_PROTO&&((exports.virtual||(exports.virtual={}))[key]=out,type&$export.R&&expProto&&!expProto[key]&&hide(expProto,key,out)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,module.exports=$export},function(module,exports,__webpack_require__){var isObject=__webpack_require__(6);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(4),IE8_DOM_DEFINE=__webpack_require__(42),toPrimitive=__webpack_require__(28),dP=Object.defineProperty;exports.f=__webpack_require__(7)?Object.defineProperty:function(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports,__webpack_require__){var dP=__webpack_require__(5),createDesc=__webpack_require__(18);module.exports=__webpack_require__(7)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(44),defined=__webpack_require__(19);module.exports=function(it){return IObject(defined(it))}},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(17);module.exports=function(fn,that,length){if(aFunction(fn),void 0===that)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(43),enumBugKeys=__webpack_require__(32);module.exports=Object.keys||function(O){return $keys(O,enumBugKeys)}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports){module.exports=!0},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))}},function(module,exports){exports.f={}.propertyIsEnumerable},function(module,exports,__webpack_require__){var defined=__webpack_require__(19);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){__webpack_require__(78);for(var global=__webpack_require__(1),hide=__webpack_require__(8),Iterators=__webpack_require__(12),TO_STRING_TAG=__webpack_require__(2)("toStringTag"),DOMIterables="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i],Collection=global[NAME],proto=Collection&&Collection.prototype;proto&&!proto[TO_STRING_TAG]&&hide(proto,TO_STRING_TAG,NAME),Iterators[NAME]=Iterators.Array}},function(module,exports,__webpack_require__){var def=__webpack_require__(5).f,has=__webpack_require__(10),TAG=__webpack_require__(2)("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(83)(!0);__webpack_require__(46)(String,"String",function(iterated){this._t=String(iterated),this._i=0},function(){var point,O=this._t,index=this._i;return index>=O.length?{value:void 0,done:!0}:(point=$at(O,index),this._i+=point.length,{value:point,done:!1})})},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(72),__esModule:!0}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(6),document=__webpack_require__(1).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(6);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;if("function"==typeof(fn=it.valueOf)&&!isObject(val=fn.call(it)))return val;if(!S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var shared=__webpack_require__(31)("keys"),uid=__webpack_require__(20);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var core=__webpack_require__(0),global=__webpack_require__(1),store=global["__core-js_shared__"]||(global["__core-js_shared__"]={});(module.exports=function(key,value){return store[key]||(store[key]=void 0!==value?value:{})})("versions",[]).push({version:core.version,mode:__webpack_require__(16)?"pure":"global",copyright:"\xa9 2018 Denis Pushkarev (zloirock.ru)"})},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(77),__esModule:!0}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(4),dPs=__webpack_require__(82),enumBugKeys=__webpack_require__(32),IE_PROTO=__webpack_require__(30)("IE_PROTO"),Empty=function(){},createDict=function(){var iframeDocument,iframe=__webpack_require__(27)("iframe"),i=enumBugKeys.length;for(iframe.style.display="none",__webpack_require__(48).appendChild(iframe),iframe.src="javascript:",iframeDocument=iframe.contentWindow.document,iframeDocument.open(),iframeDocument.write("<script>document.F=Object<\/script>"),iframeDocument.close(),createDict=iframeDocument.F;i--;)delete createDict.prototype[enumBugKeys[i]];return createDict()};module.exports=Object.create||function(O,Properties){var result;return null!==O?(Empty.prototype=anObject(O),result=new Empty,Empty.prototype=null,result[IE_PROTO]=O):result=createDict(),void 0===Properties?result:dPs(result,Properties)}},function(module,exports,__webpack_require__){var cof=__webpack_require__(15),TAG=__webpack_require__(2)("toStringTag"),ARG="Arguments"==cof(function(){return arguments}()),tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=tryGet(O=Object(it),TAG))?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B}},function(module,exports,__webpack_require__){"use strict";function PromiseCapability(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aFunction(resolve),this.reject=aFunction(reject)}var aFunction=__webpack_require__(17);module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports){module.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(module,exports,__webpack_require__){exports.f=__webpack_require__(2)},function(module,exports,__webpack_require__){var global=__webpack_require__(1),core=__webpack_require__(0),LIBRARY=__webpack_require__(16),wksExt=__webpack_require__(39),defineProperty=__webpack_require__(5).f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});"_"==name.charAt(0)||name in $Symbol||defineProperty($Symbol,name,{value:wksExt.f(name)})}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(70)},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(7)&&!__webpack_require__(9)(function(){return 7!=Object.defineProperty(__webpack_require__(27)("div"),"a",{get:function(){return 7}}).a})},function(module,exports,__webpack_require__){var has=__webpack_require__(10),toIObject=__webpack_require__(11),arrayIndexOf=__webpack_require__(75)(!1),IE_PROTO=__webpack_require__(30)("IE_PROTO");module.exports=function(object,names){var key,O=toIObject(object),i=0,result=[];for(key in O)key!=IE_PROTO&&has(O,key)&&result.push(key);for(;names.length>i;)has(O,key=names[i++])&&(~arrayIndexOf(result,key)||result.push(key));return result}},function(module,exports,__webpack_require__){var cof=__webpack_require__(15);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return"String"==cof(it)?it.split(""):Object(it)}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(29),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(16),$export=__webpack_require__(3),redefine=__webpack_require__(47),hide=__webpack_require__(8),Iterators=__webpack_require__(12),$iterCreate=__webpack_require__(81),setToStringTag=__webpack_require__(24),getPrototypeOf=__webpack_require__(49),ITERATOR=__webpack_require__(2)("iterator"),BUGGY=!([].keys&&"next"in[].keys()),returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var methods,key,IteratorPrototype,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case"keys":case"values":return function(){return new Constructor(this,kind)}}return function(){return new Constructor(this,kind)}},TAG=NAME+" Iterator",DEF_VALUES="values"==DEFAULT,VALUES_BUG=!1,proto=Base.prototype,$native=proto[ITERATOR]||proto["@@iterator"]||DEFAULT&&proto[DEFAULT],$default=$native||getMethod(DEFAULT),$entries=DEFAULT?DEF_VALUES?getMethod("entries"):$default:void 0,$anyNative="Array"==NAME?proto.entries||$native:$native;if($anyNative&&(IteratorPrototype=getPrototypeOf($anyNative.call(new Base)))!==Object.prototype&&IteratorPrototype.next&&(setToStringTag(IteratorPrototype,TAG,!0),LIBRARY||"function"==typeof IteratorPrototype[ITERATOR]||hide(IteratorPrototype,ITERATOR,returnThis)),DEF_VALUES&&$native&&"values"!==$native.name&&(VALUES_BUG=!0,$default=function(){return $native.call(this)}),LIBRARY&&!FORCED||!BUGGY&&!VALUES_BUG&&proto[ITERATOR]||hide(proto,ITERATOR,$default),Iterators[NAME]=$default,Iterators[TAG]=returnThis,DEFAULT)if(methods={values:DEF_VALUES?$default:getMethod("values"),keys:IS_SET?$default:getMethod("keys"),entries:$entries},FORCED)for(key in methods)key in proto||redefine(proto,key,methods[key]);else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);return methods}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(8)},function(module,exports,__webpack_require__){var document=__webpack_require__(1).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var has=__webpack_require__(10),toObject=__webpack_require__(22),IE_PROTO=__webpack_require__(30)("IE_PROTO"),ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){return O=toObject(O),has(O,IE_PROTO)?O[IE_PROTO]:"function"==typeof O.constructor&&O instanceof O.constructor?O.constructor.prototype:O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var classof=__webpack_require__(36),ITERATOR=__webpack_require__(2)("iterator"),Iterators=__webpack_require__(12);module.exports=__webpack_require__(0).getIteratorMethod=function(it){if(void 0!=it)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(85),__esModule:!0}},function(module,exports){},function(module,exports,__webpack_require__){var anObject=__webpack_require__(4),aFunction=__webpack_require__(17),SPECIES=__webpack_require__(2)("species");module.exports=function(O,D){var S,C=anObject(O).constructor;return void 0===C||void 0==(S=anObject(C)[SPECIES])?D:aFunction(S)}},function(module,exports,__webpack_require__){var defer,channel,port,ctx=__webpack_require__(13),invoke=__webpack_require__(91),html=__webpack_require__(48),cel=__webpack_require__(27),global=__webpack_require__(1),process=global.process,setTask=global.setImmediate,clearTask=global.clearImmediate,MessageChannel=global.MessageChannel,Dispatch=global.Dispatch,counter=0,queue={},run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id],fn()}},listener=function(event){run.call(event.data)};setTask&&clearTask||(setTask=function(fn){for(var args=[],i=1;arguments.length>i;)args.push(arguments[i++]);return queue[++counter]=function(){invoke("function"==typeof fn?fn:Function(fn),args)},defer(counter),counter},clearTask=function(id){delete queue[id]},"process"==__webpack_require__(15)(process)?defer=function(id){process.nextTick(ctx(run,id,1))}:Dispatch&&Dispatch.now?defer=function(id){Dispatch.now(ctx(run,id,1))}:MessageChannel?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=listener,defer=ctx(port.postMessage,port,1)):global.addEventListener&&"function"==typeof postMessage&&!global.importScripts?(defer=function(id){global.postMessage(id+"","*")},global.addEventListener("message",listener,!1)):defer="onreadystatechange"in cel("script")?function(id){html.appendChild(cel("script")).onreadystatechange=function(){html.removeChild(this),run.call(id)}}:function(id){setTimeout(ctx(run,id,1),0)}),module.exports={set:setTask,clear:clearTask}},function(module,exports){module.exports=function(exec){try{return{e:!1,v:exec()}}catch(e){return{e:!0,v:e}}}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(4),isObject=__webpack_require__(6),newPromiseCapability=__webpack_require__(37);module.exports=function(C,x){if(anObject(C),isObject(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);return(0,promiseCapability.resolve)(x),promiseCapability.promise}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0;var _isIterable2=__webpack_require__(99),_isIterable3=_interopRequireDefault(_isIterable2),_getIterator2=__webpack_require__(34),_getIterator3=_interopRequireDefault(_getIterator2);exports.default=function(){function sliceIterator(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=(0,_getIterator3.default)(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr))return arr;if((0,_isIterable3.default)(Object(arr)))return sliceIterator(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(module,exports){!function(T,K){"object"==typeof module&&module.exports?module.exports=T.document?K(T):K:T.Highcharts=K(T)}("undefined"!=typeof window?window:this,function(T){var K=function(){var a=void 0===T?window:T,C=a.document,F=a.navigator&&a.navigator.userAgent||"",D=C&&C.createElementNS&&!!C.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=/(edge|msie|trident)/i.test(F)&&!a.opera,g=-1!==F.indexOf("Firefox"),e=-1!==F.indexOf("Chrome"),t=g&&4>parseInt(F.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highcharts",version:"6.1.0",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:t,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:r,isWebKit:-1!==F.indexOf("AppleWebKit"),isFirefox:g,isChrome:e,isSafari:!e&&-1!==F.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(F),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:D,win:a,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();!function(a){a.timers=[];var C=a.charts,F=a.doc,D=a.win;a.error=function(r,g){if(r=a.isNumber(r)?"Highcharts error #"+r+": www.highcharts.com/errors/"+r:r,g)throw Error(r);D.console&&console.log(r)},a.Fx=function(a,g,e){this.options=g,this.elem=a,this.prop=e},a.Fx.prototype={dSetter:function(){var l,a=this.paths[0],g=this.paths[1],e=[],t=this.now,w=a.length;if(1===t)e=this.toD;else if(w===g.length&&1>t)for(;w--;)l=parseFloat(a[w]),e[w]=isNaN(l)?g[w]:t*parseFloat(g[w]-l)+l;else e=g;this.elem.attr("d",e,null,!0)},update:function(){var a=this.elem,g=this.prop,e=this.now,t=this.options.step;this[g+"Setter"]?this[g+"Setter"]():a.attr?a.element&&a.attr(g,e,null,!0):a.style[g]=e+this.unit,t&&t.call(a,e,this)},run:function(r,g,e){var t=this,w=t.options,l=function(a){return!l.stopped&&t.step(a)},u=D.requestAnimationFrame||function(a){setTimeout(a,13)},c=function(){for(var d=0;d<a.timers.length;d++)a.timers[d]()||a.timers.splice(d--,1);a.timers.length&&u(c)};r!==g||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=r,this.end=g,this.unit=e,this.now=this.start,this.pos=0,l.elem=this.elem,l.prop=this.prop,l()&&1===a.timers.push(l)&&u(c)):(delete w.curAnim[this.prop],w.complete&&0===a.keys(w.curAnim).length&&w.complete.call(this.elem))},step:function(r){var e,g=+new Date,t=this.options,w=this.elem,l=t.complete,u=t.duration,c=t.curAnim;return w.attr&&!w.element?r=!1:r||g>=u+this.startTime?(this.now=this.end,this.pos=1,this.update(),e=c[this.prop]=!0,a.objectEach(c,function(a){!0!==a&&(e=!1)}),e&&l&&l.call(w),r=!1):(this.pos=t.easing((g-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),r=!0),r},initPath:function(r,g,e){function t(a){var f,c;for(b=a.length;b--;)f="M"===a[b]||"L"===a[b],c=/[a-zA-Z]/.test(a[b+3]),f&&c&&a.splice(b+1,0,a[b+1],a[b+2],a[b+1],a[b+2])}function w(a,f){for(;a.length<p;){a[0]=f[p-a.length];var c=a.slice(0,x);[].splice.apply(a,[0,0].concat(c)),n&&(c=a.slice(a.length-x),[].splice.apply(a,[a.length,0].concat(c)),b--)}a[0]="M"}function l(a,b){for(var c=(p-a.length)/x;0<c&&c--;)f=a.slice().splice(a.length/z-x,x*z),f[0]=b[p-x-c*x],k&&(f[x-6]=f[x-2],f[x-5]=f[x-1]),[].splice.apply(a,[a.length/z,0].concat(f)),n&&c--}g=g||"";var u,p,f,b,c=r.startX,d=r.endX,k=-1<g.indexOf("C"),x=k?7:3;g=g.split(" "),e=e.slice();var J,n=r.isArea,z=n?2:1;if(k&&(t(g),t(e)),c&&d){for(b=0;b<c.length;b++){if(c[b]===d[0]){u=b;break}if(c[0]===d[d.length-c.length+b]){u=b,J=!0;break}}void 0===u&&(g=[])}return g.length&&a.isNumber(u)&&(p=e.length+u*z*x,J?(w(g,e),l(e,g)):(w(e,g),l(g,e))),[g,e]}},a.Fx.prototype.fillSetter=a.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0)},a.merge=function(){var r,e,g=arguments,t={},w=function(e,u){return"object"!=typeof e&&(e={}),a.objectEach(u,function(c,d){!a.isObject(c,!0)||a.isClass(c)||a.isDOMElement(c)?e[d]=u[d]:e[d]=w(e[d]||{},c)}),e};for(!0===g[0]&&(t=g[1],g=Array.prototype.slice.call(g,2)),e=g.length,r=0;r<e;r++)t=w(t,g[r]);return t},a.pInt=function(a,g){return parseInt(a,g||10)},a.isString=function(a){return"string"==typeof a},a.isArray=function(a){return"[object Array]"===(a=Object.prototype.toString.call(a))||"[object Array Iterator]"===a},a.isObject=function(r,g){return!(!r||"object"!=typeof r||g&&a.isArray(r))},a.isDOMElement=function(r){return a.isObject(r)&&"number"==typeof r.nodeType},a.isClass=function(r){var g=r&&r.constructor;return!(!a.isObject(r,!0)||a.isDOMElement(r)||!g||!g.name||"Object"===g.name)},a.isNumber=function(a){return"number"==typeof a&&!isNaN(a)&&1/0>a&&-1/0<a},a.erase=function(a,g){for(var e=a.length;e--;)if(a[e]===g){a.splice(e,1);break}},a.defined=function(a){return void 0!==a&&null!==a},a.attr=function(r,g,e){var t;return a.isString(g)?a.defined(e)?r.setAttribute(g,e):r&&r.getAttribute&&((t=r.getAttribute(g))||"class"!==g||(t=r.getAttribute(g+"Name"))):a.defined(g)&&a.isObject(g)&&a.objectEach(g,function(a,e){r.setAttribute(e,a)}),t},a.splat=function(r){return a.isArray(r)?r:[r]},a.syncTimeout=function(a,g,e){if(g)return setTimeout(a,g,e);a.call(0,e)},a.clearTimeout=function(r){a.defined(r)&&clearTimeout(r)},a.extend=function(a,g){var e;a||(a={});for(e in g)a[e]=g[e];return a},a.pick=function(){var g,e,a=arguments,t=a.length;for(g=0;g<t;g++)if(void 0!==(e=a[g])&&null!==e)return e},a.css=function(r,g){a.isMS&&!a.svg&&g&&void 0!==g.opacity&&(g.filter="alpha(opacity="+100*g.opacity+")"),a.extend(r.style,g)},a.createElement=function(r,g,e,t,w){r=F.createElement(r);var l=a.css;return g&&a.extend(r,g),w&&l(r,{padding:0,border:"none",margin:0}),e&&l(r,e),t&&t.appendChild(r),r},a.extendClass=function(r,g){var e=function(){};return e.prototype=new r,a.extend(e.prototype,g),e},a.pad=function(a,g,e){return Array((g||2)+1-String(a).replace("-","").length).join(e||0)+a},a.relativeLength=function(a,g,e){return/%$/.test(a)?g*parseFloat(a)/100+(e||0):parseFloat(a)},a.wrap=function(a,g,e){var t=a[g];a[g]=function(){var a=Array.prototype.slice.call(arguments),l=arguments,u=this;return u.proceed=function(){t.apply(u,arguments.length?arguments:l)},a.unshift(t),a=e.apply(this,a),u.proceed=null,a}},a.formatSingle=function(r,g,e){var t=/\.([0-9])/,w=a.defaultOptions.lang;return/f$/.test(r)?(e=(e=r.match(t))?e[1]:-1,null!==g&&(g=a.numberFormat(g,e,w.decimalPoint,-1<r.indexOf(",")?w.thousandsSep:""))):g=(e||a.time).dateFormat(r,g),g},a.format=function(r,g,e){for(var l,u,c,d,x,t="{",w=!1,k=[];r&&-1!==(t=r.indexOf(t));){if(l=r.slice(0,t),w){for(l=l.split(":"),u=l.shift().split("."),d=u.length,x=g,c=0;c<d;c++)x&&(x=x[u[c]]);l.length&&(x=a.formatSingle(l.join(":"),x,e)),k.push(x)}else k.push(l);r=r.slice(t+1),t=(w=!w)?"}":"{"}return k.push(r),k.join("")},a.getMagnitude=function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},a.normalizeTickInterval=function(r,g,e,t,w){var l,u=r;for(e=a.pick(e,1),l=r/e,g||(g=w?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===t&&(1===e?g=a.grep(g,function(a){return 0==a%1}):.1>=e&&(g=[1/e]))),t=0;t<g.length&&(u=g[t],!(w&&u*e>=r||!w&&l<=(g[t]+(g[t+1]||g[t]))/2));t++);return u=a.correctFloat(u*e,-Math.round(Math.log(.001)/Math.LN10))},a.stableSort=function(a,g){var t,w,e=a.length;for(w=0;w<e;w++)a[w].safeI=w;for(a.sort(function(a,e){return t=g(a,e),0===t?a.safeI-e.safeI:t}),w=0;w<e;w++)delete a[w].safeI},a.arrayMin=function(a){for(var g=a.length,e=a[0];g--;)a[g]<e&&(e=a[g]);return e},a.arrayMax=function(a){for(var g=a.length,e=a[0];g--;)a[g]>e&&(e=a[g]);return e},a.destroyObjectProperties=function(r,g){a.objectEach(r,function(a,t){a&&a!==g&&a.destroy&&a.destroy(),delete r[t]})},a.discardElement=function(r){var g=a.garbageBin;g||(g=a.createElement("div")),r&&g.appendChild(r),g.innerHTML=""},a.correctFloat=function(a,g){return parseFloat(a.toPrecision(g||14))},a.setAnimation=function(r,g){g.renderer.globalAnimation=a.pick(r,g.options.chart.animation,!0)},a.animObject=function(r){return a.isObject(r)?a.merge(r):{duration:r?500:0}},a.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},a.numberFormat=function(r,g,e,t){r=+r||0,g=+g;var u,c,w=a.defaultOptions.lang,l=(r.toString().split(".")[1]||"").split("e")[0].length,d=r.toString().split("e");return-1===g?g=Math.min(l,20):a.isNumber(g)?g&&d[1]&&0>d[1]&&(u=g+ +d[1],0<=u?(d[0]=(+d[0]).toExponential(u).split("e")[0],g=u):(d[0]=d[0].split(".")[0]||0,r=20>g?(d[0]*Math.pow(10,d[1])).toFixed(g):0,d[1]=0)):g=2,c=(Math.abs(d[1]?d[0]:r)+Math.pow(10,-Math.max(g,l)-1)).toFixed(g),l=String(a.pInt(c)),u=3<l.length?l.length%3:0,e=a.pick(e,w.decimalPoint),t=a.pick(t,w.thousandsSep),r=(0>r?"-":"")+(u?l.substr(0,u)+t:""),r+=l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+t),g&&(r+=e+c.slice(-g)),d[1]&&0!=+r&&(r+="e"+d[1]),r},Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)},a.getStyle=function(r,g,e){return"width"===g?Math.min(r.offsetWidth,r.scrollWidth)-a.getStyle(r,"padding-left")-a.getStyle(r,"padding-right"):"height"===g?Math.min(r.offsetHeight,r.scrollHeight)-a.getStyle(r,"padding-top")-a.getStyle(r,"padding-bottom"):(D.getComputedStyle||a.error(27,!0),(r=D.getComputedStyle(r,void 0))&&(r=r.getPropertyValue(g),a.pick(e,"opacity"!==g)&&(r=a.pInt(r))),r)},a.inArray=function(r,g,e){return(a.indexOfPolyfill||Array.prototype.indexOf).call(g,r,e)},a.grep=function(r,g){return(a.filterPolyfill||Array.prototype.filter).call(r,g)},a.find=Array.prototype.find?function(a,g){return a.find(g)}:function(a,g){var e,t=a.length;for(e=0;e<t;e++)if(g(a[e],e))return a[e]},a.some=function(r,g,e){return(a.somePolyfill||Array.prototype.some).call(r,g,e)},a.map=function(a,g){for(var e=[],t=0,w=a.length;t<w;t++)e[t]=g.call(a[t],a[t],t,a);return e},a.keys=function(r){return(a.keysPolyfill||Object.keys).call(void 0,r)},a.reduce=function(r,g,e){return(a.reducePolyfill||Array.prototype.reduce).call(r,g,e)},a.offset=function(a){var g=F.documentElement;return a=a.parentElement?a.getBoundingClientRect():{top:0,left:0},{top:a.top+(D.pageYOffset||g.scrollTop)-(g.clientTop||0),left:a.left+(D.pageXOffset||g.scrollLeft)-(g.clientLeft||0)}},a.stop=function(r,g){for(var e=a.timers.length;e--;)a.timers[e].elem!==r||g&&g!==a.timers[e].prop||(a.timers[e].stopped=!0)},a.each=function(r,g,e){return(a.forEachPolyfill||Array.prototype.forEach).call(r,g,e)},a.objectEach=function(a,g,e){for(var t in a)a.hasOwnProperty(t)&&g.call(e||a[t],a[t],t,a)},a.addEvent=function(r,g,e){var t,w=r.addEventListener||a.addEventListenerPolyfill;return t="function"==typeof r&&r.prototype?r.prototype.protoEvents=r.prototype.protoEvents||{}:r.hcEvents=r.hcEvents||{},w&&w.call(r,g,e,!1),t[g]||(t[g]=[]),t[g].push(e),function(){a.removeEvent(r,g,e)}},a.removeEvent=function(r,g,e){function t(c,d){var k=r.removeEventListener||a.removeEventListenerPolyfill;k&&k.call(r,c,d,!1)}function w(c){var d,k;r.nodeName&&(g?(d={},d[g]=!0):d=c,a.objectEach(d,function(a,d){if(c[d])for(k=c[d].length;k--;)t(d,c[d][k])}))}var l,u;a.each(["protoEvents","hcEvents"],function(c){var d=r[c];d&&(g?(l=d[g]||[],e?(u=a.inArray(e,l),-1<u&&(l.splice(u,1),d[g]=l),t(g,e)):(w(d),d[g]=[])):(w(d),r[c]={}))})},a.fireEvent=function(r,g,e,t){var w,l,u,c,d;e=e||{},F.createEvent&&(r.dispatchEvent||r.fireEvent)?(w=F.createEvent("Events"),w.initEvent(g,!0,!0),a.extend(w,e),r.dispatchEvent?r.dispatchEvent(w):r.fireEvent(g,w)):a.each(["protoEvents","hcEvents"],function(k){if(r[k])for(l=r[k][g]||[],u=l.length,e.target||a.extend(e,{preventDefault:function(){e.defaultPrevented=!0},target:r,type:g}),c=0;c<u;c++)(d=l[c])&&!1===d.call(r,e)&&e.preventDefault()}),t&&!e.defaultPrevented&&t.call(r,e)},a.animate=function(r,g,e){var t,l,u,c,w="";a.isObject(e)||(c=arguments,e={duration:c[2],easing:c[3],complete:c[4]}),a.isNumber(e.duration)||(e.duration=400),e.easing="function"==typeof e.easing?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=a.merge(g),a.objectEach(g,function(c,k){a.stop(r,k),u=new a.Fx(r,e,k),l=null,"d"===k?(u.paths=u.initPath(r,r.d,g.d),u.toD=g.d,t=0,l=1):r.attr?t=r.attr(k):(t=parseFloat(a.getStyle(r,k))||0,"opacity"!==k&&(w="px")),l||(l=c),l&&l.match&&l.match("px")&&(l=l.replace(/px/g,"")),u.run(t,l,w)})},a.seriesType=function(r,g,e,t,w){var l=a.getOptions(),u=a.seriesTypes;return l.plotOptions[r]=a.merge(l.plotOptions[g],e),u[r]=a.extendClass(u[g]||function(){},t),u[r].prototype.type=r,w&&(u[r].prototype.pointClass=a.extendClass(a.Point,w)),u[r]},a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),g=0;return function(){return"highcharts-"+a+"-"+g++}}(),D.jQuery&&(D.jQuery.fn.highcharts=function(){var r=[].slice.call(arguments);if(this[0])return r[0]?(new(a[a.isString(r[0])?r.shift():"Chart"])(this[0],r[0],r[1]),this):C[a.attr(this[0],"data-highcharts-chart")]})}(K),function(a){var C=a.each,F=a.isNumber,D=a.map,r=a.merge,g=a.pInt;a.Color=function(e){if(!(this instanceof a.Color))return new a.Color(e);this.init(e)},a.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[g(a[1]),g(a[2]),g(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[g(a[1]),g(a[2]),g(a[3]),1]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(e){var g,w,l,u;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=D(e.stops,function(c){return new a.Color(c[1])});else if(e&&e.charAt&&"#"===e.charAt()&&(g=e.length,e=parseInt(e.substr(1),16),7===g?w=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===g&&(w=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!w)for(l=this.parsers.length;l--&&!w;)u=this.parsers[l],(g=u.regex.exec(e))&&(w=u.parse(g));this.rgba=w||[]},get:function(a){var l,e=this.input,g=this.rgba;return this.stops?(l=r(e),l.stops=[].concat(l.stops),C(this.stops,function(e,c){l.stops[c]=[l.stops[c][0],e.get(a)]})):l=g&&F(g[0])?"rgb"===a||!a&&1===g[3]?"rgb("+g[0]+","+g[1]+","+g[2]+")":"a"===a?g[3]:"rgba("+g.join(",")+")":e,l},brighten:function(a){var e,w=this.rgba;if(this.stops)C(this.stops,function(e){e.brighten(a)});else if(F(a)&&0!==a)for(e=0;3>e;e++)w[e]+=g(255*a),0>w[e]&&(w[e]=0),255<w[e]&&(w[e]=255);return this},setOpacity:function(a){return this.rgba[3]=a,this},tweenTo:function(a,g){var e=this.rgba,l=a.rgba;return l.length&&e&&e.length?(a=1!==l[3]||1!==e[3],g=(a?"rgba(":"rgb(")+Math.round(l[0]+(e[0]-l[0])*(1-g))+","+Math.round(l[1]+(e[1]-l[1])*(1-g))+","+Math.round(l[2]+(e[2]-l[2])*(1-g))+(a?","+(l[3]+(e[3]-l[3])*(1-g)):"")+")"):g=a.input||"none",g}},a.color=function(e){return new a.Color(e)}}(K),function(a){var C,F,D=a.addEvent,r=a.animate,g=a.attr,e=a.charts,t=a.color,w=a.css,l=a.createElement,u=a.defined,c=a.deg2rad,d=a.destroyObjectProperties,k=a.doc,x=a.each,p=a.extend,f=a.erase,b=a.grep,n=a.hasTouch,z=a.inArray,J=a.isArray,q=a.isFirefox,L=a.isMS,B=a.isObject,H=a.isString,m=a.isWebKit,E=a.merge,A=a.noop,M=a.objectEach,G=a.pick,h=a.pInt,v=a.removeEvent,Q=a.stop,P=a.svg,I=a.SVG_NS,O=a.symbolSizes,N=a.win;C=a.SVGElement=function(){return this},p(C.prototype,{opacity:1,SVG_NS:I,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(a,h){this.element="span"===h?l(h):k.createElementNS(this.SVG_NS,h),this.renderer=a},animate:function(y,h,b){return h=a.animObject(G(h,this.renderer.globalAnimation,!0)),0!==h.duration?(b&&(h.complete=b),r(this,y,h)):(this.attr(y,null,b),h.step&&h.step.call(this)),this},complexColor:function(y,h,b){var v,c,d,m,I,p,A,n,k,R,q,P,f=this.renderer,z=[];a.fireEvent(this.renderer,"complexColor",{args:arguments},function(){y.radialGradient?c="radialGradient":y.linearGradient&&(c="linearGradient"),c&&(d=y[c],I=f.gradients,A=y.stops,R=b.radialReference,J(d)&&(y[c]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===c&&R&&!u(d.gradientUnits)&&(m=d,d=E(d,f.getRadialAttr(R,m),{gradientUnits:"userSpaceOnUse"})),M(d,function(a,y){"id"!==y&&z.push(y,a)}),M(A,function(a){z.push(a)}),z=z.join(","),I[z]?q=I[z].attr("id"):(d.id=q=a.uniqueKey(),I[z]=p=f.createElement(c).attr(d).add(f.defs),p.radAttr=m,p.stops=[],x(A,function(y){0===y[1].indexOf("rgba")?(v=a.color(y[1]),n=v.get("rgb"),k=v.get("a")):(n=y[1],k=1),y=f.createElement("stop").attr({offset:y[0],"stop-color":n,"stop-opacity":k}).add(p),p.stops.push(y)})),P="url("+f.url+"#"+q+")",b.setAttribute(h,P),b.gradient=z,y.toString=function(){return P})})},applyTextOutline:function(y){var b,v,c,d,m,h=this.element;if(-1!==y.indexOf("contrast")&&(y=y.replace(/contrast/g,this.renderer.getContrast(h.style.fill))),y=y.split(" "),v=y[y.length-1],(c=y[0])&&"none"!==c&&a.svg){for(this.fakeTS=!0,y=[].slice.call(h.getElementsByTagName("tspan")),this.ySetter=this.xSetter,c=c.replace(/(^[\d\.]+)(.*?)$/g,function(a,y,h){return 2*y+h}),m=y.length;m--;)b=y[m],"highcharts-text-outline"===b.getAttribute("class")&&f(y,h.removeChild(b));d=h.firstChild,x(y,function(a,y){0===y&&(a.setAttribute("x",h.getAttribute("x")),y=h.getAttribute("y"),a.setAttribute("y",y||0),null===y&&h.setAttribute("y",0)),a=a.cloneNode(1),g(a,{class:"highcharts-text-outline",fill:v,stroke:v,"stroke-width":c,"stroke-linejoin":"round"}),h.insertBefore(a,d)})}},attr:function(a,h,b,c){var y,v,m,I,f=this.element,d=this;return"string"==typeof a&&void 0!==h&&(y=a,a={},a[y]=h),"string"==typeof a?d=(this[a+"Getter"]||this._defaultGetter).call(this,a,f):(M(a,function(y,h){m=!1,c||Q(this,h),this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(h)&&(v||(this.symbolAttr(a),v=!0),m=!0),!this.rotation||"x"!==h&&"y"!==h||(this.doTransform=!0),m||(I=this[h+"Setter"]||this._defaultSetter,I.call(this,y,h,f),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(h)&&this.updateShadows(h,y,I))},this),this.afterSetters()),b&&b.call(this),d},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(a,h,b){for(var y=this.shadows,c=y.length;c--;)b.call(y[c],"height"===a?Math.max(h-(y[c].cutHeight||0),0):"d"===a?this.d:h,a,y[c])},addClass:function(a,h){var y=this.attr("class")||"";return-1===y.indexOf(a)&&(h||(a=(y+(y?" ":"")+a).replace(" "," ")),this.attr("class",a)),this},hasClass:function(a){return-1!==z(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var y=this;x("x y r start end width height innerR anchorX anchorY".split(" "),function(h){y[h]=G(a[h],y[h])}),y.attr({d:y.renderer.symbols[y.symbolName](y.x,y.y,y.width,y.height,y)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,h){var y;return h=h||a.strokeWidth||0,y=Math.round(h)%2/2,a.x=Math.floor(a.x||this.x||0)+y,a.y=Math.floor(a.y||this.y||0)+y,a.width=Math.floor((a.width||this.width||0)-2*y),a.height=Math.floor((a.height||this.height||0)-2*y),u(a.strokeWidth)&&(a.strokeWidth=h),a},css:function(a){var f,d,y=this.styles,b={},c=this.element,v="",m=!y,I=["textOutline","textOverflow","width"];return a&&a.color&&(a.fill=a.color),y&&M(a,function(a,h){a!==y[h]&&(b[h]=a,m=!0)}),m&&(y&&(a=p(y,b)),f=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===c.nodeName.toLowerCase()&&h(a.width),this.styles=a,f&&!P&&this.renderer.forExport&&delete a.width,c.namespaceURI===this.SVG_NS?(d=function(a,y){return"-"+y.toLowerCase()},M(a,function(a,y){-1===z(y,I)&&(v+=y.replace(/([A-Z])/g,d)+":"+a+";")}),v&&g(c,"style",v)):w(c,a),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))),this},strokeWidth:function(){return this["stroke-width"]||0},on:function(a,h){var y=this,b=y.element;return n&&"click"===a?(b.ontouchstart=function(a){y.touchEventFired=Date.now(),a.preventDefault(),h.call(b,a)},b.onclick=function(a){(-1===N.navigator.userAgent.indexOf("Android")||1100<Date.now()-(y.touchEventFired||0))&&h.call(b,a)}):b["on"+a]=h,this},setRadialReference:function(a){var y=this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,y&&y.radAttr&&y.animate(this.renderer.getRadialAttr(a,y.radAttr)),this},translate:function(a,h){return this.attr({translateX:a,translateY:h})},invert:function(a){return this.inverted=a,this.updateTransform(),this},updateTransform:function(){var a=this.translateX||0,h=this.translateY||0,b=this.scaleX,c=this.scaleY,v=this.inverted,f=this.rotation,d=this.matrix,m=this.element;v&&(a+=this.width,h+=this.height),a=["translate("+a+","+h+")"],u(d)&&a.push("matrix("+d.join(",")+")"),v?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+G(this.rotationOriginX,m.getAttribute("x"),0)+" "+G(this.rotationOriginY,m.getAttribute("y")||0)+")"),(u(b)||u(c))&&a.push("scale("+G(b,1)+" "+G(c,1)+")"),a.length&&m.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;return a.parentNode.appendChild(a),this},align:function(a,h,b){var y,c,v,d,m={};c=this.renderer,v=c.alignedObjects;var I,p;return a?(this.alignOptions=a,this.alignByTranslate=h,(!b||H(b))&&(this.alignTo=y=b||"renderer",f(v,this),v.push(this),b=null)):(a=this.alignOptions,h=this.alignByTranslate,y=this.alignTo),b=G(b,c[y],c),y=a.align,c=a.verticalAlign,v=(b.x||0)+(a.x||0),d=(b.y||0)+(a.y||0),"right"===y?I=1:"center"===y&&(I=2),I&&(v+=(b.width-(a.width||0))/I),m[h?"translateX":"x"]=Math.round(v),"bottom"===c?p=1:"middle"===c&&(p=2),p&&(d+=(b.height-(a.height||0))/p),m[h?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](m),this.placed=!0,this.alignAttr=m,this},getBBox:function(a,h){var y,v,m,A,q,b=this.renderer,f=this.element,d=this.styles,I=this.textStr,n=b.cache,k=b.cacheKeys;if(h=G(h,this.rotation),v=h*c,m=d&&d.fontSize,u(I)&&(q=I.toString(),-1===q.indexOf("<")&&(q=q.replace(/[0-9]/g,"0")),q+=["",h||0,m,this.textWidth,d&&d.textOverflow].join()),q&&!a&&(y=n[q]),!y){if(f.namespaceURI===this.SVG_NS||b.forExport){try{(A=this.fakeTS&&function(a){x(f.querySelectorAll(".highcharts-text-outline"),function(y){y.style.display=a})})&&A("none"),y=f.getBBox?p({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight},A&&A("")}catch(W){}(!y||0>y.width)&&(y={width:0,height:0})}else y=this.htmlGetBBox();if(b.isSVG&&(a=y.width,b=y.height,d&&"11px"===d.fontSize&&17===Math.round(b)&&(y.height=b=14),h&&(y.width=Math.abs(b*Math.sin(v))+Math.abs(a*Math.cos(v)),y.height=Math.abs(b*Math.cos(v))+Math.abs(a*Math.sin(v)))),q&&0<y.height){for(;250<k.length;)delete n[k.shift()];n[q]||k.push(q),n[q]=y}}return y},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var y=this;y.animate({opacity:0},{duration:a||150,complete:function(){y.attr({y:-9999})}})},add:function(a){var b,y=this.renderer,h=this.element;return a&&(this.parentGroup=a),this.parentInverted=a&&a.inverted,void 0!==this.textStr&&y.buildText(this),this.added=!0,(!a||a.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(a?a.element:y.box).appendChild(h),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(a){var y=a.parentNode;y&&y.removeChild(a)},destroy:function(){var a=this,h=a.element||{},b=a.renderer.isSVG&&"SPAN"===h.nodeName&&a.parentGroup,c=h.ownerSVGElement,v=a.clipPath;if(h.onclick=h.onmouseout=h.onmouseover=h.onmousemove=h.point=null,Q(a),v&&c&&(x(c.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){var h=a.getAttribute("clip-path"),y=v.element.id;(-1<h.indexOf("(#"+y+")")||-1<h.indexOf('("#'+y+'")'))&&a.removeAttribute("clip-path")}),a.clipPath=v.destroy()),a.stops){for(c=0;c<a.stops.length;c++)a.stops[c]=a.stops[c].destroy();a.stops=null}for(a.safeRemoveChild(h),a.destroyShadows();b&&b.div&&0===b.div.childNodes.length;)h=b.parentGroup,a.safeRemoveChild(b.div),delete b.div,b=h;return a.alignTo&&f(a.renderer.alignedObjects,a),M(a,function(h,y){delete a[y]}),null},shadow:function(a,h,b){var c,v,d,m,I,p,y=[],f=this.element;if(a){if(!this.shadows){for(m=G(a.width,3),I=(a.opacity||.15)/m,p=this.parentInverted?"(-1,-1)":"("+G(a.offsetX,1)+", "+G(a.offsetY,1)+")",c=1;c<=m;c++)v=f.cloneNode(0),d=2*m+1-2*c,g(v,{isShadow:"true",stroke:a.color||"#000000","stroke-opacity":I*c,"stroke-width":d,transform:"translate"+p,fill:"none"}),b&&(g(v,"height",Math.max(g(v,"height")-d,0)),v.cutHeight=d),h?h.element.appendChild(v):f.parentNode&&f.parentNode.insertBefore(v,f),y.push(v);this.shadows=y}}else this.destroyShadows();return this},destroyShadows:function(){x(this.shadows||[],function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},xGetter:function(a){return"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy")),this._defaultGetter(a)},_defaultGetter:function(a){return a=G(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},dSetter:function(a,h,b){a&&a.join&&(a=a.join(" ")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[h]!==a&&(b.setAttribute(h,a),this[h]=a)},dashstyleSetter:function(a){var b,y=this["stroke-width"];if("inherit"===y&&(y=1),a=a&&a.toLowerCase()){for(a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),b=a.length;b--;)a[b]=h(a[b])*y;a=a.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.alignValue=a,this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,h,b){this[h]=a,b.setAttribute(h,a)},titleSetter:function(a){var h=this.element.getElementsByTagName("title")[0];h||(h=k.createElementNS(this.SVG_NS,"title"),this.element.appendChild(h)),h.firstChild&&h.removeChild(h.firstChild),h.appendChild(k.createTextNode(String(G(a),"").replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,h,b){"string"==typeof a?b.setAttribute(h,a):a&&this.complexColor(a,h,b)},visibilitySetter:function(a,h,b){"inherit"===a?b.removeAttribute(h):this[h]!==a&&b.setAttribute(h,a),this[h]=a},zIndexSetter:function(a,b){var f,m,I,c=this.renderer,v=this.parentGroup,y=(v||c).element||c.box,d=this.element,c=y===c.box;f=this.added;var p;if(u(a)&&(d.zIndex=a,a=+a,this[b]===a&&(f=!1),this[b]=a),f){for((a=this.zIndex)&&v&&(v.handleZ=!0),b=y.childNodes,p=b.length-1;0<=p&&!m;p--)v=b[p],f=v.zIndex,I=!u(f),v!==d&&(0>a&&I&&!c&&!p?(y.insertBefore(d,b[p]),m=!0):(h(f)<=a||I&&(!u(a)||0<=a))&&(y.insertBefore(d,b[p+1]||null),m=!0));m||(y.insertBefore(d,b[c?3:0]||null),m=!0)}return m},_defaultSetter:function(a,h,b){b.setAttribute(h,a)}}),C.prototype.yGetter=C.prototype.xGetter,C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,h){this[h]=a,this.doTransform=!0},C.prototype["stroke-widthSetter"]=C.prototype.strokeSetter=function(a,h,b){this[h]=a,this.stroke&&this["stroke-width"]?(C.prototype.fillSetter.call(this,this.stroke,"stroke",b),b.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===h&&0===a&&this.hasStroke&&(b.removeAttribute("stroke"),this.hasStroke=!1)},F=a.SVGRenderer=function(){this.init.apply(this,arguments)},p(F.prototype,{Element:C,SVG_NS:I,init:function(a,h,b,c,v,f){var y;c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(c)),y=c.element,a.appendChild(y),g(a,"dir","ltr"),-1===a.innerHTML.indexOf("xmlns")&&g(y,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=y,this.boxWrapper=c,this.alignedObjects=[],this.url=(q||m)&&k.getElementsByTagName("base").length?N.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 6.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=f,this.forExport=v,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(h,b,!1);var d;q&&a.getBoundingClientRect&&(h=function(){w(a,{left:0,top:0}),d=a.getBoundingClientRect(),w(a,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})},h(),this.unSubPixelFix=D(N,"resize",h))},getStyle:function(a){return this.style=p({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,a&&(this.defs=a.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(a){var h=new this.Element;return h.init(this,a),h},draw:A,getRadialAttr:function(a,h){return{cx:a[0]-a[2]/2+h.cx*a[2],cy:a[1]-a[2]/2+h.cy*a[2],r:h.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,h,b,c){var d,p,v=a.rotation,f=b,y=0,m=b.length,I=function(a){h.removeChild(h.firstChild),a&&h.appendChild(k.createTextNode(a))};if(a.rotation=0,f=this.getSpanWidth(a,h),p=f>c){for(;y<=m;)d=Math.ceil((y+m)/2),f=b.substring(0,d)+"\u2026",I(f),f=this.getSpanWidth(a,h),y===m?y=m+1:f>c?m=d-1:y=d;0===m&&I("")}return a.rotation=v,p},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(a){var p,l,O,c=a.element,v=this,f=v.forExport,d=G(a.textStr,"").toString(),y=-1!==d.indexOf("<"),m=c.childNodes,A=g(c,"x"),n=a.styles,q=a.textWidth,E=n&&n.lineHeight,e=n&&n.textOutline,B=n&&"ellipsis"===n.textOverflow,Q=n&&"nowrap"===n.whiteSpace,u=n&&n.fontSize,H=m.length,n=q&&!a.added&&this.box,J=function(a){var b;return b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:u||v.style.fontSize||12,E?h(E):v.fontMetrics(b,a.getAttribute("style")?a:c).h},N=function(a,h){return M(v.escapes,function(b,c){h&&-1!==z(b,h)||(a=a.toString().replace(new RegExp(b,"g"),c))}),a},t=function(a,h){var b;if(b=a.indexOf("<"),a=a.substring(b,a.indexOf(">")-b),-1!==(b=a.indexOf(h+"="))&&(b=b+h.length+1,'"'===(h=a.charAt(b))||"'"===h))return a=a.substr