172 lines
3.1 MiB
172 lines
3.1 MiB
/*!
|
||
* jQuery JavaScript Library v3.6.0
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright OpenJS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2021-03-02T17:08Z
|
||
*/
|
||
!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=[],n=Object.getPrototypeOf,r=i.slice,o=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},a=i.push,s=i.indexOf,l={},c=l.toString,h=l.hasOwnProperty,u=h.toString,d=u.call(Object),p={},f=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},g=function(t){return null!=t&&t===t.window},m=t.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function v(t,e,i){var n,r,o=(i=i||m).createElement("script");if(o.text=t,e)for(n in y)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var x="3.6.0",w=function(t,e){return new w.fn.init(t,e)};function _(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!f(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var t,e,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||f(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&a!==n&&(c&&n&&(w.isPlainObject(n)||(r=Array.isArray(n)))?(i=a[e],o=r&&!Array.isArray(i)?[]:r||w.isPlainObject(i)?i:{},r=!1,a[e]=w.extend(c,o,n)):void 0!==n&&(a[e]=n));return a},w.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==c.call(t))&&(!(e=n(t))||"function"==typeof(i=h.call(e,"constructor")&&e.constructor)&&u.call(i)===d)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){v(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(_(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(_(Object(t))?w.merge(i,"string"==typeof t?[t]:t):a.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:s.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,a=!i;r<o;r++)!e(t[r],r)!==a&&n.push(t[r]);return n},map:function(t,e,i){var n,r,a=0,s=[];if(_(t))for(n=t.length;a<n;a++)null!=(r=e(t[a],a,i))&&s.push(r);else for(a in t)null!=(r=e(t[a],a,i))&&s.push(r);return o(s)},guid:1,support:p}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=i[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var S=
|
||
/*!
|
||
* Sizzle CSS Selector Engine v2.3.6
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://js.foundation/
|
||
*
|
||
* Date: 2021-02-16
|
||
*/
|
||
function(t){var e,i,n,r,o,a,s,l,c,h,u,d,p,f,g,m,y,v,b,x="sizzle"+1*new Date,w=t.document,_=0,S=0,P=lt(),k=lt(),C=lt(),T=lt(),A=function(t,e){return t===e&&(u=!0),0},O={}.hasOwnProperty,M=[],E=M.pop,I=M.push,D=M.push,L=M.slice,j=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",V="\\[[\\x20\\t\\r\\n\\f]*("+R+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+F+"*\\]",z=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+V+")*)|.*)\\)|)",B=new RegExp(F+"+","g"),H=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),X=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),Y=new RegExp(F+"|>"),G=new RegExp(z),U=new RegExp("^"+R+"$"),q={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+V),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},at=xt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(M=L.call(w.childNodes),w.childNodes),M[w.childNodes.length].nodeType}catch(t){D={apply:M.length?function(t,e){I.apply(t,L.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,n,r){var o,s,c,h,u,f,y,v=e&&e.ownerDocument,w=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return n;if(!r&&(d(e),e=e||p,g)){if(11!==w&&(u=Q.exec(t)))if(o=u[1]){if(9===w){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(v&&(c=v.getElementById(o))&&b(e,c)&&c.id===o)return n.push(c),n}else{if(u[2])return D.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&i.getElementsByClassName&&e.getElementsByClassName)return D.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!T[t+" "]&&(!m||!m.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(y=t,v=e,1===w&&(Y.test(t)||X.test(t))){for((v=tt.test(t)&&yt(e.parentNode)||e)===e&&i.scope||((h=e.getAttribute("id"))?h=h.replace(nt,rt):e.setAttribute("id",h=x)),s=(f=a(t)).length;s--;)f[s]=(h?"#"+h:":scope")+" "+bt(f[s]);y=f.join(",")}try{return D.apply(n,v.querySelectorAll(y)),n}catch(e){T(t,!0)}finally{h===x&&e.removeAttribute("id")}}}return l(t.replace(H,"$1"),e,n,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function ct(t){return t[x]=!0,t}function ht(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function dt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(i,n){for(var r,o=t([],i.length,e),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))}))}))}function yt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!$.test(e||i&&i.nodeName||"HTML")},d=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:w;return a!=p&&9===a.nodeType&&a.documentElement?(f=(p=a).documentElement,g=!o(p),w!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),i.scope=ht((function(t){return f.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ht((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ht((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(p.getElementsByClassName),i.getById=ht((function(t){return f.appendChild(t).id=x,!p.getElementsByName||!p.getElementsByName(x).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},y=[],m=[],(i.qsa=J.test(p.querySelectorAll))&&(ht((function(t){var e;f.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ht((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=J.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ht((function(t){i.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),y.push("!=",z)})),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),e=J.test(f.compareDocumentPosition),b=e||J.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==p||t.ownerDocument==w&&b(w,t)?-1:e==p||e.ownerDocument==w&&b(w,e)?1:h?j(h,t)-j(h,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==p?-1:e==p?1:r?-1:o?1:h?j(h,t)-j(h,e):0;if(r===o)return dt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;a[n]===s[n];)n++;return n?dt(a[n],s[n]):a[n]==w?-1:s[n]==w?1:0},p):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),i.matchesSelector&&g&&!T[e+" "]&&(!y||!y.test(e))&&(!m||!m.test(e)))try{var n=v.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){T(e,!0)}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=p&&d(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=p&&d(t);var r=n.attrHandle[e.toLowerCase()],o=r&&O.call(n.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:i.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(nt,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],r=0,o=0;if(u=!i.detectDuplicates,h=!i.sortStable&&t.slice(0),t.sort(A),u){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return h=null,t},r=st.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(n=st.selectors={cacheLength:50,createPseudo:ct,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&G.test(i)&&(e=a(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=P[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+F+"|$)"))&&P(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var r=st.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(B," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var c,h,u,d,p,f,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,y=s&&e.nodeName.toLowerCase(),v=!l&&!s,b=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&v){for(b=(p=(c=(h=(u=(d=m)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===_&&c[1])&&c[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===e){h[t]=[_,p,b];break}}else if(v&&(b=p=(c=(h=(u=(d=e)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===_&&c[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++b||(v&&((h=(u=d[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]=[_,b]),d!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[x]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,i){for(var n,o=r(t,e),a=o.length;a--;)t[n=j(t,o[a])]=!(i[n]=o[a])})):function(t){return r(t,0,i)}):r}},pseudos:{not:ct((function(t){var e=[],i=[],n=s(t.replace(H,"$1"));return n[x]?ct((function(t,e,i,r){for(var o,a=n(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,it),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:ct((function(t){return U.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,i){return[i<0?i+e:i]})),even:mt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:mt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:mt((function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:mt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ft(e);function vt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function xt(t,e,i){var n=e.dir,r=e.next,o=r||n,a=i&&"parentNode"===o,s=S++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||a)return t(e,i,r);return!1}:function(e,i,l){var c,h,u,d=[_,s];if(l){for(;e=e[n];)if((1===e.nodeType||a)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||a)if(h=(u=e[x]||(e[x]={}))[e.uniqueID]||(u[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=h[o])&&c[0]===_&&c[1]===s)return d[2]=c[2];if(h[o]=d,d[2]=t(e,i,l))return!0}return!1}}function wt(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function _t(t,e,i,n,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(i&&!i(o,n,r)||(a.push(o),c&&e.push(s)));return a}function St(t,e,i,n,r,o){return n&&!n[x]&&(n=St(n)),r&&!r[x]&&(r=St(r,o)),ct((function(o,a,s,l){var c,h,u,d=[],p=[],f=a.length,g=o||function(t,e,i){for(var n=0,r=e.length;n<r;n++)st(t,e[n],i);return i}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?g:_t(g,d,t,s,l),y=i?r||(o?t:f||n)?[]:a:m;if(i&&i(m,y,s,l),n)for(c=_t(y,p),n(c,[],s,l),h=c.length;h--;)(u=c[h])&&(y[p[h]]=!(m[p[h]]=u));if(o){if(r||t){if(r){for(c=[],h=y.length;h--;)(u=y[h])&&c.push(m[h]=u);r(null,y=[],c,l)}for(h=y.length;h--;)(u=y[h])&&(c=r?j(o,u):d[h])>-1&&(o[c]=!(a[c]=u))}}else y=_t(y===a?y.splice(f,y.length):y),r?r(null,a,y,l):D.apply(a,y)}))}function Pt(t){for(var e,i,r,o=t.length,a=n.relative[t[0].type],s=a||n.relative[" "],l=a?1:0,h=xt((function(t){return t===e}),s,!0),u=xt((function(t){return j(e,t)>-1}),s,!0),d=[function(t,i,n){var r=!a&&(n||i!==c)||((e=i).nodeType?h(t,i,n):u(t,i,n));return e=null,r}];l<o;l++)if(i=n.relative[t[l].type])d=[xt(wt(d),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[x]){for(r=++l;r<o&&!n.relative[t[r].type];r++);return St(l>1&&wt(d),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),i,l<r&&Pt(t.slice(l,r)),r<o&&Pt(t=t.slice(r)),r<o&&bt(t))}d.push(i)}return wt(d)}return vt.prototype=n.filters=n.pseudos,n.setFilters=new vt,a=st.tokenize=function(t,e){var i,r,o,a,s,l,c,h=k[t+" "];if(h)return e?0:h.slice(0);for(s=t,l=[],c=n.preFilter;s;){for(a in i&&!(r=W.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=X.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(H," ")}),s=s.slice(i.length)),n.filter)!(r=q[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return e?s.length:s?st.error(t):k(t,l).slice(0)},s=st.compile=function(t,e){var i,r=[],o=[],s=C[t+" "];if(!s){for(e||(e=a(t)),i=e.length;i--;)(s=Pt(e[i]))[x]?r.push(s):o.push(s);(s=C(t,function(t,e){var i=e.length>0,r=t.length>0,o=function(o,a,s,l,h){var u,f,m,y=0,v="0",b=o&&[],x=[],w=c,S=o||r&&n.find.TAG("*",h),P=_+=null==w?1:Math.random()||.1,k=S.length;for(h&&(c=a==p||a||h);v!==k&&null!=(u=S[v]);v++){if(r&&u){for(f=0,a||u.ownerDocument==p||(d(u),s=!g);m=t[f++];)if(m(u,a||p,s)){l.push(u);break}h&&(_=P)}i&&((u=!m&&u)&&y--,o&&b.push(u))}if(y+=v,i&&v!==y){for(f=0;m=e[f++];)m(b,x,a,s);if(o){if(y>0)for(;v--;)b[v]||x[v]||(x[v]=E.call(l));x=_t(x)}D.apply(l,x),h&&!o&&x.length>0&&y+e.length>1&&st.uniqueSort(l)}return h&&(_=P,c=w),b};return i?ct(o):o}(o,r))).selector=t}return s},l=st.select=function(t,e,i,r){var o,l,c,h,u,d="function"==typeof t&&t,p=!r&&a(t=d.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,it),e)||[])[0]))return i;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=q.needsContext.test(t)?0:l.length;o--&&(c=l[o],!n.relative[h=c.type]);)if((u=n.find[h])&&(r=u(c.matches[0].replace(et,it),tt.test(l[0].type)&&yt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return D.apply(i,r),i;break}}return(d||s(t,p))(r,e,!g,i,!e||tt.test(t)&&yt(e.parentNode)||e),i},i.sortStable=x.split("").sort(A).join("")===x,i.detectDuplicates=!!u,d(),i.sortDetached=ht((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ht((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ht((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ht((function(t){return null==t.getAttribute("disabled")}))||ut(N,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),st}(t);w.find=S,w.expr=S.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=S.uniqueSort,w.text=S.getText,w.isXMLDoc=S.isXML,w.contains=S.contains,w.escapeSelector=S.escape;var P=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&w(t).is(i))break;n.push(t)}return n},k=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},C=w.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,i){return f(e)?w.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?w.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?w.grep(t,(function(t){return s.call(e,t)>-1!==i})):w.filter(e,t,i)}w.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?w.find.matchesSelector(n,t)?[n]:[]:w.find.matches(t,w.grep(e,(function(t){return 1===t.nodeType})))},w.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(w(t).filter((function(){for(e=0;e<n;e++)if(w.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)w.find(t,r[e],i);return n>1?w.uniqueSort(i):i},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&C.test(t)?w(t):t||[],!1).length}});var M,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||M,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:E.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),A.test(n[1])&&w.isPlainObject(e))for(n in e)f(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=m.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):f(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,M=w(m);var I=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,o=[],a="string"!=typeof t&&w(t);if(!C.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&w.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(w(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return P(t,"parentNode")},parentsUntil:function(t,e,i){return P(t,"parentNode",i)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return P(t,"nextSibling")},prevAll:function(t){return P(t,"previousSibling")},nextUntil:function(t,e,i){return P(t,"nextSibling",i)},prevUntil:function(t,e,i){return P(t,"previousSibling",i)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},(function(t,e){w.fn[t]=function(i,n){var r=w.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=w.filter(n,r)),this.length>1&&(D[t]||w.uniqueSort(r),I.test(t)&&r.reverse()),this.pushStack(r)}}));var j=/[^\x20\t\r\n\f]+/g;function N(t){return t}function F(t){throw t}function R(t,e,i,n){var r;try{t&&f(r=t.promise)?r.call(t).done(e).fail(i):t&&f(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(j)||[],(function(t,i){e[i]=!0})),e}(t):w.extend({},t);var e,i,n,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,n=e=!0;a.length;s=-1)for(i=a.shift();++s<o.length;)!1===o[s].apply(i[0],i[1])&&t.stopOnFalse&&(s=o.length,i=!1);t.memory||(i=!1),e=!1,r&&(o=i?[]:"")},c={add:function(){return o&&(i&&!e&&(s=o.length-1,a.push(i)),function e(i){w.each(i,(function(i,n){f(n)?t.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==b(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return w.each(arguments,(function(t,e){for(var i;(i=w.inArray(e,o,i))>-1;)o.splice(i,1),i<=s&&s--})),this},has:function(t){return t?w.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=a=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],a.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},w.extend({Deferred:function(e){var i=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return w.Deferred((function(e){w.each(i,(function(i,n){var r=f(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&f(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,r){var o=0;function a(e,i,n,r){return function(){var s=this,l=arguments,c=function(){var t,c;if(!(e<o)){if((t=n.apply(s,l))===i.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,f(c)?r?c.call(t,a(o,i,N,r),a(o,i,F,r)):(o++,c.call(t,a(o,i,N,r),a(o,i,F,r),a(o,i,N,i.notifyWith))):(n!==N&&(s=void 0,l=[t]),(r||i.resolveWith)(s,l))}},h=r?c:function(){try{c()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,h.stackTrace),e+1>=o&&(n!==F&&(s=void 0,l=[t]),i.rejectWith(s,l))}};e?h():(w.Deferred.getStackHook&&(h.stackTrace=w.Deferred.getStackHook()),t.setTimeout(h))}}return w.Deferred((function(t){i[0][3].add(a(0,t,f(r)?r:N,t.notifyWith)),i[1][3].add(a(0,t,f(e)?e:N)),i[2][3].add(a(0,t,f(n)?n:F))})).promise()},promise:function(t){return null!=t?w.extend(t,r):r}},o={};return w.each(i,(function(t,e){var a=e[2],s=e[5];r[e[1]]=a.add,s&&a.add((function(){n=s}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),o=r.call(arguments),a=w.Deferred(),s=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?r.call(arguments):i,--e||a.resolveWith(n,o)}};if(e<=1&&(R(t,a.done(s(i)).resolve,a.reject,!e),"pending"===a.state()||f(o[i]&&o[i].then)))return a.then();for(;i--;)R(o[i],s(i),a.reject);return a.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&V.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},w.readyException=function(e){t.setTimeout((function(){throw e}))};var z=w.Deferred();function B(){m.removeEventListener("DOMContentLoaded",B),t.removeEventListener("load",B),w.ready()}w.fn.ready=function(t){return z.then(t).catch((function(t){w.readyException(t)})),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==t&&--w.readyWait>0||z.resolveWith(m,[w]))}}),w.ready.then=z.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",B),t.addEventListener("load",B));var H=function(t,e,i,n,r,o,a){var s=0,l=t.length,c=null==i;if("object"===b(i))for(s in r=!0,i)H(t,e,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,f(n)||(a=!0),c&&(a?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(w(t),i)})),e))for(;s<l;s++)e(t[s],i,a?n:n.call(t[s],s,e(t[s],i)));return r?t:c?e.call(t):l?e(t[0],i):o},W=/^-ms-/,X=/-([a-z])/g;function Y(t,e){return e.toUpperCase()}function G(t){return t.replace(W,"ms-").replace(X,Y)}var U=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function q(){this.expando=w.expando+q.uid++}q.uid=1,q.prototype={cache:function(t){var e=t[this.expando];return e||(e={},U(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[G(e)]=i;else for(n in e)r[G(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][G(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(G):(e=G(e))in n?[e]:e.match(j)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||w.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var $=new q,K=new q,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Q(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Z.test(t)?JSON.parse(t):t)}(i)}catch(t){}K.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return K.hasData(t)||$.hasData(t)},data:function(t,e,i){return K.access(t,e,i)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,i){return $.access(t,e,i)},_removeData:function(t,e){$.remove(t,e)}}),w.fn.extend({data:function(t,e){var i,n,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=K.get(o),1===o.nodeType&&!$.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&(n=G(n.slice(5)),Q(o,n,r[n]));$.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){K.set(this,t)})):H(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=K.get(o,t))||void 0!==(i=Q(o,t))?i:void 0;this.each((function(){K.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),w.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=$.get(t,e),i&&(!n||Array.isArray(i)?n=$.access(t,e,w.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),n=i.length,r=i.shift(),o=w._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,(function(){w.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return $.get(t,i)||$.access(t,i,{empty:w.Callbacks("once memory").add((function(){$.remove(t,[e+"queue",i])}))})}}),w.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?w.queue(this[0],t):void 0===e?this:this.each((function(){var i=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&w.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){w.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=w.Deferred(),o=this,a=this.length,s=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=$.get(o[a],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=m.documentElement,rt=function(t){return w.contains(t.ownerDocument,t)},ot={composed:!0};nt.getRootNode&&(rt=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===w.css(t,"display")};function st(t,e,i,n){var r,o,a=20,s=n?function(){return n.cur()}:function(){return w.css(t,e,"")},l=s(),c=i&&i[3]||(w.cssNumber[e]?"":"px"),h=t.nodeType&&(w.cssNumber[e]||"px"!==c&&+l)&&et.exec(w.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;a--;)w.style(t,e,h+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),h/=o;h*=2,w.style(t,e,h+c),i=i||[]}return i&&(h=+h||+l||0,r=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=r)),r}var lt={};function ct(t){var e,i=t.ownerDocument,n=t.nodeName,r=lt[n];return r||(e=i.body.appendChild(i.createElement(n)),r=w.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),lt[n]=r,r)}function ht(t,e){for(var i,n,r=[],o=0,a=t.length;o<a;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(r[o]=$.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&at(n)&&(r[o]=ct(n))):"none"!==i&&(r[o]="none",$.set(n,"display",i)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}w.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){at(this)?w(this).show():w(this).hide()}))}});var ut,dt,pt=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,gt=/^$|^module$|\/(?:java|ecma)script/i;ut=m.createDocumentFragment().appendChild(m.createElement("div")),(dt=m.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ut.appendChild(dt),p.checkClone=ut.cloneNode(!0).cloneNode(!0).lastChild.checked,ut.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!ut.cloneNode(!0).lastChild.defaultValue,ut.innerHTML="<option></option>",p.option=!!ut.lastChild;var mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function yt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?w.merge([t],i):i}function vt(t,e){for(var i=0,n=t.length;i<n;i++)$.set(t[i],"globalEval",!e||$.get(e[i],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,p.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var bt=/<|&#?\w+;/;function xt(t,e,i,n,r){for(var o,a,s,l,c,h,u=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===b(o))w.merge(d,o.nodeType?[o]:o);else if(bt.test(o)){for(a=a||u.appendChild(e.createElement("div")),s=(ft.exec(o)||["",""])[1].toLowerCase(),l=mt[s]||mt._default,a.innerHTML=l[1]+w.htmlPrefilter(o)+l[2],h=l[0];h--;)a=a.lastChild;w.merge(d,a.childNodes),(a=u.firstChild).textContent=""}else d.push(e.createTextNode(o));for(u.textContent="",p=0;o=d[p++];)if(n&&w.inArray(o,n)>-1)r&&r.push(o);else if(c=rt(o),a=yt(u.appendChild(o),"script"),c&&vt(a),i)for(h=0;o=a[h++];)gt.test(o.type||"")&&i.push(o);return u}var wt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function St(){return!1}function Pt(t,e){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===e)}function kt(t,e,i,n,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)kt(t,s,i,n,e[s],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=St;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return w().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),t.each((function(){w.event.add(this,e,r,n,i)}))}function Ct(t,e,i){i?($.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var n,o,a=$.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=r.call(arguments),$.set(this,e,a),n=i(this,e),this[e](),a!==(o=$.get(this,e))||n?$.set(this,e,!1):o={},a!==o)return t.stopImmediatePropagation(),t.preventDefault(),o&&o.value}else a.length&&($.set(this,e,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===$.get(t,e)&&w.event.add(t,e,_t)}w.event={global:{},add:function(t,e,i,n,r){var o,a,s,l,c,h,u,d,p,f,g,m=$.get(t);if(U(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&w.find.matchesSelector(nt,r),i.guid||(i.guid=w.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(j)||[""]).length;c--;)p=g=(s=wt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(u=w.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=w.event.special[p]||{},h=w.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,f,a)||t.addEventListener&&t.addEventListener(p,a)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,h):d.push(h),w.event.global[p]=!0)},remove:function(t,e,i,n,r){var o,a,s,l,c,h,u,d,p,f,g,m=$.hasData(t)&&$.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(j)||[""]).length;c--;)if(p=g=(s=wt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(u=w.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)h=d[o],!r&&g!==h.origType||i&&i.guid!==h.guid||s&&!s.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(o,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));a&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||w.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)w.event.remove(t,p+e[c],i,n,!0);w.isEmptyObject(l)&&$.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,a,s=new Array(arguments.length),l=w.event.fix(t),c=($.get(this,"events")||Object.create(null))[l.type]||[],h=w.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,c),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((w.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,o,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},i=0;i<l;i++)void 0===a[r=(n=e[i]).selector+" "]&&(a[r]=n.needsContext?w(r,this).index(c)>-1:w.find(r,this,null,[c]).length),a[r]&&o.push(n);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:f(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return pt.test(e.type)&&e.click&&T(e,"input")&&Ct(e,"click",_t),!1},trigger:function(t){var e=this||t;return pt.test(e.type)&&e.click&&T(e,"input")&&Ct(e,"click"),!0},_default:function(t){var e=t.target;return pt.test(e.type)&&e.click&&T(e,"input")&&$.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?_t:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=_t,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=_t,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=_t,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(t,e){w.event.special[t]={setup:function(){return Ct(this,t,Pt),!1},trigger:function(){return Ct(this,t),!0},_default:function(){return!0},delegateType:e}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===n||w.contains(n,r))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),w.fn.extend({on:function(t,e,i,n){return kt(this,t,e,i,n)},one:function(t,e,i,n){return kt(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,w(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=St),this.each((function(){w.event.remove(this,t,i,e)}))}});var Tt=/<script|<style|<link/i,At=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Mt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Et(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function It(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Dt(t,e){var i,n,r,o,a,s;if(1===e.nodeType){if($.hasData(t)&&(s=$.get(t).events))for(r in $.remove(e,"handle events"),s)for(i=0,n=s[r].length;i<n;i++)w.event.add(e,r,s[r][i]);K.hasData(t)&&(o=K.access(t),a=w.extend({},o),K.set(e,a))}}function Lt(t,e){var i=e.nodeName.toLowerCase();"input"===i&&pt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function jt(t,e,i,n){e=o(e);var r,a,s,l,c,h,u=0,d=t.length,g=d-1,m=e[0],y=f(m);if(y||d>1&&"string"==typeof m&&!p.checkClone&&At.test(m))return t.each((function(r){var o=t.eq(r);y&&(e[0]=m.call(this,r,o.html())),jt(o,e,i,n)}));if(d&&(a=(r=xt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=a),a||n)){for(l=(s=w.map(yt(r,"script"),Et)).length;u<d;u++)c=r,u!==g&&(c=w.clone(c,!0,!0),l&&w.merge(s,yt(c,"script"))),i.call(t[u],c,u);if(l)for(h=s[s.length-1].ownerDocument,w.map(s,It),u=0;u<l;u++)c=s[u],gt.test(c.type||"")&&!$.access(c,"globalEval")&&w.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):v(c.textContent.replace(Ot,""),c,h))}return t}function Nt(t,e,i){for(var n,r=e?w.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||w.cleanData(yt(n)),n.parentNode&&(i&&rt(n)&&vt(yt(n,"script")),n.parentNode.removeChild(n));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,o,a,s=t.cloneNode(!0),l=rt(t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(a=yt(s),n=0,r=(o=yt(t)).length;n<r;n++)Lt(o[n],a[n]);if(e)if(i)for(o=o||yt(t),a=a||yt(s),n=0,r=o.length;n<r;n++)Dt(o[n],a[n]);else Dt(t,s);return(a=yt(s,"script")).length>0&&vt(a,!l&&yt(t,"script")),s},cleanData:function(t){for(var e,i,n,r=w.event.special,o=0;void 0!==(i=t[o]);o++)if(U(i)){if(e=i[$.expando]){if(e.events)for(n in e.events)r[n]?w.event.remove(i,n):w.removeEvent(i,n,e.handle);i[$.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Nt(this,t,!0)},remove:function(t){return Nt(this,t)},text:function(t){return H(this,(function(t){return void 0===t?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return jt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)}))},prepend:function(){return jt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return jt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return jt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(yt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return w.clone(this,t,e)}))},html:function(t){return H(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!mt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(w.cleanData(yt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return jt(this,arguments,(function(e){var i=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(yt(this)),i&&i.replaceChild(e,this))}),t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){w.fn[t]=function(t){for(var i,n=[],r=w(t),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),w(r[s])[e](i),a.apply(n,i.get());return this.pushStack(n)}}));var Ft=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Rt=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Vt=function(t,e,i){var n,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=o[r];return n},zt=new RegExp(it.join("|"),"i");function Bt(t,e,i){var n,r,o,a,s=t.style;return(i=i||Rt(t))&&(""!==(a=i.getPropertyValue(e)||i[e])||rt(t)||(a=w.style(t,e)),!p.pixelBoxStyles()&&Ft.test(a)&&zt.test(e)&&(n=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Ht(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(c).appendChild(h);var e=t.getComputedStyle(h);n="1%"!==e.top,l=12===i(e.marginLeft),h.style.right="60%",a=36===i(e.right),r=36===i(e.width),h.style.position="absolute",o=12===i(h.offsetWidth/3),nt.removeChild(c),h=null}}function i(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,c=m.createElement("div"),h=m.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===h.style.backgroundClip,w.extend(p,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,i,n,r;return null==s&&(e=m.createElement("table"),i=m.createElement("tr"),n=m.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="border:1px solid",i.style.height="1px",n.style.height="9px",n.style.display="block",nt.appendChild(e).appendChild(i).appendChild(n),r=t.getComputedStyle(i),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===i.offsetHeight,nt.removeChild(e)),s}}))}();var Wt=["Webkit","Moz","ms"],Xt=m.createElement("div").style,Yt={};function Gt(t){var e=w.cssProps[t]||Yt[t];return e||(t in Xt?t:Yt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Wt.length;i--;)if((t=Wt[i]+e)in Xt)return t}(t)||t)}var Ut=/^(none|table(?!-c[ea]).+)/,qt=/^--/,$t={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function Zt(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Jt(t,e,i,n,r,o){var a="width"===e?1:0,s=0,l=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(l+=w.css(t,i+it[a],!0,r)),n?("content"===i&&(l-=w.css(t,"padding"+it[a],!0,r)),"margin"!==i&&(l-=w.css(t,"border"+it[a]+"Width",!0,r))):(l+=w.css(t,"padding"+it[a],!0,r),"padding"!==i?l+=w.css(t,"border"+it[a]+"Width",!0,r):s+=w.css(t,"border"+it[a]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function Qt(t,e,i){var n=Rt(t),r=(!p.boxSizingReliable()||i)&&"border-box"===w.css(t,"boxSizing",!1,n),o=r,a=Bt(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if(Ft.test(a)){if(!i)return a;a="auto"}return(!p.boxSizingReliable()&&r||!p.reliableTrDimensions()&&T(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===w.css(t,"boxSizing",!1,n),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+Jt(t,e,i||(r?"border":"content"),o,n,a)+"px"}function te(t,e,i,n,r){return new te.prototype.init(t,e,i,n,r)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Bt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=G(e),l=qt.test(e),c=t.style;if(l||(e=Gt(s)),a=w.cssHooks[e]||w.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(t,!1,n))?r:c[e];"string"===(o=typeof i)&&(r=et.exec(i))&&r[1]&&(i=st(t,e,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(w.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var r,o,a,s=G(e);return qt.test(e)||(e=Gt(s)),(a=w.cssHooks[e]||w.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,i)),void 0===r&&(r=Bt(t,e,n)),"normal"===r&&e in Kt&&(r=Kt[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),w.each(["height","width"],(function(t,e){w.cssHooks[e]={get:function(t,i,n){if(i)return!Ut.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,n):Vt(t,$t,(function(){return Qt(t,e,n)}))},set:function(t,i,n){var r,o=Rt(t),a=!p.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===w.css(t,"boxSizing",!1,o),l=n?Jt(t,e,n,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Jt(t,e,"border",!1,o)-.5)),l&&(r=et.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=w.css(t,e)),Zt(0,i,l)}}})),w.cssHooks.marginLeft=Ht(p.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Bt(t,"marginLeft"))||t.getBoundingClientRect().left-Vt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(t,e){w.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+it[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(w.cssHooks[t+e].set=Zt)})),w.fn.extend({css:function(t,e){return H(this,(function(t,e,i){var n,r,o={},a=0;if(Array.isArray(e)){for(n=Rt(t),r=e.length;a<r;a++)o[e[a]]=w.css(t,e[a],!1,n);return o}return void 0!==i?w.style(t,e,i):w.css(t,e)}),t,e,arguments.length>1)}}),w.Tween=te,te.prototype={constructor:te,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(w.cssNumber[i]?"":"px")},cur:function(){var t=te.propHooks[this.prop];return t&&t.get?t.get(this):te.propHooks._default.get(this)},run:function(t){var e,i=te.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):te.propHooks._default.set(this),this}},te.prototype.init.prototype=te.prototype,te.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[Gt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},te.propHooks.scrollTop=te.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=te.prototype.init,w.fx.step={};var ee,ie,ne=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function oe(){ie&&(!1===m.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(oe):t.setTimeout(oe,w.fx.interval),w.fx.tick())}function ae(){return t.setTimeout((function(){ee=void 0})),ee=Date.now()}function se(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=it[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function le(t,e,i){for(var n,r=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),o=0,a=r.length;o<a;o++)if(n=r[o].call(i,e,t))return n}function ce(t,e,i){var n,r,o=0,a=ce.prefilters.length,s=w.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=ee||ae(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(n);return s.notifyWith(t,[c,n,i]),n<1&&a?i:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:e,originalOptions:i,startTime:ee||ae(),duration:i.duration,tweens:[],createTween:function(e,i){var n=w.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),h=c.props;for(!function(t,e){var i,n,r,o,a;for(i in t)if(r=e[n=G(i)],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=w.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=r);else e[n]=r}(h,c.opts.specialEasing);o<a;o++)if(n=ce.prefilters[o].call(c,t,h,c.opts))return f(n.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return w.map(h,le,c),f(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(ce,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return st(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){f(t)?(e=t,t=["*"]):t=t.match(j);for(var i,n=0,r=t.length;n<r;n++)i=t[n],ce.tweeners[i]=ce.tweeners[i]||[],ce.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,o,a,s,l,c,h,u="width"in e||"height"in e,d=this,p={},f=t.style,g=t.nodeType&&at(t),m=$.get(t,"fxshow");for(n in i.queue||(null==(a=w._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,w.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[n],ne.test(r)){if(delete e[n],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||w.style(t,n)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(p))for(n in u&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=$.get(t,"display")),"none"===(h=w.css(t,"display"))&&(c?h=c:(ht([t],!0),c=t.style.display||c,h=w.css(t,"display"),ht([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===w.css(t,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=$.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&ht([t],!0),d.done((function(){for(n in g||ht([t]),$.remove(t,"fxshow"),p)w.style(t,n,p[n])}))),l=le(g?m[n]:0,n,d),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),w.speed=function(t,e,i){var n=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||f(t)&&t,duration:t,easing:i&&e||e&&!f(e)&&e};return w.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in w.fx.speeds?n.duration=w.fx.speeds[n.duration]:n.duration=w.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){f(n.old)&&n.old.call(this),n.queue&&w.dequeue(this,n.queue)},n},w.fn.extend({fadeTo:function(t,e,i,n){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=w.isEmptyObject(t),o=w.speed(e,i,n),a=function(){var e=ce(this,w.extend({},t),o);(r||$.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=w.timers,a=$.get(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&re.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||w.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=$.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=w.timers,a=n?n.length:0;for(i.finish=!0,w.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),w.each(["toggle","show","hide"],(function(t,e){var i=w.fn[e];w.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(se(e,!0),t,n,r)}})),w.each({slideDown:se("show"),slideUp:se("hide"),slideToggle:se("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){w.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(ee=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),ee=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ie||(ie=!0,oe())},w.fx.stop=function(){ie=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,i){return e=w.fx&&w.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var r=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(r)}}))},function(){var t=m.createElement("input"),e=m.createElement("select").appendChild(m.createElement("option"));t.type="checkbox",p.checkOn=""!==t.value,p.optSelected=e.selected,(t=m.createElement("input")).value="t",t.type="radio",p.radioValue="t"===t.value}();var he,ue=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return H(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){w.removeAttr(this,t)}))}}),w.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?w.prop(t,e,i):(1===o&&w.isXMLDoc(t)||(r=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?he:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=w.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&T(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(j);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),he={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=ue[e]||w.find.attr;ue[e]=function(t,e,n){var r,o,a=e.toLowerCase();return n||(o=ue[a],ue[a]=r,r=null!=i(t,e,n)?a:null,ue[a]=o),r}}));var de=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function fe(t){return(t.match(j)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(j)||[]}w.fn.extend({prop:function(t,e){return H(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[w.propFix[t]||t]}))}}),w.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(t)||(e=w.propFix[e]||e,r=w.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(t){var e,i,n,r,o,a,s,l=0;if(f(t))return this.each((function(e){w(this).addClass(t.call(this,e,ge(this)))}));if((e=me(t)).length)for(;i=this[l++];)if(r=ge(i),n=1===i.nodeType&&" "+fe(r)+" "){for(a=0;o=e[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(s=fe(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,r,o,a,s,l=0;if(f(t))return this.each((function(e){w(this).removeClass(t.call(this,e,ge(this)))}));if(!arguments.length)return this.attr("class","");if((e=me(t)).length)for(;i=this[l++];)if(r=ge(i),n=1===i.nodeType&&" "+fe(r)+" "){for(a=0;o=e[a++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(s=fe(n))&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):f(t)?this.each((function(i){w(this).toggleClass(t.call(this,i,ge(this),e),e)})):this.each((function(){var e,r,o,a;if(n)for(r=0,o=w(this),a=me(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=ge(this))&&$.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":$.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+fe(ge(i))+" ").indexOf(e)>-1)return!0;return!1}});var ye=/\r/g;w.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=f(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,w(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,(function(t){return null==t?"":t+""}))),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(ye,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:fe(w.text(t))}},select:{get:function(t){var e,i,n,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(n=o<0?l:a?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!T(i.parentNode,"optgroup"))){if(e=w(i).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,o=w.makeArray(e),a=r.length;a--;)((n=r[a]).selected=w.inArray(w.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},p.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),p.focusin="onfocusin"in t;var ve=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(e,i,n,r){var o,a,s,l,c,u,d,p,y=[n||m],v=h.call(e,"type")?e.type:e,b=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||m,3!==n.nodeType&&8!==n.nodeType&&!ve.test(v+w.event.triggered)&&(v.indexOf(".")>-1&&(b=v.split("."),v=b.shift(),b.sort()),c=v.indexOf(":")<0&&"on"+v,(e=e[w.expando]?e:new w.Event(v,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:w.makeArray(i,[e]),d=w.event.special[v]||{},r||!d.trigger||!1!==d.trigger.apply(n,i))){if(!r&&!d.noBubble&&!g(n)){for(l=d.delegateType||v,ve.test(l+v)||(a=a.parentNode);a;a=a.parentNode)y.push(a),s=a;s===(n.ownerDocument||m)&&y.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=y[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?l:d.bindType||v,(u=($.get(a,"events")||Object.create(null))[e.type]&&$.get(a,"handle"))&&u.apply(a,i),(u=c&&a[c])&&u.apply&&U(a)&&(e.result=u.apply(a,i),!1===e.result&&e.preventDefault());return e.type=v,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),i)||!U(n)||c&&f(n[v])&&!g(n)&&((s=n[c])&&(n[c]=null),w.event.triggered=v,e.isPropagationStopped()&&p.addEventListener(v,be),n[v](),e.isPropagationStopped()&&p.removeEventListener(v,be),w.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(t,e,i){var n=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(n,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each((function(){w.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),p.focusin||w.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=$.access(n,e);r||n.addEventListener(t,i,!0),$.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=$.access(n,e)-1;r?$.access(n,e,r):(n.removeEventListener(t,i,!0),$.remove(n,e))}}}));var xe=t.location,we={guid:Date.now()},_e=/\?/;w.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||w.error("Invalid XML: "+(n?w.map(n.childNodes,(function(t){return t.textContent})).join("\n"):e)),i};var Se=/\[\]$/,Pe=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Ce=/^(?:input|select|textarea|keygen)/i;function Te(t,e,i,n){var r;if(Array.isArray(e))w.each(e,(function(e,r){i||Se.test(t)?n(t,r):Te(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)}));else if(i||"object"!==b(e))n(t,e);else for(r in e)Te(t+"["+r+"]",e[r],i,n)}w.param=function(t,e){var i,n=[],r=function(t,e){var i=f(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,(function(){r(this.name,this.value)}));else for(i in t)Te(i,t[i],e,r);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ce.test(this.nodeName)&&!ke.test(t)&&(this.checked||!pt.test(t))})).map((function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:i.replace(Pe,"\r\n")}})).get()}});var Ae=/%20/g,Oe=/#.*$/,Me=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ie=/^(?:GET|HEAD)$/,De=/^\/\//,Le={},je={},Ne="*/".concat("*"),Fe=m.createElement("a");function Re(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(j)||[];if(f(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Ve(t,e,i,n){var r={},o=t===je;function a(s){var l;return r[s]=!0,w.each(t[s]||[],(function(t,s){var c=s(e,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function ze(t,e){var i,n,r=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&w.extend(!0,t,n),t}Fe.href=xe.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,w.ajaxSettings),e):ze(w.ajaxSettings,t)},ajaxPrefilter:Re(Le),ajaxTransport:Re(je),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var n,r,o,a,s,l,c,h,u,d,p=w.ajaxSetup({},i),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?w(f):w.event,y=w.Deferred(),v=w.Callbacks("once memory"),b=p.statusCode||{},x={},_={},S="canceled",P={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Ee.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)P.always(t[P.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||S;return n&&n.abort(e),k(0,e),this}};if(y.promise(P),p.url=((e||p.url||xe.href)+"").replace(De,xe.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(j)||[""],null==p.crossDomain){l=m.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Fe.protocol+"//"+Fe.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),Ve(Le,p,i,P),c)return P;for(u in(h=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ie.test(p.type),r=p.url.replace(Oe,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ae,"+")):(d=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(_e.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Me,"$1"),d=(_e.test(r)?"&":"?")+"_="+we.guid+++d),p.url=r+d),p.ifModified&&(w.lastModified[r]&&P.setRequestHeader("If-Modified-Since",w.lastModified[r]),w.etag[r]&&P.setRequestHeader("If-None-Match",w.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&P.setRequestHeader("Content-Type",p.contentType),P.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ne+"; q=0.01":""):p.accepts["*"]),p.headers)P.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(f,P,p)||c))return P.abort();if(S="abort",v.add(p.complete),P.done(p.success),P.fail(p.error),n=Ve(je,p,i,P)){if(P.readyState=1,h&&g.trigger("ajaxSend",[P,p]),c)return P;p.async&&p.timeout>0&&(s=t.setTimeout((function(){P.abort("timeout")}),p.timeout));try{c=!1,n.send(x,k)}catch(t){if(c)throw t;k(-1,t)}}else k(-1,"No Transport");function k(e,i,a,l){var u,d,m,x,_,S=i;c||(c=!0,s&&t.clearTimeout(s),n=void 0,o=l||"",P.readyState=e>0?4:0,u=e>=200&&e<300||304===e,a&&(x=function(t,e,i){for(var n,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,P,a)),!u&&w.inArray("script",p.dataTypes)>-1&&w.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(t,e,i,n){var r,o,a,s,l,c={},h=t.dataTypes.slice();if(h[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],h.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,x,P,u),u?(p.ifModified&&((_=P.getResponseHeader("Last-Modified"))&&(w.lastModified[r]=_),(_=P.getResponseHeader("etag"))&&(w.etag[r]=_)),204===e||"HEAD"===p.type?S="nocontent":304===e?S="notmodified":(S=x.state,d=x.data,u=!(m=x.error))):(m=S,!e&&S||(S="error",e<0&&(e=0))),P.status=e,P.statusText=(i||S)+"",u?y.resolveWith(f,[d,S,P]):y.rejectWith(f,[P,S,m]),P.statusCode(b),b=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[P,p,u?d:m]),v.fireWith(f,[P,S]),h&&(g.trigger("ajaxComplete",[P,p]),--w.active||w.event.trigger("ajaxStop")))}return P},getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],(function(t,e){w[e]=function(t,i,n,r){return f(i)&&(r=r||n,n=i,i=void 0),w.ajax(w.extend({url:t,type:e,dataType:r,data:i,success:n},w.isPlainObject(t)&&t))}})),w.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),w._evalUrl=function(t,e,i){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,i)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(f(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return f(t)?this.each((function(e){w(this).wrapInner(t.call(this,e))})):this.each((function(){var e=w(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=f(t);return this.each((function(i){w(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Be={0:200,1223:204},He=w.ajaxSettings.xhr();p.cors=!!He&&"withCredentials"in He,p.ajax=He=!!He,w.ajaxTransport((function(e){var i,n;if(p.cors||He&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);i=function(t){return function(){i&&(i=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Be[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),n=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),w.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){i&&i()}}}));var We,Xe=[],Ye=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||w.expando+"_"+we.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",(function(e,i,n){var r,o,a,s=!1!==e.jsonp&&(Ye.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=f(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ye,"$1"+r):!1!==e.jsonp&&(e.url+=(_e.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||w.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},n.always((function(){void 0===o?w(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,Xe.push(r)),a&&f(o)&&o(a[0]),a=o=void 0})),"script"})),p.createHTMLDocument=((We=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===We.childNodes.length),w.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(p.createHTMLDocument?((n=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(n)):e=m),o=!i&&[],(r=A.exec(t))?[e.createElement(r[1])]:(r=xt([t],e,o),o&&o.length&&w(o).remove(),w.merge([],r.childNodes)));var n,r,o},w.fn.load=function(t,e,i){var n,r,o,a=this,s=t.indexOf(" ");return s>-1&&(n=fe(t.slice(s)),t=t.slice(0,s)),f(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&w.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(n?w("<div>").append(w.parseHTML(t)).find(n):t)})).always(i&&function(t,e){a.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,(function(e){return t===e.elem})).length},w.offset={setOffset:function(t,e,i){var n,r,o,a,s,l,c=w.css(t,"position"),h=w(t),u={};"static"===c&&(t.style.position="relative"),s=h.offset(),o=w.css(t,"top"),l=w.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(n=h.position()).top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),f(e)&&(e=e.call(t,i,w.extend({},s))),null!=e.top&&(u.top=e.top-s.top+a),null!=e.left&&(u.left=e.left-s.left+r),"using"in e?e.using.call(t,u):h.css(u)}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){w.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===w.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),r.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-w.css(n,"marginTop",!0),left:e.left-r.left-w.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||nt}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;w.fn[t]=function(n){return H(this,(function(t,n,r){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r}),t,n,arguments.length)}})),w.each(["top","left"],(function(t,e){w.cssHooks[e]=Ht(p.pixelPosition,(function(t,i){if(i)return i=Bt(t,e),Ft.test(i)?w(t).position()[e]+"px":i}))})),w.each({Height:"height",Width:"width"},(function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){w.fn[n]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),s=i||(!0===r||!0===o?"margin":"border");return H(this,(function(e,i,r){var o;return g(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?w.css(e,i,s):w.style(e,i,r,s)}),e,a?r:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){w.fn[e]=function(t){return this.on(e,t)}})),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){w.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var Ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),f(t))return n=r.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(r.call(arguments)))}).guid=t.guid=t.guid||w.guid++,o},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=T,w.isFunction=f,w.isWindow=g,w.camelCase=G,w.type=b,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(Ge,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Ue=t.jQuery,qe=t.$;return w.noConflict=function(e){return t.$===w&&(t.$=qe),e&&t.jQuery===w&&(t.jQuery=Ue),w},void 0===e&&(t.jQuery=t.$=w),w})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,(function(){"use strict";function t(t){return t&&"[object Function]"==={}.toString.call(t)}function e(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function i(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function n(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var r=e(t),o=r.overflow,a=r.overflowX,s=r.overflowY;return/(auto|scroll|overlay)/.test(o+s+a)?t:n(i(t))}function r(t){return 11===t?Z:10===t?J:Z||J}function o(t){if(!t)return document.documentElement;for(var i=r(10)?document.body:null,n=t.offsetParent||null;n===i&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var a=n&&n.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===e(n,"position")?o(n):n:t?t.ownerDocument.documentElement:document.documentElement}function a(t){return null===t.parentNode?t:a(t.parentNode)}function s(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,r=i?e:t,l=document.createRange();l.setStart(n,0),l.setEnd(r,0);var c=l.commonAncestorContainer;if(t!==c&&e!==c||n.contains(r))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||o(t.firstElementChild)===t)}(c)?c:o(c);var h=a(t);return h.host?s(h.host,e):s(t,a(e).host)}function l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||r;return o[i]}return t[i]}function c(t,e){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(e,"top"),r=l(e,"left"),o=i?-1:1;return t.top+=n*o,t.bottom+=n*o,t.left+=r*o,t.right+=r*o,t}function h(t,e){var i="x"===e?"Left":"Top",n="Left"==i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function u(t,e,i,n){return Y(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],r(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function d(t){var e=t.body,i=t.documentElement,n=r(10)&&getComputedStyle(i);return{height:u("Height",e,i,n),width:u("Width",e,i,n)}}function p(t){return it({},t,{right:t.left+t.width,bottom:t.top+t.height})}function f(t){var i={};try{if(r(10)){i=t.getBoundingClientRect();var n=l(t,"top"),o=l(t,"left");i.top+=n,i.left+=o,i.bottom+=n,i.right+=o}else i=t.getBoundingClientRect()}catch(t){}var a={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},s="HTML"===t.nodeName?d(t.ownerDocument):{},c=s.width||t.clientWidth||a.right-a.left,u=s.height||t.clientHeight||a.bottom-a.top,f=t.offsetWidth-c,g=t.offsetHeight-u;if(f||g){var m=e(t);f-=h(m,"x"),g-=h(m,"y"),a.width-=f,a.height-=g}return p(a)}function g(t,i){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],a=r(10),s="HTML"===i.nodeName,l=f(t),h=f(i),u=n(t),d=e(i),g=parseFloat(d.borderTopWidth,10),m=parseFloat(d.borderLeftWidth,10);o&&s&&(h.top=Y(h.top,0),h.left=Y(h.left,0));var y=p({top:l.top-h.top-g,left:l.left-h.left-m,width:l.width,height:l.height});if(y.marginTop=0,y.marginLeft=0,!a&&s){var v=parseFloat(d.marginTop,10),b=parseFloat(d.marginLeft,10);y.top-=g-v,y.bottom-=g-v,y.left-=m-b,y.right-=m-b,y.marginTop=v,y.marginLeft=b}return(a&&!o?i.contains(u):i===u&&"BODY"!==u.nodeName)&&(y=c(y,i)),y}function m(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=g(t,i),r=Y(i.clientWidth,window.innerWidth||0),o=Y(i.clientHeight,window.innerHeight||0),a=e?0:l(i),s=e?0:l(i,"left"),c={top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:r,height:o};return p(c)}function y(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===e(t,"position"))return!0;var r=i(t);return!!r&&y(r)}function v(t){if(!t||!t.parentElement||r())return document.documentElement;for(var i=t.parentElement;i&&"none"===e(i,"transform");)i=i.parentElement;return i||document.documentElement}function b(t,e,r,o){var a=4<arguments.length&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},c=a?v(t):s(t,e);if("viewport"===o)l=m(c,a);else{var h;"scrollParent"===o?"BODY"===(h=n(i(e))).nodeName&&(h=t.ownerDocument.documentElement):h="window"===o?t.ownerDocument.documentElement:o;var u=g(h,c,a);if("HTML"!==h.nodeName||y(c))l=u;else{var p=d(t.ownerDocument),f=p.height,b=p.width;l.top+=u.top-u.marginTop,l.bottom=f+u.top,l.left+=u.left-u.marginLeft,l.right=b+u.left}}var x="number"==typeof(r=r||0);return l.left+=x?r:r.left||0,l.top+=x?r:r.top||0,l.right-=x?r:r.right||0,l.bottom-=x?r:r.bottom||0,l}function x(t){return t.width*t.height}function w(t,e,i,n,r){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=b(i,n,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return it({key:t},s[t],{area:x(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight})),h=0<c.length?c[0].key:l[0].key,u=t.split("-")[1];return h+(u?"-"+u:"")}function _(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=n?v(e):s(e,i);return g(i,r,n)}function S(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function P(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function k(t,e,i){i=i.split("-")[0];var n=S(t),r={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(i),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=e[a]+e[l]/2-n[l]/2,r[s]=i===s?e[s]-n[c]:e[P(s)],r}function C(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function T(e,i,n){return(void 0===n?e:e.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===i}));var n=C(t,(function(t){return t[e]===i}));return t.indexOf(n)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&t(n)&&(i.offsets.popper=p(i.offsets.popper),i.offsets.reference=p(i.offsets.reference),i=n(i,e))})),i}function A(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=w(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=k(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=T(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function O(t,e){return t.some((function(t){var i=t.name;return t.enabled&&i===e}))}function M(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var r=e[n],o=r?""+r+i:t;if(void 0!==document.body.style[o])return o}return null}function E(){return this.state.isDestroyed=!0,O(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function I(t){var e=t.ownerDocument;return e?e.defaultView:window}function D(t,e,i,r){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(e,i,{passive:!0}),o||D(n(a.parentNode),e,i,r),r.push(a)}function L(t,e,i,r){i.updateBound=r,I(t).addEventListener("resize",i.updateBound,{passive:!0});var o=n(t);return D(o,"scroll",i.updateBound,i.scrollParents),i.scrollElement=o,i.eventsEnabled=!0,i}function j(){this.state.eventsEnabled||(this.state=L(this.reference,this.options,this.state,this.scheduleUpdate))}function N(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return I(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function F(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function R(t,e){Object.keys(e).forEach((function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&F(e[i])&&(n="px"),t.style[i]=e[i]+n}))}function V(t,e,i){var n=C(t,(function(t){return t.name===e})),r=!!n&&t.some((function(t){return t.name===i&&t.enabled&&t.order<n.order}));if(!r){var o="`"+e+"`";console.warn("`"+i+"` modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function z(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=ot.indexOf(t),n=ot.slice(i+1).concat(ot.slice(0,i));return e?n.reverse():n}function B(t,e,i,n){var r=[0,0],o=-1!==["right","left"].indexOf(n),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(C(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1===s?[a]:[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))];return(c=c.map((function(t,n){var r=(1===n?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,i,n){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){var s;switch(a){case"%p":s=i;break;case"%":case"%r":default:s=n}return p(s)[e]/100*o}return"vh"===a||"vw"===a?("vh"===a?Y(document.documentElement.clientHeight,window.innerHeight||0):Y(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o}(t,r,e,i)}))}))).forEach((function(t,e){t.forEach((function(i,n){F(i)&&(r[e]+=i*("-"===t[n-1]?-1:1))}))})),r}for(var H=Math.min,W=Math.floor,X=Math.round,Y=Math.max,G="undefined"!=typeof window&&"undefined"!=typeof document,U=["Edge","Trident","Firefox"],q=0,$=0;$<U.length;$+=1)if(G&&0<=navigator.userAgent.indexOf(U[$])){q=1;break}var K=G&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),q))}},Z=G&&!(!window.MSInputMethodContext||!document.documentMode),J=G&&/MSIE 10/.test(navigator.userAgent),Q=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},tt=function(){function t(t,e){for(var i,n=0;n<e.length;n++)(i=e[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),et=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},it=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},nt=G&&/Firefox/i.test(navigator.userAgent),rt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ot=rt.slice(3),at="flip",st="clockwise",lt="counterclockwise",ct=function(){function e(i,n){var r=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Q(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=K(this.update.bind(this)),this.options=it({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=i&&i.jquery?i[0]:i,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(it({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=it({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return it({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(e){e.enabled&&t(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return tt(e,[{key:"update",value:function(){return A.call(this)}},{key:"destroy",value:function(){return E.call(this)}},{key:"enableEventListeners",value:function(){return j.call(this)}},{key:"disableEventListeners",value:function(){return N.call(this)}}]),e}();return ct.Utils=("undefined"==typeof window?global:window).PopperUtils,ct.placements=rt,ct.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(i),l=s?"left":"top",c=s?"width":"height",h={start:et({},l,o[l]),end:et({},l,o[l]+o[c]-a[c])};t.offsets.popper=it({},a,h[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i,n=e.offset,r=t.placement,o=t.offsets,a=o.popper,s=o.reference,l=r.split("-")[0];return i=F(+n)?[+n,0]:B(n,a,s,l),"left"===l?(a.top+=i[0],a.left-=i[1]):"right"===l?(a.top+=i[0],a.left+=i[1]):"top"===l?(a.left+=i[0],a.top-=i[1]):"bottom"===l&&(a.left+=i[0],a.top+=i[1]),t.popper=a,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||o(t.instance.popper);t.instance.reference===i&&(i=o(i));var n=M("transform"),r=t.instance.popper.style,a=r.top,s=r.left,l=r[n];r.top="",r.left="",r[n]="";var c=b(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);r.top=a,r.left=s,r[n]=l,e.boundaries=c;var h=e.priority,u=t.offsets.popper,d={primary:function(t){var i=u[t];return u[t]<c[t]&&!e.escapeWithReference&&(i=Y(u[t],c[t])),et({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=u[i];return u[t]>c[t]&&!e.escapeWithReference&&(n=H(u[i],c[t]-("right"===t?u.width:u.height))),et({},i,n)}};return h.forEach((function(t){var e=-1===["left","top"].indexOf(t)?"secondary":"primary";u=it({},u,d[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,r=t.placement.split("-")[0],o=W,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return i[s]<o(n[l])&&(t.offsets.popper[l]=o(n[l])-i[c]),i[l]>o(n[s])&&(t.offsets.popper[l]=o(n[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,i){var n;if(!V(t.instance.modifiers,"arrow","keepTogether"))return t;var r=i.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],a=t.offsets,s=a.popper,l=a.reference,c=-1!==["left","right"].indexOf(o),h=c?"height":"width",u=c?"Top":"Left",d=u.toLowerCase(),f=c?"left":"top",g=c?"bottom":"right",m=S(r)[h];l[g]-m<s[d]&&(t.offsets.popper[d]-=s[d]-(l[g]-m)),l[d]+m>s[g]&&(t.offsets.popper[d]+=l[d]+m-s[g]),t.offsets.popper=p(t.offsets.popper);var y=l[d]+l[h]/2-m/2,v=e(t.instance.popper),b=parseFloat(v["margin"+u],10),x=parseFloat(v["border"+u+"Width"],10),w=y-t.offsets.popper[d]-b-x;return w=Y(H(s[h]-m,w),0),t.arrowElement=r,t.offsets.arrow=(et(n={},d,X(w)),et(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(O(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=b(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],r=P(n),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case at:a=[n,r];break;case st:a=z(n);break;case lt:a=z(n,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(n!==s||a.length===l+1)return t;n=t.placement.split("-")[0],r=P(n);var c=t.offsets.popper,h=t.offsets.reference,u=W,d="left"===n&&u(c.right)>u(h.left)||"right"===n&&u(c.left)<u(h.right)||"top"===n&&u(c.bottom)>u(h.top)||"bottom"===n&&u(c.top)<u(h.bottom),p=u(c.left)<u(i.left),f=u(c.right)>u(i.right),g=u(c.top)<u(i.top),m=u(c.bottom)>u(i.bottom),y="left"===n&&p||"right"===n&&f||"top"===n&&g||"bottom"===n&&m,v=-1!==["top","bottom"].indexOf(n),b=!!e.flipVariations&&(v&&"start"===o&&p||v&&"end"===o&&f||!v&&"start"===o&&g||!v&&"end"===o&&m);(d||y||b)&&(t.flipped=!0,(d||y)&&(n=a[l+1]),b&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=n+(o?"-"+o:""),t.offsets.popper=it({},t.offsets.popper,k(t.instance.popper,t.offsets.reference,t.placement)),t=T(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,r=n.popper,o=n.reference,a=-1!==["left","right"].indexOf(i),s=-1===["top","left"].indexOf(i);return r[a?"left":"top"]=o[i]-(s?r[a?"width":"height"]:0),t.placement=P(e),t.offsets.popper=p(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!V(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=C(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i=e.x,n=e.y,r=t.offsets.popper,a=C(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,l,c=void 0===a?e.gpuAcceleration:a,h=o(t.instance.popper),u=f(h),d={position:r.position},p=function(t,e){var i=t.offsets,n=i.popper,r=i.reference,o=X,a=function(t){return t},s=o(r.width),l=o(n.width),c=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),u=e?c||h||s%2==l%2?o:W:a,d=e?o:a;return{left:u(1==s%2&&1==l%2&&!h&&e?n.left-1:n.left),top:d(n.top),bottom:d(n.bottom),right:u(n.right)}}(t,2>window.devicePixelRatio||!nt),g="bottom"===i?"top":"bottom",m="right"===n?"left":"right",y=M("transform");if(l="bottom"==g?"HTML"===h.nodeName?-h.clientHeight+p.bottom:-u.height+p.bottom:p.top,s="right"==m?"HTML"===h.nodeName?-h.clientWidth+p.right:-u.width+p.right:p.left,c&&y)d[y]="translate3d("+s+"px, "+l+"px, 0)",d[g]=0,d[m]=0,d.willChange="transform";else{var v="bottom"==g?-1:1,b="right"==m?-1:1;d[g]=l*v,d[m]=s*b,d.willChange=g+", "+m}var x={"x-placement":t.placement};return t.attributes=it({},x,t.attributes),t.styles=it({},d,t.styles),t.arrowStyles=it({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return R(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach((function(i){!1===e[i]?t.removeAttribute(i):t.setAttribute(i,e[i])}))}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&R(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,r){var o=_(r,e,t,i.positionFixed),a=w(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",a),R(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},ct})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,i){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(e),o=n(i);function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}var c={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=r.default(t).css("transition-duration"),i=r.default(t).css("transition-delay"),n=parseFloat(e),o=parseFloat(i);return n||o?(e=e.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(e)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){r.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var r=i[n],o=e[n],a=o&&c.isElement(o)?"element":null===(s=o)||void 0===s?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+a+'" but expected type "'+r+'".')}var s},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=r.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),r.default.fn.emulateTransitionEnd=function(t){var e=this,i=!1;return r.default(this).one(c.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||c.triggerTransitionEnd(e)}),t),this},r.default.event.special[c.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(r.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var h="alert",u=r.default.fn[h],d=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){r.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=c.getSelectorFromElement(t),i=!1;return e&&(i=document.querySelector(e)),i||(i=r.default(t).closest(".alert")[0]),i},e._triggerCloseEvent=function(t){var e=r.default.Event("close.bs.alert");return r.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(r.default(t).removeClass("show"),r.default(t).hasClass("fade")){var i=c.getTransitionDurationFromElement(t);r.default(t).one(c.TRANSITION_END,(function(i){return e._destroyElement(t,i)})).emulateTransitionEnd(i)}else this._destroyElement(t)},e._destroyElement=function(t){r.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this),n=i.data("bs.alert");n||(n=new t(this),i.data("bs.alert",n)),"close"===e&&n[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();r.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',d._handleDismiss(new d)),r.default.fn[h]=d._jQueryInterface,r.default.fn[h].Constructor=d,r.default.fn[h].noConflict=function(){return r.default.fn[h]=u,d._jQueryInterface};var p=r.default.fn.button,f=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,i=r.default(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=this._element.querySelector('input:not([type="hidden"])');if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains("active"))t=!1;else{var o=i.querySelector(".active");o&&r.default(o).removeClass("active")}t&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||r.default(n).trigger("change")),n.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&r.default(this._element).toggleClass("active"))},e.dispose=function(){r.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,i){return this.each((function(){var n=r.default(this),o=n.data("bs.button");o||(o=new t(this),n.data("bs.button",o)),o.shouldAvoidTriggerChange=i,"toggle"===e&&o[e]()}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();r.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,i=e;if(r.default(e).hasClass("btn")||(e=r.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var n=e.querySelector('input:not([type="hidden"])');if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==i.tagName&&"LABEL"===e.tagName||f._jQueryInterface.call(r.default(e),"toggle","INPUT"===i.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=r.default(t.target).closest(".btn")[0];r.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),r.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,i=t.length;e<i;e++){var n=t[e],r=n.querySelector('input:not([type="hidden"])');r.checked||r.hasAttribute("checked")?n.classList.add("active"):n.classList.remove("active")}for(var o=0,a=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;o<a;o++){var s=t[o];"true"===s.getAttribute("aria-pressed")?s.classList.add("active"):s.classList.remove("active")}})),r.default.fn.button=f._jQueryInterface,r.default.fn.button.Constructor=f,r.default.fn.button.noConflict=function(){return r.default.fn.button=p,f._jQueryInterface};var g="carousel",m=r.default.fn[g],y={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},v={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},b={TOUCH:"touch",PEN:"pen"},x=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=r.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)r.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var n=t>i?"next":"prev";this._slide(n,this._items[t])}},e.dispose=function(){r.default(this._element).off(".bs.carousel"),r.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},y,t),c.typeCheckConfig(g,t,v),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&r.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&r.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};r.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(r.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),r.default(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(r.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),r.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),r.default(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var i="next"===t,n="prev"===t,r=this._getItemIndex(e),o=this._items.length-1;if((n&&0===r||i&&r===o)&&!this._config.wrap)return e;var a=(r+("prev"===t?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector(".active.carousel-item")),o=r.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i});return r.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));r.default(e).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&r.default(i).addClass("active")}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(".active.carousel-item");if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var i,n,o,a=this,s=this._element.querySelector(".active.carousel-item"),l=this._getItemIndex(s),h=e||s&&this._getItemByDirection(t,s),u=this._getItemIndex(h),d=Boolean(this._interval);if("next"===t?(i="carousel-item-left",n="carousel-item-next",o="left"):(i="carousel-item-right",n="carousel-item-prev",o="right"),h&&r.default(h).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(h,o).isDefaultPrevented()&&s&&h){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(h),this._activeElement=h;var p=r.default.Event("slid.bs.carousel",{relatedTarget:h,direction:o,from:l,to:u});if(r.default(this._element).hasClass("slide")){r.default(h).addClass(n),c.reflow(h),r.default(s).addClass(i),r.default(h).addClass(i);var f=c.getTransitionDurationFromElement(s);r.default(s).one(c.TRANSITION_END,(function(){r.default(h).removeClass(i+" "+n).addClass("active"),r.default(s).removeClass("active "+n+" "+i),a._isSliding=!1,setTimeout((function(){return r.default(a._element).trigger(p)}),0)})).emulateTransitionEnd(f)}else r.default(s).removeClass("active"),r.default(h).addClass("active"),this._isSliding=!1,r.default(this._element).trigger(p);d&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this).data("bs.carousel"),n=l({},y,r.default(this).data());"object"==typeof e&&(n=l({},n,e));var o="string"==typeof e?e:n.slide;if(i||(i=new t(this,n),r.default(this).data("bs.carousel",i)),"number"==typeof e)i.to(e);else if("string"==typeof o){if(void 0===i[o])throw new TypeError('No method named "'+o+'"');i[o]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(e){var i=c.getSelectorFromElement(this);if(i){var n=r.default(i)[0];if(n&&r.default(n).hasClass("carousel")){var o=l({},r.default(n).data(),r.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(r.default(n),o),a&&r.default(n).data("bs.carousel").to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return y}}]),t}();r.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",x._dataApiClickHandler),r.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,i=t.length;e<i;e++){var n=r.default(t[e]);x._jQueryInterface.call(n,n.data())}})),r.default.fn[g]=x._jQueryInterface,r.default.fn[g].Constructor=x,r.default.fn[g].noConflict=function(){return r.default.fn[g]=m,x._jQueryInterface};var w="collapse",_=r.default.fn[w],S={toggle:!0,parent:""},P={toggle:"boolean",parent:"(string|element)"},k=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),n=0,r=i.length;n<r;n++){var o=i[n],a=c.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){r.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,i,n=this;if(!(this._isTransitioning||r.default(this._element).hasClass("show")||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains("collapse")}))).length&&(e=null),e&&(i=r.default(e).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var o=r.default.Event("show.bs.collapse");if(r.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(r.default(e).not(this._selector),"hide"),i||r.default(e).data("bs.collapse",null));var a=this._getDimension();r.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[a]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),l=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,(function(){r.default(n._element).removeClass("collapsing").addClass("collapse show"),n._element.style[a]="",n.setTransitioning(!1),r.default(n._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[a]=this._element[s]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&r.default(this._element).hasClass("show")){var e=r.default.Event("hide.bs.collapse");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",c.reflow(this._element),r.default(this._element).addClass("collapsing").removeClass("collapse show");var n=this._triggerArray.length;if(n>0)for(var o=0;o<n;o++){var a=this._triggerArray[o],s=c.getSelectorFromElement(a);null!==s&&(r.default([].slice.call(document.querySelectorAll(s))).hasClass("show")||r.default(a).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var l=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,(function(){t.setTransitioning(!1),r.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(l)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){r.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},S,t)).toggle=Boolean(t.toggle),c.typeCheckConfig(w,t,P),t},e._getDimension=function(){return r.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,i=this;c.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(e.querySelectorAll(n));return r.default(o).each((function(e,n){i._addAriaAndCollapsedClass(t._getTargetFromElement(n),[n])})),e},e._addAriaAndCollapsedClass=function(t,e){var i=r.default(t).hasClass("show");e.length&&r.default(e).toggleClass("collapsed",!i).attr("aria-expanded",i)},t._getTargetFromElement=function(t){var e=c.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this),n=i.data("bs.collapse"),o=l({},S,i.data(),"object"==typeof e&&e?e:{});if(!n&&o.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(o.toggle=!1),n||(n=new t(this,o),i.data("bs.collapse",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return S}}]),t}();r.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=r.default(this),i=c.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(i));r.default(n).each((function(){var t=r.default(this),i=t.data("bs.collapse")?"toggle":e.data();k._jQueryInterface.call(t,i)}))})),r.default.fn[w]=k._jQueryInterface,r.default.fn[w].Constructor=k,r.default.fn[w].noConflict=function(){return r.default.fn[w]=_,k._jQueryInterface};var C="dropdown",T=r.default.fn[C],A=new RegExp("38|40|27"),O={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},M={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},E=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")){var e=r.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||r.default(this._element).hasClass("disabled")||r.default(this._menu).hasClass("show"))){var i={relatedTarget:this._element},n=r.default.Event("show.bs.dropdown",i),a=t._getParentFromElement(this._element);if(r.default(a).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===o.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=a:c.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r.default(a).addClass("position-static"),this._popper=new o.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(a).closest(".navbar-nav").length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass("show"),r.default(a).toggleClass("show").trigger(r.default.Event("shown.bs.dropdown",i))}}},e.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")&&r.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},i=r.default.Event("hide.bs.dropdown",e),n=t._getParentFromElement(this._element);r.default(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass("show"),r.default(n).toggleClass("show").trigger(r.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){r.default.removeData(this._element,"bs.dropdown"),r.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;r.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=l({},this.constructor.Default,r.default(this._element).data(),t),c.typeCheckConfig(C,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=r.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=r.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":r.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof e?e:null),r.default(this).data("bs.dropdown",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),n=0,o=i.length;n<o;n++){var a=t._getParentFromElement(i[n]),s=r.default(i[n]).data("bs.dropdown"),l={relatedTarget:i[n]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var c=s._menu;if(r.default(a).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&r.default.contains(a,e.target))){var h=r.default.Event("hide.bs.dropdown",l);r.default(a).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),i[n].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),r.default(c).removeClass("show"),r.default(a).removeClass("show").trigger(r.default.Event("hidden.bs.dropdown",l)))}}}},t._getParentFromElement=function(t){var e,i=c.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||r.default(e.target).closest(".dropdown-menu").length):!A.test(e.which))&&!this.disabled&&!r.default(this).hasClass("disabled")){var i=t._getParentFromElement(this),n=r.default(i).hasClass("show");if(n||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!n||27===e.which||32===e.which)return 27===e.which&&r.default(i.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void r.default(this).trigger("click");var o=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return r.default(t).is(":visible")}));if(0!==o.length){var a=o.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return O}},{key:"DefaultType",get:function(){return M}}]),t}();r.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',E._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",E._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",E._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),E._jQueryInterface.call(r.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),r.default.fn[C]=E._jQueryInterface,r.default.fn[C].Constructor=E,r.default.fn[C].noConflict=function(){return r.default.fn[C]=T,E._jQueryInterface};var I=r.default.fn.modal,D={backdrop:!0,keyboard:!0,focus:!0,show:!0},L={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},j=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){r.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var i=r.default.Event("show.bs.modal",{relatedTarget:t});r.default(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),r.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){r.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){r.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var i=r.default.Event("hide.bs.modal");if(r.default(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=r.default(this._element).hasClass("fade");if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off("focusin.bs.modal"),r.default(this._element).removeClass("show"),r.default(this._element).off("click.dismiss.bs.modal"),r.default(this._dialog).off("mousedown.dismiss.bs.modal"),n){var o=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return r.default(t).off(".bs.modal")})),r.default(document).off("focusin.bs.modal"),r.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=l({},D,t),c.typeCheckConfig("modal",t,L),t},e._triggerBackdropTransition=function(){var t=this,e=r.default.Event("hidePrevented.bs.modal");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var n=c.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(c.TRANSITION_END),r.default(this._element).one(c.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),i||r.default(t._element).one(c.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,n)})).emulateTransitionEnd(n),this._element.focus()}},e._showElement=function(t){var e=this,i=r.default(this._element).hasClass("fade"),n=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,i&&c.reflow(this._element),r.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var o=r.default.Event("shown.bs.modal",{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,r.default(e._element).trigger(o)};if(i){var s=c.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(c.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;r.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===r.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?r.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||r.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?r.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):r.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){r.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),r.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,i=r.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),i&&c.reflow(this._backdrop),r.default(this._backdrop).addClass("show"),!t)return;if(!i)return void t();var n=c.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(c.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass("show");var o=function(){e._removeBackdrop(),t&&t()};if(r.default(this._element).hasClass("fade")){var a=c.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(c.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),i=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(e).each((function(e,i){var n=i.style.paddingRight,o=r.default(i).css("padding-right");r.default(i).data("padding-right",n).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),r.default(i).each((function(e,i){var n=i.style.marginRight,o=r.default(i).css("margin-right");r.default(i).data("margin-right",n).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var n=document.body.style.paddingRight,o=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",n).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}r.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));r.default(t).each((function(t,e){var i=r.default(e).data("padding-right");r.default(e).removeData("padding-right"),e.style.paddingRight=i||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(e).each((function(t,e){var i=r.default(e).data("margin-right");void 0!==i&&r.default(e).css("margin-right",i).removeData("margin-right")}));var i=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,i){return this.each((function(){var n=r.default(this).data("bs.modal"),o=l({},D,r.default(this).data(),"object"==typeof e&&e?e:{});if(n||(n=new t(this,o),r.default(this).data("bs.modal",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e](i)}else o.show&&n.show(i)}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return D}}]),t}();r.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,i=this,n=c.getSelectorFromElement(this);n&&(e=document.querySelector(n));var o=r.default(e).data("bs.modal")?"toggle":l({},r.default(e).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=r.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",(function(){r.default(i).is(":visible")&&i.focus()}))}));j._jQueryInterface.call(r.default(e),o,this)})),r.default.fn.modal=j._jQueryInterface,r.default.fn.modal.Constructor=j,r.default.fn.modal.noConflict=function(){return r.default.fn.modal=I,j._jQueryInterface};var N=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],F=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,R=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function V(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),r=Object.keys(e),o=[].slice.call(n.body.querySelectorAll("*")),a=function(t,i){var n=o[t],a=n.nodeName.toLowerCase();if(-1===r.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var s=[].slice.call(n.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){(function(t,e){var i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===N.indexOf(i)||Boolean(t.nodeValue.match(F)||t.nodeValue.match(R));for(var n=e.filter((function(t){return t instanceof RegExp})),r=0,o=n.length;r<o;r++)if(i.match(n[r]))return!0;return!1})(t,l)||n.removeAttribute(t.nodeName)}))},s=0,l=o.length;s<l;s++)a(s);return n.body.innerHTML}var z="tooltip",B=r.default.fn[z],H=new RegExp("(^|\\s)bs-tooltip\\S+","g"),W=["sanitize","whiteList","sanitizeFn"],X={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Y={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},G={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},U={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},q=function(){function t(t,e){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=r.default(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(r.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(e);var i=c.findShadowRoot(this.element),n=r.default.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var a=this.getTipElement(),s=c.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&r.default(a).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var u=this._getContainer();r.default(a).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(a).appendTo(u),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(h)),r.default(a).addClass("show"),r.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,r.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(r.default(this.tip).hasClass("fade")){var p=c.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(c.TRANSITION_END,d).emulateTransitionEnd(p)}else d()}},e.hide=function(t){var e=this,i=this.getTipElement(),n=r.default.Event(this.constructor.Event.HIDE),o=function(){"show"!==e._hoverState&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),r.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(r.default(this.element).trigger(n),!n.isDefaultPrevented()){if(r.default(i).removeClass("show"),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,r.default(this.tip).hasClass("fade")){var a=c.getTransitionDurationFromElement(i);r.default(i).one(c.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(r.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),r.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=V(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?r.default(e).parent().is(t)||t.empty().append(e):t.text(r.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},e._getAttachment=function(t){return Y[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)r.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var i="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;r.default(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(n,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),r.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=r.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==W.indexOf(t)&&delete e[t]})),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c.typeCheckConfig(z,t,this.constructor.DefaultType),t.sanitize&&(t.template=V(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(H);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(r.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this),n=i.data("bs.tooltip"),o="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,o),i.data("bs.tooltip",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return G}},{key:"NAME",get:function(){return z}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return U}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return X}}]),t}();r.default.fn[z]=q._jQueryInterface,r.default.fn[z].Constructor=q,r.default.fn[z].noConflict=function(){return r.default.fn[z]=B,q._jQueryInterface};var $="popover",K=r.default.fn[$],Z=new RegExp("(^|\\s)bs-popover\\S+","g"),J=l({},q.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Q=l({},q.DefaultType,{content:"(string|element|function)"}),tt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},et=function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var o=n.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass("bs-popover-"+t)},o.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},o.setContent=function(){var t=r.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(Z);null!==e&&e.length>0&&t.removeClass(e.join(""))},n._jQueryInterface=function(t){return this.each((function(){var e=r.default(this).data("bs.popover"),i="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new n(this,i),r.default(this).data("bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},s(n,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return J}},{key:"NAME",get:function(){return $}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return tt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Q}}]),n}(q);r.default.fn[$]=et._jQueryInterface,r.default.fn[$].Constructor=et,r.default.fn[$].noConflict=function(){return r.default.fn[$]=K,et._jQueryInterface};var it="scrollspy",nt=r.default.fn[it],rt={offset:10,method:"auto",target:""},ot={offset:"number",method:"string",target:"(string|element)"},at=function(){function t(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?e:this._config.method,n="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,o=c.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[r.default(e)[i]().top+n,o]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){r.default.removeData(this._element,"bs.scrollspy"),r.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=l({},rt,"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var e=r.default(t.target).attr("id");e||(e=c.getUID(it),r.default(t.target).attr("id",e)),t.target="#"+e}return c.typeCheckConfig(it,t,ot),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),i=r.default([].slice.call(document.querySelectorAll(e.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),i.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),r.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this).data("bs.scrollspy");if(i||(i=new t(this,"object"==typeof e&&e),r.default(this).data("bs.scrollspy",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return rt}}]),t}();r.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var i=r.default(t[e]);at._jQueryInterface.call(i,i.data())}})),r.default.fn[it]=at._jQueryInterface,r.default.fn[it].Constructor=at,r.default.fn[it].noConflict=function(){return r.default.fn[it]=nt,at._jQueryInterface};var st=r.default.fn.tab,lt=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass("active")||r.default(this._element).hasClass("disabled"))){var e,i,n=r.default(this._element).closest(".nav, .list-group")[0],o=c.getSelectorFromElement(this._element);if(n){var a="UL"===n.nodeName||"OL"===n.nodeName?"> li > .active":".active";i=(i=r.default.makeArray(r.default(n).find(a)))[i.length-1]}var s=r.default.Event("hide.bs.tab",{relatedTarget:this._element}),l=r.default.Event("show.bs.tab",{relatedTarget:i});if(i&&r.default(i).trigger(s),r.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,n);var h=function(){var e=r.default.Event("hidden.bs.tab",{relatedTarget:t._element}),n=r.default.Event("shown.bs.tab",{relatedTarget:i});r.default(i).trigger(e),r.default(t._element).trigger(n)};e?this._activate(e,e.parentNode,h):h()}}},e.dispose=function(){r.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,i){var n=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?r.default(e).children(".active"):r.default(e).find("> li > .active"))[0],a=i&&o&&r.default(o).hasClass("fade"),s=function(){return n._transitionComplete(t,o,i)};if(o&&a){var l=c.getTransitionDurationFromElement(o);r.default(o).removeClass("show").one(c.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,i){if(e){r.default(e).removeClass("active");var n=r.default(e.parentNode).find("> .dropdown-menu .active")[0];n&&r.default(n).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(r.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&r.default(t.parentNode).hasClass("dropdown-menu")){var o=r.default(t).closest(".dropdown")[0];if(o){var a=[].slice.call(o.querySelectorAll(".dropdown-toggle"));r.default(a).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this),n=i.data("bs.tab");if(n||(n=new t(this),i.data("bs.tab",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();r.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),lt._jQueryInterface.call(r.default(this),"show")})),r.default.fn.tab=lt._jQueryInterface,r.default.fn.tab.Constructor=lt,r.default.fn.tab.noConflict=function(){return r.default.fn.tab=st,lt._jQueryInterface};var ct=r.default.fn.toast,ht={animation:"boolean",autohide:"boolean",delay:"number"},ut={animation:!0,autohide:!0,delay:500},dt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=r.default.Event("show.bs.toast");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),r.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),c.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var n=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,i).emulateTransitionEnd(n)}else i()}},e.hide=function(){if(this._element.classList.contains("show")){var t=r.default.Event("hide.bs.toast");r.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),r.default(this._element).off("click.dismiss.bs.toast"),r.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},ut,r.default(this._element).data(),"object"==typeof t&&t?t:{}),c.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;r.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),r.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,e).emulateTransitionEnd(i)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this),n=i.data("bs.toast");if(n||(n=new t(this,"object"==typeof e&&e),i.data("bs.toast",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e](this)}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return ht}},{key:"Default",get:function(){return ut}}]),t}();r.default.fn.toast=dt._jQueryInterface,r.default.fn.toast.Constructor=dt,r.default.fn.toast.noConflict=function(){return r.default.fn.toast=ct,dt._jQueryInterface},t.Alert=d,t.Button=f,t.Carousel=x,t.Collapse=k,t.Dropdown=E,t.Modal=j,t.Popover=et,t.Scrollspy=at,t.Tab=lt,t.Toast=dt,t.Tooltip=q,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?e(require("jquery")):e(t.jQuery)}(this,(function(t){t.fn.appear=function(e,i){var n=t.extend({data:void 0,one:!0,accX:0,accY:0},i);return this.each((function(){var i=t(this);if(i.appeared=!1,e){var r=t(window),o=function(){if(i.is(":visible")){var t=r.scrollLeft(),e=r.scrollTop(),o=i.offset(),a=o.left,s=o.top,l=n.accX,c=n.accY,h=i.height(),u=r.height(),d=i.width(),p=r.width();s+h+c>=e&&s<=e+u+c&&a+d+l>=t&&a<=t+p+l?i.appeared||i.trigger("appear",n.data):i.appeared=!1}else i.appeared=!1},a=function(){if(i.appeared=!0,n.one){r.unbind("scroll",o);var a=t.inArray(o,t.fn.appear.checks);a>=0&&t.fn.appear.checks.splice(a,1)}e.apply(this,arguments)};n.one?i.one("appear",n.data,a):i.bind("appear",n.data,a),r.scroll(o),t.fn.appear.checks.push(o),o()}else i.trigger("appear",n.data)}))},t.extend(t.fn.appear,{checks:[],timeout:null,checkAll:function(){var e=t.fn.appear.checks.length;if(e>0)for(;e--;)t.fn.appear.checks[e]()},run:function(){t.fn.appear.timeout&&clearTimeout(t.fn.appear.timeout),t.fn.appear.timeout=setTimeout(t.fn.appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],(function(e,i){var n=t.fn[i];n&&(t.fn[i]=function(){var e=n.apply(this,arguments);return t.fn.appear.run(),e})}))})),
|
||
/*!
|
||
Waypoints - 4.0.1
|
||
Copyright © 2011-2016 Caleb Troughton
|
||
Licensed under the MIT license.
|
||
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
|
||
*/
|
||
function(){"use strict";var t=0,e={};function i(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=i.Adapter.extend({},i.defaults,n),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=[];for(var n in e)i.push(e[n]);for(var r=0,o=i.length;r<o;r++)i[r][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=i}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,i={},n=window.Waypoint,r=window.onload;function o(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new o(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}o.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},o.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),n=this.element==this.element.window;t&&e&&!n&&(this.adapter.off(".waypoints"),delete i[this.key])},o.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,n.requestAnimationFrame(e))}))},o.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",(function(){t.didScroll&&!n.isTouch||(t.didScroll=!0,n.requestAnimationFrame(e))}))},o.prototype.handleResize=function(){n.Context.refreshAll()},o.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],r=n.newScroll>n.oldScroll?n.forward:n.backward;for(var o in this.waypoints[i]){var a=this.waypoints[i][o];if(null!==a.triggerPoint){var s=n.oldScroll<a.triggerPoint,l=n.newScroll>=a.triggerPoint;(s&&l||!s&&!l)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},o.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},o.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,r=t.length;n<r;n++)t[n].destroy()},o.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),r={};for(var o in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=t[o];for(var s in this.waypoints[o]){var l,c,h,u,d=this.waypoints[o][s],p=d.options.offset,f=d.triggerPoint,g=0,m=null==f;d.element!==d.element.window&&(g=d.adapter.offset()[a.offsetProp]),"function"==typeof p?p=p.apply(d):"string"==typeof p&&(p=parseFloat(p),d.options.offset.indexOf("%")>-1&&(p=Math.ceil(a.contextDimension*p/100))),l=a.contextScroll-a.contextOffset,d.triggerPoint=Math.floor(g+l-p),c=f<a.oldScroll,h=d.triggerPoint>=a.oldScroll,u=!c&&!h,!m&&(c&&h)?(d.queueTrigger(a.backward),r[d.group.id]=d.group):(!m&&u||m&&a.oldScroll>=d.triggerPoint)&&(d.queueTrigger(a.forward),r[d.group.id]=d.group)}}return n.requestAnimationFrame((function(){for(var t in r)r[t].flushTriggers()})),this},o.findOrCreateByElement=function(t){return o.findByElement(t)||new o(t)},o.refreshAll=function(){for(var t in i)i[t].refresh()},o.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){r&&r(),o.refreshAll()},n.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},n.Context=o}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},n=window.Waypoint;function r(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}r.prototype.add=function(t){this.waypoints.push(t)},r.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},r.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],r="up"===i||"left"===i;n.sort(r?e:t);for(var o=0,a=n.length;o<a;o+=1){var s=n[o];(s.options.continuous||o===n.length-1)&&s.trigger([i])}}this.clearTriggerQueues()},r.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},r.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},r.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},r.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},r.prototype.first=function(){return this.waypoints[0]},r.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},r.findOrCreate=function(t){return i[t.axis][t.name]||new r(t)},n.Group=r}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,n){i[n]=t[n]})),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],n=arguments[0];return e.isFunction(arguments[0])&&((n=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var r=e.extend({},n,{element:this});"string"==typeof r.context&&(r.context=e(this).closest(r.context)[0]),i.push(new t(r))})),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}(),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.counterUp=e():t.counterUp=e()}(window,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,i){"use strict";i.r(e),i.d(e,"divideNumbers",(function(){return r})),i.d(e,"hasComma",(function(){return o})),i.d(e,"isFloat",(function(){return a})),i.d(e,"decimalPlaces",(function(){return s})),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.action,o=void 0===i?"start":i,a=e.duration,s=void 0===a?1e3:a,l=e.delay,c=void 0===l?16:l,h=e.lang,u=void 0===h?void 0:h;if("stop"!==o){if(n(t),/[0-9]/.test(t.innerHTML)){var d=r(t.innerHTML,{duration:s||t.getAttribute("data-duration"),lang:u||document.querySelector("html").getAttribute("lang")||void 0,delay:c||t.getAttribute("data-delay")});t._countUpOrigInnerHTML=t.innerHTML,t.innerHTML=d[0],t.style.visibility="visible",t.countUpTimeout=setTimeout((function e(){t.innerHTML=d.shift(),d.length?(clearTimeout(t.countUpTimeout),t.countUpTimeout=setTimeout(e,c)):t._countUpOrigInnerHTML=void 0}),c)}}else n(t)};var n=function(t){clearTimeout(t.countUpTimeout),t._countUpOrigInnerHTML&&(t.innerHTML=t._countUpOrigInnerHTML,t._countUpOrigInnerHTML=void 0),t.style.visibility=""},r=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.duration,n=void 0===i?1e3:i,r=e.delay,o=void 0===r?16:r,a=e.lang,s=void 0===a?void 0:a,l=n/o,c=t.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),h=[],u=0;u<l;u++)h.push("");for(var d=0;d<c.length;d++)if(/([0-9.][,.0-9]*[0-9]*)/.test(c[d])&&!/<[^>]+>/.test(c[d])){var p=c[d],f=/[0-9]+,[0-9]+/.test(p);p=p.replace(/,/g,"");for(var g=/^[0-9]+\.[0-9]+$/.test(p),m=g?(p.split(".")[1]||[]).length:0,y=h.length-1,v=l;v>=1;v--){var b=parseInt(p/l*v,10);g&&(b=parseFloat(p/l*v).toFixed(m),b=parseFloat(b).toLocaleString(s)),f&&(b=b.toLocaleString(s)),h[y--]+=b}}else for(var x=0;x<l;x++)h[x]+=c[d];return h[h.length]=t.toString(),h},o=function(t){return/[0-9]+,[0-9]+/.test(t)},a=function(t){return/^[0-9]+\.[0-9]+$/.test(t)},s=function(t){return a(t)?(t.split(".")[1]||[]).length:0}}])})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var i,n,r,o,a,s,l,c,h,u,d,p,f,g,m;function y(t,e){return f.call(t,e)}function v(t,e){var i,n,r,o,a,s,l,c,h,u,p,f=e&&e.split("/"),g=d.map,y=g&&g["*"]||{};if(t){for(a=(t=t.split("/")).length-1,d.nodeIdCompat&&m.test(t[a])&&(t[a]=t[a].replace(m,"")),"."===t[0].charAt(0)&&f&&(t=f.slice(0,f.length-1).concat(t)),h=0;h<t.length;h++)if("."===(p=t[h]))t.splice(h,1),--h;else if(".."===p){if(0===h||1===h&&".."===t[2]||".."===t[h-1])continue;0<h&&(t.splice(h-1,2),h-=2)}t=t.join("/")}if((f||y)&&g){for(h=(i=t.split("/")).length;0<h;--h){if(n=i.slice(0,h).join("/"),f)for(u=f.length;0<u;--u)if(r=(r=g[f.slice(0,u).join("/")])&&r[n]){o=r,s=h;break}if(o)break;!l&&y&&y[n]&&(l=y[n],c=h)}!o&&l&&(o=l,s=c),o&&(i.splice(0,s,o),t=i.join("/"))}return t}function b(t,e){return function(){var i=g.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),s.apply(o,i.concat([t,e]))}}function x(t){return function(e){h[t]=e}}function w(t){if(y(u,t)){var e=u[t];delete u[t],p[t]=!0,a.apply(o,e)}if(!y(h,t)&&!y(p,t))throw new Error("No "+t);return h[t]}function _(t){var e,i=t?t.indexOf("!"):-1;return-1<i&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function S(t){return t?_(t):[]}return e&&e.requirejs||(e?n=e:e={},h={},u={},d={},p={},f=Object.prototype.hasOwnProperty,g=[].slice,m=/\.js$/,l=function(t,e){var i,n,r=_(t),o=r[0],a=e[1];return t=r[1],o&&(i=w(o=v(o,a))),o?t=i&&i.normalize?i.normalize(t,(n=a,function(t){return v(t,n)})):v(t,a):(o=(r=_(t=v(t,a)))[0],t=r[1],o&&(i=w(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:i}},c={require:function(t){return b(t)},exports:function(t){var e=h[t];return void 0!==e?e:h[t]={}},module:function(t){return{id:t,uri:"",exports:h[t],config:(e=t,function(){return d&&d.config&&d.config[e]||{}})};var e}},a=function(t,e,i,n){var r,a,s,d,f,g,m,v=[],_=typeof i;if(g=S(n=n||t),"undefined"==_||"function"==_){for(e=!e.length&&i.length?["require","exports","module"]:e,f=0;f<e.length;f+=1)if("require"===(a=(d=l(e[f],g)).f))v[f]=c.require(t);else if("exports"===a)v[f]=c.exports(t),m=!0;else if("module"===a)r=v[f]=c.module(t);else if(y(h,a)||y(u,a)||y(p,a))v[f]=w(a);else{if(!d.p)throw new Error(t+" missing "+a);d.p.load(d.n,b(n,!0),x(a),{}),v[f]=h[a]}s=i?i.apply(h[t],v):void 0,t&&(r&&r.exports!==o&&r.exports!==h[t]?h[t]=r.exports:s===o&&m||(h[t]=s))}else t&&(h[t]=i)},i=n=s=function(t,e,i,n,r){if("string"==typeof t)return c[t]?c[t](e):w(l(t,S(e)).f);if(!t.splice){if((d=t).deps&&s(d.deps,d.callback),!e)return;e.splice?(t=e,e=i,i=null):t=o}return e=e||function(){},"function"==typeof i&&(i=n,n=r),n?a(o,t,e,i):setTimeout((function(){a(o,t,e,i)}),4),s},s.config=function(t){return s(t)},i._defined=h,(r=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),y(h,t)||y(u,t)||(u[t]=[t,e,i])}).amd={jQuery:!0},e.requirejs=i,e.require=n,e.define=r),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function i(t){var e=t.prototype,i=[];for(var n in e)"function"==typeof e[n]&&"constructor"!==n&&i.push(n);return i}function n(){this.listeners={}}e.Extend=function(t,e){var i={}.hasOwnProperty;function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},e.Decorate=function(t,e){var n=i(e),r=i(t);function o(){var i=Array.prototype.unshift,n=e.prototype.constructor.length,r=t.prototype.constructor;0<n&&(i.call(arguments,t.prototype.constructor),r=e.prototype.constructor),r.apply(this,arguments)}e.displayName=t.displayName,o.prototype=new function(){this.constructor=o};for(var a=0;a<r.length;a++){var s=r[a];o.prototype[s]=t.prototype[s]}function l(t){var i=function(){};t in o.prototype&&(i=o.prototype[t]);var n=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,i),n.apply(this,arguments)}}for(var c=0;c<n.length;c++){var h=n[c];o.prototype[h]=l(h)}return o},n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),(i[0]._type=t)in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},e.Observable=n,e.generateChars=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var r=0;r<i.length;r++){var o=i[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in n||(n[o]={}),r==i.length-1&&(n[o]=t[e]),n=n[o]}delete t[e]}}return t},e.hasScroll=function(e,i){var n=t(i),r=i.style.overflowX,o=i.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,i){if("1.7"===t.fn.jquery.substr(0,3)){var n=t();t.map(i,(function(t){n=n.add(t)})),i=n}e.append(i)},e.__cache={};var r=0;return e.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++r),e=r.toString())),e},e.StoreData=function(t,i,n){var r=e.GetUniqueElementId(t);e.__cache[r]||(e.__cache[r]={}),e.__cache[r][i]=n},e.GetData=function(i,n){var r=e.GetUniqueElementId(i);return n?e.__cache[r]&&null!=e.__cache[r][n]?e.__cache[r][n]:t(i).data(n):e.__cache[r]},e.RemoveData=function(t){var i=e.GetUniqueElementId(t);null!=e.__cache[i]&&delete e.__cache[i],t.removeAttribute("data-select2-id")},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(i(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],r=this.option(n);e.push(r)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");0<e.length?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(n){var r=t.map(n,(function(t){return t.id.toString()}));i.$results.find(".select2-results__option[aria-selected]").each((function(){var i=t(this),n=e.GetData(this,"data"),o=""+n.id;null!=n.element&&n.element.selected||null==n.element&&-1<t.inArray(o,r)?i.attr("aria-selected","true"):i.attr("aria-selected","false")}))}))},i.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},i=this.option(e);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var n=document.createElement("li");n.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=i.element&&o.call(i.element,":disabled")||null==i.element&&i.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==i.id&&delete r["aria-selected"],null!=i._resultId&&(n.id=i._resultId),i.title&&(n.title=i.title),i.children&&(r.role="group",r["aria-label"]=i.text,delete r["aria-selected"]),r){var s=r[a];n.setAttribute(a,s)}if(i.children){var l=t(n),c=document.createElement("strong");c.className="select2-results__group",t(c),this.template(i,c);for(var h=[],u=0;u<i.children.length;u++){var d=i.children[u],p=this.option(d);h.push(p)}var f=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(h),l.append(c),l.append(f)}else this.template(i,n);return e.StoreData(n,"data",i),n},i.prototype.bind=function(i,n){var r=this,o=i.id+"-results";this.$results.attr("id",o),i.on("results:all",(function(t){r.clear(),r.append(t.data),i.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),i.on("results:append",(function(t){r.append(t.data),i.isOpen()&&r.setClasses()})),i.on("query",(function(t){r.hideMessages(),r.showLoading(t)})),i.on("select",(function(){i.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),i.on("unselect",(function(){i.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),i.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),i.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),i.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),i.on("results:select",(function(){var t=r.getHighlightedResults();if(0!==t.length){var i=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:i})}})),i.on("results:previous",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),i=e.index(t);if(!(i<=0)){var n=i-1;0===t.length&&(n=0);var o=e.eq(n);o.trigger("mouseenter");var a=r.$results.offset().top,s=o.offset().top,l=r.$results.scrollTop()+(s-a);0===n?r.$results.scrollTop(0):s-a<0&&r.$results.scrollTop(l)}})),i.on("results:next",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),i=e.index(t)+1;if(!(i>=e.length)){var n=e.eq(i);n.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),a=n.offset().top+n.outerHeight(!1),s=r.$results.scrollTop()+a-o;0===i?r.$results.scrollTop(0):o<a&&r.$results.scrollTop(s)}})),i.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),i.on("results:message",(function(t){r.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=r.$results.scrollTop(),i=r.$results.get(0).scrollHeight-e+t.deltaY,n=0<t.deltaY&&e-t.deltaY<=0,o=t.deltaY<0&&i<=r.$results.height();n?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(i){var n=t(this),o=e.GetData(this,"data");"true"!==n.attr("aria-selected")?r.trigger("select",{originalEvent:i,data:o}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:i,data:o}):r.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(i){var n=e.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),i=this.$results.offset().top,n=t.offset().top,r=this.$results.scrollTop()+(n-i),o=n-i;r-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=n(e,i);null==o?i.style.display="none":"string"==typeof o?i.innerHTML=r(o):t(i).append(o)},i})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var i=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i},n.prototype.bind=function(t,e){var n=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){n.trigger("focus",t)})),this.$selection.on("blur",(function(t){n._handleBlur(t)})),this.$selection.on("keydown",(function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){n.update(t.data)})),t.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(t)})),t.on("close",(function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)})),t.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(i){t(document.body).on("mousedown.select2."+i.id,(function(i){var n=t(i.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=n[0]&&e.GetData(this,"element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var i=this;r.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||i.$selection.trigger("focus")}))},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){if(0!==t.length){var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n);var r=e.title||e.text;r?i.attr("title",r):i.removeAttr("title")}else this.clear()},r})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,r){var o=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){o.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!o.isDisabled()){var n=t(this).parent(),r=i.GetData(n[0],"data");o.trigger("unselect",{originalEvent:e,data:r})}}))},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n<t.length;n++){var r=t[n],o=this.selectionContainer(),a=this.display(r,o);o.append(a);var s=r.title||r.text;s&&o.attr("title",s),i.StoreData(o[0],"data",r),e.push(o)}var l=this.$selection.find(".select2-selection__rendered");i.appendMany(l,e)}},n})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},e.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(1<e.length||i)return t.call(this,e);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,i){function n(){}return n.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();var r=i.GetData(n[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:r};if(this.trigger("clear",a),a.prevented)this.$element.val(o);else{for(var s=0;s<r.length;s++)if(a={data:r[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},n.prototype.update=function(e,n){if(e.call(this,n),!(0<this.$selection.find(".select2-selection__placeholder").length||0===n.length)){var r=this.options.get("translations").get("removeAllItems"),o=t('<span class="select2-selection__clear" title="'+r()+'">×</span>');i.StoreData(o[0],"data",n),this.$selection.find(".select2-selection__rendered").prepend(o)}},n})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=e.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(t,n,r){var o=this,a=n.id+"-results";t.call(this,n,r),n.on("open",(function(){o.$search.attr("aria-controls",a),o.$search.trigger("focus")})),n.on("close",(function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),n.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),n.on("disable",(function(){o.$search.prop("disabled",!0)})),n.on("focus",(function(t){o.$search.trigger("focus")})),n.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){o.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){o._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which===i.BACKSPACE&&""===o.$search.val()){var n=o.$searchContainer.prev(".select2-selection__choice");if(0<n.length){var r=e.GetData(n[0],"data");o.searchRemoveChoice(r),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){o.$search.val()&&t.stopPropagation()}));var s=document.documentMode,l=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(l&&"input"===t.type)o.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&o.handleSearch(t)}}))},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},n})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,i,n),i.on("*",(function(e,i){if(-1!==t.inArray(e,o)){i=i||{};var n=t.Event("select2:"+e,{params:i});r.$element.trigger(n),-1!==t.inArray(e,a)&&(i.prevented=n.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return n+=t.generateChars(4),null!=i.id?n+="-"+i.id.toString():n+="-"+t.generateChars(4),n},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=[],n=this;this.$element.find(":selected").each((function(){var t=i(this),r=n.item(t);e.push(r)})),t(e)},n.prototype.select=function(t){var e=this;if(t.selected=!0,i(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var r=[];(t=[t]).push.apply(t,n);for(var o=0;o<t.length;o++){var a=t[o].id;-1===i.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("input").trigger("change")}));else{var n=t.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,i(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(n){for(var r=[],o=0;o<n.length;o++){var a=n[o].id;a!==t.id&&-1===i.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("input").trigger("change")}))}},n.prototype.bind=function(t,e){var i=this;(this.container=t).on("select",(function(t){i.select(t.data)})),t.on("unselect",(function(t){i.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},n.prototype.query=function(t,e){var n=[],r=this;this.$element.children().each((function(){var e=i(this);if(e.is("option")||e.is("optgroup")){var o=r.item(e),a=r.matches(t,o);null!==a&&n.push(a)}})),e({results:n})},n.prototype.addOptions=function(t){e.appendMany(this.$element,t)},n.prototype.option=function(t){var n;t.children?(n=document.createElement("optgroup")).label=t.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=t.text:n.innerText=t.text,void 0!==t.id&&(n.value=t.id),t.disabled&&(n.disabled=!0),t.selected&&(n.selected=!0),t.title&&(n.title=t.title);var r=i(n),o=this._normalizeItem(t);return o.element=n,e.StoreData(n,"data",o),r},n.prototype.item=function(t){var n={};if(null!=(n=e.GetData(t[0],"data")))return n;if(t.is("option"))n={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){n={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),o=[],a=0;a<r.length;a++){var s=i(r[a]),l=this.item(s);o.push(l)}n.children=o}return(n=this._normalizeItem(n)).element=t[0],e.StoreData(t[0],"data",n),n},n.prototype._normalizeItem=function(t){return t!==Object(t)&&(t={id:t,text:t}),null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},{selected:!1,disabled:!1},t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){this._dataToConvert=e.get("data")||[],n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype.bind=function(t,e){n.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){var n=this,r=this.$element.find("option"),o=r.map((function(){return n.item(i(this)).id})).get(),a=[];function s(t){return function(){return i(this).val()==t.id}}for(var l=0;l<t.length;l++){var c=this._normalizeItem(t[l]);if(0<=i.inArray(c.id,o)){var h=r.filter(s(c)),u=this.item(h),d=i.extend(!0,{},c,u),p=this.option(d);h.replaceWith(p)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);e.appendMany(f,g)}a.push(f)}}return a},n})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var r=i.ajax(t);return r.then(e),r.fail(n),r}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){var n=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=i.extend({type:"GET"},this.ajaxOptions);function o(){var o=r.transport(r,(function(r){var o=n.processResults(r,t);n.options.get("debug")&&window.console&&console.error&&(o&&o.results&&i.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){"status"in o&&(0===o.status||"0"===o.status)||n.trigger("results:message",{message:"errorLoading"})}));n._request=o}"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},n})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,i,n){var r=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var a=n.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,i,n),t.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],c=this._normalizeItem(l),h=this.option(c);this.$element.append(h)}}return e.prototype.query=function(t,e,i){var n=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(r,o){for(var a=r.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!o&&(r.data=a,void i(r))}if(o)return!0;var h=n.createTag(e);if(null!=h){var u=n.option(h);u.attr("data-select2-tag",!0),n.addOptions([u]),n.insertTag(a,h)}r.results=a,i(r)})):t.call(this,e,i)},e.prototype.createTag=function(e,i){var n=t.trim(i.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){var r=this;i.term=i.term||"";var o=this.tokenizer(i,this.options,(function(e){var i,n=r._normalizeItem(e);if(!r.$element.find("option").filter((function(){return t(this).val()===n.id})).length){var o=r.option(n);o.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([o])}i=n,r.trigger("select",{data:i})}));o.term!==i.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),i.term=o.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,r){for(var o=n.get("tokenSeparators")||[],a=i.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var c=a[s];if(-1!==t.inArray(c,o)){var h=a.substr(0,s),u=l(t.extend({},i,{term:h}));null!=u?(r(u),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",0<this.maximumInputLength&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(){n._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,i){var n=this;this._checkIfMaximumSelected((function(){t.call(n,e,i)}))},t.prototype._checkIfMaximumSelected=function(t,e){var i=this;this.current((function(t){var n=null!=t?t.length:0;0<i.maximumSelectionLength&&n>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e&&e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function i(){}return i.prototype.render=function(e){var i=e.call(this),n=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(e,i,n){var r=this,o=i.id+"-results";e.call(this,i,n),this.$search.on("keydown",(function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){r.handleSearch(t)})),i.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),i.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),i.on("focus",(function(){i.isOpen()||r.$search.trigger("focus")})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))})),i.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},i.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.showSearch=function(t,e){return!0},i})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;0<=n;n--){var r=e[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",(function(t){n.lastParams=t,n.loading=!0})),e.on("query:append",(function(t){n.lastParams=t,n.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var i=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=i+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=t(n.get("dropdownParent")||document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),n._bindContainerResultHandlers(e)})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>"),n=e.call(this);return i.append(n),this.$dropdownContainer=i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var i=this;e.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,n){var r=this,o="scroll.select2."+n.id,a="resize.select2."+n.id,s="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(o,(function(i){var n=e.GetData(this,"select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(o+" "+a+" "+s,(function(t){r._positionDropdown(),r._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,o="resize.select2."+n.id,a="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+o+" "+a)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),l=e.scrollTop(),c=e.scrollTop()+e.height(),h=l<o.top-s,u=c>o.bottom+s,d={left:o.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f={top:0,left:0};(t.contains(document.body,p[0])||p[0].isConnected)&&(f=p.offset()),d.top-=f.top,d.left-=f.left,i||n||(r="below"),u||!h||i?!h&&u&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(d.top=a.top-f.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var i=0,n=0;n<e.length;n++){var r=e[n];r.children?i+=t(r.children):i++}return i}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(t){n._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,i){if(i&&null!=i.originalSelect2Event){var n=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=t.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,i,n,r,o,a,s,l,c,h,u,d,p,f,g,m,y,v,b,x,w,_,S,P,k,C,T,A){function O(){this.reset()}return O.prototype.apply=function(h){if(null==(h=t.extend(!0,{},this.defaults,h)).dataAdapter){if(null!=h.ajax?h.dataAdapter=f:null!=h.data?h.dataAdapter=p:h.dataAdapter=d,0<h.minimumInputLength&&(h.dataAdapter=c.Decorate(h.dataAdapter,y)),0<h.maximumInputLength&&(h.dataAdapter=c.Decorate(h.dataAdapter,v)),0<h.maximumSelectionLength&&(h.dataAdapter=c.Decorate(h.dataAdapter,b)),h.tags&&(h.dataAdapter=c.Decorate(h.dataAdapter,g)),null==h.tokenSeparators&&null==h.tokenizer||(h.dataAdapter=c.Decorate(h.dataAdapter,m)),null!=h.query){var u=e(h.amdBase+"compat/query");h.dataAdapter=c.Decorate(h.dataAdapter,u)}if(null!=h.initSelection){var A=e(h.amdBase+"compat/initSelection");h.dataAdapter=c.Decorate(h.dataAdapter,A)}}if(null==h.resultsAdapter&&(h.resultsAdapter=i,null!=h.ajax&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,S)),null!=h.placeholder&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,_)),h.selectOnClose&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,C))),null==h.dropdownAdapter){if(h.multiple)h.dropdownAdapter=x;else{var O=c.Decorate(x,w);h.dropdownAdapter=O}if(0!==h.minimumResultsForSearch&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,k)),h.closeOnSelect&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,T)),null!=h.dropdownCssClass||null!=h.dropdownCss||null!=h.adaptDropdownCssClass){var M=e(h.amdBase+"compat/dropdownCss");h.dropdownAdapter=c.Decorate(h.dropdownAdapter,M)}h.dropdownAdapter=c.Decorate(h.dropdownAdapter,P)}if(null==h.selectionAdapter){if(h.multiple?h.selectionAdapter=r:h.selectionAdapter=n,null!=h.placeholder&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,o)),h.allowClear&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,a)),h.multiple&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,s)),null!=h.containerCssClass||null!=h.containerCss||null!=h.adaptContainerCssClass){var E=e(h.amdBase+"compat/containerCss");h.selectionAdapter=c.Decorate(h.selectionAdapter,E)}h.selectionAdapter=c.Decorate(h.selectionAdapter,l)}h.language=this._resolveLanguage(h.language),h.language.push("en");for(var I=[],D=0;D<h.language.length;D++){var L=h.language[D];-1===I.indexOf(L)&&I.push(L)}return h.language=I,h.translations=this._processTranslations(h.language,h.debug),h},O.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return u[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function i(n,r){if(""===t.trim(n.term))return r;if(r.children&&0<r.children.length){for(var o=t.extend(!0,{},r),a=r.children.length-1;0<=a;a--)null==i(n,r.children[a])&&o.children.splice(a,1);return 0<o.children.length?o:i(n,o)}var s=e(r.text).toUpperCase(),l=e(n.term).toUpperCase();return-1<s.indexOf(l)?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(t,e){var i=t.language,n=this.defaults.language,r=e.prop("lang"),o=e.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(o));return t.language=a,t},O.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var i;i=t.isArray(e)?e:[e];for(var n=[],r=0;r<i.length;r++)if(n.push(i[r]),"string"==typeof i[r]&&0<i[r].indexOf("-")){var o=i[r].split("-")[0];n.push(o)}return n},O.prototype._processTranslations=function(e,i){for(var n=new h,r=0;r<e.length;r++){var o=new h,a=e[r];if("string"==typeof a)try{o=h.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,o=h.loadPath(a)}catch(e){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else o=t.isPlainObject(a)?new h(a):a;n.extend(o)}return n},O.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i;var r=c._convertData(n);t.extend(!0,this.defaults,r)},new O})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,i,n){function r(e,r){if(this.options=e,null!=r&&this.fromElement(r),null!=r&&(this.options=i.applyFromElement(this.options,r)),this.options=i.apply(this.options),r&&r.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));var r={};function o(t,e){return e.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";if(s.substr(0,l.length)==l){var c=s.substring(l.length),h=n.GetData(t[0],c);r[c.replace(/-([a-z])/g,o)]=h}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var u=e.extend(!0,{},n.GetData(t[0]),r);for(var d in u=n._convertData(u))-1<e.inArray(d,i)||(e.isPlainObject(this.options[d])?e.extend(this.options[d],u[d]):this.options[d]=u[d]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,i,n){var r=function(t,n){null!=i.GetData(t[0],"select2")&&i.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),r.__super__.constructor.call(this);var o=t.attr("tabindex")||0;i.StoreData(t[0],"old-tabindex",o),t.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var h=this.options.get("resultsAdapter");this.results=new h(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){u.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(t[0],"select2",this),t.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=e)return"computedstyle"!=e?e:window.getComputedStyle(t[0]).width;var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,"").match(i);if(null!==c&&1<=c.length)return c[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e((function(e){t._syncA(),t._syncS(null,e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerSelectionEvents=function(){var e=this,i=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,r){-1===t.inArray(n,i)&&e.trigger(n,r)}))},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&e.altKey?(t.close(e),e.preventDefault()):i===n.ENTER?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e,i){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(i)if(i.addedNodes&&0<i.addedNodes.length)for(var o=0;o<i.addedNodes.length;o++)i.addedNodes[o].selected&&(n=!0);else i.removedNodes&&0<i.removedNodes.length?n=!0:t.isArray(i)&&t.each(i,(function(t,e){if(r._isChangeMutation(t,e))return!(n=!0)}));else n=!0;return n}},r.prototype._syncSubtree=function(t,e){var i=this._isChangeMutation(t,e),n=this;i&&this.dataAdapter.current((function(t){n.trigger("selection:update",{data:t})}))},r.prototype.trigger=function(t,e){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in n){var o=n[t],a={prevented:!1,name:t,args:e};if(i.call(this,o,a),a.prevented)return void(e.prevented=!0)}i.call(this,t,e)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var i=e[0];t.isArray(i)&&(i=t.map(i,(function(t){return t.toString()}))),this.$element.val(i).trigger("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),i.StoreData(e[0],"element",this.$element),e},r})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,i,n,r){if(null==t.fn.select2){var o=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var n,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,a)})),-1<t.inArray(e,o)?this:n}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Scrollbar=e():t.Scrollbar=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=67)}([function(t,e,i){(function(e){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")()}).call(this,i(43))},function(t,e,i){var n=i(0),r=i(51),o=i(3),a=i(29),s=i(56),l=i(76),c=r("wks"),h=n.Symbol,u=l?h:h&&h.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(h,t)?c[t]=h[t]:c[t]=u("Symbol."+t)),c[t]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(6),r=i(46),o=i(7),a=i(25),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(o(t),e=a(e,!0),o(i),r)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(4);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,i){var n=i(2);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,i){var n=i(6),r=i(5),o=i(14);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n,r,o,a=i(50),s=i(0),l=i(2),c=i(8),h=i(3),u=i(27),d=i(16),p=s.WeakMap;if(a){var f=new p,g=f.get,m=f.has,y=f.set;n=function(t,e){return y.call(f,t,e),e},r=function(t){return g.call(f,t)||{}},o=function(t){return m.call(f,t)}}else{var v=u("state");d[v]=!0,n=function(t,e){return c(t,v,e),e},r=function(t){return h(t,v)?t[v]:{}},o=function(t){return h(t,v)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}}},function(t,e,i){var n=i(0);t.exports=n},function(t,e,i){var n=i(0),r=i(8),o=i(3),a=i(26),s=i(48),l=i(9),c=l.get,h=l.enforce,u=String(String).split("String");(t.exports=function(t,e,i,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof i&&("string"!=typeof e||o(i,"name")||r(i,"name",e),h(i).source=u.join("string"==typeof e?e:"")),t!==n?(l?!d&&t[e]&&(c=!0):delete t[e],c?t[e]=i:r(t,e,i)):c?t[e]=i:a(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(t,e){t.exports={}},function(t,e,i){var n=i(0),r=i(44).f,o=i(8),a=i(11),s=i(26),l=i(70),c=i(54);t.exports=function(t,e){var i,h,u,d,p,f=t.target,g=t.global,m=t.stat;if(i=g?n:m?n[f]||s(f,{}):(n[f]||{}).prototype)for(h in e){if(d=e[h],u=t.noTargetGet?(p=r(i,h))&&p.value:i[h],!c(g?h:f+(m?".":"#")+h,t.forced)&&void 0!==u){if(typeof d==typeof u)continue;l(d,u)}(t.sham||u&&u.sham)&&o(d,"sham",!0),a(i,h,d,t)}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(22),r=i(24);t.exports=function(t){return n(r(t))}},function(t,e){t.exports={}},function(t,e,i){var n=i(31),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e,i){var n=i(16),r=i(2),o=i(3),a=i(5).f,s=i(29),l=i(75),c=s("meta"),h=0,u=Object.isExtensible||function(){return!0},d=function(t){a(t,c,{value:{objectID:"O"+ ++h,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,c)){if(!u(t))return"F";if(!e)return"E";d(t)}return t[c].objectID},getWeakData:function(t,e){if(!o(t,c)){if(!u(t))return!0;if(!e)return!1;d(t)}return t[c].weakData},onFreeze:function(t){return l&&p.REQUIRED&&u(t)&&!o(t,c)&&d(t),t}};n[c]=!0},function(t,e,i){var n=i(77);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){var n=i(24);t.exports=function(t){return Object(n(t))}},function(t,e,i){"use strict";var n=i(13),r=i(0),o=i(54),a=i(11),s=i(18),l=i(33),c=i(35),h=i(2),u=i(4),d=i(60),p=i(36),f=i(78);t.exports=function(t,e,i){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),y=g?"set":"add",v=r[t],b=v&&v.prototype,x=v,w={},_=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!h(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!h(t))&&e.call(this,0===t?0:t)}:function(t,i){return e.call(this,0===t?0:t,i),this})};if(o(t,"function"!=typeof v||!(m||b.forEach&&!u((function(){(new v).entries().next()})))))x=i.getConstructor(e,t,g,y),s.REQUIRED=!0;else if(o(t,!0)){var S=new x,P=S[y](m?{}:-0,1)!=S,k=u((function(){S.has(1)})),C=d((function(t){new v(t)})),T=!m&&u((function(){for(var t=new v,e=5;e--;)t[y](e,e);return!t.has(-0)}));C||((x=e((function(e,i){c(e,x,t);var n=f(new v,e,x);return null!=i&&l(i,n[y],n,g),n}))).prototype=b,b.constructor=x),(k||T)&&(_("delete"),_("has"),g&&_("get")),(T||P)&&_(y),m&&b.clear&&delete b.clear}return w[t]=x,n({global:!0,forced:x!=v},w),p(x,t),m||i.setStrong(x,t,g),x}},function(t,e,i){var n=i(4),r=i(23),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(2);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){var n=i(0),r=i(8);t.exports=function(t,e){try{r(n,t,e)}catch(i){n[t]=e}return e}},function(t,e,i){var n=i(51),r=i(29),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e){t.exports=!1},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++i+n).toString(36)}},function(t,e,i){var n=i(10),r=i(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(r[t]):n[t]&&n[t][e]||r[t]&&r[t][e]}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,i){var n=i(7),r=i(55),o=i(17),a=i(19),s=i(57),l=i(59),c=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,i,h,u){var d,p,f,g,m,y,v,b=a(e,i,h?2:1);if(u)d=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(r(p)){for(f=0,g=o(t.length);g>f;f++)if((m=h?b(n(v=t[f])[0],v[1]):b(t[f]))&&m instanceof c)return m;return new c(!1)}d=p.call(t)}for(y=d.next;!(v=y.call(d)).done;)if("object"==typeof(m=l(d,b,v.value,h))&&m&&m instanceof c)return m;return new c(!1)}).stop=function(t){return new c(!0,t)}},function(t,e,i){var n={};n[i(1)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e){t.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},function(t,e,i){var n=i(5).f,r=i(3),o=i(1)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n,r=i(7),o=i(80),a=i(32),s=i(16),l=i(81),c=i(47),h=i(27)("IE_PROTO"),u=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}p=n?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):function(){var t,e=c("iframe");return e.style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F}();for(var t=a.length;t--;)delete p.prototype[a[t]];return p()};s[h]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(u.prototype=r(t),i=new u,u.prototype=null,i[h]=t):i=p(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(11);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},function(t,e,i){"use strict";var n=i(13),r=i(82),o=i(65),a=i(61),s=i(36),l=i(8),c=i(11),h=i(1),u=i(28),d=i(12),p=i(64),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=h("iterator"),y=function(){return this};t.exports=function(t,e,i,h,p,v,b){r(i,e,h);var x,w,_,S=function(t){if(t===p&&A)return A;if(!g&&t in C)return C[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},P=e+" Iterator",k=!1,C=t.prototype,T=C[m]||C["@@iterator"]||p&&C[p],A=!g&&T||S(p),O="Array"==e&&C.entries||T;if(O&&(x=o(O.call(new t)),f!==Object.prototype&&x.next&&(u||o(x)===f||(a?a(x,f):"function"!=typeof x[m]&&l(x,m,y)),s(x,P,!0,!0),u&&(d[P]=y))),"values"==p&&T&&"values"!==T.name&&(k=!0,A=function(){return T.call(this)}),u&&!b||C[m]===A||l(C,m,A),d[e]=A,p)if(w={values:S("values"),keys:v?A:S("keys"),entries:S("entries")},b)for(_ in w)!g&&!k&&_ in C||c(C,_,w[_]);else n({target:e,proto:!0,forced:g||k},w);return w}},function(t,e,i){var n=i(34),r=i(11),o=i(85);n||r(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,i){"use strict";var n=i(86).charAt,r=i(9),o=i(39),a=r.set,s=r.getterFor("String Iterator");o(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},function(t,e,i){var n=i(0),r=i(87),o=i(88),a=i(8),s=i(1),l=s("iterator"),c=s("toStringTag"),h=o.values;for(var u in r){var d=n[u],p=d&&d.prototype;if(p){if(p[l]!==h)try{a(p,l,h)}catch(t){p[l]=h}if(p[c]||a(p,c,u),r[u])for(var f in o)if(p[f]!==o[f])try{a(p,f,o[f])}catch(t){p[f]=o[f]}}}},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n=i(6),r=i(45),o=i(14),a=i(15),s=i(25),l=i(3),c=i(46),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=s(e,!0),c)try{return h(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},function(t,e,i){var n=i(6),r=i(4),o=i(47);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,i){var n=i(0),r=i(2),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,i){var n=i(49),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return r.call(t)}),t.exports=n.inspectSource},function(t,e,i){var n=i(0),r=i(26),o=n["__core-js_shared__"]||r("__core-js_shared__",{});t.exports=o},function(t,e,i){var n=i(0),r=i(48),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(r(o))},function(t,e,i){var n=i(28),r=i(49);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,i){var n=i(3),r=i(15),o=i(73).indexOf,a=i(16);t.exports=function(t,e){var i,s=r(t),l=0,c=[];for(i in s)!n(a,i)&&n(s,i)&&c.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(c,i)||c.push(i));return c}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(4),r=/#|\.prototype\./,o=function(t,e){var i=s[a(t)];return i==c||i!=l&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},function(t,e,i){var n=i(1),r=i(12),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,i){var n=i(4);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,i){var n=i(58),r=i(12),o=i(1)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(34),r=i(23),o=i(1)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=n?r:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:a?r(e):"Object"==(n=r(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,i){var n=i(7);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,i){var n=i(1)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},function(t,e,i){var n=i(7),r=i(79);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,o){return n(i),r(o),e?t.call(i,o):i.__proto__=o,i}}():void 0)},function(t,e,i){"use strict";var n=i(5).f,r=i(37),o=i(38),a=i(19),s=i(35),l=i(33),c=i(39),h=i(84),u=i(6),d=i(18).fastKey,p=i(9),f=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,i,c){var h=t((function(t,n){s(t,h,e),f(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),u||(t.size=0),null!=n&&l(n,t[c],t,i)})),p=g(e),m=function(t,e,i){var n,r,o=p(t),a=y(t,e);return a?a.value=i:(o.last=a={index:r=d(e,!0),key:e,value:i,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),u?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},y=function(t,e){var i,n=p(t),r=d(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==e)return i};return o(h.prototype,{clear:function(){for(var t=p(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,u?t.size=0:this.size=0},delete:function(t){var e=p(this),i=y(this,t);if(i){var n=i.next,r=i.previous;delete e.index[i.index],i.removed=!0,r&&(r.next=n),n&&(n.previous=r),e.first==i&&(e.first=n),e.last==i&&(e.last=r),u?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(h.prototype,i?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),u&&n(h.prototype,"size",{get:function(){return p(this).size}}),h},setStrong:function(t,e,i){var n=e+" Iterator",r=g(e),o=g(n);c(t,e,(function(t,e){f(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),h(e)}}},function(t,e,i){var n=i(52),r=i(32);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e,i){"use strict";var n,r,o,a=i(65),s=i(8),l=i(3),c=i(1),h=i(28),u=c("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(r=a(a(o)))!==Object.prototype&&(n=r):d=!0),null==n&&(n={}),h||l(n,u)||s(n,u,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},function(t,e,i){var n=i(3),r=i(20),o=i(27),a=i(83),s=o("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},function(t,e,i){"use strict";(function(t){var i="object"==typeof t&&t&&t.Object===Object&&t;e.a=i}).call(this,i(43))},function(t,e,i){t.exports=i(105)},function(t,e,i){i(69),i(40),i(41),i(42);var n=i(10);t.exports=n.Map},function(t,e,i){"use strict";var n=i(21),r=i(62);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},function(t,e,i){var n=i(3),r=i(71),o=i(44),a=i(5);t.exports=function(t,e){for(var i=r(e),s=a.f,l=o.f,c=0;c<i.length;c++){var h=i[c];n(t,h)||s(t,h,l(e,h))}}},function(t,e,i){var n=i(30),r=i(72),o=i(53),a=i(7);t.exports=n("Reflect","ownKeys")||function(t){var e=r.f(a(t)),i=o.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(52),r=i(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){var n=i(15),r=i(17),o=i(74),a=function(t){return function(e,i,a){var s,l=n(e),c=r(l.length),h=o(a,c);if(t&&i!=i){for(;c>h;)if((s=l[h++])!=s)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,i){var n=i(31),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},function(t,e,i){var n=i(4);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,i){var n=i(56);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,i){var n=i(2),r=i(61);t.exports=function(t,e,i){var o,a;return r&&"function"==typeof(o=e.constructor)&&o!==i&&n(a=o.prototype)&&a!==i.prototype&&r(t,a),t}},function(t,e,i){var n=i(2);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,i){var n=i(6),r=i(5),o=i(7),a=i(63);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var i,n=a(e),s=n.length,l=0;s>l;)r.f(t,i=n[l++],e[i]);return t}},function(t,e,i){var n=i(30);t.exports=n("document","documentElement")},function(t,e,i){"use strict";var n=i(64).IteratorPrototype,r=i(37),o=i(14),a=i(36),s=i(12),l=function(){return this};t.exports=function(t,e,i){var c=e+" Iterator";return t.prototype=r(n,{next:o(1,i)}),a(t,c,!1,!0),s[c]=l,t}},function(t,e,i){var n=i(4);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,i){"use strict";var n=i(30),r=i(5),o=i(1),a=i(6),s=o("species");t.exports=function(t){var e=n(t),i=r.f;a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var n=i(34),r=i(58);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,i){var n=i(31),r=i(24),o=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,i){"use strict";var n=i(15),r=i(89),o=i(12),a=i(9),s=i(39),l=a.set,c=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){l(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,i){var n=i(1),r=i(37),o=i(5),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,i){i(91),i(40),i(41),i(42);var n=i(10);t.exports=n.Set},function(t,e,i){"use strict";var n=i(21),r=i(62);t.exports=n("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},function(t,e,i){i(40),i(93),i(42);var n=i(10);t.exports=n.WeakMap},function(t,e,i){"use strict";var n,r=i(0),o=i(38),a=i(18),s=i(21),l=i(94),c=i(2),h=i(9).enforce,u=i(50),d=!r.ActiveXObject&&"ActiveXObject"in r,p=Object.isExtensible,f=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",f,l);if(u&&d){n=l.getConstructor(f,"WeakMap",!0),a.REQUIRED=!0;var m=g.prototype,y=m.delete,v=m.has,b=m.get,x=m.set;o(m,{delete:function(t){if(c(t)&&!p(t)){var e=h(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(c(t)&&!p(t)){var e=h(this);return e.frozen||(e.frozen=new n),v.call(this,t)||e.frozen.has(t)}return v.call(this,t)},get:function(t){if(c(t)&&!p(t)){var e=h(this);return e.frozen||(e.frozen=new n),v.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(c(t)&&!p(t)){var i=h(this);i.frozen||(i.frozen=new n),v.call(this,t)?x.call(this,t,e):i.frozen.set(t,e)}else x.call(this,t,e);return this}})}},function(t,e,i){"use strict";var n=i(38),r=i(18).getWeakData,o=i(7),a=i(2),s=i(35),l=i(33),c=i(95),h=i(3),u=i(9),d=u.set,p=u.getterFor,f=c.find,g=c.findIndex,m=0,y=function(t){return t.frozen||(t.frozen=new v)},v=function(){this.entries=[]},b=function(t,e){return f(t.entries,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var i=b(this,t);i?i[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,c){var u=t((function(t,n){s(t,u,e),d(t,{type:e,id:m++,frozen:void 0}),null!=n&&l(n,t[c],t,i)})),f=p(e),g=function(t,e,i){var n=f(t),a=r(o(e),!0);return!0===a?y(n).set(e,i):a[n.id]=i,t};return n(u.prototype,{delete:function(t){var e=f(this);if(!a(t))return!1;var i=r(t);return!0===i?y(e).delete(t):i&&h(i,e.id)&&delete i[e.id]},has:function(t){var e=f(this);if(!a(t))return!1;var i=r(t);return!0===i?y(e).has(t):i&&h(i,e.id)}}),n(u.prototype,i?{get:function(t){var e=f(this);if(a(t)){var i=r(t);return!0===i?y(e).get(t):i?i[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),u}}},function(t,e,i){var n=i(19),r=i(22),o=i(20),a=i(17),s=i(96),l=[].push,c=function(t){var e=1==t,i=2==t,c=3==t,h=4==t,u=6==t,d=5==t||u;return function(p,f,g,m){for(var y,v,b=o(p),x=r(b),w=n(f,g,3),_=a(x.length),S=0,P=m||s,k=e?P(p,_):i?P(p,0):void 0;_>S;S++)if((d||S in x)&&(v=w(y=x[S],S,b),t))if(e)k[S]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:l.call(k,y)}else if(h)return!1;return u?-1:c||h?h:k}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(t,e,i){var n=i(2),r=i(97),o=i(1)("species");t.exports=function(t,e){var i;return r(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!r(i.prototype)?n(i)&&null===(i=i[o])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},function(t,e,i){var n=i(23);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){i(41),i(99);var n=i(10);t.exports=n.Array.from},function(t,e,i){var n=i(13),r=i(100);n({target:"Array",stat:!0,forced:!i(60)((function(t){Array.from(t)}))},{from:r})},function(t,e,i){"use strict";var n=i(19),r=i(20),o=i(59),a=i(55),s=i(17),l=i(101),c=i(57);t.exports=function(t){var e,i,h,u,d,p,f=r(t),g="function"==typeof this?this:Array,m=arguments.length,y=m>1?arguments[1]:void 0,v=void 0!==y,b=c(f),x=0;if(v&&(y=n(y,m>2?arguments[2]:void 0,2)),null==b||g==Array&&a(b))for(i=new g(e=s(f.length));e>x;x++)p=v?y(f[x],x):f[x],l(i,x,p);else for(d=(u=b.call(f)).next,i=new g;!(h=d.call(u)).done;x++)p=v?o(u,y,[h.value,x],!0):h.value,l(i,x,p);return i.length=x,i}},function(t,e,i){"use strict";var n=i(25),r=i(5),o=i(14);t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,o(0,i)):t[a]=i}},function(t,e,i){i(103);var n=i(10);t.exports=n.Object.assign},function(t,e,i){var n=i(13),r=i(104);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(t,e,i){"use strict";var n=i(6),r=i(4),o=i(63),a=i(53),s=i(45),l=i(20),c=i(22),h=Object.assign,u=Object.defineProperty;t.exports=!h||r((function(){if(n&&1!==h({b:1},h(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=h({},t)[i]||"abcdefghijklmnopqrst"!=o(h({},e)).join("")}))?function(t,e){for(var i=l(t),r=arguments.length,h=1,u=a.f,d=s.f;r>h;)for(var p,f=c(arguments[h++]),g=u?o(f).concat(u(f)):o(f),m=g.length,y=0;m>y;)p=g[y++],n&&!d.call(f,p)||(i[p]=f[p]);return i}:h},function(t,e,i){"use strict";i.r(e);var n={};i.r(n),i.d(n,"keyboardHandler",(function(){return it})),i.d(n,"mouseHandler",(function(){return nt})),i.d(n,"resizeHandler",(function(){return rt})),i.d(n,"selectHandler",(function(){return ot})),i.d(n,"touchHandler",(function(){return at})),i.d(n,"wheelHandler",(function(){return st}));
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},o=function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}i(68),i(90),i(92),i(98),i(102);var s=/\s/,l=/^\s+/,c=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},h=i(66),u="object"==typeof self&&self&&self.Object===Object&&self,d=h.a||u||Function("return this")(),p=d.Symbol,f=Object.prototype,g=f.hasOwnProperty,m=f.toString,y=p?p.toStringTag:void 0,v=Object.prototype.toString,b=p?p.toStringTag:void 0,x=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,_=/^0o[0-7]+$/i,S=parseInt,P=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?function(t){var e=g.call(t,y),i=t[y];try{t[y]=void 0;var n=!0}catch(t){}var r=m.call(t);return n&&(e?t[y]=i:delete t[y]),r}(t):function(t){return v.call(t)}(t)}(t)}(t))return NaN;if(c(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=c(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&s.test(t.charAt(e)););return e}(t)+1).replace(l,""):t}(t);var i=w.test(t);return i||_.test(t)?S(t.slice(2),i?2:8):x.test(t)?NaN:+t},k=function(t,e,i){return void 0===i&&(i=e,e=void 0),void 0!==i&&(i=(i=P(i))==i?i:0),void 0!==e&&(e=(e=P(e))==e?e:0),function(t,e,i){return t==t&&(void 0!==i&&(t=t<=i?t:i),void 0!==e&&(t=t>=e?t:e)),t}(P(t),e,i)};function C(t,e){return void 0===t&&(t=-1/0),void 0===e&&(e=1/0),function(i,n){var r="_"+n;Object.defineProperty(i,n,{get:function(){return this[r]},set:function(i){Object.defineProperty(this,r,{value:k(i,t,e),enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}}function T(t,e){var i="_"+e;Object.defineProperty(t,e,{get:function(){return this[i]},set:function(t){Object.defineProperty(this,i,{value:!!t,enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}var A=function(){return d.Date.now()},O=Math.max,M=Math.min,E=function(t,e,i){var n,r,o,a,s,l,h=0,u=!1,d=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var i=n,o=r;return n=r=void 0,h=e,a=t.apply(o,i)}function g(t){var i=t-l;return void 0===l||i>=e||i<0||d&&t-h>=o}function m(){var t=A();if(g(t))return y(t);s=setTimeout(m,function(t){var i=e-(t-l);return d?M(i,o-(t-h)):i}(t))}function y(t){return s=void 0,p&&n?f(t):(n=r=void 0,a)}function v(){var t=A(),i=g(t);if(n=arguments,r=this,l=t,i){if(void 0===s)return function(t){return h=t,s=setTimeout(m,e),u?f(t):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,e),f(l)}return void 0===s&&(s=setTimeout(m,e)),a}return e=P(e)||0,c(i)&&(u=!!i.leading,o=(d="maxWait"in i)?O(P(i.maxWait)||0,e):o,p="trailing"in i?!!i.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),h=0,n=l=r=s=void 0},v.flush=function(){return void 0===s?a:y(A())},v};function I(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e,i,n){var r=n.value;return{get:function(){return this.hasOwnProperty(i)||Object.defineProperty(this,i,{value:E.apply(void 0,function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n}([r],t))}),this[i]}}}}var D,L=function(){function t(t){var e=this;void 0===t&&(t={}),this.damping=.1,this.thumbMinSize=20,this.renderByPixels=!0,this.alwaysShowTracks=!1,this.continuousScrolling=!0,this.delegateTo=null,this.plugins={},Object.keys(t).forEach((function(i){e[i]=t[i]}))}return Object.defineProperty(t.prototype,"wheelEventTarget",{get:function(){return this.delegateTo},set:function(t){console.warn("[smooth-scrollbar]: `options.wheelEventTarget` is deprecated and will be removed in the future, use `options.delegateTo` instead."),this.delegateTo=t},enumerable:!0,configurable:!0}),a([C(0,1)],t.prototype,"damping",void 0),a([C(0,1/0)],t.prototype,"thumbMinSize",void 0),a([T],t.prototype,"renderByPixels",void 0),a([T],t.prototype,"alwaysShowTracks",void 0),a([T],t.prototype,"continuousScrolling",void 0),t}(),j=new WeakMap;function N(){if(void 0!==D)return D;var t=!1;try{var e=function(){},i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",e,i),window.removeEventListener("testPassive",e,i)}catch(t){}return D=!!t&&{passive:!1}}function F(t){var e=j.get(t)||[];return j.set(t,e),function(t,i,n){function r(t){t.defaultPrevented||n(t)}i.split(/\s+/g).forEach((function(i){e.push({elem:t,eventName:i,handler:r}),t.addEventListener(i,r,N())}))}}function R(t){var e=function(t){return t.touches?t.touches[t.touches.length-1]:t}(t);return{x:e.clientX,y:e.clientY}}function V(t,e){return void 0===e&&(e=[]),e.some((function(e){return t===e}))}var z=["webkit","moz","ms","o"],B=new RegExp("^-(?!(?:"+z.join("|")+")-)");function H(t,e){e=function(t){var e={};return Object.keys(t).forEach((function(i){if(B.test(i)){var n=t[i];i=i.replace(/^-/,""),e[i]=n,z.forEach((function(t){e["-"+t+"-"+i]=n}))}else e[i]=t[i]})),e}(e),Object.keys(e).forEach((function(i){var n=i.replace(/^-/,"").replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}));t.style[n]=e[i]}))}var W,X=function(){function t(t){this.updateTime=Date.now(),this.delta={x:0,y:0},this.velocity={x:0,y:0},this.lastPosition={x:0,y:0},this.lastPosition=R(t)}return t.prototype.update=function(t){var e=this.velocity,i=this.updateTime,n=this.lastPosition,r=Date.now(),o=R(t),a={x:-(o.x-n.x),y:-(o.y-n.y)},s=r-i||16,l=a.x/s*16,c=a.y/s*16;e.x=.9*l+.1*e.x,e.y=.9*c+.1*e.y,this.delta=a,this.updateTime=r,this.lastPosition=o},t}(),Y=function(){function t(){this._touchList={}}return Object.defineProperty(t.prototype,"_primitiveValue",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),t.prototype.isActive=function(){return void 0!==this._activeTouchID},t.prototype.getDelta=function(){var t=this._getActiveTracker();return t?o({},t.delta):this._primitiveValue},t.prototype.getVelocity=function(){var t=this._getActiveTracker();return t?o({},t.velocity):this._primitiveValue},t.prototype.track=function(t){var e=this,i=t.targetTouches;return Array.from(i).forEach((function(t){e._add(t)})),this._touchList},t.prototype.update=function(t){var e=this,i=t.touches,n=t.changedTouches;return Array.from(i).forEach((function(t){e._renew(t)})),this._setActiveID(n),this._touchList},t.prototype.release=function(t){var e=this;delete this._activeTouchID,Array.from(t.changedTouches).forEach((function(t){e._delete(t)}))},t.prototype._add=function(t){if(!this._has(t)){var e=new X(t);this._touchList[t.identifier]=e}},t.prototype._renew=function(t){this._has(t)&&this._touchList[t.identifier].update(t)},t.prototype._delete=function(t){delete this._touchList[t.identifier]},t.prototype._has=function(t){return this._touchList.hasOwnProperty(t.identifier)},t.prototype._setActiveID=function(t){this._activeTouchID=t[t.length-1].identifier},t.prototype._getActiveTracker=function(){return this._touchList[this._activeTouchID]},t}();!function(t){t.X="x",t.Y="y"}(W||(W={}));var G=function(){function t(t,e){void 0===e&&(e=0),this._direction=t,this._minSize=e,this.element=document.createElement("div"),this.displaySize=0,this.realSize=0,this.offset=0,this.element.className="scrollbar-thumb scrollbar-thumb-"+t}return t.prototype.attachTo=function(t){t.appendChild(this.element)},t.prototype.update=function(t,e,i){this.realSize=Math.min(e/i,1)*e,this.displaySize=Math.max(this.realSize,this._minSize),this.offset=t/i*(e+(this.realSize-this.displaySize)),H(this.element,this._getStyle())},t.prototype._getStyle=function(){switch(this._direction){case W.X:return{width:this.displaySize+"px","-transform":"translate3d("+this.offset+"px, 0, 0)"};case W.Y:return{height:this.displaySize+"px","-transform":"translate3d(0, "+this.offset+"px, 0)"};default:return null}},t}(),U=function(){function t(t,e){void 0===e&&(e=0),this.element=document.createElement("div"),this._isShown=!1,this.element.className="scrollbar-track scrollbar-track-"+t,this.thumb=new G(t,e),this.thumb.attachTo(this.element)}return t.prototype.attachTo=function(t){t.appendChild(this.element)},t.prototype.show=function(){this._isShown||(this._isShown=!0,this.element.classList.add("show"))},t.prototype.hide=function(){this._isShown&&(this._isShown=!1,this.element.classList.remove("show"))},t.prototype.update=function(t,e,i){H(this.element,{display:i<=e?"none":"block"}),this.thumb.update(t,e,i)},t}(),q=function(){function t(t){this._scrollbar=t;var e=t.options.thumbMinSize;this.xAxis=new U(W.X,e),this.yAxis=new U(W.Y,e),this.xAxis.attachTo(t.containerEl),this.yAxis.attachTo(t.containerEl),t.options.alwaysShowTracks&&(this.xAxis.show(),this.yAxis.show())}return t.prototype.update=function(){var t=this._scrollbar,e=t.size,i=t.offset;this.xAxis.update(i.x,e.container.width,e.content.width),this.yAxis.update(i.y,e.container.height,e.content.height)},t.prototype.autoHideOnIdle=function(){this._scrollbar.options.alwaysShowTracks||(this.xAxis.hide(),this.yAxis.hide())},a([I(300)],t.prototype,"autoHideOnIdle",null),t}(),$=new WeakMap;function K(t){return Math.pow(t-1,3)+1}var Z,J,Q,tt=function(){function t(t,e){var i=this.constructor;this.scrollbar=t,this.name=i.pluginName,this.options=o(o({},i.defaultOptions),e)}return t.prototype.onInit=function(){},t.prototype.onDestroy=function(){},t.prototype.onUpdate=function(){},t.prototype.onRender=function(t){},t.prototype.transformDelta=function(t,e){return o({},t)},t.pluginName="",t.defaultOptions={},t}(),et={order:new Set,constructors:{}};function it(t){var e=F(t),i=t.containerEl;e(i,"keydown",(function(e){var n=document.activeElement;if((n===i||i.contains(n))&&!function(t){return!("INPUT"!==t.tagName&&"SELECT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable||t.disabled)}(n)){var r=function(t,e){var i=t.size,n=t.limit,r=t.offset;switch(e){case Z.TAB:return function(t){requestAnimationFrame((function(){t.scrollIntoView(document.activeElement,{offsetTop:t.size.container.height/2,onlyScrollIfNeeded:!0})}))}(t);case Z.SPACE:return[0,200];case Z.PAGE_UP:return[0,40-i.container.height];case Z.PAGE_DOWN:return[0,i.container.height-40];case Z.END:return[0,n.y-r.y];case Z.HOME:return[0,-r.y];case Z.LEFT:return[-40,0];case Z.UP:return[0,-40];case Z.RIGHT:return[40,0];case Z.DOWN:return[0,40];default:return null}}(t,e.keyCode||e.which);if(r){var o=r[0],a=r[1];t.addTransformableMomentum(o,a,e,(function(i){i?e.preventDefault():(t.containerEl.blur(),t.parent&&t.parent.containerEl.focus())}))}}}))}function nt(t){var e,i,n,r,o,a=F(t),s=t.containerEl,l=t.track,c=l.xAxis,h=l.yAxis;function u(e,i){var n=t.size;return e===J.X?i/(n.container.width+(c.thumb.realSize-c.thumb.displaySize))*n.content.width:e===J.Y?i/(n.container.height+(h.thumb.realSize-h.thumb.displaySize))*n.content.height:0}function d(t){return V(t,[c.element,c.thumb.element])?J.X:V(t,[h.element,h.thumb.element])?J.Y:void 0}a(s,"click",(function(e){if(!i&&V(e.target,[c.element,h.element])){var n=e.target,r=d(n),o=n.getBoundingClientRect(),a=R(e),s=t.offset,l=t.limit;if(r===J.X){var p=a.x-o.left-c.thumb.displaySize/2;t.setMomentum(k(u(r,p)-s.x,-s.x,l.x-s.x),0)}r===J.Y&&(p=a.y-o.top-h.thumb.displaySize/2,t.setMomentum(0,k(u(r,p)-s.y,-s.y,l.y-s.y)))}})),a(s,"mousedown",(function(i){if(V(i.target,[c.thumb.element,h.thumb.element])){e=!0;var a=i.target,l=R(i),u=a.getBoundingClientRect();r=d(a),n={x:l.x-u.left,y:l.y-u.top},o=s.getBoundingClientRect(),H(t.containerEl,{"-user-select":"none"})}})),a(window,"mousemove",(function(a){if(e){i=!0;var s=t.offset,l=R(a);if(r===J.X){var c=l.x-n.x-o.left;t.setPosition(u(r,c),s.y)}r===J.Y&&(c=l.y-n.y-o.top,t.setPosition(s.x,u(r,c)))}})),a(window,"mouseup blur",(function(){e=i=!1,H(t.containerEl,{"-user-select":""})}))}function rt(t){F(t)(window,"resize",E(t.update.bind(t),300))}function ot(t){var e,i=F(t),n=t.containerEl,r=t.contentEl,o=!1;i(window,"mousemove",(function(i){o&&(cancelAnimationFrame(e),function i(n){var r=n.x,o=n.y;if(r||o){var a=t.offset,s=t.limit;t.setMomentum(k(a.x+r,0,s.x)-a.x,k(a.y+o,0,s.y)-a.y),e=requestAnimationFrame((function(){i({x:r,y:o})}))}}(function(t,e){var i=t.bounding,n=i.top,r=i.right,o=i.bottom,a=i.left,s=R(e),l=s.x,c=s.y,h={x:0,y:0};return 0===l&&0===c||(l>r-20?h.x=l-r+20:l<a+20&&(h.x=l-a-20),c>o-20?h.y=c-o+20:c<n+20&&(h.y=c-n-20),h.x*=2,h.y*=2),h}(t,i)))})),i(r,"selectstart",(function(t){t.stopPropagation(),cancelAnimationFrame(e),o=!0})),i(window,"mouseup blur",(function(){cancelAnimationFrame(e),o=!1})),i(n,"scroll",(function(t){t.preventDefault(),n.scrollTop=n.scrollLeft=0}))}function at(t){var e,i=/Android/.test(navigator.userAgent)?3:2,n=t.options.delegateTo||t.containerEl,r=new Y,o=F(t),a=0;o(n,"touchstart",(function(i){r.track(i),t.setMomentum(0,0),0===a&&(e=t.options.damping,t.options.damping=Math.max(e,.5)),a++})),o(n,"touchmove",(function(e){if(!Q||Q===t){r.update(e);var i=r.getDelta(),n=i.x,o=i.y;t.addTransformableMomentum(n,o,e,(function(i){i&&e.cancelable&&(e.preventDefault(),Q=t)}))}})),o(n,"touchcancel touchend",(function(n){var o=r.getVelocity(),s={x:0,y:0};Object.keys(o).forEach((function(t){var n=o[t]/e;s[t]=Math.abs(n)<50?0:n*i})),t.addTransformableMomentum(s.x,s.y,n),0==--a&&(t.options.damping=e),r.release(n),Q=null}))}function st(t){F(t)(t.options.delegateTo||t.containerEl,"onwheel"in window||document.implementation.hasFeature("Events.wheel","3.0")?"wheel":"mousewheel",(function(e){var i=function(t){if("deltaX"in t){var e=ht(t.deltaMode);return{x:t.deltaX/lt.STANDARD*e,y:t.deltaY/lt.STANDARD*e}}return"wheelDeltaX"in t?{x:t.wheelDeltaX/lt.OTHERS,y:t.wheelDeltaY/lt.OTHERS}:{x:0,y:t.wheelDelta/lt.OTHERS}}(e),n=i.x,r=i.y;t.addTransformableMomentum(n,r,e,(function(t){t&&e.preventDefault()}))}))}!function(t){t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(Z||(Z={})),function(t){t[t.X=0]="X",t[t.Y=1]="Y"}(J||(J={}));var lt={STANDARD:1,OTHERS:-3},ct=[1,28,500],ht=function(t){return ct[t]||ct[0]},ut=new Map,dt=function(){function t(t,e){var i=this;this.offset={x:0,y:0},this.limit={x:1/0,y:1/0},this.bounding={top:0,right:0,bottom:0,left:0},this._plugins=[],this._momentum={x:0,y:0},this._listeners=new Set,this.containerEl=t;var n=this.contentEl=document.createElement("div");this.options=new L(e),t.setAttribute("data-scrollbar","true"),t.setAttribute("tabindex","-1"),H(t,{overflow:"hidden",outline:"none"}),window.navigator.msPointerEnabled&&(t.style.msTouchAction="none"),n.className="scroll-content",Array.from(t.childNodes).forEach((function(t){n.appendChild(t)})),t.appendChild(n),this.track=new q(this),this.size=this.getSize(),this._plugins=function(t,e){return Array.from(et.order).filter((function(t){return!1!==e[t]})).map((function(i){var n=new(0,et.constructors[i])(t,e[i]);return e[i]=n.options,n}))}(this,this.options.plugins);var r=t.scrollLeft,o=t.scrollTop;t.scrollLeft=t.scrollTop=0,this.setPosition(r,o,{withoutCallbacks:!0});var a=window,s=a.MutationObserver||a.WebKitMutationObserver||a.MozMutationObserver;"function"==typeof s&&(this._observer=new s((function(){i.update()})),this._observer.observe(n,{subtree:!0,childList:!0})),ut.set(t,this),requestAnimationFrame((function(){i._init()}))}return Object.defineProperty(t.prototype,"parent",{get:function(){for(var t=this.containerEl.parentElement;t;){var e=ut.get(t);if(e)return e;t=t.parentElement}return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.offset.y},set:function(t){this.setPosition(this.scrollLeft,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollLeft",{get:function(){return this.offset.x},set:function(t){this.setPosition(t,this.scrollTop)},enumerable:!0,configurable:!0}),t.prototype.getSize=function(){return function(t){var e=t.containerEl,i=t.contentEl;return{container:{width:e.clientWidth,height:e.clientHeight},content:{width:i.offsetWidth-i.clientWidth+i.scrollWidth,height:i.offsetHeight-i.clientHeight+i.scrollHeight}}}(this)},t.prototype.update=function(){!function(t){var e=t.getSize(),i={x:Math.max(e.content.width-e.container.width,0),y:Math.max(e.content.height-e.container.height,0)},n=t.containerEl.getBoundingClientRect(),r={top:Math.max(n.top,0),right:Math.min(n.right,window.innerWidth),bottom:Math.min(n.bottom,window.innerHeight),left:Math.max(n.left,0)};t.size=e,t.limit=i,t.bounding=r,t.track.update(),t.setPosition()}(this),this._plugins.forEach((function(t){t.onUpdate()}))},t.prototype.isVisible=function(t){return function(t,e){var i=t.bounding,n=e.getBoundingClientRect(),r=Math.max(i.top,n.top),o=Math.max(i.left,n.left),a=Math.min(i.right,n.right);return r<Math.min(i.bottom,n.bottom)&&o<a}(this,t)},t.prototype.setPosition=function(t,e,i){var n=this;void 0===t&&(t=this.offset.x),void 0===e&&(e=this.offset.y),void 0===i&&(i={});var r=function(t,e,i){var n=t.options,r=t.offset,a=t.limit,s=t.track,l=t.contentEl;return n.renderByPixels&&(e=Math.round(e),i=Math.round(i)),e=k(e,0,a.x),i=k(i,0,a.y),e!==r.x&&s.xAxis.show(),i!==r.y&&s.yAxis.show(),n.alwaysShowTracks||s.autoHideOnIdle(),e===r.x&&i===r.y?null:(r.x=e,r.y=i,H(l,{"-transform":"translate3d("+-e+"px, "+-i+"px, 0)"}),s.update(),{offset:o({},r),limit:o({},a)})}(this,t,e);r&&!i.withoutCallbacks&&this._listeners.forEach((function(t){t.call(n,r)}))},t.prototype.scrollTo=function(t,e,i,n){void 0===t&&(t=this.offset.x),void 0===e&&(e=this.offset.y),void 0===i&&(i=0),void 0===n&&(n={}),function(t,e,i,n,r){void 0===n&&(n=0);var o=void 0===r?{}:r,a=o.easing,s=void 0===a?K:a,l=o.callback,c=t.options,h=t.offset,u=t.limit;c.renderByPixels&&(e=Math.round(e),i=Math.round(i));var d=h.x,p=h.y,f=k(e,0,u.x)-d,g=k(i,0,u.y)-p,m=Date.now();cancelAnimationFrame($.get(t)),function e(){var i=Date.now()-m,r=n?s(Math.min(i/n,1)):1;if(t.setPosition(d+f*r,p+g*r),i>=n)"function"==typeof l&&l.call(t);else{var o=requestAnimationFrame(e);$.set(t,o)}}()}(this,t,e,i,n)},t.prototype.scrollIntoView=function(t,e){void 0===e&&(e={}),function(t,e,i){var n=void 0===i?{}:i,r=n.alignToTop,o=void 0===r||r,a=n.onlyScrollIfNeeded,s=void 0!==a&&a,l=n.offsetTop,c=void 0===l?0:l,h=n.offsetLeft,u=void 0===h?0:h,d=n.offsetBottom,p=void 0===d?0:d,f=t.containerEl,g=t.bounding,m=t.offset,y=t.limit;if(e&&f.contains(e)){var v=e.getBoundingClientRect();if(!s||!t.isVisible(e)){var b=o?v.top-g.top-c:v.bottom-g.bottom+p;t.setMomentum(v.left-g.left-u,k(b,-m.y,y.y-m.y))}}}(this,t,e)},t.prototype.addListener=function(t){if("function"!=typeof t)throw new TypeError("[smooth-scrollbar] scrolling listener should be a function");this._listeners.add(t)},t.prototype.removeListener=function(t){this._listeners.delete(t)},t.prototype.addTransformableMomentum=function(t,e,i,n){this._updateDebounced();var r=this._plugins.reduce((function(t,e){return e.transformDelta(t,i)||t}),{x:t,y:e}),o=!this._shouldPropagateMomentum(r.x,r.y);o&&this.addMomentum(r.x,r.y),n&&n.call(this,o)},t.prototype.addMomentum=function(t,e){this.setMomentum(this._momentum.x+t,this._momentum.y+e)},t.prototype.setMomentum=function(t,e){0===this.limit.x&&(t=0),0===this.limit.y&&(e=0),this.options.renderByPixels&&(t=Math.round(t),e=Math.round(e)),this._momentum.x=t,this._momentum.y=e},t.prototype.updatePluginOptions=function(t,e){this._plugins.forEach((function(i){i.name===t&&Object.assign(i.options,e)}))},t.prototype.destroy=function(){var t=this.containerEl,e=this.contentEl;!function(t){var e=j.get(t);e&&(e.forEach((function(t){var e=t.elem,i=t.eventName,n=t.handler;e.removeEventListener(i,n,N())})),j.delete(t))}(this),this._listeners.clear(),this.setMomentum(0,0),cancelAnimationFrame(this._renderID),this._observer&&this._observer.disconnect(),ut.delete(this.containerEl);for(var i=Array.from(e.childNodes);t.firstChild;)t.removeChild(t.firstChild);i.forEach((function(e){t.appendChild(e)})),H(t,{overflow:""}),t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,this._plugins.forEach((function(t){t.onDestroy()})),this._plugins.length=0},t.prototype._init=function(){var t=this;this.update(),Object.keys(n).forEach((function(e){n[e](t)})),this._plugins.forEach((function(t){t.onInit()})),this._render()},t.prototype._updateDebounced=function(){this.update()},t.prototype._shouldPropagateMomentum=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var i=this.options,n=this.offset,r=this.limit;if(!i.continuousScrolling)return!1;0===r.x&&0===r.y&&this._updateDebounced();var o=k(t+n.x,0,r.x),a=k(e+n.y,0,r.y),s=!0;return(s=(s=s&&o===n.x)&&a===n.y)&&(n.x===r.x||0===n.x||n.y===r.y||0===n.y)},t.prototype._render=function(){var t=this._momentum;if(t.x||t.y){var e=this._nextTick("x"),i=this._nextTick("y");t.x=e.momentum,t.y=i.momentum,this.setPosition(e.position,i.position)}var n=o({},this._momentum);this._plugins.forEach((function(t){t.onRender(n)})),this._renderID=requestAnimationFrame(this._render.bind(this))},t.prototype._nextTick=function(t){var e=this.options,i=this.offset,n=this._momentum,r=i[t],o=n[t];if(Math.abs(o)<=.1)return{momentum:0,position:r+o};var a=o*(1-e.damping);return e.renderByPixels&&(a|=0),{momentum:a,position:r+o-a}},a([I(100,{leading:!0})],t.prototype,"_updateDebounced",null),t}(),pt="smooth-scrollbar-style",ft=!1;function gt(){if(!ft&&"undefined"!=typeof window){var t=document.createElement("style");t.id=pt,t.textContent="\n[data-scrollbar] {\n display: block;\n position: relative;\n}\n\n.scroll-content {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n\n.scrollbar-track {\n position: absolute;\n opacity: 0;\n z-index: 1;\n background: rgba(222, 222, 222, .75);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-transition: opacity 0.5s 0.5s ease-out;\n transition: opacity 0.5s 0.5s ease-out;\n}\n.scrollbar-track.show,\n.scrollbar-track:hover {\n opacity: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n}\n\n.scrollbar-track-x {\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n}\n.scrollbar-track-y {\n top: 0;\n right: 0;\n width: 8px;\n height: 100%;\n}\n.scrollbar-thumb {\n position: absolute;\n top: 0;\n left: 0;\n width: 8px;\n height: 8px;\n background: rgba(0, 0, 0, .5);\n border-radius: 4px;\n}\n",document.head&&document.head.appendChild(t),ft=!0}}i.d(e,"ScrollbarPlugin",(function(){return tt}));
|
||
/*!
|
||
* cast `I.Scrollbar` to `Scrollbar` to avoid error
|
||
*
|
||
* `I.Scrollbar` is not assignable to `Scrollbar`:
|
||
* "privateProp" is missing in `I.Scrollbar`
|
||
*
|
||
* @see https://github.com/Microsoft/TypeScript/issues/2672
|
||
*/
|
||
var mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e.init=function(t,e){if(!t||1!==t.nodeType)throw new TypeError("expect element to be DOM Element, but got "+t);return gt(),ut.has(t)?ut.get(t):new dt(t,e)},e.initAll=function(t){return Array.from(document.querySelectorAll("[data-scrollbar]"),(function(i){return e.init(i,t)}))},e.has=function(t){return ut.has(t)},e.get=function(t){return ut.get(t)},e.getAll=function(){return Array.from(ut.values())},e.destroy=function(t){var e=ut.get(t);e&&e.destroy()},e.destroyAll=function(){ut.forEach((function(t){t.destroy()}))},e.use=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){var e=t.pluginName;if(!e)throw new TypeError("plugin name is required");et.order.add(e),et.constructors[e]=t}))}.apply(void 0,t)},e.attachStyle=function(){return gt()},e.detachStyle=function(){return function(){if(ft&&"undefined"!=typeof window){var t=document.getElementById(pt);t&&t.parentNode&&(t.parentNode.removeChild(t),ft=!1)}}()},e.version="8.6.2",e.ScrollbarPlugin=tt,e}(dt);e.default=mt}]).default})),
|
||
/*!
|
||
DataTables 1.10.25
|
||
©2008-2021 SpryMedia Ltd - datatables.net/license
|
||
*/
|
||
function(t){"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,i){return e||(e=window),i||(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i,e,e.document)}:t(jQuery,window,document)}((function(t,e,i,n){function r(e){var i,n,o={};t.each(e,(function(t){(i=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(i[1]+" ")&&(n=t.replace(i[0],i[2].toLowerCase()),o[n]=t,"o"===i[1]&&r(e[t]))})),e._hungarianMap=o}function o(e,i,a){var s;e._hungarianMap||r(e),t.each(i,(function(r){(s=e._hungarianMap[r])===n||!a&&i[s]!==n||("o"===s.charAt(0)?(i[s]||(i[s]={}),t.extend(!0,i[s],i[r]),o(e[s],i[s],a)):i[s]=i[r])}))}function a(t){var e=Gt.defaults.oLanguage,i=e.sDecimal;if(i&&zt(i),t){var n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&Et(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&Et(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&i!==t&&zt(t)}}function s(t){if(he(t,"ordering","bSort"),he(t,"orderMulti","bSortMulti"),he(t,"orderClasses","bSortClasses"),he(t,"orderCellsTop","bSortCellsTop"),he(t,"order","aaSorting"),he(t,"orderFixed","aaSortingFixed"),he(t,"paging","bPaginate"),he(t,"pagingType","sPaginationType"),he(t,"pageLength","iDisplayLength"),he(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,i=t.length;e<i;e++)t[e]&&o(Gt.models.oSearch,t[e])}function l(t){he(t,"orderable","bSortable"),he(t,"orderData","aDataSort"),he(t,"orderSequence","asSorting"),he(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"==typeof e&&!Array.isArray(e)&&(t.aDataSort=[e])}function c(i){if(!Gt.__browser){var n={};Gt.__browser=n;var r=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),o=r.children(),a=o.children();n.barWidth=o[0].offsetWidth-o[0].clientWidth,n.bScrollOversize=100===a[0].offsetWidth&&100!==o[0].clientWidth,n.bScrollbarLeft=1!==Math.round(a.offset().left),n.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}t.extend(i.oBrowser,Gt.__browser),i.oScroll.iBarWidth=Gt.__browser.barWidth}function h(t,e,i,r,o,a){var s,l=!1;for(i!==n&&(s=i,l=!0);r!==o;)t.hasOwnProperty(r)&&(s=l?e(s,t[r],r,t):t[r],l=!0,r+=a);return s}function u(e,n){var r=Gt.defaults.column,o=e.aoColumns.length;r=t.extend({},Gt.models.oColumn,r,{nTh:n||i.createElement("th"),sTitle:r.sTitle?r.sTitle:n?n.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o});e.aoColumns.push(r),(r=e.aoPreSearchCols)[o]=t.extend({},Gt.models.oSearch,r[o]),d(e,o,t(n).data())}function d(e,i,r){i=e.aoColumns[i];var a=e.oClasses,s=t(i.nTh);if(!i.sWidthOrig){i.sWidthOrig=s.attr("width")||null;var c=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(i.sWidthOrig=c[1])}r!==n&&null!==r&&(l(r),o(Gt.defaults.column,r,!0),r.mDataProp!==n&&!r.mData&&(r.mData=r.mDataProp),r.sType&&(i._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&s.addClass(r.sClass),t.extend(i,r),Et(i,r,"sWidth","sWidthOrig"),r.iDataSort!==n&&(i.aDataSort=[r.iDataSort]),Et(i,r,"aDataSort"));var h=i.mData,u=k(h),d=i.mRender?k(i.mRender):null;r=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};i._bAttrSrc=t.isPlainObject(h)&&(r(h.sort)||r(h.type)||r(h.filter)),i._setter=null,i.fnGetData=function(t,e,i){var r=u(t,e,n,i);return d&&e?d(r,e,t,i):r},i.fnSetData=function(t,e,i){return C(h)(t,e,i)},"number"!=typeof h&&(e._rowReadObject=!0),e.oFeatures.bSort||(i.bSortable=!1,s.addClass(a.sSortableNone)),e=-1!==t.inArray("asc",i.asSorting),r=-1!==t.inArray("desc",i.asSorting),i.bSortable&&(e||r)?e&&!r?(i.sSortingClass=a.sSortableAsc,i.sSortingClassJUI=a.sSortJUIAscAllowed):!e&&r?(i.sSortingClass=a.sSortableDesc,i.sSortingClassJUI=a.sSortJUIDescAllowed):(i.sSortingClass=a.sSortable,i.sSortingClassJUI=a.sSortJUI):(i.sSortingClass=a.sSortableNone,i.sSortingClassJUI="")}function p(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;gt(t);for(var i=0,n=e.length;i<n;i++)e[i].nTh.style.width=e[i].sWidth}(""!==(e=t.oScroll).sY||""!==e.sX)&&pt(t),jt(t,null,"column-sizing",[t])}function f(t,e){var i=y(t,"bVisible");return"number"==typeof i[e]?i[e]:null}function g(e,i){var n=y(e,"bVisible");return-1!==(n=t.inArray(i,n))?n:null}function m(e){var i=0;return t.each(e.aoColumns,(function(e,n){n.bVisible&&"none"!==t(n.nTh).css("display")&&i++})),i}function y(e,i){var n=[];return t.map(e.aoColumns,(function(t,e){t[i]&&n.push(e)})),n}function v(t){var e,i,r,o,a,s,l,c,h,u=t.aoColumns,d=t.aoData,p=Gt.ext.type.detect;for(e=0,i=u.length;e<i;e++)if(h=[],!(l=u[e]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(r=0,o=p.length;r<o;r++){for(a=0,s=d.length;a<s&&(h[a]===n&&(h[a]=_(t,a,e,"type")),(c=p[r](h[a],t))||r===p.length-1)&&("html"!==c||Qt(h[a]));a++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function b(e,i,r,o){var a,s,l,c,h,d,p=e.aoColumns;if(i)for(a=i.length-1;0<=a;a--){var f=(d=i[a]).targets!==n?d.targets:d.aTargets;for(Array.isArray(f)||(f=[f]),s=0,l=f.length;s<l;s++)if("number"==typeof f[s]&&0<=f[s]){for(;p.length<=f[s];)u(e);o(f[s],d)}else if("number"==typeof f[s]&&0>f[s])o(p.length+f[s],d);else if("string"==typeof f[s])for(c=0,h=p.length;c<h;c++)("_all"==f[s]||t(p[c].nTh).hasClass(f[s]))&&o(c,d)}if(r)for(a=0,e=r.length;a<e;a++)o(a,r[a])}function x(e,i,r,o){var a=e.aoData.length,s=t.extend(!0,{},Gt.models.oRow,{src:r?"dom":"data",idx:a});s._aData=i,e.aoData.push(s);for(var l=e.aoColumns,c=0,h=l.length;c<h;c++)l[c].sType=null;return e.aiDisplayMaster.push(a),(i=e.rowIdFn(i))!==n&&(e.aIds[i]=s),(r||!e.oFeatures.bDeferRender)&&I(e,a,r,o),a}function w(e,i){var n;return i instanceof t||(i=t(i)),i.map((function(t,i){return n=E(e,i),x(e,n.data,i,n.cells)}))}function _(t,e,i,r){var o=t.iDraw,a=t.aoColumns[i],s=t.aoData[e]._aData,l=a.sDefaultContent,c=a.fnGetData(s,r,{settings:t,row:e,col:i});if(c===n)return t.iDrawError!=o&&null===l&&(Mt(t,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+e+", column "+i,4),t.iDrawError=o),l;if(c!==s&&null!==c||null===l||r===n){if("function"==typeof c)return c.call(s)}else c=l;return null===c&&"display"==r?"":c}function S(t,e,i,n){t.aoColumns[i].fnSetData(t.aoData[e]._aData,n,{settings:t,row:e,col:i})}function P(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function k(e){if(t.isPlainObject(e)){var i={};return t.each(e,(function(t,e){e&&(i[t]=k(e))})),function(t,e,r,o){var a=i[e]||i._;return a!==n?a(t,e,r,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,i,n,r){return e(t,i,n,r)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var r=function(t,e,i){var o,a;if(""!==i)for(var s=0,l=(a=P(i)).length;s<l;s++){if(i=a[s].match(ue),o=a[s].match(de),i){if(a[s]=a[s].replace(ue,""),""!==a[s]&&(t=t[a[s]]),o=[],a.splice(0,s+1),a=a.join("."),Array.isArray(t))for(s=0,l=t.length;s<l;s++)o.push(r(t[s],e,a));t=""===(t=i[0].substring(1,i[0].length-1))?o:o.join(t);break}if(o)a[s]=a[s].replace(de,""),t=t[a[s]]();else{if(null===t||t[a[s]]===n)return n;t=t[a[s]]}}return t};return function(t,i){return r(t,i,e)}}return function(t){return t[e]}}function C(e){if(t.isPlainObject(e))return C(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,i,n){e(t,"set",i,n)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var i=function(t,e,r){var o;o=(r=P(r))[r.length-1];for(var a,s,l=0,c=r.length-1;l<c;l++){if("__proto__"===r[l]||"constructor"===r[l])throw Error("Cannot set prototype values");if(a=r[l].match(ue),s=r[l].match(de),a){if(r[l]=r[l].replace(ue,""),t[r[l]]=[],(o=r.slice()).splice(0,l+1),a=o.join("."),Array.isArray(e))for(s=0,c=e.length;s<c;s++)i(o={},e[s],a),t[r[l]].push(o);else t[r[l]]=e;return}s&&(r[l]=r[l].replace(de,""),t=t[r[l]](e)),null!==t[r[l]]&&t[r[l]]!==n||(t[r[l]]={}),t=t[r[l]]}o.match(de)?t[o.replace(de,"")](e):t[o.replace(ue,"")]=e};return function(t,n){return i(t,n,e)}}return function(t,i){t[e]=i}}function T(t){return re(t.aoData,"_aData")}function A(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function O(t,e,i){for(var r=-1,o=0,a=t.length;o<a;o++)t[o]==e?r=o:t[o]>e&&t[o]--;-1!=r&&i===n&&t.splice(r,1)}function M(t,e,i,r){var o,a=t.aoData[e],s=function(i,n){for(;i.childNodes.length;)i.removeChild(i.firstChild);i.innerHTML=_(t,e,n,"display")};if("dom"!==i&&(i&&"auto"!==i||"dom"!==a.src)){var l=a.anCells;if(l)if(r!==n)s(l[r],r);else for(i=0,o=l.length;i<o;i++)s(l[i],i)}else a._aData=E(t,a,r,r===n?n:a._aData).data;if(a._aSortData=null,a._aFilterData=null,s=t.aoColumns,r!==n)s[r].sType=null;else{for(i=0,o=s.length;i<o;i++)s[i].sType=null;D(t,a)}}function E(t,e,i,r){var o,a,s,l=[],c=e.firstChild,h=0,u=t.aoColumns,d=t._rowReadObject,p=(r=r!==n?r:d?{}:[],function(t,e){if("string"==typeof t){var i=t.indexOf("@");-1!==i&&(i=t.substring(i+1),C(t)(r,e.getAttribute(i)))}}),f=function(t){i!==n&&i!==h||(a=u[h],s=t.innerHTML.trim(),a&&a._bAttrSrc?(C(a.mData._)(r,s),p(a.mData.sort,t),p(a.mData.type,t),p(a.mData.filter,t)):d?(a._setter||(a._setter=C(a.mData)),a._setter(r,s)):r[h]=s),h++};if(c)for(;c;)"TD"!=(o=c.nodeName.toUpperCase())&&"TH"!=o||(f(c),l.push(c)),c=c.nextSibling;else for(c=0,o=(l=e.anCells).length;c<o;c++)f(l[c]);return(e=e.firstChild?e:e.nTr)&&(e=e.getAttribute("id"))&&C(t.rowId)(r,e),{data:r,cells:l}}function I(e,n,r,o){var a,s,l,c,h,u=e.aoData[n],d=u._aData,p=[];if(null===u.nTr){for(a=r||i.createElement("tr"),u.nTr=a,u.anCells=p,a._DT_RowIndex=n,D(e,u),l=0,c=e.aoColumns.length;l<c;l++)s=e.aoColumns[l],(u=(h=!r)?i.createElement(s.sCellType):o[l])._DT_CellIndex={row:n,column:l},p.push(u),!h&&(!s.mRender&&s.mData===l||t.isPlainObject(s.mData)&&s.mData._===l+".display")||(u.innerHTML=_(e,n,l,"display")),s.sClass&&(u.className+=" "+s.sClass),s.bVisible&&!r?a.appendChild(u):!s.bVisible&&r&&u.parentNode.removeChild(u),s.fnCreatedCell&&s.fnCreatedCell.call(e.oInstance,u,_(e,n,l),d,n,l);jt(e,"aoRowCreatedCallback",null,[a,d,n,p])}}function D(e,i){var n=i.nTr,r=i._aData;if(n){var o=e.rowIdFn(r);o&&(n.id=o),r.DT_RowClass&&(o=r.DT_RowClass.split(" "),i.__rowc=i.__rowc?le(i.__rowc.concat(o)):o,t(n).removeClass(i.__rowc.join(" ")).addClass(r.DT_RowClass)),r.DT_RowAttr&&t(n).attr(r.DT_RowAttr),r.DT_RowData&&t(n).data(r.DT_RowData)}}function L(e){var i,n,r,o,a,s=e.nTHead,l=e.nTFoot,c=0===t("th, td",s).length,h=e.oClasses,u=e.aoColumns;for(c&&(o=t("<tr/>").appendTo(s)),i=0,n=u.length;i<n;i++)a=u[i],r=t(a.nTh).addClass(a.sClass),c&&r.appendTo(o),e.oFeatures.bSort&&(r.addClass(a.sSortingClass),!1!==a.bSortable&&(r.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Pt(e,a.nTh,i))),a.sTitle!=r[0].innerHTML&&r.html(a.sTitle),Ft(e,"header")(e,r,a,h);if(c&&V(e.aoHeader,s),t(s).children("tr").attr("role","row"),t(s).children("tr").children("th, td").addClass(h.sHeaderTH),t(l).children("tr").children("th, td").addClass(h.sFooterTH),null!==l)for(i=0,n=(e=e.aoFooter[0]).length;i<n;i++)(a=u[i]).nTf=e[i].cell,a.sClass&&t(a.nTf).addClass(a.sClass)}function j(e,i,r){var o,a,s,l,c=[],h=[],u=e.aoColumns.length;if(i){for(r===n&&(r=!1),o=0,a=i.length;o<a;o++){for(c[o]=i[o].slice(),c[o].nTr=i[o].nTr,s=u-1;0<=s;s--)!e.aoColumns[s].bVisible&&!r&&c[o].splice(s,1);h.push([])}for(o=0,a=c.length;o<a;o++){if(e=c[o].nTr)for(;s=e.firstChild;)e.removeChild(s);for(s=0,i=c[o].length;s<i;s++)if(l=u=1,h[o][s]===n){for(e.appendChild(c[o][s].cell),h[o][s]=1;c[o+u]!==n&&c[o][s].cell==c[o+u][s].cell;)h[o+u][s]=1,u++;for(;c[o][s+l]!==n&&c[o][s].cell==c[o][s+l].cell;){for(r=0;r<u;r++)h[o+r][s+l]=1;l++}t(c[o][s].cell).attr("rowspan",u).attr("colspan",l)}}}}function N(e,i){var r=jt(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,r))ut(e,!1);else{r=[];var o=0,a=e.asStripeClasses,s=a.length,l=e.oLanguage,c=e.iInitDisplayStart,h="ssp"==Rt(e),u=e.aiDisplay;e.bDrawing=!0,c!==n&&-1!==c&&(e._iDisplayStart=h?c:c>=e.fnRecordsDisplay()?0:c,e.iInitDisplayStart=-1);c=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,ut(e,!1);else if(h){if(!e.bDestroying&&!i)return void H(e)}else e.iDraw++;if(0!==u.length)for(l=h?e.aoData.length:d,h=h?0:c;h<l;h++){var p=u[h],f=e.aoData[p];null===f.nTr&&I(e,p);var g=f.nTr;if(0!==s){var y=a[o%s];f._sRowStripe!=y&&(t(g).removeClass(f._sRowStripe).addClass(y),f._sRowStripe=y)}jt(e,"aoRowCallback",null,[g,f._aData,o,h,p]),r.push(g),o++}else o=l.sZeroRecords,1==e.iDraw&&"ajax"==Rt(e)?o=l.sLoadingRecords:l.sEmptyTable&&0===e.fnRecordsTotal()&&(o=l.sEmptyTable),r[0]=t("<tr/>",{class:s?a[0]:""}).append(t("<td />",{valign:"top",colSpan:m(e),class:e.oClasses.sRowEmpty}).html(o))[0];jt(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],T(e),c,d,u]),jt(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],T(e),c,d,u]),(a=t(e.nTBody)).children().detach(),a.append(t(r)),jt(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function F(t,e){var i=t.oFeatures,n=i.bFilter;i.bSort&&wt(t),n?U(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,N(t),t._drawHold=!1}function R(e){var i=e.oClasses,n=t(e.nTable),r=(n=t("<div/>").insertBefore(n),e.oFeatures),o=t("<div/>",{id:e.sTableId+"_wrapper",class:i.sWrapper+(e.nTFoot?"":" "+i.sNoFooter)});e.nHolding=n[0],e.nTableWrapper=o[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var a,s,l,c,h,u,d=e.sDom.split(""),p=0;p<d.length;p++){if(a=null,"<"==(s=d[p])){if(l=t("<div/>")[0],"'"==(c=d[p+1])||'"'==c){for(h="",u=2;d[p+u]!=c;)h+=d[p+u],u++;"H"==h?h=i.sJUIHeader:"F"==h&&(h=i.sJUIFooter),-1!=h.indexOf(".")?(c=h.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==h.charAt(0)?l.id=h.substr(1,h.length-1):l.className=h,p+=u}o.append(l),o=t(l)}else if(">"==s)o=o.parent();else if("l"==s&&r.bPaginate&&r.bLengthChange)a=st(e);else if("f"==s&&r.bFilter)a=G(e);else if("r"==s&&r.bProcessing)a=ht(e);else if("t"==s)a=dt(e);else if("i"==s&&r.bInfo)a=et(e);else if("p"==s&&r.bPaginate)a=lt(e);else if(0!==Gt.ext.feature.length)for(u=0,c=(l=Gt.ext.feature).length;u<c;u++)if(s==l[u].cFeature){a=l[u].fnInit(e);break}a&&((l=e.aanFeatures)[s]||(l[s]=[]),l[s].push(a),o.append(a))}n.replaceWith(o),e.nHolding=null}function V(e,i){var n,r,o,a,s,l,c,h,u,d,p=t(i).children("tr");for(e.splice(0,e.length),o=0,l=p.length;o<l;o++)e.push([]);for(o=0,l=p.length;o<l;o++)for(r=(n=p[o]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase()){for(h=(h=1*r.getAttribute("colspan"))&&0!==h&&1!==h?h:1,u=(u=1*r.getAttribute("rowspan"))&&0!==u&&1!==u?u:1,a=0,s=e[o];s[a];)a++;for(c=a,d=1===h,s=0;s<h;s++)for(a=0;a<u;a++)e[o+a][c+s]={cell:r,unique:d},e[o+a].nTr=n}r=r.nextSibling}}function z(t,e,i){var n=[];i||(i=t.aoHeader,e&&V(i=[],e));e=0;for(var r=i.length;e<r;e++)for(var o=0,a=i[e].length;o<a;o++)!i[e][o].unique||n[o]&&t.bSortCellsTop||(n[o]=i[e][o].cell);return n}function B(e,i,n){if(jt(e,"aoServerParams","serverParams",[i]),i&&Array.isArray(i)){var r={},o=/(.*?)\[\]$/;t.each(i,(function(t,e){var i=e.name.match(o);i?(i=i[0],r[i]||(r[i]=[]),r[i].push(e.value)):r[e.name]=e.value})),i=r}var a,s=e.ajax,l=e.oInstance,c=function(t){jt(e,null,"xhr",[e,t,e.jqXHR]),n(t)};if(t.isPlainObject(s)&&s.data){var h="function"==typeof(a=s.data)?a(i,e):a;i="function"==typeof a&&h?h:t.extend(!0,i,h);delete s.data}h={data:i,success:function(t){var i=t.error||t.sError;i&&Mt(e,0,i),e.json=t,c(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(i,n){var r=jt(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,r)&&("parsererror"==n?Mt(e,0,"Invalid JSON response",1):4===i.readyState&&Mt(e,0,"Ajax error",7)),ut(e,!1)}},e.oAjaxData=i,jt(e,null,"preXhr",[e,i]),e.fnServerData?e.fnServerData.call(l,e.sAjaxSource,t.map(i,(function(t,e){return{name:e,value:t}})),c,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(h,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(l,i,c,e):(e.jqXHR=t.ajax(t.extend(h,s)),s.data=a)}function H(t){t.iDraw++,ut(t,!0),B(t,W(t),(function(e){X(t,e)}))}function W(e){var i,n,r,o,a=e.aoColumns,s=a.length,l=e.oFeatures,c=e.oPreviousSearch,h=e.aoPreSearchCols,u=[],d=xt(e);i=e._iDisplayStart,n=!1!==l.bPaginate?e._iDisplayLength:-1;var p=function(t,e){u.push({name:t,value:e})};p("sEcho",e.iDraw),p("iColumns",s),p("sColumns",re(a,"sName").join(",")),p("iDisplayStart",i),p("iDisplayLength",n);var f={draw:e.iDraw,columns:[],order:[],start:i,length:n,search:{value:c.sSearch,regex:c.bRegex}};for(i=0;i<s;i++)r=a[i],o=h[i],n="function"==typeof r.mData?"function":r.mData,f.columns.push({data:n,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),p("mDataProp_"+i,n),l.bFilter&&(p("sSearch_"+i,o.sSearch),p("bRegex_"+i,o.bRegex),p("bSearchable_"+i,r.bSearchable)),l.bSort&&p("bSortable_"+i,r.bSortable);return l.bFilter&&(p("sSearch",c.sSearch),p("bRegex",c.bRegex)),l.bSort&&(t.each(d,(function(t,e){f.order.push({column:e.col,dir:e.dir}),p("iSortCol_"+t,e.col),p("sSortDir_"+t,e.dir)})),p("iSortingCols",d.length)),null===(a=Gt.ext.legacy.ajax)?e.sAjaxSource?u:f:a?u:f}function X(t,e){var i=Y(t,e),r=e.sEcho!==n?e.sEcho:e.draw,o=e.iTotalRecords!==n?e.iTotalRecords:e.recordsTotal,a=e.iTotalDisplayRecords!==n?e.iTotalDisplayRecords:e.recordsFiltered;if(r!==n){if(1*r<t.iDraw)return;t.iDraw=1*r}for(A(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(a,10),r=0,o=i.length;r<o;r++)x(t,i[r]);t.aiDisplay=t.aiDisplayMaster.slice(),N(t,!0),t._bInitComplete||ot(t,e),ut(t,!1)}function Y(e,i){var r=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==n?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===r?i.aaData||i[r]:""!==r?k(r)(i):i}function G(e){var n=e.oClasses,r=e.sTableId,o=e.oLanguage,a=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+n.sFilterInput+'"/>',c=(c=o.sSearch).match(/_INPUT_/)?c.replace("_INPUT_",l):c+l,h=(n=t("<div/>",{id:s.f?null:r+"_filter",class:n.sFilter}).append(t("<label/>").append(c)),function(){var t=this.value?this.value:"";t!=a.sSearch&&(U(e,{sSearch:t,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),e._iDisplayStart=0,N(e))}),u=(s=null!==e.searchDelay?e.searchDelay:"ssp"===Rt(e)?400:0,t("input",n).val(a.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",s?ye(h,s):h).on("mouseup",(function(){setTimeout((function(){h.call(u[0])}),10)})).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",r));return t(e.nTable).on("search.dt.DT",(function(t,n){if(e===n)try{u[0]!==i.activeElement&&u.val(a.sSearch)}catch(t){}})),n[0]}function U(t,e,i){var r=t.oPreviousSearch,o=t.aoPreSearchCols,a=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive};if(v(t),"ssp"!=Rt(t)){for(K(t,e.sSearch,i,e.bEscapeRegex!==n?!e.bEscapeRegex:e.bRegex,e.bSmart,e.bCaseInsensitive),a(e),e=0;e<o.length;e++)$(t,o[e].sSearch,e,o[e].bEscapeRegex!==n?!o[e].bEscapeRegex:o[e].bRegex,o[e].bSmart,o[e].bCaseInsensitive);q(t)}else a(e);t.bFiltered=!0,jt(t,null,"search",[t])}function q(e){for(var i,n,r=Gt.ext.search,o=e.aiDisplay,a=0,s=r.length;a<s;a++){for(var l=[],c=0,h=o.length;c<h;c++)n=o[c],i=e.aoData[n],r[a](e,i._aFilterData,n,i._aData,c)&&l.push(n);o.length=0,t.merge(o,l)}}function $(t,e,i,n,r,o){if(""!==e){var a=[],s=t.aiDisplay;for(n=Z(e,n,r,o),r=0;r<s.length;r++)e=t.aoData[s[r]]._aFilterData[i],n.test(e)&&a.push(s[r]);t.aiDisplay=a}}function K(t,e,i,n,r,o){r=Z(e,n,r,o);var a,s=t.oPreviousSearch.sSearch,l=t.aiDisplayMaster;o=[];if(0!==Gt.ext.search.length&&(i=!0),a=J(t),0>=e.length)t.aiDisplay=l.slice();else{for((a||i||n||s.length>e.length||0!==e.indexOf(s)||t.bSorted)&&(t.aiDisplay=l.slice()),e=t.aiDisplay,i=0;i<e.length;i++)r.test(t.aoData[e[i]]._sFilterRow)&&o.push(e[i]);t.aiDisplay=o}}function Z(e,i,n,r){return e=i?e:pe(e),n&&(e="^(?=.*?"+t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")})).join(")(?=.*?")+").*$"),RegExp(e,r?"i":"")}function J(t){var e,i,n,r,o,a,s,l,c=t.aoColumns,h=Gt.ext.type.search;for(e=!1,i=0,r=t.aoData.length;i<r;i++)if(!(l=t.aoData[i])._aFilterData){for(a=[],n=0,o=c.length;n<o;n++)(e=c[n]).bSearchable?(s=_(t,i,n,"filter"),h[e.sType]&&(s=h[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(fe.innerHTML=s,s=ge?fe.textContent:fe.innerText),s.replace&&(s=s.replace(/[\r\n\u2028]/g,"")),a.push(s);l._aFilterData=a,l._sFilterRow=a.join(" "),e=!0}return e}function Q(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function tt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function et(e){var i=e.sTableId,n=e.aanFeatures.i,r=t("<div/>",{class:e.oClasses.sInfo,id:n?null:i+"_info"});return n||(e.aoDrawCallback.push({fn:it,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",i+"_info")),r[0]}function it(e){var i=e.aanFeatures.i;if(0!==i.length){var n=e.oLanguage,r=e._iDisplayStart+1,o=e.fnDisplayEnd(),a=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?n.sInfo:n.sInfoEmpty;s!==a&&(l+=" "+n.sInfoFiltered),l=nt(e,l+=n.sInfoPostFix),null!==(n=n.fnInfoCallback)&&(l=n.call(e.oInstance,e,r,o,a,s,l)),t(i).html(l)}}function nt(t,e){var i=t.fnFormatNumber,n=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),a=-1===r;return e.replace(/_START_/g,i.call(t,n)).replace(/_END_/g,i.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,i.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,i.call(t,o)).replace(/_PAGE_/g,i.call(t,a?1:Math.ceil(n/r))).replace(/_PAGES_/g,i.call(t,a?1:Math.ceil(o/r)))}function rt(t){var e,i,n,r=t.iInitDisplayStart,o=t.aoColumns;i=t.oFeatures;var a=t.bDeferLoading;if(t.bInitialised){for(R(t),L(t),j(t,t.aoHeader),j(t,t.aoFooter),ut(t,!0),i.bAutoWidth&>(t),e=0,i=o.length;e<i;e++)(n=o[e]).sWidth&&(n.nTh.style.width=bt(n.sWidth));jt(t,null,"preInit",[t]),F(t),("ssp"!=(o=Rt(t))||a)&&("ajax"==o?B(t,[],(function(i){var n=Y(t,i);for(e=0;e<n.length;e++)x(t,n[e]);t.iInitDisplayStart=r,F(t),ut(t,!1),ot(t,i)})):(ut(t,!1),ot(t)))}else setTimeout((function(){rt(t)}),200)}function ot(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&p(t),jt(t,null,"plugin-init",[t,e]),jt(t,"aoInitComplete","init",[t,e])}function at(t,e){var i=parseInt(e,10);t._iDisplayLength=i,Nt(t),jt(t,null,"length",[t,i])}function st(e){for(var i=e.oClasses,n=e.sTableId,r=e.aLengthMenu,o=(a=Array.isArray(r[0]))?r[0]:r,a=(r=a?r[1]:r,t("<select/>",{name:n+"_length","aria-controls":n,class:i.sLengthSelect})),s=0,l=o.length;s<l;s++)a[0][s]=new Option("number"==typeof r[s]?e.fnFormatNumber(r[s]):r[s],o[s]);var c=t("<div><label/></div>").addClass(i.sLength);return e.aanFeatures.l||(c[0].id=n+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",a[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",(function(){at(e,t(this).val()),N(e)})),t(e.nTable).on("length.dt.DT",(function(i,n,r){e===n&&t("select",c).val(r)})),c[0]}function lt(e){var i=e.sPaginationType,n=Gt.ext.pager[i],r="function"==typeof n,o=function(t){N(t)},a=(i=t("<div/>").addClass(e.oClasses.sPaging+i)[0],e.aanFeatures);return r||n.fnInit(e,i,o),a.p||(i.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,i=t._iDisplayStart,s=t._iDisplayLength,l=t.fnRecordsDisplay(),c=(i=(c=-1===s)?0:Math.ceil(i/s),s=c?1:Math.ceil(l/s),l=n(i,s),0);for(e=a.p.length;c<e;c++)Ft(t,"pageButton")(t,a.p[c],c,l,i,s)}else n.fnUpdate(t,o)},sName:"pagination"})),i}function ct(t,e,i){var n=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();return 0===o||-1===r?n=0:"number"==typeof e?(n=e*r)>o&&(n=0):"first"==e?n=0:"previous"==e?0>(n=0<=r?n-r:0)&&(n=0):"next"==e?n+r<o&&(n+=r):"last"==e?n=Math.floor((o-1)/r)*r:Mt(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==n,t._iDisplayStart=n,e&&(jt(t,null,"page",[t]),i&&N(t)),e}function ht(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function ut(e,i){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",i?"block":"none"),jt(e,null,"processing",[e,i])}function dt(e){(u=t(e.nTable)).attr("role","grid");var i=e.oScroll;if(""===i.sX&&""===i.sY)return e.nTable;var n=i.sX,r=i.sY,o=e.oClasses,a=u.children("caption"),s=a.length?a[0]._captionSide:null,l=t(u[0].cloneNode(!1)),c=t(u[0].cloneNode(!1)),h=u.children("tfoot");h.length||(h=null),l=t("<div/>",{class:o.sScrollWrapper}).append(t("<div/>",{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:n?n?bt(n):null:"100%"}).append(t("<div/>",{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:i.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?a:null).append(u.children("thead"))))).append(t("<div/>",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:n?bt(n):null}).append(u)),h&&l.append(t("<div/>",{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:n?n?bt(n):null:"100%"}).append(t("<div/>",{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?a:null).append(u.children("tfoot")))));var u,d=(u=l.children())[0],p=(o=u[1],h?u[2]:null);return n&&t(o).on("scroll.DT",(function(){var t=this.scrollLeft;d.scrollLeft=t,h&&(p.scrollLeft=t)})),t(o).css("max-height",r),i.bCollapse||t(o).css("height",r),e.nScrollHead=d,e.nScrollBody=o,e.nScrollFoot=p,e.aoDrawCallback.push({fn:pt,sName:"scrolling"}),l[0]}function pt(e){var i,r,o,a,s,l=(u=e.oScroll).sX,c=u.sXInner,h=u.sY,u=u.iBarWidth,d=t(e.nScrollHead),g=d[0].style,m=(v=d.children("div"))[0].style,y=v.children("table"),v=e.nScrollBody,b=t(v),x=v.style,w=t(e.nScrollFoot).children("div"),_=w.children("table"),S=t(e.nTHead),P=t(e.nTable),k=P[0],C=k.style,T=e.nTFoot?t(e.nTFoot):null,A=e.oBrowser,O=A.bScrollOversize,M=re(e.aoColumns,"nTh"),E=[],I=[],D=[],L=[],j=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};r=v.scrollHeight>v.clientHeight,e.scrollBarVis!==r&&e.scrollBarVis!==n?(e.scrollBarVis=r,p(e)):(e.scrollBarVis=r,P.children("thead, tfoot").remove(),T&&(o=T.clone().prependTo(P),i=T.find("tr"),o=o.find("tr")),a=S.clone().prependTo(P),S=S.find("tr"),r=a.find("tr"),a.find("th, td").removeAttr("tabindex"),l||(x.width="100%",d[0].style.width="100%"),t.each(z(e,a),(function(t,i){s=f(e,t),i.style.width=e.aoColumns[s].sWidth})),T&&ft((function(t){t.style.width=""}),o),d=P.outerWidth(),""===l?(C.width="100%",O&&(P.find("tbody").height()>v.offsetHeight||"scroll"==b.css("overflow-y"))&&(C.width=bt(P.outerWidth()-u)),d=P.outerWidth()):""!==c&&(C.width=bt(c),d=P.outerWidth()),ft(j,r),ft((function(e){D.push(e.innerHTML),E.push(bt(t(e).css("width")))}),r),ft((function(e,i){-1!==t.inArray(e,M)&&(e.style.width=E[i])}),S),t(r).height(0),T&&(ft(j,o),ft((function(e){L.push(e.innerHTML),I.push(bt(t(e).css("width")))}),o),ft((function(t,e){t.style.width=I[e]}),i),t(o).height(0)),ft((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+D[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=E[e]}),r),T&&ft((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+L[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=I[e]}),o),P.outerWidth()<d?(i=v.scrollHeight>v.offsetHeight||"scroll"==b.css("overflow-y")?d+u:d,O&&(v.scrollHeight>v.offsetHeight||"scroll"==b.css("overflow-y"))&&(C.width=bt(i-u)),(""===l||""!==c)&&Mt(e,1,"Possible column misalignment",6)):i="100%",x.width=bt(i),g.width=bt(i),T&&(e.nScrollFoot.style.width=bt(i)),!h&&O&&(x.height=bt(k.offsetHeight+u)),l=P.outerWidth(),y[0].style.width=bt(l),m.width=bt(l),c=P.height()>v.clientHeight||"scroll"==b.css("overflow-y"),m[h="padding"+(A.bScrollbarLeft?"Left":"Right")]=c?u+"px":"0px",T&&(_[0].style.width=bt(l),w[0].style.width=bt(l),w[0].style[h]=c?u+"px":"0px"),P.children("colgroup").insertBefore(P.children("thead")),b.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(v.scrollTop=0))}function ft(t,e,i){for(var n,r,o=0,a=0,s=e.length;a<s;){for(n=e[a].firstChild,r=i?i[a].firstChild:null;n;)1===n.nodeType&&(i?t(n,r,o):t(n,o),o++),n=n.nextSibling,r=i?r.nextSibling:null;a++}}function gt(i){var n,r,o=i.nTable,a=i.aoColumns,s=(w=i.oScroll).sY,l=w.sX,c=w.sXInner,h=a.length,u=y(i,"bVisible"),d=t("th",i.nTHead),g=o.getAttribute("width"),v=o.parentNode,b=!1,x=i.oBrowser,w=x.bScrollOversize;for((n=o.style.width)&&-1!==n.indexOf("%")&&(g=n),n=0;n<u.length;n++)null!==(r=a[u[n]]).sWidth&&(r.sWidth=mt(r.sWidthOrig,v),b=!0);if(w||!b&&!l&&!s&&h==m(i)&&h==d.length)for(n=0;n<h;n++)null!==(u=f(i,n))&&(a[u].sWidth=bt(d.eq(n).width()));else{(h=t(o).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var _=t("<tr/>").appendTo(h.find("tbody"));for(h.find("thead, tfoot").remove(),h.append(t(i.nTHead).clone()).append(t(i.nTFoot).clone()),h.find("tfoot th, tfoot td").css("width",""),d=z(i,h.find("thead")[0]),n=0;n<u.length;n++)r=a[u[n]],d[n].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?bt(r.sWidthOrig):"",r.sWidthOrig&&l&&t(d[n]).append(t("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(i.aoData.length)for(n=0;n<u.length;n++)r=a[b=u[n]],t(yt(i,b)).clone(!1).append(r.sContentPadding).appendTo(_);for(t("[name]",h).removeAttr("name"),r=t("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(h).appendTo(v),l&&c?h.width(c):l?(h.css("width","auto"),h.removeAttr("width"),h.width()<v.clientWidth&&g&&h.width(v.clientWidth)):s?h.width(v.clientWidth):g&&h.width(g),n=s=0;n<u.length;n++)c=(v=t(d[n])).outerWidth()-v.width(),s+=v=x.bBounding?Math.ceil(d[n].getBoundingClientRect().width):v.outerWidth(),a[u[n]].sWidth=bt(v-c);o.style.width=bt(s),r.remove()}g&&(o.style.width=bt(g)),!g&&!l||i._reszEvt||(o=function(){t(e).on("resize.DT-"+i.sInstance,ye((function(){p(i)})))},w?setTimeout(o,1e3):o(),i._reszEvt=!0)}function mt(e,n){if(!e)return 0;var r=t("<div/>").css("width",bt(e)).appendTo(n||i.body),o=r[0].offsetWidth;return r.remove(),o}function yt(e,i){var n=vt(e,i);if(0>n)return null;var r=e.aoData[n];return r.nTr?r.anCells[i]:t("<td/>").html(_(e,n,i,"display"))[0]}function vt(t,e){for(var i,n=-1,r=-1,o=0,a=t.aoData.length;o<a;o++)(i=(i=(i=_(t,o,e,"display")+"").replace(me,"")).replace(/ /g," ")).length>n&&(n=i.length,r=o);return r}function bt(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function xt(e){var i,r,o,a,s,l,c=[],h=e.aoColumns;i=e.aaSortingFixed,r=t.isPlainObject(i);var u=[];for(o=function(e){e.length&&!Array.isArray(e[0])?u.push(e):t.merge(u,e)},Array.isArray(i)&&o(i),r&&i.pre&&o(i.pre),o(e.aaSorting),r&&i.post&&o(i.post),e=0;e<u.length;e++)for(i=0,r=(o=h[l=u[e][0]].aDataSort).length;i<r;i++)s=h[a=o[i]].sType||"string",u[e]._idx===n&&(u[e]._idx=t.inArray(u[e][1],h[a].asSorting)),c.push({src:l,col:a,dir:u[e][1],index:u[e]._idx,type:s,formatter:Gt.ext.type.order[s+"-pre"]});return c}function wt(t){var e,i,n,r,o=[],a=Gt.ext.type.order,s=t.aoData,l=0,c=t.aiDisplayMaster;for(v(t),e=0,i=(r=xt(t)).length;e<i;e++)(n=r[e]).formatter&&l++,Ct(t,n.col);if("ssp"!=Rt(t)&&0!==r.length){for(e=0,i=c.length;e<i;e++)o[c[e]]=e;l===r.length?c.sort((function(t,e){var i,n,a,l,c=r.length,h=s[t]._aSortData,u=s[e]._aSortData;for(a=0;a<c;a++)if(0!==(i=(i=h[(l=r[a]).col])<(n=u[l.col])?-1:i>n?1:0))return"asc"===l.dir?i:-i;return(i=o[t])<(n=o[e])?-1:i>n?1:0})):c.sort((function(t,e){var i,n,l,c,h=r.length,u=s[t]._aSortData,d=s[e]._aSortData;for(l=0;l<h;l++)if(i=u[(c=r[l]).col],n=d[c.col],0!==(i=(c=a[c.type+"-"+c.dir]||a["string-"+c.dir])(i,n)))return i;return(i=o[t])<(n=o[e])?-1:i>n?1:0}))}t.bSorted=!0}function _t(t){for(var e,i,n=t.aoColumns,r=xt(t),o=(t=t.oLanguage.oAria,0),a=n.length;o<a;o++){var s=(i=n[o]).asSorting;e=i.ariaTitle||i.sTitle.replace(/<.*?>/g,"");var l=i.nTh;l.removeAttribute("aria-sort"),i.bSortable&&(0<r.length&&r[0].col==o?(l.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),i=s[r[0].index+1]||s[0]):i=s[0],e+="asc"===i?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",e)}}function St(e,i,r,o){var a=e.aaSorting,s=e.aoColumns[i].asSorting,l=function(e,i){var r=e._idx;return r===n&&(r=t.inArray(e[1],s)),r+1<s.length?r+1:i?null:0};"number"==typeof a[0]&&(a=e.aaSorting=[a]),r&&e.oFeatures.bSortMulti?-1!==(r=t.inArray(i,re(a,"0")))?(null===(i=l(a[r],!0))&&1===a.length&&(i=0),null===i?a.splice(r,1):(a[r][1]=s[i],a[r]._idx=i)):(a.push([i,s[0],0]),a[a.length-1]._idx=0):a.length&&a[0][0]==i?(i=l(a[0]),a.length=1,a[0][1]=s[i],a[0]._idx=i):(a.length=0,a.push([i,s[0]]),a[0]._idx=0),F(e),"function"==typeof o&&o(e)}function Pt(t,e,i,n){var r=t.aoColumns[i];Dt(e,{},(function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(ut(t,!0),setTimeout((function(){St(t,i,e.shiftKey,n),"ssp"!==Rt(t)&&ut(t,!1)}),0)):St(t,i,e.shiftKey,n))}))}function kt(e){var i,n,r=e.aLastSort,o=e.oClasses.sSortColumn,a=xt(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(s=0,i=r.length;s<i;s++)n=r[s].src,t(re(e.aoData,"anCells",n)).removeClass(o+(2>s?s+1:3));for(s=0,i=a.length;s<i;s++)n=a[s].src,t(re(e.aoData,"anCells",n)).addClass(o+(2>s?s+1:3))}e.aLastSort=a}function Ct(t,e){var i,n=t.aoColumns[e],r=Gt.ext.order[n.sSortDataType];r&&(i=r.call(t.oInstance,t,e,g(t,e)));for(var o,a=Gt.ext.type.order[n.sType+"-pre"],s=0,l=t.aoData.length;s<l;s++)(n=t.aoData[s])._aSortData||(n._aSortData=[]),(!n._aSortData[e]||r)&&(o=r?i[s]:_(t,s,e,"sort"),n._aSortData[e]=a?a(o):o)}function Tt(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var i={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:Q(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,i){return{visible:t.bVisible,search:Q(e.aoPreSearchCols[i])}}))};jt(e,"aoStateSaveParams","stateSaveParams",[e,i]),e.oSavedState=i,e.fnStateSaveCallback.call(e.oInstance,e,i)}}function At(e,i,r){var o,a,s=e.aoColumns;i=function(i){if(i&&i.time){var l=jt(e,"aoStateLoadParams","stateLoadParams",[e,i]);if(-1===t.inArray(!1,l)&&!(0<(l=e.iStateDuration)&&i.time<+new Date-1e3*l||i.columns&&s.length!==i.columns.length)){if(e.oLoadedState=t.extend(!0,{},i),i.start!==n&&(e._iDisplayStart=i.start,e.iInitDisplayStart=i.start),i.length!==n&&(e._iDisplayLength=i.length),i.order!==n&&(e.aaSorting=[],t.each(i.order,(function(t,i){e.aaSorting.push(i[0]>=s.length?[0,i[1]]:i)}))),i.search!==n&&t.extend(e.oPreviousSearch,tt(i.search)),i.columns)for(o=0,a=i.columns.length;o<a;o++)(l=i.columns[o]).visible!==n&&(s[o].bVisible=l.visible),l.search!==n&&t.extend(e.aoPreSearchCols[o],tt(l.search));jt(e,"aoStateLoaded","stateLoaded",[e,i])}}r()};if(e.oFeatures.bStateSave){var l=e.fnStateLoadCallback.call(e.oInstance,e,i);l!==n&&i(l)}else r()}function Ot(e){var i=Gt.settings;return-1!==(e=t.inArray(e,re(i,"nTable")))?i[e]:null}function Mt(t,i,n,r){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see http://datatables.net/tn/"+r),i)e.console&&console.log&&console.log(n);else if(i=(i=Gt.ext).sErrMode||i.errMode,t&&jt(t,null,"error",[t,r,n]),"alert"==i)alert(n);else{if("throw"==i)throw Error(n);"function"==typeof i&&i(t,r,n)}}function Et(e,i,r,o){Array.isArray(r)?t.each(r,(function(t,n){Array.isArray(n)?Et(e,i,n[0],n[1]):Et(e,i,n)})):(o===n&&(o=r),i[r]!==n&&(e[o]=i[r]))}function It(e,i,n){var r,o;for(o in i)i.hasOwnProperty(o)&&(r=i[o],t.isPlainObject(r)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],r)):e[o]=n&&"data"!==o&&"aaData"!==o&&Array.isArray(r)?r.slice():r);return e}function Dt(e,i,n){t(e).on("click.DT",i,(function(i){t(e).trigger("blur"),n(i)})).on("keypress.DT",i,(function(t){13===t.which&&(t.preventDefault(),n(t))})).on("selectstart.DT",(function(){return!1}))}function Lt(t,e,i,n){i&&t[e].push({fn:i,sName:n})}function jt(e,i,n,r){var o=[];return i&&(o=t.map(e[i].slice().reverse(),(function(t){return t.fn.apply(e.oInstance,r)}))),null!==n&&(i=t.Event(n+".dt"),t(e.nTable).trigger(i,r),o.push(i.result)),o}function Nt(t){var e=t._iDisplayStart,i=t.fnDisplayEnd(),n=t._iDisplayLength;e>=i&&(e=i-n),e-=e%n,(-1===n||0>e)&&(e=0),t._iDisplayStart=e}function Ft(e,i){var n=e.renderer,r=Gt.ext.renderer[i];return t.isPlainObject(n)&&n[i]?r[n[i]]||r._:"string"==typeof n&&r[n]||r._}function Rt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Vt(t,e){var i=[],n=(i=Me.numbers_length,Math.floor(i/2));return e<=i?i=ae(0,e):t<=n?((i=ae(0,i-2)).push("ellipsis"),i.push(e-1)):(t>=e-1-n?i=ae(e-(i-2),e):((i=ae(t-n+2,t+n-1)).push("ellipsis"),i.push(e-1)),i.splice(0,0,"ellipsis"),i.splice(0,0,0)),i.DT_el="span",i}function zt(e){t.each({num:function(t){return Ee(t,e)},"num-fmt":function(t){return Ee(t,e,Jt)},"html-num":function(t){return Ee(t,e,$t)},"html-num-fmt":function(t){return Ee(t,e,$t,Jt)}},(function(t,i){Ht.type.order[t+e+"-pre"]=i,t.match(/^html\-/)&&(Ht.type.search[t+e]=Ht.type.search.html)}))}function Bt(t){return function(){var e=[Ot(this[Gt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Gt.ext.internal[t].apply(this,e)}}var Ht,Wt,Xt,Yt,Gt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new Wt(t?Ot(this[Ht.iApiIndex]):this)},this.fnAddData=function(e,i){var r=this.api(!0),o=Array.isArray(e)&&(Array.isArray(e[0])||t.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e);return(i===n||i)&&r.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),i=e.settings()[0],r=i.oScroll;t===n||t?e.draw(!1):(""!==r.sX||""!==r.sY)&&pt(i)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===n||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,i){var r=this.api(!0),o=(t=r.rows(t)).settings()[0],a=o.aoData[t[0][0]];return t.remove(),e&&e.call(this,o,a),(i===n||i)&&r.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,i,r,o,a){o=this.api(!0),null===e||e===n?o.search(t,i,r,a):o.column(e).search(t,i,r,a),o.draw()},this.fnGetData=function(t,e){var i=this.api(!0);if(t!==n){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==n||"td"==r||"th"==r?i.cell(t,e).data():i.row(t).data()||null}return i.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==n?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),i=t.nodeName.toUpperCase();return"TR"==i?e.row(t).index():"TD"==i||"TH"==i?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,i){return this.api(!0).row(t).child(e,i).show().child()[0]},this.fnPageChange=function(t,e){var i=this.api(!0).page(t);(e===n||e)&&i.draw(!1)},this.fnSetColumnVis=function(t,e,i){t=this.api(!0).column(t).visible(e),(i===n||i)&&t.columns.adjust().draw()},this.fnSettings=function(){return Ot(this[Ht.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,i){this.api(!0).order.listener(t,e,i)},this.fnUpdate=function(t,e,i,r,o){var a=this.api(!0);return i===n||null===i?a.row(e).data(t):a.cell(e,i).data(t),(o===n||o)&&a.columns.adjust(),(r===n||r)&&a.draw(),0},this.fnVersionCheck=Ht.fnVersionCheck;var i=this,r=e===n,h=this.length;for(var p in r&&(e={}),this.oApi=this.internal=Ht.internal,Gt.ext.internal)p&&(this[p]=Bt(p));return this.each((function(){var p,f={},g=1<h?It(f,e,!0):e,m=0,y=(f=this.getAttribute("id"),!1),v=Gt.defaults,_=t(this);if("table"!=this.nodeName.toLowerCase())Mt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(v),l(v.column),o(v,v,!0),o(v.column,v.column,!0),o(v,t.extend(g,_.data()),!0);var S=Gt.settings;m=0;for(p=S.length;m<p;m++){var P=S[m];if(P.nTable==this||P.nTHead&&P.nTHead.parentNode==this||P.nTFoot&&P.nTFoot.parentNode==this){var C=g.bRetrieve!==n?g.bRetrieve:v.bRetrieve;if(r||C)return P.oInstance;if(g.bDestroy!==n?g.bDestroy:v.bDestroy){P.oInstance.fnDestroy();break}return void Mt(P,0,"Cannot reinitialise DataTable",3)}if(P.sTableId==this.id){S.splice(m,1);break}}null!==f&&""!==f||(this.id=f="DataTables_Table_"+Gt.ext._unique++);var T=t.extend(!0,{},Gt.models.oSettings,{sDestroyWidth:_[0].style.width,sInstance:f,sTableId:f});T.nTable=this,T.oApi=i.internal,T.oInit=g,S.push(T),T.oInstance=1===i.length?i:_.dataTable(),s(g),a(g.oLanguage),g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=Array.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=It(t.extend(!0,{},v),g),Et(T.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Et(T,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Et(T.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Et(T.oLanguage,g,"fnInfoCallback"),Lt(T,"aoDrawCallback",g.fnDrawCallback,"user"),Lt(T,"aoServerParams",g.fnServerParams,"user"),Lt(T,"aoStateSaveParams",g.fnStateSaveParams,"user"),Lt(T,"aoStateLoadParams",g.fnStateLoadParams,"user"),Lt(T,"aoStateLoaded",g.fnStateLoaded,"user"),Lt(T,"aoRowCallback",g.fnRowCallback,"user"),Lt(T,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Lt(T,"aoHeaderCallback",g.fnHeaderCallback,"user"),Lt(T,"aoFooterCallback",g.fnFooterCallback,"user"),Lt(T,"aoInitComplete",g.fnInitComplete,"user"),Lt(T,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),T.rowIdFn=k(g.rowId),c(T);var A=T.oClasses;t.extend(A,Gt.ext.classes,g.oClasses),_.addClass(A.sTable),T.iInitDisplayStart===n&&(T.iInitDisplayStart=g.iDisplayStart,T._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading&&(T.bDeferLoading=!0,f=Array.isArray(g.iDeferLoading),T._iRecordsDisplay=f?g.iDeferLoading[0]:g.iDeferLoading,T._iRecordsTotal=f?g.iDeferLoading[1]:g.iDeferLoading);var O=T.oLanguage;t.extend(!0,O,g.oLanguage),O.sUrl?(t.ajax({dataType:"json",url:O.sUrl,success:function(e){a(e),o(v.oLanguage,e),t.extend(!0,O,e),jt(T,null,"i18n",[T]),rt(T)},error:function(){rt(T)}}),y=!0):jt(T,null,"i18n",[T]),null===g.asStripeClasses&&(T.asStripeClasses=[A.sStripeOdd,A.sStripeEven]);f=T.asStripeClasses;var M=_.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(f,(function(t){return M.hasClass(t)})))&&(t("tbody tr",this).removeClass(f.join(" ")),T.asDestroyStripes=f.slice()),f=[],0!==(S=this.getElementsByTagName("thead")).length&&(V(T.aoHeader,S[0]),f=z(T)),null===g.aoColumns)for(S=[],m=0,p=f.length;m<p;m++)S.push(null);else S=g.aoColumns;for(m=0,p=S.length;m<p;m++)u(T,f?f[m]:null);if(b(T,g.aoColumnDefs,S,(function(t,e){d(T,t,e)})),M.length){var E=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(M[0]).children("th, td").each((function(t,e){var i=T.aoColumns[t];if(i.mData===t){var r=E(e,"sort")||E(e,"order"),o=E(e,"filter")||E(e,"search");null===r&&null===o||(i.mData={_:t+".display",sort:null!==r?t+".@data-"+r:n,type:null!==r?t+".@data-"+r:n,filter:null!==o?t+".@data-"+o:n},d(T,t))}}))}var I=T.oFeatures;f=function(){if(g.aaSorting===n){var e=T.aaSorting;for(m=0,p=e.length;m<p;m++)e[m][1]=T.aoColumns[m].asSorting[0]}kt(T),I.bSort&&Lt(T,"aoDrawCallback",(function(){if(T.bSorted){var e=xt(T),i={};t.each(e,(function(t,e){i[e.src]=e.dir})),jt(T,null,"order",[T,e,i]),_t(T)}})),Lt(T,"aoDrawCallback",(function(){(T.bSorted||"ssp"===Rt(T)||I.bDeferRender)&&kt(T)}),"sc");e=_.children("caption").each((function(){this._captionSide=t(this).css("caption-side")}));var i=_.children("thead");0===i.length&&(i=t("<thead/>").appendTo(_)),T.nTHead=i[0];var r=_.children("tbody");if(0===r.length&&(r=t("<tbody/>").insertAfter(i)),T.nTBody=r[0],0===(i=_.children("tfoot")).length&&e.length>0&&(""!==T.oScroll.sX||""!==T.oScroll.sY)&&(i=t("<tfoot/>").appendTo(_)),0===i.length||0===i.children().length?_.addClass(A.sNoFooter):i.length>0&&(T.nTFoot=i[0],V(T.aoFooter,T.nTFoot)),g.aaData)for(m=0;m<g.aaData.length;m++)x(T,g.aaData[m]);else(T.bDeferLoading||"dom"==Rt(T))&&w(T,t(T.nTBody).children("tr"));T.aiDisplay=T.aiDisplayMaster.slice(),T.bInitialised=!0,!1===y&&rt(T)};g.bStateSave?(I.bStateSave=!0,Lt(T,"aoDrawCallback",Tt,"state_save"),At(T,g,f)):f()}})),i=null,this},Ut={},qt=/[\r\n\u2028]/g,$t=/<.*?>/g,Kt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Zt=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,Jt=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Qt=function(t){return!t||!0===t||"-"===t},te=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},ee=function(t,e){return Ut[e]||(Ut[e]=RegExp(pe(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Ut[e],"."):t},ie=function(t,e,i){var n="string"==typeof t;return!!Qt(t)||(e&&n&&(t=ee(t,e)),i&&n&&(t=t.replace(Jt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ne=function(t,e,i){return!!Qt(t)||((Qt(t)||"string"==typeof t)&&!!ie(t.replace($t,""),e,i)||null)},re=function(t,e,i){var r=[],o=0,a=t.length;if(i!==n)for(;o<a;o++)t[o]&&t[o][e]&&r.push(t[o][e][i]);else for(;o<a;o++)t[o]&&r.push(t[o][e]);return r},oe=function(t,e,i,r){var o=[],a=0,s=e.length;if(r!==n)for(;a<s;a++)t[e[a]][i]&&o.push(t[e[a]][i][r]);else for(;a<s;a++)o.push(t[e[a]][i]);return o},ae=function(t,e){var i,r=[];e===n?(e=0,i=t):(i=e,e=t);for(var o=e;o<i;o++)r.push(o);return r},se=function(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&e.push(t[i]);return e},le=function(t){var e;t:{if(!(2>t.length))for(var i=(e=t.slice().sort())[0],n=1,r=e.length;n<r;n++){if(e[n]===i){e=!1;break t}i=e[n]}e=!0}if(e)return t.slice();e=[];r=t.length;var o,a=0;n=0;t:for(;n<r;n++){for(i=t[n],o=0;o<a;o++)if(e[o]===i)continue t;e.push(i),a++}return e},ce=function(t,e){if(Array.isArray(e))for(var i=0;i<e.length;i++)ce(t,e[i]);else t.push(e);return t};Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Gt.util={throttle:function(t,e){var i,r,o=e!==n?e:200;return function(){var e=this,a=+new Date,s=arguments;i&&a<i+o?(clearTimeout(r),r=setTimeout((function(){i=n,t.apply(e,s)}),o)):(i=a,t.apply(e,s))}},escapeRegex:function(t){return t.replace(Zt,"\\$1")}};var he=function(t,e,i){t[e]!==n&&(t[i]=t[e])},ue=/\[.*?\]$/,de=/\(\)$/,pe=Gt.util.escapeRegex,fe=t("<div>")[0],ge=fe.textContent!==n,me=/<.*?>/g,ye=Gt.util.throttle,ve=[],be=Array.prototype;Wt=function(e,i){if(!(this instanceof Wt))return new Wt(e,i);var n=[],r=function(e){(e=function(e){var i,n,r=Gt.settings,o=t.map(r,(function(t){return t.nTable}));return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(i=t.inArray(e,o))?[r[i]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=t(e):e instanceof t&&(n=e),n?n.map((function(){return-1!==(i=t.inArray(this,o))?r[i]:null})).toArray():void 0):[]}(e))&&n.push.apply(n,e)};if(Array.isArray(e))for(var o=0,a=e.length;o<a;o++)r(e[o]);else r(e);this.context=le(n),i&&t.merge(this,i),this.selector={rows:null,cols:null,opts:null},Wt.extend(this,this,ve)},Gt.Api=Wt,t.extend(Wt.prototype,{any:function(){return 0!==this.count()},concat:be.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,i=this.length;e<i;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new Wt(e[t],this[t]):null},filter:function(t){var e=[];if(be.filter)e=be.filter.call(this,t,this);else for(var i=0,n=this.length;i<n;i++)t.call(this,this[i],i,this)&&e.push(this[i]);return new Wt(this.context,e)},flatten:function(){var t=[];return new Wt(this.context,t.concat.apply(t,this.toArray()))},join:be.join,indexOf:be.indexOf||function(t,e){for(var i=e||0,n=this.length;i<n;i++)if(this[i]===t)return i;return-1},iterator:function(t,e,i,r){var o,a,s,l,c,h,u,d=[],p=this.context,f=this.selector;for("string"==typeof t&&(r=i,i=e,e=t,t=!1),a=0,s=p.length;a<s;a++){var g=new Wt(p[a]);if("table"===e)(o=i.call(g,p[a],a))!==n&&d.push(o);else if("columns"===e||"rows"===e)(o=i.call(g,p[a],this[a],a))!==n&&d.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(u=this[a],"column-rows"===e&&(h=ke(p[a],f.opts)),l=0,c=u.length;l<c;l++)o=u[l],(o="cell"===e?i.call(g,p[a],o.row,o.column,a,l):i.call(g,p[a],o,a,l,h))!==n&&d.push(o)}return d.length||r?((e=(t=new Wt(p,t?d.concat.apply([],d):d)).selector).rows=f.rows,e.cols=f.cols,e.opts=f.opts,t):this},lastIndexOf:be.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(be.map)e=be.map.call(this,t,this);else for(var i=0,n=this.length;i<n;i++)e.push(t.call(this,this[i],i));return new Wt(this.context,e)},pluck:function(t){return this.map((function(e){return e[t]}))},pop:be.pop,push:be.push,reduce:be.reduce||function(t,e){return h(this,t,e,0,this.length,1)},reduceRight:be.reduceRight||function(t,e){return h(this,t,e,this.length-1,-1,-1)},reverse:be.reverse,selector:null,shift:be.shift,slice:function(){return new Wt(this.context,this)},sort:be.sort,splice:be.splice,toArray:function(){return be.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new Wt(this.context,le(this))},unshift:be.unshift}),Wt.extend=function(t,e,i){if(i.length&&e&&(e instanceof Wt||e.__dt_wrapper)){var n,r,o,a=function(t,e,i){return function(){var n=e.apply(t,arguments);return Wt.extend(n,n,i.methodExt),n}};for(n=0,r=i.length;n<r;n++)e[(o=i[n]).name]="function"===o.type?a(t,o.val,o):"object"===o.type?{}:o.val,e[o.name].__dt_wrapper=!0,Wt.extend(t,e[o.name],o.propExt)}},Wt.register=Xt=function(e,i){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)Wt.register(e[n],i);else{var o,a,s=e.split("."),l=ve;for(n=0,r=s.length;n<r;n++){var c;o=(a=-1!==s[n].indexOf("()"))?s[n].replace("()",""):s[n];t:{c=0;for(var h=l.length;c<h;c++)if(l[c].name===o){c=l[c];break t}c=null}c||(c={name:o,val:{},methodExt:[],propExt:[],type:"object"},l.push(c)),n===r-1?(c.val=i,c.type="function"==typeof i?"function":t.isPlainObject(i)?"object":"other"):l=a?c.methodExt:c.propExt}}},Wt.registerPlural=Yt=function(t,e,i){Wt.register(t,i),Wt.register(e,(function(){var t=i.apply(this,arguments);return t===this?this:t instanceof Wt?t.length?Array.isArray(t[0])?new Wt(t.context,t[0]):t[0]:n:t}))};var xe=function(e,i){if(Array.isArray(e))return t.map(e,(function(t){return xe(t,i)}));if("number"==typeof e)return[i[e]];var n=t.map(i,(function(t){return t.nTable}));return t(n).filter(e).map((function(){var e=t.inArray(this,n);return i[e]})).toArray()};Xt("tables()",(function(t){return t!==n&&null!==t?new Wt(xe(t,this.context)):this})),Xt("table()",(function(t){var e=(t=this.tables(t)).context;return e.length?new Wt(e[0]):t})),Yt("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),Yt("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),Yt("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),Yt("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),Yt("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),Xt("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?N(e):("string"==typeof t&&(t="full-hold"!==t),F(e,!1===t))}))})),Xt("page()",(function(t){return t===n?this.page.info().page:this.iterator("table",(function(e){ct(e,t)}))})),Xt("page.info()",(function(){if(0===this.context.length)return n;var t=this.context[0],e=t._iDisplayStart,i=t.oFeatures.bPaginate?t._iDisplayLength:-1,r=t.fnRecordsDisplay(),o=-1===i;return{page:o?0:Math.floor(e/i),pages:o?1:Math.ceil(r/i),start:e,end:t.fnDisplayEnd(),length:i,recordsTotal:t.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===Rt(t)}})),Xt("page.len()",(function(t){return t===n?0!==this.context.length?this.context[0]._iDisplayLength:n:this.iterator("table",(function(e){at(e,t)}))}));var we=function(t,e,i){if(i){var n=new Wt(t);n.one("draw",(function(){i(n.ajax.json())}))}if("ssp"==Rt(t))F(t,e);else{ut(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),B(t,[],(function(i){A(t);for(var n=0,r=(i=Y(t,i)).length;n<r;n++)x(t,i[n]);F(t,e),ut(t,!1)}))}};Xt("ajax.json()",(function(){var t=this.context;if(t.length>0)return t[0].json})),Xt("ajax.params()",(function(){var t=this.context;if(t.length>0)return t[0].oAjaxData})),Xt("ajax.reload()",(function(t,e){return this.iterator("table",(function(i){we(i,!1===e,t)}))})),Xt("ajax.url()",(function(e){var i=this.context;return e===n?0===i.length?n:(i=i[0]).ajax?t.isPlainObject(i.ajax)?i.ajax.url:i.ajax:i.sAjaxSource:this.iterator("table",(function(i){t.isPlainObject(i.ajax)?i.ajax.url=e:i.ajax=e}))})),Xt("ajax.url().load()",(function(t,e){return this.iterator("table",(function(i){we(i,!1===e,t)}))}));var _e=function(t,e,i,r,o){var a,s,l,c,h,u,d=[];for(l=typeof e,e&&"string"!==l&&"function"!==l&&e.length!==n||(e=[e]),l=0,c=e.length;l<c;l++)for(h=0,u=(s=e[l]&&e[l].split&&!e[l].match(/[\[\(:]/)?e[l].split(","):[e[l]]).length;h<u;h++)(a=i("string"==typeof s[h]?s[h].trim():s[h]))&&a.length&&(d=d.concat(a));if((t=Ht.selector[t]).length)for(l=0,c=t.length;l<c;l++)d=t[l](r,o,d);return le(d)},Se=function(e){return e||(e={}),e.filter&&e.search===n&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},Pe=function(t){for(var e=0,i=t.length;e<i;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},ke=function(e,i){var n,r,o,a=[],s=e.aiDisplay;o=e.aiDisplayMaster;var l=i.search;if(n=i.order,r=i.page,"ssp"==Rt(e))return"removed"===l?[]:ae(0,o.length);if("current"==r)for(n=e._iDisplayStart,r=e.fnDisplayEnd();n<r;n++)a.push(s[n]);else if("current"==n||"applied"==n){if("none"==l)a=o.slice();else if("applied"==l)a=s.slice();else if("removed"==l){var c={};for(n=0,r=s.length;n<r;n++)c[s[n]]=null;a=t.map(o,(function(t){return c.hasOwnProperty(t)?null:t}))}}else if("index"==n||"original"==n)for(n=0,r=e.aoData.length;n<r;n++)("none"==l||-1===(o=t.inArray(n,s))&&"removed"==l||o>=0&&"applied"==l)&&a.push(n);return a};Xt("rows()",(function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e="");i=Se(i);var r=this.iterator("table",(function(r){var o,a=i;return _e("row",e,(function(e){var i=te(e),s=r.aoData;if(null!==i&&!a)return[i];if(o||(o=ke(r,a)),null!==i&&-1!==t.inArray(i,o))return[i];if(null===e||e===n||""===e)return o;if("function"==typeof e)return t.map(o,(function(t){var i=s[t];return e(t,i._aData,i.nTr)?t:null}));if(e.nodeName){i=e._DT_RowIndex;var l=e._DT_CellIndex;return i!==n?s[i]&&s[i].nTr===e?[i]:[]:l?s[l.row]&&s[l.row].nTr===e.parentNode?[l.row]:[]:(i=t(e).closest("*[data-dt-row]")).length?[i.data("dt-row")]:[]}return"string"==typeof e&&"#"===e.charAt(0)&&(i=r.aIds[e.replace(/^#/,"")])!==n?[i.idx]:(i=se(oe(r.aoData,o,"nTr")),t(i).filter(e).map((function(){return this._DT_RowIndex})).toArray())}),r,a)}),1);return r.selector.rows=e,r.selector.opts=i,r})),Xt("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||n}),1)})),Xt("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return oe(t.aoData,e,"_aData")}),1)})),Yt("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,i){var n=e.aoData[i];return"search"===t?n._aFilterData:n._aSortData}),1)})),Yt("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,i){M(e,i,t)}))})),Yt("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),Yt("rows().ids()","row().id()",(function(t){for(var e=[],i=this.context,n=0,r=i.length;n<r;n++)for(var o=0,a=this[n].length;o<a;o++){var s=i[n].rowIdFn(i[n].aoData[this[n][o]]._aData);e.push((!0===t?"#":"")+s)}return new Wt(i,e)})),Yt("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,i,r){var o,a,s,l,c,h=e.aoData,u=h[i];for(h.splice(i,1),o=0,a=h.length;o<a;o++)if(c=(s=h[o]).anCells,null!==s.nTr&&(s.nTr._DT_RowIndex=o),null!==c)for(s=0,l=c.length;s<l;s++)c[s]._DT_CellIndex.row=o;O(e.aiDisplayMaster,i),O(e.aiDisplay,i),O(t[r],i,!1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,Nt(e),(i=e.rowIdFn(u._aData))!==n&&delete e.aIds[i]})),this.iterator("table",(function(t){for(var e=0,i=t.aoData.length;e<i;e++)t.aoData[e].idx=e})),this})),Xt("rows.add()",(function(e){var i=this.iterator("table",(function(t){var i,n,r,o=[];for(n=0,r=e.length;n<r;n++)(i=e[n]).nodeName&&"TR"===i.nodeName.toUpperCase()?o.push(w(t,i)[0]):o.push(x(t,i));return o}),1),n=this.rows(-1);return n.pop(),t.merge(n,i),n})),Xt("row()",(function(t,e){return Pe(this.rows(t,e))})),Xt("row().data()",(function(t){var e=this.context;if(t===n)return e.length&&this.length?e[0].aoData[this[0]]._aData:n;var i=e[0].aoData[this[0]];return i._aData=t,Array.isArray(t)&&i.nTr&&i.nTr.id&&C(e[0].rowId)(t,i.nTr.id),M(e[0],this[0],"data"),this})),Xt("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),Xt("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var i=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?w(t,e)[0]:x(t,e)}));return this.row(i[0])}));var Ce=function(t,e){var i=t.context;i.length&&(i=i[0].aoData[e!==n?e:t[0]])&&i._details&&(i._details.remove(),i._detailsShow=n,i._details=n)},Te=function(t,e){var i=t.context;if(i.length&&t.length){var n=i[0].aoData[t[0]];if(n._details){(n._detailsShow=e)?n._details.insertAfter(n.nTr):n._details.detach();var r=i[0],o=new Wt(r),a=r.aoData;o.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),re(a,"_details").length>0&&(o.on("draw.dt.DT_details",(function(t,e){r===e&&o.rows({page:"current"}).eq(0).each((function(t){(t=a[t])._detailsShow&&t._details.insertAfter(t.nTr)}))})),o.on("column-visibility.dt.DT_details",(function(t,e){if(r===e)for(var i,n=m(e),o=0,s=a.length;o<s;o++)(i=a[o])._details&&i._details.children("td[colspan]").attr("colspan",n)})),o.on("destroy.dt.DT_details",(function(t,e){if(r===e)for(var i=0,n=a.length;i<n;i++)a[i]._details&&Ce(o,i)})))}}};Xt("row().child()",(function(e,i){var r=this.context;if(e===n)return r.length&&this.length?r[0].aoData[this[0]]._details:n;if(!0===e)this.child.show();else if(!1===e)Ce(this);else if(r.length&&this.length){var o=r[0],a=(r=r[0].aoData[this[0]],[]),s=function(e,i){if(Array.isArray(e)||e instanceof t)for(var n=0,r=e.length;n<r;n++)s(e[n],i);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?a.push(e):(n=t("<tr><td></td></tr>").addClass(i),t("td",n).addClass(i).html(e)[0].colSpan=m(o),a.push(n[0]))};s(e,i),r._details&&r._details.detach(),r._details=t(a),r._detailsShow&&r._details.insertAfter(r.nTr)}return this})),Xt(["row().child.show()","row().child().show()"],(function(){return Te(this,!0),this})),Xt(["row().child.hide()","row().child().hide()"],(function(){return Te(this,!1),this})),Xt(["row().child.remove()","row().child().remove()"],(function(){return Ce(this),this})),Xt("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Ae=/^([^:]+):(name|visIdx|visible)$/,Oe=function(t,e,i,n,r){i=[],n=0;for(var o=r.length;n<o;n++)i.push(_(t,r[n],e));return i};Xt("columns()",(function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e="");i=Se(i);var r=this.iterator("table",(function(n){var r=e,o=i,a=n.aoColumns,s=re(a,"sName"),l=re(a,"nTh");return _e("column",r,(function(e){var i=te(e);if(""===e)return ae(a.length);if(null!==i)return[i>=0?i:a.length+i];if("function"==typeof e){var r=ke(n,o);return t.map(a,(function(t,i){return e(i,Oe(n,i,0,0,r),l[i])?i:null}))}var c="string"==typeof e?e.match(Ae):"";if(c)switch(c[2]){case"visIdx":case"visible":if((i=parseInt(c[1],10))<0){var h=t.map(a,(function(t,e){return t.bVisible?e:null}));return[h[h.length+i]]}return[f(n,i)];case"name":return t.map(s,(function(t,e){return t===c[1]?e:null}));default:return[]}return e.nodeName&&e._DT_CellIndex?[e._DT_CellIndex.column]:(i=t(l).filter(e).map((function(){return t.inArray(this,l)})).toArray()).length||!e.nodeName?i:(i=t(e).closest("*[data-dt-column]")).length?[i.data("dt-column")]:[]}),n,o)}),1);return r.selector.cols=e,r.selector.opts=i,r})),Yt("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Yt("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Yt("columns().data()","column().data()",(function(){return this.iterator("column-rows",Oe,1)})),Yt("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Yt("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,i,n,r,o){return oe(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",i)}),1)})),Yt("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,i,n,r){return oe(t.aoData,r,"anCells",e)}),1)})),Yt("columns().visible()","column().visible()",(function(e,i){var r=this,o=this.iterator("column",(function(i,r){if(e===n)return i.aoColumns[r].bVisible;var o,a,s,l=i.aoColumns,c=l[r],h=i.aoData;if(e!==n&&c.bVisible!==e){if(e){var u=t.inArray(!0,re(l,"bVisible"),r+1);for(o=0,a=h.length;o<a;o++)s=h[o].nTr,l=h[o].anCells,s&&s.insertBefore(l[r],l[u]||null)}else t(re(i.aoData,"anCells",r)).detach();c.bVisible=e}}));return e!==n&&this.iterator("table",(function(o){j(o,o.aoHeader),j(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",m(o)),Tt(o),r.iterator("column",(function(t,n){jt(t,null,"column-visibility",[t,n,e,i])})),(i===n||i)&&r.columns.adjust()})),o})),Yt("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,i){return"visible"===t?g(e,i):i}),1)})),Xt("columns.adjust()",(function(){return this.iterator("table",(function(t){p(t)}),1)})),Xt("column.index()",(function(t,e){if(0!==this.context.length){var i=this.context[0];if("fromVisible"===t||"toData"===t)return f(i,e);if("fromData"===t||"toVisible"===t)return g(i,e)}})),Xt("column()",(function(t,e){return Pe(this.columns(t,e))})),Xt("cells()",(function(e,i,r){if(t.isPlainObject(e)&&(e.row===n?(r=e,e=null):(r=i,i=null)),t.isPlainObject(i)&&(r=i,i=null),null===i||i===n)return this.iterator("table",(function(i){var o,a,s,l,c,h,u,d=e,p=Se(r),f=i.aoData,g=ke(i,p),m=se(oe(f,g,"anCells")),y=t(ce([],m)),v=i.aoColumns.length;return _e("cell",d,(function(e){var r="function"==typeof e;if(null===e||e===n||r){for(a=[],s=0,l=g.length;s<l;s++)for(o=g[s],c=0;c<v;c++)h={row:o,column:c},r?(u=f[o],e(h,_(i,o,c),u.anCells?u.anCells[c]:null)&&a.push(h)):a.push(h);return a}return t.isPlainObject(e)?e.column!==n&&e.row!==n&&-1!==t.inArray(e.row,g)?[e]:[]:(r=y.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray()).length||!e.nodeName?r:(u=t(e).closest("*[data-dt-row]")).length?[{row:u.data("dt-row"),column:u.data("dt-column")}]:[]}),i,p)}));var o,a,s,l,c=r?{page:r.page,order:r.order,search:r.search}:{},h=this.columns(i,c),u=this.rows(e,c);c=this.iterator("table",(function(t,e){var i=[];for(o=0,a=u[e].length;o<a;o++)for(s=0,l=h[e].length;s<l;s++)i.push({row:u[e][o],column:h[e][s]});return i}),1),c=r&&r.selected?this.cells(c,r):c;return t.extend(c.selector,{cols:i,rows:e,opts:r}),c})),Yt("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,i){return(t=t.aoData[e])&&t.anCells?t.anCells[i]:n}),1)})),Xt("cells().data()",(function(){return this.iterator("cell",(function(t,e,i){return _(t,e,i)}),1)})),Yt("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,i,n){return e.aoData[i][t][n]}),1)})),Yt("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,i,n){return _(e,i,n,t)}),1)})),Yt("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,i){return{row:e,column:i,columnVisible:g(t,i)}}),1)})),Yt("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,i,n){M(e,i,t,n)}))})),Xt("cell()",(function(t,e,i){return Pe(this.cells(t,e,i))})),Xt("cell().data()",(function(t){var e=this.context,i=this[0];return t===n?e.length&&i.length?_(e[0],i[0].row,i[0].column):n:(S(e[0],i[0].row,i[0].column,t),M(e[0],i[0].row,"data",i[0].column),this)})),Xt("order()",(function(t,e){var i=this.context;return t===n?0!==i.length?i[0].aaSorting:n:("number"==typeof t?t=[[t,e]]:t.length&&!Array.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",(function(e){e.aaSorting=t.slice()})))})),Xt("order.listener()",(function(t,e,i){return this.iterator("table",(function(n){Pt(n,t,e,i)}))})),Xt("order.fixed()",(function(e){if(!e){var i=(i=this.context).length?i[0].aaSortingFixed:n;return Array.isArray(i)?{pre:i}:i}return this.iterator("table",(function(i){i.aaSortingFixed=t.extend(!0,{},e)}))})),Xt(["columns().order()","column().order()"],(function(e){var i=this;return this.iterator("table",(function(n,r){var o=[];t.each(i[r],(function(t,i){o.push([i,e])})),n.aaSorting=o}))})),Xt("search()",(function(e,i,r,o){var a=this.context;return e===n?0!==a.length?a[0].oPreviousSearch.sSearch:n:this.iterator("table",(function(n){n.oFeatures.bFilter&&U(n,t.extend({},n.oPreviousSearch,{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)}))})),Yt("columns().search()","column().search()",(function(e,i,r,o){return this.iterator("column",(function(a,s){var l=a.aoPreSearchCols;if(e===n)return l[s].sSearch;a.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===r||r,bCaseInsensitive:null===o||o}),U(a,a.oPreviousSearch,1))}))})),Xt("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),Xt("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),Xt("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),Xt("state.save()",(function(){return this.iterator("table",(function(t){Tt(t)}))})),Gt.versionCheck=Gt.fnVersionCheck=function(t){for(var e,i,n=Gt.version.split("."),r=0,o=(t=t.split(".")).length;r<o;r++)if((e=parseInt(n[r],10)||0)!==(i=parseInt(t[r],10)||0))return e>i;return!0},Gt.isDataTable=Gt.fnIsDataTable=function(e){var i=t(e).get(0),n=!1;return e instanceof Gt.Api||(t.each(Gt.settings,(function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,a=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==i&&o!==i&&a!==i||(n=!0)})),n)},Gt.tables=Gt.fnTables=function(e){var i=!1;t.isPlainObject(e)&&(i=e.api,e=e.visible);var n=t.map(Gt.settings,(function(i){if(!e||e&&t(i.nTable).is(":visible"))return i.nTable}));return i?new Wt(n):n},Gt.camelToHungarian=o,Xt("$()",(function(e,i){var n=this.rows(i).nodes();n=t(n);return t([].concat(n.filter(e).toArray(),n.find(e).toArray()))})),t.each(["on","one","off"],(function(e,i){Xt(i+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var n=t(this.tables().nodes());return n[i].apply(n,e),this}))})),Xt("clear()",(function(){return this.iterator("table",(function(t){A(t)}))})),Xt("settings()",(function(){return new Wt(this.context,this.context)})),Xt("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),Xt("data()",(function(){return this.iterator("table",(function(t){return re(t.aoData,"_aData")})).flatten()})),Xt("destroy()",(function(i){return i=i||!1,this.iterator("table",(function(n){var r,o=n.nTableWrapper.parentNode,a=n.oClasses,s=n.nTable,l=n.nTBody,c=n.nTHead,h=n.nTFoot,u=t(s),d=(l=t(l),t(n.nTableWrapper)),p=t.map(n.aoData,(function(t){return t.nTr}));n.bDestroying=!0,jt(n,"aoDestroyCallback","destroy",[n]),i||new Wt(n).columns().visible(!0),d.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+n.sInstance),s!=c.parentNode&&(u.children("thead").detach(),u.append(c)),h&&s!=h.parentNode&&(u.children("tfoot").detach(),u.append(h)),n.aaSorting=[],n.aaSortingFixed=[],kt(n),t(p).removeClass(n.asStripeClasses.join(" ")),t("th, td",c).removeClass(a.sSortable+" "+a.sSortableAsc+" "+a.sSortableDesc+" "+a.sSortableNone),l.children().detach(),l.append(p),u[c=i?"remove":"detach"](),d[c](),!i&&o&&(o.insertBefore(s,n.nTableReinsertBefore),u.css("width",n.sDestroyWidth).removeClass(a.sTable),(r=n.asDestroyStripes.length)&&l.children().each((function(e){t(this).addClass(n.asDestroyStripes[e%r])}))),-1!==(o=t.inArray(n,Gt.settings))&&Gt.settings.splice(o,1)}))})),t.each(["column","row","cell"],(function(t,e){Xt(e+"s().every()",(function(t){var i=this.selector.opts,r=this;return this.iterator(e,(function(o,a,s,l,c){t.call(r[e](a,"cell"===e?s:i,"cell"===e?i:n),a,s,l,c)}))}))})),Xt("i18n()",(function(e,i,r){var o=this.context[0];return(e=k(e)(o.oLanguage))===n&&(e=i),r!==n&&t.isPlainObject(e)&&(e=e[r]!==n?e[r]:e._),e.replace("%d",r)})),Gt.version="1.10.25",Gt.settings=[],Gt.models={},Gt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Gt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Gt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Gt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},Gt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(Gt.defaults),Gt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(Gt.defaults.column),Gt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json:n,oAjaxData:n,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Rt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Rt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,i=e+t,n=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+n:Math.min(e+t,this._iRecordsDisplay):!o||i>n||-1===t?n:i},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Gt.ext=Ht={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Gt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Gt.version},t.extend(Ht,{afnFiltering:Ht.search,aTypes:Ht.type.detect,ofnSearch:Ht.type.search,oSort:Ht.type.order,afnSortData:Ht.order,aoFeatures:Ht.feature,oApi:Ht.internal,oStdClasses:Ht.classes,oPagination:Ht.pager}),t.extend(Gt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Me=Gt.ext.pager;t.extend(Me,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[Vt(t,e)]},simple_numbers:function(t,e){return["previous",Vt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Vt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Vt(t,e),"last"]},_numbers:Vt,numbers_length:7}),t.extend(!0,Gt.ext.renderer,{pageButton:{_:function(e,r,o,a,s,l){var c,h,u,d=e.oClasses,p=e.oLanguage.oPaginate,f=e.oLanguage.oAria.paginate||{},g=0,m=function(i,n){var r,a,u,y,v=d.sPageButtonDisabled,b=function(t){ct(e,t.data.action,!0)};for(r=0,a=n.length;r<a;r++)if(y=n[r],Array.isArray(y))u=t("<"+(y.DT_el||"div")+"/>").appendTo(i),m(u,y);else{switch(c=null,h=y,u=e.iTabIndex,y){case"ellipsis":i.append('<span class="ellipsis">…</span>');break;case"first":c=p.sFirst,0===s&&(u=-1,h=h+" "+v);break;case"previous":c=p.sPrevious,0===s&&(u=-1,h=h+" "+v);break;case"next":c=p.sNext,0!==l&&s!==l-1||(u=-1,h=h+" "+v);break;case"last":c=p.sLast,0!==l&&s!==l-1||(u=-1,h=h+" "+v);break;default:c=e.fnFormatNumber(y+1),h=s===y?d.sPageButtonActive:""}null!==c&&(Dt(u=t("<a>",{class:d.sPageButton+" "+h,"aria-controls":e.sTableId,"aria-label":f[y],"data-dt-idx":g,tabindex:u,id:0===o&&"string"==typeof y?e.sTableId+"_"+y:null}).html(c).appendTo(i),{action:y},b),g++)}};try{u=t(r).find(i.activeElement).data("dt-idx")}catch(t){}m(t(r).empty(),a),u!==n&&t(r).find("[data-dt-idx="+u+"]").trigger("focus")}}}),t.extend(Gt.ext.type.detect,[function(t,e){var i=e.oLanguage.sDecimal;return ie(t,i)?"num"+i:null},function(t){if(t&&!(t instanceof Date)&&!Kt.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||Qt(t)?"date":null},function(t,e){var i=e.oLanguage.sDecimal;return ie(t,i,!0)?"num-fmt"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return ne(t,i)?"html-num"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return ne(t,i,!0)?"html-num-fmt"+i:null},function(t){return Qt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(Gt.ext.type.search,{html:function(t){return Qt(t)?t:"string"==typeof t?t.replace(qt," ").replace($t,""):""},string:function(t){return Qt(t)?t:"string"==typeof t?t.replace(qt," "):t}});var Ee=function(t,e,i,n){return 0===t||t&&"-"!==t?(e&&(t=ee(t,e)),t.replace&&(i&&(t=t.replace(i,"")),n&&(t=t.replace(n,""))),1*t):-1/0};t.extend(Ht.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return Qt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Qt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),zt(""),t.extend(!0,Gt.ext.renderer,{header:{_:function(e,i,n,r){t(e.nTable).on("order.dt.DT",(function(t,o,a,s){e===o&&(t=n.idx,i.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:n.sSortingClass))}))},jqueryui:function(e,i,n,r){t("<div/>").addClass(r.sSortJUIWrapper).append(i.contents()).append(t("<span/>").addClass(r.sSortIcon+" "+n.sSortingClassJUI)).appendTo(i),t(e.nTable).on("order.dt.DT",(function(t,o,a,s){e===o&&(t=n.idx,i.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:n.sSortingClass),i.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[t]?r.sSortJUIAsc:"desc"==s[t]?r.sSortJUIDesc:n.sSortingClassJUI))}))}}});var Ie=function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t};return Gt.render={number:function(t,e,i,n,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var a=o<0?"-":"",s=parseFloat(o);return isNaN(s)?Ie(o):(s=s.toFixed(i),o=Math.abs(s),s=parseInt(o,10),o=i?e+(o-s).toFixed(i).substring(2):"",0===s&&0===parseFloat(o)&&(a=""),a+(n||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+o+(r||""))}}},text:function(){return{display:Ie,filter:Ie}}},t.extend(Gt.ext.internal,{_fnExternApiFunc:Bt,_fnBuildAjax:B,_fnAjaxUpdate:H,_fnAjaxParameters:W,_fnAjaxUpdateDraw:X,_fnAjaxDataSrc:Y,_fnAddColumn:u,_fnColumnOptions:d,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:y,_fnColumnTypes:v,_fnApplyColumnDefs:b,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:a,_fnBrowserDetect:c,_fnAddData:x,_fnAddTr:w,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==n?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,i,n){return t.inArray(n,e.aoData[i].anCells)},_fnGetCellData:_,_fnSetCellData:S,_fnSplitObjNotation:P,_fnGetObjectDataFn:k,_fnSetObjectDataFn:C,_fnGetDataMaster:T,_fnClearTable:A,_fnDeleteIndex:O,_fnInvalidate:M,_fnGetRowElements:E,_fnCreateTr:I,_fnBuildHead:L,_fnDrawHead:j,_fnDraw:N,_fnReDraw:F,_fnAddOptionsHtml:R,_fnDetectHeader:V,_fnGetUniqueThs:z,_fnFeatureHtmlFilter:G,_fnFilterComplete:U,_fnFilterCustom:q,_fnFilterColumn:$,_fnFilter:K,_fnFilterCreateSearch:Z,_fnEscapeRegex:pe,_fnFilterData:J,_fnFeatureHtmlInfo:et,_fnUpdateInfo:it,_fnInfoMacros:nt,_fnInitialise:rt,_fnInitComplete:ot,_fnLengthChange:at,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ct,_fnFeatureHtmlProcessing:ht,_fnProcessingDisplay:ut,_fnFeatureHtmlTable:dt,_fnScrollDraw:pt,_fnApplyToChildren:ft,_fnCalculateColumnWidths:gt,_fnThrottle:ye,_fnConvertToWidth:mt,_fnGetWidestNode:yt,_fnGetMaxLenString:vt,_fnStringToCss:bt,_fnSortFlatten:xt,_fnSort:wt,_fnSortAria:_t,_fnSortListener:St,_fnSortAttachListener:Pt,_fnSortingClasses:kt,_fnSortData:Ct,_fnSaveState:Tt,_fnLoadState:At,_fnSettingsFromNode:Ot,_fnLog:Mt,_fnMap:Et,_fnBindAction:Dt,_fnCallbackReg:Lt,_fnCallbackFire:jt,_fnLengthOverflow:Nt,_fnRenderer:Ft,_fnDataSource:Rt,_fnRowAttributes:D,_fnExtend:It,_fnCalculateEnd:function(){}}),t.fn.dataTable=Gt,Gt.$=t,t.fn.dataTableSettings=Gt.settings,t.fn.dataTableExt=Gt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Gt,(function(e,i){t.fn.DataTable[e]=i})),t.fn.dataTable})),
|
||
/*!
|
||
DataTables Bootstrap 4 integration
|
||
©2011-2017 SpryMedia Ltd - datatables.net/license
|
||
*/
|
||
function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,i){return e||(e=window),i&&i.fn.dataTable||(i=require("datatables.net")(e,i).$),t(i,e,e.document)}:t(jQuery,window,document)}((function(t,e,i,n){var r=t.fn.dataTable;return t.extend(!0,r.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),t.extend(r.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),r.ext.renderer.pageButton.bootstrap=function(e,o,a,s,l,c){var h,u,d,p=new r.Api(e),f=e.oClasses,g=e.oLanguage.oPaginate,m=e.oLanguage.oAria.paginate||{},y=0,v=function(i,n){var r,o,s,d,b=function(e){e.preventDefault(),!t(e.currentTarget).hasClass("disabled")&&p.page()!=e.data.action&&p.page(e.data.action).draw("page")};for(r=0,o=n.length;r<o;r++)if(d=n[r],Array.isArray(d))v(i,d);else{switch(u=h="",d){case"ellipsis":h="…",u="disabled";break;case"first":h=g.sFirst,u=d+(0<l?"":" disabled");break;case"previous":h=g.sPrevious,u=d+(0<l?"":" disabled");break;case"next":h=g.sNext,u=d+(l<c-1?"":" disabled");break;case"last":h=g.sLast,u=d+(l<c-1?"":" disabled");break;default:h=d+1,u=l===d?"active":""}h&&(s=t("<li>",{class:f.sPageButton+" "+u,id:0===a&&"string"==typeof d?e.sTableId+"_"+d:null}).append(t("<a>",{href:"#","aria-controls":e.sTableId,"aria-label":m[d],"data-dt-idx":y,tabindex:e.iTabIndex,class:"page-link"}).html(h)).appendTo(i),e.oApi._fnBindAction(s,{action:d},b),y++)}};try{d=t(o).find(i.activeElement).data("dt-idx")}catch(t){}v(t(o).empty().html('<ul class="pagination"/>').children("ul"),s),d!==n&&t(o).find("[data-dt-idx="+d+"]").trigger("focus")},r})),function(t){"use strict";function e(e){return e.is('[type="checkbox"]')?e.prop("checked"):e.is('[type="radio"]')?!!t('[name="'+e.attr("name")+'"]:checked').length:e.is("select[multiple]")?(e.val()||[]).length:e.val()}function i(e){return this.each((function(){var i=t(this),r=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),o=i.data("bs.validator");(o||"destroy"!=e)&&(o||i.data("bs.validator",o=new n(this,r)),"string"==typeof e&&o[e]())}))}var n=function(i,r){this.options=r,this.validators=t.extend({},n.VALIDATORS,r.custom),this.$element=t(i),this.$btn=t('button[type="submit"], input[type="submit"]').filter('[form="'+this.$element.attr("id")+'"]').add(this.$element.find('input[type="submit"], button[type="submit"]')),this.update(),this.$element.on("input.bs.validator change.bs.validator focusout.bs.validator",t.proxy(this.onInput,this)),this.$element.on("submit.bs.validator",t.proxy(this.onSubmit,this)),this.$element.on("reset.bs.validator",t.proxy(this.reset,this)),this.$element.find("[data-match]").each((function(){var i=t(this),n=i.attr("data-match");t(n).on("input.bs.validator",(function(){e(i)&&i.trigger("input.bs.validator")}))})),this.$inputs.filter((function(){return e(t(this))&&!t(this).closest(".has-error").length})).trigger("focusout"),this.$element.attr("novalidate",!0)};n.VERSION="0.11.9",n.INPUT_SELECTOR=':input:not([type="hidden"], [type="submit"], [type="reset"], button)',n.FOCUS_OFFSET=20,n.DEFAULTS={delay:500,html:!1,disable:!0,focus:!0,custom:{},errors:{match:"Does not match",minlength:"Not long enough"},feedback:{success:"glyphicon-ok",error:"glyphicon-remove"}},n.VALIDATORS={native:function(t){var e=t[0];return e.checkValidity?!e.checkValidity()&&!e.validity.valid&&(e.validationMessage||"error!"):void 0},match:function(e){var i=e.attr("data-match");return e.val()!==t(i).val()&&n.DEFAULTS.errors.match},minlength:function(t){var e=t.attr("data-minlength");return t.val().length<e&&n.DEFAULTS.errors.minlength}},n.prototype.update=function(){var e=this;return this.$inputs=this.$element.find(n.INPUT_SELECTOR).add(this.$element.find('[data-validate="true"]')).not(this.$element.find('[data-validate="false"]').each((function(){e.clearErrors(t(this))}))),this.toggleSubmit(),this},n.prototype.onInput=function(e){var i=this,n=t(e.target),r="focusout"!==e.type;this.$inputs.is(n)&&this.validateInput(n,r).done((function(){i.toggleSubmit()}))},n.prototype.validateInput=function(i,n){var r=(e(i),i.data("bs.validator.errors"));i.is('[type="radio"]')&&(i=this.$element.find('input[name="'+i.attr("name")+'"]'));var o=t.Event("validate.bs.validator",{relatedTarget:i[0]});if(this.$element.trigger(o),!o.isDefaultPrevented()){var a=this;return this.runValidators(i).done((function(e){i.data("bs.validator.errors",e),e.length?n?a.defer(i,a.showErrors):a.showErrors(i):a.clearErrors(i),r&&e.toString()===r.toString()||(o=e.length?t.Event("invalid.bs.validator",{relatedTarget:i[0],detail:e}):t.Event("valid.bs.validator",{relatedTarget:i[0],detail:r}),a.$element.trigger(o)),a.toggleSubmit(),a.$element.trigger(t.Event("validated.bs.validator",{relatedTarget:i[0]}))}))}},n.prototype.runValidators=function(i){function n(t){return function(t){return i.attr("data-"+t+"-error")}(t)||function(){var t=i[0].validity;return t.typeMismatch?i.attr("data-type-error"):t.patternMismatch?i.attr("data-pattern-error"):t.stepMismatch?i.attr("data-step-error"):t.rangeOverflow?i.attr("data-max-error"):t.rangeUnderflow?i.attr("data-min-error"):t.valueMissing?i.attr("data-required-error"):null}()||i.attr("data-error")}var r=[],o=t.Deferred();return i.data("bs.validator.deferred")&&i.data("bs.validator.deferred").reject(),i.data("bs.validator.deferred",o),t.each(this.validators,t.proxy((function(t,o){var a=null;!e(i)&&!i.attr("required")||void 0===i.attr("data-"+t)&&"native"!=t||!(a=o.call(this,i))||(a=n(t)||a,!~r.indexOf(a)&&r.push(a))}),this)),!r.length&&e(i)&&i.attr("data-remote")?this.defer(i,(function(){var a={};a[i.attr("name")]=e(i),t.get(i.attr("data-remote"),a).fail((function(t,e,i){r.push(n("remote")||i)})).always((function(){o.resolve(r)}))})):o.resolve(r),o.promise()},n.prototype.validate=function(){var e=this;return t.when(this.$inputs.map((function(){return e.validateInput(t(this),!1)}))).then((function(){e.toggleSubmit(),e.focusError()})),this},n.prototype.focusError=function(){if(this.options.focus){var e=this.$element.find(".has-error:first :input");0!==e.length&&(t("html, body").animate({scrollTop:e.offset().top-n.FOCUS_OFFSET},250),e.focus())}},n.prototype.showErrors=function(e){var i=this.options.html?"html":"text",n=e.data("bs.validator.errors"),r=e.closest(".form-group"),o=r.find(".help-block.with-errors"),a=r.find(".form-control-feedback");n.length&&(n=t("<ul/>").addClass("list-unstyled").append(t.map(n,(function(e){return t("<li/>")[i](e)}))),void 0===o.data("bs.validator.originalContent")&&o.data("bs.validator.originalContent",o.html()),o.empty().append(n),r.addClass("has-error has-danger"),r.hasClass("has-feedback")&&a.removeClass(this.options.feedback.success)&&a.addClass(this.options.feedback.error)&&r.removeClass("has-success"))},n.prototype.clearErrors=function(t){var i=t.closest(".form-group"),n=i.find(".help-block.with-errors"),r=i.find(".form-control-feedback");n.html(n.data("bs.validator.originalContent")),i.removeClass("has-error has-danger has-success"),i.hasClass("has-feedback")&&r.removeClass(this.options.feedback.error)&&r.removeClass(this.options.feedback.success)&&e(t)&&r.addClass(this.options.feedback.success)&&i.addClass("has-success")},n.prototype.hasErrors=function(){return!!this.$inputs.filter((function(){return!!(t(this).data("bs.validator.errors")||[]).length})).length},n.prototype.isIncomplete=function(){return!!this.$inputs.filter("[required]").filter((function(){var i=e(t(this));return!("string"==typeof i?t.trim(i):i)})).length},n.prototype.onSubmit=function(t){this.validate(),(this.isIncomplete()||this.hasErrors())&&t.preventDefault()},n.prototype.toggleSubmit=function(){this.options.disable&&this.$btn.toggleClass("disabled",this.isIncomplete()||this.hasErrors())},n.prototype.defer=function(e,i){return i=t.proxy(i,this,e),this.options.delay?(window.clearTimeout(e.data("bs.validator.timeout")),void e.data("bs.validator.timeout",window.setTimeout(i,this.options.delay))):i()},n.prototype.reset=function(){return this.$element.find(".form-control-feedback").removeClass(this.options.feedback.error).removeClass(this.options.feedback.success),this.$inputs.removeData(["bs.validator.errors","bs.validator.deferred"]).each((function(){var e=t(this),i=e.data("bs.validator.timeout");window.clearTimeout(i)&&e.removeData("bs.validator.timeout")})),this.$element.find(".help-block.with-errors").each((function(){var e=t(this),i=e.data("bs.validator.originalContent");e.removeData("bs.validator.originalContent").html(i)})),this.$btn.removeClass("disabled"),this.$element.find(".has-error, .has-danger, .has-success").removeClass("has-error has-danger has-success"),this},n.prototype.destroy=function(){return this.reset(),this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator"),this.$inputs.off(".bs.validator"),this.options=null,this.validators=null,this.$element=null,this.$btn=null,this.$inputs=null,this};var r=t.fn.validator;t.fn.validator=i,t.fn.validator.Constructor=n,t.fn.validator.noConflict=function(){return t.fn.validator=r,this},t(window).on("load",(function(){t('form[data-toggle="validator"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(jQuery),function(t,e){void 0===t&&void 0!==window&&(t=window),"function"==typeof define&&define.amd?define(["jquery"],(function(t){return e(t)})):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,(function(t){!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,r=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function o(e,o){var a=e.nodeName.toLowerCase();if(-1!==t.inArray(a,o))return-1===t.inArray(a,i)||Boolean(e.nodeValue.match(n)||e.nodeValue.match(r));for(var s=t(o).filter((function(t,e){return e instanceof RegExp})),l=0,c=s.length;l<c;l++)if(a.match(s[l]))return!0;return!1}function a(t,e,i){if(i&&"function"==typeof i)return i(t);for(var n=Object.keys(e),r=0,a=t.length;r<a;r++)for(var s=t[r].querySelectorAll("*"),l=0,c=s.length;l<c;l++){var h=s[l],u=h.nodeName.toLowerCase();if(-1!==n.indexOf(u))for(var d=[].slice.call(h.attributes),p=[].concat(e["*"]||[],e[u]||[]),f=0,g=d.length;f<g;f++){var m=d[f];o(m,p)||h.removeAttribute(m.nodeName)}else h.parentNode.removeChild(h)}}"classList"in document.createElement("_")||function(e){if("Element"in e){var i="classList",n="prototype",r=e.Element[n],o=Object,a=function(){var e=t(this);return{add:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.addClass(t)},remove:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.removeClass(t)},toggle:function(t,i){return e.toggleClass(t,i)},contains:function(t){return e.hasClass(t)}}};if(o.defineProperty){var s={get:a,enumerable:!0,configurable:!0};try{o.defineProperty(r,i,s)}catch(e){void 0!==e.number&&-2146823252!==e.number||(s.enumerable=!1,o.defineProperty(r,i,s))}}else o[n].__defineGetter__&&r.__defineGetter__(i,a)}}(window);var s,l,c=document.createElement("_");if(c.classList.add("c1","c2"),!c.classList.contains("c2")){var h=DOMTokenList.prototype.add,u=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,h.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,u.bind(this))}}if(c.classList.toggle("c3",!1),c.classList.contains("c3")){var d=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:d.call(this,t)}}function p(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==l.call(t))throw new TypeError;var i=e.length,n=String(t),r=n.length,o=1<arguments.length?arguments[1]:void 0,a=o?Number(o):0;a!=a&&(a=0);var s=Math.min(Math.max(a,0),i);if(i<r+s)return!1;for(var c=-1;++c<r;)if(e.charCodeAt(s+c)!=n.charCodeAt(c))return!1;return!0}function f(t,e){var i,n=t.selectedOptions,r=[];if(e){for(var o=0,a=n.length;o<a;o++)(i=n[o]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||r.push(i);return r}return n}function g(t,e){for(var i,n=[],r=e||t.selectedOptions,o=0,a=r.length;o<a;o++)(i=r[o]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||n.push(i.value);return t.multiple?n:n.length?n[0]:null}c=null,String.prototype.startsWith||(s=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),l={}.toString,s?s(String.prototype,"startsWith",{value:p,configurable:!0,writable:!0}):String.prototype.startsWith=p),Object.keys||(Object.keys=function(t,e,i){for(e in i=[],t)i.hasOwnProperty.call(t,e)&&i.push(e);return i}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var m={useDefault:!1,_set:t.valHooks.select.set};t.valHooks.select.set=function(e,i){return i&&!m.useDefault&&t(e).data("selected",!0),m._set.apply(this,arguments)};var y=null,v=function(){try{return new Event("change"),!0}catch(t){return!1}}();function b(t,e,i,n){for(var r=["display","subtext","tokens"],o=!1,a=0;a<r.length;a++){var s=r[a],l=t[s];if(l&&(l=l.toString(),"display"===s&&(l=l.replace(/<[^>]+>/g,"")),n&&(l=k(l)),l=l.toUpperCase(),o="contains"===i?0<=l.indexOf(e):l.startsWith(e)))break}return o}function x(t){return parseInt(t,10)||0}t.fn.triggerNative=function(t){var e,i=this[0];i.dispatchEvent?(v?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),i.dispatchEvent(e)):i.fireEvent?((e=document.createEventObject()).eventType=t,i.fireEvent("on"+t,e)):this.trigger(t)};var w={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,S=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function P(t){return w[t]}function k(t){return(t=t.toString())&&t.replace(_,P).replace(S,"")}var C,T,A,O,M=(C={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T="(?:"+Object.keys(C).join("|")+")",A=RegExp(T),O=RegExp(T,"g"),function(t){return t=null==t?"":""+t,A.test(t)?t.replace(O,E):t});function E(t){return C[t]}var I={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},D={success:!1,major:"3"};try{D.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),D.major=D.full[0],D.success=!0}catch(t){}var L=0,j=".bs.select",N={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},F={MENU:"."+N.MENU},R={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};R.noResults=R.li.cloneNode(!1),R.noResults.className="no-results",R.a.setAttribute("role","option"),R.a.className="dropdown-item",R.subtext.className="text-muted",R.text=R.span.cloneNode(!1),R.text.className="text",R.checkMark=R.span.cloneNode(!1);var V=new RegExp("38|40"),z=new RegExp("^9$|27"),B={li:function(t,e,i){var n=R.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?n.appendChild(t):n.innerHTML=t),void 0!==e&&""!==e&&(n.className=e),null!=i&&n.classList.add("optgroup-"+i),n},a:function(t,e,i){var n=R.a.cloneNode(!0);return t&&(11===t.nodeType?n.appendChild(t):n.insertAdjacentHTML("beforeend",t)),void 0!==e&&""!==e&&n.classList.add.apply(n.classList,e.split(/\s+/)),i&&n.setAttribute("style",i),n},text:function(t,e){var i,n,r=R.text.cloneNode(!1);if(t.content)r.innerHTML=t.content;else{if(r.textContent=t.text,t.icon){var o=R.whitespace.cloneNode(!1);(n=(!0===e?R.i:R.span).cloneNode(!1)).className=this.options.iconBase+" "+t.icon,R.fragment.appendChild(n),R.fragment.appendChild(o)}t.subtext&&((i=R.subtext.cloneNode(!1)).textContent=t.subtext,r.appendChild(i))}if(!0===e)for(;0<r.childNodes.length;)R.fragment.appendChild(r.childNodes[0]);else R.fragment.appendChild(r);return R.fragment},label:function(t){var e,i,n=R.text.cloneNode(!1);if(n.innerHTML=t.display,t.icon){var r=R.whitespace.cloneNode(!1);(i=R.span.cloneNode(!1)).className=this.options.iconBase+" "+t.icon,R.fragment.appendChild(i),R.fragment.appendChild(r)}return t.subtext&&((e=R.subtext.cloneNode(!1)).textContent=t.subtext,n.appendChild(e)),R.fragment.appendChild(n),R.fragment}},H=function(e,i){var n=this;m.useDefault||(t.valHooks.select.set=m._set,m.useDefault=!0),this.$element=t(e),this.$newElement=null,this.$button=null,this.$menu=null,this.options=i,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){n.selectpicker.keydown.keyHistory=""}),800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var r=this.options.windowPadding;"number"==typeof r&&(this.options.windowPadding=[r,r,r,r]),this.val=H.prototype.val,this.render=H.prototype.render,this.refresh=H.prototype.refresh,this.setStyle=H.prototype.setStyle,this.selectAll=H.prototype.selectAll,this.deselectAll=H.prototype.deselectAll,this.destroy=H.prototype.destroy,this.remove=H.prototype.remove,this.show=H.prototype.show,this.hide=H.prototype.hide,this.init()};function W(i){var n,r=arguments,o=i;if([].shift.apply(r),!D.success){try{D.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(i){H.BootstrapVersion?D.full=H.BootstrapVersion.split(" ")[0].split("."):(D.full=[D.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",i))}D.major=D.full[0],D.success=!0}if("4"===D.major){var a=[];H.DEFAULTS.style===N.BUTTONCLASS&&a.push({name:"style",className:"BUTTONCLASS"}),H.DEFAULTS.iconBase===N.ICONBASE&&a.push({name:"iconBase",className:"ICONBASE"}),H.DEFAULTS.tickIcon===N.TICKICON&&a.push({name:"tickIcon",className:"TICKICON"}),N.DIVIDER="dropdown-divider",N.SHOW="show",N.BUTTONCLASS="btn-light",N.POPOVERHEADER="popover-header",N.ICONBASE="",N.TICKICON="bs-ok-default";for(var s=0;s<a.length;s++)i=a[s],H.DEFAULTS[i.name]=N[i.className]}var l=this.each((function(){var i=t(this);if(i.is("select")){var a=i.data("selectpicker"),s="object"==typeof o&&o;if(a){if(s)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a.options[l]=s[l])}else{var c=i.data();for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&-1!==t.inArray(h,e)&&delete c[h];var u=t.extend({},H.DEFAULTS,t.fn.selectpicker.defaults||{},c,s);u.template=t.extend({},H.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},c.template,s.template),i.data("selectpicker",a=new H(this,u))}"string"==typeof o&&(n=a[o]instanceof Function?a[o].apply(a,r):a.options[o])}}));return void 0!==n?n:l}H.VERSION="1.13.18",H.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:N.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:N.ICONBASE,tickIcon:N.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},H.prototype={constructor:H,init:function(){var t=this,e=this.$element.attr("id"),i=this.$element[0],n=i.form;L++,this.selectId="bs-select-"+L,i.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),i.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),n&&null===i.form&&(n.id||(n.id="form-"+this.selectId),i.setAttribute("form",n.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(F.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),i.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(N.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+j,(function(){if(t.isVirtual()){var e=t.$menuInner[0],i=e.firstChild.cloneNode(!1);e.replaceChild(i,e.firstChild),e.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide"+j,e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden"+j,e)},"show.bs.dropdown":function(e){t.$element.trigger("show"+j,e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown"+j,e)}}),i.hasAttribute("required")&&this.$element.on("invalid"+j,(function(){t.$button[0].classList.add("bs-invalid"),t.$element.on("shown"+j+".invalid",(function(){t.$element.val(t.$element.val()).off("shown"+j+".invalid")})).on("rendered"+j,(function(){this.validity.valid&&t.$button[0].classList.remove("bs-invalid"),t.$element.off("rendered"+j)})),t.$button.on("blur"+j,(function(){t.$element.trigger("focus").trigger("blur"),t.$button.off("blur"+j)}))})),setTimeout((function(){t.buildList(),t.$element.trigger("loaded"+j)}))},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",i=this.multiple?' aria-multiselectable="true"':"",n="",r=this.autofocus?" autofocus":"";D.major<4&&this.$element.parent().hasClass("input-group")&&(n=" input-group-btn");var o,a="",s="",l="",c="";return this.options.header&&(a='<div class="'+N.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>"),this.options.liveSearch&&(s='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+M(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(l='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+N.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+N.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(c='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+N.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),o='<div class="dropdown bootstrap-select'+e+n+'"><button type="button" tabindex="-1" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+r+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===D.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+N.MENU+" "+("4"===D.major?"":N.SHOW)+'">'+a+s+l+'<div class="inner '+N.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+i+'><ul class="'+N.MENU+" inner "+("4"===D.major?N.SHOW:"")+'" role="presentation"></ul></div>'+c+"</div></div>",t(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var t=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],i=!0;"divider"===e.type?(i=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(i=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,e.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=t)),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(e,i,n){var r,o,s=this,l=0,c=[];if(this.selectpicker.isSearching=e,this.selectpicker.current=e?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),i)if(n)l=this.$menuInner[0].scrollTop;else if(!s.multiple){var h=s.$element[0],u=(h.options[h.selectedIndex]||{}).liIndex;if("number"==typeof u&&!1!==s.options.size){var d=s.selectpicker.main.data[u],p=d&&d.position;p&&(l=p-(s.sizeInfo.menuInnerHeight+s.sizeInfo.liHeight)/2)}}function f(t,i){var n,l,h,u,d,p,f,g,m=s.selectpicker.current.elements.length,y=[],v=!0,b=s.isVirtual();s.selectpicker.view.scrollTop=t,n=Math.ceil(s.sizeInfo.menuInnerHeight/s.sizeInfo.liHeight*1.5),l=Math.round(m/n)||1;for(var x=0;x<l;x++){var w=(x+1)*n;if(x===l-1&&(w=m),y[x]=[x*n+(x?1:0),w],!m)break;void 0===d&&t-1<=s.selectpicker.current.data[w-1].position-s.sizeInfo.menuInnerHeight&&(d=x)}if(void 0===d&&(d=0),p=[s.selectpicker.view.position0,s.selectpicker.view.position1],h=Math.max(0,d-1),u=Math.min(l-1,d+1),s.selectpicker.view.position0=!1===b?0:Math.max(0,y[h][0])||0,s.selectpicker.view.position1=!1===b?m:Math.min(m,y[u][1])||0,f=p[0]!==s.selectpicker.view.position0||p[1]!==s.selectpicker.view.position1,void 0!==s.activeIndex&&(o=s.selectpicker.main.elements[s.prevActiveIndex],c=s.selectpicker.main.elements[s.activeIndex],r=s.selectpicker.main.elements[s.selectedIndex],i&&(s.activeIndex!==s.selectedIndex&&s.defocusItem(c),s.activeIndex=void 0),s.activeIndex&&s.activeIndex!==s.selectedIndex&&s.defocusItem(r)),void 0!==s.prevActiveIndex&&s.prevActiveIndex!==s.activeIndex&&s.prevActiveIndex!==s.selectedIndex&&s.defocusItem(o),(i||f)&&(g=s.selectpicker.view.visibleElements?s.selectpicker.view.visibleElements.slice():[],s.selectpicker.view.visibleElements=!1===b?s.selectpicker.current.elements:s.selectpicker.current.elements.slice(s.selectpicker.view.position0,s.selectpicker.view.position1),s.setOptionStatus(),(e||!1===b&&i)&&(v=!function(t,e){return t.length===e.length&&t.every((function(t,i){return t===e[i]}))}(g,s.selectpicker.view.visibleElements)),(i||!0===b)&&v)){var _,S,P=s.$menuInner[0],k=document.createDocumentFragment(),C=P.firstChild.cloneNode(!1),T=s.selectpicker.view.visibleElements,A=[];P.replaceChild(C,P.firstChild),x=0;for(var O=T.length;x<O;x++){var M,E,I=T[x];s.options.sanitize&&(M=I.lastChild)&&(E=s.selectpicker.current.data[x+s.selectpicker.view.position0])&&E.content&&!E.sanitized&&(A.push(M),E.sanitized=!0),k.appendChild(I)}if(s.options.sanitize&&A.length&&a(A,s.options.whiteList,s.options.sanitizeFn),!0===b?(_=0===s.selectpicker.view.position0?0:s.selectpicker.current.data[s.selectpicker.view.position0-1].position,S=s.selectpicker.view.position1>m-1?0:s.selectpicker.current.data[m-1].position-s.selectpicker.current.data[s.selectpicker.view.position1-1].position,P.firstChild.style.marginTop=_+"px",P.firstChild.style.marginBottom=S+"px"):(P.firstChild.style.marginTop=0,P.firstChild.style.marginBottom=0),P.firstChild.appendChild(k),!0===b&&s.sizeInfo.hasScrollBar){var D=P.firstChild.offsetWidth;if(i&&D<s.sizeInfo.menuInnerInnerWidth&&s.sizeInfo.totalMenuWidth>s.sizeInfo.selectWidth)P.firstChild.style.minWidth=s.sizeInfo.menuInnerInnerWidth+"px";else if(D>s.sizeInfo.menuInnerInnerWidth){s.$menu[0].style.minWidth=0;var L=P.firstChild.offsetWidth;L>s.sizeInfo.menuInnerInnerWidth&&(s.sizeInfo.menuInnerInnerWidth=L,P.firstChild.style.minWidth=s.sizeInfo.menuInnerInnerWidth+"px"),s.$menu[0].style.minWidth=""}}}if(s.prevActiveIndex=s.activeIndex,s.options.liveSearch){if(e&&i){var j,N=0;s.selectpicker.view.canHighlight[N]||(N=1+s.selectpicker.view.canHighlight.slice(1).indexOf(!0)),j=s.selectpicker.view.visibleElements[N],s.defocusItem(s.selectpicker.view.currentActive),s.activeIndex=(s.selectpicker.current.data[N]||{}).index,s.focusItem(j)}}else s.$menuInner.trigger("focus")}f(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(t,e){s.noScroll||f(this.scrollTop,e),s.noScroll=!1})),t(window).off("resize"+j+"."+this.selectId+".createView").on("resize"+j+"."+this.selectId+".createView",(function(){s.$newElement.hasClass(N.SHOW)&&f(s.$menuInner[0].scrollTop)}))},focusItem:function(t,e,i){if(t){e=e||this.selectpicker.main.data[this.activeIndex];var n=t.firstChild;n&&(n.setAttribute("aria-setsize",this.selectpicker.view.size),n.setAttribute("aria-posinset",e.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",n.id),t.classList.add("active"),n.classList.add("active")))}},defocusItem:function(t){t&&(t.classList.remove("active"),t.firstChild&&t.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=this,e=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),e=!0;var i=this.$element[0],n=!1,r=!this.selectpicker.view.titleOption.parentNode,o=i.selectedIndex,a=i.options[o],s=window.performance&&window.performance.getEntriesByType("navigation"),l=s&&s.length?"back_forward"!==s[0].type:2!==window.performance.navigation.type;r&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",n=!a||0===o&&!1===a.defaultSelected&&void 0===this.$element.data("selected")),!r&&0===this.selectpicker.view.titleOption.index||i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),n&&l?i.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",(function(){t.selectpicker.view.displayedValue!==i.value&&t.render()}))}return e},buildData:function(){var t=':not([hidden]):not([data-hidden="true"])',e=[],i=0,n=this.setPlaceholder()?1:0;this.options.hideDisabled&&(t+=":not(:disabled)");var r=this.$element[0].querySelectorAll("select > *"+t);function o(t){var i=e[e.length-1];i&&"divider"===i.type&&(i.optID||t.optID)||((t=t||{}).type="divider",e.push(t))}function a(t,i){if((i=i||{}).divider="true"===t.getAttribute("data-divider"),i.divider)o({optID:i.optID});else{var n=e.length,r=t.style.cssText,a=r?M(r):"",s=(t.className||"")+(i.optgroupClass||"");i.optID&&(s="opt "+s),i.optionClass=s.trim(),i.inlineStyle=a,i.text=t.textContent,i.content=t.getAttribute("data-content"),i.tokens=t.getAttribute("data-tokens"),i.subtext=t.getAttribute("data-subtext"),i.icon=t.getAttribute("data-icon"),t.liIndex=n,i.display=i.content||i.text,i.type="option",i.index=n,i.option=t,i.selected=!!t.selected,i.disabled=i.disabled||!!t.disabled,e.push(i)}}function s(r,s){var l=s[r],c=!(r-1<n)&&s[r-1],h=s[r+1],u=l.querySelectorAll("option"+t);if(u.length){var d,p,f={display:M(l.label),subtext:l.getAttribute("data-subtext"),icon:l.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(l.className||"")};i++,c&&o({optID:i}),f.optID=i,e.push(f);for(var g=0,m=u.length;g<m;g++){var y=u[g];0===g&&(p=(d=e.length-1)+m),a(y,{headerIndex:d,lastIndex:p,optID:f.optID,optgroupClass:f.optgroupClass,disabled:l.disabled})}h&&o({optID:i})}}for(var l=r.length,c=n;c<l;c++){var h=r[c];"OPTGROUP"!==h.tagName?a(h,{}):s(c,r)}this.selectpicker.main.data=this.selectpicker.current.data=e},buildList:function(){var t=this,e=this.selectpicker.main.data,i=[],n=0;function r(e){var r,o=0;switch(e.type){case"divider":r=B.li(!1,N.DIVIDER,e.optID?e.optID+"div":void 0);break;case"option":(r=B.li(B.a(B.text.call(t,e),e.optionClass,e.inlineStyle),"",e.optID)).firstChild&&(r.firstChild.id=t.selectId+"-"+e.index);break;case"optgroup-label":r=B.li(B.label.call(t,e),"dropdown-header"+e.optgroupClass,e.optID)}e.element=r,i.push(r),e.display&&(o+=e.display.length),e.subtext&&(o+=e.subtext.length),e.icon&&(o+=1),n<o&&(n=o,t.selectpicker.view.widestOption=i[i.length-1])}!t.options.showTick&&!t.multiple||R.checkMark.parentNode||(R.checkMark.className=this.options.iconBase+" "+t.options.tickIcon+" check-mark",R.a.appendChild(R.checkMark));for(var o=e.length,a=0;a<o;a++)r(e[a]);this.selectpicker.main.elements=this.selectpicker.current.elements=i},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var t,e=this,i=this.$element[0],n=this.setPlaceholder()&&0===i.selectedIndex,r=f(i,this.options.hideDisabled),o=r.length,s=this.$button[0],l=s.querySelector(".filter-option-inner-inner"),c=document.createTextNode(this.options.multipleSeparator),h=R.fragment.cloneNode(!1),u=!1;if(s.classList.toggle("bs-placeholder",e.multiple?!o:!g(i,r)),e.multiple||1!==r.length||(e.selectpicker.view.displayedValue=g(i,r)),"static"===this.options.selectedTextFormat)h=B.text.call(this,{text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<o&&(1<(t=this.options.selectedTextFormat.split(">")).length&&o>t[1]||1===t.length&&2<=o))){if(!n){for(var d=0;d<o&&d<50;d++){var p=r[d],m=this.selectpicker.main.data[p.liIndex],y={};this.multiple&&0<d&&h.appendChild(c.cloneNode(!1)),p.title?y.text=p.title:m&&(m.content&&e.options.showContent?(y.content=m.content.toString(),u=!0):(e.options.showIcon&&(y.icon=m.icon),e.options.showSubtext&&!e.multiple&&m.subtext&&(y.subtext=" "+m.subtext),y.text=p.textContent.trim())),h.appendChild(B.text.call(this,y,!0))}49<o&&h.appendChild(document.createTextNode("..."))}}else{var v=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(v+=":not(:disabled)");var b=this.$element[0].querySelectorAll("select > option"+v+", optgroup"+v+" option"+v).length,x="function"==typeof this.options.countSelectedText?this.options.countSelectedText(o,b):this.options.countSelectedText;h=B.text.call(this,{text:x.replace("{0}",o.toString()).replace("{1}",b.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),h.childNodes.length||(h=B.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),s.title=h.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&u&&a([h],e.options.whiteList,e.options.sanitizeFn),l.innerHTML="",l.appendChild(h),D.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var w=s.querySelector(".filter-expand"),_=l.cloneNode(!0);_.className="filter-expand",w?s.replaceChild(_,w):s.appendChild(_)}this.$element.trigger("rendered"+j)},setStyle:function(t,e){var i,n=this.$button[0],r=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),D.major<4&&(r.classList.add("bs3"),r.parentNode.classList&&r.parentNode.classList.contains("input-group")&&(r.previousElementSibling||r.nextElementSibling)&&(r.previousElementSibling||r.nextElementSibling).classList.contains("input-group-addon")&&r.classList.add("bs3-has-addon")),i=t?t.trim():o,"add"==e?i&&n.classList.add.apply(n.classList,i.split(" ")):"remove"==e?i&&n.classList.remove.apply(n.classList,i.split(" ")):(o&&n.classList.remove.apply(n.classList,o.split(" ")),i&&n.classList.add.apply(n.classList,i.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var i,n=R.div.cloneNode(!1),r=R.div.cloneNode(!1),o=R.div.cloneNode(!1),a=document.createElement("ul"),s=R.li.cloneNode(!1),l=R.li.cloneNode(!1),c=R.a.cloneNode(!1),h=R.span.cloneNode(!1),u=this.options.header&&0<this.$menu.find("."+N.POPOVERHEADER).length?this.$menu.find("."+N.POPOVERHEADER)[0].cloneNode(!0):null,d=this.options.liveSearch?R.div.cloneNode(!1):null,p=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,g=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,h.className="text",c.className="dropdown-item "+(g?g.className:""),n.className=this.$menu[0].parentNode.className+" "+N.SHOW,n.style.width=0,"auto"===this.options.width&&(r.style.minWidth=0),r.className=N.MENU+" "+N.SHOW,o.className="inner "+N.SHOW,a.className=N.MENU+" inner "+("4"===D.major?N.SHOW:""),s.className=N.DIVIDER,l.className="dropdown-header",h.appendChild(document.createTextNode("")),this.selectpicker.current.data.length)for(var m=0;m<this.selectpicker.current.data.length;m++){var y=this.selectpicker.current.data[m];if("option"===y.type){i=y.element;break}}else i=R.li.cloneNode(!1),c.appendChild(h),i.appendChild(c);if(l.appendChild(h.cloneNode(!0)),this.selectpicker.view.widestOption&&a.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),a.appendChild(i),a.appendChild(s),a.appendChild(l),u&&r.appendChild(u),d){var v=document.createElement("input");d.className="bs-searchbox",v.className="form-control",d.appendChild(v),r.appendChild(d)}p&&r.appendChild(p),o.appendChild(a),r.appendChild(o),f&&r.appendChild(f),n.appendChild(r),document.body.appendChild(n);var b,w=i.offsetHeight,_=l?l.offsetHeight:0,S=u?u.offsetHeight:0,P=d?d.offsetHeight:0,k=p?p.offsetHeight:0,C=f?f.offsetHeight:0,T=t(s).outerHeight(!0),A=!!window.getComputedStyle&&window.getComputedStyle(r),O=r.offsetWidth,M=A?null:t(r),E={vert:x(A?A.paddingTop:M.css("paddingTop"))+x(A?A.paddingBottom:M.css("paddingBottom"))+x(A?A.borderTopWidth:M.css("borderTopWidth"))+x(A?A.borderBottomWidth:M.css("borderBottomWidth")),horiz:x(A?A.paddingLeft:M.css("paddingLeft"))+x(A?A.paddingRight:M.css("paddingRight"))+x(A?A.borderLeftWidth:M.css("borderLeftWidth"))+x(A?A.borderRightWidth:M.css("borderRightWidth"))},I={vert:E.vert+x(A?A.marginTop:M.css("marginTop"))+x(A?A.marginBottom:M.css("marginBottom"))+2,horiz:E.horiz+x(A?A.marginLeft:M.css("marginLeft"))+x(A?A.marginRight:M.css("marginRight"))+2};o.style.overflowY="scroll",b=r.offsetWidth-O,document.body.removeChild(n),this.sizeInfo.liHeight=w,this.sizeInfo.dropdownHeaderHeight=_,this.sizeInfo.headerHeight=S,this.sizeInfo.searchHeight=P,this.sizeInfo.actionsHeight=k,this.sizeInfo.doneButtonHeight=C,this.sizeInfo.dividerHeight=T,this.sizeInfo.menuPadding=E,this.sizeInfo.menuExtras=I,this.sizeInfo.menuWidth=O,this.sizeInfo.menuInnerInnerWidth=O-E.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=b,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var e,i=t(window),n=this.$newElement.offset(),r=t(this.options.container);this.options.container&&r.length&&!r.is("body")?((e=r.offset()).top+=parseInt(r.css("borderTopWidth")),e.left+=parseInt(r.css("borderLeftWidth"))):e={top:0,left:0};var o=this.options.windowPadding;this.sizeInfo.selectOffsetTop=n.top-e.top-i.scrollTop(),this.sizeInfo.selectOffsetBot=i.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-e.top-o[2],this.sizeInfo.selectOffsetLeft=n.left-e.left-i.scrollLeft(),this.sizeInfo.selectOffsetRight=i.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-e.left-o[1],this.sizeInfo.selectOffsetTop-=o[0],this.sizeInfo.selectOffsetLeft-=o[3]},setMenuSize:function(t){this.getSelectPosition();var e,i,n,r,o,a,s,l,c=this.sizeInfo.selectWidth,h=this.sizeInfo.liHeight,u=this.sizeInfo.headerHeight,d=this.sizeInfo.searchHeight,p=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,g=this.sizeInfo.dividerHeight,m=this.sizeInfo.menuPadding,y=0;if(this.options.dropupAuto&&(s=h*this.selectpicker.current.elements.length+m.vert,l=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(N.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)r=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,n=r+u+d+p+f,a=Math.max(r-m.vert,0),this.$newElement.hasClass(N.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),e=(o=i)-u-d-p-f-m.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var v=0;v<this.options.size;v++)"divider"===this.selectpicker.current.data[v].type&&y++;e=(i=h*this.options.size+y*g+m.vert)-m.vert,o=i+u+d+p+f,n=a=""}this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":n+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":a+"px"}),this.sizeInfo.menuInnerHeight=Math.max(e,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(N.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i=this,n=t(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",(function(){return i.setMenuSize()})),"auto"===this.options.size?n.off("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize").on("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize",(function(){return i.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&n.off("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,e)},setWidth:function(){var t=this;"auto"===this.options.width?requestAnimationFrame((function(){t.$menu.css("min-width","0"),t.$element.on("loaded"+j,(function(){t.liHeight(),t.setMenuSize();var e=t.$newElement.clone().appendTo("body"),i=e.css("width","auto").children("button").outerWidth();e.remove(),t.sizeInfo.selectWidth=Math.max(t.sizeInfo.totalMenuWidth,i),t.$newElement.css("width",t.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){function e(e){var s={},l=o.options.display||!!t.fn.dropdown.Constructor.Default&&t.fn.dropdown.Constructor.Default.display;o.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(N.DROPUP,e.hasClass(N.DROPUP)),i=e.offset(),a.is("body")?n={top:0,left:0}:((n=a.offset()).top+=parseInt(a.css("borderTopWidth"))-a.scrollTop(),n.left+=parseInt(a.css("borderLeftWidth"))-a.scrollLeft()),r=e.hasClass(N.DROPUP)?0:e[0].offsetHeight,(D.major<4||"static"===l)&&(s.top=i.top-n.top+r,s.left=i.left-n.left),s.width=e[0].offsetWidth,o.$bsContainer.css(s)}this.$bsContainer=t('<div class="bs-container" />');var i,n,r,o=this,a=t(this.options.container);this.$button.on("click.bs.dropdown.data-api",(function(){o.isDisabled()||(e(o.$newElement),o.$bsContainer.appendTo(o.options.container).toggleClass(N.SHOW,!o.$button.hasClass(N.SHOW)).append(o.$menu))})),t(window).off("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId).on("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId,(function(){o.$newElement.hasClass(N.SHOW)&&e(o.$newElement)})),this.$element.on("hide"+j,(function(){o.$menu.data("height",o.$menu.height()),o.$bsContainer.detach()}))},setOptionStatus:function(t){var e=this;if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var i=0;i<e.selectpicker.view.visibleElements.length;i++){var n=e.selectpicker.current.data[i+e.selectpicker.view.position0],r=n.option;r&&(!0!==t&&e.setDisabled(n.index,n.disabled),e.setSelected(n.index,r.selected))}},setSelected:function(t,e){var i,n,r=this.selectpicker.main.elements[t],o=this.selectpicker.main.data[t],a=void 0!==this.activeIndex,s=this.activeIndex===t||e&&!this.multiple&&!a;o.selected=e,n=r.firstChild,e&&(this.selectedIndex=t),r.classList.toggle("selected",e),s?(this.focusItem(r,o),this.selectpicker.view.currentActive=r,this.activeIndex=t):this.defocusItem(r),n&&(n.classList.toggle("selected",e),e?n.setAttribute("aria-selected",!0):this.multiple?n.setAttribute("aria-selected",!1):n.removeAttribute("aria-selected")),s||a||!e||void 0===this.prevActiveIndex||(i=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(i))},setDisabled:function(t,e){var i,n=this.selectpicker.main.elements[t];this.selectpicker.main.data[t].disabled=e,i=n.firstChild,n.classList.toggle(N.DISABLED,e),i&&("4"===D.major&&i.classList.toggle(N.DISABLED,e),e?(i.setAttribute("aria-disabled",e),i.setAttribute("tabindex",-1)):(i.removeAttribute("aria-disabled"),i.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(N.DISABLED),this.$button.addClass(N.DISABLED).attr("aria-disabled",!0)):this.$button[0].classList.contains(N.DISABLED)&&(this.$newElement[0].classList.remove(N.DISABLED),this.$button.removeClass(N.DISABLED).attr("aria-disabled",!1))},clickListener:function(){var e=this,i=t(document);function n(){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$menuInner.trigger("focus")}function r(){e.dropdown&&e.dropdown._popper&&e.dropdown._popper.state.isCreated?n():requestAnimationFrame(r)}i.data("spaceSelect",!1),this.$button.on("keyup",(function(t){/(32)/.test(t.keyCode.toString(10))&&i.data("spaceSelect")&&(t.preventDefault(),i.data("spaceSelect",!1))})),this.$newElement.on("show.bs.dropdown",(function(){3<D.major&&!e.dropdown&&(e.dropdown=e.$button.data("bs.dropdown"),e.dropdown._menu=e.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){e.$newElement.hasClass(N.SHOW)||e.setSize()})),this.$element.on("shown"+j,(function(){e.$menuInner[0].scrollTop!==e.selectpicker.view.scrollTop&&(e.$menuInner[0].scrollTop=e.selectpicker.view.scrollTop),3<D.major?requestAnimationFrame(r):n()})),this.$menuInner.on("mouseenter","li a",(function(t){var i=this.parentElement,n=e.isVirtual()?e.selectpicker.view.position0:0,r=Array.prototype.indexOf.call(i.parentElement.children,i),o=e.selectpicker.current.data[r+n];e.focusItem(i,o,!0)})),this.$menuInner.on("click","li a",(function(i,n){var r=t(this),o=e.$element[0],a=e.isVirtual()?e.selectpicker.view.position0:0,s=e.selectpicker.current.data[r.parent().index()+a],l=s.index,c=g(o),h=o.selectedIndex,u=o.options[h],d=!0;if(e.multiple&&1!==e.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!e.isDisabled()&&!r.parent().hasClass(N.DISABLED)){var p=s.option,m=t(p),v=p.selected,b=m.parent("optgroup"),x=b.find("option"),w=e.options.maxOptions,_=b.data("maxOptions")||!1;if(l===e.activeIndex&&(n=!0),n||(e.prevActiveIndex=e.activeIndex,e.activeIndex=void 0),e.multiple){if(p.selected=!v,e.setSelected(l,!v),e.focusedParent.focus(),!1!==w||!1!==_){var S=w<f(o).length,P=_<b.find("option:selected").length;if(w&&S||_&&P)if(w&&1==w)o.selectedIndex=-1,p.selected=!0,e.setOptionStatus(!0);else if(_&&1==_){for(var k=0;k<x.length;k++){var C=x[k];C.selected=!1,e.setSelected(C.liIndex,!1)}p.selected=!0,e.setSelected(l,!0)}else{var T="string"==typeof e.options.maxOptionsText?[e.options.maxOptionsText,e.options.maxOptionsText]:e.options.maxOptionsText,A="function"==typeof T?T(w,_):T,O=A[0].replace("{n}",w),M=A[1].replace("{n}",_),E=t('<div class="notify"></div>');A[2]&&(O=O.replace("{var}",A[2][1<w?0:1]),M=M.replace("{var}",A[2][1<_?0:1])),p.selected=!1,e.$menu.append(E),w&&S&&(E.append(t("<div>"+O+"</div>")),d=!1,e.$element.trigger("maxReached"+j)),_&&P&&(E.append(t("<div>"+M+"</div>")),d=!1,e.$element.trigger("maxReachedGrp"+j)),setTimeout((function(){e.setSelected(l,!1)}),10),E[0].classList.add("fadeOut"),setTimeout((function(){E.remove()}),1050)}}}else u&&(u.selected=!1),p.selected=!0,e.setSelected(l,!0);!e.multiple||e.multiple&&1===e.options.maxOptions?e.$button.trigger("focus"):e.options.liveSearch&&e.$searchbox.trigger("focus"),d&&(!e.multiple&&h===o.selectedIndex||(y=[p.index,m.prop("selected"),c],e.$element.triggerNative("change")))}})),this.$menu.on("click","li."+N.DISABLED+" a, ."+N.POPOVERHEADER+", ."+N.POPOVERHEADER+" :not(.close)",(function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),e.options.liveSearch&&!t(i.target).hasClass("close")?e.$searchbox.trigger("focus"):e.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus")})),this.$menu.on("click","."+N.POPOVERHEADER+" .close",(function(){e.$button.trigger("click")})),this.$searchbox.on("click",(function(t){t.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(i){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus"),i.preventDefault(),i.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()})),this.$button.on("focus"+j,(function(t){var i=e.$element[0].getAttribute("tabindex");void 0!==i&&t.originalEvent&&t.originalEvent.isTrusted&&(this.setAttribute("tabindex",i),e.$element[0].setAttribute("tabindex",-1),e.selectpicker.view.tabindex=i)})).on("blur"+j,(function(t){void 0!==e.selectpicker.view.tabindex&&t.originalEvent&&t.originalEvent.isTrusted&&(e.$element[0].setAttribute("tabindex",e.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),e.selectpicker.view.tabindex=void 0)})),this.$element.on("change"+j,(function(){e.render(),e.$element.trigger("changed"+j,y),y=null})).on("focus"+j,(function(){e.options.mobile||e.$button[0].focus()}))},liveSearchListener:function(){var t=this;this.$button.on("click.bs.dropdown.data-api",(function(){t.$searchbox.val()&&(t.$searchbox.val(""),t.selectpicker.search.previousValue=void 0)})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(t){t.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var e=t.$searchbox[0].value;if(t.selectpicker.search.elements=[],t.selectpicker.search.data=[],e){var i=[],n=e.toUpperCase(),r={},o=[],a=t._searchStyle(),s=t.options.liveSearchNormalize;s&&(n=k(n));for(var l=0;l<t.selectpicker.main.data.length;l++){var c=t.selectpicker.main.data[l];r[l]||(r[l]=b(c,n,a,s)),r[l]&&void 0!==c.headerIndex&&-1===o.indexOf(c.headerIndex)&&(0<c.headerIndex&&(r[c.headerIndex-1]=!0,o.push(c.headerIndex-1)),r[c.headerIndex]=!0,o.push(c.headerIndex),r[c.lastIndex+1]=!0),r[l]&&"optgroup-label"!==c.type&&o.push(l)}l=0;for(var h=o.length;l<h;l++){var u=o[l],d=o[l-1],p=(c=t.selectpicker.main.data[u],t.selectpicker.main.data[d]);("divider"!==c.type||"divider"===c.type&&p&&"divider"!==p.type&&h-1!==l)&&(t.selectpicker.search.data.push(c),i.push(t.selectpicker.main.elements[u]))}t.activeIndex=void 0,t.noScroll=!0,t.$menuInner.scrollTop(0),t.selectpicker.search.elements=i,t.createView(!0),function(t,e){t.length||(R.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+M(e)+'"'),this.$menuInner[0].firstChild.appendChild(R.noResults))}.call(t,i,e)}else t.selectpicker.search.previousValue&&(t.$menuInner.scrollTop(0),t.createView(!1));t.selectpicker.search.previousValue=e}))},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){var e=this.$element[0];if(void 0===t)return this.$element.val();var i=g(e);if(y=[null,null,i],this.$element.val(t).trigger("changed"+j,y),this.$newElement.hasClass(N.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var n=(e.options[e.selectedIndex]||{}).liIndex;"number"==typeof n&&(this.setSelected(this.selectedIndex,!1),this.setSelected(n,!0))}return this.render(),y=null,this.$element},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0);var e=this.$element[0],i=0,n=0,r=g(e);e.classList.add("bs-select-hidden");for(var o=0,a=this.selectpicker.current.data,s=a.length;o<s;o++){var l=a[o],c=l.option;c&&!l.disabled&&"divider"!==l.type&&(l.selected&&i++,!0===(c.selected=t)&&n++)}e.classList.remove("bs-select-hidden"),i!==n&&(this.setOptionStatus(),y=[null,null,r],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var i,n,r,o,a,s=t(this),l=s.hasClass("dropdown-toggle"),c=(l?s.closest(".dropdown"):s.closest(F.MENU)).data("this"),h=c.findLis(),u=!1,d=9===e.which&&!l&&!c.options.selectOnTab,p=V.test(e.which)||d,f=c.$menuInner[0].scrollTop,g=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(112<=e.which&&e.which<=123))if(!(n=c.$newElement.hasClass(N.SHOW))&&(p||48<=e.which&&e.which<=57||96<=e.which&&e.which<=105||65<=e.which&&e.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(27===e.which&&n&&(e.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),p){if(!h.length)return;-1!==(i=(r=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(r.parentElement.children,r):-1)&&c.defocusItem(r),38===e.which?(-1!==i&&i--,i+g<0&&(i+=h.length),c.selectpicker.view.canHighlight[i+g]||-1==(i=c.selectpicker.view.canHighlight.slice(0,i+g).lastIndexOf(!0)-g)&&(i=h.length-1)):40!==e.which&&!d||(++i+g>=c.selectpicker.view.canHighlight.length&&(i=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[i+g]||(i=i+1+c.selectpicker.view.canHighlight.slice(i+g+1).indexOf(!0))),e.preventDefault();var m=g+i;38===e.which?0===g&&i===h.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,m=c.selectpicker.current.elements.length-1):u=(a=(o=c.selectpicker.current.data[m]).position-o.height)<f:40!==e.which&&!d||(i===c.selectpicker.view.firstHighlightIndex?(c.$menuInner[0].scrollTop=0,m=c.selectpicker.view.firstHighlightIndex):u=f<(a=(o=c.selectpicker.current.data[m]).position-c.sizeInfo.menuInnerHeight)),r=c.selectpicker.current.elements[m],c.activeIndex=c.selectpicker.current.data[m].index,c.focusItem(r),c.selectpicker.view.currentActive=r,u&&(c.$menuInner[0].scrollTop=a),c.options.liveSearch?c.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!z.test(e.which)||32===e.which&&c.selectpicker.keydown.keyHistory){var y,v,x=[];e.preventDefault(),c.selectpicker.keydown.keyHistory+=I[e.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),v=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(v)&&(v=v.charAt(0));for(var w=0;w<c.selectpicker.current.data.length;w++){var _=c.selectpicker.current.data[w];b(_,v,"startsWith",!0)&&c.selectpicker.view.canHighlight[w]&&x.push(_.index)}if(x.length){var S=0;h.removeClass("active").find("a").removeClass("active"),1===v.length&&(-1===(S=x.indexOf(c.activeIndex))||S===x.length-1?S=0:S++),y=x[S],u=0<f-(o=c.selectpicker.main.data[y]).position?(a=o.position-o.height,!0):(a=o.position-c.sizeInfo.menuInnerHeight,o.position>f+c.sizeInfo.menuInnerHeight),r=c.selectpicker.main.elements[y],c.activeIndex=x[S],c.focusItem(r),r&&r.firstChild.focus(),u&&(c.$menuInner[0].scrollTop=a),s.trigger("focus")}}n&&(32===e.which&&!c.selectpicker.keydown.keyHistory||13===e.which||9===e.which&&c.options.selectOnTab)&&(32!==e.which&&e.preventDefault(),c.options.liveSearch&&32===e.which||(c.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),c.options.liveSearch||(e.preventDefault(),t(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var e=t.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+j)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(j).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),t(window).off(j+"."+this.selectId)}};var X=t.fn.selectpicker;function Y(){if(t.fn.dropdown)return(t.fn.dropdown.Constructor._dataApiKeydownHandler||t.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}t.fn.selectpicker=W,t.fn.selectpicker.Constructor=H,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=X,this},t(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',Y).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",Y).on("keydown"+j,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',H.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(t){t.stopPropagation()})),t(window).on("load"+j+".data-api",(function(){t(".selectpicker").each((function(){var e=t(this);W.call(e,e.data())}))}))}(t)})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){var e=function(){function e(){var e=this,i=function(i){return t.isNumeric(i)&&(i=Math.floor(i)),t('option[value="'+i+'"]',e.$elem)},n=function(){var n=e.options.initialRating;return n?i(n):t("option:selected",e.$elem)},r=function(){var i=e.$elem.find('option[value="'+e.options.emptyValue+'"]');return!i.length&&e.options.allowEmpty?(i=t("<option />",{value:e.options.emptyValue})).prependTo(e.$elem):i},o=function(t){var i=e.$elem.data("barrating");return void 0!==t?i[t]:i},a=function(t,i){null!==i&&"object"==typeof i?e.$elem.data("barrating",i):e.$elem.data("barrating")[t]=i},s=function(){return o("ratingText")},l=function(){return o("ratingValue")},c=function(){return o("userOptions").reverse?"nextAll":"prevAll"},h=function(t){i(t).prop("selected",!0),e.$elem.change()},u=function(){t("option",e.$elem).prop("selected",(function(){return this.defaultSelected})),e.$elem.change()},d=function(t){(t=t||s())==o("emptyRatingText")&&(t=""),e.options.showSelectedRating&&e.$elem.parent().find(".br-current-rating").text(t)},p=function(){e.$widget.find("a").removeClass((function(t,e){return(e.match(/(^|\s)br-\S+/g)||[]).join(" ")}))},f=function(){var i,n,r=e.$widget.find('a[data-rating-value="'+l()+'"]'),a=o("userOptions").initialRating,s=t.isNumeric(l())?l():0,h=function(t){return Math.round(Math.floor(10*t)/10%1*100)}(a);if(p(),r.addClass("br-selected br-current")[c()]().addClass("br-selected"),!o("ratingMade")&&t.isNumeric(a)){if(s>=a||!h)return;i=e.$widget.find("a"),(n=r.length?r[o("userOptions").reverse?"prev":"next"]():i[o("userOptions").reverse?"last":"first"]()).addClass("br-fractional"),n.addClass("br-fractional-"+h)}},g=function(i){i.on("click.barrating",(function(i){var n,r,c=t(this),u=o("userOptions");return i.preventDefault(),n=c.attr("data-rating-value"),r=c.attr("data-rating-text"),function(t){return!(!o("allowEmpty")||!o("userOptions").deselectable)&&l()==t.attr("data-rating-value")}(c)&&(n=o("emptyRatingValue"),r=o("emptyRatingText")),a("ratingValue",n),a("ratingText",r),a("ratingMade",!0),h(n),d(r),f(),u.onSelect.call(e,l(),s(),i),!1}))},m=function(e){e.on("mouseenter.barrating",(function(){var e=t(this);p(),e.addClass("br-active")[c()]().addClass("br-active"),d(e.attr("data-rating-text"))}))},y=function(e){e.on("touchstart.barrating",(function(e){e.preventDefault(),e.stopPropagation(),t(this).click()}))},v=function(t){g(t),e.options.hoverState&&(m(t),e.$widget.on("mouseleave.barrating blur.barrating",(function(){d(),f()})))},b=function(t){t.off(".barrating")},x=function(t){var i=e.$widget.find("a");y&&y(i),t?(b(i),function(t){t.on("click.barrating",(function(t){t.preventDefault()}))}(i)):v(i)};this.show=function(){o()||(function(){var i=["br-wrapper"];""!==e.options.theme&&i.push("br-theme-"+e.options.theme),e.$elem.wrap(t("<div />",{class:i.join(" ")}))}(),function(){var t=n(),i=r(),o=t.val(),s=t.data("html")?t.data("html"):t.text(),l=null!==e.options.allowEmpty?e.options.allowEmpty:!!i.length,c=i.length?i.val():null,h=i.length?i.text():null;a(null,{userOptions:e.options,ratingValue:o,ratingText:s,originalRatingValue:o,originalRatingText:s,allowEmpty:l,emptyRatingValue:c,emptyRatingText:h,readOnly:e.options.readonly,ratingMade:!1})}(),e.$widget=function(){var i=t("<div />",{class:"br-widget"});return e.$elem.find("option").each((function(){var n,r,a,s;(n=t(this).val())!==o("emptyRatingValue")&&(r=t(this).text(),(a=t(this).data("html"))&&(r=a),s=t("<a />",{href:"#","data-rating-value":n,"data-rating-text":r,html:e.options.showValues?r:""}),i.append(s))})),e.options.showSelectedRating&&i.append(t("<div />",{text:"",class:"br-current-rating"})),e.options.reverse&&i.addClass("br-reverse"),e.options.readonly&&i.addClass("br-readonly"),i}(),e.$widget.insertAfter(e.$elem),f(),d(),x(e.options.readonly),e.$elem.hide())},this.readonly=function(t){"boolean"==typeof t&&o("readOnly")!=t&&(x(t),a("readOnly",t),e.$widget.toggleClass("br-readonly"))},this.set=function(t){var i=o("userOptions");0!==e.$elem.find('option[value="'+t+'"]').length&&(a("ratingValue",t),a("ratingText",e.$elem.find('option[value="'+t+'"]').text()),a("ratingMade",!0),h(l()),d(s()),f(),i.silent||i.onSelect.call(this,l(),s()))},this.clear=function(){var t=o("userOptions");a("ratingValue",o("originalRatingValue")),a("ratingText",o("originalRatingText")),a("ratingMade",!1),u(),d(s()),f(),t.onClear.call(this,l(),s())},this.destroy=function(){var t=l(),i=s(),n=o("userOptions");b(e.$widget.find("a")),e.$widget.remove(),e.$elem.removeData("barrating"),e.$elem.unwrap(),e.$elem.show(),n.onDestroy.call(this,t,i)}}return e.prototype.init=function(e,i){return this.$elem=t(i),this.options=t.extend({},t.fn.barrating.defaults,e),this.options},e}();t.fn.barrating=function(i,n){return this.each((function(){var r=new e;if(t(this).is("select")||t.error("Sorry, this plugin only works with select fields."),r.hasOwnProperty(i)){if(r.init(n,this),"show"===i)return r.show(n);if(r.$elem.data("barrating"))return r.$widget=t(this).next(".br-widget"),r[i](n)}else{if("object"==typeof i||!i)return n=i,r.init(n,this),r.show();t.error("Method "+i+" does not exist on jQuery.barrating")}}))},t.fn.barrating.defaults={theme:"",initialRating:null,allowEmpty:null,emptyValue:"",showValues:!1,showSelectedRating:!0,deselectable:!0,reverse:!1,readonly:!1,fastClicks:!0,hoverState:!0,silent:!1,onSelect:function(t,e,i){},onClear:function(t,e){},onDestroy:function(t,e){}},t.fn.barrating.BarRating=e})),function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=227)}({0:function(t,e,i){(function(e){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")()}).call(this,i(59))},1:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},10:function(t,e,i){var n=i(31),r=i(13);t.exports=function(t){return n(r(t))}},102:function(t,e,i){"use strict";var n=i(3),r=i(1),o=i(29),a=i(5),s=i(16),l=i(11),c=i(57),h=i(43),u=i(33),d=i(2)("isConcatSpreadable"),p=!r((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),f=u("concat"),g=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!p||!f},{concat:function(t){var e,i,n,r,o,a=s(this),u=h(a,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(g(o=-1===e?a:arguments[e])){if(d+(r=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,d++)i in o&&c(u,d,o[i])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(u,d++,o)}return u.length=d,u}})},11:function(t,e,i){var n=i(12),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},12:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},14:function(t,e,i){var n=i(0),r=i(15),o=i(6),a=i(4),s=i(25),l=i(37),c=i(21),h=c.get,u=c.enforce,d=String(l).split("toString");r("inspectSource",(function(t){return l.call(t)})),(t.exports=function(t,e,i,r){var l=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,h=!!r&&!!r.noTargetGet;"function"==typeof i&&("string"!=typeof e||a(i,"name")||o(i,"name",e),u(i).source=d.join("string"==typeof e?e:"")),t!==n?(l?!h&&t[e]&&(c=!0):delete t[e],c?t[e]=i:o(t,e,i)):c?t[e]=i:s(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&h(this).source||l.call(this)}))},15:function(t,e,i){var n=i(24),r=i(61);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.3.2",mode:n?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},16:function(t,e,i){var n=i(13);t.exports=function(t){return Object(n(t))}},17:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},18:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},19:function(t,e,i){var n=i(5);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},2:function(t,e,i){var n=i(0),r=i(15),o=i(28),a=i(50),s=n.Symbol,l=r("wks");t.exports=function(t){return l[t]||(l[t]=a&&s[t]||(a?s:o)("Symbol."+t))}},20:function(t,e){t.exports={}},21:function(t,e,i){var n,r,o,a=i(62),s=i(0),l=i(5),c=i(6),h=i(4),u=i(22),d=i(20),p=s.WeakMap;if(a){var f=new p,g=f.get,m=f.has,y=f.set;n=function(t,e){return y.call(f,t,e),e},r=function(t){return g.call(f,t)||{}},o=function(t){return m.call(f,t)}}else{var v=u("state");d[v]=!0,n=function(t,e){return c(t,v,e),e},r=function(t){return h(t,v)?t[v]:{}},o=function(t){return h(t,v)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}}},22:function(t,e,i){var n=i(15),r=i(28),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},227:function(t,e,i){i(228),t.exports=i(229)},228:function(t,e,i){"use strict";var n;i.r(e),i(102),(n=jQuery).fn.mdbRate=function(){var t,e=n.fn.tooltip.Constructor.Default.whiteList;e.textarea=[],e.button=[];for(var i=n(this),r=["Very bad","Poor","OK","Good","Excellent"],o=0;o<5;o++)i.append('<i class="py-2 px-1 rate-popover" data-index="'.concat(o,'" data-html="true" data-toggle="popover"\n data-placement="top" title="').concat(r[o],'"></i>'));t=i.children(),i.hasClass("rating-faces")?t.addClass("far fa-meh-blank"):i.hasClass("empty-stars")?t.addClass("far fa-star"):t.addClass("fas fa-star"),t.on("mouseover",(function(){!function(e){t.parent().hasClass("rating-faces")&&t.addClass("fa-meh-blank"),i.hasClass("empty-stars")&&t.removeClass("fas"),t.removeClass("fa-angry fa-frown fa-meh fa-smile fa-laugh live oneStar twoStars threeStars fourStars fiveStars amber-text");for(var r=0;r<=e;r++)if(i.hasClass("rating-faces"))switch(n(t.get(r)).removeClass("fa-meh-blank"),n(t.get(r)).addClass("live"),e){case"0":n(t.get(r)).addClass("fa-angry");break;case"1":n(t.get(r)).addClass("fa-frown");break;case"2":n(t.get(r)).addClass("fa-meh");break;case"3":n(t.get(r)).addClass("fa-smile");break;case"4":n(t.get(r)).addClass("fa-laugh")}else if(i.hasClass("empty-stars"))switch(n(t.get(r)).addClass("fas"),e){case"0":n(t.get(r)).addClass("oneStar");break;case"1":n(t.get(r)).addClass("twoStars");break;case"2":n(t.get(r)).addClass("threeStars");break;case"3":n(t.get(r)).addClass("fourStars");break;case"4":n(t.get(r)).addClass("fiveStars")}else n(t.get(r)).addClass("amber-text")}(n(this).attr("data-index"))})),t.on("click",(function(){t.popover("hide")})),i.on("click","#voteSubmitButton",(function(){t.popover("hide")})),i.on("click","#closePopoverButton",(function(){t.popover("hide")})),i.hasClass("feedback")&&n((function(){t.popover({container:i,content:'<div class="my-0 py-0"> <textarea type="text" style="font-size: 0.78rem" class="md-textarea form-control py-0" placeholder="Write us what can we improve" rows="3"></textarea> <button id="voteSubmitButton" type="submit" class="btn btn-sm btn-primary">Submit!</button> <button id="closePopoverButton" class="btn btn-flat btn-sm">Close</button> </div>'})})),t.tooltip()}},229:function(t,e,i){},24:function(t,e){t.exports=!1},25:function(t,e,i){var n=i(0),r=i(6);t.exports=function(t,e){try{r(n,t,e)}catch(i){n[t]=e}return e}},26:function(t,e,i){var n=i(9),r=i(46),o=i(17),a=i(10),s=i(19),l=i(4),c=i(36),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=s(e,!0),c)try{return h(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},27:function(t,e,i){var n=i(39),r=i(30).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},28:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++i+n).toString(36)}},29:function(t,e,i){var n=i(18);t.exports=Array.isArray||function(t){return"Array"==n(t)}},3:function(t,e,i){var n=i(0),r=i(26).f,o=i(6),a=i(14),s=i(25),l=i(47),c=i(51);t.exports=function(t,e){var i,h,u,d,p,f=t.target,g=t.global,m=t.stat;if(i=g?n:m?n[f]||s(f,{}):(n[f]||{}).prototype)for(h in e){if(d=e[h],u=t.noTargetGet?(p=r(i,h))&&p.value:i[h],!c(g?h:f+(m?".":"#")+h,t.forced)&&void 0!==u){if(typeof d==typeof u)continue;l(d,u)}(t.sham||u&&u.sham)&&o(d,"sham",!0),a(i,h,d,t)}}},30:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},31:function(t,e,i){var n=i(1),r=i(18),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},32:function(t,e,i){var n=i(12),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},33:function(t,e,i){var n=i(1),r=i(2)("species");t.exports=function(t){return!n((function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},35:function(t,e,i){var n=i(48),r=i(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(r[t]):n[t]&&n[t][e]||r[t]&&r[t][e]}},36:function(t,e,i){var n=i(9),r=i(1),o=i(38);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},37:function(t,e,i){var n=i(15);t.exports=n("native-function-to-string",Function.toString)},38:function(t,e,i){var n=i(0),r=i(5),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},39:function(t,e,i){var n=i(4),r=i(10),o=i(41).indexOf,a=i(20);t.exports=function(t,e){var i,s=r(t),l=0,c=[];for(i in s)!n(a,i)&&n(s,i)&&c.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(c,i)||c.push(i));return c}},4:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},41:function(t,e,i){var n=i(10),r=i(11),o=i(32),a=function(t){return function(e,i,a){var s,l=n(e),c=r(l.length),h=o(a,c);if(t&&i!=i){for(;c>h;)if((s=l[h++])!=s)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},43:function(t,e,i){var n=i(5),r=i(29),o=i(2)("species");t.exports=function(t,e){var i;return r(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!r(i.prototype)?n(i)&&null===(i=i[o])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},46:function(t,e,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},47:function(t,e,i){var n=i(4),r=i(63),o=i(26),a=i(8);t.exports=function(t,e){for(var i=r(e),s=a.f,l=o.f,c=0;c<i.length;c++){var h=i[c];n(t,h)||s(t,h,l(e,h))}}},48:function(t,e,i){t.exports=i(0)},49:function(t,e){e.f=Object.getOwnPropertySymbols},5:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},50:function(t,e,i){var n=i(1);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},51:function(t,e,i){var n=i(1),r=/#|\.prototype\./,o=function(t,e){var i=s[a(t)];return i==c||i!=l&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},57:function(t,e,i){"use strict";var n=i(19),r=i(8),o=i(17);t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,o(0,i)):t[a]=i}},59:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},6:function(t,e,i){var n=i(9),r=i(8),o=i(17);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},61:function(t,e,i){var n=i(0),r=i(25),o=n["__core-js_shared__"]||r("__core-js_shared__",{});t.exports=o},62:function(t,e,i){var n=i(0),r=i(37),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(r.call(o))},63:function(t,e,i){var n=i(35),r=i(27),o=i(49),a=i(7);t.exports=n("Reflect","ownKeys")||function(t){var e=r.f(a(t)),i=o.f;return i?e.concat(i(t)):e}},7:function(t,e,i){var n=i(5);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},8:function(t,e,i){var n=i(9),r=i(36),o=i(7),a=i(19),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(o(t),e=a(e,!0),o(i),r)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},9:function(t,e,i){var n=i(1);t.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}((function(t){var e,i,n,r,o,a,s="Close",l="BeforeClose",c="MarkupParse",h="Open",u="Change",d="mfp",p="."+d,f="mfp-ready",g="mfp-removing",m="mfp-prevent-close",y=function(){},v=!!window.jQuery,b=t(window),x=function(t,i){e.ev.on(d+t+p,i)},w=function(e,i,n,r){var o=document.createElement("div");return o.className="mfp-"+e,n&&(o.innerHTML=n),r?i&&i.appendChild(o):(o=t(o),i&&o.appendTo(i)),o},_=function(i,n){e.ev.triggerHandler(d+i,n),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(n)?n:[n]))},S=function(i){return i===a&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),a=i),e.currTemplate.closeBtn},P=function(){t.magnificPopup.instance||((e=new y).init(),t.magnificPopup.instance=e)};y.prototype={constructor:y,init:function(){var i=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=t(document),e.popupsCache={}},open:function(i){var r;if(!1===i.isObj){e.items=i.items.toArray(),e.index=0;var a,s=i.items;for(r=0;r<s.length;r++)if((a=s[r]).parsed&&(a=a.el[0]),a===i.el[0]){e.index=r;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(!e.isOpen){e.types=[],o="",i.mainEl&&i.mainEl.length?e.ev=i.mainEl.eq(0):e.ev=n,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=w("bg").on("click"+p,(function(){e.close()})),e.wrap=w("wrap").attr("tabindex",-1).on("click"+p,(function(t){e._checkIfClose(t.target)&&e.close()})),e.container=w("container",e.wrap)),e.contentContainer=w("content"),e.st.preloader&&(e.preloader=w("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(r=0;r<l.length;r++){var u=l[r];u=u.charAt(0).toUpperCase()+u.slice(1),e["init"+u].call(e)}_("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(x(c,(function(t,e,i,n){i.close_replaceWith=S(n.type)})),o+=" mfp-close-btn-in"):e.wrap.append(S())),e.st.alignTop&&(o+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===e.st.fixedBgPos||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:n.height(),position:"absolute"}),e.st.enableEscapeKey&&n.on("keyup"+p,(function(t){27===t.keyCode&&e.close()})),b.on("resize"+p,(function(){e.updateSize()})),e.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&e.wrap.addClass(o);var d=e.wH=b.height(),g={};if(e.fixedContentPos&&e._hasScrollBar(d)){var m=e._getScrollbarSize();m&&(g.marginRight=m)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):g.overflow="hidden");var y=e.st.mainClass;return e.isIE7&&(y+=" mfp-ie7"),y&&e._addClassToMFP(y),e.updateItemHTML(),_("BuildControls"),t("html").css(g),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout((function(){e.content?(e._addClassToMFP(f),e._setFocus()):e.bgOverlay.addClass(f),n.on("focusin"+p,e._onFocusIn)}),16),e.isOpen=!0,e.updateSize(d),_(h),i}e.updateItemHTML()},close:function(){e.isOpen&&(_(l),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(g),setTimeout((function(){e._close()}),e.st.removalDelay)):e._close())},_close:function(){_(s);var i=g+" "+f+" ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var r={marginRight:""};e.isIE7?t("body, html").css("overflow",""):r.overflow="",t("html").css(r)}n.off("keyup.mfp focusin"+p),e.ev.off(p),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&!0!==e.currTemplate[e.currItem.type]||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e.st.autoFocusLast&&e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,_("AfterClose")},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;e.wrap.css("height",n),e.wH=n}else e.wH=t||b.height();e.fixedContentPos||e.wrap.css("height",e.wH),_("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var n=i.type;if(_("BeforeChange",[e.currItem?e.currItem.type:"",n]),e.currItem=i,!e.currTemplate[n]){var o=!!e.st[n]&&e.st[n].markup;_("FirstMarkupParse",o),e.currTemplate[n]=!o||t(o)}r&&r!==i.type&&e.container.removeClass("mfp-"+r+"-holder");var a=e["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,e.currTemplate[n]);e.appendContent(a,n),i.preloaded=!0,_(u,i),r=i.type,e.container.prepend(e.contentContainer),_("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&!0===e.currTemplate[i]?e.content.find(".mfp-close").length||e.content.append(S()):e.content=t:e.content="",_("BeforeAppend"),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var n,r=e.items[i];if(r.tagName?r={el:t(r)}:(n=r.type,r={data:r,src:r.src}),r.el){for(var o=e.types,a=0;a<o.length;a++)if(r.el.hasClass("mfp-"+o[a])){n=o[a];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=n||e.st.type||"inline",r.index=i,r.parsed=!0,e.items[i]=r,_("ElementParse",r),e.items[i]},addGroup:function(t,i){var n=function(n){n.mfpEl=this,e._openClick(n,t,i)};i||(i={});var r="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(r).on(r,n)):(i.isObj=!1,i.delegate?t.off(r).on(r,i.delegate,n):(i.items=t,t.off(r).on(r,n)))},_openClick:function(i,n,r){if((void 0!==r.midClick?r.midClick:t.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var o=void 0!==r.disableOn?r.disableOn:t.magnificPopup.defaults.disableOn;if(o)if(t.isFunction(o)){if(!o.call(e))return!0}else if(b.width()<o)return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),r.el=t(i.mfpEl),r.delegate&&(r.items=n.find(r.delegate)),e.open(r)}},updateStatus:function(t,n){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),n||"loading"!==t||(n=e.st.tLoading);var r={status:t,text:n};_("UpdateStatus",r),t=r.status,n=r.text,e.preloader.html(n),e.preloader.find("a").on("click",(function(t){t.stopImmediatePropagation()})),e.container.addClass("mfp-s-"+t),i=t}},_checkIfClose:function(i){if(!t(i).hasClass(m)){var n=e.st.closeOnContentClick,r=e.st.closeOnBgClick;if(n&&r)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(n)return!0}else if(r&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?n.height():document.body.scrollHeight)>(t||b.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){return i.target===e.wrap[0]||t.contains(e.wrap[0],i.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,i,n){var r;n.data&&(i=t.extend(n.data,i)),_(c,[e,i,n]),t.each(i,(function(i,n){if(void 0===n||!1===n)return!0;if((r=i.split("_")).length>1){var o=e.find(p+"-"+r[0]);if(o.length>0){var a=r[1];"replaceWith"===a?o[0]!==n[0]&&o.replaceWith(n):"img"===a?o.is("img")?o.attr("src",n):o.replaceWith(t("<img>").attr("src",n).attr("class",o.attr("class"))):o.attr(r[1],n)}}else e.find(p+"-"+i).html(n)}))},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(e,i){return P(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){P();var n=t(this);if("string"==typeof i)if("open"===i){var r,o=v?n.data("magnificPopup"):n[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?r=o.items[a]:(r=n,o.delegate&&(r=r.find(o.delegate)),r=r.eq(a)),e._openClick({mfpEl:r},n,o)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),v?n.data("magnificPopup",i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var k,C,T,A="inline",O=function(){T&&(C.after(T.addClass(k)).detach(),T=null)};t.magnificPopup.registerModule(A,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(A),x(s+"."+A,(function(){O()}))},getInline:function(i,n){if(O(),i.src){var r=e.st.inline,o=t(i.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(C||(k=r.hiddenClass,C=w(k),k="mfp-"+k),T=o.after(C).detach().removeClass(k)),e.updateStatus("ready")}else e.updateStatus("error",r.tNotFound),o=t("<div>");return i.inlineElement=o,o}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var M,E="ajax",I=function(){M&&t(document.body).removeClass(M)},D=function(){I(),e.req&&e.req.abort()};t.magnificPopup.registerModule(E,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push(E),M=e.st.ajax.cursor,x(s+"."+E,D),x("BeforeChange."+E,D)},getAjax:function(i){M&&t(document.body).addClass(M),e.updateStatus("loading");var n=t.extend({url:i.src,success:function(n,r,o){var a={data:n,xhr:o};_("ParseAjax",a),e.appendContent(t(a.data),E),i.finished=!0,I(),e._setFocus(),setTimeout((function(){e.wrap.addClass(f)}),16),e.updateStatus("ready"),_("AjaxContentAdded")},error:function(){I(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(n),""}}});var L,j=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=e.st.image,n=".image";e.types.push("image"),x(h+n,(function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)})),x(s+n,(function(){i.cursor&&t(document.body).removeClass(i.cursor),b.off("resize"+p)})),x("Resize"+n,e.resizeImage),e.isLowIE&&x("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,L&&clearInterval(L),t.isCheckingImgSize=!1,_("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0],r=function(o){L&&clearInterval(L),L=setInterval((function(){return n.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(L),void(3===++i?r(10):40===i?r(50):100===i&&r(500)))}),o)};r(1)},getImage:function(i,n){var r=0,o=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,_("ImageLoadComplete")):200>++r?setTimeout(o,100):a())},a=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=e.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=t(c).on("load.mfploader",o).on("error.mfploader",a),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(n,{title:j(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(L&&clearInterval(L),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",s.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}});var N;t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,n=".zoom";if(i.enabled&&e.supportsTransition){var r,o,a=i.duration,c=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return r["-webkit-"+o]=r["-moz-"+o]=r["-o-"+o]=r[o]=n,e.css(r),e},h=function(){e.content.css("visibility","visible")};x("BuildControls"+n,(function(){if(e._allowZoom()){if(clearTimeout(r),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void h();(o=c(t)).css(e._getOffset()),e.wrap.append(o),r=setTimeout((function(){o.css(e._getOffset(!0)),r=setTimeout((function(){h(),setTimeout((function(){o.remove(),t=o=null,_("ZoomAnimationEnded")}),16)}),a)}),16)}})),x(l+n,(function(){if(e._allowZoom()){if(clearTimeout(r),e.st.removalDelay=a,!t){if(!(t=e._getItemToZoom()))return;o=c(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout((function(){o.css(e._getOffset())}),16)}})),x(s+n,(function(){e._allowZoom()&&(h(),o&&o.remove(),t=null)}))}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var n,r=(n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),o=parseInt(n.css("padding-top"),10),a=parseInt(n.css("padding-bottom"),10);r.top-=t(window).scrollTop()-o;var s={width:n.width(),height:(v?n.innerHeight():n[0].offsetHeight)-a-o};return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N?s["-moz-transform"]=s.transform="translate("+r.left+"px,"+r.top+"px)":(s.left=r.left,s.top=r.top),s}}});var F="iframe",R=function(t){if(e.currTemplate[F]){var i=e.currTemplate[F].find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(F,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push(F),x("BeforeChange",(function(t,e,i){e!==i&&(e===F?R():i===F&&R(!0))})),x(s+"."+F,(function(){R()}))},getIframe:function(i,n){var r=i.src,o=e.st.iframe;t.each(o.patterns,(function(){return r.indexOf(this.index)>-1?(this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1):void 0}));var a={};return o.srcAction&&(a[o.srcAction]=r),e._parseMarkup(n,a,i),e.updateStatus("ready"),n}}});var V=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},z=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,r=".mfp-gallery";return e.direction=!0,!(!i||!i.enabled)&&(o+=" mfp-gallery",x(h+r,(function(){i.navigateByImgClick&&e.wrap.on("click"+r,".mfp-img",(function(){return e.items.length>1?(e.next(),!1):void 0})),n.on("keydown"+r,(function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()}))})),x("UpdateStatus"+r,(function(t,i){i.text&&(i.text=z(i.text,e.currItem.index,e.items.length))})),x(c+r,(function(t,n,r,o){var a=e.items.length;r.counter=a>1?z(i.tCounter,o.index,a):""})),x("BuildControls"+r,(function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,r=e.arrowLeft=t(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(m),o=e.arrowRight=t(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(m);r.click((function(){e.prev()})),o.click((function(){e.next()})),e.container.append(r.add(o))}})),x(u+r,(function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout((function(){e.preloadNearbyImages(),e._preloadTimeout=null}),16)})),void x(s+r,(function(){n.off(r),e.wrap.off("click"+r),e.arrowRight=e.arrowLeft=null})))},next:function(){e.direction=!0,e.index=V(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=V(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),r=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?r:n);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?n:r);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=V(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),_("LazyLoad",n),"image"===n.type&&(n.img=t('<img class="mfp-img" />').on("load.mfploader",(function(){n.hasSize=!0})).on("error.mfploader",(function(){n.hasSize=!0,n.loadError=!0,_("LazyLoadError",n)})).attr("src",n.src)),n.preloaded=!0}}}});var B="retina";t.magnificPopup.registerModule(B,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,(function(t){return"@2x"+t}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;(i=isNaN(i)?i():i)>1&&(x("ImageHasSize."+B,(function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})})),x("ElementParse."+B,(function(e,n){n.src=t.replaceSrc(n,i)})))}}}}),P()})),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,n){var r,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(i),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,r=t(i).data("slick")||{},o.options=t.extend({},o.defaults,n,r),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=e++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var r=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=r.slideCount)return!1;r.unload(),"number"==typeof i?0===i&&0===r.$slides.length?t(e).appendTo(r.$slideTrack):n?t(e).insertBefore(r.$slides.eq(i)):t(e).insertAfter(r.$slides.eq(i)):!0===n?t(e).prependTo(r.$slideTrack):t(e).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),r.$slidesCache=r.$slides,r.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(e=-e),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:e},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:e},r.options.speed,r.options.easing,i):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),t({animStart:r.currentLeft}).animate({animStart:e},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),!1===r.options.vertical?(n[r.animType]="translate("+t+"px, 0px)",r.$slideTrack.css(n)):(n[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(r.applyTransition(),e=Math.ceil(e),!1===r.options.vertical?n[r.animType]="translate3d("+e+"px, 0px, 0px)":n[r.animType]="translate3d(0px,"+e+"px, 0px)",r.$slideTrack.css(n),i&&setTimeout((function(){r.disableTransition(),i.call()}),r.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,r,o,a,s=this;if(n=document.createDocumentFragment(),o=s.$slider.children(),s.options.rows>1){for(a=s.options.slidesPerRow*s.options.rows,r=Math.ceil(o.length/a),t=0;t<r;t++){var l=document.createElement("div");for(e=0;e<s.options.rows;e++){var c=document.createElement("div");for(i=0;i<s.options.slidesPerRow;i++){var h=t*a+(e*s.options.slidesPerRow+i);o.get(h)&&c.appendChild(o.get(h))}l.appendChild(c)}n.appendChild(l)}s.$slider.empty().append(n),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,r,o,a=this,s=!1,l=a.$slider.width(),c=window.innerWidth||t(window).width();if("window"===a.respondTo?o=c:"slider"===a.respondTo?o=l:"min"===a.respondTo&&(o=Math.min(c,l)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(n in r=null,a.breakpoints)a.breakpoints.hasOwnProperty(n)&&(!1===a.originalSettings.mobileFirst?o<a.breakpoints[n]&&(r=a.breakpoints[n]):o>a.breakpoints[n]&&(r=a.breakpoints[n]));null!==r?null!==a.activeBreakpoint?(r!==a.activeBreakpoint||i)&&(a.activeBreakpoint=r,"unslick"===a.breakpointSettings[r]?a.unslick(r):(a.options=t.extend({},a.originalSettings,a.breakpointSettings[r]),!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),s=r):(a.activeBreakpoint=r,"unslick"===a.breakpointSettings[r]?a.unslick(r):(a.options=t.extend({},a.originalSettings,a.breakpointSettings[r]),!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),s=r):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e),s=r),e||!1===s||a.$slider.trigger("breakpoint",[a,s])}},e.prototype.changeSlide=function(e,i){var n,r,o=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),n=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":r=0===n?o.options.slidesToScroll:o.options.slidesToShow-n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-r,!1,i);break;case"next":r=0===n?o.options.slidesToScroll:n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+r,!1,i);break;case"index":var s=0===e.data.index?0:e.data.index||a.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(s),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(i){i.stopImmediatePropagation();var n=t(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())}),0)}))},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,r,o=this,a=0;return o.slideOffset=0,i=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,r=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?r=-1.5:1===o.options.slidesToShow&&(r=-2)),a=i*o.options.slidesToShow*r),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,a=(o.options.slidesToShow-(t-o.slideCount))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,a=o.slideCount%o.options.slidesToScroll*i*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,a=(t+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,a=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*i*-1+a,!0===o.options.variableWidth&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===o.options.centerMode&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(o.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,r=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)r.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(r,o){if(o.offsetLeft-i+t(o).outerWidth()/2>-1*n.swipeLeft)return e=o,!1})),Math.abs(t(e).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),n=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){var r=n.indexOf(i);t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==r&&t(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+r})})),e.$dots.attr("role","tablist").find("li").each((function(r){var o=n[r];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+r,"aria-controls":"slick-slide"+e.instanceUid+o,"aria-label":r+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var r=e.currentSlide,o=r+e.options.slidesToShow;r<o;r++)e.$slides.eq(r).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),r=t(this).attr("data-sizes")||o.$slider.attr("data-sizes"),a=document.createElement("img");a.onload=function(){e.animate({opacity:0},100,(function(){n&&(e.attr("srcset",n),r&&e.attr("sizes",r)),e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,e,i])}))},a.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i])},a.src=i}))}var i,n,r,o=this;if(!0===o.options.centerMode?!0===o.options.infinite?r=(n=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(n=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),r=o.options.slidesToShow/2+1+2+o.currentSlide):(n=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,r=Math.ceil(n+o.options.slidesToShow),!0===o.options.fade&&(n>0&&n--,r<=o.slideCount&&r++)),i=o.$slider.find(".slick-slide").slice(n,r),"anticipated"===o.options.lazyLoad)for(var a=n-1,s=r,l=o.$slider.find(".slick-slide"),c=0;c<o.options.slidesToScroll;c++)a<0&&(a=o.slideCount-1),i=(i=i.add(l.eq(a))).add(l.eq(s)),a--,s++;e(i),o.slideCount<=o.options.slidesToShow?e(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?e(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&e(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,r,o,a,s=this,l=t("img[data-lazy]",s.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),r=i.attr("data-srcset"),o=i.attr("data-sizes")||s.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){r&&(i.attr("srcset",r),o&&i.attr("sizes",o)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,i,n]),s.progressiveLazyLoad()},a.onerror=function(){e<3?setTimeout((function(){s.progressiveLazyLoad(e+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,i,n]),s.progressiveLazyLoad())},a.src=n):s.$slider.trigger("allImagesLoaded",[s])},e.prototype.refresh=function(e){var i,n,r=this;n=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>n&&(r.currentSlide=n),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),i=r.currentSlide,r.destroy(!0),t.extend(r,r.initials,{currentSlide:i}),r.init(),e||r.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,r=this,o=r.options.responsive||null;if("array"===t.type(o)&&o.length){for(e in r.respondTo=r.options.respondTo||"window",o)if(n=r.breakpoints.length-1,o.hasOwnProperty(e)){for(i=o[e].breakpoint;n>=0;)r.breakpoints[n]&&r.breakpoints[n]===i&&r.breakpoints.splice(n,1),n--;r.breakpoints.push(i),r.breakpointSettings[i]=o[e].settings}r.breakpoints.sort((function(t,e){return r.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},e.prototype.setCSS=function(t){var e,i,n=this,r={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",r[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(r):(r={},!1===n.cssTransitions?(r[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(r)):(r[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(r)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each((function(n,r){e=i.slideWidth*n*-1,!0===i.options.rtl?t(r).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(r).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,r,o,a=this,s=!1;if("object"===t.type(arguments[0])?(n=arguments[0],s=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],r=arguments[1],s=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)a.options[n]=r;else if("multiple"===o)t.each(n,(function(t,e){a.options[t]=e}));else if("responsive"===o)for(i in r)if("array"!==t.type(a.options.responsive))a.options.responsive=[r[i]];else{for(e=a.options.responsive.length-1;e>=0;)a.options.responsive[e].breakpoint===r[i].breakpoint&&a.options.responsive.splice(e,1),e--;a.options.responsive.push(r[i])}s&&(a.unload(),a.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,n,r,o=this;if(i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode){var a=o.options.slidesToShow%2==0?1:0;e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e+a,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+t,i.slice(n-e+1+a,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,n=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-r),n+r).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(i=null,r.slideCount>r.options.slidesToShow)){for(n=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,e=r.slideCount;e>r.slideCount-n;e-=1)i=e-1,t(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(e=0;e<n+r.slideCount;e+=1)i=e,t(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),r=parseInt(n.attr("data-slick-index"));r||(r=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(r,!1,!0):i.slideHandler(r)},e.prototype.slideHandler=function(t,e,i){var n,r,o,a,s,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),a=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?a:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(a,(function(){c.postSlide(n)})):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(a,(function(){c.postSlide(n)})):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),r=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,r]),o=c.currentSlide,c.currentSlide=r,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(s=(s=c.getNavTarget()).slick("getSlick")).slideCount<=s.options.slidesToShow&&s.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(o),c.fadeSlide(r,(function(){c.postSlide(r)}))):c.postSlide(r),void c.animateHeight();!0!==i?c.animateSlide(l,(function(){c.postSlide(r)})):c.postSlide(r)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===r.options.rtl?"left":"right":n>=135&&n<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,r,o,a,s=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!s.dragging||s.scrolling||o&&1!==o.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,s.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&a>4?(s.scrolling=!0,!1):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=a),i=s.swipeDirection(),void 0!==t.originalEvent&&s.touchObject.swipeLength>4&&(s.swiping=!0,t.preventDefault()),r=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(r=s.touchObject.curY>s.touchObject.startY?1:-1),n=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,!1===s.options.infinite&&(0===s.currentSlide&&"right"===i||s.currentSlide>=s.getDotCount()&&"left"===i)&&(n=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+n*r:s.swipeLeft=e+n*(s.$list.height()/s.listWidth)*r,!0===s.options.verticalSwiping&&(s.swipeLeft=e+n*r),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,r=arguments[0],o=Array.prototype.slice.call(arguments,1),a=n.length;for(t=0;t<a;t++)if("object"==typeof r||void 0===r?n[t].slick=new e(n[t],r):i=n[t].slick[r].apply(n[t].slick,o),void 0!==i)return i;return n}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,(function(){"use strict";function t(e){return(t="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)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,i){return(l=s()?Reflect.construct:function(t,e,i){var n=[null];return n.push.apply(n,e),n=new(Function.bind.apply(t,n)),i&&a(n,i.prototype),n}).apply(null,arguments)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){if(t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e))return(e=Object.getOwnPropertyDescriptor(t,e)).get?e.get.call(i):e.value})(t,e,i||t)}function u(t){return t.charAt(0).toUpperCase()+t.slice(1)}function d(t){return Object.keys(t).map((function(e){return t[e]}))}function p(t){return Array.prototype.slice.call(t)}function f(t,e){e='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===U.indexOf(e)&&(U.push(e),Y(e))}function g(t){return t&&"function"==typeof t.toPromise}function m(t){return g(t)?t.toPromise():Promise.resolve(t)}function y(t){return t&&Promise.resolve(t)===t}function v(e){return e instanceof Element||"object"===t(e=e)&&e.jquery}function b(){return document.body.querySelector(".".concat(K.container))}function x(t){var e=b();return e?e.querySelector(t):null}function w(t){return x(".".concat(t))}function _(){return w(K.popup)}function S(){return w(K.icon)}function P(){return w(K.title)}function k(){return w(K.content)}function C(){return w(K["html-container"])}function T(){return w(K.image)}function A(){return w(K["progress-steps"])}function O(){return w(K["validation-message"])}function M(){return x(".".concat(K.actions," .").concat(K.confirm))}function E(){return x(".".concat(K.actions," .").concat(K.deny))}function I(){return x(".".concat(K.loader))}function D(){return x(".".concat(K.actions," .").concat(K.cancel))}function L(){return w(K.actions)}function j(){return w(K.header)}function N(){return w(K.footer)}function F(){return w(K["timer-progress-bar"])}function R(){return w(K.close)}function V(){var t=p(_().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0})),e=p(_().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((function(t){return"-1"!==t.getAttribute("tabindex")}));return function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(t.concat(e)).filter((function(t){return vt(t)}))}function z(){return!J()&&!document.body.classList.contains(K["no-backdrop"])}function B(t,e){t.textContent="",e&&(p((e=(new DOMParser).parseFromString(e,"text/html")).querySelector("head").childNodes).forEach((function(e){t.appendChild(e)})),p(e.querySelector("body").childNodes).forEach((function(e){t.appendChild(e)})))}function H(t,e){if(e){for(var i=e.split(/\s+/),n=0;n<i.length;n++)if(!t.classList.contains(i[n]))return;return 1}}function W(e,i,n){var r,o;if(o=i,p((r=e).classList).forEach((function(t){-1===d(K).indexOf(t)&&-1===d(Z).indexOf(t)&&-1===d(o.showClass).indexOf(t)&&r.classList.remove(t)})),i.customClass&&i.customClass[n]){if("string"!=typeof i.customClass[n]&&!i.customClass[n].forEach)return Y("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(t(i.customClass[n]),'"'));gt(e,i.customClass[n])}}var X="SweetAlert2:",Y=function(e){console.warn("".concat(X," ").concat("object"===t(e)?e.join(" "):e))},G=function(t){console.error("".concat(X," ").concat(t))},U=[],q=function(t){return"function"==typeof t?t():t},$=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),K=(ti=function(t){var e,i={};for(e in t)i[t[e]]="swal2-"+t[e];return i})(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Z=ti(["success","warning","info","question","error"]),J=function(){return document.body.classList.contains(K["toast-shown"])},Q={previousBodyPadding:null};function tt(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return yt(t,K[e]);case"checkbox":return t.querySelector(".".concat(K.checkbox," input"));case"radio":return t.querySelector(".".concat(K.radio," input:checked"))||t.querySelector(".".concat(K.radio," input:first-child"));case"range":return t.querySelector(".".concat(K.range," input"));default:return yt(t,K.input)}}function et(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function it(t,e,i){t&&e&&(e="string"==typeof e?e.split(/\s+/).filter(Boolean):e).forEach((function(e){t.forEach?t.forEach((function(t){i?t.classList.add(e):t.classList.remove(e)})):i?t.classList.add(e):t.classList.remove(e)}))}function nt(t,e,i){(i=i==="".concat(parseInt(i))?parseInt(i):i)||0===parseInt(i)?t.style[e]="number"==typeof i?"".concat(i,"px"):i:t.style.removeProperty(e)}function rt(t){t.style.display=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"flex"}function ot(t){t.style.display="none"}function at(t,e,i,n){(e=t.querySelector(e))&&(e.style[i]=n)}function st(t,e,i){e?rt(t,i):ot(t)}function lt(t){return!!(t.scrollHeight>t.clientHeight)}function ct(t){var e=window.getComputedStyle(t);t=parseFloat(e.getPropertyValue("animation-duration")||"0"),e=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<t||0<e}function ht(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=F();vt(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout((function(){i.style.transition="width ".concat(t/1e3,"s linear"),i.style.width="0%"}),10))}function ut(){return"undefined"==typeof window||"undefined"==typeof document}function dt(t){ii.isVisible()&&ft!==t.target.value&&ii.resetValidationMessage(),ft=t.target.value}function pt(e,i){e instanceof HTMLElement?i.appendChild(e):"object"===t(e)?xt(e,i):e&&B(i,e)}var ft,gt=function(t,e){it(t,e,!0)},mt=function(t,e){it(t,e,!1)},yt=function(t,e){for(var i=0;i<t.childNodes.length;i++)if(H(t.childNodes[i],e))return t.childNodes[i]},vt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},bt='\n <div aria-labelledby="'.concat(K.title,'" aria-describedby="').concat(K.content,'" class="').concat(K.popup,'" tabindex="-1">\n <div class="').concat(K.header,'">\n <ul class="').concat(K["progress-steps"],'"></ul>\n <div class="').concat(K.icon,'"></div>\n <img class="').concat(K.image,'" />\n <h2 class="').concat(K.title,'" id="').concat(K.title,'"></h2>\n <button type="button" class="').concat(K.close,'"></button>\n </div>\n <div class="').concat(K.content,'">\n <div id="').concat(K.content,'" class="').concat(K["html-container"],'"></div>\n <input class="').concat(K.input,'" />\n <input type="file" class="').concat(K.file,'" />\n <div class="').concat(K.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(K.select,'"></select>\n <div class="').concat(K.radio,'"></div>\n <label for="').concat(K.checkbox,'" class="').concat(K.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(K.label,'"></span>\n </label>\n <textarea class="').concat(K.textarea,'"></textarea>\n <div class="').concat(K["validation-message"],'" id="').concat(K["validation-message"],'"></div>\n </div>\n <div class="').concat(K.actions,'">\n <div class="').concat(K.loader,'"></div>\n <button type="button" class="').concat(K.confirm,'"></button>\n <button type="button" class="').concat(K.deny,'"></button>\n <button type="button" class="').concat(K.cancel,'"></button>\n </div>\n <div class="').concat(K.footer,'"></div>\n <div class="').concat(K["timer-progress-bar-container"],'">\n <div class="').concat(K["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),xt=function(t,e){t.jquery?wt(e,t):B(e,t.toString())},wt=function(t,e){if(t.textContent="",0 in e)for(var i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},_t=function(){if(ut())return!1;var t,e=document.createElement("div"),i={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&void 0!==e.style[t])return i[t];return!1}();function St(t,e,i){st(t,i["show".concat(u(e),"Button")],"inline-block"),B(t,i["".concat(e,"ButtonText")]),t.setAttribute("aria-label",i["".concat(e,"ButtonAriaLabel")]),t.className=K[e],W(t,i,"".concat(e,"Button")),gt(t,i["".concat(e,"ButtonClass")])}function Pt(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}function kt(t,e,i){var n,r;i.inputLabel&&(t.id=K.input,n=document.createElement("label"),r=K["input-label"],n.setAttribute("for",t.id),n.className=r,gt(n,i.customClass.inputLabel),n.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",n))}var Ct={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Tt=["input","file","range","select","radio","checkbox","textarea"],At=function(t){return t=K[t]||K.input,yt(k(),t)},Ot={};function Mt(t,e){var i,n,r,o=C();W(o,e,"htmlContainer"),e.html?(pt(e.html,o),rt(o,"block")):e.text?(o.textContent=e.text,rt(o,"block")):ot(o),t=t,i=e,n=k(),t=Ct.innerParams.get(t),r=!t||i.input!==t.input,Tt.forEach((function(t){var e=K[t],o=yt(n,e);(function(t,e){var i=tt(k(),t);if(i)for(var n in function(t){for(var e=0;e<t.attributes.length;e++){var i=t.attributes[e].name;-1===["type","value","style"].indexOf(i)&&t.removeAttribute(i)}}(i),e)"range"===t&&"placeholder"===n||i.setAttribute(n,e[n])})(t,i.inputAttributes),o.className=e,r&&ot(o)})),i.input&&(r&&function(t){if(!Ot[t.input])return G('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=At(t.input),i=Ot[t.input](e,t);rt(i),setTimeout((function(){et(i)}))}(i),function(t){var e=At(t.input);t.customClass&>(e,t.customClass.input)}(i)),W(k(),e,"content")}function Et(){return b()&&b().getAttribute("data-queue-step")}function It(t,e){var i=A();if(!e.progressSteps||0===e.progressSteps.length)return ot(i),0;rt(i),i.textContent="";var n=parseInt(void 0===e.currentProgressStep?Et():e.currentProgressStep);n>=e.progressSteps.length&&Y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,r){var o;o=t,t=document.createElement("li"),gt(t,K["progress-step"]),B(t,o),t=t;i.appendChild(t),r===n&>(t,K["active-progress-step"]),r!==e.progressSteps.length-1&&(t=e,r=document.createElement("li"),gt(r,K["progress-step-line"]),t.progressStepsDistance&&(r.style.width=t.progressStepsDistance),i.appendChild(r))}))}function Dt(t,e){var i,n,r;r=e,i=b(),n=_(),r.toast?(nt(i,"width",r.width),n.style.width="100%"):nt(n,"width",r.width),nt(n,"padding",r.padding),r.background&&(n.style.background=r.background),ot(O()),Bt(n,r),function(t,e){var i,n,r=b();r&&(n=r,"string"==typeof(i=e.backdrop)?n.style.background=i:i||gt([document.documentElement,document.body],K["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&Y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),n=r,(i=e.position)in K?gt(n,K[i]):(Y('The "position" parameter is not valid, defaulting to "center"'),gt(n,K.center)),i=r,!(n=e.grow)||"string"!=typeof n||(n="grow-".concat(n))in K&>(i,K[n]),W(r,e,"container"),(e=document.body.getAttribute("data-swal2-queue-step"))&&(r.setAttribute("data-queue-step",e),document.body.removeAttribute("data-swal2-queue-step")))}(0,e),function(t,e){var i,n=j();W(n,e,"header"),It(0,e),i=t,n=e,t=Ct.innerParams.get(i),i=S(),t&&n.icon===t.icon?(Ft(i,n),jt(i,n)):n.icon||n.iconHtml?n.icon&&-1===Object.keys(Z).indexOf(n.icon)?(G('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(n.icon,'"')),ot(i)):(rt(i),Ft(i,n),jt(i,n),gt(i,n.showClass.icon)):ot(i),function(t){var e=T();if(!t.imageUrl)return ot(e);rt(e,""),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),nt(e,"width",t.imageWidth),nt(e,"height",t.imageHeight),e.className=K.image,W(e,t,"image")}(e),n=e,st(i=P(),n.title||n.titleText,"block"),n.title&&pt(n.title,i),n.titleText&&(i.innerText=n.titleText),W(i,n,"title"),n=e,B(e=R(),n.closeButtonHtml),W(e,n,"closeButton"),st(e,n.showCloseButton),e.setAttribute("aria-label",n.closeButtonAriaLabel)}(t,e),Mt(t,e),function(t,e){var i=L(),n=I(),r=M(),o=E(),a=D();e.showConfirmButton||e.showDenyButton||e.showCancelButton||ot(i),W(i,e,"actions"),St(r,"confirm",e),St(o,"deny",e),St(a,"cancel",e),function(t,e,i,n){if(!n.buttonsStyling)return mt([t,e,i],K.styled);gt([t,e,i],K.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.denyButtonColor&&(e.style.backgroundColor=n.denyButtonColor),n.cancelButtonColor&&(i.style.backgroundColor=n.cancelButtonColor)}(r,o,a,e),e.reverseButtons&&(i.insertBefore(a,n),i.insertBefore(o,n),i.insertBefore(r,n)),B(n,e.loaderHtml),W(n,e,"loader")}(0,e),r=e,st(t=N(),r.footer),r.footer&&pt(r.footer,t),W(t,r,"footer"),"function"==typeof e.didRender?e.didRender(_()):"function"==typeof e.onRender&&e.onRender(_())}function Lt(){return M()&&M().click()}Ot.text=Ot.email=Ot.password=Ot.number=Ot.tel=Ot.url=function(e,i){return"string"==typeof i.inputValue||"number"==typeof i.inputValue?e.value=i.inputValue:y(i.inputValue)||Y('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(i.inputValue),'"')),kt(e,e,i),Pt(e,i),e.type=i.input,e},Ot.file=function(t,e){return kt(t,t,e),Pt(t,e),t},Ot.range=function(t,e){var i=t.querySelector("input"),n=t.querySelector("output");return i.value=e.inputValue,i.type=e.input,n.value=e.inputValue,kt(i,t,e),t},Ot.select=function(t,e){var i;return t.textContent="",e.inputPlaceholder&&(B(i=document.createElement("option"),e.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,t.appendChild(i)),kt(t,t,e),t},Ot.radio=function(t){return t.textContent="",t},Ot.checkbox=function(t,e){var i=tt(k(),"checkbox");return i.value=1,i.id=K.checkbox,i.checked=Boolean(e.inputValue),B(i=t.querySelector("span"),e.inputPlaceholder),t},Ot.textarea=function(t,e){function i(t){return parseInt(window.getComputedStyle(t).paddingLeft)+parseInt(window.getComputedStyle(t).paddingRight)}var n;return t.value=e.inputValue,Pt(t,e),kt(t,t,e),"MutationObserver"in window&&(n=parseInt(window.getComputedStyle(_()).width),new MutationObserver((function(){var e=t.offsetWidth+i(_())+i(k());_().style.width=n<e?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})),t};var jt=function(t,e){for(var i in Z)e.icon!==i&&mt(t,Z[i]);gt(t,Z[e.icon]),Rt(t,e),Nt(),W(t,e,"icon")},Nt=function(){for(var t=_(),e=window.getComputedStyle(t).getPropertyValue("background-color"),i=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),n=0;n<i.length;n++)i[n].style.backgroundColor=e},Ft=function(t,e){t.textContent="",e.iconHtml?B(t,Vt(e.iconHtml)):"success"===e.icon?B(t,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===e.icon?B(t,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):B(t,Vt({question:"?",warning:"!",info:"i"}[e.icon]))},Rt=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var i=0,n=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];i<n.length;i++)at(t,n[i],"backgroundColor",e.iconColor);at(t,".swal2-success-ring","borderColor",e.iconColor)}},Vt=function(t){return'<div class="'.concat(K["icon-content"],'">').concat(t,"</div>")},zt=[],Bt=function(t,e){t.className="".concat(K.popup," ").concat(vt(t)?e.showClass.popup:""),e.toast?(gt([document.documentElement,document.body],K["toast-shown"]),gt(t,K.toast)):gt(t,K.modal),W(t,e,"popup"),"string"==typeof e.customClass&>(t,e.customClass),e.icon&>(t,K["icon-".concat(e.icon)])};function Ht(t){(e=_())||ii.fire();var e=_(),i=L(),n=I();!t&&vt(M())&&(t=M()),rt(i),t&&(ot(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),gt([e,i],K.loading),rt(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()}function Wt(){if(Yt.timeout)return function(){var t=F(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var i=parseInt(window.getComputedStyle(t).width);i=parseInt(e/i*100);t.style.removeProperty("transition"),t.style.width="".concat(i,"%")}(),Yt.timeout.stop()}function Xt(){if(Yt.timeout){var t=Yt.timeout.start();return ht(t),t}}var Yt={},Gt=!1,Ut={};function qt(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var i in Ut){var n=e.getAttribute(i);if(n)return void Ut[i].fire({template:n})}}function $t(t){return Object.prototype.hasOwnProperty.call(Jt,t)}function Kt(t){return te[t]}function Zt(t){for(var e in t)$t(i=e)||Y('Unknown parameter "'.concat(i,'"')),t.toast&&(i=e,-1!==ee.indexOf(i)&&Y('The parameter "'.concat(i,'" is incompatible with toasts'))),Kt(e=e)&&f(e,Kt(e));var i}var Jt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},Qt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],te={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},ee=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ie=Object.freeze({isValidParameter:$t,isUpdatableParameter:function(t){return-1!==Qt.indexOf(t)},isDeprecatedParameter:Kt,argsToParams:function(e){var i={};return"object"!==t(e[0])||v(e[0])?["title","html","icon"].forEach((function(n,r){"string"==typeof(r=e[r])||v(r)?i[n]=r:void 0!==r&&G("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(t(r)))})):r(i,e[0]),i},isVisible:function(){return vt(_())},clickConfirm:Lt,clickDeny:function(){return E()&&E().click()},clickCancel:function(){return D()&&D().click()},getContainer:b,getPopup:_,getTitle:P,getContent:k,getHtmlContainer:C,getImage:T,getIcon:S,getInputLabel:function(){return w(K["input-label"])},getCloseButton:R,getActions:L,getConfirmButton:M,getDenyButton:E,getCancelButton:D,getLoader:I,getHeader:j,getFooter:N,getTimerProgressBar:F,getFocusableElements:V,getValidationMessage:O,isLoading:function(){return _().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return l(this,e)},mixin:function(t){return function(i){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(p,i);var l,u,d=(l=p,u=s(),function(){var t,e=o(l);return c(this,u?(t=o(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function p(){return e(this,p),d.apply(this,arguments)}return n(p,[{key:"_main",value:function(e,i){return h(o(p.prototype),"_main",this).call(this,e,r({},t,i))}}]),p}(this)},queue:function(t){f("Swal.queue()","async/await");var e=this;function i(t,e){zt=[],t(e)}zt=t;var n=[];return new Promise((function(t){!function r(o,a){o<zt.length?(document.body.setAttribute("data-swal2-queue-step",o),e.fire(zt[o]).then((function(e){void 0!==e.value?(n.push(e.value),r(o+1,a)):i(t,{dismiss:e.dismiss})}))):i(t,{value:n})}(0)}))},getQueueStep:Et,insertQueueStep:function(t,e){return e&&e<zt.length?zt.splice(e,0,t):zt.push(t)},deleteQueueStep:function(t){void 0!==zt[t]&&zt.splice(t,1)},showLoading:Ht,enableLoading:Ht,getTimerLeft:function(){return Yt.timeout&&Yt.timeout.getTimerLeft()},stopTimer:Wt,resumeTimer:Xt,toggleTimer:function(){var t=Yt.timeout;return t&&(t.running?Wt:Xt)()},increaseTimer:function(t){if(Yt.timeout)return ht(t=Yt.timeout.increase(t),!0),t},isTimerRunning:function(){return Yt.timeout&&Yt.timeout.isRunning()},bindClickHandler:function(){Ut[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Gt||(document.body.addEventListener("click",qt),Gt=!0)}});function ne(){var t,e;Ct.innerParams.get(this)&&(ot((t=Ct.domCache.get(this)).loader),(e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"))).length?rt(e[0],"inline-block"):vt(M())||vt(E())||vt(D())||ot(t.actions),mt([t.popup,t.actions],K.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1)}function re(){return!!window.MSInputMethodContext&&!!document.documentMode}function oe(){var t=b(),e=_();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var ae=function(t){var e=t.target,i=b();return!(se(t)||le(t)||e!==i&&(lt(i)||"INPUT"===e.tagName||lt(k())&&k().contains(e)))},se=function(t){return t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType},le=function(t){return t.touches&&1<t.touches.length},ce={swalPromiseResolve:new WeakMap};function he(t,e,i,n){J()?fe(t,n):(function(t){return new Promise((function(e){if(!t)return e();var i=window.scrollX,n=window.scrollY;Yt.restoreFocusTimeout=setTimeout((function(){Yt.previousActiveElement&&Yt.previousActiveElement.focus?(Yt.previousActiveElement.focus(),Yt.previousActiveElement=null):document.body&&document.body.focus(),e()}),100),void 0!==i&&void 0!==n&&window.scrollTo(i,n)}))}(i).then((function(){return fe(t,n)})),Yt.keydownTarget.removeEventListener("keydown",Yt.keydownHandler,{capture:Yt.keydownListenerCapture}),Yt.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),z()&&(null!==Q.previousBodyPadding&&(document.body.style.paddingRight="".concat(Q.previousBodyPadding,"px"),Q.previousBodyPadding=null),H(document.body,K.iosfix)&&(e=parseInt(document.body.style.top,10),mt(document.body,K.iosfix),document.body.style.top="",document.body.scrollTop=-1*e),"undefined"!=typeof window&&re()&&window.removeEventListener("resize",oe),p(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))),mt([document.documentElement,document.body],[K.shown,K["height-auto"],K["no-backdrop"],K["toast-shown"]])}function ue(t){var e,i,n,o=_();o&&(t=function(t){return void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:r({isConfirmed:!1,isDenied:!1,isDismissed:!1},t)}(t),(e=Ct.innerParams.get(this))&&!H(o,e.hideClass.popup)&&(i=ce.swalPromiseResolve.get(this),mt(o,e.showClass.popup),gt(o,e.hideClass.popup),n=b(),mt(n,e.showClass.backdrop),gt(n,e.hideClass.backdrop),function(t,e,i){var n=b(),r=_t&&ct(e),o=i.onClose,a=i.onAfterClose,s=i.willClose,l=i.didClose;de(e,s,o),r?pe(t,e,n,i.returnFocus,l||a):he(t,n,i.returnFocus,l||a)}(this,o,e),i(t)))}var de=function(t,e,i){null!==e&&"function"==typeof e?e(t):null!==i&&"function"==typeof i&&i(t)},pe=function(t,e,i,n,r){Yt.swalCloseEventFinishedCallback=he.bind(null,t,i,n,r),e.addEventListener(_t,(function(t){t.target===e&&(Yt.swalCloseEventFinishedCallback(),delete Yt.swalCloseEventFinishedCallback)}))},fe=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function ge(t,e,i){var n=Ct.domCache.get(t);e.forEach((function(t){n[t].disabled=i}))}function me(t,e){if(!t)return!1;if("radio"===t.type)for(var i=t.parentNode.parentNode.querySelectorAll("input"),n=0;n<i.length;n++)i[n].disabled=e;else t.disabled=e}var ye=function(){function t(i,n){e(this,t),this.callback=i,this.remaining=n,this.running=!1,this.start()}return n(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),ve={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function be(t){var e,i;(e=t).inputValidator||Object.keys(ve).forEach((function(t){e.input===t&&(e.inputValidator=ve[t])})),t.showLoaderOnConfirm&&!t.preConfirm&&Y("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=q(t.animation),(i=t).target&&("string"!=typeof i.target||document.querySelector(i.target))&&("string"==typeof i.target||i.target.appendChild)||(Y('Target parameter is not valid, defaulting to "body"'),i.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),function(t){var e,i,n,r,o,a=!!(r=b())&&(r.parentNode.removeChild(r),mt([document.documentElement,document.body],[K["no-backdrop"],K["toast-shown"],K["has-column"]]),!0);ut()?G("SweetAlert2 requires document to initialize"):((o=document.createElement("div")).className=K.container,a&>(o,K["no-transition"]),B(o,bt),(r="string"==typeof(e=t.target)?document.querySelector(e):e).appendChild(o),a=t,(e=_()).setAttribute("role",a.toast?"alert":"dialog"),e.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||e.setAttribute("aria-modal","true"),o=r,"rtl"===window.getComputedStyle(o).direction&>(b(),K.rtl),t=k(),a=yt(t,K.input),e=yt(t,K.file),i=t.querySelector(".".concat(K.range," input")),n=t.querySelector(".".concat(K.range," output")),r=yt(t,K.select),o=t.querySelector(".".concat(K.checkbox," input")),t=yt(t,K.textarea),a.oninput=dt,e.onchange=dt,r.onchange=dt,o.onchange=dt,t.oninput=dt,i.oninput=function(t){dt(t),n.value=i.value},i.onchange=function(t){dt(t),i.nextSibling.value=i.value})}(t)}function xe(t){var e=_();t.target===e&&(t=b(),e.removeEventListener(_t,xe),t.style.overflowY="auto")}function we(t,e){t.closePopup({isConfirmed:!0,value:e})}function _e(t,e,i){var n=V();if(n.length)return(e+=i)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();_().focus()}var Se=["swal-title","swal-html","swal-footer"],Pe=function(t,e){p(t.attributes).forEach((function(i){-1===e.indexOf(i.name)&&Y(['Unrecognized attribute "'.concat(i.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))},ke=function(t,e){"function"==typeof e.didOpen?setTimeout((function(){return e.didOpen(t)})):"function"==typeof e.onOpen&&setTimeout((function(){return e.onOpen(t)}))},Ce=function(t,e){_t&&ct(e)?(t.style.overflowY="hidden",e.addEventListener(_t,xe)):t.style.overflowY="auto"},Te=function(t,e,i){var n;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!H(document.body,K.iosfix)&&(n=document.body.scrollTop,document.body.style.top="".concat(-1*n,"px"),gt(document.body,K.iosfix),function(){var t,e=b();e.ontouchstart=function(e){t=ae(e)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}}(),navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||_().scrollHeight>window.innerHeight-44&&(b().style.paddingBottom="".concat(44,"px"))),"undefined"!=typeof window&&re()&&(oe(),window.addEventListener("resize",oe)),e&&"hidden"!==i&&null===Q.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Q.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Q.previousBodyPadding+function(){var t=document.createElement("div");t.className=K["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px")),setTimeout((function(){t.scrollTop=0}))},Ae=function(t,e,i){gt(t,i.showClass.backdrop),e.style.setProperty("opacity","0","important"),rt(e),setTimeout((function(){gt(e,i.showClass.popup),e.style.removeProperty("opacity")}),10),gt([document.documentElement,document.body],K.shown),i.heightAuto&&i.backdrop&&!i.toast&>([document.documentElement,document.body],K["height-auto"])},Oe=function(e,i){function n(t){return Me[i.input](r,Ee(t),i)}var r=k();g(i.inputOptions)||y(i.inputOptions)?(Ht(M()),m(i.inputOptions).then((function(t){e.hideLoading(),n(t)}))):"object"===t(i.inputOptions)?n(i.inputOptions):G("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(i.inputOptions)))},Me={select:function(t,e,i){function n(t,e,n){var r=document.createElement("option");r.value=n,B(r,e),r.selected=Ie(n,i.inputValue),t.appendChild(r)}var r=yt(t,K.select);e.forEach((function(t){var e,i=t[0];t=t[1];Array.isArray(t)?((e=document.createElement("optgroup")).label=i,e.disabled=!1,r.appendChild(e),t.forEach((function(t){return n(e,t[1],t[0])}))):n(r,t,i)})),r.focus()},radio:function(t,e,i){var n=yt(t,K.radio);e.forEach((function(t){var e=t[0],r=t[1],o=document.createElement("input");t=document.createElement("label");o.type="radio",o.name=K.radio,o.value=e,Ie(e,i.inputValue)&&(o.checked=!0),B(e=document.createElement("span"),r),e.className=K.label,t.appendChild(o),t.appendChild(e),n.appendChild(t)})),(e=n.querySelectorAll("input")).length&&e[0].focus()}},Ee=function e(i){var n=[];return"undefined"!=typeof Map&&i instanceof Map?i.forEach((function(i,r){"object"===t(i)&&(i=e(i)),n.push([r,i])})):Object.keys(i).forEach((function(r){var o=i[r];"object"===t(o)&&(o=e(o)),n.push([r,o])})),n},Ie=function(t,e){return e&&e.toString()===t.toString()},De=function(t,e,i){var n=function(t,e){var i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return function(t){return t.checked?1:0}(i);case"radio":return function(t){return t.checked?t.value:null}(i);case"file":return function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null}(i);default:return e.inputAutoTrim?i.value.trim():i.value}}(t,e);e.inputValidator?Le(t,e,n):t.getInput().checkValidity()?("deny"===i?je:Ne)(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},Le=function(t,e,i){t.disableInput(),Promise.resolve().then((function(){return m(e.inputValidator(i,e.validationMessage))})).then((function(n){t.enableButtons(),t.enableInput(),n?t.showValidationMessage(n):Ne(t,e,i)}))},je=function(t,e,i){e.showLoaderOnDeny&&Ht(E()),e.preDeny?Promise.resolve().then((function(){return m(e.preDeny(i,e.validationMessage))})).then((function(e){!1===e?t.hideLoading():t.closePopup({isDenied:!0,value:void 0===e?i:e})})):t.closePopup({isDenied:!0,value:i})},Ne=function(t,e,i){e.showLoaderOnConfirm&&Ht(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return m(e.preConfirm(i,e.validationMessage))})).then((function(e){vt(O())||!1===e?t.hideLoading():we(t,void 0===e?i:e)}))):we(t,i)},Fe=["ArrowRight","ArrowDown","Right","Down"],Re=["ArrowLeft","ArrowUp","Left","Up"],Ve=["Escape","Esc"],ze=function(t,e,i){e.isComposing||e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML&&-1===["textarea","file"].indexOf(i.input)&&(Lt(),e.preventDefault())},Be=function(t,e){for(var i=t.target,n=V(),r=-1,o=0;o<n.length;o++)if(i===n[o]){r=o;break}t.shiftKey?_e(0,r,-1):_e(0,r,1),t.stopPropagation(),t.preventDefault()},He=function(t){-1!==[M(),E(),D()].indexOf(document.activeElement)&&(t=-1!==Fe.indexOf(t)?"nextElementSibling":"previousElementSibling",(t=document.activeElement[t])&&t.focus())},We=function(t,e,i){q(e.allowEscapeKey)&&(t.preventDefault(),i($.esc))},Xe=!1;function Ye(e,i){var n=function(e){return(e="string"==typeof e.template?document.querySelector(e.template):e.template)?(function(t){var e=Se.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);p(t.querySelectorAll("*")).forEach((function(i){i.parentNode===t&&(i=i.tagName.toLowerCase(),-1===e.indexOf(i)&&Y("Unrecognized element <".concat(i,">")))}))}(e=e.content||e),r(function(e){var i={};return p(e.querySelectorAll("swal-param")).forEach((function(e){Pe(e,["name","value"]);var n=e.getAttribute("name");e=e.getAttribute("value"),"boolean"==typeof Jt[n]&&"false"===e&&(e=!1),"object"===t(Jt[n])&&(e=JSON.parse(e)),i[n]=e})),i}(e),function(t){var e={};return p(t.querySelectorAll("swal-button")).forEach((function(t){Pe(t,["type","color","aria-label"]);var i=t.getAttribute("type");e["".concat(i,"ButtonText")]=t.innerHTML,e["show".concat(u(i),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(i,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(i,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),e}(e),function(t){var e={};return(t=t.querySelector("swal-image"))&&(Pe(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt"))),e}(e),function(t){var e={};return(t=t.querySelector("swal-icon"))&&(Pe(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e}(e),function(t){var e={},i=t.querySelector("swal-input");return i&&(Pe(i,["type","label","placeholder","value"]),e.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(e.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(e.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(e.inputValue=i.getAttribute("value"))),(t=t.querySelectorAll("swal-input-option")).length&&(e.inputOptions={},p(t).forEach((function(t){Pe(t,["value"]);var i=t.getAttribute("value");t=t.innerHTML,e.inputOptions[i]=t}))),e}(e),function(t,e){var i,n={};for(i in e){var r=e[i],o=t.querySelector(r);o&&(Pe(o,[]),n[r.replace(/^swal-/,"")]=o.innerHTML.trim())}return n}(e,Se))):{}}(e);return(n=r({},Jt,i,n,e)).showClass=r({},Jt.showClass,n.showClass),n.hideClass=r({},Jt.hideClass,n.hideClass),!1===e.animation&&(n.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},n.hideClass={}),n}function Ge(t,e,i){return new Promise((function(n){function r(e){t.closePopup({isDismissed:!0,dismiss:e})}var o,a,s,l;ce.swalPromiseResolve.set(t,n),e.confirmButton.onclick=function(){return n=i,(e=t).disableButtons(),void(n.input?De(e,n,"confirm"):Ne(e,n,!0));var e,n},e.denyButton.onclick=function(){return n=i,(e=t).disableButtons(),void(n.returnInputValueOnDeny?De(e,n,"deny"):je(e,n,!1));var e,n},e.cancelButton.onclick=function(){return e=r,t.disableButtons(),void e($.cancel);var e},e.closeButton.onclick=function(){return r($.close)},o=t,l=e,n=r,Ct.innerParams.get(o).toast?function(t,e,i){e.popup.onclick=function(){var e=Ct.innerParams.get(t);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||i($.close)}}(o,l,n):(function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Xe=!0)}}}(l),function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,e.target!==t.popup&&!t.popup.contains(e.target)||(Xe=!0)}}}(l),function(t,e,i){e.container.onclick=function(n){var r=Ct.innerParams.get(t);Xe?Xe=!1:n.target===e.container&&q(r.allowOutsideClick)&&i($.backdrop)}}(o,l,n)),a=t,l=i,s=r,(n=Yt).keydownTarget&&n.keydownHandlerAdded&&(n.keydownTarget.removeEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture}),n.keydownHandlerAdded=!1),l.toast||(n.keydownHandler=function(t){return function(t,e,i){var n=Ct.innerParams.get(t);n&&(n.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?ze(t,e,n):"Tab"===e.key?Be(e,n):-1!==[].concat(Fe,Re).indexOf(e.key)?He(e.key):-1!==Ve.indexOf(e.key)&&We(e,n,i))}(a,t,s)},n.keydownTarget=l.keydownListenerCapture?window:_(),n.keydownListenerCapture=l.keydownListenerCapture,n.keydownTarget.addEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture}),n.keydownHandlerAdded=!0),l=t,"select"===(n=i).input||"radio"===n.input?Oe(l,n):-1!==["text","email","number","tel","textarea"].indexOf(n.input)&&(g(n.inputValue)||y(n.inputValue))&&function(t,e){var i=t.getInput();ot(i),m(e.inputValue).then((function(n){i.value="number"===e.input?parseFloat(n)||0:"".concat(n),rt(i),i.focus(),t.hideLoading()})).catch((function(e){G("Error in inputValue promise: ".concat(e)),i.value="",rt(i),i.focus(),t.hideLoading()}))}(l,n),function(t){var e=b(),i=_();"function"==typeof t.willOpen?t.willOpen(i):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(i);var n=window.getComputedStyle(document.body).overflowY;Ae(e,i,t),setTimeout((function(){Ce(e,i)}),10),z()&&(Te(e,t.scrollbarPadding,n),p(document.body.children).forEach((function(t){t===b()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,b())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),J()||Yt.previousActiveElement||(Yt.previousActiveElement=document.activeElement),ke(i,t),mt(e,K["no-transition"])}(i),qe(Yt,i,r),$e(e,i),setTimeout((function(){e.container.scrollTop=0}))}))}function Ue(t){var e={popup:_(),container:b(),content:k(),actions:L(),confirmButton:M(),denyButton:E(),cancelButton:D(),loader:I(),closeButton:R(),validationMessage:O(),progressSteps:A()};return Ct.domCache.set(t,e),e}var qe=function(t,e,i){var n=F();ot(n),e.timer&&(t.timeout=new ye((function(){i("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(rt(n),setTimeout((function(){t.timeout&&t.timeout.running&&ht(e.timer)}))))},$e=function(t,e){if(!e.toast)return q(e.allowEnterKey)?void(Ke(t,e)||_e(0,-1,1)):Ze()},Ke=function(t,e){return e.focusDeny&&vt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&vt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!vt(t.confirmButton)||(t.confirmButton.focus(),0))},Ze=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var Je,Qe=function(t){for(var e in t)t[e]=new WeakMap},ti=Object.freeze({hideLoading:ne,disableLoading:ne,getInput:function(t){var e=Ct.innerParams.get(t||this);return(t=Ct.domCache.get(t||this))?tt(t.content,e.input):null},close:ue,closePopup:ue,closeModal:ue,closeToast:ue,enableButtons:function(){ge(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){ge(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return me(this.getInput(),!1)},disableInput:function(){return me(this.getInput(),!0)},showValidationMessage:function(t){var e=Ct.domCache.get(this),i=Ct.innerParams.get(this);B(e.validationMessage,t),e.validationMessage.className=K["validation-message"],i.customClass&&i.customClass.validationMessage&>(e.validationMessage,i.customClass.validationMessage),rt(e.validationMessage),(e=this.getInput())&&(e.setAttribute("aria-invalid",!0),e.setAttribute("aria-describedBy",K["validation-message"]),et(e),gt(e,K.inputerror))},resetValidationMessage:function(){var t=Ct.domCache.get(this);t.validationMessage&&ot(t.validationMessage),(t=this.getInput())&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),mt(t,K.inputerror))},getProgressSteps:function(){return Ct.domCache.get(this).progressSteps},_main:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Zt(r({},e,t)),Yt.currentInstance&&Yt.currentInstance._destroy(),Yt.currentInstance=this,be(t=Ye(t,e)),Object.freeze(t),Yt.timeout&&(Yt.timeout.stop(),delete Yt.timeout),clearTimeout(Yt.restoreFocusTimeout),e=Ue(this),Dt(this,t),Ct.innerParams.set(this,t),Ge(this,e,t)},update:function(t){var e=_(),i=Ct.innerParams.get(this);if(!e||H(e,i.hideClass.popup))return Y("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var n={};Object.keys(t).forEach((function(e){ii.isUpdatableParameter(e)?n[e]=t[e]:Y('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),Dt(this,i=r({},i,n)),Ct.innerParams.set(this,i),Object.defineProperties(this,{params:{value:r({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var t=Ct.domCache.get(this),e=Ct.innerParams.get(this);e&&(t.popup&&Yt.swalCloseEventFinishedCallback&&(Yt.swalCloseEventFinishedCallback(),delete Yt.swalCloseEventFinishedCallback),Yt.deferDisposalTimer&&(clearTimeout(Yt.deferDisposalTimer),delete Yt.deferDisposalTimer),function(t){"function"==typeof t.didDestroy?t.didDestroy():"function"==typeof t.onDestroy&&t.onDestroy()}(e),function(t){delete t.params,delete Yt.keydownHandler,delete Yt.keydownTarget,Qe(Ct),Qe(ce)}(this))}}),ei=function(){function t(){if(e(this,t),"undefined"!=typeof window){"undefined"==typeof Promise&&G("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Je=this;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var o=Object.freeze(this.constructor.argsToParams(n));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}}),o=this._main(this.params),Ct.promise.set(this,o)}}return n(t,[{key:"then",value:function(t){return Ct.promise.get(this).then(t)}},{key:"finally",value:function(t){return Ct.promise.get(this).finally(t)}}]),t}();r(ei.prototype,ti),r(ei,ie),Object.keys(ti).forEach((function(t){ei[t]=function(){if(Je)return Je[t].apply(Je,arguments)}})),ei.DismissReason=$,ei.version="10.16.9";var ii=ei;return ii.default=ii})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(t){"use strict";var e,i;e=window,i=function(){return function(){function t(t,e,i){var n,r=t.length;for(n=0;n<r;n+=1)e.call(i,t[n],n)}function e(e,i){var n=[].slice.call(arguments,2);if(!(r.indexOf(i)>-1))throw new Error(i+" event cannot be found on TreeView.");e.handlers[i]&&e.handlers[i]instanceof Array&&t(e.handlers[i],(function(t){window.setTimeout((function(){t.callback.apply(t.context,n)}),0)}))}function i(i){var n,r=function(t){try{return t instanceof HTMLElement}catch(e){return"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}}(i.node)?i.node:document.getElementById(i.node),o=[],a=function(e){var i=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div"),o=document.createElement("div");if(i.setAttribute("class","tree-leaf"),n.setAttribute("class","tree-leaf-content"),n.setAttribute("data-item",JSON.stringify(e)),r.setAttribute("class","tree-leaf-text"),r.textContent=e.name,o.setAttribute("class","tree-expando "+(e.expanded?"expanded":"")),o.textContent=e.expanded?"-":"+",n.appendChild(o),n.appendChild(r),i.appendChild(n),e.children&&e.children.length>0){var s=document.createElement("div");s.setAttribute("class","tree-child-leaves"),t(e.children,(function(t){var e=a(t);s.appendChild(e)})),e.expanded||s.classList.add("hidden"),i.appendChild(s)}else o.classList.add("hidden");return i};t(i.data,(function(t){o.push(a.call(i,t))})),r.innerHTML=o.map((function(t){return t.outerHTML})).join(""),n=function(t){var n=(t.target||t.currentTarget).parentNode,r=JSON.parse(n.getAttribute("data-item")),o=n.parentNode.querySelector(".tree-child-leaves");o?o.classList.contains("hidden")?i.expand(n,o):i.collapse(n,o):e(i,"select",{target:t,data:r})},t(r.querySelectorAll(".tree-leaf-text"),(function(t){t.onclick=n})),t(r.querySelectorAll(".tree-expando"),(function(t){t.onclick=n}))}function n(t,e){this.handlers={},this.node=e,this.data=t,i(this)}var r=["expand","expandAll","collapse","collapseAll","select"];return n.prototype.expand=function(t,i,n){t.querySelector(".tree-expando").textContent="-",i.classList.remove("hidden"),n||e(this,"expand",{target:t,leaves:i})},n.prototype.expandAll=function(){var i=this;t(document.getElementById(i.node).querySelectorAll(".tree-expando"),(function(t){var e=t.parentNode,n=e.parentNode.querySelector(".tree-child-leaves");e&&n&&e.hasAttribute("data-item")&&i.expand(e,n,!0)})),e(this,"expandAll",{})},n.prototype.collapse=function(t,i,n){t.querySelector(".tree-expando").textContent="+",i.classList.add("hidden"),n||e(this,"collapse",{target:t,leaves:i})},n.prototype.collapseAll=function(){var i=this;t(document.getElementById(i.node).querySelectorAll(".tree-expando"),(function(t){var e=t.parentNode,n=e.parentNode.querySelector(".tree-child-leaves");e&&n&&e.hasAttribute("data-item")&&i.collapse(e,n,!0)})),e(this,"collapseAll",{})},n.prototype.on=function(t,e,i){if(!(r.indexOf(t)>-1))throw new Error(t+" is not supported by TreeView.");this.handlers[t]||(this.handlers[t]=[]),this.handlers[t].push({callback:e,context:i})},n.prototype.off=function(t,e){var i,n=!1;this.handlers[t]instanceof Array&&(this.handlers[t].forEach((function(t,r){i=r,t.callback!==e||n||(n=!0)})),n&&this.handlers[t].splice(i,1))},n}()},"function"==typeof t&&t.amd?t(i):"object"==typeof exports?module.exports=i():e.TreeView=i()}(window.define),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,(function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(17),r=i(18),o=i(19),a=i(48),s=i(49),l=i(50),c=i(51),h=i(52),u=i(11),d=i(29),p=i(30),f=i(28),g=i(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:n.default,Format:r.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:h.default,Attributor:{Attribute:u.default,Class:d.default,Style:p.default,Store:f.default}};e.default=m},function(t,e,i){"use strict";function n(t,e){var i;if(void 0===e&&(e=a.ANY),"string"==typeof t)i=h[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)i=h.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?i=h.block:t&a.LEVEL&a.INLINE&&(i=h.inline);else if(t instanceof HTMLElement){var n=(t.getAttribute("class")||"").split(/\s+/);for(var r in n)if(i=l[n[r]])break;i=i||c[t.tagName]}return null==i?null:e&a.LEVEL&i.scope&&e&a.TYPE&i.scope?i:null}var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var i=this;return e="[Parchment] "+e,(i=t.call(this,e)||this).message=e,i.name=i.constructor.name,i}return r(e,t),e}(Error);e.ParchmentError=o;var a,s={},l={},c={},h={};e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var i=n(t);if(null==i)throw new o("Unable to create "+t+" blot");var r=i;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)},e.find=function t(i,n){return void 0===n&&(n=!1),null==i?null:null!=i[e.DATA_KEY]?i[e.DATA_KEY].blot:n?t(i.parentNode,n):null},e.query=n,e.register=function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(e.length>1)return e.map((function(e){return t(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)s[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=c[t]&&null!=n.className||(c[t]=n)}))}return n}},function(t,e){"use strict";var i=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},s=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var e,r=i.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&i.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;for(e in t);return void 0===e||i.call(t,e)},l=function(t,e){r&&"__proto__"===e.name?r(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},c=function(t,e){if("__proto__"===e){if(!i.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,i,n,r,o,h,u=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},d=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});d<p;++d)if(null!=(e=arguments[d]))for(i in e)n=c(u,i),u!==(r=c(e,i))&&(f&&r&&(s(r)||(o=a(r)))?(o?(o=!1,h=n&&a(n)?n:[]):h=n&&s(n)?n:{},l(u,{name:i,newValue:t(f,h,r)})):void 0!==r&&l(u,{name:i,newValue:r}));return u}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,h.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:s(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},h=n(i(2)),u=n(i(4)),d=n(i(0)),p=n(i(14)),f=n(i(5)),g=n(i(8)),m=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"attach",value:function(){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new d.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new u.default).insert(this.value(),(0,h.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var i=d.default.query(t,d.default.Scope.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,e)}},{key:"formatAt",value:function(t,e,i,n){this.format(i,n)}},{key:"insertAt",value:function(t,i,n){if("string"==typeof i&&i.endsWith("\n")){var r=d.default.create(y.blotName);this.parent.insertBefore(r,0===t?this:this.next),r.insertAt(0,i.slice(0,-1))}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,i,n)}}]),e}(d.default.Embed);m.scope=d.default.Scope.BLOCK_BLOT;var y=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.cache={},i}return a(e,t),l(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(d.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),s(e))}),new u.default).insert("\n",s(this))),this.cache.delta}},{key:"deleteAt",value:function(t,i){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,i),this.cache={}}},{key:"formatAt",value:function(t,i,n,r){i<=0||(d.default.query(n,d.default.Scope.BLOCK)?t+i===this.length()&&this.format(n,r):c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(i,this.length()-t-1),n,r),this.cache={})}},{key:"insertAt",value:function(t,i,n){if(null!=n)return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,i,n);if(0!==i.length){var r=i.split("\n"),o=r.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var a=this;r.reduce((function(t,e){return(a=a.split(t,!0)).insertAt(0,e),e.length}),t+o.length)}}},{key:"insertBefore",value:function(t,i){var n=this.children.head;c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,i),n instanceof p.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,i){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,i),this.cache={}}},{key:"optimize",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i&&(0===t||t>=this.length()-1)){var n=this.clone();return 0===t?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var r=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,i);return this.cache={},r}}]),e}(d.default.Block);y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[f.default,d.default.Embed,g.default],e.bubbleFormats=s,e.BlockEmbed=m,e.default=y},function(t,e,i){var n=i(54),r=i(12),o=i(2),a=i(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var i={};return 0===t.length?this:(i.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i))},l.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var i={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i)},l.prototype.push=function(t){var e=this.ops.length,i=this.ops[e-1];if(t=o(!0,{},t),"object"==typeof i){if("number"==typeof t.delete&&"number"==typeof i.delete)return this.ops[e-1]={delete:i.delete+t.delete},this;if("number"==typeof i.delete&&null!=t.insert&&(e-=1,"object"!=typeof(i=this.ops[e-1])))return this.ops.unshift(t),this;if(r(t.attributes,i.attributes)){if("string"==typeof t.insert&&"string"==typeof i.insert)return this.ops[e-1]={insert:i.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof i.retain)return this.ops[e-1]={retain:i.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],i=[];return this.forEach((function(n){(t(n)?e:i).push(n)})),[e,i]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var i=[],n=a.iterator(this.ops),r=0;r<e&&n.hasNext();){var o;r<t?o=n.next(t-r):(o=n.next(e-r),i.push(o)),r+=a.length(o)}return new l(i)},l.prototype.compose=function(t){var e=a.iterator(this.ops),i=a.iterator(t.ops),n=[],o=i.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),n.push(e.next());o.retain-s>0&&i.next(o.retain-s)}for(var c=new l(n);e.hasNext()||i.hasNext();)if("insert"===i.peekType())c.push(i.next());else if("delete"===e.peekType())c.push(e.next());else{var h=Math.min(e.peekLength(),i.peekLength()),u=e.next(h),d=i.next(h);if("number"==typeof d.retain){var p={};"number"==typeof u.retain?p.retain=h:p.insert=u.insert;var f=a.attributes.compose(u.attributes,d.attributes,"number"==typeof u.retain);if(f&&(p.attributes=f),c.push(p),!i.hasNext()&&r(c.ops[c.ops.length-1],p)){var g=new l(e.rest());return c.concat(g).chop()}}else"number"==typeof d.delete&&"number"==typeof u.retain&&c.push(d)}return c.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var i=[this,t].map((function(e){return e.map((function(i){if(null!=i.insert)return"string"==typeof i.insert?i.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new l,c=n(i[0],i[1],e),h=a.iterator(this.ops),u=a.iterator(t.ops);return c.forEach((function(t){for(var e=t[1].length;e>0;){var i=0;switch(t[0]){case n.INSERT:i=Math.min(u.peekLength(),e),o.push(u.next(i));break;case n.DELETE:i=Math.min(e,h.peekLength()),h.next(i),o.delete(i);break;case n.EQUAL:i=Math.min(h.peekLength(),u.peekLength(),e);var s=h.next(i),l=u.next(i);r(s.insert,l.insert)?o.retain(i,a.attributes.diff(s.attributes,l.attributes)):o.push(l).delete(i)}e-=i}})),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";for(var i=a.iterator(this.ops),n=new l,r=0;i.hasNext();){if("insert"!==i.peekType())return;var o=i.peek(),s=a.length(o)-i.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(c<0)n.push(i.next());else if(c>0)n.push(i.next(c));else{if(!1===t(n,i.next(1).attributes||{},r))return;r+=1,n=new l}}n.length()>0&&t(n,{},r)},l.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var i=a.iterator(this.ops),n=a.iterator(t.ops),r=new l;i.hasNext()||n.hasNext();)if("insert"!==i.peekType()||!e&&"insert"===n.peekType())if("insert"===n.peekType())r.push(n.next());else{var o=Math.min(i.peekLength(),n.peekLength()),s=i.next(o),c=n.next(o);if(s.delete)continue;c.delete?r.push(c):r.retain(o,a.attributes.transform(s.attributes,c.attributes,e))}else r.retain(a.length(i.next()));return r.chop()},l.prototype.transformPosition=function(t,e){e=!!e;for(var i=a.iterator(this.ops),n=0;i.hasNext()&&n<=t;){var r=i.peekLength(),o=i.peekType();i.next(),"delete"!==o?("insert"===o&&(n<t||!e)&&(t+=r),n+=r):t-=Math.min(r,t-n)}return t},t.exports=l},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},l=n(i(8)),c=n(i(0)),h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"formatAt",value:function(t,i,n,r){if(e.compare(this.statics.blotName,n)<0&&c.default.query(n,c.default.Scope.BLOT)){var o=this.isolate(t,i);r&&o.wrap(n,r)}else s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,i,n,r)}},{key:"optimize",value:function(t){if(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}}],[{key:"compare",value:function(t,i){var n=e.order.indexOf(t),r=e.order.indexOf(i);return n>=0||r>=0?n-r:t===i?0:t<i?-1:1}}]),e}(c.default.Inline);h.allowedChildren=[h,c.default.Embed,l.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if((e=(0,x.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==P.DEFAULTS.theme){if(e.theme=P.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=_.default;var i=(0,x.default)(!0,{},e.theme.DEFAULTS);[i,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var n=Object.keys(i.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var i=P.import("modules/"+e);return null==i?S.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=i.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,x.default)(!0,{},P.DEFAULTS,{modules:n},i,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,i){return e.modules[i]&&(t[i]=e.modules[i]),t}),{}),e}function s(t,e,i,n){if(this.options.strict&&!this.isEnabled()&&e===g.default.sources.USER)return new p.default;var r=null==i?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=r&&(!0===i&&(i=r.index),null==n?r=c(r,a,e):0!==n&&(r=c(r,i,n,e)),this.setSelection(r,g.default.sources.SILENT)),a.length()>0){var s,l,h=[g.default.events.TEXT_CHANGE,a,o,e];if((s=this.emitter).emit.apply(s,[g.default.events.EDITOR_CHANGE].concat(h)),e!==g.default.sources.SILENT)(l=this.emitter).emit.apply(l,h)}return a}function l(t,e,i,n,r){var o={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(r=n,n=i,i=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(r=n,n=i,i=e,e=0),"object"===(void 0===i?"undefined":h(i))?(o=i,r=n):"string"==typeof i&&(null!=n?o[i]=n:r=i),[t,e,o,r=r||g.default.sources.API]}function c(t,e,i,n){if(null==t)return null;var r=void 0,o=void 0;if(e instanceof p.default){var a=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,n!==g.default.sources.USER)})),s=u(a,2);r=s[0],o=s[1]}else{var l=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&n===g.default.sources.USER?t:i>=0?t+i:Math.max(e,t+i)})),c=u(l,2);r=c[0],o=c[1]}return new v.Range(r,o-r)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var h="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},u=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},d=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();i(53);var p=n(i(4)),f=n(i(57)),g=n(i(9)),m=n(i(7)),y=n(i(0)),v=i(22),b=n(v),x=n(i(2)),w=n(i(10)),_=n(i(32)),S=(0,w.default)("quill"),P=function(){function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,t),this.options=a(e,n),this.container=this.options.container,null==this.container)return S.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new b.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,(function(t){t===g.default.events.TEXT_CHANGE&&i.root.classList.toggle("ql-blank",i.editor.isBlank())})),this.emitter.on(g.default.events.SCROLL_UPDATE,(function(t,e){var n=i.selection.lastRange,r=n&&0===n.length?n.index:void 0;s.call(i,(function(){return i.editor.update(null,e,r)}),t)}));var l=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(l),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),w.default.level(t)}},{key:"find",value:function(t){return t.__quill||y.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&S.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var r=t.attrName||t.blotName;"string"==typeof r?this.register("formats/"+r,t,e):Object.keys(t).forEach((function(n){i.register(n,t[n],e)}))}else null==this.imports[t]||n||S.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?y.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),d(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var i=t;(t=document.createElement("div")).classList.add(i)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,i){var n=this,r=l(t,e,i),o=u(r,4);return t=o[0],e=o[1],i=o[3],s.call(this,(function(){return n.editor.deleteText(t,e)}),i,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return s.call(this,(function(){var n=i.getSelection(!0),o=new p.default;if(null==n)return o;if(y.default.query(t,y.default.Scope.BLOCK))o=i.editor.formatLine(n.index,n.length,r({},t,e));else{if(0===n.length)return i.selection.format(t,e),o;o=i.editor.formatText(n.index,n.length,r({},t,e))}return i.setSelection(n,g.default.sources.SILENT),o}),n)}},{key:"formatLine",value:function(t,e,i,n,r){var o,a=this,c=l(t,e,i,n,r),h=u(c,4);return t=h[0],e=h[1],o=h[2],r=h[3],s.call(this,(function(){return a.editor.formatLine(t,e,o)}),r,t,0)}},{key:"formatText",value:function(t,e,i,n,r){var o,a=this,c=l(t,e,i,n,r),h=u(c,4);return t=h[0],e=h[1],o=h[2],r=h[3],s.call(this,(function(){return a.editor.formatText(t,e,o)}),r,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=void 0;i="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,i=l(t,e),n=u(i,2);return t=n[0],e=n[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,i=l(t,e),n=u(i,2);return t=n[0],e=n[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return s.call(this,(function(){return r.editor.insertEmbed(e,i,n)}),o,e)}},{key:"insertText",value:function(t,e,i,n,r){var o,a=this,c=l(t,0,i,n,r),h=u(c,4);return t=h[0],o=h[2],r=h[3],s.call(this,(function(){return a.editor.insertText(t,e,o)}),r,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,i){this.clipboard.dangerouslyPasteHTML(t,e,i)}},{key:"removeFormat",value:function(t,e,i){var n=this,r=l(t,e,i),o=u(r,4);return t=o[0],e=o[1],i=o[3],s.call(this,(function(){return n.editor.removeFormat(t,e)}),i,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return s.call(this,(function(){t=new p.default(t);var i=e.getLength(),n=e.editor.deleteText(0,i),r=e.editor.applyDelta(t),o=r.ops[r.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),r.delete(1)),n.compose(r)}),i)}},{key:"setSelection",value:function(e,i,n){if(null==e)this.selection.setRange(null,i||t.sources.API);else{var r=l(e,i,n),o=u(r,4);e=o[0],i=o[1],n=o[3],this.selection.setRange(new v.Range(e,i),n),n!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,i=(new p.default).insert(t);return this.setContents(i,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return s.call(this,(function(){return t=new p.default(t),e.editor.applyDelta(t,i)}),i,!0)}}]),t}();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=g.default.events,P.sources=g.default.sources,P.version="1.3.7",P.imports={delta:p.default,parchment:y.default,"core/module":m.default,"core/theme":_.default},e.expandConfig=a,e.overload=l,e.default=P},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.quill=e,this.options=i};r.DEFAULTS={},e.default=r},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(0)).default.Text);e.default=o},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},a=n(i(58)),s=(0,n(i(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var i;t.__quill&&t.__quill.emitter&&(i=t.__quill.emitter).handleDOM.apply(i,e)}))}))}));var l=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){s.log.apply(s,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];(this.listeners[t.type]||[]).forEach((function(e){var n=e.node,r=e.handler;(t.target===n||n.contains(t.target))&&r.apply(void 0,[t].concat(i))}))}},{key:"listenDOM",value:function(t,e,i){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:i})}}]),e}(a.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},e.default=l},function(t,e,i){"use strict";function n(t){if(o.indexOf(t)<=o.indexOf(a)){for(var e,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(e=console)[t].apply(e,n)}}function r(t){return o.reduce((function(e,i){return e[i]=n.bind(console,i,t),e}),{})}Object.defineProperty(e,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";n.level=r.level=function(t){a=t},e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),r=function(){function t(t,e,i){void 0===i&&(i={}),this.attrName=t,this.keyName=e;var r=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=i.scope?this.scope=i.scope&n.Scope.LEVEL|r:this.scope=n.Scope.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=n.query(t,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=r},function(t,e,i){function n(t){return null==t}function r(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}var o=Array.prototype.slice,a=i(55),s=i(56),l=t.exports=function(t,e,i){return i||(i={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?i.strict?t===e:t==e:function(t,e,i){var c,h;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=o.call(t),e=o.call(e),l(t,e,i));if(r(t)){if(!r(e))return!1;if(t.length!==e.length)return!1;for(c=0;c<t.length;c++)if(t[c]!==e[c])return!1;return!0}try{var u=a(t),d=a(e)}catch(t){return!1}if(u.length!=d.length)return!1;for(u.sort(),d.sort(),c=u.length-1;c>=0;c--)if(u[c]!=d[c])return!1;for(c=u.length-1;c>=0;c--)if(h=u[c],!l(t[h],e[h],i))return!1;return typeof t==typeof e}(t,e,i))}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var s=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},h=n(i(4)),u=n(i(0)),d=n(i(3)),p=n(i(5)),f=n(i(8)),g=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(p.default);g.blotName="code",g.tagName="CODE";var m=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,i){return e.insert(i).insert("\n",t.formats())}),new h.default)}},{key:"format",value:function(t,i){if(t!==this.statics.blotName||!i){var n=this.descendant(f.default,this.length()-1),r=s(n,1)[0];null!=r&&r.deleteAt(r.length()-1,1),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i)}}},{key:"formatAt",value:function(t,i,n,r){if(0!==i&&null!=u.default.query(n,u.default.Scope.BLOCK)&&(n!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+i)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(n,r),c instanceof e&&c.formatAt(0,t-a+i-s,n,r)}}}},{key:"insertAt",value:function(t,e,i){if(null==i){var n=this.descendant(f.default,t),r=s(n,2),o=r[0],a=r[1];o.insertAt(a,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===i.statics.formats(i.domNode)&&(i.optimize(t),i.moveChildren(this),i.remove())}},{key:"replace",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var i=c(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return i.setAttribute("spellcheck",!1),i}},{key:"formats",value:function(){return!0}}]),e}(d.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",e.Code=g,e.default=m},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"insertInto",value:function(t,i){0===t.children.length?a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(0)).default.Embed);s.blotName="break",s.tagName="BR",e.default=s},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){var i=document.createElement("a");i.href=t;var n=i.href.slice(0,i.href.indexOf(":"));return e.indexOf(n)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},l=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"format",value:function(t,i){if(t!==this.statics.blotName||!i)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i);i=this.constructor.sanitize(i),this.domNode.setAttribute("href",i)}}],[{key:"create",value:function(t){var i=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),i.setAttribute("href",t),i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target","_blank"),i}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return o(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(5)).default);l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=l,e.sanitize=o},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}Object.defineProperty(e,"__esModule",{value:!0});var 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},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=n(i(25)),l=n(i(106)),c=0,h=function(){function t(e){var i=this;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){i.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case s.default.keys.ENTER:i.togglePicker();break;case s.default.keys.ESCAPE:i.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return a(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),r(this.label,"aria-expanded"),r(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,i=document.createElement("span");return i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item"),t.hasAttribute("value")&&i.setAttribute("data-value",t.getAttribute("value")),t.textContent&&i.setAttribute("data-label",t.textContent),i.addEventListener("click",(function(){e.selectItem(i,!0)})),i.addEventListener("keydown",(function(t){switch(t.keyCode){case s.default.keys.ENTER:e.selectItem(i,!0),t.preventDefault();break;case s.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),i}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=l.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+c,c+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(i){var n=t.buildItem(i);e.appendChild(n),!0===i.selected&&t.selectItem(n)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.container.querySelector(".ql-selected");if(t!==i&&(null!=i&&i.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":o(Event))){var n=document.createEvent("Event");n.initEvent("change",!0,!0),this.select.dispatchEvent(n)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var i=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}}]),t}();e.default=h},function(t,e,i){"use strict";function n(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(i){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=i(47),a=i(27),s=i(1),l=function(t){function e(e){var i=t.call(this,e)||this;return i.build(),i}return r(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var i=n(e);t.insertBefore(i,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,i){t.deleteAt(e,i)}))},e.prototype.descendant=function(t,i){var n=this.children.find(i),r=n[0],o=n[1];return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,o]:r instanceof e?r.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=Number.MAX_VALUE);var r=[],o=n;return this.children.forEachAt(i,n,(function(i,n,a){(null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t)&&r.push(i),i instanceof e&&(r=r.concat(i.descendants(t,n,o))),o-=a})),r},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,i,n){this.children.forEachAt(t,e,(function(t,e,r){t.formatAt(e,r,i,n)}))},e.prototype.insertAt=function(t,e,i){var n=this.children.find(t),r=n[0],o=n[1];if(r)r.insertAt(o,e,i);else{var a=null==i?s.create("text",e):s.create(e,i);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(i){t.insertBefore(i,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var i=s.create(this.statics.defaultChild);this.appendChild(i),i.optimize(e)}else this.remove()},e.prototype.path=function(t,i){void 0===i&&(i=!1);var n=this.children.find(t,i),r=n[0],o=n[1],a=[[this,t]];return r instanceof e?a.concat(r.path(o,i)):(null!=r&&a.push([r,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(i){i instanceof e&&i.moveChildren(this),t.prototype.replace.call(this,i)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var i=this.clone();return this.parent.insertBefore(i,this.next),this.children.forEachAt(t,this.length(),(function(t,n,r){t=t.split(n,e),i.appendChild(t)})),i},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var i=this,r=[],o=[];t.forEach((function(t){t.target===i.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==i.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==i.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var r=n(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(i),i.insertBefore(r,e||void 0))}))},e}(a.default);e.default=l},function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=i(11),o=i(28),a=i(17),s=i(1),l=function(t){function e(e){var i=t.call(this,e)||this;return i.attributes=new o.default(i.domNode),i}return n(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var i=s.query(t);i instanceof r.default?this.attributes.attribute(i,e):e&&(null==i||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,i){var n=t.prototype.replaceWith.call(this,e,i);return this.attributes.copy(n),n},e.prototype.update=function(e,i){var n=this;t.prototype.update.call(this,e,i),e.some((function(t){return t.target===n.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(i,n){var r=t.prototype.wrap.call(this,i,n);return r instanceof e&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},e}(a.default);e.default=l},function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=i(27),o=i(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(i+=1),[this.parent.domNode,i]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,i){function n(t){this.ops=t,this.index=0,this.offset=0}var r=i(12),o=i(2),a={attributes:{compose:function(t,e,i){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=o(!0,{},e);for(var r in i||(n=Object.keys(n).reduce((function(t,e){return null!=n[e]&&(t[e]=n[e]),t}),{})),t)void 0!==t[r]&&void 0===e[r]&&(n[r]=t[r]);return Object.keys(n).length>0?n:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var i=Object.keys(t).concat(Object.keys(e)).reduce((function(i,n){return r(t[n],e[n])||(i[n]=void 0===e[n]?null:e[n]),i}),{});return Object.keys(i).length>0?i:void 0},transform:function(t,e,i){if("object"!=typeof t)return e;if("object"==typeof e){if(!i)return e;var n=Object.keys(e).reduce((function(i,n){return void 0===t[n]&&(i[n]=e[n]),i}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(t){return new n(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};n.prototype.hasNext=function(){return this.peekLength()<1/0},n.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var i=this.offset,n=a.length(e);if(t>=n-i?(t=n-i,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var r={};return e.attributes&&(r.attributes=e.attributes),"number"==typeof e.retain?r.retain=t:"string"==typeof e.insert?r.insert=e.insert.substr(i,t):r.insert=e.insert,r}return{retain:1/0}},n.prototype.peek=function(){return this.ops[this.index]},n.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},n.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},n.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,i=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[i].concat(n)}return[]},t.exports=a},function(t,e){var i=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function e(i,s,l,c,h){"object"==typeof s&&(l=s.depth,c=s.prototype,h=s.includeNonEnumerable,s=s.circular);var u=[],d=[],p="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===l&&(l=1/0),function i(l,f){if(null===l)return null;if(0===f)return l;var g,m;if("object"!=typeof l)return l;if(t(l,r))g=new r;else if(t(l,o))g=new o;else if(t(l,a))g=new a((function(t,e){l.then((function(e){t(i(e,f-1))}),(function(t){e(i(t,f-1))}))}));else if(e.__isArray(l))g=[];else if(e.__isRegExp(l))g=new RegExp(l.source,n(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(e.__isDate(l))g=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(g),g;t(l,Error)?g=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(c),m=c)}if(s){var y=u.indexOf(l);if(-1!=y)return d[y];u.push(l),d.push(g)}for(var v in t(l,r)&&l.forEach((function(t,e){var n=i(e,f-1),r=i(t,f-1);g.set(n,r)})),t(l,o)&&l.forEach((function(t){var e=i(t,f-1);g.add(e)})),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,v)),b&&null==b.set||(g[v]=i(l[v],f-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(l);for(v=0;v<x.length;v++){var w=x[v];(!(S=Object.getOwnPropertyDescriptor(l,w))||S.enumerable||h)&&(g[w]=i(l[w],f-1),S.enumerable||Object.defineProperty(g,w,{enumerable:!1}))}}if(h){var _=Object.getOwnPropertyNames(l);for(v=0;v<_.length;v++){var S,P=_[v];(S=Object.getOwnPropertyDescriptor(l,P))&&S.enumerable||(g[P]=i(l[P],f-1),Object.defineProperty(g,P,{enumerable:!1}))}}return g}(i,l)}function i(t){return Object.prototype.toString.call(t)}function n(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var r,o,a;try{r=Map}catch(t){r=function(){}}try{o=Set}catch(t){o=function(){}}try{a=Promise}catch(t){a=function(){}}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=i,e.__isDate=function(t){return"object"==typeof t&&"[object Date]"===i(t)},e.__isArray=function(t){return"object"==typeof t&&"[object Array]"===i(t)},e.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===i(t)},e.__getRegExpFlags=n,e}();"object"==typeof t&&t.exports&&(t.exports=i)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var s=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=n(i(0)),h=n(i(21)),u=n(i(12)),d=n(i(9)),p=(0,n(i(10)).default)("quill:selection"),f=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,t),this.index=e,this.length=i},g=function(){function t(e,i){var n=this;o(this,t),this.emitter=i,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(t,e){t===d.default.events.TEXT_CHANGE&&e.length()>0&&n.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var t=n.getNativeRange();null!=t&&t.start.node!==n.cursor.textNode&&n.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var i=e.range,r=i.startNode,o=i.startOffset,a=i.endNode,s=i.endOffset;n.setNativeRange(r,o,a,s)}})),this.update(d.default.sources.SILENT)}return l(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var i=this.getNativeRange();if(null!=i&&i.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(i.start.node!==this.cursor.textNode){var n=c.default.find(i.start.node,!1);if(null==n)return;if(n instanceof c.default.Leaf){var r=n.split(i.start.offset);n.parent.insertBefore(this.cursor,r)}else n.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.scroll.length();t=Math.min(t,i-1),e=Math.min(t+e,i-1)-t;var n=void 0,r=this.scroll.leaf(t),o=s(r,2),a=o[0],l=o[1];if(null==a)return null;var c=a.position(l,!0),h=s(c,2);n=h[0],l=h[1];var u=document.createRange();if(e>0){u.setStart(n,l);var d=this.scroll.leaf(t+e),p=s(d,2);if(a=p[0],l=p[1],null==a)return null;var f=a.position(l,!0),g=s(f,2);return n=g[0],l=g[1],u.setEnd(n,l),u.getBoundingClientRect()}var m="left",y=void 0;return n instanceof Text?(l<n.data.length?(u.setStart(n,l),u.setEnd(n,l+1)):(u.setStart(n,l-1),u.setEnd(n,l),m="right"),y=u.getBoundingClientRect()):(y=a.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:y.top+y.height,height:y.height,left:y[m],right:y[m],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var i=this.normalizeNative(e);return p.info("getNativeRange",i),i}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,i=[[t.start.node,t.start.offset]];t.native.collapsed||i.push([t.end.node,t.end.offset]);var n=i.map((function(t){var i=s(t,2),n=i[0],r=i[1],o=c.default.find(n,!0),a=o.offset(e.scroll);return 0===r?a:o instanceof c.default.Container?a+o.length():a+o.index(n,r)})),o=Math.min(Math.max.apply(Math,r(n)),this.scroll.length()-1),a=Math.min.apply(Math,[o].concat(r(n)));return new f(a,o-a)}},{key:"normalizeNative",value:function(t){if(!a(this.root,t.startContainer)||!t.collapsed&&!a(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,i=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>i)e=e.childNodes[i],i=0;else{if(e.childNodes.length!==i)break;i=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=i})),e}},{key:"rangeToNative",value:function(t){var e=this,i=t.collapsed?[t.index]:[t.index,t.index+t.length],n=[],r=this.scroll.length();return i.forEach((function(t,i){t=Math.min(r-1,t);var o,a=e.scroll.leaf(t),l=s(a,2),c=l[0],h=l[1],u=c.position(h,0!==i),d=s(u,2);o=d[0],h=d[1],n.push(o,h)})),n.length<2&&(n=n.concat(n)),n}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var i=this.getBounds(e.index,e.length);if(null!=i){var n=this.scroll.length()-1,r=this.scroll.line(Math.min(e.index,n)),o=s(r,1)[0],a=o;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,n));a=s(l,1)[0]}if(null!=o&&null!=a){var c=t.getBoundingClientRect();i.top<c.top?t.scrollTop-=c.top-i.top:i.bottom>c.bottom&&(t.scrollTop+=i.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",t,e,i,n),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=i.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||t!==a.startContainer||e!==a.startOffset||i!==a.endContainer||n!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==i.tagName&&(n=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(i,n),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"==typeof e&&(i=e,e=!1),p.info("setRange",t),null!=t){var n=this.rangeToNative(t);this.setNativeRange.apply(this,r(n).concat([e]))}else this.setNativeRange(null);this.update(i)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,e=this.lastRange,i=this.getRange(),n=s(i,2),r=n[0],o=n[1];if(this.lastRange=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(e,this.lastRange)){var a;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var l,c=[d.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t];if((a=this.emitter).emit.apply(a,[d.default.events.EDITOR_CHANGE].concat(c)),t!==d.default.sources.SILENT)(l=this.emitter).emit.apply(l,c)}}}]),t}();e.Range=f,e.default=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=n(i(0)),s=i(3),l=n(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default.Container);c.allowedChildren=[l.default,s.BlockEmbed,c],e.default=c},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),l=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){var i=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return i.startsWith("rgb(")?"#"+(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join(""):i}}]),e}(s.default.Attributor.Style),c=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),h=new l("color","color",{scope:s.default.Scope.INLINE});e.ColorAttributor=l,e.ColorClass=c,e.ColorStyle=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){var i,n=t===T.keys.LEFT?"prefix":"suffix";return r(i={key:t,shiftKey:e,altKey:null},n,/^$/),r(i,"handler",(function(i){var n=i.index;t===T.keys.RIGHT&&(n+=i.length+1);var r=this.quill.getLeaf(n);return!(f(r,1)[0]instanceof w.default.Embed&&(t===T.keys.LEFT?e?this.quill.setSelection(i.index-1,i.length+1,_.default.sources.USER):this.quill.setSelection(i.index-1,_.default.sources.USER):e?this.quill.setSelection(i.index,i.length+1,_.default.sources.USER):this.quill.setSelection(i.index+i.length+1,_.default.sources.USER),1))})),i}function a(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var i=this.quill.getLine(t.index),n=f(i,1)[0],r={};if(0===e.offset){var o=this.quill.getLine(t.index-1),a=f(o,1)[0];if(null!=a&&a.length()>1){var s=n.formats(),l=this.quill.getFormat(t.index-1,1);r=x.default.attributes.diff(s,l)||{}}}var c=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-c,c,_.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index-c,c,r,_.default.sources.USER),this.quill.focus()}}function s(t,e){var i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-i)){var n={},r=0,o=this.quill.getLine(t.index),a=f(o,1)[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),l=f(s,1)[0];if(l){var c=a.formats(),h=this.quill.getFormat(t.index,1);n=x.default.attributes.diff(c,h)||{},r=l.length()}}this.quill.deleteText(t.index,i,_.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index+r-1,i,n,_.default.sources.USER)}}function l(t){var e=this.quill.getLines(t),i={};if(e.length>1){var n=e[0].formats(),r=e[e.length-1].formats();i=x.default.attributes.diff(r,n)||{}}this.quill.deleteText(t,_.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index,1,i,_.default.sources.USER),this.quill.setSelection(t.index,_.default.sources.SILENT),this.quill.focus()}function c(t,e){var i=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var n=Object.keys(e.format).reduce((function(t,i){return w.default.query(i,w.default.Scope.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t}),{});this.quill.insertText(t.index,"\n",n,_.default.sources.USER),this.quill.setSelection(t.index+1,_.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==n[t]&&(Array.isArray(e.format[t])||"link"!==t&&i.quill.format(t,e.format[t],_.default.sources.USER))}))}function h(t){return{key:T.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var i=w.default.query("code-block"),n=e.index,r=e.length,o=this.quill.scroll.descendant(i,n),a=f(o,2),s=a[0],l=a[1];if(null!=s){var c=this.quill.getIndex(s),h=s.newlineIndex(l,!0)+1,u=s.newlineIndex(c+l+r),d=s.domNode.textContent.slice(h,u).split("\n");l=0,d.forEach((function(e,o){t?(s.insertAt(h+l,i.TAB),l+=i.TAB.length,0===o?n+=i.TAB.length:r+=i.TAB.length):e.startsWith(i.TAB)&&(s.deleteAt(h+l,i.TAB.length),l-=i.TAB.length,0===o?n-=i.TAB.length:r-=i.TAB.length),l+=e.length+1})),this.quill.update(_.default.sources.USER),this.quill.setSelection(n,r,_.default.sources.SILENT)}}}}function u(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,i){this.quill.format(t,!i.format[t],_.default.sources.USER)}}}function d(t){if("string"==typeof t||"number"==typeof t)return d({key:t});if("object"===(void 0===t?"undefined":p(t))&&(t=(0,m.default)(t,!1)),"string"==typeof t.key)if(null!=T.keys[t.key.toUpperCase()])t.key=T.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[C]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var p="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},f=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),m=n(i(21)),y=n(i(12)),v=n(i(2)),b=n(i(4)),x=n(i(20)),w=n(i(0)),_=n(i(6)),S=n(i(10)),P=n(i(7)),k=(0,S.default)("quill:keyboard"),C=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",T=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.bindings={},Object.keys(n.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&n.options.bindings[e]&&n.addBinding(n.options.bindings[e])})),n.addBinding({key:e.keys.ENTER,shiftKey:null},c),n.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},a),n.addBinding({key:e.keys.DELETE},{collapsed:!0},s)):(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},a),n.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},s)),n.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},l),n.addBinding({key:e.keys.DELETE},{collapsed:!1},l),n.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},a),n.listen(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),g(e,null,[{key:"match",value:function(t,e){return e=d(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(i){return!!e[i]!==t[i]&&null!==e[i]}))&&e.key===(t.which||t.keyCode)}}]),g(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=d(t);if(null==n||null==n.key)return k.warn("Attempted to add invalid keyboard binding",n);"function"==typeof e&&(e={handler:e}),"function"==typeof i&&(i={handler:i}),n=(0,v.default)(n,e,i),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(i){if(!i.defaultPrevented){var n=i.which||i.keyCode,r=(t.bindings[n]||[]).filter((function(t){return e.match(i,t)}));if(0!==r.length){var o=t.quill.getSelection();if(null!=o&&t.quill.hasFocus()){var a=t.quill.getLine(o.index),s=f(a,2),l=s[0],c=s[1],h=t.quill.getLeaf(o.index),u=f(h,2),d=u[0],g=u[1],m=0===o.length?[d,g]:t.quill.getLeaf(o.index+o.length),v=f(m,2),b=v[0],x=v[1],_=d instanceof w.default.Text?d.value().slice(0,g):"",S=b instanceof w.default.Text?b.value().slice(x):"",P={collapsed:0===o.length,empty:0===o.length&&l.length()<=1,format:t.quill.getFormat(o),offset:c,prefix:_,suffix:S};r.some((function(e){if(null!=e.collapsed&&e.collapsed!==P.collapsed)return!1;if(null!=e.empty&&e.empty!==P.empty)return!1;if(null!=e.offset&&e.offset!==P.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==P.format[t]})))return!1}else if("object"===p(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=P.format[t]:!1===e.format[t]?null==P.format[t]:(0,y.default)(e.format[t],P.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(P.prefix)||null!=e.suffix&&!e.suffix.test(P.suffix)||!0===e.handler.call(t,o,P))}))&&i.preventDefault()}}}}))}}]),e}(P.default);T.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},T.DEFAULTS={bindings:{bold:u("bold"),italic:u("italic"),underline:u("underline"),indent:{key:T.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",_.default.sources.USER)}},outdent:{key:T.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",_.default.sources.USER)}},"outdent backspace":{key:T.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",_.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,_.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:T.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,_.default.sources.USER)}},tab:{key:T.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new b.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,_.default.sources.SILENT)}},"list empty enter":{key:T.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,_.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,_.default.sources.USER)}},"checklist enter":{key:T.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),i=f(e,2),n=i[0],r=i[1],o=(0,v.default)({},n.formats(),{list:"checked"}),a=(new b.default).retain(t.index).insert("\n",o).retain(n.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,_.default.sources.USER),this.quill.setSelection(t.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:T.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var i=this.quill.getLine(t.index),n=f(i,2),r=n[0],o=n[1],a=(new b.default).retain(t.index).insert("\n",e.format).retain(r.length()-o-1).retain(1,{header:null});this.quill.updateContents(a,_.default.sources.USER),this.quill.setSelection(t.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var i=e.prefix.length,n=this.quill.getLine(t.index),r=f(n,2),o=r[0],a=r[1];if(a>i)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",_.default.sources.USER),this.quill.history.cutoff();var l=(new b.default).retain(t.index-a).delete(i+1).retain(o.length()-2-a).retain(1,{list:s});this.quill.updateContents(l,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,_.default.sources.SILENT)}},"code exit":{key:T.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),i=f(e,2),n=i[0],r=i[1],o=(new b.default).retain(t.index+n.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,_.default.sources.USER)}},"embed left":o(T.keys.LEFT,!1),"embed left shift":o(T.keys.LEFT,!0),"embed right":o(T.keys.RIGHT,!1),"embed right shift":o(T.keys.RIGHT,!0)}},e.default=T,e.SHORTKEY=C},function(t,e,i){"use strict";t.exports={align:{"":i(75),center:i(76),right:i(77),justify:i(78)},background:i(79),blockquote:i(80),bold:i(81),clean:i(82),code:i(40),"code-block":i(40),color:i(83),direction:{"":i(84),rtl:i(85)},float:{center:i(86),full:i(87),left:i(88),right:i(89)},formula:i(90),header:{1:i(91),2:i(92)},italic:i(93),image:i(94),indent:{"+1":i(95),"-1":i(96)},link:i(97),list:{ordered:i(98),bullet:i(99),check:i(100)},script:{sub:i(101),super:i(102)},strike:i(103),underline:i(104),video:i(105)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),r=function(){function t(t){this.domNode=t,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return n.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,i,r){var o=this.isolate(t,e);if(null!=n.query(i,n.Scope.BLOT)&&r)o.wrap(i,r);else if(null!=n.query(i,n.Scope.ATTRIBUTE)){var a=n.create(this.statics.scope);o.wrap(a),a.format(i,r)}},t.prototype.insertAt=function(t,e,i){var r=null==i?n.create("text",e):n.create(e,i),o=this.split(t);this.parent.insertBefore(r,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var i=null;t.children.insertBefore(this,e),null!=e&&(i=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==i||t.domNode.insertBefore(this.domNode,i),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var i=this.split(t);return i.split(e),i},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var i="string"==typeof t?n.create(t,e):t;return i.replace(this),i},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var i="string"==typeof t?n.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(i,this.next),i.appendChild(this),i},t.blotName="abstract",t}();e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(11),r=i(29),o=i(30),a=i(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=n.default.keys(this.domNode),i=r.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(i).concat(s).forEach((function(e){var i=a.query(e,a.Scope.ATTRIBUTE);i instanceof n.default&&(t.attributes[i.attrName]=i)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(i){var n=e.attributes[i].value(e.domNode);t.format(i,n)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,i){return e[i]=t.attributes[i].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,i){"use strict";function n(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){n(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(n(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(i(11).default);e.default=o},function(t,e,i){"use strict";function n(t){var e=t.split("-"),i=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+i}var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[n(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[n(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[n(this.keyName)];return this.canAdd(t,e)?e:""},e}(i(11).default);e.default=o},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=n(i(0)),l=n(i(8)),c=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.selection=i,n.textNode=document.createTextNode(e.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,null,[{key:"value",value:function(){}}]),a(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,i){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i);for(var n=this,r=0;null!=n&&n.statics.scope!==s.default.Scope.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=e.CONTENTS.length,n.optimize(),n.formatAt(r,e.CONTENTS.length,t,i),this._length=0)}},{key:"index",value:function(t,i){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,i)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,i=this.selection.getNativeRange(),n=void 0,o=void 0,a=void 0;if(null!=i&&i.start.node===t&&i.end.node===t){var c=[t,i.start.offset,i.end.offset];n=c[0],o=c[1],a=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var h=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof l.default?(n=this.next.domNode,this.next.insertAt(0,h),this.textNode.data=e.CONTENTS):(this.textNode.data=h,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var u=[o,a].map((function(t){return Math.max(0,Math.min(n.data.length,t-1))})),d=r(u,2);return o=d[0],a=d[1],{startNode:n,startOffset:o,endNode:n,endOffset:a}}}}},{key:"update",value:function(t,e){var i=this;if(t.some((function(t){return"characterData"===t.type&&t.target===i.textNode}))){var n=this.restore();n&&(e.range=n)}}},{key:"value",value:function(){return""}}]),e}(s.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function(){function t(e,i){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.quill=e,this.options=i,this.modules={}}return n(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();r.DEFAULTS={modules:{}},r.themes={default:r},e.default=r},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},a=n(i(0)),s=n(i(8)),l="\ufeff",c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.contentNode=document.createElement("span"),i.contentNode.setAttribute("contenteditable",!1),[].slice.call(i.domNode.childNodes).forEach((function(t){i.contentNode.appendChild(t)})),i.leftGuard=document.createTextNode(l),i.rightGuard=document.createTextNode(l),i.domNode.appendChild(i.leftGuard),i.domNode.appendChild(i.contentNode),i.domNode.appendChild(i.rightGuard),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,i){return t===this.leftGuard?0:t===this.rightGuard?1:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,i)}},{key:"restore",value:function(t){var e=void 0,i=void 0,n=t.data.split(l).join("");if(t===this.leftGuard)if(this.prev instanceof s.default){var r=this.prev.length();this.prev.insertAt(r,n),e={startNode:this.prev.domNode,startOffset:r+n.length}}else i=document.createTextNode(n),this.parent.insertBefore(a.default.create(i),this),e={startNode:i,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(i=document.createTextNode(n),this.parent.insertBefore(a.default.create(i),this.next),e={startNode:i,startOffset:n.length}));return t.data=l,e}},{key:"update",value:function(t,e){var i=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===i.leftGuard||t.target===i.rightGuard)){var n=i.restore(t.target);n&&(e.range=n)}}))}}]),e}(a.default.Embed);e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),r={scope:n.default.Scope.BLOCK,whitelist:["right","center","justify"]},o=new n.default.Attributor.Attribute("align","align",r),a=new n.default.Attributor.Class("align","ql-align",r),s=new n.default.Attributor.Style("align","text-align",r);e.AlignAttribute=o,e.AlignClass=a,e.AlignStyle=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),r=i(24),o=new n.default.Attributor.Class("background","ql-bg",{scope:n.default.Scope.INLINE}),a=new r.ColorAttributor("background","background-color",{scope:n.default.Scope.INLINE});e.BackgroundClass=o,e.BackgroundStyle=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),r={scope:n.default.Scope.BLOCK,whitelist:["rtl"]},o=new n.default.Attributor.Attribute("direction","dir",r),a=new n.default.Attributor.Class("direction","ql-direction",r),s=new n.default.Attributor.Style("direction","direction",r);e.DirectionAttribute=o,e.DirectionClass=a,e.DirectionStyle=s},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),l={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new s.default.Attributor.Class("font","ql-font",l),h=new(function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(s.default.Attributor.Style))("font","font-family",l);e.FontStyle=h,e.FontClass=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),r=new n.default.Attributor.Class("size","ql-size",{scope:n.default.Scope.INLINE,whitelist:["small","large","huge"]}),o=new n.default.Attributor.Style("size","font-size",{scope:n.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=r,e.SizeStyle=o},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"optimize",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(5)).default);s.blotName="bold",s.tagName=["STRONG","B"],e.default=s},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},o=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.label.innerHTML=i,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"buildItem",value:function(t){var i=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return i.style.backgroundColor=t.getAttribute("value")||"",i}},{key:"selectItem",value:function(t,i){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,i);var n=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=o:n.style.fill=o)}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(16)).default);e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},o=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=i[t.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"selectItem",value:function(t,i){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,i),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(16)).default);e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function(){function t(e,i){var n=this;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.quill=e,this.boundsContainer=i||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,i=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=i+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),o=0;if(r.right>n.right&&(o=n.right-r.right,this.root.style.left=e+o+"px"),r.left<n.left&&(o=n.left-r.left,this.root.style.left=e+o+"px"),r.bottom>n.bottom){var a=r.bottom-r.top,s=t.bottom-t.top+a;this.root.style.top=i-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=r},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var n=document.createElement("option");e===i?n.setAttribute("selected","selected"):n.setAttribute("value",e),t.appendChild(n)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},h=n(i(2)),u=n(i(4)),d=n(i(9)),p=n(i(25)),f=n(i(32)),g=n(i(41)),m=n(i(42)),y=n(i(16)),v=n(i(43)),b=[!1,"center","right","justify"],x=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],_=["1","2","3",!1],S=["small",!1,"large","huge"],P=function(t){function e(t,i){r(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return t.emitter.listenDOM("click",document.body,(function e(i){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==n.tooltip||n.tooltip.root.contains(i.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(t){t.container.contains(i.target)||t.close()}))})),n}return a(e,t),l(e,[{key:"addModule",value:function(t){var i=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(i),i}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(i){if(i.startsWith("ql-")&&(i=i.slice("ql-".length),null!=e[i]))if("direction"===i)t.innerHTML=e[i][""]+e[i].rtl;else if("string"==typeof e[i])t.innerHTML=e[i];else{var n=t.value||"";null!=n&&e[i][n]&&(t.innerHTML=e[i][n])}}))}))}},{key:"buildPickers",value:function(t,e){var i=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&s(t,b),new m.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var i=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&s(t,x,"background"===i?"#ffffff":"#000000"),new g.default(t,e[i])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?s(t,w):t.classList.contains("ql-header")?s(t,_):t.classList.contains("ql-size")&&s(t,S)),new y.default(t)}));this.quill.on(d.default.events.EDITOR_CHANGE,(function(){i.pickers.forEach((function(t){t.update()}))}))}}]),e}(f.default);P.DEFAULTS=(0,h.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var i=new FileReader;i.onload=function(i){var n=t.quill.getSelection(!0);t.quill.updateContents((new u.default).retain(n.index).delete(n.length).insert({image:i.target.result}),d.default.sources.USER),t.quill.setSelection(n.index+1,d.default.sources.SILENT),e.value=""},i.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(t){function e(t,i){r(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return a(e,t),l(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){p.default.match(e,"enter")?(t.save(),e.preventDefault()):p.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,d.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=function(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}(t);case"formula":if(!t)break;var i=this.quill.getSelection(!0);if(null!=i){var n=i.index+i.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,d.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",d.default.sources.USER),this.quill.setSelection(n+2,d.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(v.default);e.BaseTooltip=k,e.default=P},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(46)),o=i(34),a=i(36),s=i(62),l=n(i(63)),c=n(i(64)),h=i(65),u=n(h),d=i(35),p=i(24),f=i(37),g=i(38),m=n(i(39)),y=n(i(66)),v=n(i(15)),b=n(i(67)),x=n(i(68)),w=n(i(69)),_=n(i(70)),S=n(i(71)),P=i(13),k=n(P),C=n(i(72)),T=n(i(73)),A=n(i(74)),O=n(i(26)),M=n(i(16)),E=n(i(41)),I=n(i(42)),D=n(i(43)),L=n(i(107)),j=n(i(108));r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":g.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":g.SizeClass,"formats/blockquote":l.default,"formats/code-block":k.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":P.Code,"formats/italic":y.default,"formats/link":v.default,"formats/script":b.default,"formats/strike":x.default,"formats/underline":w.default,"formats/image":_.default,"formats/video":S.default,"formats/list/item":h.ListItem,"modules/formula":C.default,"modules/syntax":T.default,"modules/toolbar":A.default,"themes/bubble":L.default,"themes/snow":j.default,"ui/icons":O.default,"ui/picker":M.default,"ui/icon-picker":I.default,"ui/color-picker":E.default,"ui/tooltip":D.default},!0),e.default=r.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(0)),o=n(i(6)),a=i(3),s=n(a),l=n(i(14)),c=n(i(23)),h=n(i(31)),u=n(i(33)),d=n(i(5)),p=n(i(59)),f=n(i(8)),g=n(i(60)),m=n(i(61)),y=n(i(25));o.default.register({"blots/block":s.default,"blots/block/embed":a.BlockEmbed,"blots/break":l.default,"blots/container":c.default,"blots/cursor":h.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":g.default,"modules/history":m.default,"modules/keyboard":y.default}),r.default.register(s.default,l.default,h.default,d.default,p.default,f.default),e.default=o.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,i=this.iterator();e=i();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,i=this.head;null!=i;){if(i===t)return e;e+=i.length(),i=i.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var i,n=this.iterator();i=n();){var r=i.length();if(t<r||e&&t===r&&(null==i.next||0!==i.next.length()))return[i,t];t-=r}return[null,0]},t.prototype.forEach=function(t){for(var e,i=this.iterator();e=i();)t(e)},t.prototype.forEachAt=function(t,e,i){if(!(e<=0))for(var n,r=this.find(t),o=r[0],a=t-r[1],s=this.iterator(o);(n=s())&&a<t+e;){var l=n.length();t>a?i(n,t-a,Math.min(e,a+l-t)):i(n,0,Math.min(l,t+e-a)),a+=l}},t.prototype.map=function(t){return this.reduce((function(e,i){return e.push(t(i)),e}),[])},t.prototype.reduce=function(t,e){for(var i,n=this.iterator();i=n();)e=t(e,i);return e},t}();e.default=n},function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=i(17),o=i(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(t){function e(e){var i=t.call(this,e)||this;return i.scroll=i,i.observer=new MutationObserver((function(t){i.update(t)})),i.observer.observe(i.domNode,a),i.attach(),i}return n(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,i){this.update(),0===e&&i===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,i)},e.prototype.formatAt=function(e,i,n,r){this.update(),t.prototype.formatAt.call(this,e,i,n,r)},e.prototype.insertAt=function(e,i,n){this.update(),t.prototype.insertAt.call(this,e,i,n)},e.prototype.optimize=function(e,i){var n=this;void 0===e&&(e=[]),void 0===i&&(i={}),t.prototype.optimize.call(this,i);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==n&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&s(t.parent))},l=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof r.default&&t.children.forEach(l),t.optimize(i))},c=e,h=0;c.length>0;h+=1){if(h>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=o.find(t,!1);s(e,!1),e instanceof r.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(l),a=(c=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,i){var n=this;void 0===i&&(i={}),(e=e||this.observer.takeRecords()).map((function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==n&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],i)})),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,i),this.optimize(e,i)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(r.default);e.default=s},function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=i(18),o=i(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(i){if(i.tagName!==e.tagName)return t.formats.call(this,i)},e.prototype.format=function(i,n){var o=this;i!==this.statics.blotName||n?t.prototype.format.call(this,i,n):(this.children.forEach((function(t){t instanceof r.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,i,n,r){null!=this.formats()[n]||o.query(n,o.Scope.ATTRIBUTE)?this.isolate(e,i).format(n,r):t.prototype.formatAt.call(this,e,i,n,r)},e.prototype.optimize=function(i){t.prototype.optimize.call(this,i);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var r=this.next;r instanceof e&&r.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var i in t)if(t[i]!==e[i])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())},e.blotName="inline",e.scope=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(r.default);e.default=a},function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=i(18),o=i(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(i){var n=o.query(e.blotName).tagName;if(i.tagName!==n)return t.formats.call(this,i)},e.prototype.format=function(i,n){null!=o.query(i,o.Scope.BLOCK)&&(i!==this.statics.blotName||n?t.prototype.format.call(this,i,n):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,i,n,r){null!=o.query(n,o.Scope.BLOCK)?this.format(n,r):t.prototype.formatAt.call(this,e,i,n,r)},e.prototype.insertAt=function(e,i,n){if(null==n||null!=o.query(i,o.Scope.INLINE))t.prototype.insertAt.call(this,e,i,n);else{var r=this.split(e),a=o.create(i,n);r.parent.insertBefore(a,r)}},e.prototype.update=function(e,i){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,i)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(r.default);e.default=a},function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(t){},e.prototype.format=function(e,i){t.prototype.formatAt.call(this,0,this.length(),e,i)},e.prototype.formatAt=function(e,i,n,r){0===e&&i===this.length()?this.format(n,r):t.prototype.formatAt.call(this,e,i,n,r)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(i(19).default);e.default=r},function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=i(19),o=i(1),a=function(t){function e(e){var i=t.call(this,e)||this;return i.text=i.statics.value(i.domNode),i}return n(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,i,n){null==n?(this.text=this.text.slice(0,e)+i+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,i,n)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(i){t.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var i=o.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},e.prototype.update=function(t,e){var i=this;t.some((function(t){return"characterData"===t.type&&t.target===i.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,i){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:r.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var i=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length;var n=i.indexOf(t,e);return-1!==n&&n===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,r=arguments[1],o=0;o<n;o++)if(e=i[o],t.call(r,e,o,i))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){function i(t,e,i){if(t==e)return t?[[f,t]]:[];(i<0||t.length<i)&&(i=null);var r=a(t,e),o=t.substring(0,r);r=s(t=t.substring(r),e=e.substring(r));var l=t.substring(t.length-r),u=n(t=t.substring(0,t.length-r),e=e.substring(0,e.length-r));return o&&u.unshift([f,o]),l&&u.push([f,l]),c(u),null!=i&&(u=h(u,i)),function(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},n=2;n<t.length;n+=1)t[n-2][0]===f&&function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319}(t[n-2][1])&&t[n-1][0]===d&&i(t[n-1][1])&&t[n][0]===p&&i(t[n][1])&&(e=!0,t[n-1][1]=t[n-2][1].slice(-1)+t[n-1][1],t[n][1]=t[n-2][1].slice(-1)+t[n][1],t[n-2][1]=t[n-2][1].slice(0,-1));if(!e)return t;var r=[];for(n=0;n<t.length;n+=1)t[n][1].length>0&&r.push(t[n]);return r}(u)}function n(t,e){var n;if(!t)return[[p,e]];if(!e)return[[d,t]];var o=t.length>e.length?t:e,a=t.length>e.length?e:t,s=o.indexOf(a);if(-1!=s)return n=[[p,o.substring(0,s)],[f,a],[p,o.substring(s+a.length)]],t.length>e.length&&(n[0][0]=n[2][0]=d),n;if(1==a.length)return[[d,t],[p,e]];var c=l(t,e);if(c){var h=c[0],u=c[1],g=c[2],m=c[3],y=c[4],v=i(h,g),b=i(u,m);return v.concat([[f,y]],b)}return r(t,e)}function r(t,e){for(var i=t.length,n=e.length,r=Math.ceil((i+n)/2),a=r,s=2*r,l=new Array(s),c=new Array(s),h=0;h<s;h++)l[h]=-1,c[h]=-1;l[a+1]=0,c[a+1]=0;for(var u=i-n,f=u%2!=0,g=0,m=0,y=0,v=0,b=0;b<r;b++){for(var x=-b+g;x<=b-m;x+=2){for(var w=a+x,_=(T=x==-b||x!=b&&l[w-1]<l[w+1]?l[w+1]:l[w-1]+1)-x;T<i&&_<n&&t.charAt(T)==e.charAt(_);)T++,_++;if(l[w]=T,T>i)m+=2;else if(_>n)g+=2;else if(f){if((k=a+u-x)>=0&&k<s&&-1!=c[k])if(T>=(P=i-c[k]))return o(t,e,T,_)}}for(var S=-b+y;S<=b-v;S+=2){for(var P,k=a+S,C=(P=S==-b||S!=b&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-S;P<i&&C<n&&t.charAt(i-P-1)==e.charAt(n-C-1);)P++,C++;if(c[k]=P,P>i)v+=2;else if(C>n)y+=2;else if(!f){if((w=a+u-S)>=0&&w<s&&-1!=l[w]){var T;_=a+(T=l[w])-w;if(T>=(P=i-P))return o(t,e,T,_)}}}}return[[d,t],[p,e]]}function o(t,e,n,r){var o=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=i(o,a),h=i(s,l);return c.concat(h)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var i=0,n=Math.min(t.length,e.length),r=n,o=0;i<r;)t.substring(o,r)==e.substring(o,r)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return r}function s(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var i=0,n=Math.min(t.length,e.length),r=n,o=0;i<r;)t.substring(t.length-r,t.length-o)==e.substring(e.length-r,e.length-o)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return r}function l(t,e){function i(t,e,i){for(var n,r,o,l,c=t.substring(i,i+Math.floor(t.length/4)),h=-1,u="";-1!=(h=e.indexOf(c,h+1));){var d=a(t.substring(i),e.substring(h)),p=s(t.substring(0,i),e.substring(0,h));u.length<p+d&&(u=e.substring(h-p,h)+e.substring(h,h+d),n=t.substring(0,i-p),r=t.substring(i+d),o=e.substring(0,h-p),l=e.substring(h+d))}return 2*u.length>=t.length?[n,r,o,l,u]:null}var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;var o,l,c,h,u,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));return d||p?(o=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(l=o[0],c=o[1],h=o[2],u=o[3]):(h=o[0],u=o[1],l=o[2],c=o[3]),[l,c,h,u,o[4]]):null}function c(t){t.push([f,""]);for(var e,i=0,n=0,r=0,o="",l="";i<t.length;)switch(t[i][0]){case p:r++,l+=t[i][1],i++;break;case d:n++,o+=t[i][1],i++;break;case f:n+r>1?(0!==n&&0!==r&&(0!==(e=a(l,o))&&(i-n-r>0&&t[i-n-r-1][0]==f?t[i-n-r-1][1]+=l.substring(0,e):(t.splice(0,0,[f,l.substring(0,e)]),i++),l=l.substring(e),o=o.substring(e)),0!==(e=s(l,o))&&(t[i][1]=l.substring(l.length-e)+t[i][1],l=l.substring(0,l.length-e),o=o.substring(0,o.length-e))),0===n?t.splice(i-r,n+r,[p,l]):0===r?t.splice(i-n,n+r,[d,o]):t.splice(i-n-r,n+r,[d,o],[p,l]),i=i-n-r+(n?1:0)+(r?1:0)+1):0!==i&&t[i-1][0]==f?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,r=0,n=0,o="",l=""}""===t[t.length-1][1]&&t.pop();var h=!1;for(i=1;i<t.length-1;)t[i-1][0]==f&&t[i+1][0]==f&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),h=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),h=!0)),i++;h&&c(t)}function h(t,e){var i=function(t,e){if(0===e)return[f,t];for(var i=0,n=0;n<t.length;n++){var r=t[n];if(r[0]===d||r[0]===f){var o=i+r[1].length;if(e===o)return[n+1,t];if(e<o){t=t.slice();var a=e-i,s=[r[0],r[1].slice(0,a)],l=[r[0],r[1].slice(a)];return t.splice(n,1,s,l),[n+1,t]}i=o}}throw new Error("cursor_pos is out of bounds!")}(t,e),n=i[1],r=i[0],o=n[r],a=n[r+1];if(null==o)return t;if(o[0]!==f)return t;if(null!=a&&o[1]+a[1]===a[1]+o[1])return n.splice(r,2,a,o),u(n,r,2);if(null!=a&&0===a[1].indexOf(o[1])){n.splice(r,2,[a[0],o[1]],[0,o[1]]);var s=a[1].slice(o[1].length);return s.length>0&&n.splice(r+2,0,[a[0],s]),u(n,r,3)}return t}function u(t,e,i){for(var n=e+i-1;n>=0&&n>=e-1;n--)if(n+1<t.length){var r=t[n],o=t[n+1];r[0]===o[1]&&t.splice(n,2,[r[0],r[1]+o[1]])}return t}var d=-1,p=1,f=0,g=i;g.INSERT=p,g.DELETE=d,g.EQUAL=f,t.exports=g},function(t,e){function i(t){var e=[];for(var i in t)e.push(i);return e}(t.exports="function"==typeof Object.keys?Object.keys:i).shim=i},function(t,e){function i(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function n(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(e=t.exports=r?i:n).supported=i,e.unsupported=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return Object.keys(e).reduce((function(i,n){return null==t[n]||(e[n]===t[n]?i[n]=e[n]:Array.isArray(e[n])?e[n].indexOf(t[n])<0&&(i[n]=e[n].concat([t[n]])):i[n]=[e[n],t[n]]),i}),{})}Object.defineProperty(e,"__esModule",{value:!0});var 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},a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=n(i(4)),c=n(i(20)),h=n(i(0)),u=n(i(13)),d=n(i(31)),p=i(3),f=n(p),g=n(i(14)),m=n(i(21)),y=n(i(12)),v=n(i(2)),b=/^[ -~]*$/,x=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.scroll=e,this.delta=this.getDelta()}return s(t,[{key:"applyDelta",value:function(t){var e=this,i=!1;this.scroll.update();var n=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var i=(0,m.default)(e.attributes);return delete i.image,t.insert({image:e.attributes.image},i)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,m.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var n=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(n,e.attributes)}return t.push(e)}),new l.default)}(t)).reduce((function(t,r){var s=r.retain||r.delete||r.insert.length||1,l=r.attributes||{};if(null!=r.insert){if("string"==typeof r.insert){var u=r.insert;u.endsWith("\n")&&i&&(i=!1,u=u.slice(0,-1)),t>=n&&!u.endsWith("\n")&&(i=!0),e.scroll.insertAt(t,u);var d=e.scroll.line(t),g=a(d,2),m=g[0],y=g[1],b=(0,v.default)({},(0,p.bubbleFormats)(m));if(m instanceof f.default){var x=m.descendant(h.default.Leaf,y),w=a(x,1)[0];b=(0,v.default)(b,(0,p.bubbleFormats)(w))}l=c.default.attributes.diff(b,l)||{}}else if("object"===o(r.insert)){var _=Object.keys(r.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,r.insert[_])}n+=s}return Object.keys(l).forEach((function(i){e.scroll.formatAt(t,s,i,l[i])})),t+s}),0),t.reduce((function(t,i){return"number"==typeof i.delete?(e.scroll.deleteAt(t,i.delete),t):t+(i.retain||i.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new l.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(r){if(null==i.scroll.whitelist||i.scroll.whitelist[r]){var o=i.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof u.default){var s=t-e.offset(i.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,r,n[r])}else e.format(r,n[r]);a-=o}))}})),this.scroll.optimize(),this.update((new l.default).retain(t).retain(e,(0,m.default)(n)))}},{key:"formatText",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(r){i.scroll.formatAt(t,e,r,n[r])})),this.update((new l.default).retain(t).retain(e,(0,m.default)(n)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new l.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],n=[];0===e?this.scroll.path(t).forEach((function(t){var e=a(t,1)[0];e instanceof f.default?i.push(e):e instanceof h.default.Leaf&&n.push(e)})):(i=this.scroll.lines(t,e),n=this.scroll.descendants(h.default.Leaf,t,e));var o=[i,n].map((function(t){if(0===t.length)return{};for(var e=(0,p.bubbleFormats)(t.shift());Object.keys(e).length>0;){var i=t.shift();if(null==i)return e;e=r((0,p.bubbleFormats)(i),e)}return e}));return v.default.apply(v.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,i){return this.scroll.insertAt(t,e,i),this.update((new l.default).retain(t).insert(function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},e,i)))}},{key:"insertText",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(n).forEach((function(r){i.scroll.formatAt(t,e.length,r,n[r])})),this.update((new l.default).retain(t).insert(e,(0,m.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===f.default.blotName&&!(t.children.length>1)&&t.children.head instanceof g.default}},{key:"removeFormat",value:function(t,e){var i=this.getText(t,e),n=this.scroll.line(t+e),r=a(n,2),o=r[0],s=r[1],c=0,h=new l.default;null!=o&&(c=o instanceof u.default?o.newlineIndex(s)-s+1:o.length()-s,h=o.delta().slice(s,s+c-1).insert("\n"));var d=this.getContents(t,e+c).diff((new l.default).insert(i).concat(h)),p=(new l.default).retain(t).concat(d);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(b)&&h.default.find(e[0].target)){var r=h.default.find(e[0].target),o=(0,p.bubbleFormats)(r),a=r.offset(this.scroll),s=e[0].oldValue.replace(d.default.CONTENTS,""),c=(new l.default).insert(s),u=(new l.default).insert(r.value());t=(new l.default).retain(a).concat(c.diff(u,i)).reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new l.default),this.delta=n.compose(t)}else this.delta=this.getDelta(),t&&(0,y.default)(n.compose(t),this.delta)||(t=n.diff(this.delta,i));return t}}]),t}();e.default=x},function(t,e){"use strict";function i(){}function n(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function r(){this._events=new i,this._eventsCount=0}var o=Object.prototype.hasOwnProperty,a="~";Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),r.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)o.call(t,e)&&i.push(a?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},r.prototype.listeners=function(t,e){var i=a?a+t:t,n=this._events[i];if(e)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=new Array(o);r<o;r++)s[r]=n[r].fn;return s},r.prototype.emit=function(t,e,i,n,r,o){var s=a?a+t:t;if(!this._events[s])return!1;var l,c,h=this._events[s],u=arguments.length;if(h.fn){switch(h.once&&this.removeListener(t,h.fn,void 0,!0),u){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,e),!0;case 3:return h.fn.call(h.context,e,i),!0;case 4:return h.fn.call(h.context,e,i,n),!0;case 5:return h.fn.call(h.context,e,i,n,r),!0;case 6:return h.fn.call(h.context,e,i,n,r,o),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];h.fn.apply(h.context,l)}else{var d,p=h.length;for(c=0;c<p;c++)switch(h[c].once&&this.removeListener(t,h[c].fn,void 0,!0),u){case 1:h[c].fn.call(h[c].context);break;case 2:h[c].fn.call(h[c].context,e);break;case 3:h[c].fn.call(h[c].context,e,i);break;case 4:h[c].fn.call(h[c].context,e,i,n);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];h[c].fn.apply(h[c].context,l)}}return!0},r.prototype.on=function(t,e,i){var r=new n(e,i||this),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],r]:this._events[o].push(r):(this._events[o]=r,this._eventsCount++),this},r.prototype.once=function(t,e,i){var r=new n(e,i||this,!0),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],r]:this._events[o].push(r):(this._events[o]=r,this._eventsCount++),this},r.prototype.removeListener=function(t,e,n,r){var o=a?a+t:t;if(!this._events[o])return this;if(!e)return 0==--this._eventsCount?this._events=new i:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==e||r&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[o]);else{for(var l=0,c=[],h=s.length;l<h;l++)(s[l].fn!==e||r&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new i:delete this._events[o]}return this},r.prototype.removeAllListeners=function(t){var e;return t?(e=a?a+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prototype.setMaxListeners=function(){return this},r.prefixed=a,r.EventEmitter=r,void 0!==t&&(t.exports=r)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return t instanceof u.default||t instanceof h.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},l=n(i(0)),c=n(i(9)),h=i(3),u=n(h),d=n(i(14)),p=n(i(13)),f=n(i(23)),g=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.emitter=i.emitter,Array.isArray(i.whitelist)&&(n.whitelist=i.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,i){var n=this.line(t),r=o(n,2),a=r[0],l=r[1],c=this.line(t+i),u=o(c,1)[0];if(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,i),null!=u&&a!==u&&l>0){if(a instanceof h.BlockEmbed||u instanceof h.BlockEmbed)return void this.optimize();if(a instanceof p.default){var f=a.newlineIndex(a.length(),!0);if(f>-1&&(a=a.split(f+1))===u)return void this.optimize()}else if(u instanceof p.default){var g=u.newlineIndex(0);g>-1&&u.split(g+1)}var m=u.children.head instanceof d.default?null:u.children.head;a.moveChildren(u,m),a.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,i,n,r){(null==this.whitelist||this.whitelist[n])&&(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,i,n,r),this.optimize())}},{key:"insertAt",value:function(t,i,n){if(null==n||null==this.whitelist||this.whitelist[i]){if(t>=this.length())if(null==n||null==l.default.query(i,l.default.Scope.BLOCK)){var r=l.default.create(this.statics.defaultChild);this.appendChild(r),null==n&&i.endsWith("\n")&&(i=i.slice(0,-1)),r.insertAt(0,i,n)}else{var o=l.default.create(i,n);this.appendChild(o)}else s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,i,n);this.optimize()}}},{key:"insertBefore",value:function(t,i){if(t.statics.scope===l.default.Scope.INLINE_BLOT){var n=l.default.create(this.statics.defaultChild);n.appendChild(t),t=n}s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,i)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(r,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,i,n){var o=[],a=n;return e.children.forEachAt(i,n,(function(e,i,n){r(e)?o.push(e):e instanceof l.default.Container&&(o=o.concat(t(e,i,a))),a-=n})),o}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,i),t.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,t,i))}},{key:"path",value:function(t){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var i=c.default.sources.USER;"string"==typeof t&&(i=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,i,t),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,i,t)}}}]),e}(l.default.Scroll);g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[u.default,h.BlockEmbed,f.default],e.default=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e,i){return"object"===(void 0===e?"undefined":m(e))?Object.keys(e).reduce((function(t,i){return o(t,i,e[i])}),t):t.reduce((function(t,n){return n.attributes&&n.attributes[e]?t.push(n):t.insert(n.insert,(0,b.default)({},r({},e,i),n.attributes))}),new x.default)}function a(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function s(t,e){for(var i="",n=t.ops.length-1;n>=0&&i.length<e.length;--n){var r=t.ops[n];if("string"!=typeof r.insert)break;i=r.insert+i}return i.slice(-1*e.length)===e}function l(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(a(t).display)>-1}function c(t,e,i){return t.nodeType===t.TEXT_NODE?i.reduce((function(e,i){return i(t,e)}),new x.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(n,r){var o=c(r,e,i);return r.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(r,t)}),o),o=(r[D]||[]).reduce((function(t,e){return e(r,t)}),o)),n.concat(o)}),new x.default):new x.default}function h(t,e,i){return o(i,t,!0)}function u(t,e){var i=w.default.Attributor.Attribute.keys(t),n=w.default.Attributor.Class.keys(t),r=w.default.Attributor.Style.keys(t),a={};return i.concat(n).concat(r).forEach((function(e){var i=w.default.query(e,w.default.Scope.ATTRIBUTE);null!=i&&(a[i.attrName]=i.value(t),a[i.attrName])||(null==(i=j[e])||i.attrName!==e&&i.keyName!==e||(a[i.attrName]=i.value(t)||void 0),null==(i=N[e])||i.attrName!==e&&i.keyName!==e||(i=N[e],a[i.attrName]=i.value(t)||void 0))})),Object.keys(a).length>0&&(e=o(e,a)),e}function d(t,e){var i=w.default.query(t);if(null==i)return e;if(i.prototype instanceof w.default.Embed){var n={},r=i.value(t);null!=r&&(n[i.blotName]=r,e=(new x.default).insert(n,i.formats(t)))}else"function"==typeof i.formats&&(e=o(e,i.blotName,i.formats(t)));return e}function p(t,e){return s(e,"\n")||(l(t)||e.length()>0&&t.nextSibling&&l(t.nextSibling))&&e.insert("\n"),e}function f(t,e){if(l(t)&&null!=t.nextElementSibling&&!s(e,"\n\n")){var i=t.offsetHeight+parseFloat(a(t).marginTop)+parseFloat(a(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*i&&e.insert("\n")}return e}function g(t,e){var i=t.data;if("O:P"===t.parentNode.tagName)return e.insert(i.trim());if(0===i.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!a(t.parentNode).whiteSpace.startsWith("pre")){var n=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};i=(i=i.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==t.previousSibling&&l(t.parentNode)||null!=t.previousSibling&&l(t.previousSibling))&&(i=i.replace(/^\s+/,n.bind(n,!1))),(null==t.nextSibling&&l(t.parentNode)||null!=t.nextSibling&&l(t.nextSibling))&&(i=i.replace(/\s+$/,n.bind(n,!1)))}return e.insert(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var m="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},y=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},v=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),b=n(i(2)),x=n(i(4)),w=n(i(0)),_=n(i(6)),S=n(i(10)),P=n(i(7)),k=i(34),C=i(35),T=n(i(13)),A=i(24),O=i(36),M=i(37),E=i(38),I=(0,S.default)("quill:clipboard"),D="__ql-matcher",L=[[Node.TEXT_NODE,g],[Node.TEXT_NODE,p],["br",function(t,e){return s(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,f],[Node.ELEMENT_NODE,u],[Node.ELEMENT_NODE,function(t,e){var i={},n=t.style||{};return n.fontStyle&&"italic"===a(t).fontStyle&&(i.italic=!0),n.fontWeight&&(a(t).fontWeight.startsWith("bold")||parseInt(a(t).fontWeight)>=700)&&(i.bold=!0),Object.keys(i).length>0&&(e=o(e,i)),parseFloat(n.textIndent||0)>0&&(e=(new x.default).insert("\t").concat(e)),e}],["li",function(t,e){var i=w.default.query(t);if(null==i||"list-item"!==i.blotName||!s(e,"\n"))return e;for(var n=-1,r=t.parentNode;!r.classList.contains("ql-clipboard");)"list"===(w.default.query(r)||{}).blotName&&(n+=1),r=r.parentNode;return n<=0?e:e.compose((new x.default).retain(e.length()-1).retain(1,{indent:n}))}],["b",h.bind(h,"bold")],["i",h.bind(h,"italic")],["style",function(){return new x.default}]],j=[k.AlignAttribute,O.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),N=[k.AlignStyle,C.BackgroundStyle,A.ColorStyle,O.DirectionStyle,M.FontStyle,E.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),F=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],L.concat(n.options.matchers).forEach((function(t){var e=y(t,2),r=e[0],o=e[1];(i.matchVisual||o!==f)&&n.addMatcher(r,o)})),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),v(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[T.default.blotName]){var i=this.container.innerText;return this.container.innerHTML="",(new x.default).insert(i,r({},T.default.blotName,e[T.default.blotName]))}var n=this.prepareMatching(),o=y(n,2),a=o[0],l=o[1],h=c(this.container,a,l);return s(h,"\n")&&null==h.ops[h.ops.length-1].attributes&&(h=h.compose((new x.default).retain(h.length()-1).delete(1))),I.log("convert",this.container.innerHTML,h),this.container.innerHTML="",h}},{key:"dangerouslyPasteHTML",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,_.default.sources.SILENT);else{var n=this.convert(e);this.quill.updateContents((new x.default).retain(t).concat(n),i),this.quill.setSelection(t+n.length(),_.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var i=this.quill.getSelection(),n=(new x.default).retain(i.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(_.default.sources.SILENT),setTimeout((function(){n=n.concat(e.convert()).delete(i.length),e.quill.updateContents(n,_.default.sources.USER),e.quill.setSelection(n.length()-i.length,_.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=r,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],i=[];return this.matchers.forEach((function(n){var r=y(n,2),o=r[0],a=r[1];switch(o){case Node.TEXT_NODE:i.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(o),(function(t){t[D]=t[D]||[],t[D].push(a)}))}})),[e,i]}}]),e}(P.default);F.DEFAULTS={matchers:[],matchVisual:!0},e.default=F,e.matchAttributor=u,e.matchBlot=d,e.matchNewline=p,e.matchSpacing=f,e.matchText=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=t.reduce((function(t,e){return t+(e.delete||0)}),0),i=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=a.default.query(t,a.default.Scope.BLOCK)})))}(t)&&(i-=1),i}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=n(i(0)),s=n(i(6)),l=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,i,r){t!==s.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&r!==s.default.sources.USER?n.transform(e):n.record(e,i))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var i=this.stack[t].pop();this.stack[e].push(i),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i[t],s.default.sources.USER),this.ignoreChange=!1;var n=r(i[t]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var i=this.quill.getContents().diff(e),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var r=this.stack.undo.pop();i=i.compose(r.undo),t=r.redo.compose(t)}else this.lastRecorded=n;this.stack.undo.push({redo:t,undo:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(n(i(7)).default);l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=l,e.getLastChangeIndex=r},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),l=new(function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"add",value:function(t,i){if("+1"===i||"-1"===i){var n=this.value(t)||0;i="+1"===i?n+1:n-1}return 0===i?(this.remove(t),!0):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,i)}},{key:"canAdd",value:function(t,i){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,i)||a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(i))}},{key:"value",value:function(t){return parseInt(a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(s.default.Attributor.Class))("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=l},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(3)).default);o.blotName="blockquote",o.tagName="blockquote",e.default=o},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(3)).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],e.default=a},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},c=n(i(0)),h=n(i(3)),u=n(i(23)),d=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"format",value:function(t,i){t!==p.blotName||i?l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i):this.replaceWith(c.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,i){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,i),this):(this.parent.unwrap(),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,i))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:l(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(h.default);d.blotName="list-item",d.tagName="LI";var p=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),n=function(e){if(e.target.parentNode===t){var n=i.statics.formats(t),r=c.default.find(e.target);"checked"===n?r.format("list","unchecked"):"unchecked"===n&&r.format("list","checked")}};return t.addEventListener("touchstart",n),t.addEventListener("mousedown",n),i}return a(e,t),s(e,null,[{key:"create",value:function(t){var i="ordered"===t?"OL":"UL",n=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,i);return"checked"!==t&&"unchecked"!==t||n.setAttribute("data-checked","checked"===t),n}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),s(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,i){if(t instanceof d)l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,i);else{var n=null==i?this.length():i.offset(this),r=this.split(n);r.parent.insertBefore(t,r)}}},{key:"optimize",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(i.moveChildren(this),i.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var i=c.default.create(this.statics.defaultChild);t.moveChildren(i),this.appendChild(i)}l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(u.default);p.blotName="list",p.scope=c.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],e.ListItem=d,e.default=p},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(39)).default);o.blotName="italic",o.tagName=["EM","I"],e.default=o},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(5)).default);s.blotName="script",s.tagName=["SUB","SUP"],e.default=s},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(5)).default);o.blotName="strike",o.tagName="S",e.default=o},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){return t&&t.__esModule?t:{default:t}}(i(5)).default);o.blotName="underline",o.tagName="U",e.default=o},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),l=i(15),c=["alt","height","width"],h=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,i){c.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i)}}],[{key:"create",value:function(t){var i=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&i.setAttribute("src",this.sanitize(t)),i}},{key:"formats",value:function(t){return c.reduce((function(e,i){return t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},s=i(3),l=function(t){return t&&t.__esModule?t:{default:t}}(i(15)),c=["height","width"],h=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,i){c.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i)}}],[{key:"create",value:function(t){var i=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(t)),i}},{key:"formats",value:function(t){return c.reduce((function(e,i){return t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e}),{})}},{key:"sanitize",value:function(t){return l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},c=n(i(33)),h=n(i(6)),u=n(i(7)),d=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,null,[{key:"create",value:function(t){var i=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,i,{throwOnError:!1,errorColor:"#f00"}),i.setAttribute("data-value",t)),i}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(c.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return a(e,t),s(e,null,[{key:"register",value:function(){h.default.register(d,!0)}}]),e}(u.default);e.FormulaBlot=d,e.default=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},c=n(i(0)),h=n(i(6)),u=n(i(7)),d=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(n(i(13)).default);d.className="ql-syntax";var p=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),f=function(t){function e(t,i){r(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return n.quill.on(h.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(a),a=setTimeout((function(){n.highlight(),a=null}),n.options.interval)})),n.highlight(),n}return a(e,t),s(e,null,[{key:"register",value:function(){h.default.register(p,!0),h.default.register(d,!0)}}]),s(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(h.default.sources.SILENT),null!=e&&this.quill.setSelection(e,h.default.sources.SILENT)}}}]),e}(u.default);f.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=d,e.CodeToken=p,e.default=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e,i){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+e),null!=i&&(n.value=i),t.appendChild(n)}function a(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var i=document.createElement("span");i.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)o(i,t);else{var e=Object.keys(t)[0],n=t[e];Array.isArray(n)?function(t,e,i){var n=document.createElement("select");n.classList.add("ql-"+e),i.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),n.appendChild(e)})),t.appendChild(n)}(i,e,n):o(i,e,n)}})),t.appendChild(i)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var s=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=n(i(4)),h=n(i(0)),u=n(i(6)),d=n(i(10)),p=n(i(7)),f=(0,d.default)("quill:toolbar"),g=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n,o=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));if(Array.isArray(o.options.container)){var l=document.createElement("div");a(l,o.options.container),t.container.parentNode.insertBefore(l,t.container),o.container=l}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(u.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=s(t,1)[0];o.update(e)})),o):(n=f.error("Container required for toolbar",o.options),r(o,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,i=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(i){if(i=i.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[i]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[i])return void f.warn("ignoring attaching to disabled format",i,t);if(null==h.default.query(i))return void f.warn("ignoring attaching to nonexistent format",i,t)}var n="SELECT"===t.tagName?"change":"click";t.addEventListener(n,(function(n){var r=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var o=t.options[t.selectedIndex];r=!o.hasAttribute("selected")&&(o.value||!1)}else r=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),n.preventDefault();e.quill.focus();var a=e.quill.selection.getRange(),l=s(a,1)[0];if(null!=e.handlers[i])e.handlers[i].call(e,r);else if(h.default.query(i).prototype instanceof h.default.Embed){if(!(r=prompt("Enter "+i)))return;e.quill.updateContents((new c.default).retain(l.index).delete(l.length).insert(function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},i,r)),u.default.sources.USER)}else e.quill.format(i,r,u.default.sources.USER);e.update(l)})),this.controls.push([i,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(i){var n=s(i,2),r=n[0],o=n[1];if("SELECT"===o.tagName){var a=void 0;if(null==t)a=null;else if(null==e[r])a=o.querySelector("option[selected]");else if(!Array.isArray(e[r])){var l=e[r];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=o.querySelector('option[value="'+l+'"]')}null==a?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(null==t)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var c=e[r]===o.getAttribute("value")||null!=e[r]&&e[r].toString()===o.getAttribute("value")||null==e[r]&&!o.getAttribute("value");o.classList.toggle("ql-active",c)}else o.classList.toggle("ql-active",null!=e[r])}))}}]),e}(p.default);g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var i=this.quill.getFormat();Object.keys(i).forEach((function(e){null!=h.default.query(e,h.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,u.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",u.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",t,u.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),i=this.quill.getFormat(e),n=parseInt(i.indent||0);if("+1"===t||"-1"===t){var r="+1"===t?1:-1;"rtl"===i.direction&&(r*=-1),this.quill.format("indent",n+r,u.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,u.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",t,u.default.sources.USER)}}},e.default=g,e.addControls=a},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var s=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=n(i(2)),h=n(i(9)),u=i(44),d=n(u),p=i(22),f=n(i(26)),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(t){function e(t,i){r(this,e),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=g);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.container.classList.add("ql-bubble"),n}return a(e,t),l(e,[{key:"extendToolbar",value:function(t){this.tooltip=new y(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),f.default)}}]),e}(d.default);m.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var y=function(t){function e(t,i){r(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.on(h.default.events.EDITOR_CHANGE,(function(t,e,i,r){if(t===h.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&r===h.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var o=n.quill.getLines(e.index,e.length);if(1===o.length)n.position(n.quill.getBounds(e));else{var a=o[o.length-1],s=n.quill.getIndex(a),l=Math.min(a.length()-1,e.index+e.length-s),c=n.quill.getBounds(new p.Range(s,l));n.position(c)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return a(e,t),l(e,[{key:"listen",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(h.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var i=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),n=this.root.querySelector(".ql-tooltip-arrow");if(n.style.marginLeft="",0===i)return i;n.style.marginLeft=-1*i-n.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);y.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=y,e.default=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),h=n(i(2)),u=n(i(9)),d=i(44),p=n(d),f=n(i(15)),g=i(22),m=n(i(26)),y=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(t){function e(t,i){r(this,e),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=y);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.container.classList.add("ql-snow"),n}return a(e,t),c(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),m.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,i){t.handlers.link.call(t,!i.format.link)}))}}]),e}(p.default);v.DEFAULTS=(0,h.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var i=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(i)&&0!==i.indexOf("mailto:")&&(i="mailto:"+i),this.quill.theme.tooltip.edit("link",i)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,i){r(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.preview=n.root.querySelector("a.ql-preview"),n}return a(e,t),c(e,[{key:"listen",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var i=t.linkRange;t.restoreFocus(),t.quill.formatText(i,"link",!1,u.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(e,i,n){if(null!=e){if(0===e.length&&n===u.default.sources.USER){var r=t.quill.scroll.descendant(f.default,e.index),o=s(r,2),a=o[0],l=o[1];if(null!=a){t.linkRange=new g.Range(e.index-l,a.length());var c=f.default.formats(a.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(d.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=v}]).default})),function(t,e,i,n){"use strict";var r={expandIcon:"fa fa-angle-down fa-fw",collapseIcon:"fa fa-angle-right fa-fw",indent:1.25,parentsMarginLeft:"1.25rem",openNodeLinkOnNewTab:!0};function o(e,i){this.element=e,this.itemIdPrefix=e.id+"-item-",this.settings=t.extend({},r,i),this.init()}t.extend(o.prototype,{init:function(){this.tree=[],this.nodes=[],this.settings.data&&(this.settings.data.isPrototypeOf(String)&&(this.settings.data=t.parseJSON(this.settings.data)),this.tree=t.extend(!0,[],this.settings.data),delete this.settings.data),t(this.element).addClass("bstreeview"),this.initData({nodes:this.tree});var i=this;this.build(t(this.element),this.tree,0),t(this.element).on("click",".list-group-item",(function(n){t(".state-icon",this).toggleClass(i.settings.expandIcon).toggleClass(i.settings.collapseIcon),n.target.hasAttribute("href")&&(i.settings.openNodeLinkOnNewTab?e.open(n.target.getAttribute("href"),"_blank"):e.location=n.target.getAttribute("href"))}))},initData:function(e){if(e.nodes){var i=e,n=this;t.each(e.nodes,(function(t,e){e.nodeId=n.nodes.length,e.parentId=i.nodeId,n.nodes.push(e),e.nodes&&n.initData(e)}))}},build:function(e,i,n){var r=this,o=r.settings.parentsMarginLeft;n>0&&(o=(r.settings.indent+n*r.settings.indent).toString()+"rem;"),n+=1,t.each(i,(function(i,a){var s=t('<div role="treeitem" class="list-group-item" data-toggle="collapse"></div>').attr("data-target","#"+r.itemIdPrefix+a.nodeId).attr("style","padding-left:"+o).attr("aria-level",n);if(a.nodes){var l=t('<i class="state-icon"></i>').addClass(r.settings.collapseIcon);s.append(l)}if(a.icon){var c=t('<i class="item-icon"></i>').addClass(a.icon);s.append(c)}if(s.append(a.text),a.href&&s.attr("href",a.href),a.class&&s.addClass(a.class),a.id&&s.attr("id",a.id),e.append(s),a.nodes){var h=t('<div role="group" class="list-group collapse" id="itemid"></div>').attr("id",r.itemIdPrefix+a.nodeId);e.append(h),r.build(h,a.nodes,n)}}))}}),t.fn.bstreeview=function(e){return this.each((function(){t.data(this,"plugin_bstreeview")||t.data(this,"plugin_bstreeview",new o(this,e))}))}}(jQuery,window,document),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).ApexCharts=e()}(this,(function(){"use strict";function t(e){return(t="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)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(i,!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d=function(){function i(){e(this,i)}return n(i,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),n=t<0?0:255,r=t<0?-1*t:t,o=parseInt(i[0].slice(4)),a=parseInt(i[1]),s=parseInt(i[2]);return"rgb("+(Math.round((n-o)*r)+o)+","+(Math.round((n-a)*r)+a)+","+(Math.round((n-s)*r)+s)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),n=t<0?0:255,r=t<0?-1*t:t,o=i>>16,a=i>>8&255,s=255&i;return"#"+(16777216+65536*(Math.round((n-o)*r)+o)+256*(Math.round((n-a)*r)+a)+(Math.round((n-s)*r)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return e.length>7?this.shadeRGBColor(t,e):this.shadeHexColor(t,e)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===t(e)&&!Array.isArray(e)&&null!=e}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e});var n=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach((function(o){i.isObject(e[o])&&o in t?n[o]=i.extend(t[o],e[o]):Object.assign(n,r({},o,e[o]))})),n}},{key:"extendArray",value:function(t,e){var n=[];return t.map((function(t){n.push(i.extend(e,t))})),n}},{key:"monthMod",value:function(t){return t%12}},{key:"addProps",value:function(t,e,i){"string"==typeof e&&(e=e.split(".")),t[e[0]]=t[e[0]]||{};var n=t[e[0]];return e.length>1?(e.shift(),this.addProps(n,e,i)):t[e[0]]=i,t}},{key:"clone",value:function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var i=[],n=0;n<e.length;n++)i[n]=this.clone(e[n]);return i}if("object"===t(e)){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=this.clone(e[o]));return r}return e}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1==e.length)return e[0];var i="",n=t<0?"-":"",r=e[0].replace(".",""),o=Number(e[1])+1;if(o<0){for(i=n+"0.";o++;)i+="0";return i+r.replace(/^\-/,"")}for(o-=r.length;o--;)i+="0";return r+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t),i=[],n=t.clientHeight,r=t.clientWidth;return n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),r-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i.push(r),i.push(n),i}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var n=0;n<i.length;n++)i[n]=parseInt(1===i[n].length?i[n]+i[n]:i[n],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))[3]}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}},{key:"polarToCartesian",value:function(t,e,i,n){var r=(n-90)*Math.PI/180;return{x:t+i*Math.cos(r),y:e+i*Math.sin(r)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var n=i-t.length+1;n--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d\.]*/g,""))}},{key:"randomString",value:function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*i.length));return e}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var n=t.indexOf("Edge/");return n>0&&parseInt(t.substring(n+5,t.indexOf(".",n)),10)}}]),i}(),p=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var n=this,r=this.w,o=i.intensity;if(!d.isFirefox()){t.unfilter(!0);var a=new window.SVG.Filter;a.size("120%","180%","-5%","-40%"),t.filter((function(t){var i=r.config.chart.dropShadow;(a=i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:o}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}}},{key:"addDarkenFilter",value:function(t,e,i){var n=this,r=this.w,o=i.intensity;if(!d.isFirefox()){t.unfilter(!0);var a=new window.SVG.Filter;a.size("120%","180%","-5%","-40%"),t.filter((function(t){var i=r.config.chart.dropShadow;(a=i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:o}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}}},{key:"applyFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:n});break;case"darken":this.addDarkenFilter(t,e,{intensity:n})}}},{key:"addShadow",value:function(t,e,i){var n=i.blur,r=i.top,o=i.left,a=i.color,s=i.opacity,l=t.flood(Array.isArray(a)?a[e]:a,s).composite(t.sourceAlpha,"in").offset(o,r).gaussianBlur(n).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.top,r=e.left,o=e.blur,a=e.color,s=e.opacity,l=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),d.isIE()&&"radialBar"===c.config.chart.type||(a=Array.isArray(a)?a[i]:a,(new window.SVG.Filter).size("120%","180%","-5%","-40%"),t.filter((function(t){var e;e=d.isSafari()||d.isFirefox()||d.isIE()?t.flood(a,s).composite(t.sourceAlpha,"in").offset(r,n).gaussianBlur(o):t.flood(a,s).composite(t.sourceAlpha,"in").offset(r,n).gaussianBlur(o).merge(t.source),t.blend(t.source,e)})),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")),t}},{key:"setSelectionFilter",value:function(t,e,i){var n=this.w;if(void 0!==n.globals.selectedDataPoints[e]&&n.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var r=n.config.states.active.filter;"none"!==r&&this.applyFilter(t,e,r.type,r.value)}}}]),t}(),f=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.setEasingFunctions()}return n(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:t="<>"}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,n){t.attr(e).animate(n).attr(i)}},{key:"animateCircleRadius",value:function(t,e,i,n,r){e||(e=0),t.attr({r:e}).animate(n,r).attr({r:i})}},{key:"animateCircle",value:function(t,e,i,n,r){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(n,r).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,n,r){t.attr(e).animate(n).attr(i).afterAll((function(){r()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.j,n=t.pathFrom,r=t.pathTo,o=t.speed,a=t.delay,s=(t.strokeWidth,this.w),l=0;s.config.chart.animations.animateGradually.enabled&&(l=s.config.chart.animations.animateGradually.delay),s.config.chart.animations.dynamicAnimation.enabled&&s.globals.dataChanged&&(l=0),this.morphSVG(e,i,n,r,o,a*l)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){t.el.classList.remove("hidden")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded=!0,"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e})}},{key:"morphSVG",value:function(t,e,i,n,r,o){var a=this,s=this.w;i||(i=t.attr("pathFrom")),n||(n=t.attr("pathTo")),(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(s.globals.gridHeight),r=1),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(s.globals.gridHeight),r=1),s.globals.shouldAnimate||(r=1),t.plot(i).animate(1,s.globals.easing,o).plot(i).animate(r,s.globals.easing,o).plot(n).afterAll((function(){d.isNumber(e)?e===s.globals.series[s.globals.maxValsInArrayIndex].length-2&&s.globals.shouldAnimate&&a.animationCompleted(t):s.globals.shouldAnimate&&a.animationCompleted(t),a.showDelayedElements()}))}}]),t}(),g=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawLine",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:n,stroke:r,"stroke-dasharray":o,"stroke-width":a})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w.globals.dom.Paper.rect();return h.attr({x:t,y:e,width:i>0?i:0,height:n>0?n:0,rx:r,ry:r,fill:o,opacity:a,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),h}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:i,stroke:e})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,n=t.stroke,r=void 0===n?"#a8a8a8":n,o=t.strokeWidth,a=void 0===o?1:o,s=t.fill,l=t.fillOpacity,c=void 0===l?1:l,h=t.strokeOpacity,u=void 0===h?1:h,d=t.classes,p=t.strokeLinecap,f=void 0===p?null:p,g=t.strokeDashArray,m=void 0===g?0:g,y=this.w;return null===f&&(f=y.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(y.globals.gridHeight)),y.globals.dom.Paper.path(i).attr({fill:s,"fill-opacity":c,stroke:r,"stroke-opacity":u,"stroke-linecap":f,"stroke-width":a,"stroke-dasharray":m,class:d})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return null===i?n=["L",t,e].join(" "):"H"===i?n=["H",t].join(" "):"V"===i&&(n=["V",e].join(" ")),n}},{key:"curve",value:function(t,e,i,n,r,o){return["C",t,e,i,n,r,o].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,n){return["Q",t,e,i,n].join(" ")}},{key:"arc",value:function(t,e,i,n,r,o,a){var s="A";arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(s="a");var l=[s,t,e,i,n,r,o,a].join(" ");return l}},{key:"renderPaths",value:function(t){var e,i=t.j,n=t.realIndex,r=t.pathFrom,o=t.pathTo,s=t.stroke,l=t.strokeWidth,c=t.strokeLinecap,h=t.fill,u=t.animationDelay,d=t.initialSpeed,g=t.dataChangeSpeed,m=t.className,y=t.shouldClipToGrid,v=void 0===y||y,b=t.bindEventsOnPaths,x=void 0===b||b,w=t.drawShadow,_=void 0===w||w,S=this.w,P=new p(this.ctx),k=new f(this.ctx),C=this.w.config.chart.animations.enabled,T=C&&this.w.config.chart.animations.dynamicAnimation.enabled,A=!!(C&&!S.globals.resized||T&&S.globals.dataChanged&&S.globals.shouldAnimate);A?e=r:(e=o,S.globals.animationEnded=!0);var O,M=S.config.stroke.dashArray;O=Array.isArray(M)?M[n]:S.config.stroke.dashArray;var E=this.drawPath({d:e,stroke:s,strokeWidth:l,fill:h,fillOpacity:1,classes:m,strokeLinecap:c,strokeDashArray:O});if(E.attr("index",n),v&&E.attr({"clip-path":"url(#gridRectMask".concat(S.globals.cuid,")")}),"none"!==S.config.states.normal.filter.type)P.getDefaultFilter(E,n);else if(S.config.chart.dropShadow.enabled&&_&&(!S.config.chart.dropShadow.enabledSeries||S.config.chart.dropShadow.enabledSeries&&-1!==S.config.chart.dropShadow.enabledSeries.indexOf(n))){var I=S.config.chart.dropShadow;P.dropShadow(E,I,n)}x&&(E.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,E)),E.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,E)),E.node.addEventListener("mousedown",this.pathMouseDown.bind(this,E))),E.attr({pathTo:o,pathFrom:r});var D={el:E,j:i,pathFrom:r,pathTo:o,strokeWidth:l};return!C||S.globals.resized||S.globals.dataChanged?!S.globals.resized&&S.globals.dataChanged||k.showDelayedElements():k.animatePathsGradually(a({},D,{speed:d,delay:u})),S.globals.dataChanged&&T&&A&&k.animatePathsGradually(a({},D,{speed:g})),E}},{key:"drawPattern",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,(function(o){"horizontalLines"===t?o.line(0,0,i,0).stroke({color:n,width:r+1}):"verticalLines"===t?o.line(0,0,0,e).stroke({color:n,width:r+1}):"slantedLines"===t?o.line(0,0,e,i).stroke({color:n,width:r}):"squares"===t?o.rect(e,i).fill("none").stroke({color:n,width:r}):"circles"===t&&o.circle(e).fill("none").stroke({color:n,width:r})}))}},{key:"drawGradient",value:function(t,e,i,n,r){var o,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;e=d.hexToRgba(e,n),i=d.hexToRgba(i,r);var u=0,p=1,f=1,g=null;null!==s&&(u=void 0!==s[0]?s[0]/100:0,p=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,g=void 0!==s[3]?s[3]/100:null);var m=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(o=null===l||0===l.length?h.globals.dom.Paper.gradient(m?"radial":"linear",(function(t){t.at(u,e,n),t.at(p,i,r),t.at(f,i,r),null!==g&&t.at(g,e,n)})):h.globals.dom.Paper.gradient(m?"radial":"linear",(function(t){(Array.isArray(l[c])?l[c]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),m){var y=h.globals.gridWidth/2,v=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?o.attr({gradientUnits:"userSpaceOnUse",cx:y,cy:v,r:a}):o.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?o.from(0,0).to(0,1):"diagonal"===t?o.from(0,0).to(1,1):"horizontal"===t?o.from(0,1).to(1,1):"diagonal2"===t&&o.from(0,1).to(2,2);return o}},{key:"drawText",value:function(t){var e,i=this.w,n=t.x,r=t.y,o=t.text,a=t.textAnchor,s=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.foreColor,u=t.opacity;return void 0===o&&(o=""),a||(a="start"),h||(h=i.config.chart.foreColor),l=l||i.config.chart.fontFamily,c=c||"regular",(e=Array.isArray(o)?i.globals.dom.Paper.text((function(t){for(var e=0;e<o.length;e++)t.tspan(o[e])})):i.globals.dom.Paper.plain(o)).attr({x:n,y:r,"text-anchor":a,"dominant-baseline":"auto","font-size":s,"font-family":l,"font-weight":c,fill:h,class:(t.cssClass,t.cssClass)}),e.node.style.fontFamily=l,e.node.style.opacity=u,e}},{key:"addTspan",value:function(t,e,i){var n=t.tspan(e);i||(i=this.w.config.chart.fontFamily),n.node.style.fontFamily=i}},{key:"drawMarker",value:function(t,e,i){t=t||0;var n=i.pSize||0,r=null;if("square"===i.shape){var o=void 0===i.pRadius?n/2:i.pRadius;null===e&&(n=0,o=0);var a=1.2*n+o,s=this.drawRect(a,a,a,a,o);s.attr({x:t-a/2,y:e-a/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pWidth?i.pWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),r=s}else"circle"!==i.shape&&i.shape||(d.isNumber(e)||(n=0,e=0),r=this.drawCircle(n,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pWidth?i.pWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return r}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,n=new p(this.ctx),r=parseInt(t.node.getAttribute("index")),o=parseInt(t.node.getAttribute("j"));if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&"none"!==i.config.states.active.filter.type&&!i.globals.isTouchDevice){var a=i.config.states.hover.filter;n.applyFilter(t,r,a.type,a.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,n=new p(this.ctx),r=parseInt(t.node.getAttribute("index")),o=parseInt(t.node.getAttribute("j"));"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&n.getDefaultFilter(t,r)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,n=new p(this.ctx),r=parseInt(t.node.getAttribute("index")),o=parseInt(t.node.getAttribute("j")),a="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[r].indexOf(o)>-1){var s=i.globals.selectedDataPoints[r].indexOf(o);i.globals.selectedDataPoints[r].splice(s,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members;l.forEach((function(t){t.node.setAttribute("selected","false"),n.getDefaultFilter(t,r)})),c.forEach((function(t){t.node.setAttribute("selected","false"),n.getDefaultFilter(t,r)}))}t.node.setAttribute("selected","true"),a="true",void 0===i.globals.selectedDataPoints[r]&&(i.globals.selectedDataPoints[r]=[]),i.globals.selectedDataPoints[r].push(o)}if("true"===a){var h=i.config.states.active.filter;"none"!==h&&n.applyFilter(t,r,h.type,h.value)}else"none"!==i.config.states.active.filter.type&&n.getDefaultFilter(t,r);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:o,w:i}),e&&this.ctx.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:o,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e=t.getBBox();return{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,n){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w,a=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});n&&a.attr("transform",n),o.globals.dom.Paper.add(a);var s=a.bbox();return r||(s=a.node.getBoundingClientRect()),a.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i){for(var n=e.length-3;n>0;n-=3)if(t.getSubStringLength(0,n)<=i)return void(t.textContent=e.substring(0,n)+"...");t.textContent="..."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),m={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},y=function(){function t(){e(this,t),this.yAxis={show:!0,showAlways:!1,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#78909C",offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#78909C",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",opacity:.3,offsetX:0,offsetY:0,yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:"",padding:{left:5,right:5,top:0,bottom:2}}}},this.pointAnnotation={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"middle",offsetX:0,offsetY:-15,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:"",padding:{left:5,right:5,top:0,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0}}}return n(t,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[m],defaultLocale:"en",dropShadow:{enabled:!1,enabledSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,zoomed:void 0,scrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,endingShape:"flat",colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!0,distributed:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{size:void 0,inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,color:void 0,offsetY:0},value:{show:!0,fontSize:"14px",fontFamily:void 0,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.globals.series.length+"%"}}}},rangeBar:{},pie:{size:void 0,customScale:1,offsetX:0,offsetY:0,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,color:void 0,offsetY:-10},value:{show:!0,fontSize:"20px",fontFamily:void 0,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)}}}}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,colors:void 0},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"sqaures",width:6,height:6,strokeWidth:2}},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1,animate:!1}},yaxis:{lines:{show:!0,animate:!1}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:0,labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:0,vertical:5},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,fillOpacity:1,shape:"circle",radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.15}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.65}}},title:{text:void 0,align:"left",margin:10,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:10,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],offsetX:0,offsetY:0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!0,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss"}},axisBorder:{show:!0,color:"#78909C",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#78909C",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),v=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.graphics=new g(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return n(t,[{key:"drawAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.drawYAxisAnnotations(),i=this.drawXAxisAnnotations(),n=this.drawPointAnnotations(),r=t.config.chart.animations.enabled,o=[e,i,n],a=[i.node,e.node,n.node],s=0;s<3;s++)t.globals.dom.elGraphical.add(o[s]),!r||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&a[s].classList.add("hidden"),t.globals.delayedElements.push({el:a[s],index:0});this.annotationsBackground()}}},{key:"getStringX",value:function(t){var e=this.w,i=t,n=e.globals.labels.indexOf(t),r=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return r&&(i=parseFloat(r.getAttribute("x"))),i}},{key:"addXaxisAnnotation",value:function(t,e,i){var n=this.w,r=this.invertAxis?n.globals.minY:n.globals.minX,o=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,a=(t.x-r)/(o/n.globals.gridWidth),s=t.label.text;"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.isXNumeric||(a=this.getStringX(t.x));var l=t.strokeDashArray;if(!(a<0||a>n.globals.gridWidth)){if(null===t.x2){var c=this.graphics.drawLine(a+t.offsetX,0+t.offsetY,a+t.offsetX,n.globals.gridHeight+t.offsetY,t.borderColor,l);e.appendChild(c.node)}else{var h=(t.x2-r)/(o/n.globals.gridWidth);if("category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.isXNumeric||(h=this.getStringX(t.x2)),h<a){var u=a;a=h,h=u}if(s){var d=this.graphics.drawRect(a+t.offsetX,0+t.offsetY,h-a,n.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,l);e.appendChild(d.node)}}var p="top"===t.label.position?-3:n.globals.gridHeight,f=new g(this.ctx).getTextRects(s,parseFloat(t.label.style.fontSize)),m=this.graphics.drawText({x:a+t.label.offsetX,y:p+t.label.offsetY-("top"===t.label.position?f.width/2-12:-f.width/2),text:s,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});m.attr({rel:i}),e.appendChild(m.node),this.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((function(e,n){t.addXaxisAnnotation(e,i.node,n)})),i}},{key:"addYaxisAnnotation",value:function(t,e,i){var n,r,o=this.w,a=t.strokeDashArray;if(this.invertAxis){var s=o.globals.labels.indexOf(t.y),l=o.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(s+1)+")");l&&(n=parseFloat(l.getAttribute("y")))}else n=o.globals.gridHeight-(t.y-o.globals.minYArr[t.yAxisIndex])/(o.globals.yRange[t.yAxisIndex]/o.globals.gridHeight),o.config.yaxis[t.yAxisIndex]&&o.config.yaxis[t.yAxisIndex].reversed&&(n=(t.y-o.globals.minYArr[t.yAxisIndex])/(o.globals.yRange[t.yAxisIndex]/o.globals.gridHeight));var c=t.label.text;if(null===t.y2){var h=this.graphics.drawLine(0+t.offsetX,n+t.offsetY,o.globals.gridWidth+t.offsetX,n+t.offsetY,t.borderColor,a);e.appendChild(h.node)}else{if(this.invertAxis){var u=o.globals.labels.indexOf(t.y2),d=o.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(u+1)+")");d&&(r=parseFloat(d.getAttribute("y")))}else r=o.globals.gridHeight-(t.y2-o.globals.minYArr[t.yAxisIndex])/(o.globals.yRange[t.yAxisIndex]/o.globals.gridHeight),o.config.yaxis[t.yAxisIndex]&&o.config.yaxis[t.yAxisIndex].reversed&&(r=(t.y2-o.globals.minYArr[t.yAxisIndex])/(o.globals.yRange[t.yAxisIndex]/o.globals.gridHeight));if(r>n){var p=n;n=r,r=p}if(c){var f=this.graphics.drawRect(0+t.offsetX,r+t.offsetY,o.globals.gridWidth+t.offsetX,n-r,0,t.fillColor,t.opacity,1,t.borderColor,a);e.appendChild(f.node)}}var g="right"===t.label.position?o.globals.gridWidth:0,m=this.graphics.drawText({x:g+t.label.offsetX,y:(r||n)+t.label.offsetY-3,text:c,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});m.attr({rel:i}),e.appendChild(m.node)}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map((function(e,n){t.addYaxisAnnotation(e,i.node,n)})),i}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map((function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)})),(i=d.listToArray(i)).forEach((function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}))}},{key:"removeAnnotation",value:function(t,e){var i=t.w,n=i.globals.dom.baseEl.querySelectorAll(".".concat(e));n&&(i.globals.memory.methodsToExec.map((function(t,n){t.id===e&&i.globals.memory.methodsToExec.splice(n,1)})),n.forEach((function(t){t.parentElement.removeChild(t)})))}},{key:"addPointAnnotation",value:function(t,e,i){var n=this.w,r=0,o=0,a=0;if(this.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts."),"string"==typeof t.x){var s=n.globals.labels.indexOf(t.x),l=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(s+1)+")");r=parseFloat(l.getAttribute("x"));var c=t.y;null===t.y&&(c=n.globals.series[t.seriesIndex][s]),o=n.globals.gridHeight-(c-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight)-parseFloat(t.label.style.fontSize)-t.marker.size,a=n.globals.gridHeight-(c-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight),n.config.yaxis[t.yAxisIndex]&&n.config.yaxis[t.yAxisIndex].reversed&&(o=(c-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight)+parseFloat(t.label.style.fontSize)+t.marker.size,a=(c-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight))}else r=(t.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth),o=n.globals.gridHeight-(parseFloat(t.y)-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight)-parseFloat(t.label.style.fontSize)-t.marker.size,a=n.globals.gridHeight-(t.y-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight),n.config.yaxis[t.yAxisIndex]&&n.config.yaxis[t.yAxisIndex].reversed&&(o=(parseFloat(t.y)-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight)-parseFloat(t.label.style.fontSize)-t.marker.size,a=(t.y-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight));if(!(r<0||r>n.globals.gridWidth)){var h={pSize:t.marker.size,pWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,radius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},u=this.graphics.drawMarker(r+t.marker.offsetX,a+t.marker.offsetY,h);e.appendChild(u.node);var d=t.label.text?t.label.text:"",p=this.graphics.drawText({x:r+t.label.offsetX,y:o+t.label.offsetY,text:d,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(p.attr({rel:i}),e.appendChild(p.node),t.customSVG.SVG){var f=this.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});f.attr({transform:"translate(".concat(r+t.customSVG.offsetX,", ").concat(o+t.customSVG.offsetY,")")}),f.node.innerHTML=t.customSVG.SVG,e.appendChild(f.node)}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,n){t.addPointAnnotation(e,i.node,n)})),i}},{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var n=null!==e?e:0,r=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(null!==r){var o=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-o.height+4),"top"===t.label.position?r.setAttribute("y",parseFloat(r.getAttribute("y"))+o.width):r.setAttribute("y",parseFloat(r.getAttribute("y"))-o.width);var a=this.graphics.rotateAroundCenter(r),s=a.x,l=a.y;r.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!e.label.text||e.label.text&&!e.label.text.trim())return null;var n=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=t.getBoundingClientRect(),o=e.label.style.padding.left,a=e.label.style.padding.right,s=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(s=e.label.style.padding.left,l=e.label.style.padding.right,o=e.label.style.padding.top,a=e.label.style.padding.bottom);var c=r.left-n.left-o,h=r.top-n.top-s,u=this.graphics.drawRect(c,h,r.width+o+a,r.height+s+l,0,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&u.node.classList.add(e.id),u}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,n,r){var o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(n,"']"));if(o){var a=o.parentNode,s=t.addBackgroundToAnno(o,i);s&&a.insertBefore(s.node,o)}};e.config.annotations.xaxis.map((function(t,e){i(t,e,"xaxis")})),e.config.annotations.yaxis.map((function(t,e){i(t,e,"yaxis")})),e.config.annotations.points.map((function(t,e){i(t,e,"point")}))}},{key:"addText",value:function(t,e,i){var n=t.x,r=t.y,o=t.text,a=t.textAnchor,s=t.appendTo,l=void 0===s?".apexcharts-inner":s,c=t.foreColor,h=t.fontSize,u=t.fontFamily,d=t.cssClass,p=t.backgroundColor,f=t.borderWidth,g=t.strokeDashArray,m=t.radius,y=t.borderColor,v=t.paddingLeft,b=void 0===v?4:v,x=t.paddingRight,w=void 0===x?4:x,_=t.paddingBottom,S=void 0===_?2:_,P=t.paddingTop,k=void 0===P?2:P,C=i,T=C.w,A=T.globals.dom.baseEl.querySelector(l),O=this.graphics.drawText({x:n,y:r,text:o,textAnchor:a||"start",fontSize:h||"12px",fontFamily:u||T.config.chart.fontFamily,foreColor:c||T.config.chart.foreColor,cssClass:d});A.appendChild(O.node);var M=O.bbox();if(o){var E=this.graphics.drawRect(M.x-b,M.y-k,M.width+b+w,M.height+S+k,m,p,1,f,y,g);O.before(E)}return e&&T.globals.memory.methodsToExec.push({context:C,method:C.addText,label:"addText",params:{x:n,y:r,text:o,textAnchor:a,appendTo:l,foreColor:c,fontSize:h,cssClass:d,backgroundColor:p,borderWidth:f,strokeDashArray:g,radius:m,borderColor:y,paddingLeft:b,paddingRight:w,paddingBottom:S,paddingTop:k}}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,n=t.context,r=t.type,o=t.contextMethod,a=n,s=a.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),c=l.childNodes.length+1,h=new y,u=Object.assign({},"xaxis"===r?h.xAxisAnnotation:"yaxis"===r?h.yAxisAnnotation:h.pointAnnotation),p=d.extend(u,e);switch(r){case"xaxis":this.addXaxisAnnotation(p,l,c);break;case"yaxis":this.addYaxisAnnotation(p,l,c);break;case"point":this.addPointAnnotation(p,l,c)}var f=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(c,"']")),g=this.addBackgroundToAnno(f,p);return g&&l.insertBefore(g.node,f),i&&s.globals.memory.methodsToExec.push({context:a,id:p.id?p.id:d.randomId(),method:o,label:"addAnnotation",params:e}),n}}]),t}(),b=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return n(t,[{key:"isValidDate",value:function(t){return!isNaN(this.parseDate(t))}},{key:"getUTCTimeStamp",value:function(t){return Date.parse(t)?new Date(new Date(t).toISOString().substr(0,25)).getTime():t}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getUTCTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getUTCTimeStamp(i)}},{key:"treatAsUtc",value:function(t){var e=new Date(t);return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}},{key:"formatDate",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this.w.globals.locale,o=["\0"].concat(u(r.months)),a=[""].concat(u(r.shortMonths)),s=[""].concat(u(r.days)),l=[""].concat(u(r.shortDays));function c(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}n&&(t=this.treatAsUtc(t));var h=i?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+h)).replace(/(^|[^\\])yy/g,"$1"+h.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+h);var d=(i?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+o[0])).replace(/(^|[^\\])MMM/g,"$1"+a[0])).replace(/(^|[^\\])MM/g,"$1"+c(d))).replace(/(^|[^\\])M/g,"$1"+d);var p=i?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+s[0])).replace(/(^|[^\\])ddd/g,"$1"+l[0])).replace(/(^|[^\\])dd/g,"$1"+c(p))).replace(/(^|[^\\])d/g,"$1"+p);var f=i?t.getUTCHours():t.getHours(),g=f>12?f-12:0===f?12:f;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+c(f))).replace(/(^|[^\\])H/g,"$1"+f)).replace(/(^|[^\\])hh+/g,"$1"+c(g))).replace(/(^|[^\\])h/g,"$1"+g);var m=i?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+c(m))).replace(/(^|[^\\])m/g,"$1"+m);var y=i?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+c(y))).replace(/(^|[^\\])s/g,"$1"+y);var v=i?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+c(v,3)),v=Math.round(v/10),e=e.replace(/(^|[^\\])ff/g,"$1"+c(v)),v=Math.round(v/10);var b=f<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var x=b.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+x)).replace(/(^|[^\\])t/g,"$1"+x.charAt(0));var w=-t.getTimezoneOffset(),_=i||!w?"Z":w>0?"+":"-";if(!i){var S=(w=Math.abs(w))%60;_+=c(Math.floor(w/60))+":"+c(S)}e=e.replace(/(^|[^\\])K/g,"$1"+_);var P=(i?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(s[0],"g"),s[P])).replace(new RegExp(l[0],"g"),l[P])).replace(new RegExp(o[0],"g"),o[d])).replace(new RegExp(a[0],"g"),a[d])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e){var i=this.w;void 0!==i.config.xaxis.min&&(t=i.config.xaxis.min),void 0!==i.config.xaxis.max&&(e=i.config.xaxis.max);var n=new Date(t).getFullYear(),r=new Date(e).getFullYear(),o=new Date(t).getMonth(),a=new Date(e).getMonth(),s=new Date(t).getDate(),l=new Date(e).getDate(),c=new Date(t).getHours(),h=new Date(e).getHours();return{minMinute:new Date(t).getMinutes(),maxMinute:new Date(e).getMinutes(),minHour:c,maxHour:h,minDate:s,maxDate:l,minMonth:o,maxMonth:a,minYear:n,maxYear:r}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var n=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=d.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),x=function(){function t(i){e(this,t),this.opts=i}return n(t,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.opts.yaxis[0].labels.show=!1,this.opts.yaxis[0].floating=!0,d.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]}},stroke:{width:0},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1},xaxis:{tooltip:{enabled:!1},crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){return{stroke:{width:1,colors:["#333"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex,i=t.dataPointIndex,n=t.w;return'<div class="apexcharts-tooltip-candlestick"><div>Open: <span class="value">'+n.globals.seriesCandleO[e][i]+'</span></div><div>High: <span class="value">'+n.globals.seriesCandleH[e][i]+'</span></div><div>Low: <span class="value">'+n.globals.seriesCandleL[e][i]+'</span></div><div>Close: <span class="value">'+n.globals.seriesCandleC[e][i]+"</span></div></div>"}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,n=e.dataPointIndex,r=e.w,o=r.globals.seriesRangeStart[i][n];return r.globals.seriesRangeEnd[i][n]-o},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(t){var e=t.ctx,i=t.seriesIndex,n=t.dataPointIndex,r=t.y1,o=t.y2,a=t.w,s=a.globals.seriesRangeStart[i][n],l=a.globals.seriesRangeEnd[i][n],c=a.globals.labels[n];r&&o&&(s=r,l=o,a.config.series[i].data[n].x&&(c=a.config.series[i].data[n].x));var h="",u="",d=a.globals.colors[i];if(void 0===a.config.tooltip.x.formatter)if("datetime"===a.config.xaxis.type){var p=new b(e);h=p.formatDate(new Date(s),a.config.tooltip.x.format,!0,!0),u=p.formatDate(new Date(l),a.config.tooltip.x.format,!0,!0)}else h=s,u=l;else h=a.config.tooltip.x.formatter(s),u=a.config.tooltip.x.formatter(l);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+d+'">'+(a.config.series[i].name?a.config.series[i].name:"")+'</span></div><div> <span class="category">'+c+': </span> <span class="value start-value">'+h+'</span> <span class="separator">-</span> <span class="value end-value">'+u+"</span></div></div>"}},xaxis:{tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(t){return d.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(){var t=this;this.opts.dataLabels=this.opts.dataLabels||{},this.opts.dataLabels.formatter=this.opts.dataLabels.formatter||void 0;var e=this.opts.dataLabels.formatter;this.opts.yaxis.forEach((function(e,i){t.opts.yaxis[i].min=0,t.opts.yaxis[i].max=100})),"bar"===this.opts.chart.type&&(this.opts.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t})}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:2,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1,zoom:{enabled:!1}},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"dark",shadeIntensity:.35,inverseColors:!1,stops:[0,100,100]}},padding:{right:0,left:0},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"vertical",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},padding:{right:0,left:0},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!0,style:{colors:["#a8a8a8"],fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},padding:{right:0,left:0},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}}],[{key:"convertCatToNumeric",value:function(t){t.xaxis.type="numeric",t.xaxis.convertedCatToNumeric=!0,t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return t},t.chart=t.chart||{},t.chart.zoom=t.chart.zoom||window.Apex.chart&&window.Apex.chart.zoom||{};var e=t.xaxis.labels.formatter,i=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(t.xaxis.labels.formatter=function(t){return e(i[t-1])}),t.xaxis.categories=[],t.labels=[],t.chart.zoom.enabled=t.chart.zoom.enabled||!1,t}}]),t}(),w=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getStackedSeriesTotals",value:function(){var t=this.w,e=[];if(0===t.globals.series.length)return e;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var n=0,r=0;r<t.globals.series.length;r++)n+=t.globals.series[r][i];e.push(n)}return t.globals.stackedSeriesTotals=e,e}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce((function(t,e){return t+e}),0):this.w.globals.series[t].reduce((function(t,e){return t+e}),0)}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter((function(t){return null!==t})):this.w.globals.series[t].filter((function(t){return null!==t}))).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every((function(t,e,i){return t===i[0]}))}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map((function(t){return t.length})).indexOf(Math.max.apply(Math,t.globals.series.map((function(t){return t.length}))))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach((function(t){e=Math.max(e,t)})),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map((function(t,e){var i=0;if(Array.isArray(t))for(var n=0;n<t.length;n++)i+=t[n];else i+=t;return i}))}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map((function(n,r){for(var o=0,a=0;a<n.length;a++)i.globals.seriesX[r][a]>t&&i.globals.seriesX[r][a]<e&&(o+=n[a]);return o}))}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map((function(e,i){var n=[];if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=t.globals.stackedSeriesTotals[r],a=0;o&&(a=100*e[r]/o),n.push(a)}else{var s=100*e/t.globals.seriesTotals.reduce((function(t,e){return t+e}),0);n.push(s)}return n}))}},{key:"getCalculatedRatios",value:function(){var t,e,i,n,r=this.w.globals,o=[],a=0,s=[],l=.1,c=0;if(r.yRange=[],r.isMultipleYAxis)for(var h=0;h<r.minYArr.length;h++)r.yRange.push(Math.abs(r.minYArr[h]-r.maxYArr[h])),s.push(0);else r.yRange.push(Math.abs(r.minY-r.maxY));r.xRange=Math.abs(r.maxX-r.minX),r.zRange=Math.abs(r.maxZ-r.minZ);for(var u=0;u<r.yRange.length;u++)o.push(r.yRange[u]/r.gridHeight);if(e=r.xRange/r.gridWidth,i=Math.abs(r.initialmaxX-r.initialminX)/r.gridWidth,t=r.yRange/r.gridWidth,n=r.xRange/r.gridHeight,(a=r.zRange/r.gridHeight*16)||(a=1),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(r.hasNegs=!0),r.isMultipleYAxis){s=[];for(var d=0;d<o.length;d++)s.push(-r.minYArr[d]/o[d])}else s.push(-r.minY/o[0]),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(l=-r.minY/t,c=r.minX/e);return{yRatio:o,invertedYRatio:t,zRatio:a,xRatio:e,initialXRatio:i,invertedXRatio:n,baseLineInvertedY:l,baseLineY:s,baseLineX:c}}},{key:"getLogSeries",value:function(t){var e=this.w;return e.globals.seriesLog=t.map((function(t,i){return e.config.yaxis[i]&&e.config.yaxis[i].logarithmic?t.map((function(t){return null===t?null:(Math.log(t)-Math.log(e.globals.minYArr[i]))/(Math.log(e.globals.maxYArr[i])-Math.log(e.globals.minYArr[i]))})):t})),e.globals.invalidLogScale?t:e.globals.seriesLog}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,n=this.w.globals;return n.yLogRatio=t.slice(),n.logYRange=n.yRange.map((function(t,r){if(i.config.yaxis[r]&&e.w.config.yaxis[r].logarithmic){var o,a=-Number.MAX_VALUE,s=Number.MIN_VALUE;return n.seriesLog.forEach((function(t,e){t.forEach((function(t){i.config.yaxis[e]&&i.config.yaxis[e].logarithmic&&(a=Math.max(t,a),s=Math.min(t,s))}))})),o=Math.pow(n.yRange[r],Math.abs(s-a)/n.yRange[r]),n.yLogRatio[r]=o/n.gridHeight,o}})),n.invalidLogScale?t.slice():n.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=!1;return t.length&&void 0!==t[0].type&&(e=!0,t.forEach((function(t){"bar"!==t.type&&"column"!==t.type||(i=!0)}))),{comboCharts:e,comboChartsHasBars:i}}},{key:"extendArrayProps",value:function(t,e){return e.yaxis&&(e=t.extendYAxis(e)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),_=function(){function i(t){e(this,i),this.opts=t}return n(i,[{key:"init",value:function(){var e=this.opts,i=new y,n=new x(e);this.chartType=e.chart.type,"histogram"===this.chartType&&(e.chart.type="bar",e=d.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},e)),e=this.extendYAxis(e),e=this.extendAnnotations(e);var r=i.init(),o={};if(e&&"object"===t(e)){var a={};switch(this.chartType){case"line":a=n.line();break;case"area":a=n.area();break;case"bar":a=n.bar();break;case"candlestick":a=n.candlestick();break;case"rangeBar":a=n.rangeBar();break;case"histogram":a=n.bar();break;case"bubble":a=n.bubble();break;case"scatter":a=n.scatter();break;case"heatmap":a=n.heatmap();break;case"pie":a=n.pie();break;case"donut":a=n.donut();break;case"radar":a=n.radar();break;case"radialBar":a=n.radialBar();break;default:a=n.line()}e.chart.brush&&e.chart.brush.enabled&&(a=n.brush(a)),e.chart.stacked&&"100%"===e.chart.stackType&&n.stacked100(),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(e),e.xaxis=e.xaxis||window.Apex.xaxis||{};var s=w.checkComboSeries(e.series);"line"!==e.chart.type&&"area"!==e.chart.type&&"scatter"!==e.chart.type||s.comboChartsHasBars||"datetime"===e.xaxis.type||"numeric"===e.xaxis.type||"between"===e.xaxis.tickPlacement||(e=x.convertCatToNumeric(e)),(e.chart.sparkline&&e.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(a=n.sparkline(a)),o=d.extend(r,a)}var l=d.extend(o,window.Apex);return r=d.extend(l,e),this.handleUserInputErrors(r)}},{key:"extendYAxis",value:function(t){var e=new y;return void 0===t.yaxis&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=d.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[d.extend(e.yAxis,t.yaxis)]:t.yaxis=d.extendArray(t.yaxis,e.yAxis),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new y;return t.annotations.yaxis=d.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new y;return t.annotations.xaxis=d.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new y;return t.annotations.points=d.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(e.chart.scroller&&console.warn("Scroller has been deprecated since v2.0.0. Please remove the configuration for chart.scroller"),("bar"===e.chart.type||"rangeBar"===e.chart.type)&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&("barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'),e.xaxis.crosshairs.width="tickWidth"),e.plotOptions.bar.horizontal&&(e.states.hover.type="none",e.tooltip.shared=!1),e.tooltip.followCursor||(console.warn("followCursor option in shared columns cannot be turned off. Please set %ctooltip.followCursor: true","color: blue;"),e.tooltip.followCursor=!0)),"candlestick"===e.chart.type&&e.yaxis[0].reversed&&(console.warn("Reversed y-axis in candlestick chart is not supported."),e.yaxis[0].reversed=!1),e.chart.group&&0===e.yaxis[0].labels.minWidth&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(e.stroke.width)&&"line"!==e.chart.type&&"area"!==e.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),e.stroke.width=e.stroke.width[0]),e}}]),i}(),S=function(){function t(){e(this,t)}return n(t,[{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,series:[],seriesRangeStart:[],seriesRangeEnd:[],seriesRangeBarTimeline:[],seriesPercent:[],seriesTotals:[],stackedSeriesTotals:[],seriesX:[],seriesZ:[],columnSeries:null,labels:[],timelineLabels:[],invertedTimelineLabels:[],seriesNames:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],padHorizontal:0,maxValsInArrayIndex:0,radialSize:0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,minY:Number.MIN_VALUE,maxY:-Number.MAX_VALUE,minYArr:[],maxYArr:[],maxX:-Number.MAX_VALUE,initialmaxX:-Number.MAX_VALUE,minX:Number.MIN_VALUE,initialminX:Number.MIN_VALUE,minZ:Number.MIN_VALUE,maxZ:-Number.MAX_VALUE,minXDiff:Number.MAX_VALUE,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yRange:[],zRange:0,xRange:0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,delayedElements:[],axisCharts:!0,isXNumeric:!1,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,comboChartsHasBars:!1,dataChanged:!1,previousPaths:[],seriesXvalues:[],seriesYvalues:[],seriesCandleO:[],seriesCandleH:[],seriesCandleL:[],seriesCandleC:[],allSeriesHasEqualX:!0,dataPoints:0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,yAxisScale:[],xAxisScale:null,xAxisTicksPositions:[],timescaleTicks:[],rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yLabelsCoords:[],yTitleCoords:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,tooltipOpts:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return e.initialConfig=d.extend({},t),e.initialSeries=JSON.parse(JSON.stringify(e.initialConfig.series)),e}}]),t}(),P=function(){function t(i){e(this,t),this.opts=i}return n(t,[{key:"init",value:function(){var t=new _(this.opts).init();return{config:t,globals:(new S).init(t)}}}]),t}(),k=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.opts=null,this.seriesIndex=0}return n(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,n=parseInt(e.globals.gridWidth),r=parseInt(e.globals.gridHeight),o=n>r?n:r,a=t.image,s=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(s=i.fill.image.width+1,l=i.fill.image.height):(s=o+1,l=o):(s=t.width,l=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");g.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var h=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS("http://www.w3.org/1999/xlink","href",a),g.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),h.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w;return("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||"heatmap"===e.config.chart.type?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,n,r,o=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var a=this.getFillColors()[this.seriesIndex];"function"==typeof a&&(a=a({seriesIndex:this.seriesIndex,value:t.value,w:e}));var s=this.getFillType(this.seriesIndex),l=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity,c=a;return t.color&&(a=t.color),-1===a.indexOf("rgb")?c=d.hexToRgba(a,l):a.indexOf("rgba")>-1&&(l="0."+d.getOpacityFromRGBA(a)),"pattern"===s&&(n=this.handlePatternFill(n,a,l,c)),"gradient"===s&&(r=this.handleGradientFill(r,a,l,this.seriesIndex)),o.fill.image.src.length>0&&"image"===s?t.seriesNumber<o.fill.image.src.length?(this.clippedImgArea({opacity:l,image:o.fill.image.src[t.seriesNumber],patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1,")")):i=c:i="gradient"===s?r:"pattern"===s?n:c,t.solid&&(i=c),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,n=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?t.globals.stroke.colors instanceof Array?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):t.globals.fill.colors instanceof Array?n=t.globals.fill.colors:n.push(t.globals.fill.colors):"line"===e.chart.type?t.globals.stroke.colors instanceof Array?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):t.globals.fill.colors instanceof Array?n=t.globals.fill.colors:n.push(t.globals.fill.colors),void 0!==i.fillColors&&(n=[],i.fillColors instanceof Array?n=i.fillColors.slice():n.push(i.fillColors)),n}},{key:"handlePatternFill",value:function(t,e,i,n){var r=this.w.config,o=this.opts,a=new g(this.ctx),s=void 0===r.fill.pattern.strokeWidth?Array.isArray(r.stroke.width)?r.stroke.width[this.seriesIndex]:r.stroke.width:Array.isArray(r.fill.pattern.strokeWidth)?r.fill.pattern.strokeWidth[this.seriesIndex]:r.fill.pattern.strokeWidth,l=e;return r.fill.pattern.style instanceof Array?void 0!==r.fill.pattern.style[o.seriesNumber]?a.drawPattern(r.fill.pattern.style[o.seriesNumber],r.fill.pattern.width,r.fill.pattern.height,l,s,i):n:a.drawPattern(r.fill.pattern.style,r.fill.pattern.width,r.fill.pattern.height,l,s,i)}},{key:"handleGradientFill",value:function(t,e,i,n){var r,o,a=this.w.config,s=this.opts,l=new g(this.ctx),c=new d,h=a.fill.gradient.type,u=void 0===a.fill.gradient.opacityFrom?i:Array.isArray(a.fill.gradient.opacityFrom)?a.fill.gradient.opacityFrom[n]:a.fill.gradient.opacityFrom,p=void 0===a.fill.gradient.opacityTo?i:Array.isArray(a.fill.gradient.opacityTo)?a.fill.gradient.opacityTo[n]:a.fill.gradient.opacityTo;if(r=e,o=void 0===a.fill.gradient.gradientToColors||0===a.fill.gradient.gradientToColors.length?"dark"===a.fill.gradient.shade?c.shadeColor(-1*parseFloat(a.fill.gradient.shadeIntensity),e):c.shadeColor(parseFloat(a.fill.gradient.shadeIntensity),e):a.fill.gradient.gradientToColors[s.seriesNumber],a.fill.gradient.inverseColors){var f=r;r=o,o=f}return l.drawGradient(h,r,o,u,p,s.size,a.fill.gradient.stops,a.fill.gradient.colorStops,n)}}]),t}(),C=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)void 0===t.globals.markers.size[e]&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map((function(e){return t.config.markers.size}))}},{key:"plotChartMarkers",value:function(t,e,i){var n,r=this.w,o=e,a=t,s=null,l=new g(this.ctx);if(r.globals.markers.size[e]>0&&(s=l.group({class:"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),a.x instanceof Array)for(var c=0;c<a.x.length;c++){var h=i;1===i&&0===c&&(h=0),1===i&&1===c&&(h=1);var u="apexcharts-marker";if("line"!==r.config.chart.type&&"area"!==r.config.chart.type||r.globals.comboCharts||r.config.tooltip.intersect||(u+=" no-pointer-events"),Array.isArray(r.config.markers.size)?r.globals.markers.size[e]>0:r.config.markers.size>0){d.isNumber(a.y[c])?u+=" w".concat(d.randomId()):u="apexcharts-nullpoint";var f=this.getMarkerConfig(u,e,h);r.config.series[o].data[i]&&(r.config.series[o].data[i].fillColor&&(f.pointFillColor=r.config.series[o].data[i].fillColor),r.config.series[o].data[i].strokeColor&&(f.pointStrokeColor=r.config.series[o].data[i].strokeColor)),(n=l.drawMarker(a.x[c],a.y[c],f)).attr("rel",h),n.attr("j",h),n.attr("index",e),n.node.setAttribute("default-marker-size",f.pSize),new p(this.ctx).setSelectionFilter(n,e,h),this.addEvents(n),s&&s.add(n)}else void 0===r.globals.pointsArray[e]&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e].push([a.x[c],a.y[c]])}return s}},{key:"getMarkerConfig",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=this.getMarkerStyle(e),o=n.globals.markers.size[e],a=n.config.markers;null!==i&&a.discrete.length&&a.discrete.map((function(t){t.seriesIndex===e&&t.dataPointIndex===i&&(r.pointStrokeColor=t.strokeColor,r.pointFillColor=t.fillColor,o=t.size)}));var s="bubble"===n.config.chart.type?n.config.stroke.width:a.strokeWidth;return{pSize:o,pRadius:a.radius,pWidth:s instanceof Array?s[e]:s,pointStrokeColor:r.pointStrokeColor,pointFillColor:r.pointFillColor,shape:a.shape instanceof Array?a.shape[e]:a.shape,class:t,pointStrokeOpacity:a.strokeOpacity instanceof Array?a.strokeOpacity[e]:a.strokeOpacity,pointFillOpacity:a.fillOpacity instanceof Array?a.fillOpacity[e]:a.fillOpacity,seriesIndex:e}}},{key:"addEvents",value:function(t){var e=this.w,i=new g(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,n=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:n instanceof Array?n[t]:n,pointFillColor:i instanceof Array?i[t]:i}}}]),t}(),T=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return n(t,[{key:"draw",value:function(t,e,i){var n=this.w,r=new g(this.ctx),o=i.realIndex,a=i.pointsPos,s=i.zRatio,l=i.elParent,c=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),a.x instanceof Array)for(var h=0;h<a.x.length;h++){var u=e+1,d=!0;0===e&&0===h&&(u=0),0===e&&1===h&&(u=1);var p=0,f=n.globals.markers.size[o];if(s!==1/0){f=n.globals.seriesZ[o][u]/s;var m=n.config.plotOptions.bubble;m.minBubbleRadius&&f<m.minBubbleRadius&&(f=m.minBubbleRadius),m.maxBubbleRadius&&f>m.maxBubbleRadius&&(f=m.maxBubbleRadius)}n.config.chart.animations.enabled||(p=f);var y=a.x[h],v=a.y[h];if(p=p||0,null!==v&&void 0!==n.globals.series[o][u]||(d=!1),d){var b=this.drawPoint(y,v,p,f,o,u,e);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,n,r,o,a){var s=this.w,l=r,c=new f(this.ctx),h=new p(this.ctx),u=new k(this.ctx),d=new C(this.ctx),m=new g(this.ctx),y=d.getMarkerConfig("apexcharts-marker",l),v=u.fillPath({seriesNumber:r,patternUnits:"objectBoundingBox",value:s.globals.series[r][a]}),b=m.drawCircle(i);if(s.config.series[l].data[o]&&s.config.series[l].data[o].fillColor&&(v=s.config.series[l].data[o].fillColor),b.attr({cx:t,cy:e,fill:v,stroke:y.pointStrokeColor,"stroke-width":y.pWidth}),s.config.chart.dropShadow.enabled){var x=s.config.chart.dropShadow;h.dropShadow(b,x,r)}if(this.initialAnim&&!s.globals.dataChanged){var w=1;s.globals.resized||(w=s.config.chart.animations.speed),c.animateCircleRadius(b,0,n,w,s.globals.easing)}if(s.globals.dataChanged)if(this.dynamicAnim){var _,S,P,T,A=s.config.chart.animations.dynamicAnimation.speed;null!=(T=s.globals.previousPaths[r]&&s.globals.previousPaths[r][a])&&(_=T.x,S=T.y,P=void 0!==T.r?T.r:n);for(var O=0;O<s.globals.collapsedSeries.length;O++)s.globals.collapsedSeries[O].index===r&&(A=1,n=0);0===t&&0===e&&(n=0),c.animateCircle(b,{cx:_,cy:S,r:P},{cx:t,cy:e,r:n},A,s.globals.easing)}else b.attr({r:n});return b.attr({rel:o,j:o,index:r,"default-marker-size":n}),h.setSelectionFilter(b,r,o),d.addEvents(b),b.node.classList.add("apexcharts-marker"),b}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize)/4}}}]),t}(),A=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"dataLabelsCorrection",value:function(t,e,i,n,r,o,a){var s=this.w,l=!1,c=new g(this.ctx).getTextRects(i,a),h=c.width,u=c.height;void 0===s.globals.dataLabelsRects[n]&&(s.globals.dataLabelsRects[n]=[]),s.globals.dataLabelsRects[n].push({x:t,y:e,width:h,height:u});var d=s.globals.dataLabelsRects[n].length-2,p=void 0!==s.globals.lastDrawnDataLabelsIndexes[n]?s.globals.lastDrawnDataLabelsIndexes[n][s.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(void 0!==s.globals.dataLabelsRects[n][d]){var f=s.globals.dataLabelsRects[n][p];(t>f.x+f.width+2||e>f.y+f.height+2||t+h<f.x)&&(l=!0)}return(0===r||o)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t,e,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"top",r=this.w,o=new g(this.ctx),a=r.config.dataLabels,s=0,l=0,c=i,h=null;if(!a.enabled||t.x instanceof Array!=1)return h;h=o.group({class:"apexcharts-data-labels"});for(var u=0;u<t.x.length;u++)if(s=t.x[u]+a.offsetX,l=t.y[u]+a.offsetY-r.globals.markers.size[e]-5,"bottom"===n&&(l=l+2*r.globals.markers.size[e]+1.4*parseInt(a.style.fontSize)),!isNaN(s)){1===i&&0===u&&(c=0),1===i&&1===u&&(c=1);var d=r.globals.series[e][c],p="";"bubble"===r.config.chart.type?(d=r.globals.seriesZ[e][c],p=r.config.dataLabels.formatter(d,{ctx:this.ctx,seriesIndex:e,dataPointIndex:c,w:r}),l=t.y[u]+r.config.dataLabels.offsetY,l=new T(this.ctx).centerTextInBubble(l,e,c).y):void 0!==d&&(p=r.config.dataLabels.formatter(d,{ctx:this.ctx,seriesIndex:e,dataPointIndex:c,w:r})),this.plotDataLabelsText({x:s,y:l,text:p,i:e,j:c,parent:h,offsetCorrection:!0,dataLabelsConfig:r.config.dataLabels})}return h}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new g(this.ctx),n=t.x,r=t.y,o=t.i,a=t.j,s=t.text,l=t.textAnchor,c=t.parent,h=t.dataLabelsConfig,u=t.alwaysDrawDataLabel,d=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(o)<0)){var f={x:n,y:r,drawnextLabel:!0};d&&(f=this.dataLabelsCorrection(n,r,s,o,a,u,parseInt(h.style.fontSize))),e.globals.zoomed||(n=f.x,r=f.y),f.textRects&&(n+f.textRects.width<10||n>e.globals.gridWidth+10)&&(s="");var m=e.globals.dataLabels.style.colors[o];if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||!e.config.plotOptions.bar.distributed||(m=e.globals.dataLabels.style.colors[a]),f.drawnextLabel){var y=i.drawText({width:100,height:parseInt(h.style.fontSize),x:n,y:r,foreColor:m,textAnchor:l||h.textAnchor,text:s,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily});if(y.attr({class:"apexcharts-datalabel",cx:n,cy:r}),h.dropShadow.enabled){var v=h.dropShadow;new p(this.ctx).dropShadow(y,v)}c.add(y),void 0===e.globals.lastDrawnDataLabelsIndexes[o]&&(e.globals.lastDrawnDataLabelsIndexes[o]=[]),e.globals.lastDrawnDataLabelsIndexes[o].push(a)}}}}]),t}(),O=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w;var r=this.w;this.barOptions=r.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=r.config.stroke.width,this.isNullValue=!1,this.isTimelineBar="datetime"===r.config.xaxis.type&&r.globals.seriesRangeBarTimeline.length,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0}return n(t,[{key:"draw",value:function(t,e){var i=this.w,n=new g(this.ctx),r=new w(this.ctx,i);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.initVariables(t);var o=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var a=0,s=0;a<t.length;a++,s++){var l,c,h,u,p=void 0,f=void 0,m=void 0,y=void 0,v=[],b=[],x=i.globals.comboCharts?e[a]:a,_=n.group({class:"apexcharts-series",rel:a+1,seriesName:d.escapeString(i.globals.seriesNames[x]),"data:realIndex":x});this.ctx.series.addCollapsedClassToSeries(_,x),t[a].length>0&&(this.visibleI=this.visibleI+1);var S=0,P=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=x),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var C=this.initialPositions();y=C.y,P=C.barHeight,c=C.yDivision,u=C.zeroW,m=C.x,k=C.barWidth,l=C.xDivision,h=C.zeroH,this.horizontal||b.push(m+k/2);for(var T=n.group({class:"apexcharts-datalabels"}),A=0,O=i.globals.dataPoints;A<i.globals.dataPoints;A++,O--){void 0===this.series[a][A]||null===t[a][A]?this.isNullValue=!0:this.isNullValue=!1,i.config.stroke.show&&(S=this.isNullValue?0:Array.isArray(this.strokeWidth)?this.strokeWidth[x]:this.strokeWidth);var M=null;this.isHorizontal?(M=this.drawBarPaths({indexes:{i:a,j:A,realIndex:x,bc:s},barHeight:P,strokeWidth:S,pathTo:p,pathFrom:f,zeroW:u,x:m,y:y,yDivision:c,elSeries:_}),k=this.series[a][A]/this.invertedYRatio):(M=this.drawColumnPaths({indexes:{i:a,j:A,realIndex:x,bc:s},x:m,y:y,xDivision:l,pathTo:p,pathFrom:f,barWidth:k,zeroH:h,strokeWidth:S,elSeries:_}),P=this.series[a][A]/this.yRatio[this.yaxisIndex]),p=M.pathTo,f=M.pathFrom,y=M.y,m=M.x,A>0&&b.push(m+k/2),v.push(y);var E=this.getPathFillColor(t,a,A,x);this.renderSeries({realIndex:x,pathFill:E,j:A,i:a,pathFrom:f,pathTo:p,strokeWidth:S,elSeries:_,x:m,y:y,series:t,barHeight:P,barWidth:k,elDataLabelsWrap:T,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[x]=b,i.globals.seriesYvalues[x]=v,o.add(_)}return o}},{key:"getPathFillColor",value:function(t,e,i,n){var r=this.w,o=new k(this.ctx),a=null,s=this.barOptions.distributed?i:e;return this.barOptions.colors.ranges.length>0&&this.barOptions.colors.ranges.map((function(n){t[e][i]>=n.from&&t[e][i]<=n.to&&(a=n.color)})),r.config.series[e].data[i]&&r.config.series[e].data[i].fillColor&&(a=r.config.series[e].data[i].fillColor),o.fillPath({seriesNumber:this.barOptions.distributed?s:n,color:a,value:t[e][i]})}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,n=t.lineFill,r=t.j,o=t.i,a=t.pathFrom,s=t.pathTo,l=t.strokeWidth,c=t.elSeries,h=t.x,u=t.y,d=t.y1,f=t.y2,m=t.series,y=t.barHeight,v=t.barWidth,b=t.barYPosition,x=t.elDataLabelsWrap,w=t.visibleSeries,_=t.type,S=this.w,P=new g(this.ctx);n||(n=this.barOptions.distributed?S.globals.stroke.colors[r]:S.globals.stroke.colors[e]),S.config.series[o].data[r]&&S.config.series[o].data[r].strokeColor&&(n=S.config.series[o].data[r].strokeColor),this.isNullValue&&(i="none");var k=r/S.config.chart.animations.animateGradually.delay*(S.config.chart.animations.speed/S.globals.dataPoints)/2.4,C=P.renderPaths({i:o,j:r,realIndex:e,pathFrom:a,pathTo:s,stroke:n,strokeWidth:l,strokeLineCap:S.config.stroke.lineCap,fill:i,animationDelay:k,initialSpeed:S.config.chart.animations.speed,dataChangeSpeed:S.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(_,"-area")});C.attr("clip-path","url(#gridRectMask".concat(S.globals.cuid,")")),void 0!==d&&void 0!==f&&(C.attr("data-range-y1",d),C.attr("data-range-y2",f)),new p(this.ctx).setSelectionFilter(C,e,r),c.add(C);var T=this.calculateDataLabelsPos({x:h,y:u,y1:d,y2:f,i:o,j:r,series:m,realIndex:e,barHeight:y,barWidth:v,barYPosition:b,renderedPath:C,visibleSeries:w});return null!==T&&x.add(T),c.add(x),c}},{key:"initVariables",value:function(t){var e=this.w;this.series=t,this.totalItems=0,this.seriesLen=0,this.visibleI=-1,this.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.seriesLen=this.seriesLen+1,this.totalItems+=t[i].length),e.globals.isXNumeric)for(var n=0;n<t[i].length;n++)e.globals.seriesX[i][n]>e.globals.minX&&e.globals.seriesX[i][n]<e.globals.maxX&&this.visibleItems++;else this.visibleItems=e.globals.dataPoints;0===this.seriesLen&&(this.seriesLen=1)}},{key:"initialPositions",value:function(){var t,e,i,n,r,o,a,s,l=this.w,c=l.globals.dataPoints;return this.isTimelineBar&&(c=l.globals.labels.length),this.isHorizontal?(r=(i=l.globals.gridHeight/c)/this.seriesLen,l.globals.isXNumeric&&(r=(i=l.globals.gridHeight/this.totalItems)/this.seriesLen),r=r*parseInt(this.barOptions.barHeight)/100,s=this.baseLineInvertedY+l.globals.padHorizontal+(this.isReversed?l.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(i-r*this.seriesLen)/2):(o=(n=l.globals.gridWidth/this.visibleItems)/this.seriesLen*parseInt(this.barOptions.columnWidth)/100,l.globals.isXNumeric&&(l.globals.minXDiff&&l.globals.minXDiff/this.xRatio>0&&(n=l.globals.minXDiff/this.xRatio),(o=n/this.seriesLen*parseInt(this.barOptions.columnWidth)/100)<1&&(o=1)),a=l.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?l.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=l.globals.padHorizontal+(n-o*this.seriesLen)/2),{x:t,y:e,yDivision:i,xDivision:n,barHeight:r,barWidth:o,zeroH:a,zeroW:s}}},{key:"drawBarPaths",value:function(t){var e=t.indexes,i=t.barHeight,n=t.strokeWidth,r=t.pathTo,o=t.pathFrom,a=t.zeroW,s=t.x,l=t.y,c=t.yDivision,h=t.elSeries,u=this.w,d=new g(this.ctx),p=e.i,f=e.j,m=e.realIndex,y=e.bc;u.globals.isXNumeric&&(l=(u.globals.seriesX[p][f]-u.globals.minX)/this.invertedXRatio-i);var v=l+i*this.visibleI;r=d.move(a,v),o=d.move(a,v),u.globals.previousPaths.length>0&&(o=this.getPathFrom(m,f));var b={barHeight:i,strokeWidth:n,barYPosition:v,x:s=void 0===this.series[p][f]||null===this.series[p][f]?a:a+this.series[p][f]/this.invertedYRatio-2*(this.isReversed?this.series[p][f]/this.invertedYRatio:0),zeroW:a},x=this.barEndingShape(u,b,this.series,p,f);if(r=r+d.line(x.newX,v)+x.path+d.line(a,v+i-n)+d.line(a,v),o=o+d.line(a,v)+x.ending_p_from+d.line(a,v+i-n)+d.line(a,v+i-n)+d.line(a,v),u.globals.isXNumeric||(l+=c),this.barOptions.colors.backgroundBarColors.length>0&&0===p){y>=this.barOptions.colors.backgroundBarColors.length&&(y=0);var w=this.barOptions.colors.backgroundBarColors[y],_=d.drawRect(0,v-i*this.visibleI,u.globals.gridWidth,i*this.seriesLen,0,w,this.barOptions.colors.backgroundBarOpacity);h.add(_),_.node.classList.add("apexcharts-backgroundBar")}return{pathTo:r,pathFrom:o,x:s,y:l,barYPosition:v}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,r=t.xDivision,o=t.pathTo,a=t.pathFrom,s=t.barWidth,l=t.zeroH,c=t.strokeWidth,h=t.elSeries,u=this.w,d=new g(this.ctx),p=e.i,f=e.j,m=e.realIndex,y=e.bc;if(u.globals.isXNumeric){var v=p;u.globals.seriesX[p].length||(v=u.globals.maxValsInArrayIndex),i=(u.globals.seriesX[v][f]-u.globals.minX)/this.xRatio-s/2}var b=i+s*this.visibleI;o=d.move(b,l),a=d.move(b,l),u.globals.previousPaths.length>0&&(a=this.getPathFrom(m,f));var x={barWidth:s,strokeWidth:c,barXPosition:b,y:n=void 0===this.series[p][f]||null===this.series[p][f]?l:l-this.series[p][f]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[p][f]/this.yRatio[this.yaxisIndex]:0),zeroH:l},w=this.barEndingShape(u,x,this.series,p,f);if(o=o+d.line(b,w.newY)+w.path+d.line(b+s-c,l)+d.line(b-c/2,l),a=a+d.line(b,l)+w.ending_p_from+d.line(b+s-c,l)+d.line(b+s-c,l)+d.line(b-c/2,l),u.globals.isXNumeric||(i+=r),this.barOptions.colors.backgroundBarColors.length>0&&0===p){y>=this.barOptions.colors.backgroundBarColors.length&&(y=0);var _=this.barOptions.colors.backgroundBarColors[y],S=d.drawRect(b-s*this.visibleI,0,s*this.seriesLen,u.globals.gridHeight,0,_,this.barOptions.colors.backgroundBarOpacity);h.add(S),S.node.classList.add("apexcharts-backgroundBar")}return{pathTo:o,pathFrom:a,x:i,y:n,barXPosition:b}}},{key:"getPathFrom",value:function(t,e){for(var i,n=this.w,r=0;r<n.globals.previousPaths.length;r++){var o=n.globals.previousPaths[r];o.paths&&o.paths.length>0&&parseInt(o.realIndex)===parseInt(t)&&void 0!==n.globals.previousPaths[r].paths[e]&&(i=n.globals.previousPaths[r].paths[e].d)}return i}},{key:"calculateDataLabelsPos",value:function(t){var e=t.x,i=t.y,n=t.y1,r=t.y2,o=t.i,a=t.j,s=t.realIndex,l=t.series,c=t.barHeight,h=t.barWidth,u=t.barYPosition,d=t.visibleSeries,p=t.renderedPath,f=this.w,m=new g(this.ctx),y=Array.isArray(this.strokeWidth)?this.strokeWidth[s]:this.strokeWidth,v=e+parseFloat(h*d),b=i+parseFloat(c*d);f.globals.isXNumeric&&!f.globals.isBarHorizontal&&(v=e+parseFloat(h*(d+1)),b=i+parseFloat(c*(d+1))-y);var x,w=e,_=i,S=f.config.dataLabels,P=this.barOptions.dataLabels;void 0!==u&&this.isTimelineBar&&(b=u,_=u);var k=S.offsetX,C=S.offsetY,T={width:0,height:0};return f.config.dataLabels.enabled&&(T=m.getTextRects(f.globals.yLabelFormatters[0](f.globals.maxY),parseFloat(S.style.fontSize))),x=this.isHorizontal?this.calculateBarsDataLabelsPosition({x:e,y:i,i:o,j:a,renderedPath:p,bcy:b,barHeight:c,barWidth:h,textRects:T,strokeWidth:y,dataLabelsX:w,dataLabelsY:_,barDataLabelsConfig:P,offX:k,offY:C}):this.calculateColumnsDataLabelsPosition({x:e,y:i,i:o,j:a,renderedPath:p,realIndex:s,bcx:v,bcy:b,barHeight:c,barWidth:h,textRects:T,strokeWidth:y,dataLabelsY:_,barDataLabelsConfig:P,offX:k,offY:C}),p.attr({cy:x.bcy,cx:x.bcx,j:a,val:l[o][a],barHeight:c,barWidth:h}),this.drawCalculatedDataLabels({x:x.dataLabelsX,y:x.dataLabelsY,val:this.isTimelineBar?[n,r]:l[o][a],i:s,j:a,barWidth:h,barHeight:c,textRects:T,dataLabelsConfig:S})}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i=this.w,n=t.i,r=t.j,o=t.y,a=t.bcx,s=t.barWidth,l=t.barHeight,c=t.textRects,h=t.dataLabelsY,u=t.barDataLabelsConfig,d=t.strokeWidth,p=t.offX,f=t.offY,g="vertical"===i.config.plotOptions.bar.dataLabels.orientation;a-=d/2;var m=i.globals.gridWidth/i.globals.dataPoints;e=i.globals.isXNumeric?a-s/2+p:a-m+s/2+p,g&&(e=e+c.height/2-d/2-2);var y=this.series[n][r]<=0;switch(this.isReversed&&(o-=l),u.position){case"center":h=g?y?o+l/2+f:o+l/2-f:y?o+l/2+c.height/2+f:o+l/2+c.height/2-f;break;case"bottom":h=g?y?o+l+f:o+l-f:y?o+l+c.height+d+f:o+l-c.height/2+d-f;break;case"top":h=g?y?o+f:o-f:y?o-c.height/2-f:o+c.height+f}return i.config.chart.stacked||(h<0?h=0+d:h+c.height/3>i.globals.gridHeight&&(h=i.globals.gridHeight-d)),{bcx:a,bcy:o,dataLabelsX:e,dataLabelsY:h}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,n=t.i,r=t.j,o=t.bcy,a=t.barHeight,s=t.barWidth,l=t.textRects,c=t.dataLabelsX,h=t.strokeWidth,u=t.barDataLabelsConfig,d=t.offX,p=t.offY,f=e.globals.gridHeight/e.globals.dataPoints,g=o-(this.isTimelineBar?0:f)+a/2+l.height/2+p-3,m=this.series[n][r]<=0;switch(this.isReversed&&(i+=s),u.position){case"center":c=m?i-s/2-d:i-s/2+d;break;case"bottom":c=m?i-s-h-Math.round(l.width/2)-d:i-s+h+Math.round(l.width/2)+d;break;case"top":c=m?i-h+Math.round(l.width/2)-d:i-h-Math.round(l.width/2)+d}return e.config.chart.stacked||(c<0?c=c+l.width+h:c+l.width/2>e.globals.gridWidth&&(c=e.globals.gridWidth-l.width-h)),{bcx:i,bcy:o,dataLabelsX:c,dataLabelsY:g}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,n=t.val,r=t.i,o=t.j,s=t.textRects,l=t.barHeight,c=t.barWidth,h=t.dataLabelsConfig,u=this.w,d="rotate(0)";"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(e,", ").concat(i,")"));var p=new A(this.ctx),f=new g(this.ctx),m=h.formatter,y=null,v=u.globals.collapsedSeriesIndices.indexOf(r)>-1;if(h.enabled&&!v){y=f.group({class:"apexcharts-data-labels",transform:d});var b="";void 0!==n&&(b=m(n,{seriesIndex:r,dataPointIndex:o,w:u})),0===n&&u.config.chart.stacked&&(b="");var x=this.series[r][o]<=0,w=u.config.plotOptions.bar.dataLabels.position;"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&("top"==w&&(h.textAnchor=x?"end":"start"),"center"==w&&(h.textAnchor="middle"),"bottom"==w&&(h.textAnchor=x?"end":"start")),this.isTimelineBar&&this.barOptions.dataLabels.hideOverflowingLabels&&c<f.getTextRects(b,parseFloat(h.style.fontSize)).width&&(b=""),u.config.chart.stacked&&this.barOptions.dataLabels.hideOverflowingLabels&&(this.isHorizontal?((c=this.series[r][o]/this.yRatio[this.yaxisIndex])>0&&s.width/1.6>c||c<0&&s.width/1.6<c)&&(b=""):(l=this.series[r][o]/this.yRatio[this.yaxisIndex],s.height/1.6>l&&(b="")));var _=a({},h);this.isHorizontal&&n<0&&("start"===h.textAnchor?_.textAnchor="end":"end"===h.textAnchor&&(_.textAnchor="start")),p.plotDataLabelsText({x:e,y:i,text:b,i:r,j:o,parent:y,dataLabelsConfig:_,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return y}},{key:"barEndingShape",value:function(t,e,i,n,r){var o=new g(this.ctx);if(this.isHorizontal){var a=null,s=e.x;if(void 0!==i[n][r]||null!==i[n][r]){var l=i[n][r]<0,c=e.barHeight/2-e.strokeWidth;switch(l&&(c=-e.barHeight/2-e.strokeWidth),t.config.chart.stacked||"rounded"===this.barOptions.endingShape&&(s=e.x-c/2),this.barOptions.endingShape){case"flat":a=o.line(s,e.barYPosition+e.barHeight-e.strokeWidth);break;case"rounded":a=o.quadraticCurve(s+c,e.barYPosition+(e.barHeight-e.strokeWidth)/2,s,e.barYPosition+e.barHeight-e.strokeWidth)}}return{path:a,ending_p_from:"",newX:s}}var h=null,u=e.y;if(void 0!==i[n][r]||null!==i[n][r]){var d=i[n][r]<0,p=e.barWidth/2-e.strokeWidth;switch(d&&(p=-e.barWidth/2-e.strokeWidth),t.config.chart.stacked||"rounded"===this.barOptions.endingShape&&(u+=p/2),this.barOptions.endingShape){case"flat":h=o.line(e.barXPosition+e.barWidth-e.strokeWidth,u);break;case"rounded":h=o.quadraticCurve(e.barXPosition+(e.barWidth-e.strokeWidth)/2,u-p,e.barXPosition+e.barWidth-e.strokeWidth,u)}}return{path:h,ending_p_from:"",newY:u}}}]),t}(),M=function(t){function i(){return e(this,i),h(this,l(i).apply(this,arguments))}return s(i,O),n(i,[{key:"draw",value:function(t,e){var i=this.w;this.graphics=new g(this.ctx),this.fill=new k(this.ctx),this.bar=new O(this.ctx,this.xyRatios);var n=new w(this.ctx,i);t=n.getLogSeries(t),this.yRatio=n.getLogYRatios(this.yRatio),this.initVariables(t),"100%"===i.config.chart.stackType&&(t=i.globals.seriesPercent.slice()),this.series=t,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var r=0;r<t.length;r++)t[r].length>0&&(this.totalItems+=t[r].length);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),a=0,s=0,l=0,c=0;l<t.length;l++,c++){var h=void 0,u=void 0,p=void 0,f=void 0,m=void 0,y=void 0,v=[],b=[],x=i.globals.comboCharts?e[l]:l;this.yRatio.length>1&&(this.yaxisIndex=x),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var _=this.graphics.group({class:"apexcharts-series",seriesName:d.escapeString(i.globals.seriesNames[x]),rel:l+1,"data:realIndex":x}),S=this.graphics.group({class:"apexcharts-datalabels"}),P=0,C=0,T=0,A=this.initialPositions(a,s,p,f,m,y);s=A.y,C=A.barHeight,f=A.yDivision,y=A.zeroW,a=A.x,T=A.barWidth,p=A.xDivision,m=A.zeroH,this.yArrj=[],this.yArrjF=[],this.yArrjVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[];for(var M=0;M<i.globals.dataPoints;M++){i.config.stroke.show&&(P=this.isNullValue?0:Array.isArray(this.strokeWidth)?this.strokeWidth[x]:this.strokeWidth);var E=null;this.isHorizontal?(E=this.drawBarPaths({indexes:{i:l,j:M,realIndex:x,bc:c},barHeight:C,strokeWidth:P,pathTo:h,pathFrom:u,zeroW:y,x:a,y:s,yDivision:f,elSeries:_}),T=this.series[l][M]/this.invertedYRatio):(E=this.drawColumnPaths({indexes:{i:l,j:M,realIndex:x,bc:c},x:a,y:s,xDivision:p,pathTo:h,pathFrom:u,barWidth:T,zeroH:m,strokeWidth:P,elSeries:_}),C=this.series[l][M]/this.yRatio[this.yaxisIndex]),h=E.pathTo,u=E.pathFrom,s=E.y,a=E.x,v.push(a),b.push(s);var I=this.bar.getPathFillColor(t,l,M,x);_=this.renderSeries({realIndex:x,pathFill:I,j:M,i:l,pathFrom:u,pathTo:h,strokeWidth:P,elSeries:_,x:a,y:s,series:t,barHeight:C,barWidth:T,elDataLabelsWrap:S,type:"bar",visibleSeries:0})}i.globals.seriesXvalues[x]=v,i.globals.seriesYvalues[x]=b,this.prevY.push(this.yArrj),this.prevYF.push(this.yArrjF),this.prevYVal.push(this.yArrjVal),this.prevX.push(this.xArrj),this.prevXF.push(this.xArrjF),this.prevXVal.push(this.xArrjVal),o.add(_)}return o}},{key:"initialPositions",value:function(t,e,i,n,r,o){var a,s,l=this.w;return this.isHorizontal?(a=(a=n=l.globals.gridHeight/l.globals.dataPoints)*parseInt(l.config.plotOptions.bar.barHeight)/100,o=this.baseLineInvertedY+l.globals.padHorizontal+(this.isReversed?l.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(n-a)/2):(s=i=l.globals.gridWidth/l.globals.dataPoints,s=l.globals.isXNumeric?(i=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth)/100:s*parseInt(l.config.plotOptions.bar.columnWidth)/100,r=this.baseLineY[this.yaxisIndex]+(this.isReversed?l.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=l.globals.padHorizontal+(i-s)/2),{x:t,y:e,yDivision:n,xDivision:i,barHeight:a,barWidth:s,zeroH:r,zeroW:o}}},{key:"drawBarPaths",value:function(t){for(var e,i=t.indexes,n=t.barHeight,r=t.strokeWidth,o=t.pathTo,a=t.pathFrom,s=t.zeroW,l=t.x,c=t.y,h=t.yDivision,u=t.elSeries,d=this.w,p=c,f=i.i,g=i.j,m=i.realIndex,y=i.bc,v=0,b=0;b<this.prevXF.length;b++)v+=this.prevXF[b][g];if(f>0){var x=s;this.prevXVal[f-1][g]<0?x=this.series[f][g]>=0?this.prevX[f-1][g]+v-2*(this.isReversed?v:0):this.prevX[f-1][g]:this.prevXVal[f-1][g]>=0&&(x=this.series[f][g]>=0?this.prevX[f-1][g]:this.prevX[f-1][g]-v+2*(this.isReversed?v:0)),e=x}else e=s;l=null===this.series[f][g]?e:e+this.series[f][g]/this.invertedYRatio-2*(this.isReversed?this.series[f][g]/this.invertedYRatio:0);var w={barHeight:n,strokeWidth:r,invertedYRatio:this.invertedYRatio,barYPosition:p,x:l},_=this.bar.barEndingShape(d,w,this.series,f,g);if(this.series.length>1&&f!==this.endingShapeOnSeriesNumber&&(_.path=this.graphics.line(_.newX,p+n-r)),this.xArrj.push(_.newX),this.xArrjF.push(Math.abs(e-_.newX)),this.xArrjVal.push(this.series[f][g]),o=this.graphics.move(e,p),a=this.graphics.move(e,p),d.globals.previousPaths.length>0&&(a=this.bar.getPathFrom(m,g,!1)),o=o+this.graphics.line(_.newX,p)+_.path+this.graphics.line(e,p+n-r)+this.graphics.line(e,p),a=a+this.graphics.line(e,p)+this.graphics.line(e,p+n-r)+this.graphics.line(e,p+n-r)+this.graphics.line(e,p+n-r)+this.graphics.line(e,p),d.config.plotOptions.bar.colors.backgroundBarColors.length>0&&0===f){y>=d.config.plotOptions.bar.colors.backgroundBarColors.length&&(y=0);var S=d.config.plotOptions.bar.colors.backgroundBarColors[y],P=this.graphics.drawRect(0,p,d.globals.gridWidth,n,0,S,d.config.plotOptions.bar.colors.backgroundBarOpacity);u.add(P),P.node.classList.add("apexcharts-backgroundBar")}return{pathTo:o,pathFrom:a,x:l,y:c+=h}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,r=t.xDivision,o=t.pathTo,a=t.pathFrom,s=t.barWidth,l=t.zeroH,c=t.strokeWidth,h=t.elSeries,u=this.w,d=e.i,p=e.j,f=e.realIndex,g=e.bc;if(u.globals.isXNumeric){var m=u.globals.seriesX[d][p];m||(m=0),i=(m-u.globals.minX)/this.xRatio-s/2}for(var y,v=i,b=0,x=0;x<this.prevYF.length;x++)b+=this.prevYF[x][p];if(d>0&&!u.globals.isXNumeric||d>0&&u.globals.isXNumeric&&u.globals.seriesX[d-1][p]===u.globals.seriesX[d][p]){var w=this.prevY[d-1][p];y=this.prevYVal[d-1][p]<0?this.series[d][p]>=0?w-b+2*(this.isReversed?b:0):w:this.series[d][p]>=0?w:w+b-2*(this.isReversed?b:0)}else y=u.globals.gridHeight-l;n=y-this.series[d][p]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][p]/this.yRatio[this.yaxisIndex]:0);var _={barWidth:s,strokeWidth:c,yRatio:this.yRatio[this.yaxisIndex],barXPosition:v,y:n},S=this.bar.barEndingShape(u,_,this.series,d,p);if(this.yArrj.push(S.newY),this.yArrjF.push(Math.abs(y-S.newY)),this.yArrjVal.push(this.series[d][p]),o=this.graphics.move(v,y),a=this.graphics.move(v,y),u.globals.previousPaths.length>0&&(a=this.bar.getPathFrom(f,p,!1)),o=o+this.graphics.line(v,S.newY)+S.path+this.graphics.line(v+s-c,y)+this.graphics.line(v-c/2,y),a=a+this.graphics.line(v,y)+this.graphics.line(v+s-c,y)+this.graphics.line(v+s-c,y)+this.graphics.line(v+s-c,y)+this.graphics.line(v-c/2,y),u.config.plotOptions.bar.colors.backgroundBarColors.length>0&&0===d){g>=u.config.plotOptions.bar.colors.backgroundBarColors.length&&(g=0);var P=u.config.plotOptions.bar.colors.backgroundBarColors[g],k=this.graphics.drawRect(v,0,s,u.globals.gridHeight,0,P,u.config.plotOptions.bar.colors.backgroundBarOpacity);h.add(k),k.node.classList.add("apexcharts-backgroundBar")}return i+=r,{pathTo:o,pathFrom:a,x:u.globals.isXNumeric?i-r:i,y:n}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,n=0;n<e.length;n++){for(var r=0,o=0;o<e[i.globals.maxValsInArrayIndex].length;o++)r+=e[n][o];0===r&&this.zeroSerieses.push(n)}for(var a=e.length-1;a>=0;a--)this.zeroSerieses.indexOf(a)>-1&&a===this.endingShapeOnSeriesNumber&&(this.endingShapeOnSeriesNumber-=1)}}]),i}(),E=function(t){function i(){return e(this,i),h(this,l(i).apply(this,arguments))}return s(i,O),n(i,[{key:"draw",value:function(t,e){var i=this.w,n=new g(this.ctx),r=new k(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick;var o=new w(this.ctx,i);t=o.getLogSeries(t),this.series=t,this.yRatio=o.getLogYRatios(this.yRatio),this.initVariables(t);for(var a=n.group({class:"apexcharts-candlestick-series apexcharts-plot-series"}),s=0,l=0;s<t.length;s++,l++){var c,h,u=void 0,p=void 0,f=void 0,m=void 0,y=[],v=[],b=i.globals.comboCharts?e[s]:s,x=n.group({class:"apexcharts-series",seriesName:d.escapeString(i.globals.seriesNames[b]),rel:s+1,"data:realIndex":b});t[s].length>0&&(this.visibleI=this.visibleI+1);var _,S,P=0;this.yRatio.length>1&&(this.yaxisIndex=b);var C=this.initialPositions();m=C.y,_=C.barHeight,f=C.x,S=C.barWidth,c=C.xDivision,h=C.zeroH,v.push(f+S/2);for(var T=n.group({class:"apexcharts-datalabels"}),A=0,O=i.globals.dataPoints;A<i.globals.dataPoints;A++,O--){void 0===this.series[s][A]||null===t[s][A]?this.isNullValue=!0:this.isNullValue=!1,i.config.stroke.show&&(P=this.isNullValue?0:Array.isArray(this.strokeWidth)?this.strokeWidth[b]:this.strokeWidth);var M,E=this.drawCandleStickPaths({indexes:{i:s,j:A,realIndex:b,bc:l},x:f,y:m,xDivision:c,pathTo:u,pathFrom:p,barWidth:S,zeroH:h,strokeWidth:P,elSeries:x});u=E.pathTo,p=E.pathFrom,m=E.y,f=E.x,M=E.color,A>0&&v.push(f+S/2),y.push(m);var I=r.fillPath({seriesNumber:b,color:M,value:t[s][A]}),D=this.candlestickOptions.wick.useFillColor?M:void 0;this.renderSeries({realIndex:b,pathFill:I,lineFill:D,j:A,i:s,pathFrom:p,pathTo:u,strokeWidth:P,elSeries:x,x:f,y:m,series:t,barHeight:_,barWidth:S,elDataLabelsWrap:T,visibleSeries:this.visibleI,type:"candlestick"})}i.globals.seriesXvalues[b]=v,i.globals.seriesYvalues[b]=y,a.add(x)}return a}},{key:"drawCandleStickPaths",value:function(t){var e=t.indexes,i=t.x,n=(t.y,t.xDivision),r=t.pathTo,o=t.pathFrom,a=t.barWidth,s=t.zeroH,l=t.strokeWidth,c=this.w,h=new g(this.ctx),u=e.i,d=e.j,p=!0,f=c.config.plotOptions.candlestick.colors.upward,m=c.config.plotOptions.candlestick.colors.downward,y=this.yRatio[this.yaxisIndex],v=e.realIndex,b=this.getOHLCValue(v,d),x=s,w=s;b.o>b.c&&(p=!1);var _=Math.min(b.o,b.c),S=Math.max(b.o,b.c);c.globals.isXNumeric&&(i=(c.globals.seriesX[v][d]-c.globals.minX)/this.xRatio-a/2);var P=i+a*this.visibleI;return void 0===this.series[u][d]||null===this.series[u][d]?_=s:(_=s-_/y,S=s-S/y,x=s-b.h/y,w=s-b.l/y),h.move(P,s),o=h.move(P,_),c.globals.previousPaths.length>0&&(o=this.getPathFrom(v,d,!0)),r=h.move(P,S)+h.line(P+a/2,S)+h.line(P+a/2,x)+h.line(P+a/2,S)+h.line(P+a,S)+h.line(P+a,_)+h.line(P+a/2,_)+h.line(P+a/2,w)+h.line(P+a/2,_)+h.line(P,_)+h.line(P,S-l/2),o+=h.move(P,_),c.globals.isXNumeric||(i+=n),{pathTo:r,pathFrom:o,x:i,y:S,barXPosition:P,color:p?f:m}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:i.globals.seriesCandleO[t][e],h:i.globals.seriesCandleH[t][e],l:i.globals.seriesCandleL[t][e],c:i.globals.seriesCandleC[t][e]}}}]),i}(),I=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new g(this.ctx),i=new p(this.ctx),n=t.config.xaxis.crosshairs.fill.gradient,r=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,a=n.colorFrom,s=n.colorTo,l=n.opacityFrom,c=n.opacityTo,h=n.stops,u=r.enabled,f=r.left,m=r.top,y=r.blur,v=r.color,b=r.opacity,x=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===o&&(x=e.drawGradient("vertical",a,s,l,c,null,h,null));var w=e.drawRect();1===t.config.xaxis.crosshairs.width&&(w=e.drawLine()),w.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:t.globals.gridHeight,width:d.isNumber(t.config.xaxis.crosshairs.width)?t.config.xaxis.crosshairs.width:0,height:t.globals.gridHeight,fill:x,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),u&&(w=i.dropShadow(w,{left:f,top:m,blur:y,color:v,opacity:b})),t.globals.dom.elGraphical.add(w)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new g(this.ctx),i=t.config.yaxis[0].crosshairs;if(t.config.yaxis[0].crosshairs.show){var n=e.drawLine(0,0,t.globals.gridWidth,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);n.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(n)}var r=e.drawLine(0,0,t.globals.gridWidth,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),t}(),D=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.negRange=!1,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.width}return n(t,[{key:"draw",value:function(t){var e=this.w,i=new g(this.ctx),n=i.group({class:"apexcharts-heatmap"});n.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var r=e.globals.gridWidth/e.globals.dataPoints,o=e.globals.gridHeight/e.globals.series.length,a=0,s=!1;this.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var c=s?0:l.length-1;s?c<l.length:c>=0;s?c++:c--){var h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:d.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(e.config.chart.dropShadow.enabled){var u=e.config.chart.dropShadow;new p(this.ctx).dropShadow(h,u,c)}for(var f=0,m=0;m<l[c].length;m++){var y=1,v=this.determineHeatColor(c,m);if(e.globals.hasNegs||this.negRange){var b=e.config.plotOptions.heatmap.shadeIntensity;y=e.config.plotOptions.heatmap.reverseNegativeShade?v.percent<0?v.percent/100*(1.25*b):(1-v.percent/100)*(1.25*b):v.percent<0?1-(1+v.percent/100)*b:(1-v.percent/100)*b}else y=1-v.percent/100;var x=v.color;if(e.config.plotOptions.heatmap.enableShades){var w=new d;x=d.hexToRgba(w.shadeColor(y,v.color),e.config.fill.opacity)}var _=this.rectRadius,S=i.drawRect(f,a,r,o,_);if(S.attr({cx:f,cy:a}),S.node.classList.add("apexcharts-heatmap-rect"),h.add(S),S.attr({fill:x,i:c,index:c,j:m,val:l[c][m],"stroke-width":this.strokeWidth,stroke:e.globals.stroke.colors[0],color:x}),S.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,S)),S.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,S)),S.node.addEventListener("mousedown",i.pathMouseDown.bind(this,S)),e.config.chart.animations.enabled&&!e.globals.dataChanged){var P=1;e.globals.resized||(P=e.config.chart.animations.speed),this.animateHeatMap(S,f,a,r,o,P)}if(e.globals.dataChanged){var k=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){k=this.dynamicAnim.speed;var C=e.globals.previousPaths[c]&&e.globals.previousPaths[c][m]&&e.globals.previousPaths[c][m].color;C||(C="rgba(255, 255, 255, 0)"),this.animateHeatColor(S,d.isColorHex(C)?C:d.rgb2hex(C),d.isColorHex(x)?x:d.rgb2hex(x),k)}}var T=this.calculateHeatmapDataLabels({x:f,y:a,i:c,j:m,series:l,rectHeight:o,rectWidth:r});null!==T&&h.add(T),f+=r}a+=o,n.add(h)}var A=e.globals.yAxisScale[0].result.slice();e.config.yaxis[0].reversed?A.unshift(""):A.push(""),e.globals.yAxisScale[0].result=A;var O=e.globals.gridHeight/e.globals.series.length;return e.config.yaxis[0].labels.offsetY=-O/2,n}},{key:"checkColorRange",value:function(){var t=this,e=this.w.config.plotOptions.heatmap;e.colorScale.ranges.length>0&&e.colorScale.ranges.map((function(e,i){e.from<0&&(t.negRange=!0)}))}},{key:"determineHeatColor",value:function(t,e){var i=this.w,n=i.globals.series[t][e],r=i.config.plotOptions.heatmap,o=r.colorScale.inverse?e:t,a=i.globals.colors[o],s=Math.min.apply(Math,u(i.globals.series[t])),l=Math.max.apply(Math,u(i.globals.series[t]));r.distributed||(s=i.globals.minY,l=i.globals.maxY),void 0!==r.colorScale.min&&(s=r.colorScale.min<i.globals.minY?r.colorScale.min:i.globals.minY,l=r.colorScale.max>i.globals.maxY?r.colorScale.max:i.globals.maxY);var c=Math.abs(l)+Math.abs(s),h=100*n/(0===c?c-1e-6:c);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(t,e){if(n>=t.from&&n<=t.to){a=t.color,s=t.from,l=t.to;var i=Math.abs(l)+Math.abs(s);h=100*n/(0===i?i-1e-6:i)}})),{color:a,percent:h}}},{key:"calculateHeatmapDataLabels",value:function(t){var e=t.x,i=t.y,n=t.i,r=t.j,o=(t.series,t.rectHeight),a=t.rectWidth,s=this.w,l=s.config.dataLabels,c=new g(this.ctx),h=new A(this.ctx),u=l.formatter,d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var p=l.offsetX,f=l.offsetY,m=e+a/2+p,y=i+o/2+parseFloat(l.style.fontSize)/3+f,v=u(s.globals.series[n][r],{seriesIndex:n,dataPointIndex:r,w:s});h.plotDataLabelsText({x:m,y:y,text:v,i:n,j:r,parent:d,dataLabelsConfig:l})}return d}},{key:"animateHeatMap",value:function(t,e,i,n,r,o){var a=new f(this.ctx);a.animateRect(t,{x:e+n/2,y:i+r/2,width:0,height:0},{x:e,y:i,width:n,height:r},o,(function(){a.animationCompleted(t)}))}},{key:"animateHeatColor",value:function(t,e,i,n){t.attr({fill:e}).animate(n).attr({fill:i})}}]),t}(),L=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels;var n=this.w;this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.svgHeight-35:n.globals.gridWidth,this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,this.fullAngle=360,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-n.config.chart.dropShadow.blur,void 0!==n.config.plotOptions.pie.size&&(n.globals.radialSize=n.config.plotOptions.pie.size),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size)/100,this.sliceLabels=[],this.prevSectorAngleArr=[]}return n(t,[{key:"draw",value:function(t){var e=this.w,i=new g(this.ctx),n=i.group({class:"apexcharts-pie"});if(e.globals.noData)return n;for(var r=0,o=0;o<t.length;o++)r+=d.negToZero(t[o]);var a=[],s=i.group();0===r&&(r=1e-5);for(var l=0;l<t.length;l++){var c=this.fullAngle*d.negToZero(t[l])/r;a.push(c)}if(e.globals.dataChanged){for(var h,u=0,p=0;p<e.globals.previousPaths.length;p++)u+=d.negToZero(e.globals.previousPaths[p]);for(var f=0;f<e.globals.previousPaths.length;f++)h=this.fullAngle*d.negToZero(e.globals.previousPaths[f])/u,this.prevSectorAngleArr.push(h)}this.donutSize<0&&(this.donutSize=0);var m=e.config.plotOptions.pie.customScale,y=e.globals.gridWidth/2,v=e.globals.gridHeight/2,b=y-e.globals.gridWidth/2*m,x=v-e.globals.gridHeight/2*m;if("donut"===e.config.chart.type){var w=i.drawCircle(this.donutSize);w.attr({cx:this.centerX,cy:this.centerY,fill:e.config.plotOptions.pie.donut.background}),s.add(w)}var _=this.drawArcs(a,t);if(this.sliceLabels.forEach((function(t){_.add(t)})),s.attr({transform:"translate(".concat(b,", ").concat(x-5,") scale(").concat(m,")")}),n.attr({"data:innerTranslateX":b,"data:innerTranslateY":x-25}),s.add(_),n.add(s),this.donutDataLabels.show){var S=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:b,translateY:x});n.add(S)}return n}},{key:"drawArcs",value:function(t,e){var i=this.w,n=new p(this.ctx),r=new g(this.ctx),o=new k(this.ctx),a=r.group({class:"apexcharts-slices"}),s=0,l=0,c=0,h=0;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var u=0;u<t.length;u++){var f=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:d.escapeString(i.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});a.add(f),l=h,c=(s=c)+t[u],h=l+this.prevSectorAngleArr[u];var m=c-s,y=o.fillPath({seriesNumber:u,size:i.globals.radialSize,value:e[u]}),v=this.getChangedPath(l,h),b=r.drawPath({d:v,stroke:this.lineColorArr instanceof Array?this.lineColorArr[u]:this.lineColorArr,strokeWidth:this.strokeWidth,fill:y,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(i.config.chart.type,"-slice-").concat(u)});if(b.attr({index:0,j:u}),i.config.chart.dropShadow.enabled){var x=i.config.chart.dropShadow;n.dropShadow(b,x,u)}this.addListeners(b,this.donutDataLabels),g.setAttrs(b.node,{"data:angle":m,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":e[u]});var w={x:0,y:0};"pie"===i.config.chart.type?w=d.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,s+(c-s)/2):"donut"===i.config.chart.type&&(w=d.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,s+(c-s)/2)),f.add(b);var _=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(_=(c-s)/this.fullAngle*i.config.chart.animations.speed,this.animDur=_+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(b,{size:i.globals.radialSize,endAngle:c,startAngle:s,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:u,animBeginArr:this.animBeginArr,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(b,{size:i.globals.radialSize,endAngle:c,startAngle:s,i:u,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:_}),i.config.plotOptions.pie.expandOnClick&&b.click(this.pieClicked.bind(this,u)),i.config.dataLabels.enabled){var S=w.x,P=w.y,C=100*(c-s)/360+"%";if(0!==m&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[u]){var T=i.config.dataLabels.formatter;void 0!==T&&(C=T(i.globals.seriesPercent[u][0],{seriesIndex:u,w:i}));var A=i.globals.dataLabels.style.colors[u],O=r.drawText({x:S,y:P,text:C,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,foreColor:A});if(i.config.dataLabels.dropShadow.enabled){var M=i.config.dataLabels.dropShadow;new p(this.ctx).dropShadow(O,M)}O.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(O.node.classList.add("apexcharts-pie-label-delay"),O.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(O)}}}return a}},{key:"addListeners",value:function(t,e){var i=new g(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,n=e.endAngle-e.startAngle,r=n,o=e.startAngle,a=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(o=e.prevEndAngle,r=e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(n+a>this.fullAngle?e.endAngle=e.endAngle-(n+a):n+a<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(n+a)))),n===this.fullAngle&&(n=this.fullAngle-.01),this.animateArc(t,o,a,n,r,e)}},{key:"animateArc",value:function(t,e,i,n,r,o){var a,s=this,l=this.w,c=new f(this.ctx),h=o.size;(isNaN(e)||isNaN(r))&&(e=i,r=n,o.dur=0);var u=n,d=i,p=e-i;l.globals.dataChanged&&o.shouldSetPrevPaths&&(a=s.getPiePath({me:s,startAngle:d,angle:r,size:h}),t.attr({d:a})),0!==o.dur?t.animate(o.dur,l.globals.easing,o.animBeginArr[o.i]).afterAll((function(){"pie"!==l.config.chart.type&&"donut"!==l.config.chart.type||this.animate(300).attr({"stroke-width":l.config.stroke.width}),o.i===l.config.series.length-1&&c.animationCompleted(t)})).during((function(l){u=p+(n-p)*l,o.animateStartingPos&&(u=r+(n-r)*l,d=e-r+(i-(e-r))*l),a=s.getPiePath({me:s,startAngle:d,angle:u,size:h}),t.node.setAttribute("data:pathOrig",a),t.attr({d:a})})):(a=s.getPiePath({me:s,startAngle:d,angle:n,size:h}),o.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",a),t.attr({d:a}))}},{key:"pieClicked",value:function(t){var e,i=this.w,n=this.w.globals.radialSize+(i.config.plotOptions.pie.expandOnClick?4:0),r=i.globals.dom.Paper.select(".apexcharts-".concat(i.config.chart.type.toLowerCase(),"-slice-").concat(t)).members[0],o=r.attr("d");if("true"!==r.attr("data:pieClicked")){var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-pie-area");Array.prototype.forEach.call(a,(function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");t.setAttribute("d",e)})),r.attr("data:pieClicked","true");var s=parseInt(r.attr("data:startAngle")),l=parseInt(r.attr("data:angle"));e=this.getPiePath({me:this,startAngle:s,angle:l,size:n}),360!==l&&r.plot(e).animate(1).plot(o).animate(100).plot(e)}else{r.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(r.node,this.donutDataLabels);var c=r.attr("data:pathOrig");r.attr({d:c})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e=t.me,i=t.startAngle,n=t.angle,r=t.size,o=this.w,a=i,s=Math.PI*(a-90)/180,l=n+i;Math.ceil(l)>=360&&(l=359.99);var c=Math.PI*(l-90)/180,h=e.centerX+r*Math.cos(s),u=e.centerY+r*Math.sin(s),p=e.centerX+r*Math.cos(c),f=e.centerY+r*Math.sin(c),g=d.polarToCartesian(e.centerX,e.centerY,e.donutSize,l),m=d.polarToCartesian(e.centerX,e.centerY,e.donutSize,a),y=n>180?1:0;return"donut"===o.config.chart.type?["M",h,u,"A",r,r,0,y,1,p,f,"L",g.x,g.y,"A",e.donutSize,e.donutSize,0,y,0,m.x,m.y,"L",h,u,"z"].join(" "):"pie"===o.config.chart.type?["M",h,u,"A",r,r,0,y,1,p,f,"L",e.centerX,e.centerY,"L",h,u].join(" "):["M",h,u,"A",r,r,0,y,1,p,f].join(" ")}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,n=new g(this.ctx),r=n.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,")")}),o=t.total.show;r.node.style.opacity=e.opacity;var a,s,l=e.centerX,c=e.centerY;a=void 0===t.name.color?i.globals.colors[0]:t.name.color,s=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var h=t.value.formatter,u="",d="";if(o?(a=t.total.color,d=t.total.label,u=t.total.formatter(i)):1===i.globals.series.length&&(u=h(i.globals.series[0],i),d=i.globals.seriesNames[0]),t.name.show){var p=n.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:d,textAnchor:"middle",foreColor:a,fontSize:t.name.fontSize,fontFamily:t.name.fontFamily});p.node.classList.add("apexcharts-datalabel-label"),r.add(p)}if(t.value.show){var f=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,m=n.drawText({x:l,y:c+f,text:u,textAnchor:"middle",foreColor:s,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});m.node.classList.add("apexcharts-datalabel-value"),r.add(m)}return r}},{key:"printInnerLabels",value:function(t,e,i,n){var r,o=this.w;n?r=void 0===t.name.color?o.globals.colors[parseInt(n.parentNode.getAttribute("rel"))-1]:t.name.color:o.globals.series.length>1&&t.total.show&&(r=t.total.color);var a=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,o),n||"function"!=typeof t.total.formatter||(i=t.total.formatter(o)),null!==a&&(a.textContent=e),null!==s&&(s.textContent=i),null!==a&&(a.style.fill=r)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,n=t.getAttribute("data:value"),r=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"))-1];i.globals.series.length>1&&this.printInnerLabels(e,r,n,t);var o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==o&&(o.style.opacity=1)}},{key:"revertDataLabelsInner",value:function(e,i,n){var r=this,o=this.w,a=o.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");if(i.total.show&&o.globals.series.length>1)new t(this.ctx).printInnerLabels(i,i.total.label,i.total.formatter(o));else{var s=document.querySelectorAll(".apexcharts-pie-area"),l=!1;if(Array.prototype.forEach.call(s,(function(t){"true"===t.getAttribute("data:pieClicked")&&(l=!0,r.printDataLabelsInner(t,i))})),!l)if(o.globals.selectedDataPoints.length&&o.globals.series.length>1)if(o.globals.selectedDataPoints[0].length>0){var c=o.globals.selectedDataPoints[0],h=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(o.config.chart.type.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(h,i)}else a&&o.globals.selectedDataPoints.length&&0===o.globals.selectedDataPoints[0].length&&(a.style.opacity=0);else a&&o.globals.series.length>1&&(a.style.opacity=0)}}}]),t}(),j=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new g(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.svgHeight-35:n.globals.gridWidth,this.maxValue=this.w.globals.maxY,this.polygons=n.config.plotOptions.radar.polygons,this.maxLabelWidth=20;var r=n.globals.labels.slice().sort((function(t,e){return e.length-t.length}))[0],o=this.graphics.getTextRects(r,n.config.dataLabels.style.fontSize);this.size=this.defaultSize/2.1-n.config.stroke.width-n.config.chart.dropShadow.blur-o.width/1.75,void 0!==n.config.plotOptions.radar.size&&(this.size=n.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return n(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new k(this.ctx),r=[];t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=i.globals.gridWidth/2,s=i.globals.gridHeight/2,l=this.graphics.group({class:"apexcharts-radar-series","data:innerTranslateX":o,"data:innerTranslateY":s-25,transform:"translate(".concat(o||0,", ").concat(s||0,")")}),c=[],h=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach((function(t,o){var s=e.graphics.group().attr({class:"apexcharts-series",seriesName:d.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});e.dataRadiusOfPercent[o]=[],e.dataRadius[o]=[],e.angleArr[o]=[],t.forEach((function(t,i){e.dataRadiusOfPercent[o][i]=t/e.maxValue,e.dataRadius[o][i]=e.dataRadiusOfPercent[o][i]*e.size,e.angleArr[o][i]=i*e.disAngle})),c=e.getDataPointsPos(e.dataRadius[o],e.angleArr[o]);var l=e.createPaths(c,{x:0,y:0});h=e.graphics.group({class:"apexcharts-series-markers-wrap hidden"}),i.globals.delayedElements.push({el:h.node,index:o});var u={i:o,realIndex:o,animationDelay:o,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[o],strokeLineCap:i.config.stroke.lineCap},f=null;i.globals.previousPaths.length>0&&(f=e.getPathFrom(o));for(var g=0;g<l.linePathsTo.length;g++){var m=e.graphics.renderPaths(a({},u,{pathFrom:null===f?l.linePathsFrom[g]:f,pathTo:l.linePathsTo[g],strokeWidth:Array.isArray(i.config.stroke.width)?i.config.stroke.width[o]:i.config.stroke.width,fill:"none",drawShadow:!1}));s.add(m);var y=n.fillPath({seriesNumber:o}),v=e.graphics.renderPaths(a({},u,{pathFrom:null===f?l.areaPathsFrom[g]:f,pathTo:l.areaPathsTo[g],strokeWidth:0,fill:y,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var b=new p(e.ctx),x=i.config.chart.dropShadow;b.dropShadow(v,Object.assign({},x,{noUserSpaceOnUse:!0}),o)}s.add(v)}t.forEach((function(t,i){var n=new C(e.ctx).getMarkerConfig("apexcharts-marker",o,i),r=e.graphics.drawMarker(c[i].x,c[i].y,n);r.attr("rel",i),r.attr("j",i),r.attr("index",o),r.node.setAttribute("default-marker-size",n.pSize);var a=e.graphics.group({class:"apexcharts-series-markers"});a&&a.add(r),h.add(a),s.add(h)})),r.push(s)})),this.drawPolygons({parent:l}),i.config.dataLabels.enabled){var u=this.drawLabels();l.add(u)}return l.add(this.yaxisLabels),r.forEach((function(t){l.add(t)})),l}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,n=t.parent,r=i.globals.yAxisScale[0].result.reverse(),o=r.length,a=[],s=this.size/(o-1),l=0;l<o;l++)a[l]=s*l;a.reverse();var c=[],h=[];a.forEach((function(t,i){var n=e.getPolygonPos(t),r="";n.forEach((function(t,n){if(0===i){var o=e.graphics.drawLine(t.x,t.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[n]:e.polygons.connectorColors);h.push(o)}0===n&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),r+=t.x+","+t.y+" "})),c.push(r)})),c.forEach((function(t,r){var o=e.polygons.strokeColors,a=e.graphics.drawPolygon(t,Array.isArray(o)?o[r]:o,i.globals.radarPolygons.fill.colors[r]);n.add(a)})),h.forEach((function(t){n.add(t)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(t,i){var n=e.drawYAxisText(t.x,t.y,i,r[i]);e.yaxisLabels.add(n)}))}},{key:"drawYAxisText",value:function(t,e,i,n){var r=this.w,o=r.config.yaxis[0],a=r.globals.yLabelFormatters[0];return this.graphics.drawText({x:t+o.labels.offsetX,y:e+o.labels.offsetY,text:a(n,i),textAnchor:"middle",fontSize:o.labels.style.fontSize,fontFamily:o.labels.style.fontFamily,foreColor:o.labels.style.color})}},{key:"drawLabels",value:function(){var t=this,e=this.w,i="middle",n=e.config.dataLabels,r=this.graphics.group({class:"apexcharts-datalabels"}),o=this.getPolygonPos(this.size),a=0,s=0;return e.globals.labels.forEach((function(l,c){var h=n.formatter,u=new A(t.ctx);if(o[c]){a=o[c].x,s=o[c].y,Math.abs(o[c].x)>=10?o[c].x>0?(i="start",a+=10):o[c].x<0&&(i="end",a-=10):i="middle",Math.abs(o[c].y)>=t.size-10&&(o[c].y<0?s-=10:o[c].y>0&&(s+=10));var d=h(l,{seriesIndex:-1,dataPointIndex:c,w:e});u.plotDataLabelsText({x:a,y:s,text:d,textAnchor:i,i:c,j:c,parent:r,dataLabelsConfig:n,offsetCorrection:!1})}})),r}},{key:"createPaths",value:function(t,e){var i=this,n=[],r=[],o=[],a=[];if(t.length){r=[this.graphics.move(e.x,e.y)],a=[this.graphics.move(e.x,e.y)];var s=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach((function(e,n){s+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),n===t.length-1&&(s+="Z",l+="Z")})),n.push(s),o.push(l)}return{linePathsFrom:r,linePathsTo:n,areaPathsFrom:a,areaPathsTo:o}}},{key:"getPathFrom",value:function(t){for(var e=this.w,i=null,n=0;n<e.globals.previousPaths.length;n++){var r=e.globals.previousPaths[n];r.paths.length>0&&parseInt(r.realIndex)===parseInt(t)&&void 0!==e.globals.previousPaths[n].paths[0]&&(i=e.globals.previousPaths[n].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var n=[],r=0;r<i;r++){var o={};o.x=t[r]*Math.sin(e[r]),o.y=-t[r]*Math.cos(e[r]),n.push(o)}return n}},{key:"getPolygonPos",value:function(t){for(var e=[],i=2*Math.PI/this.dataPointsLen,n=0;n<this.dataPointsLen;n++){var r={};r.x=t*Math.sin(n*i),r.y=-t*Math.cos(n*i),e.push(r)}return e}}]),t}(),N=function(t){function i(t){var n;e(this,i),(n=h(this,l(i).call(this,t))).ctx=t,n.w=t.w,n.animBeginArr=[0],n.animDur=0;var r=n.w;return n.startAngle=r.config.plotOptions.radialBar.startAngle,n.endAngle=r.config.plotOptions.radialBar.endAngle,n.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,n.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,n.radialDataLabels=r.config.plotOptions.radialBar.dataLabels,n.trackStartAngle||(n.trackStartAngle=n.startAngle),n.trackEndAngle||(n.trackEndAngle=n.endAngle),360===n.endAngle&&(n.endAngle=359.99),n.fullAngle=360-r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle,n.margin=parseInt(r.config.plotOptions.radialBar.track.margin),n}return s(i,L),n(i,[{key:"draw",value:function(t){var e=this.w,i=new g(this.ctx),n=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return n;var r=i.group(),o=this.defaultSize/2,a=e.globals.gridWidth/2,s=this.defaultSize/2.05-e.config.stroke.width-e.config.chart.dropShadow.blur;void 0!==e.config.plotOptions.radialBar.size&&(s=e.config.plotOptions.radialBar.size);var l=e.globals.fill.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:s,centerX:a,centerY:o,colorArr:l,series:t});r.add(c)}var h=this.drawArcs({size:s,centerX:a,centerY:o,colorArr:l,series:t}),u=360;e.config.plotOptions.radialBar.startAngle<0&&(u=Math.abs(e.config.plotOptions.radialBar.endAngle-e.config.plotOptions.radialBar.startAngle));var d=(360-u)/360;if(e.globals.radialSize=s-s*d,this.radialDataLabels.value.show){var p=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=p*d}return r.add(h.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),n.add(r),n}},{key:"drawTracks",value:function(t){var e=this.w,i=new g(this.ctx),n=i.group({class:"apexcharts-tracks"}),r=new p(this.ctx),o=new k(this.ctx),a=this.getStrokeWidth(t);t.size=t.size-a/2;for(var s=0;s<t.series.length;s++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(l),l.attr({rel:s+1}),t.size=t.size-a-this.margin;var c=e.config.plotOptions.radialBar.track,h=o.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),u=this.trackStartAngle,d=this.trackEndAngle;Math.abs(d)+Math.abs(u)>=360&&(d=360-Math.abs(this.startAngle)-.1);var f=i.drawPath({d:"",stroke:h,strokeWidth:a*parseInt(c.strokeWidth)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var m=c.dropShadow;r.dropShadow(f,m)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:t.centerX,centerY:t.centerY,endAngle:d,startAngle:u,size:t.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return n}},{key:"drawArcs",value:function(t){var e=this.w,i=new g(this.ctx),n=new k(this.ctx),r=new p(this.ctx),o=i.group(),a=this.getStrokeWidth(t);t.size=t.size-a/2;var s=e.config.plotOptions.radialBar.hollow.background,l=t.size-a*t.series.length-this.margin*t.series.length-a*parseInt(e.config.plotOptions.radialBar.track.strokeWidth)/100/2,c=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(t,o,l,s));var h=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:s});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var u=e.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(h,u)}var f=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(f=0);var m=null;this.radialDataLabels.show&&(m=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:f})),"back"===e.config.plotOptions.radialBar.hollow.position&&(o.add(h),m&&o.add(m));var y=!1;e.config.plotOptions.radialBar.inverseOrder&&(y=!0);for(var v=y?t.series.length-1:0;y?v>=0:v<t.series.length;y?v--:v++){var b=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:d.escapeString(e.globals.seriesNames[v])});o.add(b),b.attr({rel:v+1,"data:realIndex":v}),this.ctx.series.addCollapsedClassToSeries(b,v),t.size=t.size-a-this.margin;var x=n.fillPath({seriesNumber:v,size:t.size,value:t.series[v]}),w=this.startAngle,_=void 0,S=Math.abs(e.config.plotOptions.radialBar.endAngle-e.config.plotOptions.radialBar.startAngle),P=d.negToZero(t.series[v]>100?100:t.series[v])/100,C=Math.round(S*P)+this.startAngle,T=void 0;e.globals.dataChanged&&(_=this.startAngle,T=Math.round(S*d.negToZero(e.globals.previousPaths[v])/100)+_),Math.abs(C)+Math.abs(w)>=360&&(C-=.01),Math.abs(T)+Math.abs(_)>=360&&(T-=.01);var A=C-w,O=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[v]:e.config.stroke.dashArray,M=i.drawPath({d:"",stroke:x,strokeWidth:a,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+v,strokeDashArray:O});if(g.setAttrs(M.node,{"data:angle":A,"data:value":t.series[v]}),e.config.chart.dropShadow.enabled){var E=e.config.chart.dropShadow;r.dropShadow(M,E,v)}this.addListeners(M,this.radialDataLabels),b.add(M),M.attr({index:0,j:v});var I=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(I=(C-w)/360*e.config.chart.animations.speed,this.animDur=I/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),e.globals.dataChanged&&(I=(C-w)/360*e.config.chart.animations.dynamicAnimation.speed,this.animDur=I/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(M,{centerX:t.centerX,centerY:t.centerY,endAngle:C,startAngle:w,prevEndAngle:T,prevStartAngle:_,size:t.size,i:v,totalItems:2,animBeginArr:this.animBeginArr,dur:I,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:o,elHollow:h,dataLabels:m}}},{key:"drawHollow",value:function(t){var e=new g(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,n){var r=this.w,o=new k(this.ctx),a=d.randomId(),s=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)o.clippedImgArea({width:i,height:i,image:s,patternID:"pattern".concat(r.globals.cuid).concat(a)}),n="url(#pattern".concat(r.globals.cuid).concat(a,")");else{var l=r.config.plotOptions.radialBar.hollow.imageWidth,c=r.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=r.globals.dom.Paper.image(s).loaded((function(e){this.move(t.centerX-e.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(h)}else{var u=r.globals.dom.Paper.image(s).loaded((function(e){this.move(t.centerX-l/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));e.add(u)}}return n}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size))/100/(t.series.length+1)-this.margin}}]),i}(),F=function(t){function i(){return e(this,i),h(this,l(i).apply(this,arguments))}return s(i,O),n(i,[{key:"draw",value:function(t,e){var i=this.w,n=new g(this.ctx),r=new k(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.initVariables(t);for(var o=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),a=0,s=0;a<t.length;a++,s++){var l,c,h,u,p=void 0,f=void 0,m=void 0,y=void 0,v=i.globals.comboCharts?e[a]:a,b=n.group({class:"apexcharts-series",seriesName:d.escapeString(i.globals.seriesNames[v]),rel:a+1,"data:realIndex":v});t[a].length>0&&(this.visibleI=this.visibleI+1);var x=0,w=0,_=0;this.yRatio.length>1&&(this.yaxisIndex=v);var S=this.initialPositions();y=S.y,c=S.yDivision,w=S.barHeight,u=S.zeroW,m=S.x,_=S.barWidth,l=S.xDivision,h=S.zeroH;for(var P=n.group({class:"apexcharts-datalabels"}),C=0,T=i.globals.dataPoints;C<i.globals.dataPoints;C++,T--){this.isNullValue=!1,void 0!==this.series[a][C]&&null!==t[a][C]||(this.isNullValue=!0),i.config.stroke.show&&(x=this.isNullValue?0:Array.isArray(this.strokeWidth)?this.strokeWidth[v]:this.strokeWidth);var A=1,O=this.seriesRangeStart[a][C],M=this.seriesRangeEnd[a][C],E=i.globals.seriesRangeBarTimeline.length&&i.globals.seriesRangeBarTimeline[a][C];E&&(A=E.y.length,y=0);for(var I=0;I<A;I++){var D=null,L=null;if(this.isHorizontal){if(L=y+w*this.visibleI,E){var j=(c-w*this.seriesLen)/2,N=E.y[I];O=N.y1,M=N.y2;var F=i.globals.labels.indexOf(E.x);L=j+w*this.visibleI+c*F}else if(this.isTimelineBar)break;_=(D=this.drawRangeBarPaths({indexes:{i:a,j:C,realIndex:v,bc:s},barHeight:w,barYPosition:L,strokeWidth:x,pathTo:p,pathFrom:f,zeroW:u,x:m,y:y,y1:O,y2:M,yDivision:c,elSeries:b})).barWidth}else w=(D=this.drawRangeColumnPaths({indexes:{i:a,j:C,realIndex:v,bc:s},x:m,y:y,xDivision:l,pathTo:p,pathFrom:f,barWidth:_,zeroH:h,strokeWidth:x,elSeries:b})).barHeight;p=D.pathTo,f=D.pathFrom,y=D.y,m=D.x;var R=null;i.config.series[a].data[C]&&i.config.series[a].data[C].fillColor&&(R=i.config.series[a].data[C].fillColor);var V=r.fillPath({seriesNumber:v,color:R}),z=i.globals.stroke.colors[v];this.renderSeries({realIndex:v,pathFill:V,lineFill:z,j:C,i:a,x:m,y:y,y1:O,y2:M,pathFrom:f,pathTo:p,strokeWidth:x,elSeries:b,series:t,barHeight:w,barYPosition:L,barWidth:_,elDataLabelsWrap:P,visibleSeries:this.visibleI,type:"rangebar"})}}o.add(b)}return o}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=(t.y,t.strokeWidth),r=t.xDivision,o=t.pathTo,a=t.pathFrom,s=t.barWidth,l=t.zeroH,c=this.w,h=new g(this.ctx),u=e.i,d=e.j,p=this.yRatio[this.yaxisIndex],f=e.realIndex,m=this.getRangeValue(f,d),y=Math.min(m.start,m.end),v=Math.max(m.start,m.end);c.globals.isXNumeric&&(i=(c.globals.seriesX[u][d]-c.globals.minX)/this.xRatio-s/2);var b=i+s*this.visibleI;void 0===this.series[u][d]||null===this.series[u][d]?y=l:(y=l-y/p,v=l-v/p);var x=Math.abs(v-y);return h.move(b,l),a=h.move(b,y),c.globals.previousPaths.length>0&&(a=this.getPathFrom(f,d,!0)),o=h.move(b,v)+h.line(b+s,v)+h.line(b+s,y)+h.line(b,y)+h.line(b,v-n/2),a=a+h.move(b,y)+h.line(b+s,y)+h.line(b+s,y)+h.line(b,y),c.globals.isXNumeric||(i+=r),{pathTo:o,pathFrom:a,barHeight:x,x:i,y:v,barXPosition:b}}},{key:"drawRangeBarPaths",value:function(t){var e,i,n=t.indexes,r=(t.x,t.y),o=t.y1,a=t.y2,s=t.yDivision,l=t.pathTo,c=t.pathFrom,h=t.barHeight,u=t.barYPosition,d=t.zeroW,p=this.w,f=new g(this.ctx),m=(n.i,n.j),y=n.realIndex;e=d+o/this.invertedYRatio,i=d+a/this.invertedYRatio,f.move(d,u),c=f.move(d,u),p.globals.previousPaths.length>0&&(c=this.getPathFrom(y,m));var v=Math.abs(i-e);return l=f.move(e,u)+f.line(i,u)+f.line(i,u+h)+f.line(e,u+h)+f.line(e,u),c=c+f.line(e,u)+f.line(e,u+h)+f.line(e,u+h)+f.line(e,u),p.globals.isXNumeric||(r+=s),{pathTo:l,pathFrom:c,barWidth:v,x:i,y:r}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),i}(),R=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.tooltipKeyFormat="dd MMM"}return n(t,[{key:"xLabelFormat",value:function(t,e,i){var n=this.w;return"datetime"===n.config.xaxis.type&&void 0===n.config.xaxis.labels.formatter&&void 0===n.config.tooltip.x.formatter?new b(this.ctx).formatDate(new Date(e),n.config.tooltip.x.format,!0,!0):t(e,i)}},{key:"setLabelFormatters",value:function(){var t=this.w;return t.globals.xLabelFormatter=function(t){return t},t.globals.xaxisTooltipFormatter=function(t){return t},t.globals.ttKeyFormatter=function(t){return t},t.globals.ttZFormatter=function(t){return t},t.globals.legendFormatter=function(t){return t},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){return d.isNumber(e)?"numeric"===t.config.xaxis.type&&t.globals.dataPoints<50||t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0):e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(e,i){void 0!==e.labels.formatter?t.globals.yLabelFormatters[i]=e.labels.formatter:t.globals.yLabelFormatters[i]=function(n){return t.globals.xyCharts&&d.isNumber(n)?0!==t.globals.yValueDecimal?n.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:t.globals.yValueDecimal):t.globals.maxYArr[i]-t.globals.minYArr[i]<10?n.toFixed(1):n.toFixed(0):n}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce((function(t,e){return t.length>e.length?t:e}),0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),V=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getLabel",value:function(t,e,i,n){var r,o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=this.w,c=void 0===t[n]?"":t[n],h=l.globals.xLabelFormatter,u=l.config.xaxis.labels.formatter,d=!1,p=c;return r=new R(this.ctx).xLabelFormat(h,c,p),void 0!==u&&(r=u(c,t[n],n)),e.length>0?(o=e[n].unit,a=null,e.forEach((function(t){"month"===t.unit?a="year":"day"===t.unit?a="month":"hour"===t.unit?a="day":"minute"===t.unit&&(a="hour")})),d=a===o,i=e[n].position,r=e[n].value):"datetime"===l.config.xaxis.type&&void 0===u&&(r=""),void 0===r&&(r=""),(0===(r=r.toString()).indexOf("NaN")||0===r.toLowerCase().indexOf("invalid")||r.toLowerCase().indexOf("infinity")>=0||s.indexOf(r)>=0&&!l.config.xaxis.labels.showDuplicates)&&(r=""),{x:i,text:r,isBold:d}}},{key:"drawYAxisTicks",value:function(t,e,i,n,r,o,a){var s=this.w,l=new g(this.ctx),c=s.globals.translateY;if(n.show){!0===s.config.yaxis[r].opposite&&(t+=n.width);for(var h=e;h>=0;h--){var u=c+e/10+s.config.yaxis[r].labels.offsetY-1;s.globals.isBarHorizontal&&(u=o*h);var d=l.drawLine(t+i.offsetX-n.width+n.offsetX,u+n.offsetY,t+i.offsetX+n.offsetX,u+n.offsetY,i.color);a.add(d),c+=o}}}}]),t}(),z=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.axisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xAxisoffX=0,"bottom"===n.config.xaxis.position&&(this.xAxisoffX=n.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new V(i)}return n(t,[{key:"drawYaxis",value:function(t){var e=this.w,i=new g(this.ctx),n=e.config.yaxis[t].labels.style.fontSize,r=e.config.yaxis[t].labels.style.fontFamily,o=i.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+e.globals.translateYAxisX[t]+", 0)"});if(!e.config.yaxis[t].show)return o;var a=i.group({class:"apexcharts-yaxis-texts-g"});o.add(a);var s=e.globals.yAxisScale[t].result.length-1,l=e.globals.gridHeight/s+.1,c=e.globals.translateY,h=e.globals.yLabelFormatters[t],u=e.globals.yAxisScale[t].result.slice();if(e.config.yaxis[t]&&e.config.yaxis[t].reversed&&u.reverse(),e.config.yaxis[t].labels.show)for(var d=s;d>=0;d--){var p=u[d];p=h(p,d);var f=e.config.yaxis[t].labels.padding;e.config.yaxis[t].opposite&&0!==e.config.yaxis.length&&(f*=-1);var m=i.drawText({x:f,y:c+s/10+e.config.yaxis[t].labels.offsetY+1,text:p,textAnchor:e.config.yaxis[t].opposite?"start":"end",fontSize:n,fontFamily:r,foreColor:e.config.yaxis[t].labels.style.color,cssClass:"apexcharts-yaxis-label "+e.config.yaxis[t].labels.style.cssClass});a.add(m);var y=i.rotateAroundCenter(m.node);0!==e.config.yaxis[t].labels.rotate&&m.node.setAttribute("transform","rotate(".concat(e.config.yaxis[t].labels.rotate," ").concat(y.x," ").concat(y.y,")")),c+=l}if(void 0!==e.config.yaxis[t].title.text){var v=i.group({class:"apexcharts-yaxis-title"}),b=0;e.config.yaxis[t].opposite&&(b=e.globals.translateYAxisX[t]);var x=i.drawText({x:b,y:e.globals.gridHeight/2+e.globals.translateY+e.config.yaxis[t].title.offsetY,text:e.config.yaxis[t].title.text,textAnchor:"end",foreColor:e.config.yaxis[t].title.style.color,fontSize:e.config.yaxis[t].title.style.fontSize,fontFamily:e.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+e.config.yaxis[t].title.style.cssClass});v.add(x),o.add(v)}var w=e.config.yaxis[t].axisBorder;if(w.show){var _=31+w.offsetX;e.config.yaxis[t].opposite&&(_=-31-w.offsetX);var S=i.drawLine(_,e.globals.translateY+w.offsetY-2,_,e.globals.gridHeight+e.globals.translateY+w.offsetY+2,w.color);o.add(S),this.axesUtils.drawYAxisTicks(_,s,w,e.config.yaxis[t].axisTicks,t,l,o)}return o}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new g(this.ctx),n=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);var o=e.globals.yAxisScale[t].result.length-1,a=e.globals.gridWidth/o+.1,s=a+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),h=e.globals.invertedTimelineLabels;h.length>0&&(this.xaxisLabels=h.slice(),o=(c=h.slice()).length),e.config.yaxis[t]&&e.config.yaxis[t].reversed&&c.reverse();var u=h.length;if(e.config.xaxis.labels.show)for(var d=u?0:o;u?d<u-1:d>=0;u?d++:d--){var p=c[d];p=l(p,d);var f=e.globals.gridWidth+e.globals.padHorizontal-(s-a+e.config.xaxis.labels.offsetX);if(h.length){var m=this.axesUtils.getLabel(c,h,f,d,this.drawnLabels);f=m.x,p=m.text,this.drawnLabels.push(m.text)}var y=i.drawText({x:f,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30,text:"",textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});r.add(y),y.tspan(p);var v=document.createElementNS(e.globals.SVGNS,"title");v.textContent=p,y.node.appendChild(v),s+=a}if(void 0!==e.config.xaxis.title.text){var b=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),x=i.drawText({x:e.globals.gridWidth/2,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});b.add(x),n.add(b)}var w=e.config.yaxis[t].axisBorder;if(w.show){var _=i.drawLine(e.globals.padHorizontal+w.offsetX,1+w.offsetY,e.globals.padHorizontal+w.offsetX,e.globals.gridHeight+w.offsetY,w.color);n.add(_)}return n}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,n=new g(this.ctx),r={width:0,height:0},o={width:0,height:0},a=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==a&&(r=a.getBoundingClientRect());var s=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==s&&(o=s.getBoundingClientRect()),null!==s){var l=this.xPaddingForYAxisTitle(t,r,o,e);s.setAttribute("x",l.xPos-(e?10:0))}if(null!==s){var c=n.rotateAroundCenter(s);e?s.setAttribute("transform","rotate(".concat(i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")")):s.setAttribute("transform","rotate(-".concat(i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,n){var r=this.w,o=0,a=0,s=10;return void 0===r.config.yaxis[t].title.text||t<0?{xPos:a,padd:0}:(n?(a=e.width+r.config.yaxis[t].title.offsetX+i.width/2+s/2,0===(o+=1)&&(a-=s/2)):(a=-1*e.width+r.config.yaxis[t].title.offsetX+s/2+i.width/2,r.globals.isBarHorizontal&&(s=25,a=-1*e.width-r.config.yaxis[t].title.offsetX-s)),{xPos:a,padd:s})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,n=0,r=0,o=21,a=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(s,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!s.show||s.floating||0===t[l].width,h=t[l].width+e[l].width;s.opposite?i.globals.isBarHorizontal?(r=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=r-s.labels.offsetX):(r=i.globals.gridWidth+i.globals.translateX+a,c||(a=a+h+20),i.globals.translateYAxisX[l]=r-s.labels.offsetX+20):(n=i.globals.translateX-o,c||(o=o+h+20),i.globals.translateYAxisX[l]=n+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis");(e=d.listToArray(e)).forEach((function(e,i){var n=t.config.yaxis[i];if(void 0!==n.labels.align){var r=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));o=d.listToArray(o);var a=r.getBoundingClientRect();"left"===n.labels.align?(o.forEach((function(t,e){t.setAttribute("text-anchor","start")})),n.opposite||r.setAttribute("transform","translate(-".concat(a.width,", 0)"))):"center"===n.labels.align?(o.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),r.setAttribute("transform","translate(".concat(a.width/2*(n.opposite?1:-1),", 0)"))):"right"===n.labels.align&&(o.forEach((function(t,e){t.setAttribute("text-anchor","end")})),n.opposite&&r.setAttribute("transform","translate(".concat(a.width,", 0)")))}}))}}]),t}(),B=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.lgRect={},this.yAxisWidth=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.xPadRight=0,this.xPadLeft=0}return n(t,[{key:"plotCoords",value:function(){var t=this.w,e=t.globals,i=this.getLegendsRect();e.axisCharts?this.setGridCoordsForAxisCharts(i):this.setGridCoordsForNonAxisCharts(i),this.titleSubtitleOffset(),e.gridHeight=e.gridHeight-t.config.grid.padding.top-t.config.grid.padding.bottom,e.gridWidth=e.gridWidth-t.config.grid.padding.left-t.config.grid.padding.right-this.xPadRight-this.xPadLeft,e.translateX=e.translateX+t.config.grid.padding.left+this.xPadLeft,e.translateY=e.translateY+t.config.grid.padding.top}},{key:"conditionalChecksForAxisCoords",value:function(t,e){var i=this.w;this.xAxisHeight=(t.height+e.height)*i.globals.LINE_HEIGHT_RATIO+15,this.xAxisWidth=t.width,this.xAxisHeight-e.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0),i.globals.isBarHorizontal?this.yAxisWidth=i.globals.yLabelsCoords[0].width+i.globals.yTitleCoords[0].width+15:this.yAxisWidth=this.getTotalYAxisWidth();var n=0,r=0;i.config.yaxis.forEach((function(t){n+=t.labels.minWidth,r+=t.labels.maxWidth})),this.yAxisWidth<n&&(this.yAxisWidth=n),this.yAxisWidth>r&&(this.yAxisWidth=r)}},{key:"setGridCoordsForAxisCharts",value:function(t){var e=this.w,i=e.globals,n=this.getyAxisLabelsCoords(),r=this.getxAxisLabelsCoords(),o=this.getyAxisTitleCoords(),a=this.getxAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map((function(t,i){e.globals.yLabelsCoords.push({width:n[i].width,index:i}),e.globals.yTitleCoords.push({width:o[i].width,index:i})})),this.conditionalChecksForAxisCoords(r,a),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var s=this.yAxisWidth,l=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight,i.xAxisHeight=this.xAxisHeight;var c=10;switch(e.config.grid.show&&"radar"!==e.config.chart.type||(s=0,l=35),this.isSparkline&&(t={height:0,width:0},l=0,s=0,c=0),this.additionalPaddingXLabels(r),e.config.legend.position){case"bottom":i.translateY=c,i.translateX=s,i.gridHeight=i.svgHeight-t.height-l-(this.isSparkline?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-s;break;case"top":i.translateY=t.height+c,i.translateX=s,i.gridHeight=i.svgHeight-t.height-l-(this.isSparkline?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-s;break;case"left":i.translateY=c,i.translateX=t.width+s,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-t.width-s;break;case"right":i.translateY=c,i.translateX=s,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-t.width-s-5;break;default:throw new Error("Legend position not supported")}this.setGridXPosForDualYAxis(o,n),new z(this.ctx).setYAxisXPosition(n,o)}},{key:"setGridCoordsForNonAxisCharts",value:function(t){var e=this.w,i=e.globals,n=0;e.config.legend.show&&!e.config.legend.floating&&(n=20);var r=10,o=0;if("pie"===e.config.chart.type||"donut"===e.config.chart.type?(r+=e.config.plotOptions.pie.offsetY,o+=e.config.plotOptions.pie.offsetX):"radialBar"===e.config.chart.type&&(r+=e.config.plotOptions.radialBar.offsetY,o+=e.config.plotOptions.radialBar.offsetX),!e.config.legend.show)return i.gridHeight=i.svgHeight-35,i.gridWidth=i.gridHeight,i.translateY=r-10,void(i.translateX=o+(i.svgWidth-i.gridWidth)/2);switch(e.config.legend.position){case"bottom":i.gridHeight=i.svgHeight-t.height-35,i.gridWidth=i.gridHeight,i.translateY=r-20,i.translateX=o+(i.svgWidth-i.gridWidth)/2;break;case"top":i.gridHeight=i.svgHeight-t.height-35,i.gridWidth=i.gridHeight,i.translateY=t.height+r+10,i.translateX=o+(i.svgWidth-i.gridWidth)/2;break;case"left":i.gridWidth=i.svgWidth-t.width-n,i.gridHeight=i.gridWidth,i.translateY=r,i.translateX=o+t.width+n;break;case"right":i.gridWidth=i.svgWidth-t.width-n-5,i.gridHeight=i.gridWidth,i.translateY=r,i.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w;i.config.yaxis.map((function(n,r){-1===i.globals.ignoreYAxisIndexes.indexOf(r)&&!i.config.yaxis[r].floating&&i.config.yaxis[r].show&&n.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize)/1.2-12)}))}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w;if("category"===i.config.xaxis.type&&i.globals.isBarHorizontal||"numeric"===i.config.xaxis.type||"datetime"===i.config.xaxis.type){var n=i.globals.isXNumeric;i.config.yaxis.forEach((function(r,o){var a;(!r.show||r.floating||-1!==i.globals.collapsedSeriesIndices.indexOf(o)||n||r.opposite&&i.globals.isBarHorizontal)&&((n&&i.globals.isMultipleYAxis&&-1!==i.globals.collapsedSeriesIndices.indexOf(o)||i.globals.isBarHorizontal&&r.opposite)&&(a=t,i.config.grid.padding.left<a.width&&(e.xPadLeft=a.width/2+1)),(!i.globals.isBarHorizontal&&r.opposite&&-1!==i.globals.collapsedSeriesIndices.indexOf(o)||n&&!i.globals.isMultipleYAxis)&&function(t){e.timescaleLabels?e.timescaleLabels[e.timescaleLabels.length-1].position+t.width>i.globals.gridWidth?i.globals.skipLastTimelinelabel=!0:i.globals.skipLastTimelinelabel=!1:"datetime"===i.config.xaxis.type?i.config.grid.padding.right<t.width&&(i.globals.skipLastTimelinelabel=!0):"datetime"!==i.config.xaxis.type&&i.config.grid.padding.right<t.width&&(e.xPadRight=t.width/2+1)}(t))}))}i.globals.isBarHorizontal&&(this.xPadRight=t.width/2+1)}},{key:"titleSubtitleOffset",value:function(){var t=this.w,e=t.globals,i=this.isSparkline||!t.globals.axisCharts?0:10;void 0!==t.config.title.text?i+=t.config.title.margin:i+=this.isSparkline||!t.globals.axisCharts?0:5,void 0!==t.config.subtitle.text?i+=t.config.subtitle.margin:i+=this.isSparkline||!t.globals.axisCharts?0:5,t.config.legend.show&&"bottom"===t.config.legend.position&&!t.config.legend.floating&&(t.config.series.length>1||!t.globals.axisCharts||t.config.legend.showForSingleSeries)&&(i+=10);var n=this.getTitleSubtitleCoords("title"),r=this.getTitleSubtitleCoords("subtitle");e.gridHeight=e.gridHeight-n.height-r.height-i,e.translateY=e.translateY+n.height+r.height+i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=10,n=function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1};return t.globals.yLabelsCoords.map((function(r,o){var a=t.config.yaxis[o].floating;r.width>0&&!a?(e=e+r.width+i,n(o)&&(e=e-r.width-i)):e+=a||!t.config.yaxis[o].show?0:5})),t.globals.yTitleCoords.map((function(r,o){var a=t.config.yaxis[o].floating;i=parseInt(t.config.yaxis[o].title.style.fontSize),r.width>0&&!a?(e=e+r.width+i,n(o)&&(e=e-r.width-i)):e+=a||!t.config.yaxis[o].show?0:5})),e}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.timescaleLabels=e.globals.timelineLabels.slice(),e.globals.invertedTimelineLabels.length&&(this.timescaleLabels=e.globals.invertedTimelineLabels.slice());var i=this.timescaleLabels.map((function(t){return t.value})),n=i.reduce((function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e}),0);return 1.05*(t=new g(this.ctx).getTextRects(n,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.globals.timelineLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();t={width:n.width,height:n.height}}else{var r="left"!==e.config.legend.position||"right"!==e.config.legend.position||e.config.legend.floating?0:this.lgRect.width,o=e.globals.xLabelFormatter,a=i.reduce((function(t,e){return t.length>e.length?t:e}),0);e.globals.isBarHorizontal&&(a=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var s=a;a=new R(this.ctx).xLabelFormat(o,a,s);var l=new g(this.ctx),c=l.getTextRects(a,e.config.xaxis.labels.style.fontSize);(t={width:c.width,height:c.height}).width*i.length>e.globals.svgWidth-r-this.yAxisWidth&&0!==e.config.xaxis.labels.rotate?e.globals.isBarHorizontal||(e.globals.rotateXLabels=!0,c=l.getTextRects(a,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1),t.height=c.height/1.66):e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],n=10;return e.config.yaxis.map((function(r,o){if(r.show&&r.labels.show&&e.globals.yAxisScale[o].result.length){var a=e.globals.yLabelFormatters[o],s=a(e.globals.yAxisScale[o].niceMax,{seriesIndex:o,dataPointIndex:-1,w:e});void 0!==s&&0!==s.length||(s=e.globals.yAxisScale[o].niceMax),e.globals.isBarHorizontal&&(n=0,s=a(s=e.globals.labels.slice().reduce((function(t,e){return t.length>e.length?t:e}),0),{seriesIndex:o,dataPointIndex:-1,w:e}));var l=new g(t.ctx).getTextRects(s,r.labels.style.fontSize);i.push({width:l.width+n,height:l.height})}else i.push({width:0,height:0})})),i}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var n=new g(this.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=n.width,i=n.height}return{width:e,height:i}}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map((function(e,n){if(e.show&&void 0!==e.title.text){var r=new g(t.ctx).getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,"rotate(-90 0 0)",!1);i.push({width:r.width,height:r.height})}else i.push({width:0,height:0})})),i}},{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,n=0,r="title"===t?e.config.title.floating:e.config.subtitle.floating,o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==o&&!r){var a=o.getBoundingClientRect();i=a.width,n=e.globals.axisCharts?a.height+5:a.height}return{width:i,height:n}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend"),i=Object.assign({},d.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.lgRect={x:0,y:0,height:0,width:0},this.lgRect}}]),t}(),H=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector("[seriesName='".concat(d.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"));return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function n(i){for(var n=0;n<i.length;n++)i[n].index===e&&t.node.classList.add("apexcharts-series-collapsed")}n(i.globals.collapsedSeries),n(i.globals.ancillaryCollapsedSeries)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.w,i=e.globals.initialSeries.slice();e.config.series=i,e.globals.collapsedSeries=[],e.globals.ancillaryCollapsedSeries=[],e.globals.collapsedSeriesIndices=[],e.globals.ancillaryCollapsedSeriesIndices=[],e.globals.previousPaths=[],t&&this.ctx._updateSeries(i,e.config.chart.animations.dynamicAnimation.enabled)}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series");if("mousemove"===t.type){var r=parseInt(e.getAttribute("rel"))-1,o=null;o=i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")):i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var a=0;a<n.length;a++)n[a].classList.add("legend-mouseover-inactive");null!==o&&(i.globals.axisCharts||o.parentNode.classList.remove("legend-mouseover-inactive"),o.classList.remove("legend-mouseover-inactive"))}else if("mouseout"===t.type)for(var s=0;s<n.length;s++)n[s].classList.remove("legend-mouseover-inactive")}},{key:"highlightRangeInSeries",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap-rect"),r=function(){for(var t=0;t<n.length;t++)n[t].classList.remove("legend-mouseover-inactive")};if("mousemove"===t.type){var o=parseInt(e.getAttribute("rel"))-1;r(),function(){for(var t=0;t<n.length;t++)n[t].classList.add("legend-mouseover-inactive")}(),function(t){for(var e=0;e<n.length;e++){var i=parseInt(n[e].getAttribute("val"));i>=t.from&&i<=t.to&&n[e].classList.remove("legend-mouseover-inactive")}}(i.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===t.type&&r()}},{key:"getActiveSeriesIndex",value:function(){var t=this.w,e=0;if(t.globals.series.length>1)for(var i=t.globals.series.map((function(e,i){return e.length>0&&"bar"!==t.config.series[i].type&&"column"!==t.config.series[i].type?i:-1})),n=0;n<i.length;n++)if(-1!==i[n]){e=i[n];break}return e}},{key:"getActiveConfigSeriesIndex",value:function(){var t=this.w,e=0;if(t.config.series.length>1)for(var i=t.config.series.map((function(t,e){return t.data&&t.data.length>0?e:-1})),n=0;n<i.length;n++)if(-1!==i[n]){e=i[n];break}return e}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,n){for(var r=e[i].childNodes,o={type:n,paths:[],realIndex:e[i].getAttribute("data:realIndex")},a=0;a<r.length;a++)if(r[a].hasAttribute("pathTo")){var s=r[a].getAttribute("pathTo");o.paths.push({d:s})}t.globals.previousPaths.push(o)}t.globals.previousPaths=[];var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-series");if(i.length>0)for(var n=i.length-1;n>=0;n--)e(i,n,"line");var r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-area-series .apexcharts-series");if(r.length>0)for(var o=r.length-1;o>=0;o--)e(r,o,"area");var a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series .apexcharts-series");if(a.length>0)for(var s=0;s<a.length;s++)e(a,s,"bar");var l=t.globals.dom.baseEl.querySelectorAll(".apexcharts-candlestick-series .apexcharts-series");if(l.length>0)for(var c=0;c<l.length;c++)e(l,c,"candlestick");var h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-radar-series .apexcharts-series");if(h.length>0)for(var u=0;u<h.length;u++)e(h,u,"radar");var d=t.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series");if(d.length>0)for(var p=0;p<d.length;p++){for(var f=t.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series[data\\:realIndex='".concat(p,"'] circle")),g=[],m=0;m<f.length;m++)g.push({x:f[m].getAttribute("cx"),y:f[m].getAttribute("cy"),r:f[m].getAttribute("r")});t.globals.previousPaths.push(g)}var y=t.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series");if(y.length>0)for(var v=0;v<y.length;v++){for(var b=t.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series[data\\:realIndex='".concat(v,"'] circle")),x=[],w=0;w<b.length;w++)x.push({x:b[w].getAttribute("cx"),y:b[w].getAttribute("cy"),r:b[w].getAttribute("r")});t.globals.previousPaths.push(x)}var _=t.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series");if(_.length>0)for(var S=0;S<_.length;S++){for(var P=t.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series[data\\:realIndex='".concat(S,"'] rect")),k=[],C=0;C<P.length;C++)k.push({color:P[C].getAttribute("color")});t.globals.previousPaths.push(k)}t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new g(this.ctx),n=t.globals.svgWidth/2,r=t.globals.svgHeight/2,o="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(n=10,o="start"):"right"===e.align&&(n=t.globals.svgWidth-10,o="end"),"top"===e.verticalAlign?r=50:"bottom"===e.verticalAlign&&(r=t.globals.svgHeight-50),n+=e.offsetX,r=r+parseInt(e.style.fontSize)+2+e.offsetY,void 0!==e.text&&""!==e.text){var a=i.drawText({x:n,y:r,text:e.text,textAnchor:o,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});a.node.setAttribute("class","apexcharts-title-text"),t.globals.dom.Paper.add(a)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var n=0;n<t[e.globals.maxValsInArrayIndex].length;n++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),n=0;n<i.length-1;n++)if(i[n][0]!==i[n+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(t,e){return t.length>0?t:[]}))}}]),t}(),W=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this)}return n(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),d.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.getLegendStyles()):this.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"getLegendStyles",value:function(){var t=document.createElement("style");t.setAttribute("type","text/css");var e=document.createTextNode("\t\n \t\n .apexcharts-legend {\t\n display: flex;\t\n overflow: auto;\t\n padding: 0 10px;\t\n }\t\n .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\t\n flex-wrap: wrap\t\n }\t\n .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n flex-direction: column;\t\n bottom: 0;\t\n }\t\n .apexcharts-legend.position-bottom.left, .apexcharts-legend.position-top.left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n justify-content: flex-start;\t\n }\t\n .apexcharts-legend.position-bottom.center, .apexcharts-legend.position-top.center {\t\n justify-content: center; \t\n }\t\n .apexcharts-legend.position-bottom.right, .apexcharts-legend.position-top.right {\t\n justify-content: flex-end;\t\n }\t\n .apexcharts-legend-series {\t\n cursor: pointer;\t\n line-height: normal;\t\n }\t\n .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\t\n display: flex;\t\n align-items: center;\t\n }\t\n .apexcharts-legend-text {\t\n position: relative;\t\n font-size: 14px;\t\n }\t\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n pointer-events: none;\t\n }\t\n .apexcharts-legend-marker {\t\n position: relative;\t\n display: inline-block;\t\n cursor: pointer;\t\n margin-right: 3px;\t\n }\t\n \t\n .apexcharts-legend.right .apexcharts-legend-series, .apexcharts-legend.left .apexcharts-legend-series{\t\n display: inline-block;\t\n }\t\n .apexcharts-legend-series.no-click {\t\n cursor: auto;\t\n }\t\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n display: none !important;\t\n }\t\n .inactive-legend {\t\n opacity: 0.45;\t\n }");return t.appendChild(e),t}},{key:"appendToForeignObject",value:function(){var t=this.w.globals;t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject");var e=t.dom.elLegendForeign;e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",t.svgWidth),e.setAttribute("height",t.svgHeight),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.appendChild(t.dom.elLegendWrap),e.appendChild(this.getLegendStyles()),t.dom.Paper.node.insertBefore(e,t.dom.elGraphical.node)}},{key:"drawLegends",value:function(){var t=this.w,e=t.config.legend.fontFamily,i=t.globals.seriesNames,n=t.globals.colors.slice();if("heatmap"===t.config.chart.type){var r=t.config.plotOptions.heatmap.colorScale.ranges;i=r.map((function(t){return t.name?t.name:t.from+" - "+t.to})),n=r.map((function(t){return t.color}))}for(var o=t.globals.legendFormatter,a=t.config.legend.inverseOrder,s=a?i.length-1:0;a?s>=0:s<=i.length-1;a?s--:s++){var l=o(i[s],{seriesIndex:s,w:t}),c=!1,h=!1;if(t.globals.collapsedSeries.length>0)for(var u=0;u<t.globals.collapsedSeries.length;u++)t.globals.collapsedSeries[u].index===s&&(c=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var d=0;d<t.globals.ancillaryCollapsedSeriesIndices.length;d++)t.globals.ancillaryCollapsedSeriesIndices[d]===s&&(h=!0);var p=document.createElement("span");p.classList.add("apexcharts-legend-marker");var f=t.config.legend.markers.offsetX,m=t.config.legend.markers.offsetY,y=t.config.legend.markers.height,v=t.config.legend.markers.width,b=t.config.legend.markers.strokeWidth,x=t.config.legend.markers.strokeColor,_=t.config.legend.markers.radius,S=p.style;S.background=n[s],S.color=n[s],t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[s]&&(S.background=t.config.legend.markers.fillColors[s]),S.height=Array.isArray(y)?parseFloat(y[s])+"px":parseFloat(y)+"px",S.width=Array.isArray(v)?parseFloat(v[s])+"px":parseFloat(v)+"px",S.left=Array.isArray(f)?f[s]:f,S.top=Array.isArray(m)?m[s]:m,S.borderWidth=Array.isArray(b)?b[s]:b,S.borderColor=Array.isArray(x)?x[s]:x,S.borderRadius=Array.isArray(_)?parseFloat(_[s])+"px":parseFloat(_)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?p.innerHTML=t.config.legend.markers.customHTML[s]():p.innerHTML=t.config.legend.markers.customHTML()),g.setAttrs(p,{rel:s+1,"data:collapsed":c||h}),(c||h)&&p.classList.add("inactive-legend");var P=document.createElement("div"),k=document.createElement("span");k.classList.add("apexcharts-legend-text"),k.innerHTML=l;var C=t.config.legend.labels.useSeriesColors?t.globals.colors[s]:t.config.legend.labels.colors;C||(C=t.config.chart.foreColor),k.style.color=C,k.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",k.style.fontFamily=e||t.config.chart.fontFamily,g.setAttrs(k,{rel:s+1,i:s,"data:default-text":encodeURIComponent(l),"data:collapsed":c||h}),P.appendChild(p),P.appendChild(k);var T=new w(this.ctx);t.config.legend.showForZeroSeries||0===T.getSeriesTotalByIndex(s)&&T.seriesHaveSameValues(s)&&!T.isSeriesNull(s)&&-1===t.globals.collapsedSeriesIndices.indexOf(s)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(s)&&P.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||T.isSeriesNull(s)&&-1===t.globals.collapsedSeriesIndices.indexOf(s)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(s)&&P.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(P),t.globals.dom.elLegendWrap.classList.add(t.config.legend.horizontalAlign),t.globals.dom.elLegendWrap.classList.add("position-"+t.config.legend.position),P.classList.add("apexcharts-legend-series"),P.style.margin="".concat(t.config.legend.itemMargin.horizontal,"px ").concat(t.config.legend.itemMargin.vertical,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",g.setAttrs(P,{rel:s+1,"data:collapsed":c||h}),(c||h)&&P.classList.add("inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||P.classList.add("no-click")}"heatmap"!==t.config.chart.type&&t.config.legend.onItemClick.toggleDataSeries&&t.globals.dom.elWrap.addEventListener("click",this.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&(t.globals.dom.elWrap.addEventListener("mousemove",this.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",this.onLegendHovered,!0))}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelector(".apexcharts-legend"),r=n.getBoundingClientRect(),o=0,a=0;if("bottom"===i.config.legend.position)a+=i.globals.svgHeight-r.height/2;else if("top"===i.config.legend.position){var s=new B(this.ctx),l=s.getTitleSubtitleCoords("title").height,c=s.getTitleSubtitleCoords("subtitle").height;a=a+(l>0?l-10:0)+(c>0?c-10:0)}n.style.position="absolute",o=o+t+i.config.legend.offsetX,a=a+e+i.config.legend.offsetY,n.style.left=o+"px",n.style.top=a+"px","bottom"===i.config.legend.position?(n.style.top="auto",n.style.bottom=10+i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(n.style.left="auto",n.style.right=25+i.config.legend.offsetX+"px"),n.style.width&&(n.style.width=parseInt(i.config.legend.width)+"px"),n.style.height&&(n.style.height=parseInt(i.config.legend.height)+"px")}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var e=this.getLegendBBox(),i=new B(this.ctx),n=i.getTitleSubtitleCoords("title"),r=i.getTitleSubtitleCoords("subtitle"),o=0;"bottom"===t.config.legend.position?o=-e.clwh/1.8:"top"===t.config.legend.position&&(o=n.height+r.height+t.config.title.margin+t.config.subtitle.margin-15),this.setLegendWrapXY(20,o)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"!==e.config.chart.type)!t.target.classList.contains("inactive-legend")&&i&&new H(this.ctx).toggleSeriesOnHover(t,t.target);else if(i){var n=parseInt(t.target.getAttribute("rel"))-1;this.ctx.fireEvent("legendHover",[this.ctx,n,this.w]),new H(this.ctx).highlightRangeInSeries(t,t.target)}}},{key:"onLegendClick",value:function(t){if(t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker")){var e=parseInt(t.target.getAttribute("rel"))-1,i="true"===t.target.getAttribute("data:collapsed"),n=this.w.config.chart.events.legendClick;"function"==typeof n&&n(this.ctx,e,this.w),this.ctx.fireEvent("legendClick",[this.ctx,e,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,e,this.w),this.ctx.fireEvent("legendMarkerClick",[this.ctx,e,this.w])),this.toggleDataSeries(e,i)}}},{key:"toggleDataSeries",value:function(t,e){var i=this.w;if(i.globals.axisCharts||"radialBar"===i.config.chart.type){i.globals.resized=!0;var n=null,r=null;if(i.globals.risingSeries=[],i.globals.axisCharts?(n=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(n.getAttribute("data:realIndex"))):(n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(n.getAttribute("rel"))-1),e)this.riseCollapsedSeries(i.globals.collapsedSeries,i.globals.collapsedSeriesIndices,r),this.riseCollapsedSeries(i.globals.ancillaryCollapsedSeries,i.globals.ancillaryCollapsedSeriesIndices,r);else{if(i.globals.axisCharts){var o=!1;if(i.config.yaxis[r]&&i.config.yaxis[r].show&&i.config.yaxis[r].showAlways&&(o=!0,i.globals.ancillaryCollapsedSeriesIndices.indexOf(r)<0&&(i.globals.ancillaryCollapsedSeries.push({index:r,data:i.config.series[r].data.slice(),type:n.parentNode.className.baseVal.split("-")[1]}),i.globals.ancillaryCollapsedSeriesIndices.push(r))),!o){i.globals.collapsedSeries.push({index:r,data:i.config.series[r].data.slice(),type:n.parentNode.className.baseVal.split("-")[1]}),i.globals.collapsedSeriesIndices.push(r);var a=i.globals.risingSeries.indexOf(r);i.globals.risingSeries.splice(a,1)}i.config.series[r].data=[]}else i.globals.collapsedSeries.push({index:r,data:i.config.series[r]}),i.globals.collapsedSeriesIndices.push(r),i.config.series[r]=0;for(var s=n.childNodes,l=0;l<s.length;l++)s[l].classList.contains("apexcharts-series-markers-wrap")&&(s[l].classList.contains("apexcharts-hide")?s[l].classList.remove("apexcharts-hide"):s[l].classList.add("apexcharts-hide"));i.globals.allSeriesCollapsed=i.globals.collapsedSeries.length===i.globals.series.length,this.ctx._updateSeries(i.config.series,i.config.chart.animations.dynamicAnimation.enabled)}}else{var c=i.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),h=i.config.chart.type;if("pie"===h||"donut"===h){var u=i.config.plotOptions.pie.donut.labels,d=new g(this.ctx),p=new L(this.ctx);d.pathMouseDown(c.members[0],null),p.printDataLabelsInner(c.members[0].node,u)}c.fire("click")}}},{key:"riseCollapsedSeries",value:function(t,e,i){var n=this.w;if(t.length>0)for(var r=0;r<t.length;r++)t[r].index===i&&(n.globals.axisCharts?(n.config.series[i].data=t[r].data.slice(),t.splice(r,1),e.splice(r,1),n.globals.risingSeries.push(i)):(n.config.series[i]=t[r].data,t.splice(r,1),e.splice(r,1),n.globals.risingSeries.push(i)),this.ctx._updateSeries(n.config.series,n.config.chart.animations.dynamicAnimation.enabled))}}]),t}(),X=function(){function t(i,n,r){e(this,t),this.ctx=i,this.w=i.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r,this.scatter=new T(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.yaxisIndex=0}return n(t,[{key:"draw",value:function(t,e,i){var n=this.w,r=new g(this.ctx),o=new k(this.ctx),s=n.globals.comboCharts?e:n.config.chart.type,l=r.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),c=new w(this.ctx,n);t=c.getLogSeries(t);var h=this.xyRatios.yRatio;h=c.getLogYRatios(h);for(var u=this.xyRatios.zRatio,p=this.xyRatios.xRatio,f=this.xyRatios.baseLineY,m=[],y=[],v=0,b=0;b<t.length;b++){if("line"===s&&("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[b])&&c.seriesHaveSameValues(b)){var x=t[b].slice();x[x.length-1]=x[x.length-1]+1e-6,t[b]=x}var _=n.globals.gridWidth/n.globals.dataPoints,S=n.globals.comboCharts?i[b]:b;h.length>1&&(this.yaxisIndex=S),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var P=[],T=[],O=n.globals.gridHeight-f[this.yaxisIndex]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*f[this.yaxisIndex]:0),M=O;O>n.globals.gridHeight&&(M=n.globals.gridHeight),v=_/2;var E=n.globals.padHorizontal+v,I=1;n.globals.isXNumeric&&n.globals.seriesX.length>0&&(E=(n.globals.seriesX[S][0]-n.globals.minX)/p),T.push(E);var D=void 0,L=void 0,j=void 0,N=void 0,F=[],R=[],V=r.group({class:"apexcharts-series",seriesName:d.escapeString(n.globals.seriesNames[S])}),z=r.group({class:"apexcharts-series-markers-wrap"}),B=r.group({class:"apexcharts-datalabels"});this.ctx.series.addCollapsedClassToSeries(V,S);var H=t[b].length===n.globals.dataPoints;V.attr({"data:longestSeries":H,rel:b+1,"data:realIndex":S}),this.appendPathFrom=!0;var W=E,X=void 0,Y=W,G=O,U=0;if(G=this.determineFirstPrevY({i:b,series:t,yRatio:h[this.yaxisIndex],zeroY:O,prevY:G,prevSeriesY:y,lineYPosition:U}).prevY,P.push(G),X=G,null===t[b][0]){for(var q=0;q<t[b].length;q++)if(null!==t[b][q]){Y=_*q,G=O-t[b][q]/h[this.yaxisIndex],D=r.move(Y,G),L=r.move(Y,M);break}}else D=r.move(Y,G),L=r.move(Y,M)+r.line(Y,G);if(j=r.move(-1,O)+r.line(-1,O),N=r.move(-1,O)+r.line(-1,O),n.globals.previousPaths.length>0){var $=this.checkPreviousPaths({pathFromLine:j,pathFromArea:N,realIndex:S});j=$.pathFromLine,N=$.pathFromArea}for(var K=n.globals.dataPoints>1?n.globals.dataPoints-1:n.globals.dataPoints,Z=0;Z<K;Z++){if(n.globals.isXNumeric){var J=n.globals.seriesX[S][Z+1];void 0===n.globals.seriesX[S][Z+1]&&(J=n.globals.seriesX[S][K-1]),E=(J-n.globals.minX)/p}else E+=_;var Q=d.isNumber(n.globals.minYArr[S])?n.globals.minYArr[S]:n.globals.minY;n.config.chart.stacked?(U=b>0&&n.globals.collapsedSeries.length<n.config.series.length-1?y[b-1][Z+1]:O,I=void 0===t[b][Z+1]||null===t[b][Z+1]?U-Q/h[this.yaxisIndex]+2*(this.isReversed?Q/h[this.yaxisIndex]:0):U-t[b][Z+1]/h[this.yaxisIndex]+2*(this.isReversed?t[b][Z+1]/h[this.yaxisIndex]:0)):I=void 0===t[b][Z+1]||null===t[b][Z+1]?O-Q/h[this.yaxisIndex]+2*(this.isReversed?Q/h[this.yaxisIndex]:0):O-t[b][Z+1]/h[this.yaxisIndex]+2*(this.isReversed?t[b][Z+1]/h[this.yaxisIndex]:0),T.push(E),P.push(I);var tt=this.createPaths({series:t,i:b,j:Z,x:E,y:I,xDivision:_,pX:W,pY:X,areaBottomY:M,linePath:D,areaPath:L,linePaths:F,areaPaths:R,seriesIndex:i});R=tt.areaPaths,F=tt.linePaths,W=tt.pX,X=tt.pY,L=tt.areaPath,D=tt.linePath,this.appendPathFrom&&(j+=r.line(E,O),N+=r.line(E,O));var et=this.calculatePoints({series:t,x:E,y:I,realIndex:S,i:b,j:Z,prevY:G,categoryAxisCorrection:v,xRatio:p});if(this.pointsChart)this.scatter.draw(V,Z,{realIndex:S,pointsPos:et,zRatio:u,elParent:z});else{var it=new C(this.ctx);n.globals.dataPoints>1&&z.node.classList.add("hidden");var nt=it.plotChartMarkers(et,S,Z+1);null!==nt&&z.add(nt)}var rt=!t[b][Z+1]||t[b][Z+1]>t[b][Z]?"top":"bottom",ot=new A(this.ctx).drawDataLabel(et,S,Z+1,null,rt);null!==ot&&B.add(ot)}y.push(P),n.globals.seriesXvalues[S]=T,n.globals.seriesYvalues[S]=P,this.pointsChart||n.globals.delayedElements.push({el:z.node,index:S});var at={i:b,realIndex:S,animationDelay:b,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(s)};if("area"===s)for(var st=o.fillPath({seriesNumber:S}),lt=0;lt<R.length;lt++){var ct=r.renderPaths(a({},at,{pathFrom:N,pathTo:R[lt],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:st}));V.add(ct)}if(n.config.stroke.show&&!this.pointsChart){var ht;ht="line"===s?o.fillPath({seriesNumber:S,i:b}):n.globals.stroke.colors[S];for(var ut=0;ut<F.length;ut++){var dt=r.renderPaths(a({},at,{pathFrom:j,pathTo:F[ut],stroke:ht,strokeWidth:Array.isArray(n.config.stroke.width)?n.config.stroke.width[S]:n.config.stroke.width,strokeLineCap:n.config.stroke.lineCap,fill:"none"}));V.add(dt)}}V.add(z),V.add(B),m.push(V)}for(var pt=m.length;pt>0;pt--)l.add(m[pt-1]);return l}},{key:"createPaths",value:function(t){var e=t.series,i=t.i,n=t.j,r=t.x,o=t.y,a=t.pX,s=t.pY,l=t.xDivision,c=t.areaBottomY,h=t.linePath,u=t.areaPath,d=t.linePaths,p=t.areaPaths,f=t.seriesIndex,m=this.w,y=new g(this.ctx),v=m.config.stroke.curve;if(Array.isArray(m.config.stroke.curve)&&(v=Array.isArray(f)?m.config.stroke.curve[f[i]]:m.config.stroke.curve[i]),"smooth"===v){var b=.35*(r-a);m.globals.hasNullValues?(null!==e[i][n]&&(null!==e[i][n+1]?(h=y.move(a,s)+y.curve(a+b,s,r-b,o,r+1,o),u=y.move(a+1,s)+y.curve(a+b,s,r-b,o,r+1,o)+y.line(r,c)+y.line(a,c)+"z"):(h=y.move(a,s),u=y.move(a,s)+"z")),d.push(h),p.push(u)):(h+=y.curve(a+b,s,r-b,o,r,o),u+=y.curve(a+b,s,r-b,o,r,o)),a=r,s=o,n===e[i].length-2&&(u=u+y.curve(a,s,r,o,r,c)+y.move(r,o)+"z",m.globals.hasNullValues||(d.push(h),p.push(u)))}else null===e[i][n+1]&&(h+=y.move(r,o),u=u+y.line(r-l,c)+y.move(r,o)),null===e[i][n]&&(h+=y.move(r,o),u+=y.move(r,c)),"stepline"===v?(h=h+y.line(r,null,"H")+y.line(null,o,"V"),u=u+y.line(r,null,"H")+y.line(null,o,"V")):"straight"===v&&(h+=y.line(r,o),u+=y.line(r,o)),n===e[i].length-2&&(u=u+y.line(r,c)+y.move(r,o)+"z",d.push(h),p.push(u));return{linePaths:d,areaPaths:p,pX:a,pY:s,linePath:h,areaPath:u}}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,n=t.x,r=t.y,o=t.i,a=t.j,s=t.prevY,l=t.categoryAxisCorrection,c=t.xRatio,h=this.w,u=[],p=[];if(0===a){var f=l+h.config.markers.offsetX;h.globals.isXNumeric&&(f=(h.globals.seriesX[i][0]-h.globals.minX)/c+h.config.markers.offsetX),u.push(f),p.push(d.isNumber(e[o][0])?s+h.config.markers.offsetY:null),u.push(n+h.config.markers.offsetX),p.push(d.isNumber(e[o][a+1])?r+h.config.markers.offsetY:null)}else u.push(n+h.config.markers.offsetX),p.push(d.isNumber(e[o][a+1])?r+h.config.markers.offsetY:null);return{x:u,y:p}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,n=t.realIndex,r=this.w,o=0;o<r.globals.previousPaths.length;o++){var a=r.globals.previousPaths[o];("line"===a.type||"area"===a.type)&&a.paths.length>0&&parseInt(a.realIndex)===parseInt(n)&&("line"===a.type?(this.appendPathFrom=!1,e=r.globals.previousPaths[o].paths[0].d):"area"===a.type&&(this.appendPathFrom=!1,i=r.globals.previousPaths[o].paths[0].d,r.config.stroke.show&&(e=r.globals.previousPaths[o].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e=t.i,i=t.series,n=t.yRatio,r=t.zeroY,o=t.prevY,a=t.prevSeriesY,s=t.lineYPosition,l=this.w;if(void 0!==i[e][0])o=l.config.chart.stacked?(s=e>0?a[e-1][0]:r)-i[e][0]/n+2*(this.isReversed?i[e][0]/n:0):r-i[e][0]/n+2*(this.isReversed?i[e][0]/n:0);else if(l.config.chart.stacked&&e>0&&void 0===i[e][0])for(var c=e-1;c>=0;c--)if(null!==i[c][0]&&void 0!==i[c][0]){o=s=a[c][0];break}return{prevY:o,lineYPosition:s}}}]),t}(),Y=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),n.globals.timelineLabels.length>0&&(this.xaxisLabels=n.globals.timelineLabels.slice()),this.drawnLabels=[],"top"===n.config.xaxis.position?this.offY=0:this.offY=n.globals.gridHeight+1,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xaxisBorderWidth=n.config.xaxis.axisBorder.width,this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0],this.axesUtils=new V(i)}return n(t,[{key:"drawXaxis",value:function(){var t,e=this.w,i=new g(this.ctx),n=i.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);for(var o=e.globals.padHorizontal,a=[],s=0;s<this.xaxisLabels.length;s++)a.push(this.xaxisLabels[s]);o=e.globals.isXNumeric?o+(t=e.globals.gridWidth/(a.length-1))/2+e.config.xaxis.labels.offsetX:o+(t=e.globals.gridWidth/a.length)+e.config.xaxis.labels.offsetX;var l=a.length;if(e.config.xaxis.labels.show)for(var c=0;c<=l-1;c++){var h=o-t/2+e.config.xaxis.labels.offsetX,u=this.axesUtils.getLabel(a,e.globals.timelineLabels,h,c,this.drawnLabels);this.drawnLabels.push(u.text);var d=28;e.globals.rotateXLabels&&(d=22);var p=i.drawText({x:u.x,y:this.offY+e.config.xaxis.labels.offsetY+d,text:"",textAnchor:"middle",fontWeight:u.isBold?600:400,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[c]:this.xaxisForeColors,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});c===l-1&&e.globals.skipLastTimelinelabel&&(u.text=""),r.add(p),i.addTspan(p,u.text,this.xaxisFontFamily);var f=document.createElementNS(e.globals.SVGNS,"title");f.textContent=u.text,p.node.appendChild(f),o+=t}if(void 0!==e.config.xaxis.title.text){var m=i.group({class:"apexcharts-xaxis-title"}),y=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY-parseFloat(this.xaxisFontSize)+e.globals.xAxisLabelsHeight+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});m.add(y),n.add(m)}if(e.config.xaxis.axisBorder.show){var v=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(v-=15);var b=i.drawLine(e.globals.padHorizontal+v+e.config.xaxis.axisBorder.offsetX,this.offY,this.xaxisBorderWidth,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);n.add(b)}return n}},{key:"drawXaxisInversed",value:function(t){var e,i,n=this.w,r=new g(this.ctx),o=n.config.yaxis[0].opposite?n.globals.translateYAxisX[t]:0,a=r.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),s=r.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});a.add(s);var l=[];if(n.config.yaxis[t].show)for(var c=0;c<this.xaxisLabels.length;c++)l.push(this.xaxisLabels[c]);i=-(e=n.globals.gridHeight/l.length)/2.2;var h=n.globals.yLabelFormatters[0],u=n.config.yaxis[0].labels;if(u.show)for(var d=0;d<=l.length-1;d++){var p=void 0===l[d]?"":l[d];p=h(p,{seriesIndex:t,dataPointIndex:d,w:n});var f=r.drawText({x:u.offsetX-15,y:i+e+u.offsetY,text:p,textAnchor:this.yaxis.opposite?"start":"end",foreColor:u.style.color?u.style.color:u.style.colors[d],fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,cssClass:"apexcharts-yaxis-label "+u.style.cssClass});if(s.add(f),0!==n.config.yaxis[t].labels.rotate){var m=r.rotateAroundCenter(f.node);f.node.setAttribute("transform","rotate(".concat(n.config.yaxis[t].labels.rotate," ").concat(m.x," ").concat(m.y,")"))}i+=e}if(void 0!==n.config.yaxis[0].title.text){var y=r.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),v=r.drawText({x:0,y:n.globals.gridHeight/2,text:n.config.yaxis[0].title.text,textAnchor:"middle",foreColor:n.config.yaxis[0].title.style.color,fontSize:n.config.yaxis[0].title.style.fontSize,fontFamily:n.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[0].title.style.cssClass});y.add(v),a.add(y)}if(n.config.xaxis.axisBorder.show){var b=r.drawLine(n.globals.padHorizontal+n.config.xaxis.axisBorder.offsetX,this.offY,this.xaxisBorderWidth,this.offY,this.yaxis.axisBorder.color,0,this.xaxisBorderHeight);a.add(b),this.axesUtils.drawYAxisTicks(0,l.length,n.config.yaxis[0].axisBorder,n.config.yaxis[0].axisTicks,0,e,a)}return a}},{key:"drawXaxisTicks",value:function(t,e){var i=this.w,n=t;if(!(t<0||t>i.globals.gridWidth)){var r=this.offY+i.config.xaxis.axisTicks.offsetY,o=r+i.config.xaxis.axisTicks.height;if(i.config.xaxis.axisTicks.show){var a=new g(this.ctx).drawLine(t+i.config.xaxis.axisTicks.offsetX,r+i.config.xaxis.offsetY,n+i.config.xaxis.axisTicks.offsetX,o+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);e.add(a),a.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,n=t.globals.padHorizontal;if(t.globals.timelineLabels.length>0)for(var r=0;r<i;r++)n=this.xaxisLabels[r].position,e.push(n);else for(var o=i,a=0;a<o;a++){var s=o;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&(s-=1),n+=t.globals.gridWidth/s,e.push(n)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new g(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text"),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var a=0;a<n.length;a++){var s=e.rotateAroundCenter(n[a]);s.y=s.y-1,s.x=s.x+1,n[a].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),n[a].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=n[a].childNodes;t.config.xaxis.labels.trim&&e.placeTextWithEllipsis(l[0],l[0].textContent,t.config.xaxis.labels.maxHeight-("bottom"===t.config.legend.position?20:10))}else for(var c=t.globals.gridWidth/t.globals.labels.length,h=0;h<n.length;h++){var u=n[h].childNodes;t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&e.placeTextWithEllipsis(u[0],u[0].textContent,c)}if(r.length>0){var d=r[r.length-1].getBBox(),p=r[0].getBBox();d.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),p.x+p.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var f=0;f<o.length;f++)e.placeTextWithEllipsis(o[f],o[f].textContent,t.config.yaxis[0].labels.maxWidth-2*parseFloat(t.config.yaxis[0].title.style.fontSize)-20)}}}]),t}(),G=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"niceScale",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,o=this.w,a=void 0===this.w.config.yaxis[n].max&&void 0===this.w.config.yaxis[n].min||this.w.config.yaxis[n].forceNiceScale;if(t===Number.MIN_VALUE&&0===e||!d.isNumber(t)&&!d.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=r,this.linearScale(t,e,r);t>e?(console.warn("yaxis.min cannot be greater than yaxis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var s=[],l=Math.abs(e-t);l<1&&a&&("candlestick"===o.config.chart.type||"candlestick"===o.config.series[n].type||o.globals.isRangeData)&&(e*=1.01);var c=r+1;c<2?c=2:c>2&&(c-=2);var h=l/c,u=Math.floor(d.log10(h)),p=Math.pow(10,u),f=Math.round(h/p);f<1&&(f=1);var g=f*p,m=g*Math.floor(t/g),y=g*Math.ceil(e/g),v=m;if(a&&l>2){for(;s.push(v),!((v+=g)>y););return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}var b=t;(s=[]).push(b);for(var x=Math.abs(e-t)/r,w=0;w<=r;w++)b+=x,s.push(b);return s[s.length-2]>=e&&s.pop(),{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=Math.abs(e-t)/i;i===Number.MAX_VALUE&&(i=10,n=1);for(var r=[],o=t;i>=0;)r.push(o),o+=n,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(t,e,i,n){(e<0||e===Number.MIN_VALUE)&&(e=.01);for(var r=Math.log(e)/Math.log(10),o=Math.log(i)/Math.log(10),a=Math.abs(i-e)/n,s=[],l=e;n>=0;)s.push(l),l+=a,n-=1;var c=s.map((function(t,n){t<=0&&(t=.01);var a=(o-r)/(i-e),s=Math.pow(10,r+a*(t-r));return Math.round(s/d.roundToBase(s,10))*d.roundToBase(s,10)}));return 0===c[0]&&(c[0]=1),{result:c,niceMin:c[0],niceMax:c[c.length-1]}}},{key:"setYScaleForIndex",value:function(t,e,i){var n=this.w.globals,r=this.w.config,o=n.isBarHorizontal?r.xaxis:r.yaxis[t];void 0===n.yAxisScale[t]&&(n.yAxisScale[t]=[]);var a=Math.abs(i-e);o.logarithmic&&a<=5&&(n.invalidLogScale=!0),o.logarithmic&&a>5?(n.allSeriesCollapsed=!1,n.yAxisScale[t]=this.logarithmicScale(t,e,i,o.tickAmount?o.tickAmount:Math.floor(Math.log10(i)))):i!==-Number.MAX_VALUE&&d.isNumber(i)?(n.allSeriesCollapsed=!1,void 0===o.min&&void 0===o.max||o.forceNiceScale?n.yAxisScale[t]=this.niceScale(e,i,a,t,o.tickAmount?o.tickAmount:a<5&&a>1?a+1:5):n.yAxisScale[t]=this.linearScale(e,i,o.tickAmount)):n.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,n=e.minYArr.concat([]),r=e.maxYArr.concat([]),o=[];i.yaxis.forEach((function(a,s){var l=s;i.series.forEach((function(t,i){t.name===a.seriesName&&-1===e.collapsedSeriesIndices.indexOf(i)&&(l=i,s!==i?o.push({index:i,similarIndex:s,alreadyExists:!0}):o.push({index:i}))}));var c=n[l],h=r[l];t.setYScaleForIndex(s,c,h)})),this.sameScaleInMultipleAxes(n,r,o)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var n=this,r=this.w.config,o=this.w.globals,a=[];i.forEach((function(t){t.alreadyExists&&(void 0===a[t.index]&&(a[t.index]=[]),a[t.index].push(t.index),a[t.index].push(t.similarIndex))})),o.yAxisSameScaleIndices=a,a.forEach((function(t,e){a.forEach((function(i,n){var r,o;e!==n&&(r=t,o=i,r.filter((function(t){return-1!==o.indexOf(t)}))).length>0&&(a[e]=a[e].concat(a[n]))}))}));var s=a.map((function(t){return t.filter((function(e,i){return t.indexOf(e)===i}))})).map((function(t){return t.sort()}));a=a.filter((function(t){return!!t}));var l=s.slice(),c=l.map((function(t){return JSON.stringify(t)}));l=l.filter((function(t,e){return c.indexOf(JSON.stringify(t))===e}));var h=[],u=[];t.forEach((function(t,i){l.forEach((function(n,r){n.indexOf(i)>-1&&(void 0===h[r]&&(h[r]=[],u[r]=[]),h[r].push({key:i,value:t}),u[r].push({key:i,value:e[i]}))}))}));var d=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);h.forEach((function(t,e){t.forEach((function(t,i){d[e]=Math.min(t.value,d[e])}))})),u.forEach((function(t,e){t.forEach((function(t,i){p[e]=Math.max(t.value,p[e])}))})),t.forEach((function(t,e){u.forEach((function(t,i){var a=d[i],s=p[i];r.chart.stacked&&(s=0,t.forEach((function(t,e){s+=t.value,a!==Number.MIN_VALUE&&(a+=h[i][e].value)}))),t.forEach((function(i,l){t[l].key===e&&(void 0!==r.yaxis[e].min&&(a="function"==typeof r.yaxis[e].min?r.yaxis[e].min(o.minY):r.yaxis[e].min),void 0!==r.yaxis[e].max&&(s="function"==typeof r.yaxis[e].max?r.yaxis[e].max(o.maxY):r.yaxis[e].max),n.setYScaleForIndex(e,a,s))}))}))}))}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var n=t.w;if(n.globals.isMultipleYAxis||n.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),e;var r=n.globals.seriesX[0],o=n.config.chart.stacked;return e.forEach((function(t,a){for(var s=0,l=0;l<r.length;l++)if(r[l]>=i.xaxis.min){s=l;break}var c,h,u=n.globals.minYArr[a],d=n.globals.maxYArr[a],p=n.globals.stackedSeriesTotals;n.globals.series.forEach((function(a,l){var f=a[s];o?(f=p[s],c=h=f,p.forEach((function(t,e){r[e]<=i.xaxis.max&&r[e]>=i.xaxis.min&&(t>h&&null!==t&&(h=t),a[e]<c&&null!==a[e]&&(c=a[e]))}))):(c=h=f,a.forEach((function(t,e){if(r[e]<=i.xaxis.max&&r[e]>=i.xaxis.min){var o=t,a=t;n.globals.series.forEach((function(i,n){null!==t&&(o=Math.min(i[e],o),a=Math.max(i[e],a))})),a>h&&null!==a&&(h=a),o<c&&null!==o&&(c=o)}}))),void 0===c&&void 0===h&&(c=u,h=d),(h*=h<0?.9:1.1)<0&&h<d&&(h=d),(c*=c<0?1.1:.9)<0&&c>u&&(c=u),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?h:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?h:t.max)}))})),e}}]),t}(),U=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.scales=new G(i)}return n(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w.config,o=this.w.globals,a=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===n&&(n=t+1);var l=o.series,c=l,h=l;"candlestick"===r.chart.type?(c=o.seriesCandleL,h=o.seriesCandleH):o.isRangeData&&(c=o.seriesRangeStart,h=o.seriesRangeEnd);for(var u=t;u<n;u++){o.dataPoints=Math.max(o.dataPoints,l[u].length);for(var p=0;p<o.series[u].length;p++){var f=l[u][p];null!==f&&d.isNumber(f)?(a=Math.max(a,h[u][p]),e=Math.min(e,c[u][p]),i=Math.max(i,c[u][p]),"candlestick"===this.w.config.chart.type&&(a=Math.max(a,o.seriesCandleO[u][p]),a=Math.max(a,o.seriesCandleH[u][p]),a=Math.max(a,o.seriesCandleL[u][p]),i=a=Math.max(a,o.seriesCandleC[u][p])),d.isFloat(f)&&(f=d.noExponents(f),o.yValueDecimal=Math.max(o.yValueDecimal,f.toString().split(".")[1].length)),s>c[u][p]&&c[u][p]<0&&(s=c[u][p])):o.hasNullValues=!0}}return"rangeBar"===r.chart.type&&o.seriesRangeStart.length&&"datetime"===r.xaxis.type&&(s=e),{minY:s,maxY:a,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var n=0;n<t.series.length;n++){var r=this.getMinYMaxY(n,i,null,n+1);t.minYArr.push(r.minY),t.maxYArr.push(r.maxY),i=r.lowestY}var o=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=o.minY,t.maxY=o.maxY,i=o.lowestY,e.chart.stacked){var a=[],s=[];if(t.series.length)for(var l=0;l<t.series[t.maxValsInArrayIndex].length;l++)for(var c=0,h=0,u=0;u<t.series.length;u++)null!==t.series[u][l]&&d.isNumber(t.series[u][l])&&(t.series[u][l]>0?c=c+parseFloat(t.series[u][l])+1e-4:h+=parseFloat(t.series[u][l])),u===t.series.length-1&&(a.push(c),s.push(h));for(var p=0;p<a.length;p++)t.maxY=Math.max(t.maxY,a[p]),t.minY=Math.min(t.minY,s[p])}if(("line"===e.chart.type||"area"===e.chart.type||"candlestick"===e.chart.type)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var f=t.maxY-i;i>=0&&i<=10&&(f=0),t.minY=i-5*f/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*f/100}return e.yaxis.map((function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.minY)),t.minY=t.minYArr[i])})),t.isBarHorizontal&&(void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minY=e.xaxis.min),void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxY=e.xaxis.max)),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach((function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax}))):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr}}},{key:"setXRange",value:function(){var t,e=this.w.globals,i=this.w.config,n="numeric"===i.xaxis.type||"datetime"===i.xaxis.type||"category"===i.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric)for(var r=0;r<e.series.length;r++)if(e.labels[r])for(var o=0;o<e.labels[r].length;o++)null!==e.labels[r][o]&&d.isNumber(e.labels[r][o])&&(e.maxX=Math.max(e.maxX,e.labels[r][o]),e.initialmaxX=Math.max(e.maxX,e.labels[r][o]),e.minX=Math.min(e.minX,e.labels[r][o]),e.initialminX=Math.min(e.minX,e.labels[r][o]));if(e.noLabelsProvided&&0===i.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialmaxX=e.labels[e.labels.length-1],e.minX=1,e.initialminX=1),(e.comboChartsHasBars||"candlestick"===i.chart.type||"bar"===i.chart.type&&e.isXNumeric)&&("category"!==i.xaxis.type||e.isXNumeric)){var a=e.svgWidth/e.dataPoints*(Math.abs(e.maxX-e.minX)/e.svgWidth),s=e.minX-a/2;e.minX=s,e.initialminX=s;var l=e.maxX+a/((e.series.length+1)/e.series.length);e.maxX=l,e.initialmaxX=l}if(!e.isXNumeric&&!e.noLabelsProvided||i.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric||(void 0===i.xaxis.tickAmount?(t=Math.round(e.svgWidth/150),"numeric"===i.xaxis.type&&e.dataPoints<20&&(t=e.dataPoints-1),t>e.dataPoints&&0!==e.dataPoints&&(t=e.dataPoints-1)):t="dataPoints"===i.xaxis.tickAmount?e.series[e.maxValsInArrayIndex].length-1:i.xaxis.tickAmount,void 0!==i.xaxis.max&&"number"==typeof i.xaxis.max&&(e.maxX=i.xaxis.max),void 0!==i.xaxis.min&&"number"==typeof i.xaxis.min&&(e.minX=i.xaxis.min),void 0!==i.xaxis.range&&(e.minX=e.maxX-i.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE?e.xAxisScale=this.scales.linearScale(e.minX,e.maxX,t):(e.xAxisScale=this.scales.linearScale(1,t,t),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,t-1),e.seriesX=e.labels.slice())),n&&(e.labels=e.xAxisScale.result.slice())),e.minX===e.maxX)if("datetime"===i.xaxis.type){var c=new Date(e.minX);c.setDate(c.getDate()-2),e.minX=new Date(c).getTime();var h=new Date(e.maxX);h.setDate(h.getDate()+2),e.maxX=new Date(h).getTime()}else("numeric"===i.xaxis.type||"category"===i.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.maxX=e.maxX+2);return e.isXNumeric&&e.seriesX.forEach((function(t,i){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var n=t.slice();n.sort((function(t,e){return t-e})),n.forEach((function(t,n){if(n>0){var r=t-e.seriesX[i][n-1];e.minXDiff=Math.min(r,e.minXDiff)}}))})),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&d.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}}]),t}(),q=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.timeScaleArray=[]}return n(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,n=this.w;if(n.globals.allSeriesCollapsed)return n.globals.labels=[],n.globals.timelineLabels=[],[];var r=new b(this.ctx),o=(e-t)/864e5;this.determineInterval(o),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,o<.005?n.globals.disableZoomIn=!0:o>5e4&&(n.globals.disableZoomOut=!0);var s=r.getTimeUnitsfromTimestamp(t,e),l=n.globals.gridWidth/o,c=l/24,h=c/60,u=Math.floor(24*o),d=Math.floor(24*o*60),p=Math.floor(o),f=Math.floor(o/30),g=Math.floor(o/365),m={minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},y={firstVal:m,currentMinute:m.minMinute,currentHour:m.minHour,currentMonthDate:m.minDate,currentDate:m.minDate,currentMonth:m.minMonth,currentYear:m.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:h,numberOfMinutes:d,numberOfHours:u,numberOfDays:p,numberOfMonths:f,numberOfYears:g};switch(this.tickInterval){case"years":this.generateYearScale(y);break;case"months":case"half_year":this.generateMonthScale(y);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(y);break;case"hours":this.generateHourScale(y);break;case"minutes":this.generateMinuteScale(y)}var v=this.timeScaleArray.map((function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?a({},e,{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?a({},e,{value:t.value}):"minute"===t.unit?a({},e,{value:t.value,minute:t.value}):t}));return v.filter((function(t){var e=1,r=Math.ceil(n.globals.gridWidth/120),o=t.value;void 0!==n.config.xaxis.tickAmount&&(r=n.config.xaxis.tickAmount),v.length>r&&(e=Math.floor(v.length/r));var a=!1,s=!1;switch(i.tickInterval){case"half_year":e=7,"year"===t.unit&&(a=!0);break;case"months":e=1,"year"===t.unit&&(a=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(a=!0),30===o&&(s=!0);break;case"months_days":e=10,"month"===t.unit&&(a=!0),30===o&&(s=!0);break;case"week_days":e=8,"month"===t.unit&&(a=!0);break;case"days":e=1,"month"===t.unit&&(a=!0);break;case"hours":"day"===t.unit&&(a=!0);break;case"minutes":o%5!=0&&(s=!0)}if("minutes"===i.tickInterval||"hours"===i.tickInterval){if(!s)return!0}else if((o%e==0||a)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,n=this.formatDates(t),r=this.removeOverlappingTS(n);e?i.globals.invertedTimelineLabels=r.slice():i.globals.timelineLabels=r.slice(),new B(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){switch(!0){case t>1825:this.tickInterval="years";break;case t>800&&t<=1825:this.tickInterval="half_year";break;case t>180&&t<=800:this.tickInterval="months";break;case t>90&&t<=180:this.tickInterval="months_fortnight";break;case t>60&&t<=90:this.tickInterval="months_days";break;case t>30&&t<=60:this.tickInterval="week_days";break;case t>2&&t<=30:this.tickInterval="days";break;case t>.1&&t<=2:this.tickInterval="hours";break;case t<.1:this.tickInterval="minutes";break;default:this.tickInterval="days"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,n=t.currentYear,r=t.daysWidthOnXAxis,o=t.numberOfYears,a=e.minYear,s=0,l=new b(this.ctx);if(e.minDate>1&&e.minMonth>0){var c=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);s=(l.determineDaysOfYear(e.minYear)-c+1)*r,a=e.minYear+1,this.timeScaleArray.push({position:s,value:a,unit:"year",year:a,month:d.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:s,value:a,unit:"year",year:n,month:d.monthMod(i+1)});for(var h=a,u=s,p=0;p<o;p++)h++,u=l.determineDaysOfYear(h-1)*r+u,this.timeScaleArray.push({position:u,value:h,unit:"year",year:h,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,n=t.currentMonth,r=t.currentYear,o=t.daysWidthOnXAxis,a=t.numberOfMonths,s=n,l=0,c=new b(this.ctx),h="month",u=0;if(e.minDate>1){l=(c.determineDaysOfMonths(n+1,e.minYear)-i+1)*o,s=d.monthMod(n+1);var p=r+u,f=d.monthMod(s),g=s;0===s&&(h="year",g=p,f=1,p+=u+=1),this.timeScaleArray.push({position:l,value:g,unit:h,year:p,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:h,year:r,month:d.monthMod(n)});for(var m=s+1,y=l,v=0,x=1;v<a;v++,x++){0===(m=d.monthMod(m))?(h="year",u+=1):h="month";var w=r+Math.floor(m/12)+u;y=c.determineDaysOfMonths(m,w)*o+y;var _=0===m?w:m;this.timeScaleArray.push({position:y,value:_,unit:h,year:w,month:0===m?1:m}),m++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,n=t.currentYear,r=t.hoursWidthOnXAxis,o=t.numberOfDays,a=new b(this.ctx),s="day",l=(24-e.minHour)*r,c=e.minDate+1,h=c,u=function(t,e,i){return t>a.determineDaysOfMonths(e+1,i)?(p=1,s="month",h=e+=1,e):e},p=c,f=u(p,i,n);this.timeScaleArray.push({position:l,value:h,unit:s,year:n,month:d.monthMod(f),day:p});for(var g=l,m=0;m<o;m++){s="day",f=u(p+=1,f,n+Math.floor(f/12)+0);var y=n+Math.floor(f/12)+0;g=24*r+g;var v=1===p?d.monthMod(f):p;this.timeScaleArray.push({position:g,value:v,unit:s,year:y,month:d.monthMod(f),day:v})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,n=t.currentMonth,r=t.currentYear,o=t.minutesWidthOnXAxis,a=t.numberOfHours,s=new b(this.ctx),l="hour",c=function(t,e){return t>s.determineDaysOfMonths(e+1,r)&&(m=1,e+=1),{month:e,date:m}},h=function(t,e){return t>s.determineDaysOfMonths(e+1,r)?e+=1:e},u=60-e.minMinute,p=u*o,f=e.minHour+1,g=f+1;60===u&&(p=0,g=(f=e.minHour)+1);var m=i,y=h(m,n);this.timeScaleArray.push({position:p,value:f,unit:l,day:m,hour:g,year:r,month:d.monthMod(y)});for(var v=p,x=0;x<a;x++){l="hour",g>=24&&(g=0,l="day",y=c(m+=1,y).month,y=h(m,y));var w=r+Math.floor(y/12)+0;v=0===g&&0===x?u*o:60*o+v;var _=0===g?m:g;this.timeScaleArray.push({position:v,value:_,unit:l,hour:g,day:m,year:w,month:d.monthMod(y)}),g++}}},{key:"generateMinuteScale",value:function(t){var e=t.firstVal,i=t.currentMinute,n=t.currentHour,r=t.currentDate,o=t.currentMonth,a=t.currentYear,s=t.minutesWidthOnXAxis,l=t.numberOfMinutes,c=s-(i-e.minMinute),h=e.minMinute+1,u=h+1,p=r,f=o,g=a,m=n;this.timeScaleArray.push({position:c,value:h,unit:"minute",day:p,hour:m,minute:u,year:g,month:d.monthMod(f)});for(var y=c,v=0;v<l;v++){u>=60&&(u=0,24===(m+=1)&&(m=0));var b=a+Math.floor(f/12)+0;y=s+y;var x=u;this.timeScaleArray.push({position:y,value:x,unit:"minute",hour:m,minute:u,day:p,year:b,month:d.monthMod(f)}),u++}}},{key:"createRawDateString",value:function(t,e){var i=t.year;return i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),i+("minute"===t.unit?":"+("0"+e).slice(-2)+":00.000Z":":00:00.000Z")}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var n=t.value.toString(),r=new b(e.ctx),o=e.createRawDateString(t,n),a=new Date(Date.parse(o));if(void 0===i.config.xaxis.labels.format){var s="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(s=l.year),"month"===t.unit&&(s=l.month),"day"===t.unit&&(s=l.day),"hour"===t.unit&&(s=l.hour),"minute"===t.unit&&(s=l.minute),n=r.formatDate(a,s,!0,!1)}else n=r.formatDate(a,i.config.xaxis.labels.format);return{dateString:o,position:t.position,value:n,unit:t.unit,year:t.year,month:t.month}}))}},{key:"removeOverlappingTS",value:function(t){var e=this,i=new g(this.ctx),n=0,r=t.map((function(r,o){if(o>0&&e.w.config.xaxis.labels.hideOverlappingLabels){var a=i.getTextRects(t[n].value).width,s=t[n].position;return r.position>s+a+10?(n=o,r):null}return r}));return r.filter((function(t){return null!==t}))}}]),t}(),$=function(){function t(i,n){e(this,t),this.ctx=n,this.w=n.w,this.el=i,this.coreUtils=new w(this.ctx),this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[]}return n(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","candlestick","radar","scatter","bubble","heatmap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","candlestick","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.cuid,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),g.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.chart.background,this.setSVGDimensions(),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,n=i.config,r=i.globals,o={series:[],i:[]},a={series:[],i:[]},s={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]};r.series.map((function(e,n){void 0!==t[n].type?("column"===t[n].type||"bar"===t[n].type?(i.config.plotOptions.bar.horizontal=!1,c.series.push(e),c.i.push(n),i.globals.columnSeries=c.series):"area"===t[n].type?(a.series.push(e),a.i.push(n)):"line"===t[n].type?(o.series.push(e),o.i.push(n)):"scatter"===t[n].type?(s.series.push(e),s.i.push(n)):"bubble"===t[n].type?(l.series.push(e),l.i.push(n)):"candlestick"===t[n].type?(h.series.push(e),h.i.push(n)):console.warn("You have specified an unrecognized chart type. Available types for this propery are line/area/column/bar/scatter/bubble"),r.comboCharts=!0):(o.series.push(e),o.i.push(n))}));var u=new X(this.ctx,e),d=new E(this.ctx,e),p=new L(this.ctx),f=new N(this.ctx),g=new F(this.ctx,e),m=new j(this.ctx),y=[];if(r.comboCharts){if(a.series.length>0&&y.push(u.draw(a.series,"area",a.i)),c.series.length>0)if(i.config.chart.stacked){var v=new M(this.ctx,e);y.push(v.draw(c.series,c.i))}else{var b=new O(this.ctx,e);y.push(b.draw(c.series,c.i))}if(o.series.length>0&&y.push(u.draw(o.series,"line",o.i)),h.series.length>0&&y.push(d.draw(h.series,h.i)),s.series.length>0){var x=new X(this.ctx,e,!0);y.push(x.draw(s.series,"scatter",s.i))}if(l.series.length>0){var w=new X(this.ctx,e,!0);y.push(w.draw(l.series,"bubble",l.i))}}else switch(n.chart.type){case"line":y=u.draw(r.series,"line");break;case"area":y=u.draw(r.series,"area");break;case"bar":y=n.chart.stacked?new M(this.ctx,e).draw(r.series):new O(this.ctx,e).draw(r.series);break;case"candlestick":y=new E(this.ctx,e).draw(r.series);break;case"rangeBar":y=g.draw(r.series);break;case"heatmap":y=new D(this.ctx,e).draw(r.series);break;case"pie":case"donut":y=p.draw(r.series);break;case"radialBar":y=f.draw(r.series);break;case"radar":y=m.draw(r.series);break;default:y=u.draw(r.series)}return y}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=d.getDimensions(this.el),n=e.chart.width.toString().split(/[0-9]+/g).pop();if("%"===n?d.isNumber(i[0])&&(0===i[0].width&&(i=d.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width)/100):"px"!==n&&""!==n||(t.svgWidth=parseInt(e.chart.width)),"auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===e.chart.height.toString().split(/[0-9]+/g).pop()){var r=d.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height)/100}else t.svgHeight=parseInt(e.chart.height);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth;t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),g.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight});var o=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+o+"px",t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};g.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0;"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(i=new W(this.ctx).getLegendBBox().clwh+10);var n=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar .apexcharts-tracks"),r=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar .apexcharts-datalabels-group"),o=2*t.globals.radialSize;if(n){var a=d.getBoundingClientRect(n);if(o=a.bottom,r){var s=d.getBoundingClientRect(r),l=Math.max(a.bottom,s.bottom)-a.top+s.height;o=Math.max(2*t.globals.radialSize,l)}}var c=o+e.translateY+i+20;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",c),e.dom.elWrap.style.height=c+"px",g.setAttrs(e.dom.Paper.node,{height:c}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=c+"px"}},{key:"coreCalculations",value:function(){new U(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this.w.globals;t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRangeBarTimeline=[],t.seriesPercent=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.stackedSeriesTotals=[],t.labels=[],t.timelineLabels=[],t.noLabelsProvided=!1,t.timescaleTicks=[],t.resizeTimer=null,t.selectionResizeTimer=null,t.seriesXvalues=this.w.config.series.map((function(t){return[]})),t.seriesYvalues=this.w.config.series.map((function(t){return[]})),t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.isDataXYZ=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialmaxX=-Number.MAX_VALUE,t.initialminX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map((function(e,i){if(t.w.globals.isMultipleYAxis)return e.index}))}},{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new H(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new H(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,n=this.w.globals,r=0;r<t[e].data.length;r++)if(void 0!==t[e].data[r][1]&&(Array.isArray(t[e].data[r][1])&&4===t[e].data[r][1].length?this.twoDSeries.push(d.parseNumber(t[e].data[r][1][3])):5===t[e].data[r].length?this.twoDSeries.push(d.parseNumber(t[e].data[r][4])):this.twoDSeries.push(d.parseNumber(t[e].data[r][1])),n.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var o=new Date(t[e].data[r][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(t[e].data[r][0]);for(var a=0;a<t[e].data.length;a++)void 0!==t[e].data[a][2]&&(this.threeDSeries.push(t[e].data[a][2]),n.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,n=this.w.globals,r=new b(this.ctx),o=e;n.collapsedSeriesIndices.indexOf(e)>-1&&(o=this.activeSeriesIndex);for(var a=0;a<t[e].data.length;a++)void 0!==t[e].data[a].y&&(Array.isArray(t[e].data[a].y)?this.twoDSeries.push(d.parseNumber(t[e].data[a].y[t[e].data[a].y.length-1])):this.twoDSeries.push(d.parseNumber(t[e].data[a].y)));for(var s=0;s<t[o].data.length;s++){var l="string"==typeof t[o].data[s].x,c=!!r.isValidDate(t[o].data[s].x.toString());l||c?l?"datetime"!==i.xaxis.type||n.isRangeData?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[s].x)):this.twoDSeriesX.push(r.parseDate(t[o].data[s].x)):"datetime"===i.xaxis.type?this.twoDSeriesX.push(r.parseDate(t[o].data[s].x.toString())):(n.dataFormatXNumeric=!0,n.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[o].data[s].x))):(n.isXNumeric=!0,n.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[o].data[s].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var h=0;h<t[e].data.length;h++)this.threeDSeries.push(t[e].data[h].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.config,n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",t,e)),n.seriesRangeStart.push(r.start),n.seriesRangeEnd.push(r.end),"datetime"===i.xaxis.type&&n.seriesRangeBarTimeline.push(r.rangeUniques),r}},{key:"handleCandleStickData",value:function(t,e){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickDataFormat("array",t,e):this.isFormatXY()&&(n=this.handleCandleStickDataFormat("xy",t,e)),i.seriesCandleO[e]=n.o,i.seriesCandleH[e]=n.h,i.seriesCandleL[e]=n.l,i.seriesCandleC[e]=n.c,n}},{key:"handleRangeDataFormat",value:function(t,e,i){this.w;var n=[],r=[],o=e[i].data.filter((function(t,e,i){return e===i.findIndex((function(e){return e.x===t.x}))})).map((function(t,e){return{x:t.x,index:e,y:[]}})),a="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",s=new H(this.ctx).getActiveConfigSeriesIndex();if("array"===t){if(2!==e[s].data[0][1].length)throw new Error(a);for(var l=0;l<e[i].data.length;l++)n.push(e[i].data[l][1][0]),r.push(e[i].data[l][1][1])}else if("xy"===t){if(2!==e[s].data[0].y.length)throw new Error(a);for(var c=function(t){var a=e[i].data[t].x,s={y1:e[i].data[t].y[0],y2:e[i].data[t].y[1]},l=o.findIndex((function(t){return t.x===a}));o[l].y.push(s),n.push(s.y1),r.push(s.y2)},h=0;h<e[i].data.length;h++)c(h)}return{start:n,end:r,rangeUniques:o}}},{key:"handleCandleStickDataFormat",value:function(t,e,i){var n=[],r=[],o=[],a=[],s="Please provide [Open, High, Low and Close] values in valid format. Read more https://apexcharts.com/docs/series/#candlestick";if("array"===t){if(!Array.isArray(e[i].data[0][1])&&5!==e[i].data[0].length||Array.isArray(e[i].data[0][1])&&4!==e[i].data[0][1].length)throw new Error(s);if(5===e[i].data[0].length)for(var l=0;l<e[i].data.length;l++)n.push(e[i].data[l][1]),r.push(e[i].data[l][2]),o.push(e[i].data[l][3]),a.push(e[i].data[l][4]);else for(var c=0;c<e[i].data.length;c++)n.push(e[i].data[c][1][0]),r.push(e[i].data[c][1][1]),o.push(e[i].data[c][1][2]),a.push(e[i].data[c][1][3])}else if("xy"===t){if(4!==e[i].data[0].y.length)throw new Error(s);for(var h=0;h<e[i].data.length;h++)n.push(e[i].data[h].y[0]),r.push(e[i].data[h].y[1]),o.push(e[i].data[h].y[2]),a.push(e[i].data[h].y[3])}return{o:n,h:r,l:o,c:a}}},{key:"parseDataAxisCharts",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,i=this.w.config,n=this.w.globals,r=new b(e),o=0;o<t.length;o++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[o].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==i.chart.type&&"rangeArea"!==i.chart.type&&"rangeBar"!==t[o].type&&"rangeArea"!==t[o].type||(n.isRangeData=!0,this.handleRangeData(t,o)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,o):this.isFormatXY()&&this.handleFormatXY(t,o),"candlestick"!==i.chart.type&&"candlestick"!==t[o].type||this.handleCandleStickData(t,o),n.series.push(this.twoDSeries),n.labels.push(this.twoDSeriesX),n.seriesX.push(this.twoDSeriesX),this.fallbackToCategory||(n.isXNumeric=!0);else{if("datetime"===i.xaxis.type){n.isXNumeric=!0;for(var a=i.labels.length>0?i.labels.slice():i.xaxis.categories.slice(),s=0;s<a.length;s++)if("string"==typeof a[s]){if(!r.isValidDate(a[s]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");this.twoDSeriesX.push(r.parseDate(a[s]))}else{if(13!==String(a[s]).length)throw new Error("Please provide a valid JavaScript timestamp");this.twoDSeriesX.push(a[s])}n.seriesX.push(this.twoDSeriesX)}else if("numeric"===i.xaxis.type){n.isXNumeric=!0;var l=i.labels.length>0?i.labels.slice():i.xaxis.categories.slice();l.length>0&&(this.twoDSeriesX=l,n.seriesX.push(this.twoDSeriesX))}n.labels.push(this.twoDSeriesX);var c=t[o].data.map((function(t){return d.parseNumber(t)}));n.series.push(c)}n.seriesZ.push(this.threeDSeries),void 0!==t[o].name?n.seriesNames.push(t[o].name):n.seriesNames.push("series-"+parseInt(o+1))}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var n=0;n<e.series.length;n++)void 0===e.seriesNames[n]&&e.seriesNames.push("series-"+(n+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;if(e.xaxis.categories.length>0)i.labels=e.xaxis.categories;else if(e.labels.length>0)i.labels=e.labels.slice();else if(this.fallbackToCategory)i.labels=i.labels[0],i.seriesRangeBarTimeline.length&&(i.seriesRangeBarTimeline.map((function(t){t.forEach((function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)}))})),i.labels=i.labels.filter((function(t,e,i){return i.indexOf(t)==e})));else{var n=[];if(i.axisCharts){if(i.series.length>0)for(var r=0;r<i.series[i.maxValsInArrayIndex].length;r++)n.push(r+1);for(var o=0;o<t.length;o++)i.seriesX.push(n);i.isXNumeric=!0}if(0===n.length){n=[0,10];for(var a=0;a<t.length;a++)i.seriesX.push(n)}i.labels=n,i.noLabelsProvided=!0}}},{key:"parseData",value:function(t){var e=this.w,i=e.config,n=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),n.axisCharts?this.parseDataAxisCharts(t):this.parseDataNonAxisCharts(t),this.coreUtils.getLargestSeries(),"bar"===i.chart.type&&i.chart.stacked){var r=new H(this.ctx);n.series=r.setNullSeriesToZeroValues(n.series)}this.coreUtils.getSeriesTotals(),n.axisCharts&&this.coreUtils.getStackedSeriesTotals(),this.coreUtils.getPercentSeries(),n.dataFormatXNumeric||n.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t)}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts&&("back"===e.config.xaxis.crosshairs.position&&new I(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new I(this.ctx).drawYCrosshairs(),t=this.coreUtils.getCalculatedRatios(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter)){var i,n=new q(this.ctx);isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?(i=n.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX),n.recalcDimensionsBasedOnFormat(i,!1)):e.globals.isBarHorizontal&&(i=n.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY),n.recalcDimensionsBasedOnFormat(i,!0))}return t}},{key:"drawAxis",value:function(t,e){var i,n,r=this.w.globals,o=this.w.config,a=new Y(this.ctx),s=new z(this.ctx);r.axisCharts&&"radar"!==t&&(r.isBarHorizontal?(n=s.drawYaxisInversed(0),i=a.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(n)):(i=a.drawXaxis(),r.dom.elGraphical.add(i),o.yaxis.map((function(t,e){-1===r.ignoreYAxisIndexes.indexOf(e)&&(n=s.drawYaxis(e),r.dom.Paper.add(n))})))),o.yaxis.map((function(t,e){-1===r.ignoreYAxisIndexes.indexOf(e)&&s.yAxisTitleRotate(e,t.opposite)}))}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=e.config.chart.brush.targets||[e.config.chart.brush.target];i.forEach((function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx;var n=function(){t.ctx._updateOptions({chart:{selection:{xaxis:{min:i.w.globals.minX,max:i.w.globals.maxX}}}},!1,!1)};"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){n()}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){n()})})),e.config.chart.events.selection=function(t,n){i.forEach((function(t){var i=ApexCharts.getChartByID(t),r=d.clone(e.config.yaxis);e.config.chart.brush.autoScaleYaxis&&(r=new G(i).autoScaleY(i,r,n)),i._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max},yaxis:r},!1,!1,!1,!1)}))}}}}]),t}(),K=setTimeout;function Z(){}function J(t){if(!(this instanceof J))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],rt(t,this)}function Q(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,J._immediateFn((function(){var i=1===t._state?e.onFulfilled:e.onRejected;if(null!==i){var n;try{n=i(t._value)}catch(t){return void et(e.promise,t)}tt(e.promise,n)}else(1===t._state?tt:et)(e.promise,t._value)}))):t._deferreds.push(e)}function tt(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if(e instanceof J)return t._state=3,t._value=e,void it(t);if("function"==typeof i)return void rt((n=i,r=e,function(){n.apply(r,arguments)}),t)}t._state=1,t._value=e,it(t)}catch(e){et(t,e)}var n,r}function et(t,e){t._state=2,t._value=e,it(t)}function it(t){2===t._state&&0===t._deferreds.length&&J._immediateFn((function(){t._handled||J._unhandledRejectionFn(t._value)}));for(var e=0,i=t._deferreds.length;e<i;e++)Q(t,t._deferreds[e]);t._deferreds=null}function nt(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function rt(t,e){var i=!1;try{t((function(t){i||(i=!0,tt(e,t))}),(function(t){i||(i=!0,et(e,t))}))}catch(t){if(i)return;i=!0,et(e,t)}}J.prototype.catch=function(t){return this.then(null,t)},J.prototype.then=function(t,e){var i=new this.constructor(Z);return Q(this,new nt(t,e,i)),i},J.prototype.finally=function(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){return e.reject(i)}))}))},J.all=function(t){return new J((function(e,i){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var r=n.length;function o(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){o(t,e)}),i)}n[t]=a,0==--r&&e(n)}catch(t){i(t)}}for(var a=0;a<n.length;a++)o(a,n[a])}))},J.resolve=function(t){return t&&"object"==typeof t&&t.constructor===J?t:new J((function(e){e(t)}))},J.reject=function(t){return new J((function(e,i){i(t)}))},J.race=function(t){return new J((function(e,i){for(var n=0,r=t.length;n<r;n++)t[n].then(e,i)}))},J._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){K(t,0)},J._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var ot,at,st=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getSvgString",value:function(){return this.w.globals.dom.Paper.svg()}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs");e&&e.setAttribute("x",-500),i&&(i.setAttribute("y1",-100),i.setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(){var t=this;return new J((function(e){var i=t.w;t.cleanup();var n=document.createElement("canvas");n.width=i.globals.svgWidth,n.height=parseInt(i.globals.dom.elWrap.style.height);var r="transparent"===i.config.chart.background?"#fff":i.config.chart.background,o=n.getContext("2d");o.fillStyle=r,o.fillRect(0,0,n.width,n.height);var a=window.URL||window.webkitURL||window,s=new Image;s.crossOrigin="anonymous";var l=t.getSvgString(),c="data:image/svg+xml,"+encodeURIComponent(l);s.onload=function(){o.drawImage(s,0,0),a.revokeObjectURL(c);var t=n.toDataURL("image/png");e(t)},s.src=c}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){t.triggerDownload(e,".png")}))}},{key:"triggerDownload",value:function(t,e){var i=document.createElement("a");i.href=t,i.download=this.w.globals.chartID+e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}]),t}(),lt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.anim=new f(this.ctx),this.xaxisLabels=n.globals.labels.slice(),this.animX=n.config.grid.xaxis.lines.animate&&n.config.chart.animations.enabled,this.animY=n.config.grid.yaxis.lines.animate&&n.config.chart.animations.enabled,this.isTimelineBar="datetime"===n.config.xaxis.type&&n.globals.seriesRangeBarTimeline.length,n.globals.timelineLabels.length>0&&(this.xaxisLabels=n.globals.timelineLabels.slice()),n.globals.invertedTimelineLabels.length>0&&(this.xaxisLabels=n.globals.invertedTimelineLabels.slice())}return n(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new g(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var n=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),r=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(r),t.add(n),t}},{key:"drawGrid",value:function(){var t=this.w,e=new Y(this.ctx),i=new z(this.ctx),n=this.w.globals,r=null;if(n.axisCharts){if(t.config.grid.show)r=this.renderGrid(),n.dom.elGraphical.add(r.el),this.drawGridArea(r.el);else{var o=this.drawGridArea();n.dom.elGraphical.add(o)}null!==r&&e.xAxisLabelCorrections(r.xAxisTickWidth),i.setYAxisTextAlignments()}}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new g(this.ctx),n=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var r=0;t.config.stroke.width.forEach((function(t){r=Math.max(r,t)})),n=r}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elGridRect=i.drawRect(-n/2,-n/2,e.gridWidth+n,e.gridHeight+n,0,"#fff"),new w(this).getLargestMarkerSize();var o=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(-o,-o,e.gridWidth+2*o,e.gridHeight+2*o,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var a=e.dom.baseEl.querySelector("defs");a.appendChild(e.dom.elGridRectMask),a.appendChild(e.dom.elGridRectMarkerMask)}},{key:"renderGrid",value:function(){var t=this.w,e=new g(this.ctx),i=t.config.grid.strokeDashArray,n=e.group({class:"apexcharts-grid"}),r=e.group({class:"apexcharts-gridlines-horizontal"}),o=e.group({class:"apexcharts-gridlines-vertical"});n.add(r),n.add(o);for(var a,s=8,l=0;l<t.globals.series.length&&(void 0!==t.globals.yAxisScale[l]&&(s=t.globals.yAxisScale[l].result.length-1),!(s>2));l++);if(!t.globals.isBarHorizontal||this.isTimelineBar){if(a=this.xaxisLabels.length,t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show){var c,h=t.globals.padHorizontal,u=t.globals.gridHeight;if(t.globals.timelineLabels.length||t.globals.invertedTimelineLabels.length)for(var d=0;d<a;d++){if(h=this.xaxisLabels[d].position,c=this.xaxisLabels[d].position,t.config.grid.xaxis.lines.show&&h>0&&h<t.globals.gridWidth){var p=e.drawLine(h,0,c,u,t.config.grid.borderColor,i);p.node.classList.add("apexcharts-gridline"),o.add(p),this.animX&&this.animateLine(p,{x1:0,x2:0},{x1:h,x2:c})}var f=new Y(this.ctx);d===a-1&&t.globals.skipLastTimelinelabel||f.drawXaxisTicks(h,n)}else for(var m=a,y=0;y<m;y++){var v=m;if(t.globals.isXNumeric&&(v-=1),c=h+=t.globals.gridWidth/v,y===v-1)break;if(t.config.grid.xaxis.lines.show){var b=e.drawLine(h,0,c,u,t.config.grid.borderColor,i);b.node.classList.add("apexcharts-gridline"),o.add(b),this.animX&&this.animateLine(b,{x1:0,x2:0},{x1:h,x2:c})}new Y(this.ctx).drawXaxisTicks(h,n)}}if(t.config.grid.yaxis.lines.show){var x=0,w=0,_=t.globals.gridWidth,S=s+1;this.isTimelineBar&&(S=t.globals.labels.length);for(var P=0;P<S;P++){var k=e.drawLine(0,x,_,w,t.config.grid.borderColor,i);r.add(k),k.node.classList.add("apexcharts-gridline"),this.animY&&this.animateLine(k,{y1:x+20,y2:w+20},{y1:x,y2:w}),w=x+=t.globals.gridHeight/(this.isTimelineBar?S:s)}}}else{if(a=s,t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show)for(var C,T=t.globals.padHorizontal,A=t.globals.gridHeight,O=0;O<a+1&&(C=T=T+t.globals.gridWidth/a+.3,O!==a-1);O++){if(t.config.grid.xaxis.lines.show){var M=e.drawLine(T,0,C,A,t.config.grid.borderColor,i);M.node.classList.add("apexcharts-gridline"),o.add(M),this.animX&&this.animateLine(M,{x1:0,x2:0},{x1:T,x2:C})}new Y(this.ctx).drawXaxisTicks(T,n)}if(t.config.grid.yaxis.lines.show)for(var E=0,I=0,D=t.globals.gridWidth,L=0;L<t.globals.dataPoints+1;L++){var j=e.drawLine(0,E,D,I,t.config.grid.borderColor,i);r.add(j),j.node.classList.add("apexcharts-gridline"),this.animY&&this.animateLine(j,{y1:E+20,y2:I+20},{y1:E,y2:I}),I=E+=t.globals.gridHeight/t.globals.dataPoints}}return this.isTimelineBar&&(s=t.globals.labels.length),this.drawGridBands(n,a,s),{el:n,xAxisTickWidth:t.globals.gridWidth/a}}},{key:"drawGridBands",value:function(t,e,i){var n=this.w,r=new g(this.ctx);if(void 0!==n.config.grid.row.colors&&n.config.grid.row.colors.length>0)for(var o=0,a=n.globals.gridHeight/i,s=n.globals.gridWidth,l=0,c=0;l<i;l++,c++){c>=n.config.grid.row.colors.length&&(c=0);var h=n.config.grid.row.colors[c],u=r.drawRect(0,o,s,a,0,h,n.config.grid.row.opacity);t.add(u),u.node.classList.add("apexcharts-gridRow"),o+=n.globals.gridHeight/i}if(void 0!==n.config.grid.column.colors&&n.config.grid.column.colors.length>0)for(var d=n.globals.padHorizontal,p=n.globals.padHorizontal+n.globals.gridWidth/e,f=n.globals.gridHeight,m=0,y=0;m<e;m++,y++){y>=n.config.grid.column.colors.length&&(y=0);var v=n.config.grid.column.colors[y],b=r.drawRect(d,0,p,f,0,v,n.config.grid.column.opacity);b.node.classList.add("apexcharts-gridColumn"),t.add(b),d+=n.globals.gridWidth/e}}},{key:"animateLine",value:function(t,e,i){var n=this.w,r=n.config.chart.animations;if(r&&!n.globals.resized&&!n.globals.dataChanged){var o=r.speed;this.anim.animateLine(t,e,i,o)}}}]),t}(),ct=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,n=i.config;if(0!==n.responsive.length){var r=n.responsive.slice();r.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var o=new _({}),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r[0].breakpoint,a=window.innerWidth>0?window.innerWidth:screen.width;if(a>n){var s=w.extendArrayProps(o,i.globals.initialConfig);t=d.extend(s,t),t=d.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<r.length;l++)a<r[l].breakpoint&&(t=w.extendArrayProps(o,r[l].options),t=d.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var s=w.extendArrayProps(o,t);s=d.extend(i.config,s),a(s=d.extend(s,t))}else a({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new _(t).init();this.w.config=e}}]),t}(),ht=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.colors=[]}return n(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this.w,e=new d;if(t.globals.dom.elWrap.classList.add(t.config.theme.mode),void 0===t.config.colors?t.globals.colors=this.predefined():(t.globals.colors=t.config.colors,t.globals.axisCharts&&"bar"!==t.config.chart.type&&Array.isArray(t.config.colors)&&t.config.colors.length>0&&t.config.colors.length===t.config.series.length&&(t.globals.colors=t.config.colors.map((function(e,i){return"function"==typeof e?e({value:t.globals.axisCharts?t.globals.series[i][0]?t.globals.series[i][0]:0:t.globals.series[i],seriesIndex:i,w:t}):e})))),t.config.theme.monochrome.enabled){var i=[],n=t.globals.series.length;t.config.plotOptions.bar.distributed&&"bar"===t.config.chart.type&&(n=t.globals.series[0].length*t.globals.series.length);for(var r=t.config.theme.monochrome.color,o=1/(n/t.config.theme.monochrome.shadeIntensity),a=t.config.theme.monochrome.shadeTo,s=0,l=0;l<n;l++){var c=void 0;"dark"===a?(c=e.shadeColor(-1*s,r),s+=o):(c=e.shadeColor(s,r),s+=o),i.push(c)}t.globals.colors=i.slice()}var h=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),void 0===t.config.stroke.colors?t.globals.stroke.colors=h:t.globals.stroke.colors=t.config.stroke.colors,this.pushExtraColors(t.globals.stroke.colors),void 0===t.config.fill.colors?t.globals.fill.colors=h:t.globals.fill.colors=t.config.fill.colors,this.pushExtraColors(t.globals.fill.colors),void 0===t.config.dataLabels.style.colors?t.globals.dataLabels.style.colors=h:t.globals.dataLabels.style.colors=t.config.dataLabels.style.colors,this.pushExtraColors(t.globals.dataLabels.style.colors,50),void 0===t.config.plotOptions.radar.polygons.fill.colors?t.globals.radarPolygons.fill.colors=["dark"===t.config.theme.mode?"#202D48":"#fff"]:t.globals.radarPolygons.fill.colors=t.config.plotOptions.radar.polygons.fill.colors,this.pushExtraColors(t.globals.radarPolygons.fill.colors,20),void 0===t.config.markers.colors?t.globals.markers.colors=h:t.globals.markers.colors=t.config.markers.colors,this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=e||n.globals.series.length;if(null===i&&(i="bar"===n.config.chart.type&&n.config.plotOptions.bar.distributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.colorScale.inverse),i&&(r=n.globals.series[0].length*n.globals.series.length),t.length<r)for(var o=r-t.length,a=0;a<o;a++)t.push(t[a])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:"dark"===e?"palette4":"palette1",n=t.chart.foreColor?t.chart.foreColor:"dark"===e?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=n,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"];break;default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]}return this.colors}}]),t}(),ut=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i,this.ctx=i.ctx}return n(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,n=t.clientX,r=t.clientY,o=t.hasBars,a=this.w,s=a.globals.gridWidth,l=s/(a.globals.dataPoints-1),c=i.getBoundingClientRect();(o&&a.globals.comboCharts||o)&&(l=s/a.globals.dataPoints);var h=n-c.left,u=r-c.top;h<0||u<0||h>a.globals.gridWidth||u>a.globals.gridHeight?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):a.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):a.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var d=Math.round(h/l);o&&(d=Math.ceil(h/l),d-=1);for(var p,f=null,g=null,m=[],y=0;y<a.globals.seriesXvalues.length;y++)m.push([a.globals.seriesXvalues[y][0]-1e-6].concat(a.globals.seriesXvalues[y]));return m=m.map((function(t){return t.filter((function(t){return t}))})),p=a.globals.seriesYvalues.map((function(t){return t.filter((function(t){return t}))})),a.globals.isXNumeric&&(f=(g=this.closestInMultiArray(h,u,m,p)).index,d=g.j,null!==f&&(m=a.globals.seriesXvalues[f],d=(g=this.closestInArray(h,m)).index)),a.globals.capturedSeriesIndex=null===f?-1:f,a.globals.capturedDataPointIndex=null===d?-1:d,(!d||d<1)&&(d=0),{capturedSeries:f,j:d,hoverX:h,hoverY:u}}},{key:"closestInMultiArray",value:function(t,e,i,n){var r=this.w,o=0,a=null,s=-1;r.globals.series.length>1?o=this.getFirstActiveXArray(i):a=0;var l=n[o][0],c=i[o][0],h=Math.abs(t-c),u=Math.abs(e-l),d=u+h;return n.map((function(r,o){r.map((function(r,l){var c=Math.abs(e-n[o][l]),p=Math.abs(t-i[o][l]),f=p+c;f<d&&(d=f,h=p,u=c,a=o,s=l)}))})),{index:a,j:s}}},{key:"getFirstActiveXArray",value:function(t){for(var e=0,i=new w(this.ctx),n=t.map((function(t,e){return t.length>0?e:-1})),r=0;r<n.length;r++){var o=i.getSeriesTotalByIndex(r);if(-1!==n[r]&&0!==o&&!i.seriesHaveSameValues(r)){e=n[r];break}}return e}},{key:"closestInArray",value:function(t,e){for(var i=e[0],n=null,r=Math.abs(t-i),o=0;o<e.length;o++){var a=Math.abs(t-e[o]);a<r&&(r=a,n=o)}return{index:n}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter((function(t){return void 0!==t[0]}));if(i.length>0)for(var n=0;n<i.length-1;n++)void 0!==i[n][t]&&void 0!==i[n+1][t]&&i[n][t]!==i[n+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return u(t).reduce((function(t,e){return t+e.getBBox().height}),0)}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=i.allTooltipSeriesGroups,r=0;r<n.length;r++)"enable"===t?(n[r].classList.add("active"),n[r].style.display=e.config.tooltip.items.display):(n[r].classList.remove("active"),n[r].style.display="none")}}]),t}(),dt=function(){function t(i){e(this,t),this.w=i.w,this.ctx=i.ctx,this.ttCtx=i,this.tooltipUtil=new ut(i)}return n(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,n=t.ttItems,r=t.i,o=void 0===r?0:r,a=t.j,s=void 0===a?null:a,l=t.y1,c=t.y2,h=this.w;void 0!==h.config.tooltip.custom?Array.isArray(h.config.tooltip.custom)?this.handleCustomTooltip({i:o,j:s,y1:l,y2:c,isArray:!0}):this.handleCustomTooltip({i:o,j:s,y1:l,y2:c,isArray:!1}):this.toggleActiveInactiveSeries(i);var u=this.getValuesToPrint({i:o,j:s});this.printLabels({i:o,j:s,values:u,ttItems:n,shared:i});var d=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=d.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=d.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=t.i,n=t.j,r=t.values,o=t.ttItems,a=t.shared,s=this.w,l=r.xVal,c=r.zVal,h=r.xAxisTTVal,u="",d=s.globals.colors[i];null!==n&&s.config.plotOptions.bar.distributed&&(d=s.globals.colors[n]);for(var p=0,f=s.globals.series.length-1;p<s.globals.series.length;p++,f--){var g=this.getFormatters(i);if(u=this.getSeriesName({fn:g.yLbTitleFormatter,index:i,seriesIndex:i,j:n}),a){var m=s.config.tooltip.inverseOrder?f:p;g=this.getFormatters(m),u=this.getSeriesName({fn:g.yLbTitleFormatter,index:m,seriesIndex:i,j:n}),d=s.globals.colors[m],e=g.yLbFormatter(s.globals.series[m][n],{series:s.globals.series,seriesIndex:m,dataPointIndex:n,w:s}),(this.ttCtx.hasBars()&&s.config.chart.stacked&&0===s.globals.series[m][n]||void 0===s.globals.series[m][n])&&(e=void 0)}else e=g.yLbFormatter(s.globals.series[i][n],{series:s.globals.series,seriesIndex:i,dataPointIndex:n,w:s});null===n&&(e=g.yLbFormatter(s.globals.series[i],s)),this.DOMHandling({i:i,t:p,ttItems:o,values:{val:e,xVal:l,xAxisTTVal:h,zVal:c},seriesName:u,shared:a,pColor:d})}}},{key:"getFormatters",value:function(t){var e,i=this.w,n=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(n=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(n=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,"function"!=typeof n&&(n=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(t){return t}),"function"!=typeof e&&(e=function(t){return t}),{yLbFormatter:n,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,n=t.seriesIndex,r=t.j,o=this.w;return e(String(o.globals.seriesNames[i]),{series:o.globals.series,seriesIndex:n,dataPointIndex:r,w:o})}},{key:"DOMHandling",value:function(t){var e=t.i,i=t.t,n=t.ttItems,r=t.values,o=t.seriesName,a=t.shared,s=t.pColor,l=this.w,c=this.ttCtx,h=r.val,u=r.xVal,d=r.xAxisTTVal,p=r.zVal,f=null;f=n[i].children,l.config.tooltip.fillSeriesColor&&(n[i].style.backgroundColor=s,f[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.blxaxisTooltip&&(c.xaxisTooltipText.innerHTML=""!==d?d:u);var g=n[i].querySelector(".apexcharts-tooltip-text-label");g&&(g.innerHTML=o?o+": ":"");var m=n[i].querySelector(".apexcharts-tooltip-text-value");m&&(m.innerHTML=h),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(s=l.config.tooltip.marker.fillColors[e]),f[0].style.backgroundColor=s),l.config.tooltip.marker.show||(f[0].style.display="none"),null!==p&&(n[i].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,n[i].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),a&&f[0]&&(null==h||l.globals.collapsedSeriesIndices.indexOf(i)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,n=this.w,r=this.ctx.series.filteredSeriesX(),o="",a=null,s=null,l={series:n.globals.series,seriesIndex:e,dataPointIndex:i,w:n},c=n.globals.ttZFormatter;null===i?s=n.globals.series[e]:n.globals.isXNumeric?(o=r[e][i],0===r[e].length&&(o=r[this.tooltipUtil.getFirstActiveXArray(r)][i])):o=void 0!==n.globals.labels[i]?n.globals.labels[i]:"";var h=o;return n.globals.isXNumeric&&"datetime"===n.config.xaxis.type?o=new R(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,h,h):n.globals.isBarHorizontal||(o=n.globals.xLabelFormatter(h,l)),void 0!==n.config.tooltip.x.formatter&&(o=n.globals.ttKeyFormatter(h,l)),n.globals.seriesZ.length>0&&n.globals.seriesZ[0].length>0&&(a=c(n.globals.seriesZ[e][i],n)),{val:s,xVal:o,xAxisTTVal:"function"==typeof n.config.xaxis.tooltip.formatter?n.globals.xaxisTooltipFormatter(h,l):o,zVal:a}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,n=t.y1,r=t.y2,o=t.isArray,a=this.w,s=this.ttCtx.getElTooltip(),l=a.config.tooltip.custom;o&&l[e]&&(l=a.config.tooltip.custom[e]),s.innerHTML=l({ctx:this.ctx,series:a.globals.series,seriesIndex:e,dataPointIndex:i,y1:n,y2:r,w:a})}}]),t}(),pt=function(){function t(i){e(this,t),this.ttCtx=i,this.ctx=i.ctx,this.w=i.w}return n(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,n=this.w,r=i.getElXCrosshairs(),o=t-i.xcrosshairsWidth/2,a=n.globals.labels.slice().length;if(null!==e&&(o=n.globals.gridWidth/a*e),"tickWidth"===n.config.xaxis.crosshairs.width||"barWidth"===n.config.xaxis.crosshairs.width?o+i.xcrosshairsWidth>n.globals.gridWidth&&(o=n.globals.gridWidth-i.xcrosshairsWidth):null!==e&&(o+=n.globals.gridWidth/a/2),o<0&&(o=0),o>n.globals.gridWidth&&(o=n.globals.gridWidth),null!==r&&(r.setAttribute("x",o),r.setAttribute("x1",o),r.setAttribute("x2",o),r.setAttribute("y2",n.globals.gridHeight),r.classList.add("active")),i.blxaxisTooltip){var s=o;"tickWidth"!==n.config.xaxis.crosshairs.width&&"barWidth"!==n.config.xaxis.crosshairs.width||(s=o+i.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&(g.setAttrs(e.ycrosshairs,{y1:t,y2:t}),g.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t}))}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip){i.xaxisTooltip.classList.add("active");var n,r=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t))t+=e.globals.translateX,n=new g(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=n.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=r+"px"}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var n=parseInt(i.ycrosshairsHidden.getAttribute("y1")),r=e.globals.translateY+n,o=i.yaxisTTEls[t].getBoundingClientRect().height,a=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(a-=26),r-=o/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("active"),i.yaxisTTEls[t].style.top=r+"px",i.yaxisTTEls[t].style.left=a+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=this.ttCtx,o=r.getElTooltip(),a=r.tooltipRect,s=null!==i?parseFloat(i):1,l=parseFloat(t)+s+5,c=parseFloat(e)+s/2;if(l>n.globals.gridWidth/2&&(l=l-a.ttWidth-s-15),l>n.globals.gridWidth-a.ttWidth-10&&(l=n.globals.gridWidth-a.ttWidth),l<-20&&(l=-20),n.config.tooltip.followCursor){var h=r.getElGrid().getBoundingClientRect();c=r.e.clientY+n.globals.translateY-h.top-a.ttHeight/2}var u=this.positionChecks(a,l,c);l=u.x,c=u.y,isNaN(l)||(l+=n.globals.translateX,o.style.left=l+"px",o.style.top=c+"px")}},{key:"positionChecks",value:function(t,e,i){var n=this.w;return t.ttHeight+i>n.globals.gridHeight&&(i=n.globals.gridHeight-t.ttHeight+n.globals.translateY),i<0&&(i=0),{x:e,y:i}}},{key:"moveMarkers",value:function(t,e){var i=this.w,n=this.ttCtx;if(i.globals.markers.size[t]>0)for(var r=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),o=0;o<r.length;o++)parseInt(r[o].getAttribute("rel"))===e&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(e,r[o]));else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,n,r=this.w,o=this.ttCtx,a=r.globals.pointsArray,s=r.config.markers.hover.size;if(void 0===s&&(s=r.globals.markers.size[e]+r.config.markers.hover.sizeOffset),!r.config.series[e].type||"column"!==r.config.series[e].type&&"candlestick"!==r.config.series[e].type){i=a[e][t][0],n=a[e][t][1]?a[e][t][1]:0;var l=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));l&&(l.setAttribute("r",s),l.setAttribute("cx",i),l.setAttribute("cy",n)),this.moveXCrosshairs(i),o.fixedTooltip||this.moveTooltip(i,n,s)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,n=i.w,r=0,o=0,a=n.globals.pointsArray;e=new H(this.ctx).getActiveSeriesIndex();var s=n.config.markers.hover.size;void 0===s&&(s=n.globals.markers.size[e]+n.config.markers.hover.sizeOffset),a[e]&&(r=a[e][t][0],o=a[e][t][1]);var l=null,c=i.getAllMarkers();if(null!==(l=null!==c?c:n.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers circle")))for(var h=0;h<l.length;h++){var u=a[h];if(u&&u.length){var d=a[h][t][1];l[h].setAttribute("cx",r);var p=parseInt(l[h].parentNode.parentNode.parentNode.getAttribute("data:realIndex"));null!==d?(l[p]&&l[p].setAttribute("r",s),l[p]&&l[p].setAttribute("cy",d)):l[p]&&l[p].setAttribute("r",0)}}if(this.moveXCrosshairs(r),!i.fixedTooltip){var f=o||n.globals.gridHeight;this.moveTooltip(r,f,s)}}},{key:"moveStickyTooltipOverBars",value:function(t){var e,i=this.w,n=this.ttCtx,r=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,o=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1,a=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(o,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"']")),s=a?parseFloat(a.getAttribute("cx")):0,l=a?parseFloat(a.getAttribute("barWidth")):0;i.globals.isXNumeric?s-=r%2!=0?l/2:0:(s=n.xAxisTicksPositions[t-1]+n.dataPointsDividedWidth/2,isNaN(s)&&(s=n.xAxisTicksPositions[t]-n.dataPointsDividedWidth/2));var c=n.getElGrid().getBoundingClientRect();if(e=n.e.clientY-c.top-n.tooltipRect.ttHeight/2,this.moveXCrosshairs(s),!n.fixedTooltip){var h=e||i.globals.gridHeight;this.moveTooltip(s,h)}}}]),t}(),ft=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i,this.ctx=i.ctx,this.tooltipPosition=new pt(i)}return n(t,[{key:"drawDynamicPoints",value:function(){for(var t=this.w,e=new g(this.ctx),i=new C(this.ctx),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series"),r=0;r<n.length;r++){var o=parseInt(n[r].getAttribute("data:realIndex")),a=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(o,"'] .apexcharts-series-markers-wrap"));if(null!==a){var s=void 0,l="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(l+=" no-pointer-events");var c=i.getMarkerConfig(l,o);(s=e.drawMarker(0,0,c)).node.setAttribute("default-marker-size",0);var h=document.createElementNS(t.globals.SVGNS,"g");h.classList.add("apexcharts-series-markers"),h.appendChild(s.node),a.appendChild(h)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w;"bubble"!==r.config.chart.type&&this.newPointSize(t,e);var o=e.getAttribute("cx"),a=e.getAttribute("cy");if(null!==i&&null!==n&&(o=i,a=n),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if("radar"===r.config.chart.type){var s=this.ttCtx.getElGrid().getBoundingClientRect();o=this.ttCtx.e.clientX-s.left}this.tooltipPosition.moveTooltip(o,a,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this.ttCtx,n=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,a=0;a<r.length;a++){var s=r[a].getAttribute("rel"),l=r[a].getAttribute("index");if(void 0===o&&(o=e.globals.markers.size[l]+e.config.markers.hover.sizeOffset),n===parseInt(s)){this.newPointSize(n,r[a]);var c=r[a].getAttribute("cx"),h=r[a].getAttribute("cy");this.tooltipPosition.moveXCrosshairs(c),i.fixedTooltip||this.tooltipPosition.moveTooltip(c,h,o)}else this.oldPointSize(r[a])}}},{key:"newPointSize",value:function(t,e){var i=this.w,n=i.config.markers.hover.size,r=null;r=0===t?e.parentNode.firstChild:e.parentNode.lastChild;var o=parseInt(r.getAttribute("index"));void 0===n&&(n=i.globals.markers.size[o]+i.config.markers.hover.sizeOffset),r.setAttribute("r",n)}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));d.isNumber(i)?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),gt=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i}return n(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTooltip",value:function(t){var e=t.e,i=t.opt,n=t.x,r=t.y,o=this.ttCtx,a=this.w;if(e.target.classList.contains("apexcharts-heatmap-rect")){var s=this.getAttr(e,"i"),l=this.getAttr(e,"j"),c=this.getAttr(e,"cx"),h=this.getAttr(e,"cy"),u=this.getAttr(e,"width"),d=this.getAttr(e,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:s,j:l,shared:!1}),a.globals.capturedSeriesIndex=s,a.globals.capturedDataPointIndex=l,n=c+o.tooltipRect.ttWidth/2+u,r=h+o.tooltipRect.ttHeight/2-d/2,o.tooltipPosition.moveXCrosshairs(c+u/2),n>a.globals.gridWidth/2&&(n=c-o.tooltipRect.ttWidth/2+u),o.w.config.tooltip.followCursor){var p=o.getElGrid().getBoundingClientRect();r=o.e.clientY-p.top+a.globals.translateY/2-10}}return{x:n,y:r}}},{key:"handleMarkerTooltip",value:function(t){var e,i,n=t.e,r=t.opt,o=t.x,a=t.y,s=this.w,l=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var c=parseInt(r.paths.getAttribute("cx")),h=parseInt(r.paths.getAttribute("cy")),u=parseFloat(r.paths.getAttribute("val"));if(i=parseInt(r.paths.getAttribute("rel")),e=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"))-1,l.intersect){var p=d.findAncestor(r.paths,"apexcharts-series");p&&(e=parseInt(p.getAttribute("data:realIndex")))}if(l.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,j:i,shared:!l.showOnIntersect&&s.config.tooltip.shared}),"mouseup"===n.type&&l.markerClick(n,e,i),s.globals.capturedSeriesIndex=e,s.globals.capturedDataPointIndex=i,o=c,a=h+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();a=l.e.clientY+s.globals.translateY-f.top}u<0&&(a=h),l.marker.enlargeCurrentPoint(i,r.paths,o,a)}return{x:o,y:a}}},{key:"handleBarTooltip",value:function(t){var e,i,n=t.e,r=t.opt,o=this.w,a=this.ttCtx,s=a.getElTooltip(),l=0,c=0,h=0,u=this.getBarTooltipXY({e:n,opt:r});e=u.i;var d=u.barHeight,p=u.j;if(o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=p,o.globals.isBarHorizontal&&a.hasBars()||!o.config.tooltip.shared?(c=u.x,h=u.y,i=Array.isArray(o.config.stroke.width)?o.config.stroke.width[e]:o.config.stroke.width,l=c):o.globals.comboCharts||o.config.tooltip.shared||(l/=2),isNaN(h)&&(h=o.globals.svgHeight-a.tooltipRect.ttHeight),c+a.tooltipRect.ttWidth>o.globals.gridWidth?c-=a.tooltipRect.ttWidth:c<0&&(c+=a.tooltipRect.ttWidth),a.w.config.tooltip.followCursor){var f=a.getElGrid().getBoundingClientRect();h=a.e.clientY-f.top}if(null===a.tooltip&&(a.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboChartsHasBars?a.tooltipPosition.moveXCrosshairs(l+i/2):a.tooltipPosition.moveXCrosshairs(l)),!a.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&a.hasBars())){var g=o.globals.isMultipleYAxis?o.config.yaxis[m]&&o.config.yaxis[m].reversed:o.config.yaxis[0].reversed;g&&(c=o.globals.gridWidth-c),s.style.left=c+o.globals.translateX+"px";var m=parseInt(r.paths.parentNode.getAttribute("data:realIndex"));!g||o.globals.isBarHorizontal&&a.hasBars()||(h=h+d-2*(o.globals.series[e][p]<0?d:0)),a.tooltipRect.ttHeight+h>o.globals.gridHeight?(h=o.globals.gridHeight-a.tooltipRect.ttHeight+o.globals.translateY,s.style.top=h+"px"):s.style.top=h+o.globals.translateY-a.tooltipRect.ttHeight/2+"px"}}},{key:"getBarTooltipXY",value:function(t){var e=t.e,i=t.opt,n=this.w,r=null,o=this.ttCtx,a=0,s=0,l=0,c=0,h=0,u=e.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-rangebar-area")){var d=e.target,p=d.getBoundingClientRect(),f=i.elGrid.getBoundingClientRect(),g=p.height;h=p.height;var m=p.width,y=parseInt(d.getAttribute("cx")),v=parseInt(d.getAttribute("cy"));c=parseFloat(d.getAttribute("barWidth"));var b="touchmove"===e.type?e.touches[0].clientX:e.clientX;r=parseInt(d.getAttribute("j")),a=parseInt(d.parentNode.getAttribute("rel"))-1;var x=d.getAttribute("data-range-y1"),w=d.getAttribute("data-range-y2");n.globals.comboCharts&&(a=parseInt(d.parentNode.getAttribute("data:realIndex"))),o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:a,j:r,y1:x?parseInt(x):null,y2:w?parseInt(w):null,shared:!o.showOnIntersect&&n.config.tooltip.shared}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(s=b-f.left+15,l=v-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?y-m/2:y-o.dataPointsDividedWidth+m/2,l=e.clientY-f.top-o.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((s=y)<o.xyRatios.baseLineInvertedY&&(s=y-o.tooltipRect.ttWidth),l=v-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?y-m/2:y-o.dataPointsDividedWidth+m/2,l=v)}return{x:s,y:l,barHeight:h,barWidth:c,i:a,j:r}}}]),t}(),mt=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i}return n(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:1;var n=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",r=t.globals.dom.elWrap;e.blxaxisTooltip&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",n+" "+t.config.tooltip.theme),r.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(i){var n=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=n?t.globals.gridWidth+1:1;var r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map((function(e,n){e.map((function(e,n){n===i&&(r+=t.config.yaxis[n].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var o=t.globals.dom.elWrap;e.blyaxisTooltip&&null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",r+" "+t.config.tooltip.theme),o.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText.push(document.createElement("div")),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))},n=0;n<t.config.yaxis.length;n++)i(n)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width),t.globals.comboCharts){var n=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==n&&"barWidth"===t.config.xaxis.crosshairs.width){var r=parseFloat(n.getAttribute("barWidth"));e.xcrosshairsWidth=r}else if("tickWidth"===t.config.xaxis.crosshairs.width){var o=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/o}}else if("tickWidth"===t.config.xaxis.crosshairs.width){var a=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/a}else if("barWidth"===t.config.xaxis.crosshairs.width){var s=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s){var l=parseFloat(s.getAttribute("barWidth"));e.xcrosshairsWidth=l}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),null!==i&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var n=this.ttCtx,r=this.w,o=r.globals.yLabelFormatters[t];if(n.blyaxisTooltip){var a=n.getElGrid().getBoundingClientRect(),s=(e-a.top)*i.yRatio[t],l=r.globals.maxYArr[t]-r.globals.minYArr[t],c=r.globals.minYArr[t]+(l-s);n.tooltipPosition.moveYCrosshairs(e-a.top),n.yaxisTooltipText[t].innerHTML=o(c),n.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),yt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new ut(this),this.tooltipLabels=new dt(this),this.tooltipPosition=new pt(this),this.marker=new ft(this),this.intersect=new gt(this),this.axesTooltip=new mt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared}return n(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.blxaxisTooltip=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.blyaxisTooltip=e.config.yaxis[0].tooltip.enabled&&e.globals.axisCharts,this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),i.classList.add(this.tConfig.theme),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var n=new Y(this.ctx);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if((e.globals.comboCharts&&!this.tConfig.shared||this.tConfig.intersect&&!this.tConfig.shared||("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&!this.tConfig.shared)&&(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var r=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this.w,i=[],n=this.getElTooltip(),r=0;r<t;r++){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),this.tConfig.shared&&this.tConfig.enabledOnSeries&&Array.isArray(this.tConfig.enabledOnSeries)&&this.tConfig.enabledOnSeries.indexOf(r)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var a=document.createElement("span");a.classList.add("apexcharts-tooltip-marker"),a.style.backgroundColor=e.globals.colors[r],o.appendChild(a);var s=document.createElement("div");s.classList.add("apexcharts-tooltip-text"),s.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,s.style.fontSize=this.tConfig.style.fontSize;var l=document.createElement("div");l.classList.add("apexcharts-tooltip-y-group");var c=document.createElement("span");c.classList.add("apexcharts-tooltip-text-label"),l.appendChild(c);var h=document.createElement("span");h.classList.add("apexcharts-tooltip-text-value"),l.appendChild(h);var u=document.createElement("div");u.classList.add("apexcharts-tooltip-z-group");var d=document.createElement("span");d.classList.add("apexcharts-tooltip-text-z-label"),u.appendChild(d);var p=document.createElement("span");p.classList.add("apexcharts-tooltip-text-z-value"),u.appendChild(p),s.appendChild(l),s.appendChild(u),o.appendChild(s),n.appendChild(o),i.push(o)}return i}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),n=!("bar"!==e&&"candlestick"!==e&&"rangeBar"!==e),r=t.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var a,s=[],l=[],c={hoverArea:r,elGrid:o,tooltipEl:i,tooltipY:s,tooltipX:l,ttItems:this.ttItems};if(t.globals.axisCharts&&("area"===e||"line"===e||"scatter"===e||"bubble"===e?a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):n?a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"===e?a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap"):"radar"===e&&(a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-marker")),a&&a.length))for(var h=0;h<a.length;h++)s.push(a[h].getAttribute("cy")),l.push(a[h].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||n&&this.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([r],c);else if(n&&!t.globals.comboCharts)this.addBarsEventListeners(c);else if("bubble"===e||"scatter"===e||"radar"===e||this.showOnIntersect&&("area"===e||"line"===e))this.addPointsEventsListeners(c);else if(!t.globals.axisCharts||"heatmap"===e){var u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,c)}if(this.showOnIntersect){var d=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker");d.length>0&&this.addPathsEventListeners(d,c);var p=t.globals.dom.baseEl.querySelectorAll(".apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,c),this.hasBars()&&!this.tConfig.shared&&this.addBarsEventListeners(c)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),n=i.width+10,r=i.height+10,o=this.tConfig.fixed.offsetX,a=this.tConfig.fixed.offsetY;return this.tConfig.fixed.position.toLowerCase().indexOf("right")>-1&&(o=o+t.globals.svgWidth-n+10),this.tConfig.fixed.position.toLowerCase().indexOf("bottom")>-1&&(a=a+t.globals.svgHeight-r-10),e.style.left=o+"px",e.style.top=a+"px",{x:o,y:a,ttWidth:n,ttHeight:r}}},{key:"addPointsEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker");this.addPathsEventListeners(e,t)}},{key:"addBarsEventListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,n=this,r=function(r){var o={paths:t[r],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};i.w.globals.tooltipOpts=o,["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[r].addEventListener(e,n.seriesHover.bind(n,o),{capture:!1,passive:!0})}))},o=0;o<t.length;o++)r(o)}},{key:"seriesHover",value:function(t,e){var i=this,n=[],r=this.w;r.config.chart.group&&(n=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||0===r.globals.dataPoints)||(n.length?n.forEach((function(n){var r=i.getElTooltip(n),o={paths:t.paths,tooltipEl:r,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===i.w.globals.minX&&n.w.globals.maxX===i.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:o,e:e})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e:e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,n=t.opt,r=t.e,o=e.w,a=this.getElTooltip();i.tooltipRect={x:0,y:0,ttWidth:a.getBoundingClientRect().width,ttHeight:a.getBoundingClientRect().height},i.e=r,!i.hasBars()||o.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new H(e).toggleSeriesOnHover(r,r.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),o.globals.axisCharts?i.axisChartsTooltips({e:r,opt:n,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:r,opt:n,tooltipRect:i.tooltipRect})}},{key:"axisChartsTooltips",value:function(t){var e,i,n,r=t.e,o=t.opt,a=this.w,s=null,l=o.elGrid.getBoundingClientRect(),c="touchmove"===r.type?r.touches[0].clientX:r.clientX,h="touchmove"===r.type?r.touches[0].clientY:r.clientY;if(this.clientY=h,this.clientX=c,a.globals.capturedSeriesIndex=-1,a.globals.capturedDataPointIndex=-1,h<l.top||h>l.top+l.height)this.handleMouseOut(o);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){var u=parseInt(o.paths.getAttribute("index"));if(this.tConfig.enabledOnSeries.indexOf(u)<0)return void this.handleMouseOut(o)}var d=this.getElTooltip(),p=this.getElXCrosshairs(),f=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.hasBars;if(a.globals.isBarHorizontal&&this.hasBars()&&(f=!1),"mousemove"===r.type||"touchmove"===r.type||"mouseup"===r.type){if(null!==p&&p.classList.add("active"),null!==this.ycrosshairs&&this.blyaxisTooltip&&this.ycrosshairs.classList.add("active"),f&&!this.showOnIntersect){e=(s=this.tooltipUtil.getNearestValues({context:this,hoverArea:o.hoverArea,elGrid:o.elGrid,clientX:c,clientY:h,hasBars:this.hasBars})).j;var g=s.capturedSeries;if(s.hoverX<0||s.hoverX>a.globals.gridWidth)return void this.handleMouseOut(o);if(null!==g){if(null===a.globals.series[g][e])return void this.handleMouseOut(o);void 0!==a.globals.series[g][e]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(e)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(r,this,g,e,o.ttItems):this.create(r,this,g,e,o.ttItems,!1):this.tooltipUtil.isXoverlap(e)&&this.create(r,this,0,e,o.ttItems)}else this.tooltipUtil.isXoverlap(e)&&this.create(r,this,0,e,o.ttItems)}else if("heatmap"===a.config.chart.type){var m=this.intersect.handleHeatTooltip({e:r,opt:o,x:i,y:n});i=m.x,n=m.y,d.style.left=i+"px",d.style.top=n+"px"}else this.hasBars&&this.intersect.handleBarTooltip({e:r,opt:o}),this.hasMarkers&&this.intersect.handleMarkerTooltip({e:r,opt:o,x:i,y:n});if(this.blyaxisTooltip)for(var y=0;y<a.config.yaxis.length;y++)this.axesTooltip.drawYaxisTooltipText(y,h,this.xyRatios);o.tooltipEl.classList.add("active")}else"mouseout"!==r.type&&"touchend"!==r.type||this.handleMouseOut(o)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,n=t.tooltipRect,r=this.w,o=i.paths.getAttribute("rel"),a=this.getElTooltip(),s=r.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){a.classList.add("active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(o)-1,shared:!1});var l=r.globals.clientX-s.left-n.ttWidth/2,c=r.globals.clientY-s.top-n.ttHeight-10;a.style.left=l+"px",a.style.top=c+"px"}else"mouseout"!==e.type&&"touchend"!==e.type||a.classList.remove("active")}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new g(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n<i.length;n++)e.pathMouseLeave(i[n])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("active"),this.blyaxisTooltip){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var n=0;n<this.yaxisTTEls.length;n++)this.yaxisTTEls[n].classList.remove("active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker")}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"markerClick",value:function(t,e,i){var n=this.w;"function"==typeof n.config.chart.events.markerClick&&n.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}),this.ctx.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}])}},{key:"create",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=this.w,s=e;"mouseup"===t.type&&this.markerClick(t,i,n),null===o&&(o=this.tConfig.shared);var l=this.hasMarkers(),c=this.getElBars();if(a.config.legend.tooltipHoverFormatter){var h=a.config.legend.tooltipHoverFormatter,u=Array.from(this.legendLabels);u.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var d=0;d<u.length;d++){var p=u[d],f=parseInt(p.getAttribute("i")),m=decodeURIComponent(p.getAttribute("data:default-text")),y=h(m,{seriesIndex:o?f:i,dataPointIndex:n,w:a});if(o)p.innerHTML=a.globals.collapsedSeriesIndices.indexOf(f)<0?y:m;else if(p.innerHTML=f===i?y:m,i===f)break}}if(o){if(s.tooltipLabels.drawSeriesTexts({ttItems:r,i:i,j:n,shared:!this.showOnIntersect&&this.tConfig.shared}),l&&(a.globals.markers.largestSize>0?s.marker.enlargePoints(n):s.tooltipPosition.moveDynamicPointsOnHover(n)),this.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(c),this.barSeriesHeight>0)){var v=new g(this.ctx),b=a.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n);for(var x=0;x<b.length;x++)v.pathMouseEnter(b[x])}}else s.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:r,i:i,j:n}),this.hasBars()&&s.tooltipPosition.moveStickyTooltipOverBars(n),l&&s.tooltipPosition.moveMarkers(i,n)}}]),t}(),vt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.ev=this.w.config.chart.events,this.localeValues=this.w.globals.locale.toolbar}return n(t,[{key:"createToolbar",value:function(){var t=this.w,e=document.createElement("div");if(e.setAttribute("class","apexcharts-toolbar"),t.globals.dom.elWrap.appendChild(e),this.elZoom=document.createElement("div"),this.elZoomIn=document.createElement("div"),this.elZoomOut=document.createElement("div"),this.elPan=document.createElement("div"),this.elSelection=document.createElement("div"),this.elZoomReset=document.createElement("div"),this.elMenuIcon=document.createElement("div"),this.elMenu=document.createElement("div"),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i<this.t.customIcons.length;i++)this.elCustomIcons.push(document.createElement("div"));this.elMenuItems=[];var n=[];this.t.zoomin&&t.config.chart.zoom.enabled&&n.push({el:this.elZoomIn,icon:"string"==typeof this.t.zoomin?this.t.zoomin:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n',title:this.localeValues.zoomIn,class:"apexcharts-zoom-in-icon"}),this.t.zoomout&&t.config.chart.zoom.enabled&&n.push({el:this.elZoomOut,icon:"string"==typeof this.t.zoomout?this.t.zoomout:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n',title:this.localeValues.zoomOut,class:"apexcharts-zoom-out-icon"}),this.t.zoom&&t.config.chart.zoom.enabled&&n.push({el:this.elZoom,icon:"string"==typeof this.t.zoom?this.t.zoom:'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>',title:this.localeValues.selectionZoom,class:t.globals.isTouchDevice?"hidden":"apexcharts-zoom-icon"}),this.t.selection&&t.config.chart.selection.enabled&&n.push({el:this.elSelection,icon:"string"==typeof this.t.selection?this.t.selection:'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:this.localeValues.selection,class:t.globals.isTouchDevice?"hidden":"apexcharts-selection-icon"}),this.t.pan&&t.config.chart.zoom.enabled&&n.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"hidden":"apexcharts-pan-icon"}),this.t.reset&&t.config.chart.zoom.enabled&&n.push({el:this.elZoomReset,icon:"string"==typeof this.t.reset?this.t.reset:'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>',title:this.localeValues.reset,class:"apexcharts-reset-zoom-icon"}),this.t.download&&n.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var r=0;r<this.elCustomIcons.length;r++)n.push({el:this.elCustomIcons[r],icon:this.t.customIcons[r].icon,title:this.t.customIcons[r].title,index:this.t.customIcons[r].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[r].class});n.forEach((function(t,e){t.index&&d.moveIndexInArray(n,e,t.index)}));for(var o=0;o<n.length;o++)g.setAttrs(n[o].el,{class:n[o].class,title:n[o].title}),n[o].el.innerHTML=n[o].icon,e.appendChild(n[o].el);e.appendChild(this.elMenu),g.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var a=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG}],s=0;s<a.length;s++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[s].innerHTML=a[s].title,g.setAttrs(this.elMenuItems[s],{class:"apexcharts-menu-item ".concat(a[s].name),title:a[s].title}),this.elMenu.appendChild(this.elMenuItems[s]);t.globals.zoomEnabled?this.elZoom.classList.add("selected"):t.globals.panEnabled?this.elPan.classList.add("selected"):t.globals.selectionEnabled&&this.elSelection.classList.add("selected"),this.addToolbarEventListeners()}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleSelection.bind(this)),this.elZoom.addEventListener("click",this.toggleZooming.bind(this)),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(e){e.classList.contains("exportSVG")?e.addEventListener("click",t.downloadSVG.bind(t)):e.classList.contains("exportPNG")&&e.addEventListener("click",t.downloadPNG.bind(t))}));for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleSelection",value:function(){this.toggleOtherControls(),this.w.globals.selectionEnabled=!this.w.globals.selectionEnabled,this.elSelection.classList.contains("selected")?this.elSelection.classList.remove("selected"):this.elSelection.classList.add("selected")}},{key:"toggleZooming",value:function(){this.toggleOtherControls(),this.w.globals.zoomEnabled=!this.w.globals.zoomEnabled,this.elZoom.classList.contains("selected")?this.elZoom.classList.remove("selected"):this.elZoom.classList.add("selected")}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZooming",value:function(){this.toggleOtherControls(),this.w.globals.zoomEnabled=!0,this.elZoom&&this.elZoom.classList.add("selected"),this.elPan&&this.elPan.classList.remove("selected")}},{key:"enablePanning",value:function(){this.toggleOtherControls(),this.w.globals.panEnabled=!0,this.elPan&&this.elPan.classList.add("selected"),this.elZoom&&this.elZoom.classList.remove("selected")}},{key:"togglePanning",value:function(){this.toggleOtherControls(),this.w.globals.panEnabled=!this.w.globals.panEnabled,this.elPan.classList.contains("selected")?this.elPan.classList.remove("selected"):this.elPan.classList.add("selected")}},{key:"toggleOtherControls",value:function(){var t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),this.elPan&&this.elPan.classList.remove("selected"),this.elSelection&&this.elSelection.classList.remove("selected"),this.elZoom&&this.elZoom.classList.remove("selected")}},{key:"handleZoomIn",value:function(){var t=this.w,e=(t.globals.minX+t.globals.maxX)/2,i=(t.globals.minX+e)/2,n=(t.globals.maxX+e)/2;t.globals.disableZoomIn||this.zoomUpdateOptions(i,n)}},{key:"handleZoomOut",value:function(){var t=this.w;if(!("datetime"===t.config.xaxis.type&&new Date(t.globals.minX).getUTCFullYear()<1e3)){var e=(t.globals.minX+t.globals.maxX)/2,i=t.globals.minX-(e-t.globals.minX),n=t.globals.maxX-(e-t.globals.maxX);t.globals.disableZoomOut||this.zoomUpdateOptions(i,n)}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w,n={min:t,max:e},r=this.getBeforeZoomRange(n);r&&(n=r.xaxis);var o={xaxis:n},a=d.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(a=new G(this.ctx).autoScaleY(this.ctx,a,{xaxis:n})),i.config.chart.group||(o.yaxis=a),this.w.globals.zoomed=!0,this.ctx._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(n,a)}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){this.elMenu.classList.contains("open")?this.elMenu.classList.remove("open"):this.elMenu.classList.add("open")}},{key:"downloadPNG",value:function(){new st(this.ctx).exportToPng(this.ctx),this.toggleMenu()}},{key:"downloadSVG",value:function(){new st(this.ctx).exportToSVG(),this.toggleMenu()}},{key:"handleZoomReset",value:function(t){var e=this;this.ctx.getSyncedCharts().forEach((function(t){var i=t.w;i.globals.minX!==i.globals.initialminX&&i.globals.maxX!==i.globals.initialmaxX&&(t.revertDefaultAxisMinMax(),"function"==typeof i.config.chart.events.zoomed&&e.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max}),i.globals.zoomed=!1,t._updateSeries(i.globals.initialSeries,i.config.chart.animations.dynamicAnimation.enabled))}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),t}(),bt=function(t){function i(t){var n;return e(this,i),(n=h(this,l(i).call(this,t))).ctx=t,n.w=t.w,n.dragged=!1,n.graphics=new g(n.ctx),n.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],n.clientX=0,n.clientY=0,n.startX=0,n.endX=0,n.dragX=0,n.startY=0,n.endY=0,n.dragY=0,n}return s(i,vt),n(i,[{key:"init",value:function(t){var e=this,i=t.xyRatios,n=this.w,r=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=n.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),n.globals.dom.elGraphical.add(this.zoomRect),n.globals.dom.elGraphical.add(this.selectionRect),"x"===n.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===n.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=n.globals.dom.baseEl.querySelector(n.globals.chartClass),this.hoverArea.classList.add("zoomable"),this.eventList.forEach((function(t){e.hoverArea.addEventListener(t,r.svgMouseEvents.bind(r,i),{capture:!1,passive:!0})}))}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(t,e){var i=this.w,n=this,r=this.ctx.toolbar,o=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type;if(e.shiftKey?(this.shiftWasPressed=!0,r.enablePanning()):this.shiftWasPressed&&(r.enableZooming(),this.shiftWasPressed=!1),!e.target.classList.contains("apexcharts-selection-rect")&&!e.target.parentNode.classList.contains("apexcharts-toolbar")){if(n.clientX="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientX:"touchend"===e.type?e.changedTouches[0].clientX:e.clientX,n.clientY="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientY:"touchend"===e.type?e.changedTouches[0].clientY:e.clientY,"mousedown"===e.type&&1===e.which){var a=n.gridRect.getBoundingClientRect();n.startX=n.clientX-a.left,n.startY=n.clientY-a.top,n.dragged=!1,n.w.globals.mousedown=!0}if(("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(n.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,n.w.globals.mousedown&&n.panDragging({context:n,zoomtype:o,xyRatios:t})):(n.w.globals.mousedown&&i.globals.zoomEnabled||n.w.globals.mousedown&&i.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:o}))),"mouseup"===e.type||"touchend"===e.type||"mouseleave"===e.type){var s=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-s.left,n.endY=n.clientY-s.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:o})),i.globals.zoomEnabled&&n.hideSelectionRect(this.selectionRect),n.dragged=!1,n.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w;if(this.selectionRect){var e=this.selectionRect.node.getBoundingClientRect();e.width>0&&e.height>0&&this.slDraggableRect.selectize().resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,n={x:i,y:0,width:t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,n=t.width,r=t.height,o=t.translateX,a=t.translateY,s=this.w,l=this.zoomRect,c=this.selectionRect;if(this.dragged||null!==s.globals.selection){var h={transform:"translate("+o+", "+a+")"};s.globals.zoomEnabled&&this.dragged&&(l.attr({x:e,y:i,width:n,height:r,fill:s.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":s.config.chart.zoom.zoomedArea.fill.opacity,stroke:s.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":s.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":s.config.chart.zoom.zoomedArea.stroke.opacity}),g.setAttrs(l.node,h)),s.globals.selectionEnabled&&(c.attr({x:e,y:i,width:n>0?n:0,height:r>0?r:0,fill:s.config.chart.selection.fill.color,"fill-opacity":s.config.chart.selection.fill.opacity,stroke:s.config.chart.selection.stroke.color,"stroke-width":s.config.chart.selection.stroke.width,"stroke-dasharray":s.config.chart.selection.stroke.dashArray,"stroke-opacity":s.config.chart.selection.stroke.opacity}),g.setAttrs(c.node,h))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e,i=t.context,n=t.zoomtype,r=this.w,o=i,a=this.gridRect.getBoundingClientRect(),s=o.startX-1,l=o.startY,c=o.clientX-a.left-s,h=o.clientY-a.top-l,u=0,d=0;return Math.abs(c+s)>r.globals.gridWidth?c=r.globals.gridWidth-s:o.clientX-a.left<0&&(c=s),s>o.clientX-a.left&&(u=-(c=Math.abs(c))),l>o.clientY-a.top&&(d=-(h=Math.abs(h))),e="x"===n?{x:s,y:0,width:c,height:r.globals.gridHeight,translateX:u,translateY:0}:"y"===n?{x:0,y:l,width:r.globals.gridWidth,height:h,translateX:0,translateY:d}:{x:s,y:l,width:c,height:h,translateX:u,translateY:d},o.drawSelectionRect(e),o.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,n=this.w,r=this.xyRatios,o=this.selectionRect,a=0;"resizing"===t&&(a=30),"function"==typeof n.config.chart.events.selection&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var t=i.gridRect.getBoundingClientRect(),e=o.node.getBoundingClientRect(),a=n.globals.xAxisScale.niceMin+(e.left-t.left)*r.xRatio,s=n.globals.xAxisScale.niceMin+(e.right-t.left)*r.xRatio,l=n.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*r.yRatio[0],c=n.globals.yAxisScale[0].niceMax-(e.top-t.top)*r.yRatio[0];n.config.chart.events.selection(i.ctx,{xaxis:{min:a,max:s},yaxis:{min:l,max:c}})}),a))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,n=this.w,r=e,o=this.xyRatios,a=this.ctx.toolbar;if(r.startX>r.endX){var s=r.startX;r.startX=r.endX,r.endX=s}if(r.startY>r.endY){var l=r.startY;r.startY=r.endY,r.endY=l}var c=n.globals.xAxisScale.niceMin+r.startX*o.xRatio,h=n.globals.xAxisScale.niceMin+r.endX*o.xRatio,u=[],p=[];if(n.config.yaxis.forEach((function(t,e){u.push(n.globals.yAxisScale[e].niceMax-o.yRatio[e]*r.startY),p.push(n.globals.yAxisScale[e].niceMax-o.yRatio[e]*r.endY)})),r.dragged&&(r.dragX>10||r.dragY>10)&&c!==h)if(n.globals.zoomEnabled){var f=d.clone(n.globals.initialConfig.yaxis),g={min:c,max:h};if("xy"!==i&&"y"!==i||f.forEach((function(t,e){f[e].min=p[e],f[e].max=u[e]})),n.config.chart.zoom.autoScaleYaxis){var m=new G(r.ctx);f=m.autoScaleY(r.ctx,f,{xaxis:g})}if(a){var y=a.getBeforeZoomRange(g,f);y&&(g=y.xaxis?y.xaxis:g,f=y.yaxis?y.yaxe:f)}var v={xaxis:g};n.config.chart.group||(v.yaxis=f),r.ctx._updateOptions(v,!1,r.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&a.zoomCallback(g,f),n.globals.zoomed=!0}else if(n.globals.selectionEnabled){var b,x=null;b={min:c,max:h},"xy"!==i&&"y"!==i||(x=d.clone(n.config.yaxis)).forEach((function(t,e){x[e].min=p[e],x[e].max=u[e]})),n.globals.selection=r.selection,"function"==typeof n.config.chart.events.selection&&n.config.chart.events.selection(r.ctx,{xaxis:b,yaxis:x})}}},{key:"panDragging",value:function(t){var e,i=t.context,n=this.w,r=i;if(void 0!==n.globals.lastClientPosition.x){var o=n.globals.lastClientPosition.x-r.clientX,a=n.globals.lastClientPosition.y-r.clientY;Math.abs(o)>Math.abs(a)&&o>0?e="left":Math.abs(o)>Math.abs(a)&&o<0?e="right":Math.abs(a)>Math.abs(o)&&a>0?e="up":Math.abs(a)>Math.abs(o)&&a<0&&(e="down")}n.globals.lastClientPosition={x:r.clientX,y:r.clientY};var s=n.globals.minX,l=n.globals.maxX;r.panScrolled(e,s,l)}},{key:"panScrolled",value:function(t,e,i){var n=this.w,r=this.xyRatios,o=d.clone(n.globals.initialConfig.yaxis);"left"===t?(e=n.globals.minX+n.globals.gridWidth/15*r.xRatio,i=n.globals.maxX+n.globals.gridWidth/15*r.xRatio):"right"===t&&(e=n.globals.minX-n.globals.gridWidth/15*r.xRatio,i=n.globals.maxX-n.globals.gridWidth/15*r.xRatio),(e<n.globals.initialminX||i>n.globals.initialmaxX)&&(e=n.globals.minX,i=n.globals.maxX);var a={min:e,max:i};n.config.chart.zoom.autoScaleYaxis&&(o=new G(this.ctx).autoScaleY(this.ctx,o,{xaxis:a}));var s={xaxis:{min:e,max:i}};n.config.chart.group||(s.yaxis=o),this.ctx._updateOptions(s,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(),xt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,n=e.globals.svgWidth/2,r=i.offsetY,o="middle";if("left"===i.align?(n=10,o="start"):"right"===i.align&&(n=e.globals.svgWidth-10,o="end"),n+=i.offsetX,r=r+parseInt(i.style.fontSize)+2,void 0!==i.text){var a=new g(this.ctx).drawText({x:n,y:r,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,foreColor:i.style.color,opacity:1});a.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(a)}}}]),t}();return ot="undefined"!=typeof window?window:void 0,at=function(e,i){var n=(void 0!==this?this:e).SVG=function(t){if(n.supported)return t=new n.Doc(t),n.parser.draw||n.prepare(),t};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.com/svgjs",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(t){return"Svgjs"+u(t)+n.did++},n.create=function(t){var e=i.createElementNS(this.ns,t);return e.setAttribute("id",this.eid(t)),e},n.extend=function(){var t,e,i,r;for(e=(t=[].slice.call(arguments)).pop(),r=t.length-1;r>=0;r--)if(t[r])for(i in e)t[r].prototype[i]=e[i];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,n.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&n.extend(e,t.extend),t.construct&&n.extend(t.parent||n.Container,t.construct),e},n.adopt=function(t){return t?t.instance?t.instance:((i="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[u(t.nodeName)]?new(n[u(t.nodeName)]):new n.Element(t)).type=t.nodeName,i.node=t,t.instance=i,i instanceof n.Doc&&i.namespace().defs(),i.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),i):null;var i},n.prepare=function(){var t=i.getElementsByTagName("body")[0],e=(t?new n.Doc(t):n.adopt(i.documentElement).nested()).size(2,0);n.parser={body:t||i.documentElement,draw:e.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:e.polyline().node,path:e.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},i.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(t,e){var i,n=t.length,r=[];for(i=0;i<n;i++)r.push(e(t[i]));return r},filter:function(t,e){var i,n=t.length,r=[];for(i=0;i<n;i++)e(t[i])&&r.push(t[i]);return r},radians:function(t){return t%360*Math.PI/180},degrees:function(t){return 180*t/Math.PI%360},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},n.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},n.Color=function(e){var i,r;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?n.regex.isRgb.test(e)?(i=n.regex.rgb.exec(e.replace(n.regex.whitespace,"")),this.r=parseInt(i[1]),this.g=parseInt(i[2]),this.b=parseInt(i[3])):n.regex.isHex.test(e)&&(i=n.regex.hex.exec(4==(r=e).length?["#",r.substring(1,2),r.substring(1,2),r.substring(2,3),r.substring(2,3),r.substring(3,4),r.substring(3,4)].join(""):r),this.r=parseInt(i[1],16),this.g=parseInt(i[2],16),this.b=parseInt(i[3],16)):"object"===t(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+d(this.r)+d(this.g)+d(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new n.Color(t),this},at:function(t){return this.destination?(t=t<0?0:t>1?1:t,new n.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),n.Color.test=function(t){return t+="",n.regex.isHex.test(t)||n.regex.isRgb.test(t)},n.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},n.Color.isColor=function(t){return n.Color.isRgb(t)||n.Color.test(t)},n.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},n.extend(n.Array,{morph:function(t){if(this.destination=this.parse(t),this.value.length!=this.destination.length){for(var e=this.value[this.value.length-1],i=this.destination[this.destination.length-1];this.value.length>this.destination.length;)this.destination.push(i);for(;this.value.length<this.destination.length;)this.value.push(e)}return this},settle:function(){for(var t=0,e=this.value.length,i=[];t<e;t++)-1==i.indexOf(this.value[t])&&i.push(this.value[t]);return this.value=i},at:function(t){if(!this.destination)return this;for(var e=0,i=this.value.length,r=[];e<i;e++)r.push(this.value[e]+(this.destination[e]-this.value[e])*t);return new n.Array(r)},toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)},split:function(t){return t.trim().split(n.regex.delimiter).map(parseFloat)},reverse:function(){return this.value.reverse(),this},clone:function(){var t=new this.constructor;return t.value=function t(e){for(var i=e.slice(0),n=i.length;n--;)Array.isArray(i[n])&&(i[n]=t(i[n]));return i}(this.value),t}}),n.PointArray=function(t,e){n.Array.call(this,t,e||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray,n.extend(n.PointArray,{toString:function(){for(var t=0,e=this.value.length,i=[];t<e;t++)i.push(this.value[t].join(","));return i.join(" ")},toLine:function(){return{x1:this.value[0][0],y1:this.value[0][1],x2:this.value[1][0],y2:this.value[1][1]}},at:function(t){if(!this.destination)return this;for(var e=0,i=this.value.length,r=[];e<i;e++)r.push([this.value[e][0]+(this.destination[e][0]-this.value[e][0])*t,this.value[e][1]+(this.destination[e][1]-this.value[e][1])*t]);return new n.PointArray(r)},parse:function(t){var e=[];if(t=t.valueOf(),Array.isArray(t)){if(Array.isArray(t[0]))return t.map((function(t){return t.slice()}));if(null!=t[0].x)return t.map((function(t){return[t.x,t.y]}))}else t=t.trim().split(n.regex.delimiter).map(parseFloat);t.length%2!=0&&t.pop();for(var i=0,r=t.length;i<r;i+=2)e.push([t[i],t[i+1]]);return e},move:function(t,e){var i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(var n=this.value.length-1;n>=0;n--)this.value[n]=[this.value[n][0]+t,this.value[n][1]+e];return this},size:function(t,e){var i,n=this.bbox();for(i=this.value.length-1;i>=0;i--)n.width&&(this.value[i][0]=(this.value[i][0]-n.x)*t/n.width+n.x),n.height&&(this.value[i][1]=(this.value[i][1]-n.y)*e/n.height+n.y);return this},bbox:function(){return n.parser.draw||n.prepare(),n.parser.poly.setAttribute("points",this.toString()),n.parser.poly.getBBox()}});for(var r={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},o="mlhvqtcsaz".split(""),a=0,s=o.length;a<s;++a)r[o[a]]=function(t){return function(e,i,n){if("H"==t)e[0]=e[0]+i.x;else if("V"==t)e[0]=e[0]+i.y;else if("A"==t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(var o=0,a=e.length;o<a;++o)e[o]=e[o]+(o%2?i.y:i.x);return r[t](e,i,n)}}(o[a].toUpperCase());n.PathArray=function(t,e){n.Array.call(this,t,e||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e][0],null!=t[e][1]&&(n+=t[e][1],null!=t[e][2]&&(n+=" ",n+=t[e][2],null!=t[e][3]&&(n+=" ",n+=t[e][3],n+=" ",n+=t[e][4],null!=t[e][5]&&(n+=" ",n+=t[e][5],n+=" ",n+=t[e][6],null!=t[e][7]&&(n+=" ",n+=t[e][7])))));return n+" "}(this.value)},move:function(t,e){var i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(var n,r=this.value.length-1;r>=0;r--)"M"==(n=this.value[r][0])||"L"==n||"T"==n?(this.value[r][1]+=t,this.value[r][2]+=e):"H"==n?this.value[r][1]+=t:"V"==n?this.value[r][1]+=e:"C"==n||"S"==n||"Q"==n?(this.value[r][1]+=t,this.value[r][2]+=e,this.value[r][3]+=t,this.value[r][4]+=e,"C"==n&&(this.value[r][5]+=t,this.value[r][6]+=e)):"A"==n&&(this.value[r][6]+=t,this.value[r][7]+=e);return this},size:function(t,e){var i,n,r=this.bbox();for(i=this.value.length-1;i>=0;i--)"M"==(n=this.value[i][0])||"L"==n||"T"==n?(this.value[i][1]=(this.value[i][1]-r.x)*t/r.width+r.x,this.value[i][2]=(this.value[i][2]-r.y)*e/r.height+r.y):"H"==n?this.value[i][1]=(this.value[i][1]-r.x)*t/r.width+r.x:"V"==n?this.value[i][1]=(this.value[i][1]-r.y)*e/r.height+r.y:"C"==n||"S"==n||"Q"==n?(this.value[i][1]=(this.value[i][1]-r.x)*t/r.width+r.x,this.value[i][2]=(this.value[i][2]-r.y)*e/r.height+r.y,this.value[i][3]=(this.value[i][3]-r.x)*t/r.width+r.x,this.value[i][4]=(this.value[i][4]-r.y)*e/r.height+r.y,"C"==n&&(this.value[i][5]=(this.value[i][5]-r.x)*t/r.width+r.x,this.value[i][6]=(this.value[i][6]-r.y)*e/r.height+r.y)):"A"==n&&(this.value[i][1]=this.value[i][1]*t/r.width,this.value[i][2]=this.value[i][2]*e/r.height,this.value[i][6]=(this.value[i][6]-r.x)*t/r.width+r.x,this.value[i][7]=(this.value[i][7]-r.y)*e/r.height+r.y);return this},equalCommands:function(t){var e,i,r;for(t=new n.PathArray(t),r=this.value.length===t.value.length,e=0,i=this.value.length;r&&e<i;e++)r=this.value[e][0]===t.value[e][0];return r},morph:function(t){return t=new n.PathArray(t),this.equalCommands(t)?this.destination=t:this.destination=null,this},at:function(t){if(!this.destination)return this;var e,i,r,o,a=this.value,s=this.destination.value,l=[],c=new n.PathArray;for(e=0,i=a.length;e<i;e++){for(l[e]=[a[e][0]],r=1,o=a[e].length;r<o;r++)l[e][r]=a[e][r]+(s[e][r]-a[e][r])*t;"A"===l[e][0]&&(l[e][4]=+(0!=l[e][4]),l[e][5]=+(0!=l[e][5]))}return c.value=l,c},parse:function(t){if(t instanceof n.PathArray)return t.valueOf();var e,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"==typeof t?t.replace(n.regex.numbersWithDots,c).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):t.reduce((function(t,e){return[].concat.call(t,e)}),[]);var o=[],a=new n.Point,s=new n.Point,l=0,h=t.length;do{n.regex.isPathLetter.test(t[l])?(e=t[l],++l):"M"==e?e="L":"m"==e&&(e="l"),o.push(r[e].call(null,t.slice(l,l+=i[e.toUpperCase()]).map(parseFloat),a,s))}while(h>l);return o},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(n.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof n.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new n.Number(t),new n.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new n.Number(t),new n.Number(this-t,this.unit||t.unit)},times:function(t){return t=new n.Number(t),new n.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new n.Number(t),new n.Number(this/t,this.unit||t.unit)},to:function(t){var e=new n.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new n.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new n.Number(this.destination).minus(this).times(t).plus(this):this}}}),n.Element=n.invent({create:function(t){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var i=p(this,t,e);return this.width(new n.Number(i.width)).height(new n.Number(i.height))},clone:function(t){this.writeDataToDom();var e=y(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},inside:function(t,e){var i=this.bbox();return t>i.x&&e>i.y&&t<i.x+i.width&&e<i.y+i.height},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(n.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return n.get(this.attr(t))},parent:function(t){var i=this;if(!i.node.parentNode)return null;if(i=n.adopt(i.node.parentNode),!t)return i;for(;i&&i.node instanceof e.SVGElement;){if("string"==typeof t?i.matches(t):i instanceof t)return i;if(!i.node.parentNode||"#document"==i.node.parentNode.nodeName)return null;i=n.adopt(i.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var e=i.createElement("svg");if(!(t&&this instanceof n.Parent))return e.appendChild(t=i.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),e.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");e.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var r=0,o=e.firstChild.childNodes.length;r<o;r++)this.node.appendChild(e.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return function(t,e){return t instanceof e}(this,t)}}}),n.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},n.morph=function(t){return function(e,i){return new n.MorphObj(e,i).at(t)}},n.Situation=n.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(t.duration).valueOf(),this.delay=new n.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,i,r){"object"===t(e)&&(i=e.ease,r=e.delay,e=e.duration);var o=new n.Situation({duration:e||1e3,delay:r||0,ease:n.easing[i||"-"]||i});return this.queue(o),this},delay:function(t){var e=new n.Situation({duration:t,delay:0,ease:n.easing["-"]});return this.queue(e)},target:function(t){return t&&t instanceof n.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof n.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e,i,r=this.situation;if(r.init)return this;for(t in r.animations)for(i=this.target()[t](),Array.isArray(i)||(i=[i]),Array.isArray(r.animations[t])||(r.animations[t]=[r.animations[t]]),e=i.length;e--;)r.animations[t][e]instanceof n.Number&&(i[e]=new n.Number(i[e])),r.animations[t][e]=i[e].morph(r.animations[t][e]);for(t in r.attrs)r.attrs[t]=new n.MorphObj(this.target().attr(t),r.attrs[t]);for(t in r.styles)r.styles[t]=new n.MorphObj(this.target().style(t),r.styles[t]);return r.initialTransformation=this.target().matrixify(),r.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},reset:function(){if(this.situation){var t=this.situation;this.stop(),this.situation=t,this.atStart()}return this},finish:function(){for(this.stop(!0,!1);this.dequeue().situation&&this.stop(!0,!1););return this.clearQueue().clearCurrent(),this},atStart:function(){return this.at(0,!0)},atEnd:function(){return!0===this.situation.loops&&(this.situation.loops=this.situation.loop+1),"number"==typeof this.situation.loops?this.at(this.situation.loops,!0):this.at(1,!0)},at:function(t,e){var i=this.situation.duration/this._speed;return this.absPos=t,e||(this.situation.reversed&&(this.absPos=1-this.absPos),this.absPos+=this.situation.loop),this.situation.start=+new Date-this.absPos*i,this.situation.finish=this.situation.start+i,this.step(!0)},speed:function(t){return 0===t?this.pause():t?(this._speed=t,this.at(this.absPos,!0)):this._speed},loop:function(t,e){var i=this.last();return i.loops=null==t||t,i.loop=0,e&&(i.reversing=!0),this},pause:function(){return this.paused=!0,this.stopAnimFrame(),this},play:function(){return this.paused?(this.paused=!1,this.at(this.absPos,!0)):this},reverse:function(t){var e=this.last();return e.reversed=void 0===t?!e.reversed:t,this},progress:function(t){return t?this.situation.ease(this.pos):this.pos},after:function(t){var e=this.last();return this.target().on("finished.fx",(function i(n){n.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))})),this._callStart()},during:function(t){var e=this.last(),i=function(i){i.detail.situation==e&&t.call(this,i.detail.pos,n.morph(i.detail.pos),i.detail.eased,e)};return this.target().off("during.fx",i).on("during.fx",i),this.after((function(){this.off("during.fx",i)})),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},duringAll:function(t){var e=function(e){t.call(this,e.detail.pos,n.morph(e.detail.pos),e.detail.eased,e.detail.situation)};return this.target().off("during.fx",e).on("during.fx",e),this.afterAll((function(){this.off("during.fx",e)})),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,n;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||i<this.situation.loops?(this.pos=e-i,n=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,n=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-n)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var r=this.situation.ease(this.pos);for(var o in this.situation.once)o>this.lastPos&&o<=r&&(this.situation.once[o].call(this.target(),this.pos,r),delete this.situation.once[o]);return this.active&&this.target().fire("during",{pos:this.pos,eased:r,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=r,this):this},eachAt:function(){var t,e,i,r=this,o=this.target(),a=this.situation;for(t in a.animations)i=[].concat(a.animations[t]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(r.pos),r.pos):t})),o[t].apply(o,i);for(t in a.attrs)i=[t].concat(a.attrs[t]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(r.pos),r.pos):t})),o.attr.apply(o,i);for(t in a.styles)i=[t].concat(a.styles[t]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(r.pos),r.pos):t})),o.style.apply(o,i);if(a.transforms.length){for(i=a.initialTransformation,t=0,e=a.transforms.length;t<e;t++){var s=a.transforms[t];s instanceof n.Matrix?i=s.relative?i.multiply((new n.Matrix).morph(s).at(a.ease(this.pos))):i.morph(s).at(a.ease(this.pos)):(s.relative||s.undo(i.extract()),i=i.multiply(s.at(a.ease(this.pos))))}o.matrix(i)}return this},once:function(t,e,i){var n=this.last();return i||(t=n.ease(t)),n.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(t,e,i){return(this.fx||(this.fx=new n.FX(this))).animate(t,e,i)},delay:function(t){return(this.fx||(this.fx=new n.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this},pause:function(){return this.fx&&this.fx.pause(),this},play:function(){return this.fx&&this.fx.play(),this},speed:function(t){if(this.fx){if(null==t)return this.fx.speed();this.fx.speed(t)}return this}}}),n.MorphObj=n.invent({create:function(t,e){return n.Color.isColor(e)?new n.Color(t).morph(e):n.regex.delimiter.test(t)?n.regex.pathLetters.test(t)?new n.PathArray(t).morph(e):new n.Array(t).morph(e):n.regex.numberAndUnit.test(e)?new n.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(e,i,n){if("object"===t(e))for(var r in e)this.attr(r,e[r]);else this.add(e,i,"attrs");return this},style:function(e,i){if("object"===t(e))for(var n in e)this.style(n,e[n]);else this.add(e,i,"styles");return this},x:function(t,e){if(this.target()instanceof n.G)return this.transform({x:t},e),this;var i=new n.Number(t);return i.relative=e,this.add("x",i)},y:function(t,e){if(this.target()instanceof n.G)return this.transform({y:t},e),this;var i=new n.Number(t);return i.relative=e,this.add("y",i)},cx:function(t){return this.add("cx",new n.Number(t))},cy:function(t){return this.add("cy",new n.Number(t))},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},size:function(t,e){var i;return this.target()instanceof n.Text?this.attr("font-size",t):(t&&e||(i=this.target().bbox()),t||(t=i.width/i.height*e),e||(e=i.height/i.width*t),this.add("width",new n.Number(t)).add("height",new n.Number(e))),this},width:function(t){return this.add("width",new n.Number(t))},height:function(t){return this.add("height",new n.Number(t))},plot:function(t,e,i,n){return 4==arguments.length?this.plot([t,e,i,n]):this.add("plot",new(this.target().morphArray)(t))},leading:function(t){return this.target().leading?this.add("leading",new n.Number(t)):this},viewbox:function(t,e,i,r){return this.target()instanceof n.Container&&this.add("viewbox",new n.ViewBox(t,e,i,r)),this},update:function(t){if(this.target()instanceof n.Stop){if("number"==typeof t||t instanceof n.Number)return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]});null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset)}return this}}),n.Box=n.invent({create:function(e,i,r,o){if(!("object"!==t(e)||e instanceof n.Element))return n.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);4==arguments.length&&(this.x=e,this.y=i,this.width=r,this.height=o),v(this)},extend:{merge:function(t){var e=new this.constructor;return e.x=Math.min(this.x,t.x),e.y=Math.min(this.y,t.y),e.width=Math.max(this.x+this.width,t.x+t.width)-e.x,e.height=Math.max(this.y+this.height,t.y+t.height)-e.y,v(e)},transform:function(t){var e,i=1/0,r=-1/0,o=1/0,a=-1/0;return[new n.Point(this.x,this.y),new n.Point(this.x2,this.y),new n.Point(this.x,this.y2),new n.Point(this.x2,this.y2)].forEach((function(e){e=e.transform(t),i=Math.min(i,e.x),r=Math.max(r,e.x),o=Math.min(o,e.y),a=Math.max(a,e.y)})),(e=new this.constructor).x=i,e.width=r-i,e.y=o,e.height=a-o,v(e),e}}}),n.BBox=n.invent({create:function(t){if(n.Box.apply(this,[].slice.call(arguments)),t instanceof n.Element){var e;try{if(!i.documentElement.contains){for(var r=t.node;r.parentNode;)r=r.parentNode;if(r!=i)throw new Error("Element not in the dom")}e=t.node.getBBox()}catch(i){if(t instanceof n.Shape){n.parser.draw||n.prepare();var o=t.clone(n.parser.draw.instance).show();e=o.node.getBBox(),o.remove()}else e={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}n.Box.call(this,e)}},inherit:n.Box,parent:n.Element,construct:{bbox:function(){return new n.BBox(this)}}}),n.BBox.prototype.constructor=n.BBox,n.extend(n.Element,{tbox:function(){return console.warn("Use of TBox is deprecated and mapped to RBox. Use .rbox() instead."),this.rbox(this.doc())}}),n.RBox=n.invent({create:function(t){n.Box.apply(this,[].slice.call(arguments)),t instanceof n.Element&&n.Box.call(this,t.node.getBoundingClientRect())},inherit:n.Box,parent:n.Element,extend:{addOffset:function(){return this.x+=e.pageXOffset,this.y+=e.pageYOffset,this}},construct:{rbox:function(t){return t?new n.RBox(this).transform(t.screenCTM().inverse()):new n.RBox(this).addOffset()}}}),n.RBox.prototype.constructor=n.RBox,n.Matrix=n.invent({create:function(e){var i,r=g([1,0,0,1,0,0]);for(e=e instanceof n.Element?e.matrixify():"string"==typeof e?g(e.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?g([].slice.call(arguments)):Array.isArray(e)?g(e):"object"===t(e)?e:r,i=x.length-1;i>=0;--i)this[x[i]]=null!=e[x[i]]?e[x[i]]:r[x[i]]},extend:{extract:function(){var t=f(this,0,1),e=f(this,1,0),i=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(i*Math.PI/180)+this.f*Math.sin(i*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(i*Math.PI/180)+this.e*Math.sin(-i*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),skewX:-i,skewY:180/Math.PI*Math.atan2(e.y,e.x),scaleX:Math.sqrt(this.a*this.a+this.b*this.b),scaleY:Math.sqrt(this.c*this.c+this.d*this.d),rotation:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(t){return this.destination=new n.Matrix(t),this},at:function(t){return this.destination?new n.Matrix({a:this.a+(this.destination.a-this.a)*t,b:this.b+(this.destination.b-this.b)*t,c:this.c+(this.destination.c-this.c)*t,d:this.d+(this.destination.d-this.d)*t,e:this.e+(this.destination.e-this.e)*t,f:this.f+(this.destination.f-this.f)*t}):this},multiply:function(t){return new n.Matrix(this.native().multiply(function(t){return t instanceof n.Matrix||(t=new n.Matrix(t)),t}(t).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(t,e){return new n.Matrix(this.native().translate(t||0,e||0))},scale:function(t,e,i,r){return 1==arguments.length?e=t:3==arguments.length&&(r=i,i=e,e=t),this.around(i,r,new n.Matrix(t,0,0,e,0,0))},rotate:function(t,e,i){return t=n.utils.radians(t),this.around(e,i,new n.Matrix(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0))},flip:function(t,e){return"x"==t?this.scale(-1,1,e,0):"y"==t?this.scale(1,-1,0,e):this.scale(-1,-1,t,null!=e?e:t)},skew:function(t,e,i,r){return 1==arguments.length?e=t:3==arguments.length&&(r=i,i=e,e=t),t=n.utils.radians(t),e=n.utils.radians(e),this.around(i,r,new n.Matrix(1,Math.tan(e),Math.tan(t),1,0,0))},skewX:function(t,e,i){return this.skew(t,0,e,i)},skewY:function(t,e,i){return this.skew(0,t,e,i)},around:function(t,e,i){return this.multiply(new n.Matrix(1,0,0,1,t||0,e||0)).multiply(i).multiply(new n.Matrix(1,0,0,1,-t||0,-e||0))},native:function(){for(var t=n.parser.native.createSVGMatrix(),e=x.length-1;e>=0;e--)t[x[e]]=this[x[e]];return t},toString:function(){return"matrix("+b(this.a)+","+b(this.b)+","+b(this.c)+","+b(this.d)+","+b(this.e)+","+b(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new n.Matrix(e)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,i){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===t(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=i?i:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(t,e){return this.destination=new n.Point(t,e),this},at:function(t){return this.destination?new n.Point({x:this.x+(this.destination.x-this.x)*t,y:this.y+(this.destination.y-this.y)*t}):this},native:function(){var t=n.parser.native.createSVGPoint();return t.x=this.x,t.y=this.y,t},transform:function(t){return new n.Point(this.native().matrixTransform(t.native()))}}}),n.extend(n.Element,{point:function(t,e){return new n.Point(t,e).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,i,r){if(null==e){for(e={},r=(i=this.node.attributes).length-1;r>=0;r--)e[i[r].nodeName]=n.regex.isNumber.test(i[r].nodeValue)?parseFloat(i[r].nodeValue):i[r].nodeValue;return e}if("object"===t(e))for(i in e)this.attr(i,e[i]);else if(null===i)this.node.removeAttribute(e);else{if(null==i)return null==(i=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(i)?parseFloat(i):i;"stroke-width"==e?this.attr("stroke",parseFloat(i)>0?this._stroke:null):"stroke"==e&&(this._stroke=i),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(i)&&(i=this.doc().defs().image(i,0,0)),i instanceof n.Image&&(i=this.doc().defs().pattern(0,0,(function(){this.add(i)})))),"number"==typeof i?i=new n.Number(i):n.Color.isColor(i)?i=new n.Color(i):Array.isArray(i)&&(i=new n.Array(i)),"leading"==e?this.leading&&this.leading(i):"string"==typeof r?this.node.setAttributeNS(r,e,i.toString()):this.node.setAttribute(e,i.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,i)}return this}}),n.extend(n.Element,{transform:function(e,i){var r,o;if("object"!==t(e))return r=new n.Matrix(this).extract(),"string"==typeof e?r[e]:r;if(r=new n.Matrix(this),i=!!i||!!e.relative,null!=e.a)r=i?r.multiply(new n.Matrix(e)):new n.Matrix(e);else if(null!=e.rotation)m(e,this),r=i?r.rotate(e.rotation,e.cx,e.cy):r.rotate(e.rotation-r.extract().rotation,e.cx,e.cy);else if(null!=e.scale||null!=e.scaleX||null!=e.scaleY){if(m(e,this),e.scaleX=null!=e.scale?e.scale:null!=e.scaleX?e.scaleX:1,e.scaleY=null!=e.scale?e.scale:null!=e.scaleY?e.scaleY:1,!i){var a=r.extract();e.scaleX=1*e.scaleX/a.scaleX,e.scaleY=1*e.scaleY/a.scaleY}r=r.scale(e.scaleX,e.scaleY,e.cx,e.cy)}else null!=e.skew||null!=e.skewX||null!=e.skewY?(m(e,this),e.skewX=null!=e.skew?e.skew:null!=e.skewX?e.skewX:0,e.skewY=null!=e.skew?e.skew:null!=e.skewY?e.skewY:0,i||(a=r.extract(),r=r.multiply((new n.Matrix).skew(a.skewX,a.skewY,e.cx,e.cy).inverse())),r=r.skew(e.skewX,e.skewY,e.cx,e.cy)):e.flip?("x"==e.flip||"y"==e.flip?e.offset=null==e.offset?this.bbox()["c"+e.flip]:e.offset:null==e.offset?(o=this.bbox(),e.flip=o.cx,e.offset=o.cy):e.flip=e.offset,r=(new n.Matrix).flip(e.flip,e.offset)):null==e.x&&null==e.y||(i?r=r.translate(e.x,e.y):(null!=e.x&&(r.e=e.x),null!=e.y&&(r.f=e.y)));return this.attr("transform",r)}}),n.extend(n.FX,{transform:function(e,i){var r,o,a=this.target();return"object"!==t(e)?(r=new n.Matrix(a).extract(),"string"==typeof e?r[e]:r):(i=!!i||!!e.relative,null!=e.a?r=new n.Matrix(e):null!=e.rotation?(m(e,a),r=new n.Rotate(e.rotation,e.cx,e.cy)):null!=e.scale||null!=e.scaleX||null!=e.scaleY?(m(e,a),e.scaleX=null!=e.scale?e.scale:null!=e.scaleX?e.scaleX:1,e.scaleY=null!=e.scale?e.scale:null!=e.scaleY?e.scaleY:1,r=new n.Scale(e.scaleX,e.scaleY,e.cx,e.cy)):null!=e.skewX||null!=e.skewY?(m(e,a),e.skewX=null!=e.skewX?e.skewX:0,e.skewY=null!=e.skewY?e.skewY:0,r=new n.Skew(e.skewX,e.skewY,e.cx,e.cy)):e.flip?("x"==e.flip||"y"==e.flip?e.offset=null==e.offset?a.bbox()["c"+e.flip]:e.offset:null==e.offset?(o=a.bbox(),e.flip=o.cx,e.offset=o.cy):e.flip=e.offset,r=(new n.Matrix).flip(e.flip,e.offset)):null==e.x&&null==e.y||(r=new n.Translate(e.x,e.y)),r?(r.relative=i,this.last().transforms.push(r),this._callStart()):this)}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(n.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(g(e[1])):t[e[0]].apply(t,e[1])}),new n.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,i){if(arguments.length>1&&"boolean"!=typeof i)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[n];else if("object"===t(e))for(n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[this.arguments[n]];this.inversed=!1,!0===i&&(this.inversed=!0)},extend:{arguments:[],method:"",at:function(t){for(var e=[],i=0,r=this.arguments.length;i<r;++i)e.push(this[this.arguments[i]]);var o=this._undo||new n.Matrix;return o=(new n.Matrix).morph(n.Matrix.prototype[this.method].apply(o,e)).at(t),this.inversed?o.inverse():o},undo:function(t){for(var e=0,i=this.arguments.length;e<i;++e)t[this.arguments[e]]=void 0===this[this.arguments[e]]?0:t[this.arguments[e]];return t.cx=this.cx,t.cy=this.cy,this._undo=new(n[u(this.method)])(t,!0).at(1),this}}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.Rotate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["rotation","cx","cy"],method:"rotate",at:function(t){var e=(new n.Matrix).rotate((new n.Number).morph(this.rotation-(this._undo?this._undo.rotation:0)).at(t),this.cx,this.cy);return this.inversed?e.inverse():e},undo:function(t){return this._undo=t,this}}}),n.Scale=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["scaleX","scaleY","cx","cy"],method:"scale"}}),n.Skew=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["skewX","skewY","cx","cy"],method:"skew"}}),n.extend(n.Element,{style:function(e,i){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===t(e))for(i in e)this.style(i,e[i]);else{if(!n.regex.isCss.test(e))return this.node.style[h(e)];for(e=e.split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/)}));i=e.pop();)this.style(i[0],i[1])}else this.node.style[h(e)]=null===i||n.regex.isBlank.test(i)?"":i;return this}}),n.Parent=n.invent({create:function(t){this.constructor.call(this,t)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),(function(t){return n.adopt(t)}))},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)>=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return n.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){var i,r,o=this.children();for(i=0,r=o.length;i<r;i++)o[i]instanceof n.Element&&t.apply(o[i],[i,o]),e&&o[i]instanceof n.Container&&o[i].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),n.extend(n.Parent,{ungroup:function(t,e){return 0===e||this instanceof n.Defs||this.node==n.parser.draw||(t=t||(this instanceof n.Doc?this:this.parent(n.Parent)),e=e||1/0,this.each((function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(t,e-1):this.toParent(t)})),this.node.firstChild||this.remove()),this},flatten:function(t,e){return this.ungroup(t,e)}}),n.Container=n.invent({create:function(t){this.constructor.call(this,t)},inherit:n.Parent}),n.ViewBox=n.invent({create:function(e){var i,r,o,a,s,l,c,h=1,u=1,d=/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi;if(e instanceof n.Element){for(l=e,c=e,s=(e.attr("viewBox")||"").match(d),e.bbox,o=new n.Number(e.width()),a=new n.Number(e.height());"%"==o.unit;)h*=o.value,o=new n.Number(l instanceof n.Doc?l.parent().offsetWidth:l.parent().width()),l=l.parent();for(;"%"==a.unit;)u*=a.value,a=new n.Number(c instanceof n.Doc?c.parent().offsetHeight:c.parent().height()),c=c.parent();this.x=0,this.y=0,this.width=o*h,this.height=a*u,this.zoom=1,s&&(i=parseFloat(s[0]),r=parseFloat(s[1]),o=parseFloat(s[2]),a=parseFloat(s[3]),this.zoom=this.width/this.height>o/a?this.height/a:this.width/o,this.x=i,this.y=r,this.width=o,this.height=a)}else e="string"==typeof e?e.match(d).map((function(t){return parseFloat(t)})):Array.isArray(e)?e:"object"===t(e)?[e.x,e.y,e.width,e.height]:4==arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=e[0],this.y=e[1],this.width=e[2],this.height=e[3]},extend:{toString:function(){return this.x+" "+this.y+" "+this.width+" "+this.height},morph:function(t,e,i,r){return this.destination=new n.ViewBox(t,e,i,r),this},at:function(t){return this.destination?new n.ViewBox([this.x+(this.destination.x-this.x)*t,this.y+(this.destination.y-this.y)*t,this.width+(this.destination.width-this.width)*t,this.height+(this.destination.height-this.height)*t]):this}},parent:n.Container,construct:{viewbox:function(t,e,i,r){return 0==arguments.length?new n.ViewBox(this):this.attr("viewBox",new n.ViewBox(t,e,i,r))}}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(t){n.Element.prototype[t]=function(e){return n.on(this.node,t,e),this}})),n.listeners=[],n.handlerMap=[],n.listenerId=0,n.on=function(t,e,i,r,o){var a=i.bind(r||t.instance||t),s=(n.handlerMap.indexOf(t)+1||n.handlerMap.push(t))-1,l=e.split(".")[0],c=e.split(".")[1]||"*";n.listeners[s]=n.listeners[s]||{},n.listeners[s][l]=n.listeners[s][l]||{},n.listeners[s][l][c]=n.listeners[s][l][c]||{},i._svgjsListenerId||(i._svgjsListenerId=++n.listenerId),n.listeners[s][l][c][i._svgjsListenerId]=a,t.addEventListener(l,a,o||!1)},n.off=function(t,e,i){var r=n.handlerMap.indexOf(t),o=e&&e.split(".")[0],a=e&&e.split(".")[1],s="";if(-1!=r)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;n.listeners[r][o]&&n.listeners[r][o][a||"*"]&&(t.removeEventListener(o,n.listeners[r][o][a||"*"][i],!1),delete n.listeners[r][o][a||"*"][i])}else if(a&&o){if(n.listeners[r][o]&&n.listeners[r][o][a]){for(i in n.listeners[r][o][a])n.off(t,[o,a].join("."),i);delete n.listeners[r][o][a]}}else if(a)for(e in n.listeners[r])for(s in n.listeners[r][e])a===s&&n.off(t,[e,a].join("."));else if(o){if(n.listeners[r][o]){for(s in n.listeners[r][o])n.off(t,[o,s].join("."));delete n.listeners[r][o]}}else{for(e in n.listeners[r])n.off(t,e);delete n.listeners[r],delete n.handlerMap[r]}},n.extend(n.Element,{on:function(t,e,i,r){return n.on(this.node,t,e,i,r),this},off:function(t,e){return n.off(this.node,t,e),this},fire:function(t,i){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new n.CustomEvent(t,{detail:i,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),n.Defs=n.invent({create:"defs",inherit:n.Container}),n.G=n.invent({create:"g",inherit:n.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)},y:function(t){return null==t?this.transform("y"):this.transform({y:t-this.y()},!0)},cx:function(t){return null==t?this.gbox().cx:this.x(t-this.gbox().width/2)},cy:function(t){return null==t?this.gbox().cy:this.y(t-this.gbox().height/2)},gbox:function(){var t=this.bbox(),e=this.transform();return t.x+=e.x,t.x2+=e.x,t.cx+=e.x,t.y+=e.y,t.y2+=e.y,t.cy+=e.y,t}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(t){t&&("svg"==(t="string"==typeof t?i.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,n.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:n.Container,extend:{namespace:function(){return this.attr({xmlns:n.ns,version:"1.1"}).attr("xmlns:xlink",n.xlink,n.xmlns).attr("xmlns:svgjs",n.svgjs,n.xmlns)},defs:function(){var t;return this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(t):this._defs=new n.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},spof:function(){var t=this.node.getScreenCTM();return t&&this.style("left",-t.e%1+"px").style("top",-t.f%1+"px"),this},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,n.parser.draw&&!n.parser.draw.parentNode&&this.node.appendChild(n.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=y(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),n.extend(n.Element,{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},previous:function(){return this.siblings()[this.position()-1]},forward:function(){var t=this.position()+1,e=this.parent();return e.removeElement(this).add(this,t),e instanceof n.Doc&&e.node.appendChild(e.defs().node),this},backward:function(){var t=this.position();return t>0&&this.parent().removeElement(this).add(this,t-1),this},front:function(){var t=this.parent();return t.node.appendChild(this.node),t instanceof n.Doc&&t.node.appendChild(t.defs().node),this},back:function(){return this.position()>0&&this.parent().removeElement(this).add(this,0),this},before:function(t){t.remove();var e=this.position();return this.parent().add(t,e),this},after:function(t){t.remove();var e=this.position();return this.parent().add(t,e+1),this}}),n.Mask=n.invent({create:function(){this.constructor.call(this,n.create("mask")),this.targets=[]},inherit:n.Container,extend:{remove:function(){for(var t=this.targets.length-1;t>=0;t--)this.targets[t]&&this.targets[t].unmask();return this.targets=[],n.Element.prototype.remove.call(this),this}},construct:{mask:function(){return this.defs().put(new n.Mask)}}}),n.extend(n.Element,{maskWith:function(t){return this.masker=t instanceof n.Mask?t:this.parent().mask().add(t),this.masker.targets.push(this),this.attr("mask",'url("#'+this.masker.attr("id")+'")')},unmask:function(){return delete this.masker,this.attr("mask",null)}}),n.ClipPath=n.invent({create:function(){this.constructor.call(this,n.create("clipPath")),this.targets=[]},inherit:n.Container,extend:{remove:function(){for(var t=this.targets.length-1;t>=0;t--)this.targets[t]&&this.targets[t].unclip();return this.targets=[],this.parent().removeElement(this),this}},construct:{clip:function(){return this.defs().put(new n.ClipPath)}}}),n.extend(n.Element,{clipWith:function(t){return this.clipper=t instanceof n.ClipPath?t:this.parent().clip().add(t),this.clipper.targets.push(this),this.attr("clip-path",'url("#'+this.clipper.attr("id")+'")')},unclip:function(){return delete this.clipper,this.attr("clip-path",null)}}),n.Gradient=n.invent({create:function(t){this.constructor.call(this,n.create(t+"Gradient")),this.type=t},inherit:n.Container,extend:{at:function(t,e,i){return this.put(new n.Stop).update(t,e,i)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="gradientTransform"),n.Container.prototype.attr.call(this,t,e,i)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),n.extend(n.Gradient,n.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(t),fy:new n.Number(e)}):this.attr({x1:new n.Number(t),y1:new n.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(t),cy:new n.Number(e)}):this.attr({x2:new n.Number(t),y2:new n.Number(e)})}}),n.extend(n.Defs,{gradient:function(t,e){return this.put(new n.Gradient(t)).update(e)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(t){return("number"==typeof t||t instanceof n.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new n.Number(t.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="patternTransform"),n.Container.prototype.attr.call(this,t,e,i)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),n.extend(n.Defs,{pattern:function(t,e,i){return this.put(new n.Pattern).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(t){this.constructor.call(this,t)},inherit:n.Element}),n.Bare=n.invent({create:function(t,e){if(this.constructor.call(this,n.create(t)),e)for(var i in e.prototype)"function"==typeof e.prototype[i]&&(this[i]=e.prototype[i])},inherit:n.Element,extend:{words:function(t){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this.node.appendChild(i.createTextNode(t)),this}}}),n.extend(n.Parent,{element:function(t,e){return this.put(new n.Bare(t,e))}}),n.Symbol=n.invent({create:"symbol",inherit:n.Container,construct:{symbol:function(){return this.put(new n.Symbol)}}}),n.Use=n.invent({create:"use",inherit:n.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,n.xlink)}},construct:{use:function(t,e){return this.put(new n.Use).element(t,e)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(t,e){return this.put(new n.Rect).size(t,e)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(t){return this.put(new n.Circle).rx(new n.Number(t).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(t,e){return this.put(new n.Ellipse).size(t,e).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),n.extend(n.Circle,n.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new n.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new n.Number(t).divide(2))},size:function(t,e){var i=p(this,t,e);return this.rx(new n.Number(i.width).divide(2)).ry(new n.Number(i.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,i,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:r}:new n.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=p(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,i,r){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=t?[t,e,i,r]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(t){return this.put(new n.Polyline).plot(t||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(t){return this.put(new n.Polygon).plot(t||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new n.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=p(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new n.PathArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("d",this.array().move(t,e))},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},size:function(t,e){var i=p(this,t,e);return this.attr("d",this.array().size(i.width,i.height))},width:function(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)},height:function(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}},construct:{path:function(t){return this.put(new n.Path).plot(t||new n.PathArray)}}}),n.Image=n.invent({create:"image",inherit:n.Shape,extend:{load:function(t){if(!t)return this;var i=this,r=new e.Image;return n.on(r,"load",(function(){n.off(r);var e=i.parent(n.Pattern);null!==e&&(0==i.width()&&0==i.height()&&i.size(r.width,r.height),e&&0==e.width()&&0==e.height()&&e.size(i.width(),i.height()),"function"==typeof i._loaded&&i._loaded.call(i,{width:r.width,height:r.height,ratio:r.width/r.height,url:t}))})),n.on(r,"error",(function(t){n.off(r),"function"==typeof i._error&&i._error.call(i,t)})),this.attr("href",r.src=this.src=t,n.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,i){return this.put(new n.Image).load(t).size(e||0,i||e||0)}}}),n.Text=n.invent({create:function(){this.constructor.call(this,n.create("text")),this.dom.leading=new n.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",n.defaults.attrs["font-family"])},inherit:n.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},y:function(t){var e=this.attr("y"),i="number"==typeof e?e-this.bbox().y:0;return null==t?"number"==typeof e?e-i:e:this.attr("y","number"==typeof t.valueOf()?t+i:t)},cx:function(t){return null==t?this.bbox().cx:this.x(t-this.bbox().width/2)},cy:function(t){return null==t?this.bbox().cy:this.y(t-this.bbox().height/2)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,i=0,r=e.length;i<r;++i)0!=i&&3!=e[i].nodeType&&1==n.adopt(e[i]).dom.newLined&&(t+="\n"),t+=e[i].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else{i=0;for(var o=(t=t.split("\n")).length;i<o;i++)this.tspan(t[i]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new n.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,e=n.utils.map(n.utils.filterSVGElements(t.childNodes),(function(t){return n.adopt(t)}));return new n.Set(e)},rebuild:function(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){var e=this,i=0,r=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?i+=r:(this.attr("dy",r+i),i=0))})),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new n.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new n.Text).text(t)},plain:function(t){return this.put(new n.Text).plain(t)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(n.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(i.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,i=new n.Tspan;return!1===this._build&&this.clear(),e.appendChild(i.node),i.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,path:function(t){for(var e=new n.TextPath,i=this.doc().defs().path(t);this.node.hasChildNodes();)e.node.appendChild(this.node.firstChild);return this.node.appendChild(e.node),e.attr("href","#"+i,n.xlink),this},array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}}),n.A=n.invent({create:"a",inherit:n.Container,extend:{to:function(t){return this.attr("href",t,n.xlink)},show:function(t){return this.attr("show",t,n.xlink)},target:function(t){return this.attr("target",t)}},construct:{link:function(t){return this.put(new n.A).to(t)}}}),n.extend(n.Element,{linkTo:function(t){var e=new n.A;return"function"==typeof t?t.call(e,e):e.to(t),this.parent().put(e).put(this)}}),n.Marker=n.invent({create:"marker",inherit:n.Container,extend:{width:function(t){return this.attr("markerWidth",t)},height:function(t){return this.attr("markerHeight",t)},ref:function(t,e){return this.attr("refX",t).attr("refY",e)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return"url(#"+this.id()+")"}},construct:{marker:function(t,e,i){return this.defs().marker(t,e,i)}}}),n.extend(n.Defs,{marker:function(t,e,i){return this.put(new n.Marker).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(i)}}),n.extend(n.Line,n.Polyline,n.Polygon,n.Path,{marker:function(t,e,i,r){var o=["marker"];return"all"!=t&&o.push(t),o=o.join("-"),t=arguments[1]instanceof n.Marker?arguments[1]:this.doc().marker(e,i,r),this.attr(o,t)}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function c(t,e,i,r){return i+r.replace(n.regex.dots," .")}function h(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function u(t){return t.charAt(0).toUpperCase()+t.slice(1)}function d(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function p(t,e,i){if(null==e||null==i){var n=t.bbox();null==e?e=n.width/n.height*i:null==i&&(i=n.height/n.width*e)}return{width:e,height:i}}function f(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function g(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function m(t,e){t.cx=null==t.cx?e.bbox().cx:t.cx,t.cy=null==t.cy?e.bbox().cy:t.cy}function y(t){for(var i=t.childNodes.length-1;i>=0;i--)t.childNodes[i]instanceof e.SVGElement&&y(t.childNodes[i]);return n.adopt(t).id(n.eid(t.nodeName))}function v(t){return null==t.x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function b(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e,i={};i[t]=function(i){if(void 0===i)return this;if("string"==typeof i||n.Color.isRgb(i)||i&&"function"==typeof i.fill)this.attr(t,i);else for(e=l[t].length-1;e>=0;e--)null!=i[l[t][e]]&&this.attr(l.prefix(t,l[t][e]),i[l[t][e]]);return this},n.extend(n.Element,n.FX,i)})),n.extend(n.Element,n.FX,{rotate:function(t,e,i){return this.transform({rotation:t,cx:e,cy:i})},skew:function(t,e,i,n){return 1==arguments.length||3==arguments.length?this.transform({skew:t,cx:e,cy:i}):this.transform({skewX:t,skewY:e,cx:i,cy:n})},scale:function(t,e,i,n){return 1==arguments.length||3==arguments.length?this.transform({scale:t,cx:e,cy:i}):this.transform({scaleX:t,scaleY:e,cx:i,cy:n})},translate:function(t,e){return this.transform({x:t,y:e})},flip:function(t,e){return e="number"==typeof t?t:e,this.transform({flip:t||"both",offset:e})},matrix:function(t){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new n.Number(t).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(t){return this.y(new n.Number(t).plus(this instanceof n.FX?0:this.y()),!0)},dmove:function(t,e){return this.dx(t).dy(e)}}),n.extend(n.Rect,n.Ellipse,n.Circle,n.Gradient,n.FX,{radius:function(t,e){var i=(this._target||this).type;return"radial"==i||"circle"==i?this.attr("r",new n.Number(t)):this.rx(t).ry(null==e?t:e)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),n.extend(n.Parent,n.Text,n.Tspan,n.FX,{font:function(e,i){if("object"===t(e))for(i in e)this.font(i,e[i]);return"leading"==e?this.leading(i):"anchor"==e?this.attr("text-anchor",i):"size"==e||"family"==e||"weight"==e||"stretch"==e||"variant"==e||"style"==e?this.attr("font-"+e,i):this.attr(e,i)}}),n.Set=n.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){var t,e,i=[].slice.call(arguments);for(t=0,e=i.length;t<e;t++)this.members.push(i[t]);return this},remove:function(t){var e=this.index(t);return e>-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)>=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members},bbox:function(){if(0==this.members.length)return new n.RBox;var t=this.members[0].rbox(this.members[0].doc());return this.each((function(){t=t.merge(this.rbox(this.doc()))})),t}},construct:{set:function(t){return new n.Set(t)}}}),n.FX.Set=n.invent({create:function(t){this.set=t}}),n.Set.inherit=function(){var t=[];for(var e in n.Shape.prototype)"function"==typeof n.Shape.prototype[e]&&"function"!=typeof n.Set.prototype[e]&&t.push(e);for(var e in t.forEach((function(t){n.Set.prototype[t]=function(){for(var e=0,i=this.members.length;e<i;e++)this.members[e]&&"function"==typeof this.members[e][t]&&this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new n.FX.Set(this)):this}})),t=[],n.FX.prototype)"function"==typeof n.FX.prototype[e]&&"function"!=typeof n.FX.Set.prototype[e]&&t.push(e);t.forEach((function(t){n.FX.Set.prototype[t]=function(){for(var e=0,i=this.set.members.length;e<i;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}}))},n.extend(n.Element,{data:function(e,i,n){if("object"===t(e))for(i in e)this.data(i,e[i]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+e))}catch(t){return this.attr("data-"+e)}else this.attr("data-"+e,null===i?null:!0===n||"string"==typeof i||"number"==typeof i?i:JSON.stringify(i));return this}}),n.extend(n.Element,{remember:function(e,i){if("object"===t(arguments[0]))for(var i in e)this.remember(i,e[i]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=i}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(t){var e=i.getElementById(function(t){var e=(t||"").toString().match(n.regex.reference);if(e)return e[1]}(t)||t);return n.adopt(e)},n.select=function(t,e){return new n.Set(n.utils.map((e||i).querySelectorAll(t),(function(t){return n.adopt(t)})))},n.extend(n.Parent,{select:function(t){return n.select(t,this.node)}});var x="abcdef".split("");if("function"!=typeof e.CustomEvent){var w=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=i.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};w.prototype=e.Event.prototype,n.CustomEvent=w}else n.CustomEvent=e.CustomEvent;return function(t){for(var i=0,n=["moz","webkit"],r=0;r<n.length&&!e.requestAnimationFrame;++r)t.requestAnimationFrame=t[n[r]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[n[r]+"CancelAnimationFrame"]||t[n[r]+"CancelRequestAnimationFrame"];t.requestAnimationFrame=t.requestAnimationFrame||function(e){var n=(new Date).getTime(),r=Math.max(0,16-(n-i)),o=t.setTimeout((function(){e(n+r)}),r);return i=n+r,o},t.cancelAnimationFrame=t.cancelAnimationFrame||t.clearTimeout}(e),n},"function"==typeof define&&define.amd?define((function(){return at(ot,ot.document)})):"object"===("undefined"==typeof exports?"undefined":t(exports))&&"undefined"!=typeof module?module.exports=ot.document?at(ot,ot.document):function(t){return at(t,t.document)}:ot.SVG=at(ot,ot.document),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,n,r){return this.put(new SVG.DisplacementMapEffect(t,e,i,n,r))},specularLighting:function(t,e,i,n){return this.put(new SVG.SpecularLightingEffect(t,e,i,n))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,n,r){return this.put(new SVG.TurbulenceEffect(t,e,i,n,r))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,n){return this.parent()&&this.parent().displacementMap(this,t,e,i,n)},specularLighting:function(t,e,i,n){return this.parent()&&this.parent().specularLighting(t,e,i,n).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,n,r){return this.parent()&&this.parent().turbulence(t,e,i,n,r).in(this)}};SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var e={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=r(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=r(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,n,r){this.attr({in:t,in2:e,scale:i,xChannelSelector:n,yChannelSelector:r})},gaussianBlur:function(t,e){null!=t||null!=e?this.attr("stdDeviation",function(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,n=[];e<i;e++)n.push(t[e]);return n.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,n,r){this.attr({numOctaves:e,seed:i,stitchTiles:n,baseFrequency:t,type:r})}},i={merge:function(){var t;if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each((function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))}))}else{t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))}},componentTransfer:function(t){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(t){this[t]=new(SVG["Func"+t.toUpperCase()])("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}.bind(this)),t)for(var e in t.rgb&&(["r","g","b"].forEach(function(e){this[e].attr(t.rgb)}.bind(this)),delete t.rgb),t)this[e].attr(t[e])},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,n){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:n})}},n={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,n,r,o){this.attr({x:t,y:e,z:i,pointsAtX:n,pointsAtY:r,pointsAtZ:o})},mergeNode:function(t){this.attr("in",t)}};function r(t){return Array.isArray(t)&&(t=new SVG.Array(t)),t.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function o(){var t=function(){};for(var e in"function"==typeof arguments[arguments.length-1]&&(t=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[e])t(arguments[e][i],i,arguments[e])}["r","g","b","a"].forEach((function(t){n["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}})),o(e,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),o(i,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),o(n,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function t(t,r,o,a,s,l,c){for(var h=t.slice(r,o||c),u=a.slice(s,l||c),d=0,p={pos:[0,0],start:[0,0]},f={pos:[0,0],start:[0,0]};h[d]=e.call(p,h[d]),u[d]=e.call(f,u[d]),h[d][0]!=u[d][0]||"M"==h[d][0]||"A"==h[d][0]&&(h[d][4]!=u[d][4]||h[d][5]!=u[d][5])?(Array.prototype.splice.apply(h,[d,1].concat(n.call(p,h[d]))),Array.prototype.splice.apply(u,[d,1].concat(n.call(f,u[d])))):(h[d]=i.call(p,h[d]),u[d]=i.call(f,u[d])),++d!=h.length||d!=u.length;)d==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]),d==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]);return{start:h,dest:u}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function n(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":t=(e=function(t,e){var i,n,r,o,a,s,l,c,h,u,d,p,f,g,m,y,v,b,x,w,_,S,P,k,C,T,A=Math.abs(e[1]),O=Math.abs(e[2]),M=e[3]%360,E=e[4],I=e[5],D=e[6],L=e[7],j=new SVG.Point(t),N=new SVG.Point(D,L),F=[];if(0===A||0===O||j.x===N.x&&j.y===N.y)return[["C",j.x,j.y,N.x,N.y,N.x,N.y]];for((n=(i=new SVG.Point((j.x-N.x)/2,(j.y-N.y)/2).transform((new SVG.Matrix).rotate(M))).x*i.x/(A*A)+i.y*i.y/(O*O))>1&&(A*=n=Math.sqrt(n),O*=n),r=(new SVG.Matrix).rotate(M).scale(1/A,1/O).rotate(-M),j=j.transform(r),s=(o=[(N=N.transform(r)).x-j.x,N.y-j.y])[0]*o[0]+o[1]*o[1],a=Math.sqrt(s),o[0]/=a,o[1]/=a,l=s<4?Math.sqrt(1-s/4):0,E===I&&(l*=-1),c=new SVG.Point((N.x+j.x)/2+l*-o[1],(N.y+j.y)/2+l*o[0]),h=new SVG.Point(j.x-c.x,j.y-c.y),u=new SVG.Point(N.x-c.x,N.y-c.y),d=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(d*=-1),p=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(p*=-1),I&&d>p&&(p+=2*Math.PI),!I&&d<p&&(p-=2*Math.PI),y=[],v=d,f=(p-d)/(g=Math.ceil(2*Math.abs(d-p)/Math.PI)),m=4*Math.tan(f/4)/3,_=0;_<=g;_++)x=Math.cos(v),b=Math.sin(v),w=new SVG.Point(c.x+x,c.y+b),y[_]=[new SVG.Point(w.x+m*b,w.y-m*x),w,new SVG.Point(w.x-m*b,w.y+m*x)],v+=f;for(y[0][0]=y[0][1].clone(),y[y.length-1][2]=y[y.length-1][1].clone(),r=(new SVG.Matrix).rotate(M).scale(A,O).rotate(-M),_=0,S=y.length;_<S;_++)y[_][0]=y[_][0].transform(r),y[_][1]=y[_][1].transform(r),y[_][2]=y[_][2].transform(r);for(_=1,S=y.length;_<S;_++)P=(w=y[_-1][2]).x,k=w.y,C=(w=y[_][0]).x,T=w.y,D=(w=y[_][1]).x,L=w.y,F.push(["C",P,k,C,T,D,L]);return F}(this.pos,t))[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function r(t,e){if(!1===e)return!1;for(var i=e,n=t.length;i<n;++i)if("M"==t[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(e){for(var i=this.value,n=this.parse(e),o=0,a=0,s=!1,l=!1;!1!==o||!1!==a;){var c;s=r(i,!1!==o&&o+1),l=r(n,!1!==a&&a+1),!1===o&&(o=0==(c=new SVG.PathArray(h.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===a&&(a=0==(c=new SVG.PathArray(h.dest).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var h=t(i,o,s,n,a,l);i=i.slice(0,o).concat(h.start,!1===s?[]:i.slice(s)),n=n.slice(0,a).concat(h.dest,!1===l?[]:n.slice(l)),o=!1!==s&&o+h.start.length,a=!1!==l&&a+h.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=n,this}})}(),function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",(function(t){i.start(t)})),this.el.on("touchstart.drag",(function(t){i.start(t)}))},t.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},t.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},t.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,n=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:n,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(t){e.drag(t)})),SVG.on(window,"touchmove.drag",(function(t){e.drag(t)})),SVG.on(window,"mouseup.drag",(function(t){e.end(t)})),SVG.on(window,"touchend.drag",(function(t){e.end(t)})),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},t.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),n=this.startPoints.box.x+i.x-this.startPoints.point.x,r=this.startPoints.box.y+i.y-this.startPoints.point.y,o=this.constraint,a=i.x-this.startPoints.point.x,s=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof o){var l=o.call(this.el,n,r,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(n):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(r):!1!==l.y&&this.el.y(l.y)}else"object"==typeof o&&(null!=o.minX&&n<o.minX?a=(n=o.minX)-this.startPoints.box.x:null!=o.maxX&&n>o.maxX-e.width&&(a=(n=o.maxX-e.width)-this.startPoints.box.x),null!=o.minY&&r<o.minY?s=(r=o.minY)-this.startPoints.box.y:null!=o.maxY&&r>o.maxY-e.height&&(s=(r=o.maxY-e.height)-this.startPoints.box.y),null!=o.snapToGrid&&(n-=n%o.snapToGrid,r-=r%o.snapToGrid,a-=a%o.snapToGrid,s-=s%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:a,y:s},!0):this.el.move(n,r));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var n=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?n.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1}}t.prototype.init=function(t,e){var i=this.el.bbox();for(var n in this.options={},this.el.selectize.defaults)this.options[n]=this.el.selectize.defaults[n],void 0!==e[n]&&(this.options[n]=e[n]);this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawCircles()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map((function(e){return[e[0]-t.x,e[1]-t.y]}))},t.prototype.drawCircles=function(){for(var t=this,e=this.getPointArray(),i=0,n=e.length;i<n;++i){var r=function(e){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var n=i.pageX||i.touches[0].pageX,r=i.pageY||i.touches[0].pageY;t.el.fire("point",{x:n,y:r,i:e,event:i})}}(i);this.pointSelection.set.add(this.nested.circle(this.options.radius).center(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",r).on("mousedown",r))}},t.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each((function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])}))},t.prototype.updateRectSelection=function(){var t=this.el.bbox();this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points&&(this.rectSelection.set.get(2).center(t.width,0),this.rectSelection.set.get(3).center(t.width,t.height),this.rectSelection.set.get(4).center(0,t.height),this.rectSelection.set.get(5).center(t.width/2,0),this.rectSelection.set.get(6).center(t.width,t.height/2),this.rectSelection.set.get(7).center(t.width/2,t.height),this.rectSelection.set.get(8).center(0,t.height/2)),this.options.rotationPoint&&(this.options.points?this.rectSelection.set.get(9).center(t.width/2,20):this.rectSelection.set.get(1).center(t.width/2,20))},t.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function n(t){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var n=i.pageX||i.touches[0].pageX,r=i.pageY||i.touches[0].pageY;e.el.fire(t,{x:n,y:r,event:i})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points&&!this.rectSelection.set.get(1)){var r="touchstart",o="mousedown";this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0,0).attr("class",this.options.classPoints+"_lt").on(o,n("lt")).on(r,n("lt"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(i.width,0).attr("class",this.options.classPoints+"_rt").on(o,n("rt")).on(r,n("rt"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(i.width,i.height).attr("class",this.options.classPoints+"_rb").on(o,n("rb")).on(r,n("rb"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0,i.height).attr("class",this.options.classPoints+"_lb").on(o,n("lb")).on(r,n("lb"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(i.width/2,0).attr("class",this.options.classPoints+"_t").on(o,n("t")).on(r,n("t"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(i.width,i.height/2).attr("class",this.options.classPoints+"_r").on(o,n("r")).on(r,n("r"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(i.width/2,i.height).attr("class",this.options.classPoints+"_b").on(o,n("b")).on(r,n("b"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0,i.height/2).attr("class",this.options.classPoints+"_l").on(o,n("l")).on(r,n("l"))),this.rectSelection.set.each((function(){this.addClass(e.options.classPoints)}))}if(this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var a=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var i=t.pageX||t.touches[0].pageX,n=t.pageY||t.touches[0].pageY;e.el.fire("rot",{x:i,y:n,event:t})};this.rectSelection.set.add(this.nested.circle(this.options.radius).center(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",a).on("mousedown",a))}},t.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},t.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){t.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(t){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){t.handler()}))},t.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each((function(){this.remove()})),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each((function(){this.remove()})),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,i){return"object"==typeof e&&(i=e,e=!0),(this.remember("_selectHandler")||new t(this)).init(void 0===e||e,i||{}),this}}),SVG.Element.prototype.selectize.defaults={points:!0,classRect:"svg_select_boundingRect",classPoints:"svg_select_points",radius:7,rotationPoint:!0,deepSelect:!1}}(),function(){(function(){function t(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}t.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},t.prototype._extractPosition=function(t){return{x:null!=t.clientX?t.clientX:t.touches[0].clientX,y:null!=t.clientY?t.clientY:t.touches[0].clientY}},t.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rb.resize",(function(t){e.resize(t||window.event)})),this.el.on("lb.resize",(function(t){e.resize(t||window.event)})),this.el.on("t.resize",(function(t){e.resize(t||window.event)})),this.el.on("r.resize",(function(t){e.resize(t||window.event)})),this.el.on("b.resize",(function(t){e.resize(t||window.event)})),this.el.on("l.resize",(function(t){e.resize(t||window.event)})),this.el.on("rot.resize",(function(t){e.resize(t||window.event)})),this.el.on("point.resize",(function(t){e.resize(t||window.event)})),this.update()}},t.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},t.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i){var n=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[n[t.detail.i][0],n[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(t,e){var i=this.snapToGrid(t,e);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,n=e+this.parameters.p.y,r=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),o=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),a=this.parameters.rotation+180*(o-r)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(a-a%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),n=this.el.array().valueOf();n[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],n[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(n)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"touchend.resize",(function(){e.done()})),SVG.on(window,"mousemove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"mouseup.resize",(function(){e.done()}))},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),n=i.x-this.parameters.p.x,r=i.y-this.parameters.p.y;this.lastUpdateCall=[n,r],this.calc(n,r),this.el.fire("resizing",{dx:n,dy:r,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},t.prototype.snapToGrid=function(t,e,i,n){var r;return void 0!==n?r=[(i+t)%this.options.snapToGrid,(n+e)%this.options.snapToGrid]:(i=null==i?3:i,r=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(r[0]-=this.options.snapToGrid),e<0&&(r[1]-=this.options.snapToGrid),t-=Math.abs(r[0])<this.options.snapToGrid/2?r[0]:r[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(r[1])<this.options.snapToGrid/2?r[1]:r[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,n)},t.prototype.constraintToBox=function(t,e,i,n){var r,o,a=this.options.constraint||{};return void 0!==n?(r=i,o=n):(r=this.parameters.box.x+(1&i?0:this.parameters.box.width),o=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==a.minX&&r+t<a.minX&&(t=a.minX-r),void 0!==a.maxX&&r+t>a.maxX&&(t=a.maxX-r),void 0!==a.minY&&o+e<a.minY&&(e=a.minY-o),void 0!==a.maxY&&o+e>a.maxY&&(e=a.maxY-o),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),n=this.parameters.box.width/this.parameters.box.height,r=this.parameters.box.width+t[0],o=this.parameters.box.height-t[1],a=r/o;return a<n?(i[1]=r/n-this.parameters.box.height,e&&(i[1]=-i[1])):a>n&&(i[0]=this.parameters.box.width-o*n,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),function(t,e){void 0===e&&(e={});var i=e.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}('.apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);\n}\n.apexcharts-canvas.dark {\n background: #343F57;\n}\n\n.apexcharts-inner {\n position: relative;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-gridline, .apexcharts-text {\n pointer-events: none;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n.apexcharts-tooltip.light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n.apexcharts-tooltip.dark {\n color: #fff;\n background: rgba(30,30,30, 0.8);\n}\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line {\n pointer-events: none;\n}\n\n.apexcharts-tooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n.apexcharts-tooltip.light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n.apexcharts-tooltip.dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-z-label:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n.apexcharts-tooltip-series-group.active, .apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0 !important;\n}\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n.apexcharts-tooltip-candlestick {\n padding: 4px 8px;\n}\n.apexcharts-tooltip-candlestick > div {\n margin: 4px 0;\n}\n.apexcharts-tooltip-candlestick span.value {\n font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: bold;\n display: block;\n margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-left: -6px;\n}\n.apexcharts-xaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.dark:after {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n.apexcharts-xaxistooltip-bottom.dark:before {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color:#ECEFF1\n}\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n.apexcharts-xaxistooltip-top.dark:after {\n border-top-color:rgba(0, 0, 0, 0.5);\n}\n.apexcharts-xaxistooltip-top.dark:before {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n\n.apexcharts-xaxistooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n.apexcharts-yaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-top: -6px;\n}\n.apexcharts-yaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n.apexcharts-yaxistooltip-left.dark:after {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n.apexcharts-yaxistooltip-left.dark:before {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n.apexcharts-yaxistooltip-right.dark:after {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n.apexcharts-yaxistooltip-right.dark:before {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.active {\n opacity: 1;\n}\n.apexcharts-yaxistooltip-hidden {\n display: none;\n}\n\n.apexcharts-xcrosshairs, .apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.active, .apexcharts-ycrosshairs.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-zoom-rect {\n pointer-events: none;\n}\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_points, .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n.svg_select_points_l, .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n fill: #888;\n}\n.apexcharts-canvas.zoomable .hovering-zoom {\n cursor: crosshair\n}\n.apexcharts-canvas.zoomable .hovering-pan {\n cursor: move\n}\n\n.apexcharts-xaxis,\n.apexcharts-yaxis {\n pointer-events: none;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoom-in-icon,\n.apexcharts-zoom-out-icon,\n.apexcharts-reset-zoom-icon,\n.apexcharts-pan-icon,\n.apexcharts-selection-icon,\n.apexcharts-menu-icon,\n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n\n.apexcharts-zoom-icon svg,\n.apexcharts-zoom-in-icon svg,\n.apexcharts-zoom-out-icon svg,\n.apexcharts-reset-zoom-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n\n.dark .apexcharts-zoom-icon svg,\n.dark .apexcharts-zoom-in-icon svg,\n.dark .apexcharts-zoom-out-icon svg,\n.dark .apexcharts-reset-zoom-icon svg,\n.dark .apexcharts-pan-icon svg,\n.dark .apexcharts-selection-icon svg,\n.dark .apexcharts-menu-icon svg,\n.dark .apexcharts-toolbar-custom-icon svg{\n fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.selected svg {\n fill: #008FFB;\n}\n.light .apexcharts-selection-icon:not(.selected):hover svg,\n.light .apexcharts-zoom-icon:not(.selected):hover svg,\n.light .apexcharts-zoom-in-icon:hover svg,\n.light .apexcharts-zoom-out-icon:hover svg,\n.light .apexcharts-reset-zoom-icon:hover svg,\n.light .apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon, .apexcharts-menu-icon {\n position: relative;\n}\n.apexcharts-reset-zoom-icon {\n margin-left: 5px;\n}\n.apexcharts-zoom-icon, .apexcharts-reset-zoom-icon, .apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoom-out-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n.apexcharts-pan-icon.selected svg {\n stroke: #008FFB;\n}\n.apexcharts-pan-icon:not(.selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n top: 0px;\n right: 3px;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.apexcharts-toolbar svg {\n pointer-events: none;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n.light .apexcharts-menu-item:hover {\n background: #eee;\n}\n.dark .apexcharts-menu {\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-toolbar {\n /*opacity: 0;*/\n }\n\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n }\n}\n\n.apexcharts-datalabel.hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabel, .apexcharts-datalabel-label, .apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-radar-series path, .apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Resize generated styles */\n@keyframes resizeanim {\n from {\n opacity: 0;\n }\n to {\n opacity: 0;\n }\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n}\n\n.resize-triggers, .resize-triggers > div, .contract-trigger:before {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.resize-triggers > div {\n background: #eee;\n overflow: auto;\n}\n\n.contract-trigger:before {\n width: 200%;\n height: 200%;\n}\n'),"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){if("Element"in t){var e=t.Element.prototype,i=Object,n=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array.prototype.indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","The token must not contain space characters.");return r.call(t,e)},s=function(t){for(var e=n.call(t.getAttribute("class")||""),i=e?e.split(/\s+/):[],r=0,o=i.length;r<o;r++)this.push(i[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=s.prototype=[],c=function(){return new s(this)};if(o.prototype=Error.prototype,l.item=function(t){return this[t]||null},l.contains=function(t){return~a(this,t+"")},l.add=function(){var t,e=arguments,i=0,n=e.length,r=!1;do{t=e[i]+"",~a(this,t)||(this.push(t),r=!0)}while(++i<n);r&&this._updateClassName()},l.remove=function(){var t,e,i=arguments,n=0,r=i.length,o=!1;do{for(t=i[n]+"",e=a(this,t);~e;)this.splice(e,1),o=!0,e=a(this,t)}while(++n<r);o&&this._updateClassName()},l.toggle=function(t,e){var i=this.contains(t),n=i?!0!==e&&"remove":!1!==e&&"add";return n&&this[n](t),!0===e||!1===e?e:!i},l.replace=function(t,e){var i=a(t+"");~i&&(this.splice(i,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},i.defineProperty){var h={get:c,enumerable:!0,configurable:!0};try{i.defineProperty(e,"classList",h)}catch(t){void 0!==t.number&&-2146823252!==t.number||(h.enumerable=!1,i.defineProperty(e,"classList",h))}}else i.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var i,n=arguments.length;for(i=0;i<n;i++)t=arguments[i],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:i.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var i=this.toString().split(" "),n=i.indexOf(t+"");~n&&(i=i.slice(n),this.remove.apply(this,i),this.add(e),this.add.apply(this,i.slice(1)))}),t=null}()),function(){function t(t){var e=t.__resizeTriggers__,i=e.firstElementChild,n=e.lastElementChild,r=i.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=i.offsetWidth+1+"px",r.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight}function e(e){var i=this;t(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=r((function(){(function(t){return t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height})(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach((function(t){t.call(e)})))}))}var i,n,r=(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)},function(t){return i(t)}),o=(n=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(t){return n(t)}),a=!1,s="animationstart",l="Webkit Moz O ms".split(" "),c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(a=!0),!1===a)for(var u=0;u<l.length;u++)if(void 0!==h.style[l[u]+"AnimationName"]){s=c[u];break}window.addResizeListener=function(i,n){i.__resizeTriggers__||("static"==getComputedStyle(i).position&&(i.style.position="relative"),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=document.createElement("div")).className="resize-triggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),t(i),i.addEventListener("scroll",e,!0),s&&i.__resizeTriggers__.addEventListener(s,(function(e){"resizeanim"==e.animationName&&t(i)}))),i.__resizeListeners__.push(n)},window.removeResizeListener=function(t,i){t&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(i),1),t.__resizeListeners__.length||(t.removeEventListener("scroll",e),t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__)))}}(),window.Apex={},function(){function i(t,n){e(this,i),this.opts=n,this.ctx=this,this.w=new P(n).init(),this.el=t,this.w.globals.cuid=d.randomId(),this.w.globals.chartID=this.w.config.chart.id?this.w.config.chart.id:this.w.globals.cuid,this.eventList=["mousedown","mousemove","touchstart","touchmove","mouseup","touchend"],this.initModules(),this.create=d.bind(this.create,this),this.documentEvent=d.bind(this.documentEvent,this),this.windowResizeHandler=this.windowResize.bind(this)}return n(i,[{key:"render",value:function(){var t=this;return new J((function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var n=t.w.config.chart.events.beforeMount;"function"==typeof n&&n(t,t.w),t.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),window.addResizeListener(t.el.parentNode,t.parentResizeCallback.bind(t));var r=t.create(t.w.config.series,{});if(!r)return e(t);t.mount(r).then((function(){e(r),"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.fireEvent("mounted",[t,t.w])})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"initModules",value:function(){this.animations=new f(this),this.core=new $(this.el,this),this.grid=new lt(this),this.coreUtils=new w(this),this.config=new _({}),this.crosshairs=new I(this),this.options=new y,this.responsive=new ct(this),this.series=new H(this),this.theme=new ht(this),this.formatters=new R(this),this.titleSubtitle=new xt(this),this.legend=new W(this),this.toolbar=new vt(this),this.dimensions=new B(this),this.zoomPanSelection=new bt(this),this.w.globals.tooltip=new yt(this)}},{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var n=i.globals.events[t].indexOf(e);-1!==n&&i.globals.events[t].splice(n,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var n=i.globals.events[t],r=n.length,o=0;o<r;o++)n[o].apply(null,e)}}},{key:"create",value:function(t,e){var i=this.w;this.initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,this.responsive.checkResponsiveConfig(e),null===this.el)return n.animationEnded=!0,null;if(this.core.setupElements(),0===n.svgWidth)return n.animationEnded=!0,null;var r=w.checkComboSeries(t);n.comboCharts=r.comboCharts,n.comboChartsHasBars=r.comboChartsHasBars,(0===t.length||1===t.length&&t[0].data&&0===t[0].data.length)&&this.series.handleNoData(),this.setupEventHandlers(),this.core.parseData(t),this.theme.init(),new C(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==n.series.length||this.legend.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters()),this.formatters.heatmapLabelFormatters(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var a=this.core.plotChartType(t,o);this.core.shiftGraphPosition();var s={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:a,xyRatios:o,elInner:i.globals.dom.elGraphical,dimensions:s}}},{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this,i=e.w;return new J((function(n,r){if(null===e.el)return r(new Error("Not enough data to display or target element not found"));if((null===t||i.globals.allSeriesCollapsed)&&e.series.handleNoData(),e.annotations=new v(e),e.core.drawAxis(i.config.chart.type,t.xyRatios),e.grid=new lt(e),"back"===i.config.grid.position&&e.grid.drawGrid(),"back"===i.config.annotations.position&&e.annotations.drawAnnotations(),t.elGraph instanceof Array)for(var o=0;o<t.elGraph.length;o++)i.globals.dom.elGraphical.add(t.elGraph[o]);else i.globals.dom.elGraphical.add(t.elGraph);if("front"===i.config.grid.position&&e.grid.drawGrid(),"front"===i.config.xaxis.crosshairs.position&&e.crosshairs.drawXCrosshairs(),"front"===i.config.yaxis[0].crosshairs.position&&e.crosshairs.drawYCrosshairs(),"front"===i.config.annotations.position&&e.annotations.drawAnnotations(),!i.globals.noData){if(i.config.tooltip.enabled&&!i.globals.noData&&e.w.globals.tooltip.drawTooltip(t.xyRatios),i.globals.axisCharts&&i.globals.isXNumeric)(i.config.chart.zoom.enabled||i.config.chart.selection&&i.config.chart.selection.enabled||i.config.chart.pan&&i.config.chart.pan.enabled)&&e.zoomPanSelection.init({xyRatios:t.xyRatios});else{var a=i.config.chart.toolbar.tools;a.zoom=!1,a.zoomin=!1,a.zoomout=!1,a.selection=!1,a.pan=!1,a.reset=!1}i.config.chart.toolbar.show&&!i.globals.allSeriesCollapsed&&e.toolbar.createToolbar()}i.globals.memory.methodsToExec.length>0&&i.globals.memory.methodsToExec.forEach((function(t){t.method(t.params,!1,t.context)})),i.globals.axisCharts||i.globals.noData||e.core.resizeNonAxisCharts(),n(e)}))}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1,t.globals.collapsedSeries=[],t.globals.collapsedSeriesIndices=[]}},{key:"updateOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return t.series&&(this.resetSeries(!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((function(t,e){return a({},o.config.series[e],{name:t.name?t.name:o.config.series[e]&&o.config.series[e].name,type:t.type?t.type:o.config.series[e]&&o.config.series[e].type,data:t.data?t.data:o.config.series[e]&&o.config.series[e].data})}))),this.revertDefaultAxisMinMax()),t.xaxis&&((t.xaxis.min||t.xaxis.max)&&this.forceXAxisUpdate(t),t.xaxis.categories&&t.xaxis.categories.length&&o.config.xaxis.convertedCatToNumeric&&(t=x.convertCatToNumeric(t))),o.globals.collapsedSeriesIndices.length>0&&this.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this._updateOptions(t,e,i,n,r)}},{key:"_updateOptions",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=[this];r&&(a=this.getSyncedCharts()),this.w.globals.isExecCalled&&(a=[this],this.w.globals.isExecCalled=!1),a.forEach((function(r){var a=r.w;return a.globals.shouldAnimate=n,i||(a.globals.resized=!0,a.globals.dataChanged=!0,n&&r.series.getPreviousPaths()),e&&"object"===t(e)&&(r.config=new _(e),e=w.extendArrayProps(r.config,e),a.config=d.extend(a.config,e),o&&(a.globals.initialConfig=d.extend({},a.config),a.globals.initialSeries=JSON.parse(JSON.stringify(a.config.series)))),r.update(e)}))}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.resetSeries(!1),this.revertDefaultAxisMinMax(),this._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w.config.series.slice();return n.push(t),this.resetSeries(!1),this.revertDefaultAxisMinMax(),this._updateSeries(n,e,i)}},{key:"_updateSeries",value:function(t,e){var i,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.w;return this.w.globals.shouldAnimate=e,r.globals.dataChanged=!0,r.globals.allSeriesCollapsed&&(r.globals.allSeriesCollapsed=!1),e&&this.series.getPreviousPaths(),r.globals.axisCharts?(0===(i=t.map((function(t,e){return a({},r.config.series[e],{name:t.name?t.name:r.config.series[e]&&r.config.series[e].name,type:t.type?t.type:r.config.series[e]&&r.config.series[e].type,data:t.data?t.data:r.config.series[e]&&r.config.series[e].data})}))).length&&(i=[{data:[]}]),r.config.series=i):r.config.series=t.slice(),n&&(r.globals.initialConfig.series=JSON.parse(JSON.stringify(r.config.series)),r.globals.initialSeries=JSON.parse(JSON.stringify(r.config.series))),this.update()}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach((function(t){e.push(t)}))),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter((function(t){if(t.group)return!0})).map((function(e){return t.w.config.chart.group===e.group?e.chart:t}))}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var n=i.w.config.series.slice(),r=0;r<n.length;r++)if(void 0!==t[r])for(var o=0;o<t[r].data.length;o++)n[r].data.push(t[r].data[o]);return i.w.config.series=n,e&&(i.w.globals.initialSeries=JSON.parse(JSON.stringify(i.w.config.series))),this.update()}},{key:"update",value:function(t){var e=this;return new J((function(i,n){e.clear();var r=e.create(e.w.config.series,t);if(!r)return i(e);e.mount(r).then((function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)})).catch((function(t){n(t)}))}))}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;void 0!==t.xaxis.min&&(e.config.xaxis.min=t.xaxis.min),void 0!==t.xaxis.max&&(e.config.xaxis.max=t.xaxis.max)}},{key:"revertDefaultAxisMinMax",value:function(){var t=this,e=this.w;e.config.xaxis.min=this.opts.xaxis.min||Apex.xaxis&&Apex.xaxis.min,e.config.xaxis.max=this.opts.xaxis.max||Apex.xaxis&&Apex.xaxis.max,e.config.yaxis.map((function(i,n){e.globals.zoomed&&void 0!==t.opts.yaxis[n]&&(i.min=t.opts.yaxis[n].min,i.max=t.opts.yaxis[n].max)}))}},{key:"clear",value:function(){this.zoomPanSelection&&this.zoomPanSelection.destroy(),this.toolbar&&this.toolbar.destroy(),this.animations=null,this.annotations=null,this.core=null,this.grid=null,this.series=null,this.responsive=null,this.theme=null,this.formatters=null,this.titleSubtitle=null,this.legend=null,this.dimensions=null,this.options=null,this.crosshairs=null,this.zoomPanSelection=null,this.toolbar=null,this.w.globals.tooltip=null,this.clearDomElements()}},{key:"killSVG",value:function(t){return new J((function(e,i){t.each((function(t,e){this.removeClass("*"),this.off(),this.stop()}),!0),t.ungroup(),t.clear(),e("done")}))}},{key:"clearDomElements",value:function(){var t=this;this.eventList.forEach((function(e){document.removeEventListener(e,t.documentEvent)}));var e=this.w.globals.dom;if(null!==this.el)for(;this.el.firstChild;)this.el.removeChild(this.el.firstChild);this.killSVG(e.Paper),e.Paper.remove(),e.elWrap=null,e.elGraphical=null,e.elLegendWrap=null,e.baseEl=null,e.elGridRect=null,e.elGridRectMask=null,e.elGridRectMarkerMask=null,e.elDefs=null}},{key:"destroy",value:function(){this.clear();var t=this.w.config.chart.id;t&&Apex._chartInstances.forEach((function(e,i){e.id===t&&Apex._chartInstances.splice(i,1)})),window.removeEventListener("resize",this.windowResizeHandler),window.removeResizeListener(this.el.parentNode,this.parentResizeCallback.bind(this))}},{key:"toggleSeries",value:function(t){var e=this.series.isSeriesHidden(t);return this.legend.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.series.isSeriesHidden(t);e.isHidden&&this.legend.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.series.isSeriesHidden(t);e.isHidden||this.legend.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.series.resetSeries(t)}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this,n=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.eventListHandlers=[],this.eventList.forEach((function(t){n.addEventListener(t,(function(t){var n=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(t,i,n):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(t,i,n),i.fireEvent("click",[t,i,n]))}),{capture:!1,passive:!0})})),this.eventList.forEach((function(e){document.addEventListener(e,t.documentEvent)})),this.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w;e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addXaxisAnnotationExternal(t,e,n)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addYaxisAnnotationExternal(t,e,n)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addPointAnnotationExternal(t,e,n)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"addText",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addText(t,e,n)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new U(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new U(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"setLocale",value:function(t){this.setCurrentLocaleValues(t)}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,n=null;return i.globals.axisCharts?n=i.globals.dom.Paper.select(".apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'], .apexcharts-series[data\\:realIndex='").concat(t,"'] circle[j='").concat(e,"'], .apexcharts-series[data\\:realIndex='").concat(t,"'] rect[j='").concat(e,"']")).members[0]:(n=i.globals.dom.Paper.select(".apexcharts-series[data\\:realIndex='".concat(t,"']")).members[0],("pie"===i.config.chart.type||"donut"===i.config.chart.type)&&new L(this.ctx).pieClicked(t)),n?new g(this.ctx).pathMouseDown(n,null):console.warn("toggleDataPointSelection: Element not found"),n.node?n.node:null}},{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter((function(e){return e.name===t}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var n=d.extend(m,i);this.w.globals.locale=n.options}},{key:"dataURI",value:function(){return new st(this.ctx).dataURI()}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.windowResize()}},{key:"windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.update()}),150)}}],[{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),e=0;e<t.length;e++)new i(t[e],JSON.parse(t[e].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];switch(e){case"updateOptions":return i.updateOptions.apply(i,r);case"updateSeries":return i.updateSeries.apply(i,r);case"appendData":return i.appendData.apply(i,r);case"appendSeries":return i.appendSeries.apply(i,r);case"toggleSeries":return i.toggleSeries.apply(i,r);case"resetSeries":return i.resetSeries.apply(i,r);case"toggleDataPointSelection":return i.toggleDataPointSelection.apply(i,r);case"dataURI":return i.dataURI.apply(i,r);case"addXaxisAnnotation":return i.addXaxisAnnotation.apply(i,r);case"addYaxisAnnotation":return i.addYaxisAnnotation.apply(i,r);case"addPointAnnotation":return i.addPointAnnotation.apply(i,r);case"addText":return i.addText.apply(i,r);case"clearAnnotations":return i.clearAnnotations.apply(i,r);case"removeAnnotation":return i.removeAnnotation.apply(i,r);case"paper":return i.paper.apply(i,r);case"destroy":return i.destroy()}}}},{key:"merge",value:function(t,e){return d.extend(t,e)}},{key:"getChartByID",value:function(t){return Apex._chartInstances.filter((function(e){return e.id===t}))[0].chart}}]),i}()})),function(t){var e=window.am4internal_webpackJsonp;window.am4internal_webpackJsonp=function(i,o,a){for(var s,l,c,h=0,u=[];h<i.length;h++)l=i[h],n[l]&&u.push(n[l][0]),n[l]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s]);for(e&&e(i,o,a);u.length;)u.shift()();if(a)for(h=0;h<a.length;h++)c=r(r.s=a[h]);return c};var i={},n={a74a:0};function r(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(t){var e=n[t];if(0===e)return new Promise((function(t){t()}));if(e)return e[2];var i=new Promise((function(i,r){e=n[t]=[i,r]}));e[2]=i;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,r.nc&&a.setAttribute("nonce",r.nc),a.src=r.p+"deps/"+({"0471":"canvg","076f":"pdfmake",bf3e:"xlsx"}[t]||t)+".js";var s=setTimeout(l,12e4);function l(){a.onerror=a.onload=null,clearTimeout(s);var e=n[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),n[t]=void 0)}return a.onerror=a.onload=l,o.appendChild(a),i},r.m=t,r.c=i,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r.oe=function(t){throw console.error(t),t},r(r.s=0)}({"+6ht":function(t,e,i){var n=i("rkh7"),r=i("pmYy"),o=i("snR7"),a=i("T9LF").Reflect;t.exports=a&&a.ownKeys||function(t){var e=n.f(o(t)),i=r.f;return i?e.concat(i(t)):e}},"+BwA":function(t,e,i){t.exports=i("OB1/")("native-function-to-string",Function.toString)},"+K/x":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("Uslz"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="CategoryAxisBreak",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(t){this.setPropertyValue("startCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(t){this.setPropertyValue("endCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startValue",{get:function(){var t=this.getPropertyValue("startCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){var t=this.getPropertyValue("endCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.CategoryAxisBreak=a},"+gRV":function(t,e,i){var n=i("Gb1H");n(n.G+n.W+n.F*!i("xSzy").ABV,{DataView:i("LNZc").DataView})},"+qIf":function(t,e,i){"use strict";i.d(e,"b",(function(){return c})),i.d(e,"a",(function(){return h})),i.d(e,"c",(function(){return u}));var n=i("m4/l"),r=i("hD5A"),o=i("o0Lc"),a=i("Qkdp"),s=i("Wglt"),l=i("wUYf"),c=function(t){function e(e){var i=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);return t.call(this,(function(){i.dispose(),s.each(e.iterator(),(function(t){t[1].dispose()}))}))||this}return n.c(e,t),e}(r.b),h=function(){function t(){this.events=new o.a,this._dictionary={}}return t.prototype.hasKey=function(t){return a.hasKey(this._dictionary,t)},t.prototype.getKey=function(t){return this._dictionary[t]},t.prototype.insertKey=function(t,e){if(a.hasKey(this._dictionary,t))throw new Error("Key "+t+" already exists in dictionary");this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.setKey=function(t,e){if(a.hasKey(this._dictionary,t)){var i=this._dictionary[t];i!==e&&(this._dictionary[t]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))}else this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.updateKey=function(t,e){if(!a.hasKey(this._dictionary,t))throw new Error("Key "+t+" doesn't exist in dictionary");var i=this._dictionary[t],n=e(i);i!==n&&(this._dictionary[t]=n,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:n}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))},t.prototype.removeKey=function(t){if(a.hasKey(this._dictionary,t)){var e=this._dictionary[t];delete this._dictionary[t],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},t.prototype.insertKeyIfEmpty=function(t,e){return this.hasKey(t)||this.insertKey(t,e()),this.getKey(t)},t.prototype.clear=function(){var t=this;this.events.isEnabled("removed")&&a.each(this._dictionary,(function(e,i){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:i})})),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},t.prototype.copyFrom=function(t){var e=this;s.each(t.iterator(),(function(t){e.setKey(t[0],t[1])}))},t.prototype.iterator=function(){return a.entries(this._dictionary)},t.prototype[Symbol.iterator]=function(){var t,e,i,r;return n.d(this,(function(n){switch(n.label){case 0:for(e in t=[],this._dictionary)t.push(e);i=0,n.label=1;case 1:return i<t.length?(r=t[i],a.hasKey(this._dictionary,r)?[4,[r,this._dictionary[r]]]:[3,3]):[3,4];case 2:n.sent(),n.label=3;case 3:return i++,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){s.each(this.iterator(),(function(e){var i=n.e(e,2),r=i[0],o=i[1];return t(r,o)}))},t.prototype.sortedIterator=function(){return s.sort(this.iterator(),(function(t,e){return l.order(t[0],e[0])}))},t}(),u=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return n.c(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;s.each(t.iterator(),(function(t){e.setKey(t[0],t[1].clone())}))},e.prototype.create=function(t){var e=this;return this.insertKeyIfEmpty(t,(function(){return e.template.clone()}))},e}(h)},"+wz8":function(t,e,i){var n=i("DvJ+"),r=i("T9LF").document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"/9XX":function(t,e,i){"use strict";i.d(e,"b",(function(){return c})),e.a=function(t){o.push(t),u()},e.c=function(t){a.push(t),u()},e.f=function(t){s.push(t),u()},e.e=function(t){l.push(t)},e.d=function(){for(var t=Date.now(),e=l.length,i=0;i<e;++i)l.shift()(t)};var n=i("hJ5i"),r=!1,o=[],a=[],s=[],l=[],c="function"==typeof requestAnimationFrame?function(t){requestAnimationFrame(t)}:function(t){setTimeout(t,1e3/60)};function h(){for(var t=Date.now(),e=o.length,i=0;i<e;++i)o[i](t);for(n.shiftLeft(o,e),i=0;i<a.length;++i)a[i](t);for(a.length=0,i=0;i<s.length;++i)s[i](t);s.length=0,0===o.length&&0===a.length?r=!1:c(h)}function u(){r||(r=!0,c(h))}},"/IEW":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("Tjl+"),o=i("aCit"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._validateDisposer=null,e}return n.c(e,t),e.prototype.invalidate=function(){null===this._validateDisposer&&(this._validateDisposer=o.c.events.on("exitframe",this.validate,this))},e.prototype.validate=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null)},e.prototype.dispose=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null),t.prototype.dispose.call(this)},e}(r.b)},"/NC3":function(t,e,i){var n=i("Gb1H"),r=i("0v9/");n(n.G+n.B,{setImmediate:r.set,clearImmediate:r.clear})},"/Oef":function(t,e,i){"use strict";var n=i("MfZA"),r={};r[i("YEtG")("toStringTag")]="z",r+""!="[object z]"&&i("wDk4")(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},"/URX":function(t,e,i){var n=i("Gb1H"),r=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,o=0,a=0,s=arguments.length,l=0;a<s;)l<(i=r(arguments[a++]))?(o=o*(n=l/i)*n+1,l=i):o+=i>0?(n=i/l)*n:i;return l===1/0?1/0:l*Math.sqrt(o)}})},"/Xnt":function(t,e,i){"use strict";var n=i("T9LF"),r=i("Gb1H"),o=i("wDk4"),a=i("cA+3"),s=i("kFp5"),l=i("hpnp"),c=i("ypVE"),h=i("DvJ+"),u=i("AEc5"),d=i("ID9o"),p=i("bPwn"),f=i("6/bx");t.exports=function(t,e,i,g,m,y){var v=n[t],b=v,x=m?"set":"add",w=b&&b.prototype,_={},S=function(t){var e=w[t];o(w,t,"delete"==t||"has"==t?function(t){return!(y&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!h(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,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof b&&(y||w.forEach&&!u((function(){(new b).entries().next()})))){var P=new b,k=P[x](y?{}:-0,1)!=P,C=u((function(){P.has(1)})),T=d((function(t){new b(t)})),A=!y&&u((function(){for(var t=new b,e=5;e--;)t[x](e,e);return!t.has(-0)}));T||((b=e((function(e,i){c(e,b,t);var n=f(new v,e,b);return null!=i&&l(i,m,n[x],n),n}))).prototype=w,w.constructor=b),(C||A)&&(S("delete"),S("has"),m&&S("get")),(A||k)&&S(x),y&&w.clear&&delete w.clear}else b=g.getConstructor(e,t,m,x),a(b.prototype,i),s.NEED=!0;return p(b,t),_[t]=b,r(r.G+r.W+r.F*(b!=v),_),y||g.setStrong(b,t,m),b}},"/dMO":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("sc+R");n(n.P+n.F*!i("GQop")([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},"/e9j":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("sxA1"),o=i("3/51"),a=i("aCit"),s=function(t){function e(){var e=t.call(this)||this;return e.className="LinearGradientModifier",e.gradient=new r.a,e.applyTheme(),e}return n.c(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(o.a);a.c.registeredClasses.LinearGradientModifier=s},0:function(t,e,i){i("bcCe"),t.exports=i("Nv8/")},"0B2R":function(t,e,i){var n=i("Gb1H");n(n.S,"Object",{setPrototypeOf:i("7GtY").set})},"0C8c":function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},"0Czv":function(t,e,i){"use strict";i("Mvcd")("sup",(function(t){return function(){return t(this,"sup","","")}}))},"0FpR":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linear=o,e.quadIn=a,e.quadOut=s,e.quadInOut=l,e.polyIn=c,e.polyOut=h,e.polyInOut=u,e.polyIn3=d,e.polyOut3=p,e.polyInOut3=f,e.expIn=g,e.expOut=m,e.expInOut=y,e.sinIn=v,e.sinOut=b,e.sinInOut=x,e.cubicIn=w,e.cubicOut=_,e.cubicInOut=S,e.circleIn=P,e.circleOut=k,e.circleInOut=C,e.bounceIn=O,e.bounceOut=M,e.bounceInOut=E,e.elasticIn=L,e.elasticOut=j,e.elasticInOut=N;var n=i("Gg2j"),r=i("aCit");function o(t){return+t}function a(t){return t*t}function s(t){return t*(2-t)}function l(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function c(t,e){return Math.pow(t,e)}function h(t,e){return 1-Math.pow(1-t,e)}function u(t,e){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}function d(t){return c(t,3)}function p(t){return h(t,3)}function f(t){return u(t,3)}function g(t){return Math.pow(2,10*t-10)}function m(t){return 1-Math.pow(2,-10*t)}function y(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function v(t){return 1-Math.cos(t*n.HALFPI)}function b(t){return Math.sin(t*n.HALFPI)}function x(t){return(1-Math.cos(n.PI*t))/2}function w(t){return t*t*t}function _(t){return--t*t*t+1}function S(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function P(t){return 1-Math.sqrt(1-t*t)}function k(t){return Math.sqrt(1- --t*t)}function C(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}r.c.registeredClasses["ease.linear"]=o,r.c.registeredClasses["ease.quadIn"]=a,r.c.registeredClasses["ease.quadOut"]=s,r.c.registeredClasses["ease.quadInOut"]=l,r.c.registeredClasses["ease.polyIn"]=c,r.c.registeredClasses["ease.polyOut"]=h,r.c.registeredClasses["ease.polyInOut"]=u,r.c.registeredClasses["ease.polyIn3"]=d,r.c.registeredClasses["ease.polyOut3"]=p,r.c.registeredClasses["ease.polyInOut3"]=f,r.c.registeredClasses["ease.expIn"]=g,r.c.registeredClasses["ease.expOut"]=m,r.c.registeredClasses["ease.expInOut"]=y,r.c.registeredClasses["ease.sinIn"]=v,r.c.registeredClasses["ease.sinOut"]=b,r.c.registeredClasses["ease.sinInOut"]=x,r.c.registeredClasses["ease.cubicIn"]=w,r.c.registeredClasses["ease.cubicOut"]=_,r.c.registeredClasses["ease.cubicInOut"]=S,r.c.registeredClasses["ease.circleIn"]=P,r.c.registeredClasses["ease.circleOut"]=k,r.c.registeredClasses["ease.circleInOut"]=C;var T=4/11,A=1/T/T;function O(t){return 1-M(1-t)}function M(t){return(t=+t)<T?A*t*t:t<.7272727272727273?A*(t-=.5454545454545454)*t+.75:t<.9090909090909091?A*(t-=.8181818181818182)*t+.9375:A*(t-=.9545454545454546)*t+.984375}function E(t){return((t*=2)<=1?1-M(1-t):M(t-1)+1)/2}r.c.registeredClasses["ease.bounceIn"]=O,r.c.registeredClasses["ease.bounceOut"]=M,r.c.registeredClasses["ease.bounceInOut"]=E;var I=.3/(2*Math.PI),D=Math.asin(1)*I;function L(t){return 1*Math.pow(2,10*--t)*Math.sin((D-t)/I)}function j(t){return 1-1*Math.pow(2,-10*(t=+t))*Math.sin((t+D)/I)}function N(t){return((t=2*t-1)<0?1*Math.pow(2,10*t)*Math.sin((D-t)/I):2-1*Math.pow(2,-10*t)*Math.sin((D+t)/I))/2}r.c.registeredClasses["ease.elasticIn"]=L,r.c.registeredClasses["ease.elasticOut"]=j,r.c.registeredClasses["ease.elasticInOut"]=N},"0Mwj":function(t,e,i){"use strict";i.d(e,"b",(function(){return C})),i.d(e,"a",(function(){return T}));var n=i("m4/l"),r=i("2I/e"),o=i("C6dT"),a=i("vMqJ"),s=i("8ZqG"),l=i("pR7v"),c=i("KknQ"),h=i("k6kv"),u=i("OXm9"),d=i("VB2N"),p=i("Uf57"),f=i("hD5A"),g=i("BEgH"),m=i("tjMS"),y=i("aCit"),v=i("C6Lh"),b=i("Gg2j"),x=i("Wglt"),w=i("Mtpk"),_=i("v9UT"),S=i("hJ5i"),P=i("3Cxr"),k=i("TGuK"),C=function(t){function e(){var e=t.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return n.c(e,t),e}(r.b),T=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=h.a,e._axisRendererY=u.a,e._seriesPoints=[],e.className="XYChart",e.maskBullets=!0,e.arrangeTooltips=!0;var i=e.chartContainer;i.layout="vertical",e.padding(15,15,15,15);var n=i.createChild(o.a);n.shouldClone=!1,n.layout="vertical",n.width=Object(m.c)(100),n.zIndex=1,e.topAxesContainer=n;var r=i.createChild(o.a);r.shouldClone=!1,r.layout="horizontal",r.width=Object(m.c)(100),r.height=Object(m.c)(100),r.zIndex=0,e.yAxesAndPlotContainer=r;var a=i.createChild(o.a);a.shouldClone=!1,a.width=Object(m.c)(100),a.layout="vertical",a.zIndex=1,e.bottomAxesContainer=a;var s=r.createChild(o.a);s.shouldClone=!1,s.layout="horizontal",s.height=Object(m.c)(100),s.contentAlign="right",s.events.on("transformed",e.updateXAxesMargins,e,!1),s.zIndex=1,e.leftAxesContainer=s;var l=r.createChild(o.a);l.shouldClone=!1,l.height=Object(m.c)(100),l.width=Object(m.c)(100),l.background.fillOpacity=0,e.plotContainer=l,e.mouseWheelBehavior="none",e._cursorContainer=l;var c=r.createChild(o.a);c.shouldClone=!1,c.layout="horizontal",c.height=Object(m.c)(100),c.zIndex=1,c.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=c,e.seriesContainer.parent=l,e.bulletsContainer.parent=l;var d=l.createChild(g.a);d.shouldClone=!1,d.align="right",d.valign="top",d.zIndex=Number.MAX_SAFE_INTEGER,d.marginTop=5,d.marginRight=5,d.hide(0),e.zoomOutButton=d;var p=e.plotContainer.createChild(o.a);return p.shouldClone=!1,p.width=Object(m.c)(100),p.height=Object(m.c)(100),p.isMeasured=!1,p.zIndex=4,p.layout="none",e.axisBulletsContainer=p,e._bulletMask=e.plotContainer,e.events.on("beforedatavalidated",(function(){e.series.each((function(t){t.dataGrouped=!1,t._baseInterval={}}))}),e,!1),e.applyTheme(),e}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,w.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},e.prototype.draw=function(){t.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},e.prototype.updatePlotElements=function(){x.each(this.series.iterator(),(function(t){t.invalidate()}))},e.prototype.validateData=function(){0==this._parseDataFrom&&(x.each(this.xAxes.iterator(),(function(t){t.dataChangeUpdate()})),x.each(this.yAxes.iterator(),(function(t){t.dataChangeUpdate()})),x.each(this.series.iterator(),(function(t){t.dataChangeUpdate()}))),t.prototype.validateData.call(this)},e.prototype.updateXAxesMargins=function(){var t=this.leftAxesContainer.measuredWidth,e=this.rightAxesContainer.measuredWidth,i=this.bottomAxesContainer;i.paddingLeft==t&&i.paddingRight==e||(i.paddingLeft=t,i.paddingRight=e);var n=this.topAxesContainer;n.paddingLeft==t&&n.paddingRight==e||(n.paddingLeft=t,n.paddingRight=e)},e.prototype.reinit=function(){t.prototype.reinit.call(this),this.series.each((function(t){t.appeared=!1}))},e.prototype.handleXAxisChange=function(t){this.updateXAxis(t.target)},e.prototype.handleYAxisChange=function(t){this.updateYAxis(t.target)},e.prototype.processXAxis=function(t){var e=t.newValue;e.chart=this,e.renderer||(e.renderer=new this._axisRendererX,e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this,!1)),e.axisLetter="X",e.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),e.dataProvider=this,this.updateXAxis(e.renderer),this.processAxis(e)},e.prototype.processYAxis=function(t){var e=t.newValue;e.chart=this,e.renderer||(e.renderer=new this._axisRendererY,e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this,!1)),e.axisLetter="Y",e.events.on("startendchanged",this.handleYAxisRangeChange,this,!1),e.dataProvider=this,this.updateYAxis(e.renderer),this.processAxis(e)},e.prototype.handleXAxisRangeChange=function(){var t=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,t)},e.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var t=!1;x.eachContinue(this.xAxes.iterator(),(function(e){if(e.toggleZoomOutButton)if(e.maxZoomCount>0){var i=e.maxZoomFactor/e.maxZoomCount;if(b.round(e.end-e.start,3)<1/i)return t=!0,!1}else if(0!=b.round(e.start,3)||1!=b.round(e.end,3))return t=!0,!1;return!0})),x.eachContinue(this.yAxes.iterator(),(function(e){if(e.toggleZoomOutButton){if(e.maxZoomCount>0){var i=e.maxZoomFactor/e.maxZoomCount;if(b.round(e.end-e.start,3)<1/i)return t=!0,!1}else if(0!=b.round(e.start,3)||1!=b.round(e.end,3))return t=!0,!1;return!0}})),this.seriesAppeared||(t=!1),t?this.zoomOutButton.show():this.zoomOutButton.hide()}},e.prototype.seriesAppeared=function(){var t=!1;return x.each(this.series.iterator(),(function(e){if(!e.appeared)return t=!1,!1})),t},e.prototype.handleYAxisRangeChange=function(){var t=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,t)},e.prototype.updateScrollbar=function(t,e){t&&(t.skipRangeEvents(),t.start=e.start,t.end=e.end)},e.prototype.getCommonAxisRange=function(t){var e,i;return x.each(t.iterator(),(function(t){var n=t.start,r=t.end;t.renderer.inversed&&(n=1-t.end,r=1-t.start),(!w.isNumber(e)||n<e)&&(e=n),(!w.isNumber(i)||r>i)&&(i=r)})),{start:e,end:i}},e.prototype.updateXAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.topAxesContainer,e.toFront()):(e.parent=this.bottomAxesContainer,e.toBack()),e.renderer&&e.renderer.processRenderer()},e.prototype.updateYAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.rightAxesContainer,e.toBack()):(e.parent=this.leftAxesContainer,e.toFront()),e.renderer&&e.renderer.processRenderer()},e.prototype.processAxis=function(t){var e=this;t instanceof d.a&&this._dataUsers.moveValue(t);var i=t.renderer;i.gridContainer.parent=this.plotContainer,i.gridContainer.toBack(),i.breakContainer.parent=this.plotContainer,i.breakContainer.toFront(),i.breakContainer.zIndex=10,t.addDisposer(new f.b((function(){e.dataUsers.removeValue(t)}))),i.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(t.events.on("positionchanged",(function(){var n=_.spritePointToSprite({x:0,y:0},t,e.axisBulletsContainer);t.renderer instanceof u.a&&(i.bulletsContainer.y=n.y),t.renderer instanceof h.a&&(i.bulletsContainer.x=n.x)}),void 0,!1)),this.plotContainer.events.on("maxsizechanged",(function(){e.inited&&(t.invalidateDataItems(),e.updateSeriesMasks())}),t,!1)},e.prototype.updateSeriesMasks=function(){_.isIE()&&this.series.each((function(t){var e=t.mainContainer.mask;t.mainContainer.mask=void 0,t.mainContainer.mask=e}))},Object.defineProperty(e.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new a.b,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1)),this._xAxes},enumerable:!0,configurable:!0}),e.prototype.handleAxisRemoval=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),e.autoDispose&&e.dispose()},Object.defineProperty(e.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new a.b,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1)),this._yAxes},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(e){try{t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;0!=this.xAxes.length&&0!=this.yAxes.length||(y.c.removeFromInvalidComponents(i),i.dataInvalid=!1),_.used(i.xAxis),_.used(i.yAxis),i.maskBullets=i.maskBullets,null==i.fill&&(this.patterns?(w.hasValue(i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),w.hasValue(i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof s.a&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next()),w.hasValue(i.stroke)||(i.stroke=i.fill)}catch(t){this.raiseCriticalError(t)}},Object.defineProperty(e.prototype,"cursor",{get:function(){return this._cursor},set:function(t){this._cursor!=t&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=t,t&&(this._disposers.push(t),t.chart=this,t.shouldClone=!1,t.parent=this._cursorContainer,t.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),t.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),t.events.on("zoomended",this.handleCursorZoomEnd,this,!1),t.events.on("panstarted",this.handleCursorPanStart,this,!1),t.events.on("panning",this.handleCursorPanning,this,!1),t.events.on("panended",this.handleCursorPanEnd,this,!1),t.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),t.events.on("hidden",this.handleHideCursor,this,!1),t.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),e.prototype.handleCursorPositionChange=function(){var t=this.cursor;if(t.visible&&!t.isHiding){var e=this.cursor.xPosition,i=this.cursor.yPosition;this.showSeriesTooltip({x:e,y:i});var n=void 0,r=t.snapToSeries;if(r){r.baseAxis==r.xAxis&&(n=r.yAxis),r.baseAxis==r.yAxis&&(n=r.xAxis);var o=r.xAxis,a=r.yAxis;if(o instanceof l.a&&!(o instanceof c.a)&&a instanceof l.a&&!(a instanceof c.a)){var s,h=1/0;r.dataItems.each((function(t){var n=o.toGlobalPosition(o.getPositionX(t,"valueX"))*o.axisFullLength,r=a.toGlobalPosition(a.getPositionY(t,"valueY"))*a.axisFullLength,l=Math.sqrt(Math.pow(e*o.axisFullLength-n,2)+Math.pow(i*a.axisFullLength-r,2));l<h&&(h=l,s=t)})),s&&r.showTooltipAtDataItem(s)}}this._seriesPoints=[],this._cursorXPosition!=e&&this.showAxisTooltip(this.xAxes,e,n),this._cursorYPosition!=i&&this.showAxisTooltip(this.yAxes,i,n),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints)}},e.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this._cursorXPosition=void 0,this._cursorYPosition=void 0,this.updateSeriesLegend()},e.prototype.updateSeriesLegend=function(){x.each(this.series.iterator(),(function(t){t.updateLegendValue()}))},e.prototype.hideObjectTooltip=function(t){x.each(t.iterator(),(function(t){t.hideTooltip(0)}))},e.prototype.showSeriesTooltip=function(t){var e=this;if(t){var i=[];this.series.each((function(n){if(n.xAxis instanceof c.a&&n.xAxis.snapTooltip||n.yAxis instanceof c.a&&n.yAxis.snapTooltip);else{var r=n.showTooltipAtPosition(t.x,t.y);r&&(n.tooltip.setBounds(_.spriteRectToSvg({x:0,y:0,width:e.pixelWidth,height:e.pixelHeight},e)),i.push({series:n,point:r}))}})),this.arrangeTooltips&&this.sortSeriesTooltips(i)}else this.series.each((function(t){t.hideTooltip()}))},e.prototype.sortSeriesTooltips=function(t){var e=this.cursor;if(e&&w.isNumber(e.maxTooltipDistance)){var i,n,r=_.spritePointToSvg({x:e.point.x,y:e.point.y},e),o=1/0;S.each(t,(function(t){var e=t.series,a=t.point;if(a){var s={x:a.x,y:a.y},l=Math.abs(b.getDistance(s,r));l<o&&(n=s,o=l,i=e)}}));var a=[];i&&S.each(t,(function(t){Math.abs(b.getDistance(t.point,n))<=e.maxTooltipDistance?a.push({series:t.series,point:t.point}):t.series.tooltip.hide(0)})),t=a}var s=_.spritePointToSvg({x:-.5,y:-.5},this.plotContainer),l=_.spritePointToSvg({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),c=0,h=[];S.each(t,(function(t){var e=t.point;e&&b.isInRectangle(e,{x:s.x,y:s.y,width:l.x-s.x,height:l.y-s.y})&&(h.push({point:e,series:t.series}),c+=e.y)})),t=h;var u=this.series.getIndex(0),d=!1;u&&u.yAxis&&u.yAxis.renderer.inversed&&(d=!0),d?t.sort((function(t,e){return P.order(t.point.y,e.point.y)})):(t.sort((function(t,e){return P.order(e.point.y,t.point.y)})),t.reverse());var p=c/t.length,f=_.svgPointToDocument({x:0,y:0},this.svgContainer.SVGContainer).y;if(t.length>0){var g=s.y,m=l.y;_.spritePointToDocument({x:0,y:g},this);var y=!1;if(p>g+(m-g)/2)for(var v=m,x=t.length-1;x>=0;x--){var k=(O=t[x].series).tooltip,C=t[x].point.y;if(k.setBounds({x:0,y:-f,width:this.pixelWidth,height:v+f}),k.invalid&&k.validate(),k.toBack(),(v=_.spritePointToSvg({x:0,y:k.label.pixelY-k.pixelY+C-k.pixelMarginTop},k).y)<-f){y=!0;break}}if(p<=g+(m-g)/2||y)for(var T=g,A=(x=0,t.length);x<A;x++){var O=t[x].series;C=t[x].point.y,(k=O.tooltip).setBounds({x:0,y:T,width:this.pixelWidth,height:m}),k.invalid&&k.validate(),k.toBack(),T=_.spritePointToSvg({x:0,y:k.label.pixelY+k.label.measuredHeight-k.pixelY+C+k.pixelMarginBottom},k).y}}},e.prototype.showAxisTooltip=function(t,e,i){var n=this;x.each(t.iterator(),(function(t){t!=i&&(n.dataItems.length>0||t.dataItems.length>0)&&t.showTooltipAtPosition(e)}))},e.prototype.getUpdatedRange=function(t,e){if(t){var i,n;t.renderer.inversed?(b.invertRange(e),i=1-t.end,n=1-t.start):(i=t.start,n=t.end);var r=n-i;return{start:i+e.start*r,end:i+e.end*r}}},e.prototype.handleCursorZoomEnd=function(t){var e=this.cursor,i=e.behavior;if("zoomX"==i||"zoomXY"==i){var n=e.xRange;n&&this.xAxes.length>0&&((n=this.getUpdatedRange(this.xAxes.getIndex(0),n)).priority="start",this.zoomAxes(this.xAxes,n))}if("zoomY"==i||"zoomXY"==i){var r=e.yRange;r&&this.yAxes.length>0&&((r=this.getUpdatedRange(this.yAxes.getIndex(0),r)).priority="start",this.zoomAxes(this.yAxes,r))}this.handleHideCursor()},e.prototype.handleCursorPanStart=function(t){var e=this.xAxes.getIndex(0);e&&(this._panStartXRange={start:e.start,end:e.end});var i=this.yAxes.getIndex(0);i&&(this._panStartYRange={start:i.start,end:i.end})},e.prototype.handleCursorPanEnd=function(t){var e,i=this.cursor.behavior;if(this._panEndXRange&&("panX"==i||"panXY"==i)){var n=0;(e=this._panEndXRange).start<0&&(n=e.start),e.end>1&&(n=e.end-1),this.zoomAxes(this.xAxes,{start:e.start-n,end:e.end-n},!1,!0),this._panEndXRange=void 0,this._panStartXRange=void 0}!this._panEndYRange||"panY"!=i&&"panXY"!=i||(n=0,(e=this._panEndYRange).start<0&&(n=e.start),e.end>1&&(n=e.end-1),this.zoomAxes(this.yAxes,{start:e.start-n,end:e.end-n},!1,!0),this._panEndYRange=void 0,this._panStartYRange=void 0)},e.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},e.prototype.handleCursorPanning=function(t){var e=this.cursor,i=e.behavior,n=e.maxPanOut;if(this._panStartXRange&&("panX"==i||"panXY"==i)){var r=this._panStartXRange,o=e.xRange,a=this.getCommonAxisRange(this.xAxes),s=r.end-r.start,l=o.start*(a.end-a.start),c=Math.max(-n,l+r.start),h=Math.min(l+r.end,1+n);c<=0&&(h=c+s),h>=1&&(c=h-s);var u={start:c,end:h};this._panEndXRange=u,this.zoomAxes(this.xAxes,u,!1,!1,e.maxPanOut)}!this._panStartYRange||"panY"!=i&&"panXY"!=i||(r=this._panStartYRange,o=e.yRange,a=this.getCommonAxisRange(this.yAxes),s=r.end-r.start,l=o.start*(a.end-a.start),c=Math.max(-n,l+r.start),h=Math.min(l+r.end,1+n),c<=0&&(h=c+s),h>=1&&(c=h-s),u={start:c,end:h},this._panEndYRange=u,this.zoomAxes(this.yAxes,u,!1,!1,e.maxPanOut)),this.handleHideCursor()},e.prototype.handleYAxisSet=function(t){},e.prototype.handleCursorZoomStart=function(t){},Object.defineProperty(e.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(t){var e=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=t,t&&(this._disposers.push(t),t.parent=this.topAxesContainer,t.shouldClone=!1,t.startGrip.exportable=!1,t.endGrip.exportable=!1,t.toBack(),t.orientation="horizontal",t.events.on("rangechanged",this.handleXScrollbarChange,this,!1),t.adapter.add("positionValue",(function(t){var i=e.xAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(i.renderer.inversed?1-t.position:t.position)),t})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(t){var e=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=t,t&&(this._disposers.push(t),t.parent=this.rightAxesContainer,t.startGrip.exportable=!1,t.shouldClone=!1,t.endGrip.exportable=!1,t.toFront(),t.orientation="vertical",t.events.on("rangechanged",this.handleYScrollbarChange,this,!1),t.adapter.add("positionValue",(function(t){var i=e.yAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(t.position)),t})))},enumerable:!0,configurable:!0}),e.prototype.handleXScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;0==i.start&&(i.priority="start"),1==i.end&&(i.priority="end"),i=this.zoomAxes(this.xAxes,i),e.fixRange(i)}},e.prototype.handleYScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;1==i.end&&(i.priority="end"),0==i.start&&(i.priority="start"),i=this.zoomAxes(this.yAxes,i),e.fixRange(i)}},e.prototype.zoomAxes=function(t,e,i,n,r){var o={start:0,end:1};return this.showSeriesTooltip(),this.dataInvalid||x.each(t.iterator(),(function(t){if(t.renderer.inversed&&(e=b.invertRange(e)),t.hideTooltip(0),n)if(t instanceof d.a){var a=t.getCellEndPosition(0)-t.getCellStartPosition(0);e.start=t.roundPosition(e.start+a/2-t.startLocation*a,t.startLocation),e.end=t.roundPosition(e.end-a/2+(1-t.endLocation)*a,t.endLocation)}else e.start=t.roundPosition(e.start+1e-4,0,t.startLocation),e.end=t.roundPosition(e.end+1e-4,0,t.endLocation);var s=t.zoom(e,i,i,r);t.renderer.inversed&&(s=b.invertRange(s)),o=s})),o},Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)&&this.bulletsContainer&&(this.bulletsContainer.mask=t?this._bulletMask:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(t){this.setPropertyValue("arrangeTooltips",t,!0)},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=this.plotContainer,i=_.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),n=_.svgPointToSprite(i,e),r=t.shift.y;this.handleWheelReal(r,this.mouseWheelBehavior,n)},e.prototype.handleHorizontalWheel=function(t){var e=this.plotContainer,i=_.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),n=_.svgPointToSprite(i,e);this.handleWheelReal(t.shift.x,this.horizontalMouseWheelBehavior,n)},e.prototype.handleWheelReal=function(t,e,i){if(0!=t){var n=this.plotContainer,r=this.getCommonAxisRange(this.xAxes),o=this.getCommonAxisRange(this.yAxes);if("panX"==e||"panXY"==e){var a=r.end-r.start,s=Math.max(-0,r.start+.1*t/100*(r.end-r.start)),l=Math.min(r.end+.1*t/100*(r.end-r.start),1);s<=0&&(l=s+a),l>=1&&(s=l-a),this.zoomAxes(this.xAxes,{start:s,end:l})}if("panY"==e||"panXY"==e){t*=-1;var c=o.end-o.start,h=Math.max(-0,o.start+.1*t/100*(o.end-o.start)),u=Math.min(o.end+.1*t/100*(o.end-o.start),1);h<=0&&(u=h+c),u>=1&&(h=u-c),this.zoomAxes(this.yAxes,{start:h,end:u})}if("zoomX"==e||"zoomXY"==e){var d=i.x/n.maxWidth,p=this.xAxes.getIndex(0).toAxisPosition(d);s=Math.max(-0,r.start-.1*(r.end-r.start)*t/100*d),s=Math.min(s,p),l=Math.min(r.end+.1*(r.end-r.start)*t/100*(1-d),1),l=Math.max(l,p),this.zoomAxes(this.xAxes,{start:s,end:l})}if("zoomY"==e||"zoomXY"==e){var f=i.y/n.maxHeight,g=this.yAxes.getIndex(0).toAxisPosition(f);h=Math.max(-0,o.start-.1*(o.end-o.start)*t/100*(1-f)),h=Math.min(h,g),u=Math.min(o.end+.1*t/100*f*(o.end-o.start),1),u=Math.max(u,g),this.zoomAxes(this.yAxes,{start:h,end:u})}}},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(t){this.setPropertyValue("horizontalMouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),e.prototype.dataSourceDateFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),x.each(this.series.iterator(),(function(t){e=i.populateDataSourceFields(e,t.dataFields,["dateX","dateY","openDateX","openDateY"])})),e},e.prototype.dataSourceNumberFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),x.each(this.series.iterator(),(function(t){e=i.populateDataSourceFields(e,t.dataFields,["valueX","valueY","openValueX","openValueY"])})),e},e.prototype.processConfig=function(e){if(e){var i=[],n=[];if(w.hasValue(e.xAxes)&&w.isArray(e.xAxes))for(var r=0,o=e.xAxes.length;r<o;r++){if(!e.xAxes[r].type)throw Error("[XYChart error] No type set for xAxes["+r+"].");if(w.hasValue(e.xAxes[r].axisRanges)){for(var a=0,s=e.xAxes[r].axisRanges.length;a<s;a++){var l=e.xAxes[r].axisRanges[a];w.hasValue(l.date)&&w.isString(l.date)&&(l.date=this.dateFormatter.parse(l.date)),w.hasValue(l.endDate)&&w.isString(l.endDate)&&(l.endDate=this.dateFormatter.parse(l.endDate))}i.push({axisRanges:e.xAxes[r].axisRanges,index:r}),delete e.xAxes[r].axisRanges}}if(w.hasValue(e.yAxes)&&w.isArray(e.yAxes))for(r=0,o=e.yAxes.length;r<o;r++){if(!e.yAxes[r].type)throw Error("[XYChart error] No type set for yAxes["+r+"].");if(w.hasValue(e.yAxes[r].axisRanges)){a=0;for(var c=e.yAxes[r].axisRanges.length;a<c;a++)l=e.yAxes[r].axisRanges[a],w.hasValue(l.date)&&w.isString(l.date)&&(l.date=this.dateFormatter.parse(l.date)),w.hasValue(l.endDate)&&w.isString(l.endDate)&&(l.endDate=this.dateFormatter.parse(l.endDate));n.push({axisRanges:e.yAxes[r].axisRanges,index:r}),delete e.yAxes[r].axisRanges}}if(w.hasValue(e.series)&&w.isArray(e.series))for(r=0,o=e.series.length;r<o;r++)e.series[r].type=e.series[r].type||"LineSeries";if(w.hasValue(e.cursor)&&!w.hasValue(e.cursor.type)&&(e.cursor.type="XYCursor"),w.hasValue(e.scrollbarX)&&!w.hasValue(e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),w.hasValue(e.scrollbarY)&&!w.hasValue(e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),t.prototype.processConfig.call(this,e),n.length)for(r=0,o=n.length;r<o;r++)this.yAxes.getIndex(n[r].index).config={axisRanges:n[r].axisRanges};if(i.length)for(r=0,o=i.length;r<o;r++)this.xAxes.getIndex(i[r].index).config={axisRanges:i[r].axisRanges}}},e.prototype.configOrder=function(e,i){return e==i?0:"scrollbarX"==e?1:"scrollbarX"==i?-1:"scrollbarY"==e?1:"scrollbarY"==i?-1:"cursor"==e?1:"cursor"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.createSeries=function(){return new p.a},Object.defineProperty(e.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(t){var e=this;this._zoomOutButton=t,t&&t.events.on("hit",(function(){e.zoomAxes(e.xAxes,{start:0,end:1}),e.zoomAxes(e.yAxes,{start:0,end:1})}),void 0,!1)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;e.xAxes.each((function(t){i.xAxes.push(t.clone())})),e.yAxes.each((function(t){i.yAxes.push(t.clone())})),t.prototype.copyFrom.call(this,e),e.cursor&&(this.cursor=e.cursor.clone()),e.scrollbarX&&(this.scrollbarX=e.scrollbarX.clone()),e.scrollbarY&&(this.scrollbarY=e.scrollbarY.clone())},e.prototype.disposeData=function(){t.prototype.disposeData.call(this);var e=this.scrollbarX;e&&e instanceof v.a&&e.scrollbarChart.disposeData();var i=this.scrollbarY;i&&i instanceof v.a&&i.scrollbarChart.disposeData(),this.xAxes.each((function(t){t.disposeData()})),this.yAxes.each((function(t){t.disposeData()}))},e.prototype.addData=function(e,i){this.scrollbarX instanceof v.a&&this.addScrollbarData(this.scrollbarX,i),this.scrollbarY instanceof v.a&&this.addScrollbarData(this.scrollbarY,i),t.prototype.addData.call(this,e,i)},e.prototype.addScrollbarData=function(t,e){var i=t.scrollbarChart;i._parseDataFrom=i.data.length,i.invalidateData()},e.prototype.removeScrollbarData=function(t,e){var i=t.scrollbarChart;if(w.isNumber(e)){for(;e>0;){var n=this.dataItems.getIndex(0);n&&i.dataItems.remove(n),i.dataUsers.each((function(t){var e=t.dataItems.getIndex(0);e&&t.dataItems.remove(e)})),i._parseDataFrom--,e--}i.invalidateData()}},e.prototype.removeData=function(e){this.scrollbarX instanceof v.a&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof v.a&&this.removeScrollbarData(this.scrollbarY,e),t.prototype.removeData.call(this,e)},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},e}(r.a);y.c.registeredClasses.XYChart=T,k.c.push({relevant:k.b.maybeXS,state:function(t,e){if(t instanceof T&&t.scrollbarX){var i=t.states.create(e);return t.scrollbarX.states.create(e).properties.disabled=!0,i}return null}}),k.c.push({relevant:k.b.maybeXS,state:function(t,e){if(t instanceof T&&t.scrollbarY){var i=t.states.create(e);return t.scrollbarY.states.create(e).properties.disabled=!0,i}return null}})},"0PyG":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("Tjl+"),o=i("zhwk"),a=i("1yyj"),s=i("Mtpk"),l=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.animations=[],o.className="Inertia",o.interaction=e,o.type=i,o.point=n,o.startPoint=r,o._disposers.push(new a.b(o.animations)),o}return n.c(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.point.x},set:function(t){s.isNumber(t)&&(this.point.x=t,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.point.y},set:function(t){s.isNumber(t)&&(this.point.y=t,this.handleMove())},enumerable:!0,configurable:!0}),e.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var t={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",t)}},e.prototype.done=function(){this.interaction.inertias.removeKey(this.type),"move"===this.type&&Object(o.b)().processDragStop(this.interaction),this.dispose()},e}(r.a)},"0YcW":function(t,e,i){"use strict";var n=i("cA+3"),r=i("kFp5").getWeak,o=i("snR7"),a=i("DvJ+"),s=i("ypVE"),l=i("hpnp"),c=i("dstF"),h=i("U3hN"),u=i("rFJX"),d=c(5),p=c(6),f=0,g=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},y=function(t,e){return d(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var i=y(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,o){var c=t((function(t,n){s(t,c,e,"_i"),t._t=e,t._i=f++,t._l=void 0,null!=n&&l(n,i,t[o],t)}));return n(c.prototype,{delete:function(t){if(!a(t))return!1;var i=r(t);return!0===i?g(u(this,e)).delete(t):i&&h(i,this._i)&&delete i[this._i]},has:function(t){if(!a(t))return!1;var i=r(t);return!0===i?g(u(this,e)).has(t):i&&h(i,this._i)}}),c},def:function(t,e,i){var n=r(o(e),!0);return!0===n?g(t).set(e,i):n[t._i]=i,t},ufstore:g}},"0Zt3":function(t,e,i){var n=i("DvJ+"),r=i("DVYA"),o=i("YEtG")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},"0jav":function(t,e,i){var n=i("Gb1H"),r=i("DVYA");n(n.S,"Error",{isError:function(t){return"Error"===r(t)}})},"0v9/":function(t,e,i){var n,r,o,a=i("20m4"),s=i("yOPk"),l=i("Ax3V"),c=i("+wz8"),h=i("T9LF"),u=h.process,d=h.setImmediate,p=h.clearImmediate,f=h.MessageChannel,g=h.Dispatch,m=0,y={},v=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){v.call(t.data)};d&&p||(d=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return y[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},p=function(t){delete y[t]},"process"==i("DVYA")(u)?n=function(t){u.nextTick(a(v,t,1))}:g&&g.now?n=function(t){g.now(a(v,t,1))}:f?(o=(r=new f).port2,r.port1.onmessage=b,n=a(o.postMessage,o,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(t){h.postMessage(t+"","*")},h.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),t.exports={set:d,clear:p}},"0yJt":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("mntN")(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("M/YL")("includes")},"17ao":function(t,e,i){var n=i("T9LF").parseInt,r=i("nAZS").trim,o=i("brDO"),a=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(t,e){var i=r(String(t),3);return n(i,e>>>0||(a.test(i)?16:10))}:n},"1DgP":function(t,e,i){"use strict";var n=function(t,e){var i;function n(){var n,r,o=i.length,a=0,s=0;for(n=0;n<o;++n)a+=(r=i[n]).x,s+=r.y;for(a=a/o-t,s=s/o-e,n=0;n<o;++n)(r=i[n]).x-=a,r.y-=s}return null==t&&(t=0),null==e&&(e=0),n.initialize=function(t){i=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n};function r(t,e,i,n){if(isNaN(e)||isNaN(i))return t;var r,o,a,s,l,c,h,u,d,p=t._root,f={data:n},g=t._x0,m=t._y0,y=t._x1,v=t._y1;if(!p)return t._root=f,t;for(;p.length;)if((c=e>=(o=(g+y)/2))?g=o:y=o,(h=i>=(a=(m+v)/2))?m=a:v=a,r=p,!(p=p[u=h<<1|c]))return r[u]=f,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&&i===l)return f.next=p,r?r[u]=f:t._root=f,t;do{r=r?r[u]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+y)/2))?g=o:y=o,(h=i>=(a=(m+v)/2))?m=a:v=a}while((u=h<<1|c)==(d=(l>=a)<<1|s>=o));return r[d]=p,r[u]=f,t}var o=function(t,e,i,n,r){this.node=t,this.x0=e,this.y0=i,this.x1=n,this.y1=r};function a(t){return t[0]}function s(t){return t[1]}function l(t,e,i){var n=new c(null==e?a:e,null==i?s:i,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function c(t,e,i,n,r,o){this._x=t,this._y=e,this._x0=i,this._y0=n,this._x1=r,this._y1=o,this._root=void 0}function h(t){for(var e={data:t.data},i=e;t=t.next;)i=i.next={data:t.data};return e}var u=l.prototype=c.prototype;u.copy=function(){var t,e,i=new c(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return i;if(!n.length)return i._root=h(n),i;for(t=[{source:n,target:i._root=new Array(4)}];n=t.pop();)for(var r=0;r<4;++r)(e=n.source[r])&&(e.length?t.push({source:e,target:n.target[r]=new Array(4)}):n.target[r]=h(e));return i},u.add=function(t){var e=+this._x.call(null,t),i=+this._y.call(null,t);return r(this.cover(e,i),e,i,t)},u.addAll=function(t){var e,i,n,o,a=t.length,s=new Array(a),l=new Array(a),c=1/0,h=1/0,u=-1/0,d=-1/0;for(i=0;i<a;++i)isNaN(n=+this._x.call(null,e=t[i]))||isNaN(o=+this._y.call(null,e))||(s[i]=n,l[i]=o,n<c&&(c=n),n>u&&(u=n),o<h&&(h=o),o>d&&(d=o));if(c>u||h>d)return this;for(this.cover(c,h).cover(u,d),i=0;i<a;++i)r(this,s[i],l[i],t[i]);return this},u.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var i=this._x0,n=this._y0,r=this._x1,o=this._y1;if(isNaN(i))r=(i=Math.floor(t))+1,o=(n=Math.floor(e))+1;else{for(var a,s,l=r-i,c=this._root;i>t||t>=r||n>e||e>=o;)switch(s=(e<n)<<1|t<i,(a=new Array(4))[s]=c,c=a,l*=2,s){case 0:r=i+l,o=n+l;break;case 1:i=r-l,o=n+l;break;case 2:r=i+l,n=o-l;break;case 3:i=r-l,n=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=i,this._y0=n,this._x1=r,this._y1=o,this},u.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},u.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},u.find=function(t,e,i){var n,r,a,s,l,c,h,u=this._x0,d=this._y0,p=this._x1,f=this._y1,g=[],m=this._root;for(m&&g.push(new o(m,u,d,p,f)),null==i?i=1/0:(u=t-i,d=e-i,p=t+i,f=e+i,i*=i);c=g.pop();)if(!(!(m=c.node)||(r=c.x0)>p||(a=c.y0)>f||(s=c.x1)<u||(l=c.y1)<d))if(m.length){var y=(r+s)/2,v=(a+l)/2;g.push(new o(m[3],y,v,s,l),new o(m[2],r,v,y,l),new o(m[1],y,a,s,v),new o(m[0],r,a,y,v)),(h=(e>=v)<<1|t>=y)&&(c=g[g.length-1],g[g.length-1]=g[g.length-1-h],g[g.length-1-h]=c)}else{var b=t-+this._x.call(null,m.data),x=e-+this._y.call(null,m.data),w=b*b+x*x;if(w<i){var _=Math.sqrt(i=w);u=t-_,d=e-_,p=t+_,f=e+_,n=m.data}}return n},u.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,i,n,r,o,a,s,l,c,h,u,d,p=this._root,f=this._x0,g=this._y0,m=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(s=(f+m)/2))?f=s:m=s,(h=a>=(l=(g+y)/2))?g=l:y=l,e=p,!(p=p[u=h<<1|c]))return this;if(!p.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(i=e,d=u)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(r=p.next)&&delete p.next,n?(r?n.next=r:delete n.next,this):e?(r?e[u]=r:delete e[u],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(i?i[d]=p:this._root=p),this):(this._root=r,this)},u.removeAll=function(t){for(var e=0,i=t.length;e<i;++e)this.remove(t[e]);return this},u.root=function(){return this._root},u.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},u.visit=function(t){var e,i,n,r,a,s,l=[],c=this._root;for(c&&l.push(new o(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,n=e.x0,r=e.y0,a=e.x1,s=e.y1)&&c.length){var h=(n+a)/2,u=(r+s)/2;(i=c[3])&&l.push(new o(i,h,u,a,s)),(i=c[2])&&l.push(new o(i,n,u,h,s)),(i=c[1])&&l.push(new o(i,h,r,a,u)),(i=c[0])&&l.push(new o(i,n,r,h,u))}return this},u.visitAfter=function(t){var e,i=[],n=[];for(this._root&&i.push(new o(this._root,this._x0,this._y0,this._x1,this._y1));e=i.pop();){var r=e.node;if(r.length){var a,s=e.x0,l=e.y0,c=e.x1,h=e.y1,u=(s+c)/2,d=(l+h)/2;(a=r[0])&&i.push(new o(a,s,l,u,d)),(a=r[1])&&i.push(new o(a,u,l,c,d)),(a=r[2])&&i.push(new o(a,s,d,u,h)),(a=r[3])&&i.push(new o(a,u,d,c,h))}n.push(e)}for(;e=n.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},u.x=function(t){return arguments.length?(this._x=t,this):this._x},u.y=function(t){return arguments.length?(this._y=t,this):this._y};var d=function(t){return function(){return t}},p=function(){return 1e-6*(Math.random()-.5)};function f(t){return t.x+t.vx}function g(t){return t.y+t.vy}var m=function(t){var e,i,n=1,r=1;function o(){for(var t,o,s,c,h,u,d,m=e.length,y=0;y<r;++y)for(o=l(e,f,g).visitAfter(a),t=0;t<m;++t)s=e[t],u=i[s.index],d=u*u,c=s.x+s.vx,h=s.y+s.vy,o.visit(v);function v(t,e,i,r,o){var a=t.data,l=t.r,f=u+l;if(!a)return e>c+f||r<c-f||i>h+f||o<h-f;if(a.index>s.index){var g=c-a.x-a.vx,m=h-a.y-a.vy,y=g*g+m*m;y<f*f&&(0===g&&(y+=(g=p())*g),0===m&&(y+=(m=p())*m),y=(f-(y=Math.sqrt(y)))/y*n,s.vx+=(g*=y)*(f=(l*=l)/(d+l)),s.vy+=(m*=y)*f,a.vx-=g*(f=1-f),a.vy-=m*f)}}}function a(t){if(t.data)return t.r=i[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function s(){if(e){var n,r,o=e.length;for(i=new Array(o),n=0;n<o;++n)r=e[n],i[r.index]=+t(r,n,e)}}return"function"!=typeof t&&(t=d(null==t?1:+t)),o.initialize=function(t){e=t,s()},o.iterations=function(t){return arguments.length?(r=+t,o):r},o.strength=function(t){return arguments.length?(n=+t,o):n},o.radius=function(e){return arguments.length?(t="function"==typeof e?e:d(+e),s(),o):t},o};function y(t){return(y="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})(t)}function v(t){return t.index}function b(t,e){var i=t.get(e);if(!i)throw new Error("missing: "+e);return i}var x=function(t){var e,i,n,r,o,a=v,s=function(t){return 1/Math.min(r[t.source.index],r[t.target.index])},l=d(30),c=1;function h(n){for(var r=0,a=t.length;r<c;++r)for(var s,l,h,u,d,f,g,m=0;m<a;++m)l=(s=t[m]).source,u=(h=s.target).x+h.vx-l.x-l.vx||p(),d=h.y+h.vy-l.y-l.vy||p(),u*=f=((f=Math.sqrt(u*u+d*d))-i[m])/f*n*e[m],d*=f,h.vx-=u*(g=o[m]),h.vy-=d*g,l.vx+=u*(g=1-g),l.vy+=d*g}function u(){if(n){var s,l,c=n.length,h=t.length,u=new Map(n.map((function(t,e){return[a(t,e,n),t]})));for(s=0,r=new Array(c);s<h;++s)(l=t[s]).index=s,"object"!==y(l.source)&&(l.source=b(u,l.source)),"object"!==y(l.target)&&(l.target=b(u,l.target)),r[l.source.index]=(r[l.source.index]||0)+1,r[l.target.index]=(r[l.target.index]||0)+1;for(s=0,o=new Array(h);s<h;++s)l=t[s],o[s]=r[l.source.index]/(r[l.source.index]+r[l.target.index]);e=new Array(h),f(),i=new Array(h),g()}}function f(){if(n)for(var i=0,r=t.length;i<r;++i)e[i]=+s(t[i],i,t)}function g(){if(n)for(var e=0,r=t.length;e<r;++e)i[e]=+l(t[e],e,t)}return null==t&&(t=[]),h.initialize=function(t){n=t,u()},h.links=function(e){return arguments.length?(t=e,u(),h):t},h.id=function(t){return arguments.length?(a=t,h):a},h.iterations=function(t){return arguments.length?(c=+t,h):c},h.strength=function(t){return arguments.length?(s="function"==typeof t?t:d(+t),f(),h):s},h.distance=function(t){return arguments.length?(l="function"==typeof t?t:d(+t),g(),h):l},h},w={value:function(){}};function _(){for(var t,e=0,i=arguments.length,n={};e<i;++e){if(!(t=arguments[e]+"")||t in n)throw new Error("illegal type: "+t);n[t]=[]}return new S(n)}function S(t){this._=t}function P(t,e){for(var i,n=0,r=t.length;n<r;++n)if((i=t[n]).name===e)return i.value}function k(t,e,i){for(var n=0,r=t.length;n<r;++n)if(t[n].name===e){t[n]=w,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=i&&t.push({name:e,value:i}),t}S.prototype=_.prototype={constructor:S,on:function(t,e){var i,n=this._,r=function(t,e){return t.trim().split(/^|\s+/).map((function(t){var i="",n=t.indexOf(".");if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}}))}(t+"",n),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=k(n[i],t.name,e);else if(null==e)for(i in n)n[i]=k(n[i],t.name,null);return this}for(;++o<a;)if((i=(t=r[o]).type)&&(i=P(n[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new S(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,n,r=new Array(i),o=0;o<i;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,i=(n=this._[t]).length;o<i;++o)n[o].value.apply(e,r)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],r=0,o=n.length;r<o;++r)n[r].value.apply(e,i)}};var C=_;function T(t){return(T="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})(t)}var A,O,M=0,E=0,I=0,D=0,L=0,j=0,N="object"===("undefined"==typeof performance?"undefined":T(performance))&&performance.now?performance:Date,F="object"===("undefined"==typeof window?"undefined":T(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function R(){return L||(F(V),L=N.now()+j)}function V(){L=0}function z(){this._call=this._time=this._next=null}function B(t,e,i){var n=new z;return n.restart(t,e,i),n}function H(){L=(D=N.now())+j,M=E=0;try{!function(){R(),++M;for(var t,e=A;e;)(t=L-e._time)>=0&&e._call.call(null,t),e=e._next;--M}()}finally{M=0,function(){for(var t,e,i=A,n=1/0;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:A=e);O=t,X(n)}(),L=0}}function W(){var t=N.now(),e=t-D;e>1e3&&(j-=e,D=t)}function X(t){M||(E&&(E=clearTimeout(E)),t-L>24?(t<1/0&&(E=setTimeout(H,t-N.now()-j)),I&&(I=clearInterval(I))):(I||(D=N.now(),I=setInterval(W,1e3)),M=1,F(H)))}function Y(t){return t.x}function G(t){return t.y}z.prototype=B.prototype={constructor:z,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?R():+i)+(null==e?0:+e),this._next||O===this||(O?O._next=this:A=this,O=this),this._call=t,this._time=i,X()},stop:function(){this._call&&(this._call=null,this._time=1/0,X())}};var U=Math.PI*(3-Math.sqrt(5)),q=function(t){var e,i=1,n=.001,r=1-Math.pow(n,1/300),o=0,a=.6,s=new Map,l=B(h),c=C("tick","end");function h(){u(),c.call("tick",e),i<n&&(l.stop(),c.call("end",e))}function u(n){var l,c,h=t.length;void 0===n&&(n=1);for(var u=0;u<n;++u)for(i+=(o-i)*r,s.forEach((function(t){t(i)})),l=0;l<h;++l)null==(c=t[l]).fx?c.x+=c.vx*=a:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=a:(c.y=c.fy,c.vy=0);return e}function d(){for(var e,i=0,n=t.length;i<n;++i){if((e=t[i]).index=i,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var r=10*Math.sqrt(i),o=i*U;e.x=r*Math.cos(o),e.y=r*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function p(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),d(),e={tick:u,restart:function(){return l.restart(h),e},stop:function(){return l.stop(),e},nodes:function(i){return arguments.length?(t=i,d(),s.forEach(p),e):t},alpha:function(t){return arguments.length?(i=+t,e):i},alphaMin:function(t){return arguments.length?(n=+t,e):n},alphaDecay:function(t){return arguments.length?(r=+t,e):+r},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},force:function(t,i){return arguments.length>1?(null==i?s.delete(t):s.set(t,p(i)),e):s.get(t)},find:function(e,i,n){var r,o,a,s,l,c=0,h=t.length;for(null==n?n=1/0:n*=n,c=0;c<h;++c)(a=(r=e-(s=t[c]).x)*r+(o=i-s.y)*o)<n&&(l=s,n=a);return l},on:function(t,i){return arguments.length>1?(c.on(t,i),e):c.on(t)}}},$=function(){var t,e,i,n,r=d(-30),o=1,a=1/0,s=.81;function c(n){var r,o=t.length,a=l(t,Y,G).visitAfter(u);for(i=n,r=0;r<o;++r)e=t[r],a.visit(f)}function h(){if(t){var e,i,o=t.length;for(n=new Array(o),e=0;e<o;++e)i=t[e],n[i.index]=+r(i,e,t)}}function u(t){var e,i,r,o,a,s=0,l=0;if(t.length){for(r=o=a=0;a<4;++a)(e=t[a])&&(i=Math.abs(e.value))&&(s+=e.value,l+=i,r+=i*e.x,o+=i*e.y);t.x=r/l,t.y=o/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=n[e.data.index]}while(e=e.next)}t.value=s}function f(t,r,l,c){if(!t.value)return!0;var h=t.x-e.x,u=t.y-e.y,d=c-r,f=h*h+u*u;if(d*d/s<f)return f<a&&(0===h&&(f+=(h=p())*h),0===u&&(f+=(u=p())*u),f<o&&(f=Math.sqrt(o*f)),e.vx+=h*t.value*i/f,e.vy+=u*t.value*i/f),!0;if(!(t.length||f>=a)){(t.data!==e||t.next)&&(0===h&&(f+=(h=p())*h),0===u&&(f+=(u=p())*u),f<o&&(f=Math.sqrt(o*f)));do{t.data!==e&&(d=n[t.data.index]*i/f,e.vx+=h*d,e.vy+=u*d)}while(t=t.next)}}return c.initialize=function(e){t=e,h()},c.strength=function(t){return arguments.length?(r="function"==typeof t?t:d(+t),h(),c):r},c.distanceMin=function(t){return arguments.length?(o=t*t,c):Math.sqrt(o)},c.distanceMax=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.theta=function(t){return arguments.length?(s=t*t,c):Math.sqrt(s)},c},K=function(t,e,i){var n,r,o,a=d(.1);function s(t){for(var a=0,s=n.length;a<s;++a){var l=n[a],c=l.x-e||1e-6,h=l.y-i||1e-6,u=Math.sqrt(c*c+h*h),d=(o[a]-u)*r[a]*t/u;l.vx+=c*d,l.vy+=h*d}}function l(){if(n){var e,i=n.length;for(r=new Array(i),o=new Array(i),e=0;e<i;++e)o[e]=+t(n[e],e,n),r[e]=isNaN(o[e])?0:+a(n[e],e,n)}}return"function"!=typeof t&&(t=d(+t)),null==e&&(e=0),null==i&&(i=0),s.initialize=function(t){n=t,l()},s.strength=function(t){return arguments.length?(a="function"==typeof t?t:d(+t),l(),s):a},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:d(+e),l(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(i=+t,s):i},s},Z=function(t){var e,i,n,r=d(.1);function o(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vx+=(n[o]-r.x)*i[o]*t}function a(){if(e){var o,a=e.length;for(i=new Array(a),n=new Array(a),o=0;o<a;++o)i[o]=isNaN(n[o]=+t(e[o],o,e))?0:+r(e[o],o,e)}}return"function"!=typeof t&&(t=d(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(r="function"==typeof t?t:d(+t),a(),o):r},o.x=function(e){return arguments.length?(t="function"==typeof e?e:d(+e),a(),o):t},o},J=function(t){var e,i,n,r=d(.1);function o(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vy+=(n[o]-r.y)*i[o]*t}function a(){if(e){var o,a=e.length;for(i=new Array(a),n=new Array(a),o=0;o<a;++o)i[o]=isNaN(n[o]=+t(e[o],o,e))?0:+r(e[o],o,e)}}return"function"!=typeof t&&(t=d(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(r="function"==typeof t?t:d(+t),a(),o):r},o.y=function(e){return arguments.length?(t="function"==typeof e?e:d(+e),a(),o):t},o};i.d(e,!1,(function(){return n})),i.d(e,"a",(function(){return m})),i.d(e,"b",(function(){return x})),i.d(e,"c",(function(){return $})),i.d(e,!1,(function(){return K})),i.d(e,"d",(function(){return q})),i.d(e,"e",(function(){return Z})),i.d(e,"f",(function(){return J}))},"1Fjw":function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("C6dT"),o=i("zhwk"),a=i("aCit"),s=i("tjMS"),l=i("qCRI"),c=i("Gg2j"),h=i("v9UT"),u=i("Mtpk"),d=i("Rpw0"),p=function(t){function e(){var e=t.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=Object(s.c)(100),e.height=Object(s.c)(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var i=Object(o.b)();return e._disposers.push(i.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(i.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(i.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return n.c(e,t),e.prototype.handleCursorMove=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)){if(("zoom"==this._generalBehavior||"pan"==this._generalBehavior)&&this.downPoint||Object(o.b)().isLocalElement(t.pointer,this.paper.svg,this.uid)){var e=h.documentPointToSprite(t.pointer.point,this);return"hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),"soft"==this._stick&&this._stickPoint&&(this.fitsToBounds(e)||(e=this._stickPoint)),this.triggerMove(e),e}this.isHidden&&this.isHiding||this.hide()}},e.prototype.hideReal=function(e){if("hard"!=this._stick&&"soft"!=this._stick||!this._stickPoint)return t.prototype.hideReal.call(this,e)},e.prototype.triggerMove=function(t,e){t.x=c.round(t.x,1),t.y=c.round(t.y,1),e&&(this._stick=e),"hard"!=e&&"soft"!=e||(this._stickPoint=t),this.triggerMoveReal(t)},e.prototype.triggerMoveReal=function(t){this.point.x==t.x&&this.point.y==t.y||(this.point=t,this.invalidatePosition(),this.fitsToBounds(t)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},e.prototype.triggerDown=function(t){this.triggerDownReal(t)},e.prototype.triggerDownReal=function(t){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),Object(o.b)().setGlobalStyle(l.a.grabbing)}},e.prototype.triggerUp=function(t){this.triggerUpReal(t)},e.prototype.triggerUpReal=function(t){d.b.requestFrame(),this.updatePoint(this.upPoint);var e=Object(o.b)();if(c.getDistance(this._upPointOrig,this._downPointOrig)>e.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),e.setGlobalStyle(l.a.default)}this.downPoint=void 0,this.updateSelection()}},e.prototype.updateSelection=function(){},e.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},e.prototype.handleCursorDown=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)&&Object(o.b)().isLocalElement(t.pointer,this.paper.svg,this.uid)){var e=h.documentPointToSprite(t.pointer.point,this);this._downPointOrig={x:e.x,y:e.y},t.event.cancelable&&this.shouldPreventGestures(t.touch)&&this.fitsToBounds(e)&&t.event.preventDefault(),this.triggerMove(e),this.triggerDown(e)}},e.prototype.shouldPreventGestures=function(t){return!0},e.prototype.updatePoint=function(t){},e.prototype.handleCursorUp=function(t){if(this.interactionsEnabled&&(("zoom"==this._generalBehavior||"pan"==this._generalBehavior)&&this.downPoint||Object(o.b)().isLocalElement(t.pointer,this.paper.svg,this.uid))){var e=h.documentPointToSprite(t.pointer.point,this);this._upPointOrig={x:e.x,y:e.y},this.triggerMove(e),this.triggerUp(e)}},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t,u.hasValue(this._chart.plotContainer)&&Object(o.b)().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),e}(r.a);a.c.registeredClasses.Cursor=p},"1Vzv":function(t,e,i){var n=i("Gb1H"),r=i("17ao");n(n.G+n.F*(parseInt!=r),{parseInt:r})},"1lef":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("kcsd"),o=i("FmWr"),a=i("0Zt3"),s=i("x2K9"),l=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};i("Cekr")(c,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),n(n.P,"String",{matchAll:function(t){if(r(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in l?String(t.flags):s.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=o(t.lastIndex),new c(n,e)}})},"1qam":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("Vs7R"),o=i("Mtpk"),a=function(t){function e(){var e=t.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),o.isNumber(this.pointerX)||(this.pointerX=this.pixelWidth/2),o.isNumber(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(e.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(t){this.setPropertyValue("pointerBaseWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(t){this.setPropertyValue("pointerLength",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(t){this.setPropertyValue("pointerX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(t){this.setPropertyValue("pointerY",t,!0)},enumerable:!0,configurable:!0}),e}(r.a)},"1yyj":function(t,e,i){"use strict";e.c=function(t,e){var i=!1,n=Date.now();return c.a((function r(o){if(!i){var a=o-n;a>=t?e(1):(c.a(r),e(a/t))}})),new a.b((function(){i=!0}))},i.d(e,"b",(function(){return x})),i.d(e,"a",(function(){return w}));var n=i("m4/l"),r=i("Tjl+"),o=i("hpNl"),a=i("hD5A"),s=i("8ZqG"),l=i("tjMS"),c=i("/9XX"),h=i("0FpR"),u=i("hxI2"),d=i("Gg2j"),p=i("hJ5i"),f=i("Mtpk"),g=i("Rpw0");function m(t,e,i){return e+(i-e)*t}function y(t,e,i){return new l.a(m(t,e.percent,i.percent))}function v(t,e,i){return new s.a(u.interpolate(e.rgb,i.rgb,t))}function b(t,e){return e+t.charAt(0).toUpperCase()+t.substr(1)}var x=function(){function t(t){this._disposer=new a.b((function(){for(;0!==t.length;)t[0].dispose()}))}return t.prototype.isDisposed=function(){return this._disposer.isDisposed()},t.prototype.dispose=function(){this._disposer.dispose()},t}(),w=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.duration=0,o.easing=h.linear,o.progress=0,o._loop=0,o._pause=!1,o._delayTimeout=null,o._time=0,o._isFinished=!1,o.className="Animation",o.object=e,o.animationOptions=p.toArray(i),o.duration=n,r&&(o.easing=r),o.applyTheme(),o}return n.c(e,t),e.prototype.debug=function(){},e.prototype.dispose=function(){t.prototype.dispose.call(this),this.pause()},e.prototype.delay=function(t){var e=this;if(t>0){this.pause(),p.move(this.object.animations,this);var i=setTimeout((function(){e._delayTimeout=null,e.start()}),t);this._delayTimeout=new a.b((function(){clearTimeout(i)}))}return this},e.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,p.move(g.b.animations,this),p.move(this.object.animations,this),g.b.requestFrame()},e.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var t=this.animationOptions.length-1;t>=0;t--){var e=this.animationOptions[t];if(f.hasValue(e.from)||(e.childObject?e.from=e.childObject[e.property]:(e.from=this.object[e.property],f.hasValue(e.from)||(e.from=o.a[e.property]))),e.from==e.to)p.remove(this.animationOptions,e);else if(f.hasValue(e.from))if(f.isNumber(e.to))if(e.updateMethod=m,e.from instanceof l.a){var i=this.object[b(e.property,"pixel")];isNaN(i)?(this.staticOptions.push(e),p.remove(this.animationOptions,e)):e.from=i}else isNaN(e.from)&&(this.staticOptions.push(e),p.remove(this.animationOptions,e));else e.to instanceof s.a?e.from?e.updateMethod=v:(this.staticOptions.push(e),p.remove(this.animationOptions,e)):e.to instanceof l.a?(e.updateMethod=y,isNaN(e.from)||(i=this.object[b(e.property,"relative")],isNaN(i)||(e.from=Object(l.c)(100*i)))):(this.staticOptions.push(e),p.remove(this.animationOptions,e));else this.staticOptions.push(e),p.remove(this.animationOptions,e)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var n={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",n)}return this.update(),0===this.duration&&this.end(),this},e.prototype.loop=function(t){return f.isNumber(t)||(t=1/0),this._loop=t,this},e.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),p.remove(g.b.animations,this),p.remove(this.object.animations,this),this},e.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},e.prototype.end=function(){if(0==this._loop&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var t={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",t)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},e.prototype.kill=function(){this.pause(),this._isFinished=!0},e.prototype.isFinished=function(){return this._isFinished},e.prototype.applyStaticOptions=function(){var t=this;p.each(this.staticOptions,(function(e){e.childObject?e.childObject[e.property]=1==t.progress?e.to:e.from:t.object[e.property]=1==t.progress?e.to:e.from}))},e.prototype.stop=function(t){if(this.pause(),!t&&this.events.isEnabled("animationstopped")){var e={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",e)}return this},e.prototype.setProgress=function(t){var e=this;if(this._time=this.duration*t,p.each(this.animationOptions,(function(i){if(i.updateMethod&&f.hasValue(i.from)){var n=i.updateMethod(t,i.from,i.to);i.childObject?i.childObject[i.property]=n:e.object[i.property]=n}})),this.progress=t,this.events.isEnabled("animationprogress")){var i={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",i)}g.b.requestFrame()},e.prototype.update=function(){if(!this._pause){var t=void 0;this._time=d.fitToRange(Date.now()-this._startTime,0,this.duration);var e=this._time/this.duration;t=this.easing(e),(0==this.duration||!f.isNumber(t)||e>=1)&&(t=1),this.setProgress(t),1==d.round(this._time/this.duration,6)&&this.end()}return this},Object.defineProperty(e.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),e.prototype.stopSameAnimations=function(){var t=this;p.each(p.copy(this.object.animations),(function(e){if(e!==t&&!e.delayed){var i=[];p.each(t.animationOptions,(function(t){p.each(e.animationOptions,(function(n){t.property==n.property&&t.childObject==n.childObject&&(i.push(n),0==e.animationOptions.length&&e.kill())}))})),p.each(i,(function(t){p.remove(e.animationOptions,t)}))}}))},e.prototype.asFunction=function(e){return"easing"==e||t.prototype.asIs.call(this,e)},e}(r.b)},"2/6D":function(t,e,i){"use strict";var n=i("M/YL"),r=i("36h5"),o=i("9BM3"),a=i("EhJv");t.exports=i("Uobz")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},"20m4":function(t,e,i){var n=i("DbOM");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},"2Dqo":function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=i("K0ev"),a=n.has,s=n.key;n.exp({hasMetadata:function(t,e){return function t(e,i,n){if(a(e,i,n))return!0;var r=o(i);return null!==r&&t(e,r,n)}(t,r(e),arguments.length<3?void 0:s(arguments[2]))}})},"2I/e":function(t,e,i){"use strict";i.d(e,"b",(function(){return f})),i.d(e,"a",(function(){return g}));var n=i("m4/l"),r=i("VIOb"),o=i("vMqJ"),a=i("C6dT"),s=i("aM7D"),l=i("tjMS"),c=i("DHte"),h=i("aCit"),u=i("Wglt"),d=i("Mtpk"),p=i("hD5A"),f=function(t){function e(){var e=t.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return n.c(e,t),e}(r.b),g=function(t){function e(){var e=t.call(this)||this;e.className="SerialChart",e.colors=new c.a,e._usesData=!1;var i=e.chartContainer.createChild(a.a);i.shouldClone=!1,i.width=Object(l.c)(100),i.height=Object(l.c)(100),i.isMeasured=!1,i.layout="none",i.zIndex=2,e.seriesContainer=i;var n=e.chartContainer.createChild(a.a);return n.shouldClone=!1,n.width=Object(l.c)(100),n.height=Object(l.c)(100),n.isMeasured=!1,n.zIndex=3,n.layout="none",e.bulletsContainer=n,e.applyTheme(),e}return n.c(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),d.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(e.prototype,"series",{get:function(){var t=this;return this._series||(this._series=new o.e(this.createSeries()),this._series.events.on("inserted",(function(e){t.handleSeriesAdded(e)}),void 0,!1),this._series.events.on("removed",(function(e){var i=e.oldValue;t.dataUsers.removeValue(i),t.dataUsers.each((function(t){t.invalidateDataItems()})),i.autoDispose&&i.dispose(),t.feedLegend()}),void 0,!1),this._disposers.push(new o.c(this._series)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=this,i=t.newValue;i.isDisposed()||(i.chart=this,i.parent=this.seriesContainer,i.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(i),i.addDisposer(new p.b((function(){e.dataUsers.removeValue(i)}))),this.handleSeriesAdded2(i),this.feedLegend())},e.prototype.handleSeriesAdded2=function(t){this.dataInvalid||t.data&&0!=t.data.length||this.invalidateData()},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];u.each(this.series.iterator(),(function(t){t.hiddenInLegend||e.push(t)})),t.dataFields.name="name",t.data=e}},e.prototype.createSeries=function(){return new s.a},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},e.prototype.appear=function(){t.prototype.appear.call(this),this.series.each((function(t){t.showOnInit&&t.inited&&t.appear()}))},e}(r.a);h.c.registeredClasses.SerialChart=g},"2Nze":function(t,e,i){"use strict";var n=i("x2K9"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),l=void 0!==/()??/.exec("")[1];(s||l)&&(a=function(t){var e,i,a,c,h=this;return l&&(i=new RegExp("^"+h.source+"$(?!\\s)",n.call(h))),s&&(e=h.lastIndex),a=r.call(h,t),s&&a&&(h.lastIndex=h.global?a.index+a[0].length:e),l&&a&&a.length>1&&o.call(a[0],i,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),t.exports=a},"2OOH":function(t,e,i){var n=i("Gb1H"),r=i("snR7"),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},"2OXf":function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("m4/l"),r=i("C6dT"),o=i("sxA1"),a=i("aCit"),s=i("8ZqG"),l=i("vMqJ"),c=i("tjMS"),h=i("pR7v"),u=i("k6kv"),d=i("OXm9"),p=i("Wglt"),f=i("Mtpk"),g=i("hxI2"),m=i("CnhP"),y=function(t){function e(){var e=t.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(r.a),e.markerContainer.shouldClone=!1,e.markerCount=1;var i=new m.a;return i.minHeight=20,i.minWidth=20,i.interactionsEnabled=!1,i.fillOpacity=1,i.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new l.e(i),e._disposers.push(new l.c(e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return n.c(e,t),e.prototype.getMinFromRules=function(t){var e,i=this.series;if(i)return p.eachContinue(i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.min,!1)})),e},e.prototype.getMaxFromRules=function(t){var e,i=this.series;if(i)return p.each(i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.max,!1)})),e},e.prototype.validate=function(){t.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var e=this.series,i=this.minColor,n=this.maxColor;if(f.hasValue(i)||(i=Object(s.e)(this.getMinFromRules("fill"))),f.hasValue(n)||(n=Object(s.e)(this.getMaxFromRules("fill"))),e){var r=e.fill;!f.hasValue(i)&&r instanceof s.a&&(i=r),!f.hasValue(n)&&r instanceof s.a&&(n=r)}f.hasValue(n)||(n=Object(s.e)(this.getMaxFromRules("fill")));var a=f.toNumber(this.getMinFromRules("fillOpacity"));f.isNumber(a)||(a=1);var l=f.toNumber(this.getMaxFromRules("fillOpacity"));f.isNumber(l)||(l=1);var h=f.toNumber(this.getMinFromRules("strokeOpacity"));f.isNumber(h)||(h=1);var u=f.toNumber(this.getMaxFromRules("strokeOpacity"));f.isNumber(u)||(u=1);for(var d=Object(s.e)(this.getMinFromRules("stroke")),p=Object(s.e)(this.getMaxFromRules("stroke")),m=0;m<this.markerCount;m++){var y=this.markers.getIndex(m);if(y||((y=this.markers.create()).parent=this.markerContainer,y.height=Object(c.c)(100),y.width=Object(c.c)(100)),1==this.markerCount){var v=new o.a;if(this.reverseOrder?(v.addColor(n,l),v.addColor(i,a)):(v.addColor(i,a),v.addColor(n,l)),"vertical"==this.orientation&&(v.rotation=-90),y.fill=v,f.hasValue(d)&&f.hasValue(p)){var b=new o.a;this.reverseOrder?(b.addColor(p,u),b.addColor(d,h)):(b.addColor(d,h),b.addColor(p,u)),"vertical"==this.orientation&&(b.rotation=-90),y.stroke=b}}else{var x=m;this.reverseOrder&&(x=this.markerCount-m-1);var w=new s.a(g.interpolate(i.rgb,n.rgb,x/this.markerCount));y.fill=w;var _=a+(l-a)*x/this.markerCount;if(y.fillOpacity=_,f.hasValue(d)&&f.hasValue(p)){var S=new s.a(g.interpolate(d.rgb,p.rgb,x/this.markerCount));y.stroke=S;var P=h+(u-h)*x/this.markerCount;y.strokeOpacity=P}}}var k=this.valueAxis.renderer;this.markerCount>1&&("horizontal"==this.orientation?k.minGridDistance=this.measuredWidth/this.markerCount:k.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate(),m=this.markerCount;for(var C=this.markers.length;m<C;m++)this.markers.getIndex(m).parent=void 0},Object.defineProperty(e.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(t){t instanceof s.a||(t=Object(s.e)(t)),this.setColorProperty("minColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(t){f.isObject(t)||(t=Object(s.e)(t)),this.setColorProperty("maxColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(t){this.setPropertyValue("markerCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(t){this.setPropertyValue("minValue",t),this.valueAxis.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(t){this.setPropertyValue("maxValue",t),this.valueAxis.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.markerContainer,i=this.valueAxis;"horizontal"==t?(f.hasValue(this.width)||(this.width=200),this.height=void 0,i.width=Object(c.c)(100),i.height=void 0,i.tooltip.pointerOrientation="vertical",this.layout="vertical",e.width=Object(c.c)(100),e.height=void 0,i.renderer instanceof u.a||(i.renderer=new u.a)):(f.hasValue(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",e.width=void 0,e.height=Object(c.c)(100),i.height=Object(c.c)(100),i.width=void 0,i.tooltip.pointerOrientation="horizontal",i.renderer instanceof d.a||(i.renderer=new d.a),i.renderer.inside=!0,i.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var n=i.renderer;n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.baseGrid.disabled=!0,n.labels.template.padding(2,3,2,3),n.minHeight=void 0,n.minWidth=void 0,this.markerContainer.layout=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild(h.a),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(t){this._valueAxis=t,t.parent=this,t.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(t){var e=this;this._series=t;var i="value";try{var n=t.heatRules.getIndex(0).dataField;n&&(i=n)}catch(t){}this.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high),t.dataItem.events.on("calculatedvaluechanged",(function(n){e.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high)}),void 0,!1),t.heatRules.events.on("inserted",this.invalidate,this,!1),t.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),e.prototype.updateMinMax=function(t,e){var i=this.valueAxis;f.isNumber(this.minValue)||(i.min=t,i.invalidate()),f.isNumber(this.maxValue)||(i.max=e,i.invalidate())},e.prototype.processConfig=function(e){if(e&&f.hasValue(e.series)&&f.isString(e.series)&&f.isString(e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var i=e.series,n=this.map.events.on("insertKey",(function(t){t.key==i&&(this.series=t.newValue,n.dispose())}),this);this._disposers.push(n),delete e.series}t.prototype.processConfig.call(this,e)},e}(r.a);a.c.registeredClasses.HeatLegend=y},"2gKx":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("ZLF9"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(e.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(t){this.properties.rectWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(t){this.properties.rectHeight=t,this.draw()},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.RectPattern=a},"2i0j":function(t,e,i){"use strict";function n(t){return(n="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})(t)}var r=i("MfZA"),o=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"==typeof i){var a=i.call(t,e);if("object"!==n(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"3/+B":function(t,e,i){"use strict";t.exports=i("pb4Y")||!i("AEc5")((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i("T9LF")[t]}))},"3/51":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("DA7/"),o=i("aCit"),a=i("Gg2j"),s=i("Mtpk"),l=function(t){function e(){var e=t.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(t){this._lightnesses=t,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(t){this._brightnesses=t,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacities",{get:function(){return this._opacities},set:function(t){this._opacities=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsets",{get:function(){return this._offsets},set:function(t){this._offsets=t},enumerable:!0,configurable:!0}),e.prototype.modify=function(t){this.gradient.clear();var e=0;this.opacities&&(e=a.max(e,this.opacities.length)),this.lightnesses&&(e=a.max(e,this.lightnesses.length)),this.brightnesses&&(e=a.max(e,this.brightnesses.length));for(var i,n,r=1,o=0;o<e;o++){var l=t;this.opacities&&s.isNumber(this.opacities[o])&&(r=this.opacities[o]),this.lightnesses&&s.isNumber(this.lightnesses[o])&&(i=this.lightnesses[o],n=void 0),this.brightnesses&&s.isNumber(this.brightnesses[o])&&(n=this.brightnesses[o],i=void 0),s.isNumber(n)?l=t.brighten(this.brightnesses[o]):s.isNumber(i)&&(l=t.lighten(this.lightnesses[o]));var c=this.offsets[o];this.gradient.addColor(l,r,c)}return this.gradient},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this._offsets=e.offsets,this._brightnesses=e.brightnesses,this._lightnesses=e.lightnesses,this._opacities=e.opacities},e}(r.a);o.c.registeredClasses.GradientModifier=l},"31Mu":function(t,e,i){var n=i("Gb1H"),r=i("9i/o");n(n.P+n.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},"36h5":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"3BzE":function(t,e,i){var n=i("ODWe"),r=i("heQh");t.exports=Object.keys||function(t){return n(t,r)}},"3Cxr":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.order=function(t,e){return t===e?0:t<e?-1:1}},"3X+j":function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},"3fx7":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("AEc5"),o=i("GIxq"),a=1..toPrecision;n(n.P+n.F*(r((function(){return"1"!==a.call(1,void 0)}))||!r((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},"3mH9":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("DbOM"),o=i("20m4"),a=i("hpnp");t.exports=function(t){n(n.S,t,{from:function(t){var e,i,n,s,l=arguments[1];return r(this),(e=void 0!==l)&&r(l),null==t?new this:(i=[],e?(n=0,s=o(l,arguments[2],2),a(t,!1,(function(t){i.push(s(t,n++))}))):a(t,!1,i.push,i),new this(i))}})}},"3xrs":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("dstF")(4);n(n.P+n.F*!i("GQop")([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},"4BRe":function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},"4DCw":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("mIpt"),o=i("Mtpk"),a=i("hJ5i"),s=[",",";","\t"],l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return n.c(e,t),e.isCSV=function(t){return!!e.getDelimiterFromData(t)},e.getDelimiterFromData=function(t){var e,i=t.split("\n"),n=i.length;return a.each(s,(function(t){for(var r=0,o=0,a=0;a<n;++a){if(!((r=i[a].split(t).length)>1)){o=0;break}if(0===o)o=r;else if(r!=o){o=0;break}}o&&(e=t)})),e},e.prototype.parse=function(t){this.options.delimiter||(this.options.delimiter=e.getDelimiterFromData(t));var i,n,r,a=this.CSVToArray(t,this.options.delimiter),s=o.hasValue(this.options.emptyAs),l=this.parsableNumbers,c=this.parsableDates,h=[],u=[];for(n=0;n<this.options.skipRows;n++)a.shift();if(this.options.useColumnNames){u=a.shift();for(var d=0;d<u.length;d++)""===(i=o.hasValue(u[d])?u[d].replace(/^\s+|\s+$/gm,""):"")&&(i="col"+d),u[d]=i}for(;r=this.options.reverse?a.pop():a.shift();)if(!this.options.skipEmpty||1!==r.length||""!==r[0]){var p={};for(n=0;n<r.length;n++)p[i=void 0===u[n]?"col"+n:u[n]]=""===r[n]?this.options.emptyAs:r[n],s&&(p[i]=this.maybeToEmpty(p[i])),l&&(p[i]=this.maybeToNumber(i,p[i])),c&&(p[i]=this.maybeToDate(i,p[i]));h.push(p)}return h},e.prototype.CSVToArray=function(t,e){e=e||",";for(var i=new RegExp("(\\"+e+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+e+"\\r\\n]*))","gi"),n=[[]],r=null;r=i.exec(t);){var o=r[1];o.length&&o!==e&&n.push([]);var a;a=r[2]?r[2].replace(new RegExp('""',"g"),'"'):r[3],n[n.length-1].push(a)}return n},e}(r.a)},"4McO":function(t,e,i){"use strict";var n=i("0Zt3"),r=i("snR7"),o=i("QXbb"),a=i("YxCF"),s=i("FmWr"),l=i("2i0j"),c=i("2Nze"),h=i("AEc5"),u=Math.min,d=[].push,p=!h((function(){RegExp(4294967295,"y")}));i("7V6K")("split",2,(function(t,e,i,h){var f;return f="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(r,t,e);for(var o,a,s,l=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,p=void 0===e?4294967295:e>>>0,f=new RegExp(t.source,h+"g");(o=c.call(f,r))&&!((a=f.lastIndex)>u&&(l.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&d.apply(l,o.slice(1)),s=o[0].length,u=a,l.length>=p));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||l.push(""):l.push(r.slice(u)),l.length>p?l.slice(0,p):l}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var r=t(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,r,n):f.call(String(r),i,n)},function(t,e){var n=h(f,t,this,e,f!==i);if(n.done)return n.value;var c=r(t),d=String(this),g=o(c,RegExp),m=c.unicode,y=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(p?"y":"g"),v=new g(p?c:"^(?:"+c.source+")",y),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===d.length)return null===l(v,d)?[d]:[];for(var x=0,w=0,_=[];w<d.length;){v.lastIndex=p?w:0;var S,P=l(v,p?d:d.slice(w));if(null===P||(S=u(s(v.lastIndex+(p?0:w)),d.length))===x)w=a(d,w,m);else{if(_.push(d.slice(x,w)),_.length===b)return _;for(var k=1;k<=P.length-1;k++)if(_.push(P[k]),_.length===b)return _;w=x=S}}return _.push(d.slice(x)),_}]}))},"5+SK":function(t,e,i){var n=i("snR7"),r=i("p3CN"),o=i("heQh"),a=i("VYrJ")("IE_PROTO"),s=function(){},l=function(){var t,e=i("+wz8")("iframe"),n=o.length;for(e.style.display="none",i("Ax3V").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:r(i,e)}},"57Qg":function(t,e,i){var n=i("Gb1H"),r=i("sxbc");n(n.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},"58Sn":function(t,e,i){"use strict";i.d(e,"a",(function(){return h})),i.d(e,"e",(function(){return u})),i.d(e,"d",(function(){return d})),e.g=function(t,e,i,n){return t.addEventListener(e,i,n||!1),new o.b((function(){t.removeEventListener(e,i,n||!1)}))},e.q=function(t){if(c.isString(t)){var e=document.getElementById(t);if(null==e&&(e=document.getElementsByClassName(t)[0]),e instanceof HTMLElement)return e}else if(t instanceof HTMLElement)return t},e.f=function(t,e){if(t)if(t.classList)t.classList.add(e);else{var i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((function(t){return t!==e})).join(" ")+" "+e):t.setAttribute("class",e)}},e.x=function(t,e){if(t)if(t.classList)t.classList.remove(e);else{var i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((function(t){return t!==e})).join(" "))}},e.y=function(t,e,i){t.style[e]=i},e.p=p,e.h=function(){var t=document.createElement("input");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)},e.o=function(t){if(t instanceof HTMLElement)t.focus();else{var e=document.createElement("input"),i=document.createElementNS(h,"foreignObject");i.appendChild(e),t.appendChild(i),e.focus(),e.disabled=!0,i.remove()}},e.v=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div"),i=t.cloneNode(!0);return e.appendChild(i),e.innerHTML},e.s=function(t){return t instanceof Object&&t&&1===t.nodeType},e.i=function(t,e){for(var i=e;;){if(t===i)return!0;if(null==i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}},e.r=function(t){for(var e=t.ownerDocument,i=t;;){if(null==i.parentNode)return i===e||null!=i.host?i:null;i=i.parentNode}},e.k=function(t){return"function"==typeof t.composedPath?t.composedPath()[0]:t.target},e.j=function(t,e){l.each(t.attributes,(function(t){null!=t.value&&e.setAttribute(t.name,t.value)}))},e.n=function(t){Object(a.c)((function(){try{var e=t.getBoundingClientRect(),i=e.left-Math.round(e.left),n=e.top-Math.round(e.top);0!==i&&Object(a.f)((function(){t.style.left=i+"px"})),0!==n&&Object(a.f)((function(){t.style.top=n+"px"}))}catch(t){}}))},i.d(e,"c",(function(){return g})),i.d(e,"b",(function(){return y})),e.w=function(t){if("loading"!==document.readyState)t();else{var e=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}},e.l=function t(e){var i=p(e,"font-family");if(i)return i;var n=e.parentElement||e.parentNode;return n?t(n):void 0},e.m=function t(e){var i=p(e,"font-size");if(i)return i;var n=e.parentElement||e.parentNode;return n?t(n):void 0},e.u=function(t){return null===t.offsetParent},e.t=function t(e,i){var n=e.getBoundingClientRect();if(i){if(!t(i))return!1;var r=i.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.top<=r.top+r.height&&n.left<=r.left+r.width}return n.top>=0&&n.left>=0&&n.top<=(window.innerHeight||document.documentElement.clientHeight)&&n.left<=(window.innerWidth||document.documentElement.clientWidth)};var n,r=i("m4/l"),o=i("hD5A"),a=i("/9XX"),s=i("Qkdp"),l=i("hJ5i"),c=i("Mtpk"),h="http://www.w3.org/2000/svg",u="http://www.w3.org/2000/xmlns/",d="http://www.w3.org/1999/xlink";function p(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function f(){if(!c.hasValue(n)){var t=document.createElement("style");t.type="text/css",document.head.appendChild(t),n=t.sheet}return n}var g=function(t){function e(e,i){var n=t.call(this,(function(){var t=f(),e=l.indexOf(t.cssRules,n._rule);if(-1===e)throw new Error("Could not dispose StyleRule");t.deleteRule(e)}))||this;return n._rule=function(t){var e=f(),i=e.cssRules.length;return e.insertRule(t+"{}",i),e.cssRules[i]}(e),s.each(i,(function(t,e){n.setStyle(t,e)})),n}return r.c(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(t){this._rule.selectorText=t},enumerable:!0,configurable:!0}),e.prototype._setVendorPrefixName=function(t,e){var i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")},e.prototype.setStyle=function(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")},e}(o.b),m=0,y=function(t){function e(e,i){var n=this,r=c.hasValue(i)?i:"__style_"+ ++m+"__";return(n=t.call(this,"."+r,e)||this)._className=r,n}return r.c(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t,this.selector="."+t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._className},e}(g)},"5BRL":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("EhJv"),o=[].join;n(n.P+n.F*(i("sHIJ")!=Object||!i("GQop")(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},"5LIN":function(t,e,i){var n=i("Gb1H"),r=i("AzI1"),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},"5Les":function(t,e,i){var n=i("Gb1H");n(n.S,"Number",{isInteger:i("hcxM")})},"5lay":function(t,e,i){var n=i("Gb1H"),r=i("G5U1"),o=i("AEc5");t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o((function(){i(1)})),"Object",a)}},"5vid":function(t,e,i){"use strict";i.d(e,"b",(function(){return w})),i.d(e,"a",(function(){return _}));var n=i("m4/l"),r=i("Uf57"),o=i("Vs7R"),a=i("C6dT"),s=i("vMqJ"),l=i("+qIf"),c=i("pR7v"),h=i("VB2N"),u=i("aCit"),d=i("DG6Q"),p=i("CnhP"),f=i("tjMS"),g=i("Gg2j"),m=i("Qkdp"),y=i("Wglt"),v=i("hJ5i"),b=i("Mtpk"),x=i("hD5A"),w=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.locations.dateX=.5,e.locations.dateY=.5,e.locations.categoryX=.5,e.locations.categoryY=.5,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(t){this.setColumn(t)},enumerable:!0,configurable:!0}),e.prototype.setColumn=function(t){var e=this;if(this._column&&t!=this._column&&v.remove(this.sprites,this._column),this._column=t,t){var i=t.dataItem;i&&i!=this&&(i.column=void 0),this.addSprite(t),this._disposers.push(new x.b((function(){e.component&&e.component.columns.removeValue(t)})))}},Object.defineProperty(e.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new l.a),this._rangesColumns},enumerable:!0,configurable:!0}),e}(r.b),_=function(t){function e(){var e=t.call(this)||this;e._startLocation=0,e._endLocation=1,e.className="ColumnSeries",e.width=Object(f.c)(100),e.height=Object(f.c)(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var i=e.mainContainer.createChild(a.a);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e._columnsContainer=i,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},e.prototype.createDataItem=function(){return new w},e.prototype.validate=function(){var i=this;if(this.chart&&this.xAxis&&this.yAxis){var n,r=this.chart.series,o=0,a=0,s=[];y.each(r.iterator(),(function(t){var n;t instanceof e&&i.baseAxis==t.baseAxis&&(n=i.baseAxis==i.xAxis?i.chart.yAxes.indexOf(t.yAxis):i.chart.xAxes.indexOf(t.xAxis),s.push({series:t,axis:n}))})),s.sort((function(t,e){return t.axis-e.axis})),v.each(s,(function(t){var r=t.series;r instanceof e&&((!r.stacked&&r.clustered||n!=t.axis&&r.clustered)&&o++,r==i&&(a=o-1)),n=t.axis})),this.clustered||(a=0,o=1);var l=this.baseAxis.renderer,c=l.cellStartLocation,h=l.cellEndLocation;this._startLocation=c+a/o*(h-c),this._endLocation=c+(a+1)/o*(h-c)}t.prototype.validate.call(this);for(var u=0;u<this.startIndex;u++){var d=this.dataItems.getIndex(u);this.disableUnusedColumns(d)}for(u=this.dataItems.length-1;u>this.endIndex;u--)d=this.dataItems.getIndex(u),this.disableUnusedColumns(d)},e.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),t.prototype.validateDataElement.call(this,e))},e.prototype.getStartLocation=function(t){var e=this._startLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xOpenField]-.5:e+=t.locations[this.yOpenField]-.5,e},e.prototype.getEndLocation=function(t){var e=this._endLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xField]-.5:e+=t.locations[this.yField]-.5,e},e.prototype.validateDataElementReal=function(t){var e,i,n,r,a=this,s=this.getStartLocation(t),l=this.getEndLocation(t),u=this.xField,d=this.xOpenField,p=this.yField,f=this.yOpenField,v=this.columns.template,x=v.percentWidth,w=v.percentHeight,_=v.pixelWidth,S=v.pixelHeight,P=v.maxWidth,k=v.maxHeight,C=v.pixelPaddingLeft,T=v.pixelPaddingRight,A=v.pixelPaddingTop,O=v.pixelPaddingBottom,M=!1;if(this.xAxis instanceof h.a&&this.yAxis instanceof h.a){if(!t.hasValue(this._xValueFields)||!t.hasValue(this._yValueFields))return;s=0,l=1,b.isNaN(x)||(s+=L=g.round((l-s)*(1-x/100)/2,5),l-=L),e=this.xAxis.getX(t,d,s),i=this.xAxis.getX(t,u,l),b.isNaN(x)&&(e+=L=(i-e-_)/2,i-=L),!b.isNaN(P)&&P<Math.abs(i-e)&&(e+=L=(i-e-P)/2,i-=L),s=0,l=1,b.isNaN(w)||(s+=L=g.round((1-w/100)/2,5),l-=L),n=this.yAxis.getY(t,f,s),r=this.yAxis.getY(t,p,l),b.isNaN(w)&&(r+=L=(r-n-S)/2,n-=L),!b.isNaN(k)&&k<Math.abs(r-n)&&(r+=L=(r-n-k)/2,n-=L),i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),n=this.fixVerticalCoordinate(n),r=this.fixVerticalCoordinate(r)}else if(this.baseAxis==this.xAxis){if(!t.hasValue(this._yValueFields))return;b.isNaN(x)||(s+=L=g.round((l-s)*(1-x/100)/2,5),l-=L),e=this.xAxis.getX(t,d,s),i=this.xAxis.getX(t,u,l),b.isNaN(x)&&(e+=L=(i-e-_)/2,i-=L),!b.isNaN(P)&&P<Math.abs(i-e)&&(e+=L=(i-e-P)/2,i-=L);var E=t.locations[f],I=t.locations[p];this.yAxis instanceof c.a&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(E=0,I=0),r=this.yAxis.getY(t,f,E),n=this.yAxis.getY(t,p,I);var D=Math.ceil(this.yAxis.axisLength);(n<0&&r<0||n>D&&r>D)&&(M=!0),n=this.fixVerticalCoordinate(n),r=this.fixVerticalCoordinate(r),Math.abs(i-e)-C-T==0&&(M=!0)}else{if(!t.hasValue(this._xValueFields))return;var L;b.isNaN(w)||(s+=L=g.round((l-s)*(1-w/100)/2,5),l-=L),n=this.yAxis.getY(t,f,s),r=this.yAxis.getY(t,p,l),b.isNaN(w)&&(r-=L=(r-n-S)/2,n+=L),!b.isNaN(k)&&k<Math.abs(r-n)&&(r-=L=(r-n-k)/2,n+=L);var j=t.locations[u],N=t.locations[d];this.xAxis instanceof c.a&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&(j=0,N=0),i=this.xAxis.getX(t,u,j),e=this.xAxis.getX(t,d,N),D=Math.ceil(this.xAxis.axisLength),(i<0&&e<0||i>D&&e>D)&&(M=!0),i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),Math.abs(n-r)-A-O==0&&(M=!0)}var F,R=Math.abs(i-e),V=Math.abs(r-n),z=Math.min(e,i),B=Math.min(n,r);M?this.disableUnusedColumns(t):(t.column?F=t.column:(F=this.columns.create(),m.copyProperties(this,F,o.b),m.copyProperties(this.columns.template,F,o.b),t.addSprite(F),t.column=F,F.paper=this.paper,this.itemsFocusable()?(this.role="menu",F.role="menuitem",F.focusable=!0):(this.role="list",F.role="listitem",F.focusable=!1),F.focusable&&(F.events.on("focus",(function(e){F.readerTitle=a.populateString(a.itemReaderText,t)}),void 0,!1),F.events.on("blur",(function(t){F.readerTitle=""}),void 0,!1)),F.hoverable&&(F.events.on("over",(function(e){F.readerTitle=a.populateString(a.itemReaderText,t)}),void 0,!1),F.events.on("out",(function(t){F.readerTitle=""}),void 0,!1))),F.width=R,F.height=V,F.x=z,F.y=B,F.realX=e,F.realY=n,F.realWidth=i-e,F.realHeight=r-n,F.parent=this.columnsContainer,F.virtualParent=this,this.setColumnStates(F),F.invalid&&F.validate(),F.__disabled=!1,y.each(this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i||(i=a.columns.create(),m.copyProperties(e.contents,i,o.b),t.addSprite(i),t.rangesColumns.setKey(e.uid,i),i.paper=a.paper),i.parent=e.contents,i.width=R,i.height=V,i.x=z,i.y=B,a.setColumnStates(i),i.invalid&&i.validate(),i.__disabled=!1}))),t.itemWidth=R,t.itemHeight=V},e.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.width=0,t.column.height=0,t.column.__disabled=!0),y.each(this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.width=0,i.height=0,i.__disabled=!0)})))},e.prototype.setColumnStates=function(t){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var e=t.dataItem;if(this.xAxis instanceof c.a||this.yAxis instanceof c.a){var i,n=void 0,r=void 0;this.baseAxis==this.yAxis?this.xOpenField&&this.xField&&this.xAxis instanceof c.a&&(i=e.getValue(this.xOpenField),n=e.getValue(this.xField),r=e.getValue(this.xAxis.axisFieldName+"X","previousChange")):this.yOpenField&&this.yField&&this.yAxis instanceof c.a&&(i=e.getValue(this.yOpenField),n=e.getValue(this.yField),r=e.getValue(this.yAxis.axisFieldName+"Y","previousChange")),n<i?(e.droppedFromOpen=!0,t.defaultState.copyFrom(this._dropFromOpenState),t.setState(this._dropFromOpenState,0)):(e.droppedFromOpen=!1,t.defaultState.copyFrom(this._riseFromOpenState),t.setState(this._riseFromOpenState,0)),r<0?(e.droppedFromPrevious=!0,t.defaultState.copyFrom(this._dropFromPreviousState),t.setState(this._dropFromPreviousState,0)):(e.droppedFromPrevious=!1,t.defaultState.copyFrom(this._riseFromPreviousState),t.setState(this._riseFromPreviousState,0))}}},Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns||(this._columns=new s.e(this.createColumnTemplate()),this._disposers.push(new s.c(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),e.prototype.createColumnTemplate=function(){return new d.a},Object.defineProperty(e.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(t){this.setPropertyValue("clustered",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},set:function(t){this._dropFromOpenState=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},set:function(t){this._dropFromPreviousState=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},set:function(t){this._riseFromOpenState=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},set:function(t){this._riseFromPreviousState=t},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(e,i){var n=this;if(t.prototype.updateLegendValue.call(this,e,i),this.legendDataItem){var r,o,a=this.legendDataItem.marker;e&&(r=e.droppedFromOpen?this._dropFromOpenState:this._riseFromOpenState,o=e.droppedFromPrevious?this._dropFromPreviousState:this._riseFromPreviousState),y.each(a.children.iterator(),(function(t){e?(t.setState(o),t.setState(r)):(t.setState(n._riseFromPreviousState),t.setState(n._riseFromOpenState))}))}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n=t.createChild(p.a);n.shouldClone=!1,m.copyProperties(this,n,o.b),n.copyFrom(this.columns.template),n.padding(0,0,0,0),n.width=e,n.height=i;var r=t.dataItem;r.color=this.fill,r.colorOrig=this.fill},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},e.prototype.getBulletLocationX=function(e,i){if(this.baseAxis==this.xAxis){var n=e.locationX;b.isNumber(n)||(n=.5);var r=this.getEndLocation(e.dataItem);return r-(r-this.getStartLocation(e.dataItem))*n}return t.prototype.getBulletLocationX.call(this,e,i)},e.prototype.getBulletLocationY=function(e,i){if(this.baseAxis==this.yAxis){var n=e.locationY;b.isNumber(n)||(n=.5);var r=this.getEndLocation(e.dataItem);return r-(r-this.getStartLocation(e.dataItem))*n}return t.prototype.getBulletLocationY.call(this,e,i)},e.prototype.getAdjustedXLocation=function(e,i){if(this.baseAxis==this.xAxis){var n=.5;return e&&(n=e.locations[i]),b.isNumber(n)||(n=.5),this._endLocation-(this._endLocation-this._startLocation)*n}return t.prototype.getAdjustedXLocation.call(this,e,i)},e.prototype.getAdjustedYLocation=function(e,i){if(this.baseAxis==this.yAxis){var n=.5;return e&&(n=e.locations[i]),b.isNumber(n)||(n=.5),this._endLocation-(this._endLocation-this._startLocation)*n}return t.prototype.getAdjustedXLocation.call(this,e,i)},e.prototype.fixVerticalCoordinate=function(t){var e=this.columns.template.pixelPaddingBottom,i=-this.columns.template.pixelPaddingTop,n=this.yAxis.axisLength+e;return g.fitToRange(t,i,n)},e.prototype.fixHorizontalCoordinate=function(t){var e=this.columns.template.pixelPaddingLeft,i=this.columns.template.pixelPaddingRight,n=-e,r=this.xAxis.axisLength+i;return g.fitToRange(t,n,r)},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.columns.clear()},e}(r.a);u.c.registeredClasses.ColumnSeries=_,u.c.registeredClasses.ColumnSeriesDataItem=w},"5xph":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("C6dT"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(r.a);o.c.registeredClasses.AxisBullet=a},"6+x4":function(t,e,i){"use strict";var n=i("Gb1H");t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},"6/bx":function(t,e,i){var n=i("DvJ+"),r=i("7GtY").set;t.exports=function(t,e,i){var o,a=e.constructor;return a!==i&&"function"==typeof a&&(o=a.prototype)!==i.prototype&&n(o)&&r&&r(t,o),t}},"68eo":function(t,e,i){i("3mH9")("WeakSet")},"6MWL":function(t,e,i){function n(t){return(n="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})(t)}var r=i("dLrC"),o=i("Gb1H"),a=i("OB1/")("metadata"),s=a.store||(a.store=new(i("BYDm"))),l=function(t,e,i){var n=s.get(t);if(!n){if(!i)return;s.set(t,n=new r)}var o=n.get(e);if(!o){if(!i)return;n.set(e,o=new r)}return o};t.exports={store:s,map:l,has:function(t,e,i){var n=l(e,i,!1);return void 0!==n&&n.has(t)},get:function(t,e,i){var n=l(e,i,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,i,n){l(i,n,!0).set(t,e)},keys:function(t,e){var i=l(t,e,!1),n=[];return i&&i.forEach((function(t,e){n.push(e)})),n},key:function(t){return void 0===t||"symbol"==n(t)?t:String(t)},exp:function(t){o(o.S,"Reflect",t)}}},"6PqY":function(t,e,i){var n=i("Gb1H"),r=i("5+SK"),o=i("DbOM"),a=i("snR7"),s=i("DvJ+"),l=i("AEc5"),c=i("lLkc"),h=(i("T9LF").Reflect||{}).construct,u=l((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),d=!l((function(){h((function(){}))}));n(n.S+n.F*(u||d),"Reflect",{construct:function(t,e){o(t),a(e);var i=arguments.length<3?t:o(arguments[2]);if(d&&!u)return h(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var l=i.prototype,p=r(s(l)?l:Object.prototype),f=Function.apply.call(t,p,e);return s(f)?f:p}})},"6l3Y":function(t,e,i){var n=i("Gb1H");n(n.P+n.R,"Map",{toJSON:i("dJEq")("Map")})},"6mHT":function(t,e,i){for(var n=i("2/6D"),r=i("3BzE"),o=i("wDk4"),a=i("T9LF"),s=i("Vng0"),l=i("9BM3"),c=i("YEtG"),h=c("iterator"),u=c("toStringTag"),d=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),g=0;g<f.length;g++){var m,y=f[g],v=p[y],b=a[y],x=b&&b.prototype;if(x&&(x[h]||s(x,h,d),x[u]||s(x,u,y),l[y]=d,v))for(m in n)x[m]||o(x,m,n[m],!0)}},"6w17":function(t,e,i){"use strict";var n=i("DbOM");t.exports.f=function(t){return new function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=n(e),this.reject=n(i)}(t)}},"7DgU":function(t,e,i){i("YJIw")("Uint32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"7GtY":function(t,e,i){var n=i("DvJ+"),r=i("snR7"),o=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=i("20m4")(Function.call,i("nHHr").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return o(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:o}},"7V6K":function(t,e,i){"use strict";i("zy/o");var n=i("wDk4"),r=i("Vng0"),o=i("AEc5"),a=i("kcsd"),s=i("YEtG"),l=i("2Nze"),c=s("species"),h=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=s(t),p=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),f=p?!o((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[c]=function(){return i}),i[d](""),!e})):void 0;if(!p||!f||"replace"===t&&!h||"split"===t&&!u){var g=/./[d],m=i(a,d,""[t],(function(t,e,i,n,r){return e.exec===l?p&&!r?{done:!0,value:g.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),y=m[0],v=m[1];n(String.prototype,t,y),r(RegExp.prototype,d,2==e?function(t,e){return v.call(t,this,e)}:function(t){return v.call(t,this)})}}},"7Va9":function(t,e,i){var n=i("Gb1H"),r=i("T9LF").isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},"7XB+":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("m4/l"),r=i("P/bD"),o=i("Tjl+"),a=i("MipW"),s=i("aCit"),l=i("ScGY"),c=i("v9UT"),h=i("Mtpk"),u=function(t){function e(){var e=t.call(this)||this;return e._dateFormat="yyyy-MM-dd",e._inputDateFormat="yyyy-MM-dd",e._utc=!1,e._firstDayOfWeek=1,e._months=["January","February","March","April","May","June","July","August","September","October","November","December"],e._monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e._weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e._weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e._outputFormat="svg",e.capitalize=!0,e.className="DateFormatter",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"language",{get:function(){return this._language},set:function(t){this._language=t,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e){var i,n;if(this.language||(this.sprite?this.language=this.sprite.language:this.language=new r.a),void 0!==e&&""!==e||(e=this._dateFormat),n=h.isString(t)?this.parse(t):c.anyToDate(t),e instanceof Object)return this.intlLocales?new Intl.DateTimeFormat(this.intlLocales,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n);e=c.cleanFormat(e);var o=this.parseFormat(e);return h.hasValue(this.timezoneOffset)&&n.setMinutes(n.getMinutes()+n.getTimezoneOffset()-this.timezoneOffset),h.isNumber(n.getTime())?(i=this.applyFormat(n,o,this.language),this.capitalize&&(i=i.replace(/^.{1}/,i.substr(0,1).toUpperCase())),i):this.language.translate("Invalid date")},e.prototype.parseFormat=function(t){var e=this.getCache(t);if(h.hasValue(e))return e;for(var i={template:"",parts:[]},n=Object(a.b)().chunk(t,!0),r=0;r<n.length;r++){var o=n[r];if("value"===o.type){o.text.match(/^date$/i)&&h.isString(this._dateFormat)&&(o.text=this._dateFormat);var s=o.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(s)for(var c=0;c<s.length;c++)i.parts.push(s[c]),o.text=o.text.replace(s[c],l.d)}i.template+=o.text}return this.setCache(t,i),i},e.prototype.applyFormat=function(t,e,i){var n,r,o,a,s,h,u,d,p=e.template,f=t.getTimezoneOffset(),g=t.getTime();this.utc?(n=t.getUTCFullYear(),r=t.getUTCMonth(),o=t.getUTCDay(),a=t.getUTCDate(),s=t.getUTCHours(),h=t.getUTCMinutes(),u=t.getUTCSeconds(),d=t.getUTCMilliseconds()):(n=t.getFullYear(),r=t.getMonth(),o=t.getDay(),a=t.getDate(),s=t.getHours(),h=t.getMinutes(),u=t.getSeconds(),d=t.getMilliseconds());for(var m=0,y=e.parts.length;m<y;m++){var v="";switch(e.parts[m]){case"G":v=i.translate(n<0?"_era_bc":"_era_ad");break;case"yyyy":v=Math.abs(n).toString(),n<0&&(v+=i.translate("_era_bc"));break;case"yyy":case"yy":case"y":v=Math.abs(n).toString().substr(-e.parts[m].length),n<0&&(v+=i.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var b=n;1==c.getWeek(t)&&o>1&&b--,v="YYYY"==e.parts[m]?Math.abs(b).toString():Math.abs(b).toString().substr(-e.parts[m].length),b<0&&(v+=i.translate("_era_bc"));break;case"u":break;case"MMMMM":v=i.translate(this._months[r]).substr(0,1);break;case"MMMM":v=i.translate(this._months[r]);break;case"MMM":v=i.translate(this._monthsShort[r]);break;case"MM":v=c.padString(r+1,2,"0");break;case"M":v=(r+1).toString();break;case"ww":v=c.padString(c.getWeek(t,this.utc),2,"0");break;case"w":v=c.getWeek(t,this.utc).toString();break;case"W":v=c.getMonthWeek(t,this.utc).toString();break;case"dd":v=c.padString(a,2,"0");break;case"d":v=a.toString();break;case"DD":case"DDD":v=c.padString(c.getYearDay(t,this.utc).toString(),e.parts[m].length,"0");break;case"D":v=c.getYearDay(t,this.utc).toString();break;case"F":case"g":break;case"t":v=i.translateFunc("_dateOrd").call(this,a);break;case"E":v=(o||7).toString();break;case"EE":v=c.padString((o||7).toString(),2,"0");break;case"EEE":case"eee":v=i.translate(this._weekdaysShort[o]);break;case"EEEE":case"eeee":v=i.translate(this._weekdays[o]);break;case"EEEEE":case"eeeee":v=i.translate(this._weekdays[o]).substr(0,1);break;case"e":case"ee":v=(o-this.firstDayOfWeek+1).toString(),"ee"==e.parts[m]&&(v=c.padString(v,2,"0"));break;case"a":v=s>=12?i.translate("PM"):i.translate("AM");break;case"aa":v=s>=12?i.translate("P.M."):i.translate("A.M.");break;case"aaa":v=s>=12?i.translate("P"):i.translate("A");break;case"h":v=c.get12Hours(s).toString();break;case"hh":v=c.padString(c.get12Hours(s),2,"0");break;case"H":v=s.toString();break;case"HH":v=c.padString(s,2,"0");break;case"K":v=c.get12Hours(s,0).toString();break;case"KK":v=c.padString(c.get12Hours(s,0),2,"0");break;case"k":v=(s+1).toString();break;case"kk":v=c.padString(s+1,2,"0");break;case"m":v=h.toString();break;case"mm":v=c.padString(h,2,"0");break;case"s":v=u.toString();break;case"ss":v=c.padString(u,2,"0");break;case"S":case"SS":case"SSS":v=Math.round(d/1e3*Math.pow(10,e.parts[m].length)).toString();break;case"x":v=g.toString();break;case"n":case"nn":case"nnn":v=c.padString(d,e.parts[m].length,"0");break;case"z":v=c.getTimeZone(t,!1,!1,this.utc);break;case"zz":v=c.getTimeZone(t,!0,!1,this.utc);break;case"zzz":v=c.getTimeZone(t,!1,!0,this.utc);break;case"zzzz":v=c.getTimeZone(t,!0,!0,this.utc);break;case"Z":case"ZZ":var x=Math.abs(f)/60,w=Math.floor(x),_=60*x-60*w;this.utc&&(w=0,_=0),"Z"==e.parts[m]?(v="GMT",v+=f>0?"-":"+",v+=c.padString(w,2)+":"+c.padString(_,2)):(v=f>0?"-":"+",v+=c.padString(w,2)+c.padString(_,2));break;case"i":v=t.toISOString();break;case"I":v=t.toUTCString()}p=p.replace(l.d,v)}return p},e.prototype.parse=function(t,e){if(h.hasValue(e)||(e=this.inputDateFormat),t instanceof Date)return t;if("number"==typeof t)return new Date(t);var i;"string"!=typeof t&&(t=t.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new r.a);var n="";e=(e=c.cleanFormat(e)).substr(0,t.length);for(var o=this.parseFormat(e),a={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},s={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},l=0,u=0,d=0;d<o.parts.length;d++){switch(u=d+l+1,o.parts[d]){case"yyyy":case"YYYY":n+="([0-9]{4})",a.year=u;break;case"yyy":case"YYY":n+="([0-9]{3})",a.year3=u;break;case"yy":case"YY":n+="([0-9]{2})",a.year2=u;break;case"y":case"Y":n+="([0-9]{1})",a.year1=u;break;case"MMMM":n+="("+this.getStringList(this._months).join("|")+")",a.monthLong=u;break;case"MMM":n+="("+this.getStringList(this._monthsShort).join("|")+")",a.monthShort=u;break;case"MM":case"M":n+="([0-9]{2}|[0-9]{1})",a.month=u;break;case"ww":case"w":n+="([0-9]{2}|[0-9]{1})",a.week=u;break;case"dd":case"d":n+="([0-9]{2}|[0-9]{1})",a.day=u;break;case"DDD":case"DD":case"D":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.yearDay=u;break;case"dddd":n+="("+this.getStringList(this._weekdays).join("|")+")",a.weekdayLong=u;break;case"ddd":n+="("+this.getStringList(this._weekdaysShort).join("|")+")",a.weekdayShort=u;break;case"aaa":case"aa":case"a":n+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",a.am=u;break;case"hh":case"h":n+="([0-9]{2}|[0-9]{1})",a.hour12Base1=u;break;case"HH":case"H":n+="([0-9]{2}|[0-9]{1})",a.hourBase0=u;break;case"KK":case"K":n+="([0-9]{2}|[0-9]{1})",a.hour12Base0=u;break;case"kk":case"k":n+="([0-9]{2}|[0-9]{1})",a.hourBase1=u;break;case"mm":case"m":n+="([0-9]{2}|[0-9]{1})",a.minute=u;break;case"ss":case"s":n+="([0-9]{2}|[0-9]{1})",a.second=u;break;case"SSS":case"SS":case"S":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=u,a.millisecondDigits=o.parts[d].length;break;case"nnn":case"nn":case"n":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=u;break;case"x":n+="([0-9]{1,})",a.timestamp=u;break;case"Z":n+="GMT([-+]+[0-9]{2}:[0-9]{2})",a.zone=u;break;case"ZZ":n+="([\\-+]+[0-9]{2}[0-9]{2})",a.zone=u;break;case"i":n+="([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{3})([Zz]?)",a.iso=u,l+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":l--}n+="[^0-9]*"}var p=new RegExp(n),f=t.match(p);if(f){if(a.year>-1&&(s.year=parseInt(f[a.year])),a.year3>-1){var g=parseInt(f[a.year3]);g+=1e3,s.year=g}if(a.year2>-1&&(g=parseInt(f[a.year2]),g+=g>50?1e3:2e3,s.year=g),a.year1>-1&&(g=parseInt(f[a.year1]),g=10*Math.floor((new Date).getFullYear()/10)+g,s.year=g),a.monthLong>-1&&(s.month=this.resolveMonth(f[a.monthLong])),a.monthShort>-1&&(s.month=this.resolveShortMonth(f[a.monthShort])),a.month>-1&&(s.month=parseInt(f[a.month])-1),a.week>-1&&-1===a.day&&(s.month=0,s.day=c.getDayFromWeek(parseInt(f[a.week]),s.year,1,this.utc)),a.day>-1&&(s.day=parseInt(f[a.day])),a.yearDay>-1&&(s.month=0,s.day=parseInt(f[a.yearDay])),a.hourBase0>-1&&(s.hour=parseInt(f[a.hourBase0])),a.hourBase1>-1&&(s.hour=parseInt(f[a.hourBase1])-1),a.hour12Base0>-1&&(11==(g=parseInt(f[a.hour12Base0]))&&(g=0),a.am>-1&&!this.isAm(f[a.am])&&(g+=12),s.hour=g),a.hour12Base1>-1&&(12==(g=parseInt(f[a.hour12Base1]))&&(g=0),a.am>-1&&!this.isAm(f[a.am])&&(g+=12),s.hour=g),a.minute>-1&&(s.minute=parseInt(f[a.minute])),a.second>-1&&(s.second=parseInt(f[a.second])),a.millisecond>-1&&(g=parseInt(f[a.millisecond]),2==a.millisecondDigits?g*=10:1==a.millisecondDigits&&(g*=100),s.millisecond=g),a.timestamp>-1&&(s.timestamp=parseInt(f[a.timestamp])),a.zone>-1){var m=f[a.zone].replace(/:/,""),y=h.getValue(m.match(/([+\-]?)([0-9]{2})([0-9]{2})/)),v=y[1],b=y[2],x=y[3],w=60*parseInt(b)+parseInt(x);"+"==v&&(w*=-1);var _=w-(new Date).getTimezoneOffset();s.offset=_}a.iso>-1&&("Z"!=f[a.iso+7]&&"z"!=f[a.iso+7]||(s.utc=!0),s.year=h.toNumber(f[a.iso+0]),s.month=h.toNumber(f[a.iso+1])-1,s.day=h.toNumber(f[a.iso+2]),s.hour=h.toNumber(f[a.iso+3]),s.minute=h.toNumber(f[a.iso+4]),s.second=h.toNumber(f[a.iso+5]),s.millisecond=h.toNumber(f[a.iso+6])),i=s.utc?new Date(Date.UTC(s.year,s.month,s.day,s.hour,s.minute,s.second,s.millisecond)):new Date(s.year,s.month,s.day,s.hour,s.minute,s.second,s.millisecond)}else i=new Date(t);return i},e.prototype.resolveMonth=function(t){var e=this._months.indexOf(t);return e>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this._months).indexOf(t))>-1?e:0},e.prototype.resolveShortMonth=function(t){var e=this._monthsShort.indexOf(t);return e>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this._monthsShort).indexOf(t))>-1?e:0},e.prototype.isAm=function(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},e.prototype.getStringList=function(t){for(var e=[],i=0;i<t.length;i++)e.push(c.escapeForRgex(t[i])),this.language&&!this.language.isDefault()&&e.push(c.escapeForRgex(this.language.translate(t[i])));return e},Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(t){this._dateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(t){this._inputDateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"utc",{get:function(){return this._utc},set:function(t){this._utc=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(t){this._timezoneOffset!=t&&(this._timezoneOffset=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(t){this._firstDayOfWeek=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e}(o.a);s.c.registeredClasses.DateFormatter=u},"7bL/":function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},"7xho":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("vJiZ"),o=i("W0fk");n(n.P+n.F*i("AEc5")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=r(this),i=o(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},"85D4":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("ohjg"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(t){this.properties.saturation=t,this.feColorMatrix.attr({values:t.toString()})},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.DesaturateFilter=a},"8EhG":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("Vs7R"),o=i("aCit"),a=i("MIZb"),s=i("Mtpk"),l=function(t){function e(e){var i=t.call(this)||this;i.axis=e,i.element=i.paper.add("path"),i.className="AxisFill",i.isMeasured=!1,i.location=0,i.above=!1;var n=new a.a;return i.fill=n.getFor("alternativeBackground"),i.fillOpacity=0,i.applyTheme(),i}return n.c(e,t),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e.prototype.draw=function(){t.prototype.draw.call(this),this.__disabled||this.disabled||this.axis&&s.isNumber(this.startPosition)&&s.isNumber(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath)},Object.defineProperty(e.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(t){this.setPropertyValue("startPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(t){this.setPropertyValue("endPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this.element.attr({d:t}),!0)},Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.AxisFill=l},"8LiO":function(t,e,i){"use strict";i("Mvcd")("sub",(function(t){return function(){return t(this,"sub","","")}}))},"8LwG":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("6w17"),o=i("wYgt");n(n.S,"Promise",{try:function(t){var e=r.f(this),i=o(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},"8NlW":function(t,e,i){"use strict";i("Mvcd")("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},"8ZqG":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),e.c=s,e.d=l,e.b=c,e.e=function(t){return o.hasValue(t)&&!l(t)?c(t):t};var n=i("aCit"),r=i("hxI2"),o=i("Mtpk"),a=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._value?r.rgbToHex(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rgba",{get:function(){return this._value?r.rgbToRGBA(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return null!=this._value&&null!=this._value.a?this._value.a:1},set:function(t){this._value&&(this._value.a=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new t({r:255,g:255,b:255})),this._lightColor},set:function(t){this._lightColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new t({r:0,g:0,b:0})),this._darkColor},set:function(t){this._darkColor=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},t.prototype.lighten=function(e){return new t(r.lighten(this.rgb,e))},t.prototype.brighten=function(e){return new t(r.brighten(this.rgb,e))},t.prototype.saturate=function(e){return new t(r.saturate(this.rgb,e))},Object.defineProperty(t.prototype,"alternative",{get:function(){if(null!=this.rgb)return r.isLight(this.rgb)?this.darkColor:this.lightColor;throw new Error("Color does not exist")},enumerable:!0,configurable:!0}),t}();function s(t,e){if(!o.hasValue(t))return new a(void 0);if("string"==typeof t){var i="_color_"+t+"_"+(e||"1"),s=n.c.getCache(i);if(s)return new a({r:s.r,g:s.g,b:s.b,a:s.a});var l=r.rgb(t,e);return n.c.setCache(i,l),new a(l)}return t instanceof a?(o.hasValue(e)&&(t.alpha=e),t):new a(t)}function l(t){return t instanceof a}function c(t){return s(t)}},"8aZA":function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}})},"8oRD":function(t,e,i){var n=i("DvJ+");i("5lay")("isExtensible",(function(t){return function(e){return!!n(e)&&(!t||t(e))}}))},"8rbL":function(t,e,i){function n(t){return(n="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})(t)}var r=i("EhJv"),o=i("rkh7").f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":n(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(r(t))}},"8tDI":function(t,e,i){var n=i("Gb1H"),r=Math.imul;n(n.S+n.F*i("AEc5")((function(){return-5!=r(4294967295,5)||2!=r.length})),"Math",{imul:function(t,e){var i=+t,n=+e,r=65535&i,o=65535&n;return 0|r*o+((65535&i>>>16)*o+r*(65535&n>>>16)<<16>>>0)}})},"8ujI":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("dstF")(2);n(n.P+n.F*!i("GQop")([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},"9BM3":function(t,e){t.exports={}},"9MGJ":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("vJiZ"),o=i("DbOM"),a=i("hjwn");i("gD3S")&&n(n.P+i("3/+B"),"Object",{__defineSetter__:function(t,e){a.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},"9UcF":function(t,e,i){var n=i("Gb1H");n(n.S,"Object",{create:i("5+SK")})},"9ZsQ":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("ZoDA"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(t){this.setPropertyValue("startDate",t)&&(this.startValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(t){this.setPropertyValue("endDate",t)&&(this.endValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.DateAxisBreak=a},"9i/o":function(t,e,i){"use strict";var n=i("AEc5"),r=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!n((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(i>99?i:"0"+a(i))+"Z"}:o},A6AV:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("Tjl+"),o=i("x79X"),a=i("1yyj"),s=i("v9UT"),l=i("hJ5i"),c=i("Mtpk"),h=function(t){function e(){var e=t.call(this)||this;return e._disabled=!1,e.hasProperties=!1,e.values={},e.categories={},e.dates={},e.locations={},e.workingLocations={},e.properties={},e.sprites=[],e.isTemplate=!1,e._index=null,e._visible=!0,e._hidden=!1,e._ignoreMinMax=!1,e.hasChildren={},e.isHiding=!1,e._valueAnimations={},e._locationAnimations={},e.className="DataItem",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new o.a(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.component&&null!=this._index?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new a.b(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return!this._hidden&&this._visible},set:function(t){t&&(this.hidden=!1),this._visible!=t&&this.setVisibility(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden!=t&&(this._hidden=t,t?this.setVisibility(!1):this.setVisibility(!0,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,l.each(this.sprites,(function(e){e.__disabled=t}))},enumerable:!0,configurable:!0}),e.prototype.setVisibility=function(t,e){if(l.each(this.sprites,(function(e){t?e.visible=e.defaultState.properties.visible:e.hiddenState?e.visible=e.hiddenState.properties.visible:e.visible=!1})),this._visible=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("visibilitychanged")){var i={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",i)}},e.prototype.show=function(t,e,i){var n,r=this;if(!this.hidden)return this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer),i&&l.each(i,(function(i){n=r.setWorkingValue(i,r.values[i].value,t,e)})),l.each(this.sprites,(function(i){var n=i.show(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))})),n},e.prototype.dispose=function(){t.prototype.dispose.call(this),l.each(this.sprites,(function(t){t.dispose()})),this.sprites=[]},e.prototype.hide=function(t,e,i,n){var r=this;if(this.isHiding=!0,l.each(this.sprites,(function(i){var n=i.hide(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))})),c.isNumber(i)&&n){var o;if(l.each(n,(function(n){var a=r.setWorkingValue(n,i,t,e);a&&(o=a)})),o&&!o.isFinished())return this._hideDisposer=o.events.on("animationended",(function(){r.setVisibility(!1,!0),r.isHiding=!1})),this._disposers.push(this._hideDisposer),o;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},e.prototype.getDuration=function(t){if(!c.isNumber(t)){var e=this.component;e&&(t=e.interpolationDuration)}if(null!=t)return this._adapterO?this._adapterO.apply("duration",t):t},e.prototype.getValue=function(t,e){if(t&&this.component){e||(e=this.component.dataFields[t+"Show"])||(e="value");var i=this.values[t][e];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:i,field:t}).value:i}},e.prototype.getWorkingValue=function(t){if(t&&this.component){var e=this.component.dataFields[t+"Show"];return e||(e="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[t][e],field:t}).workingValue:this.values[t][e]}},e.prototype.getActualWorkingValue=function(t){return this.values[t].workingValue},e.prototype.setValue=function(t,e,i,n){var r=this.values[t].value,o=this.getDuration(i);if(r!==(e=c.toNumber(e))){if(this.values[t].value=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var a={type:"valuechanged",target:this,property:t};this.events.dispatchImmediately("valuechanged",a)}this.component&&this.component.handleDataItemValueChange(this,t)}this.setWorkingValue(t,e,o,n)},e.prototype.setCalculatedValue=function(t,e,i){if(this.values[t][i]!==e&&c.isNumber(e)){if(this.values[t][i]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var n={type:"calculatedvaluechanged",target:this,property:t};this.events.dispatchImmediately("calculatedvaluechanged",n)}this.component&&this.component.handleDataItemCalculatedValueChange(this,t)}},e.prototype.setWorkingValue=function(t,e,i,n){if(c.isNumber(this.values[t].value)){var r=this.getDuration(i),o=this.values[t].workingValue;if(null!=r&&r>0&&c.isNumber(o)&&this.component){if(o!=e){var a=this.animate({childObject:this.values[t],property:"workingValue",from:o,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&a.delay(n),a.events.on("animationstarted",this.handleInterpolationProgress,this),a.events.on("animationprogress",this.handleInterpolationProgress,this),a.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[t]=a,a}(s=this._valueAnimations[t])&&s.stop(),this.values[t].workingValue=e}else{var s;if((s=this._valueAnimations[t])&&s.stop(),this.values[t].workingValue=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var l={type:"workingvaluechanged",target:this,property:t};this.events.dispatchImmediately("workingvaluechanged",l)}this.component&&this.component.handleDataItemWorkingValueChange(this,t)}}},e.prototype.setLocation=function(t,e,i,n){if(this.locations[t]!==e){if(this.locations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var r={type:"locationchanged",target:this,property:t};this.events.dispatchImmediately("locationchanged",r)}this.component&&this.component.handleDataItemValueChange(this,t),this.setWorkingLocation(t,e,i,n)}},e.prototype.setWorkingLocation=function(t,e,i,n){var r=this.getDuration(i),o=this.workingLocations[t];if(null!=r&&r>0&&c.isNumber(o)&&this.component){if(o!=e){var a=this.animate({childObject:this.workingLocations,property:t,from:o,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&a.delay(n),a.events.on("animationstarted",this.handleInterpolationProgress,this),a.events.on("animationprogress",this.handleInterpolationProgress,this),a.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[t]=a,a}(s=this._locationAnimations[t])&&s.stop(),this.workingLocations[t]=e}else{var s;if((s=this._locationAnimations[t])&&s.stop(),this.workingLocations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var l={type:"workinglocationchanged",target:this,property:t};this.events.dispatchImmediately("workinglocationchanged",l)}this.component&&this.component.handleDataItemWorkingLocationChange(this,t)}},e.prototype.setDate=function(t,e,i){!c.isDate(e)&&this.component&&(e=this.component.dateFormatter.parse(e)),this.dates[t]!==e&&(this.dates[t]=e,this.setValue(t,e.getTime(),i))},e.prototype.getDate=function(t){return this._adapterO?this._adapterO.apply("date",{date:this.dates[t],field:t}).date:this.dates[t]},e.prototype.setProperty=function(t,e){if(this.properties[t]!==e){if(this.hasProperties=!0,this.properties[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var i={type:"propertychanged",target:this,property:t,value:e};this.events.dispatchImmediately("propertychanged",i)}this.component&&this.component.handleDataItemPropertyChange(this,t)}},e.prototype.setCategory=function(t,e){c.isString(e)||(e=c.castString(e)),this.categories[t]!==e&&(this.categories[t]=e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=s.copy(e.dataContext,{})),s.copyProperties(e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(e.prototype,"opacity",{set:function(t){l.each(this.sprites,(function(e){e.opacity=t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){if(this._ignoreMinMax=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var e={type:"propertychanged",target:this,property:"ignoreMinMax",value:t};this.events.dispatchImmediately("propertychanged",e)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),e.prototype.animate=function(t,e,i){return new a.a(this,t,e,i).start()},e.prototype.handleInterpolationProgress=function(t){var e=t.target.animationOptions[0];if(e){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var i={type:"workingvaluechanged",target:this,property:e.dummyData};this.events.dispatchImmediately("workingvaluechanged",i)}this.component&&this.component.handleDataItemWorkingValueChange(this,e.dummyData)}},e.prototype.hasValue=function(t){for(var e=0,i=t.length;e<i;e++){var n=this.values[t[e]];if(!n||!c.hasValue(n.value))return!1}return!0},Object.defineProperty(e.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataContext",{get:function(){return this._dataContext},set:function(t){this._dataContext=t},enumerable:!0,configurable:!0}),e.prototype.addSprite=function(t){t.dataItem&&t.dataItem!=this&&l.remove(t.dataItem.sprites,t),this.visible||t.hide(0),this.isHiding&&t.hide(),this.sprites.push(t),t.dataItem=this},e}(r.b)},AAkI:function(t,e,i){"use strict";i.d(e,"b",(function(){return S})),i.d(e,"a",(function(){return P}));var n,r=i("m4/l"),o=i("Y9w3"),a=i("C6dT"),s=i("A6AV"),l=i("Uslz"),c=i("p9TX"),h=i("cxKZ"),u=i("VGgz"),d=i("vMqJ"),p=i("hD5A"),f=i("aCit"),g=i("MIZb"),m=i("Wglt"),y=i("Gg2j"),v=i("v9UT"),b=i("3Cxr"),x=i("hJ5i"),w=i("Mtpk"),_=i("TGuK"),S=function(t){function e(){var e=t.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.grid).disabled)return;e=i.clone()}else{if((i=t.renderer.grid.template).disabled)return;e=t.renderer.grid.create(),this._disposers.push(new p.b((function(){t.renderer.grid.removeValue(e)})))}this.grid=e,e.shouldClone=!1,this._disposers.push(e),e.axis=this.component}}return this._grid},set:function(t){this._grid&&this._grid!=t&&(x.remove(this.sprites,this._grid),this._grid.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(x.remove(t.dataItem.sprites,t),t.dataItem.grid=void 0),this.addSprite(t)),this._grid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){if(!this._tick){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.tick).disabled)return;e=i.clone()}else{if((i=t.renderer.ticks.template).disabled)return;e=t.renderer.ticks.create(),this._disposers.push(new p.b((function(){t.renderer.ticks.removeValue(e)})))}this.tick=e,e.axis=this.component,e.shouldClone=!1,this._disposers.push(e)}}return this._tick},set:function(t){this._tick&&this._tick!=t&&(x.remove(this.sprites,this._tick),this._tick.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(x.remove(t.dataItem.sprites,t),t.dataItem.tick=void 0),this.addSprite(t)),this._tick=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){if(!this._label){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.label).disabled)return;e=i.clone()}else{if((i=t.renderer.labels.template).disabled)return;e=t.renderer.labels.create(),this._disposers.push(new p.b((function(){t.renderer.labels.removeValue(e)})))}this._disposers.push(e),this.label=e,e.shouldClone=!1,e.axis=this.component,e.virtualParent=t}}return this._label},set:function(t){this._label&&this._label!=t&&(x.remove(this.sprites,this._label),this._label.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(x.remove(t.dataItem.sprites,t),t.dataItem.label=void 0),this.addSprite(t)),this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisFill",{get:function(){if(!this._axisFill){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.axisFill,!this.isTemplate&&i.disabled)return;e=i.clone()}else{if((i=t.renderer.axisFills.template).disabled)return;e=t.renderer.axisFills.create(),this._disposers.push(new p.b((function(){t.renderer.axisFills.removeValue(e)})))}this.axisFill=e,e.shouldClone=!1,this._disposers.push(e)}}return this._axisFill},set:function(t){this._axisFill&&this._axisFill!=t&&(x.remove(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(x.remove(t.dataItem.sprites,t),t.dataItem.axisFill=void 0),t.axis=this.component,this.addSprite(t)),this._axisFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._label&&(this._label.text=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contents",{get:function(){if(!this._contents){var t=new a.a;this.addSprite(t),t.isMeasured=!1,this._contents=t;var e=this.component;if(e){var i=e.renderer.createFill(this.component);i.disabled=!1,i.axis=e,this.addSprite(i),this._mask=i,t.mask=i}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(t){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),t&&t.dataItems.push(this),this._axisBreak=t},enumerable:!0,configurable:!0}),e.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},e.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},e.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:"component"==t?-1:"component"==e?1:0},e.prototype.hasProperty=function(e){return"component"==e||t.prototype.hasProperty.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},e.prototype.setVisibility=function(e,i){t.prototype.setVisibility.call(this,e,i),this._contents&&(this._contents.visible=e)},Object.defineProperty(e.prototype,"bullet",{get:function(){return this._bullet},set:function(t){this._bullet&&this._bullet!=t&&(x.remove(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=t,t&&this.addSprite(t)},enumerable:!0,configurable:!0}),e}(s.a);!function(t){t[t.Start=0]="Start",t[t.Middle=.5]="Middle",t[t.End=1]="End"}(n||(n={}));var P=function(t){function e(){var i=t.call(this)||this;if(i._gridCount=10,i._series=new d.b,i.autoDispose=!0,i._axisItemCount=0,i.constructor===e)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");i.hideTooltipWhileZooming=!0,i.minWidth=1e-4,i.minHeight=1e-4,i.className="Axis",i.shouldClone=!1,i.setPropertyValue("cursorTooltipEnabled",!0),i.toggleZoomOutButton=!0;var n=new g.a;i.title=new c.a,i.title.shouldClone=!1,i._disposers.push(i.title),i.setPropertyValue("startLocation",0),i.setPropertyValue("endLocation",1),i._dataItemsIterator=new m.ListIterator(i.dataItems,(function(){return i.dataItems.create()})),i._dataItemsIterator.createNewItems=!0;var r=new h.a;i._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=i;var o=r.background;return o.cornerRadius=0,o.fill=n.getFor("alternativeBackground"),o.stroke=o.fill,o.strokeWidth=1,o.fillOpacity=1,r.label.fill=n.getFor("alternativeText"),i.tooltip=r,i.readerHidden=!0,i.events.on("rangechangestarted",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!0)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!0)}),void 0,!1),i.events.on("rangechangeended",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!1)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!1)}),void 0,!1),i.applyTheme(),i}return r.c(e,t),e.prototype.fillRule=function(t,e){w.isNumber(e)||(e=t.index),e/2==Math.round(e/2)?(t.axisFill.__disabled=!0,t.axisFill.opacity=0):(t.axisFill.opacity=1,t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new S},e.prototype.invalidateLayout=function(){t.prototype.invalidateLayout.call(this),m.each(this.series.iterator(),(function(t){t.invalidateLayout()}))},e.prototype.invalidateSeries=function(){m.each(this.series.iterator(),(function(t){t.invalidate()}))},e.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},e.prototype.updateGridCount=function(){this.renderer&&(this._gridCount=this.axisLength/this.renderer.minGridDistance)},e.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),t.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},e.prototype.initRenderer=function(){},e.prototype.appendDataItem=function(t){var e=this.renderer,i=t.tick;i&&(i.above?i.parent=e.bulletsContainer:i.parent=e.gridContainer),t.label&&(t.label.parent=e);var n=t.axisFill;n&&(n.above?n.parent=e.bulletsContainer:n.parent=e.gridContainer);var r=t.grid;r&&(r.above?r.parent=e.bulletsContainer:r.parent=e.gridContainer),t.bullet&&(t.bullet.parent=e.bulletsContainer)},e.prototype.validate=function(){t.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},e.prototype.validateAxisRanges=function(){var t=this;m.each(this.axisRanges.iterator(),(function(e){t.appendDataItem(e),t.validateDataElement(e),e.grid&&e.grid.validate(),e.tick&&e.tick.validate(),e.axisFill&&e.axisFill.validate(),e.label&&e.label.validate()}))},e.prototype.validateBreaks=function(){this._axisBreaks&&m.each(this._axisBreaks.iterator(),(function(t){t.invalidate()}))},e.prototype.processBreak=function(t){var e=t.newValue;e.parent=this.renderer.breakContainer,e.axis=this},e.prototype.registerSeries=function(t){var e=this;return this.series.moveValue(t),new p.c([new p.b((function(){e.series.removeValue(t)})),this.events.on("lengthchanged",t.invalidate,t,!1),this.events.on("lengthchanged",t.createMask,t,!1),this.events.on("startchanged",t.invalidate,t,!1),this.events.on("endchanged",t.invalidate,t,!1)])},Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){if(t!=this._renderer){this._renderer=t,t.chart=this.chart,t.axis=this,t.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(t.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var e=this.renderer.labels.create();this._disposers.push(e),e.dataItem=this.dataItems.template.clone(),e.text="L",e.parent=this.renderer,e.shouldClone=!1,e.fillOpacity=0,e.opacity=0,e.strokeOpacity=0,e.interactionsEnabled=!1,e.validate(),this.ghostLabel=e,this.events.on("beforedatavalidated",(function(){e.text="L"}),void 0,!1)}},enumerable:!0,configurable:!0}),e.prototype.positionToAngle=function(t){return this.renderer.positionToAngle(t)},e.prototype.pointToPosition=function(t){return this.renderer.pointToPosition(t)},e.prototype.positionToCoordinate=function(t){return this.renderer.positionToCoordinate(t)},e.prototype.getAnyRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},e.prototype.anyToPosition=function(t){return 0},e.prototype.anyToPoint=function(t){return{x:0,y:0,angle:0}},e.prototype.getPositionRangePath=function(t,e){return this.renderer?this.renderer.getPositionRangePath(t,e):""},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)&&(t&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(t){this.setPropertyValue("toggleZoomOutButton",t)},enumerable:!0,configurable:!0}),e.prototype.hideTooltip=function(e){t.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i=this._tooltip;if(!i||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(e||(t=this.toAxisPosition(t)),!w.isNumber(t)||t<this.start||t>this.end)return i.hide(0),void(this._tooltipPosition=void 0);var n=this.renderer;i.parent||(i.parent=this.tooltipContainer);var r=n.tooltipLocation,o=this.getCellStartPosition(t),a=this.getCellEndPosition(t);if("fixed"==this.tooltipPosition&&(t=y.ceil(o+(a-o)*r,4)),t=y.fitToRange(t,this.start,this.end),this._tooltipPosition!=t){this._tooltipPosition=t;var s=n.tooltipLocation2,l=n.positionToPoint(o,s),c=n.positionToPoint(a,s);this.currentItemStartPoint=l,this.currentItemEndPoint=c,n.fullWidthTooltip&&(i.width=c.x-l.x,i.height=c.y-l.y);var h=n.positionToPoint(t,s),u=v.spritePointToSvg(h,this.renderer.line);i.text=this.getTooltipText(t),i.text&&(i.pointTo(u),i.show())}this.cursorTooltipEnabled&&!this.tooltip.disabled||i.hide(0)}},e.prototype.toAxisPosition=function(t){if(null!=(t=this.renderer.toAxisPosition(t)))return t*=this.end-this.start,this.renderer.inversed?this.end-t:this.start+t},e.prototype.toGlobalPosition=function(t){return this.renderer.inversed?t=this.end-t:t-=this.start,t/(this.end-this.start)},e.prototype.getTooltipText=function(t){},e.prototype.updateTooltip=function(t,e){var i=this._tooltip;i&&(i.pointerOrientation=t,i.setBounds(v.spriteRectToSvg(e,this.renderer.line)))},e.prototype.roundPosition=function(t,e,i){return t},e.prototype.getCellStartPosition=function(t){return t},e.prototype.getCellEndPosition=function(t){return t},Object.defineProperty(e.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var t=this.createDataItem();t.isRange=!0,t.axisFill=this.renderer.axisFills.template.clone(),t.grid=this.renderer.grid.template.clone(),t.tick=this.renderer.ticks.template.clone(),t.label=this.renderer.labels.template.clone(),t.isTemplate=!0,t.component=this,t.axisFill.disabled=!1,t.tick.disabled=!1,t.grid.disabled=!1,t.label.disabled=!1,this._axisRanges=new d.e(t),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new d.c(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),e.prototype.processAxisRange=function(t){var e=t.newValue;e.component=this,e.isRange=!0},Object.defineProperty(e.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new u.d(this.createAxisBreak(),(function(t,e){return b.order(t.adjustedStartValue,e.adjustedStartValue)})),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new d.c(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),e.prototype.createAxisBreak=function(){return new l.a},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new d.b),this._series},enumerable:!0,configurable:!0}),e.prototype.processSeriesDataItems=function(){},e.prototype.processSeriesDataItem=function(t,e){},e.prototype.postProcessSeriesDataItems=function(){},e.prototype.postProcessSeriesDataItem=function(t){},e.prototype.updateAxisBySeries=function(){},e.prototype.hideUnusedDataItems=function(){var t=this,e=this._dataItemsIterator;e.createNewItems=!1,m.each(e.iterator(),(function(e){t.validateDataElement(e),e.__disabled=!0})),e.clear(),e.createNewItems=!0},e.prototype.getSeriesDataItem=function(t,e,i){},e.prototype.getAngle=function(t,e,i,n,r){},e.prototype.getX=function(t,e,i,n,r){},e.prototype.getPositionX=function(t,e,i,n,r){},e.prototype.getY=function(t,e,i,n,r){},e.prototype.getPositionY=function(t,e,i,n,r){},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.dataChangeUpdate=function(){},e.prototype.seriesDataChangeUpdate=function(t){},e.prototype.adjustDifference=function(t,e){var i=e-t;if(w.isNumber(i))return this._axisBreaks&&m.eachContinue(this._axisBreaks.iterator(),(function(n){var r=n.adjustedStartValue,o=n.adjustedEndValue;if(w.isNumber(r)&&w.isNumber(o)){if(r>e)return!1;if(o>=t&&w.isNumber(r)&&w.isNumber(o)){var a=n.breakSize,s=y.intersection({start:r,end:o},{start:t,end:e});s&&(i-=(s.end-s.start)*(1-a))}return!0}})),i},e.prototype.isInBreak=function(t){if(this._axisBreaks)return m.find(this._axisBreaks.iterator(),(function(e){return t>=e.adjustedStartValue&&t<=e.adjustedEndValue}))},e.prototype.fixAxisBreaks=function(){var t=this;if(this._axisBreaks){var e=this._axisBreaks;if(e.length>0){x.each(m.toArray(e.iterator()),(function(e){var i=y.min(e.startValue,e.endValue),n=y.max(e.startValue,e.endValue);e.adjustedStartValue=i,e.adjustedEndValue=n,t._axisBreaks.update(e)}));var i=e.first,n=Math.min(i.startValue,i.endValue);m.each(e.iterator(),(function(t){var e=t.adjustedStartValue,i=t.adjustedEndValue;e<n&&(e=n,i<n&&(i=n)),t.adjustedStartValue=e,t.adjustedEndValue=i}))}}},Object.defineProperty(e.prototype,"startIndex",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(t){},enumerable:!0,configurable:!0}),e.prototype.getPositionLabel=function(t){return Math.round(100*t)+"%x"},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.createSeriesRange=function(t){var e=this.axisRanges.create();return e.component=this,e.axisFill=this.renderer.axisFills.template.clone(),e.axisFill.disabled=!1,e.axisFill.fillOpacity=0,e.grid=this.renderer.grid.template.clone(),e.grid.disabled=!0,e.tick=this.renderer.ticks.template.clone(),e.tick.disabled=!0,e.label=this.renderer.labels.template.clone(),e.label.disabled=!0,t.axisRanges.push(e),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title?this.title.copyFrom(e.title):(this.title=e.title.clone(),this.title.parent=this),this._disposers.push(this.title))},e.prototype.resetIterators=function(){this._dataItemsIterator.reset()},e.prototype.processConfig=function(e){if(e&&w.hasValue(e.axisRanges)&&w.isArray(e.axisRanges))for(var i=0,n=e.axisRanges.length;i<n;i++){var r=e.axisRanges[i];w.hasValue(r.series)&&w.isString(r.series)&&this.map.hasKey(r.series)&&(e.axisRanges[i]=this.createSeriesRange(this.map.getKey(r.series)),delete r.series,e.axisRanges[i].config=r)}t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),i},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(t){this._title&&this._title!=t&&this._title.dispose(),t&&(this._title=t,t.parent=this,t.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),e}(o.a);f.c.registeredClasses.Axis=P,f.c.registeredClasses.AxisDataItem=S,_.c.push({relevant:_.b.maybeXS,state:function(t,e){if(t instanceof P&&t.tooltip){var i=t.states.create(e);return i.properties.cursorTooltipEnabled=!1,i}return null}})},AC2I:function(t,e,i){"use strict";i.d(e,"b",(function(){return v})),i.d(e,"a",(function(){return b}));var n=i("m4/l"),r=i("aM7D"),o=i("Vs7R"),a=i("p9TX"),s=i("8ZqG"),l=i("qzbU"),c=i("vMqJ"),h=i("C6dT"),u=i("DHte"),d=i("aCit"),p=i("Wglt"),f=i("0FpR"),g=i("Mtpk"),m=i("hD5A"),y=i("TGuK"),v=function(t){function e(){var e=t.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return n.c(e,t),e.prototype.uidAttr=function(){return this.slice.uidAttr()},e.prototype.hide=function(e,i,n,r){return r||(r=["value"]),t.prototype.hide.call(this,e,i,0,r)},e.prototype.setVisibility=function(e,i){i||(e?this.setWorkingValue("value",this.values.value.value,0,0):this.setWorkingValue("value",0,0,0)),t.prototype.setVisibility.call(this,e,i)},e.prototype.show=function(e,i,n){return n||(n=["value"]),t.prototype.show.call(this,e,i,n)},Object.defineProperty(e.prototype,"category",{get:function(){return this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){this.component.createLegendMarker(t,this)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,t.label&&(t.label.dataItem=this),t.valueLabel&&(t.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){var t=this;if(!this._tick){var e=this.component.ticks.create();this._tick=e,this.addSprite(e),this._disposers.push(e),e.parent=this.component.ticksContainer,this._disposers.push(new m.b((function(){t.component&&t.component.ticks.removeValue(e)}))),e.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this.addSprite(e),this._label=e,this._disposers.push(e),e.parent=this.component.labelsContainer,this._disposers.push(new m.b((function(){t.component&&t.component.labels.removeValue(e)}))),e.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slice",{get:function(){var t=this;if(!this._slice){var e=this.component,i=e.slices.create();this.addSprite(i),this._slice=i,this._disposers.push(i),i.parent=e.slicesContainer,this._disposers.push(new m.b((function(){e.slices.removeValue(i)}))),i.visible=this.visible,e.itemsFocusable()?(this.component.role="menu",i.role="menuitem",i.focusable=!0):(this.component.role="list",i.role="listitem",i.focusable=!1),i.focusable&&(i.events.on("focus",(function(n){i.readerTitle=e.populateString(e.itemReaderText,t)}),void 0,!1),i.events.on("blur",(function(t){i.readerTitle=""}),void 0,!1)),i.hoverable&&(i.events.on("over",(function(n){i.readerTitle=e.populateString(e.itemReaderText,t)}),void 0,!1),i.events.on("out",(function(t){i.readerTitle=""}),void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(t){this.setProperty("hiddenInLegend",t)},enumerable:!0,configurable:!0}),e}(r.b),b=function(t){function e(){var e=t.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new u.a,e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var i=e.createChild(h.a);i.shouldClone=!1,i.isMeasured=!1,e.slicesContainer=i;var n=e.createChild(h.a);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",e.ticksContainer=n;var r=e.createChild(h.a);return r.shouldClone=!1,r.isMeasured=!1,r.layout="none",e.labelsContainer=r,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50,e.defaultState.transitionEasing=f.sinOut,e.itemReaderText="{category}: {value.percent.formatNumber('#.#')}%",e.applyTheme(),e}return n.c(e,t),e.prototype.createSlice=function(){return new o.a},e.prototype.createTick=function(){return new l.a},e.prototype.createLabel=function(){return new a.a},Object.defineProperty(e.prototype,"slices",{get:function(){if(!this._slices){var t=this.createSlice();t.applyOnClones=!0,this._disposers.push(t),this.initSlice(t),this._slices=new c.e(t),this._disposers.push(new c.c(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,this._disposers.push(t),this.initTick(t),this._ticks=new c.e(t),this._disposers.push(new c.c(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();t.applyOnClones=!0,this._disposers.push(t),this.initLabel(t),this._labels=new c.e(t),this._disposers.push(new c.c(this._labels))}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createDataItem=function(){return new v},e.prototype.initSlice=function(t){},e.prototype.initLabel=function(t){t.text="{category}: {value.percent.formatNumber('#.0')}%",t.isMeasured=!1,t.padding(5,5,5,5)},e.prototype.initTick=function(t){},e.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),t.prototype.validateDataItems.call(this)},e.prototype.validateDataElement=function(e){var i=e.slice;i&&(null==i.fill?this.patterns?(g.hasValue(i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),g.hasValue(i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof s.a&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next():this.colors.currentStep+=this.colors.step,null==i.stroke&&(i.stroke=i.fill)),t.prototype.validateDataElement.call(this,e),i&&e.bullets.each((function(t,e){null==e.fill&&(e.fill=i.fill),null==e.stroke&&(e.stroke=i.stroke)})),this.updateLegendValue(e)},e.prototype.validateData=function(){t.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},e.prototype.arrangeLabels=function(t){for(var e=0,i=t.length;e<i;e++){var n=t[e].label;if(n){n.invalid&&n.validate();var r=n.measuredHeight;n.visible||(r=0),n.pixelY-r/2<-this.maxHeight/2&&(n.y=-this.maxHeight/2+r/2);var o=this.getNextLabel(e+1,t),a=n.pixelY+r;o&&o.y<a&&(o.y=a)}}},e.prototype.arrangeLabels2=function(t){for(var e=this.maxHeight/2,i=t.length-1;i>=0;i--){var n=t[i].label;if(n){n.invalid&&n.validate();var r=n.measuredHeight;n.visible||(r=0),i==t.length-1&&(e+=r/2),n.pixelY+r>e&&(n.y=e-r,e=n.y)}}},e.prototype.getNextLabel=function(t,e){if(e.length>=t){var i=e[t];if(i)return i.label&&i.visible?i.label:this.getNextLabel(t+1,e)}},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t,e){p.each(t.children.iterator(),(function(i){var n=e.slice;i.defaultState.properties.fill=n.fill,i.defaultState.properties.stroke=n.stroke,i.defaultState.properties.fillOpacity=n.fillOpacity,i.defaultState.properties.strokeOpacity=n.strokeOpacity,i.fill=n.fill,i.stroke=n.stroke,i.fillOpacity=n.fillOpacity,i.strokeOpacity=n.strokeOpacity,null==i.fill&&(i.__disabled=!0);var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill,i.addDisposer(n.events.on("propertychanged",(function(t){"fill"==t.property&&(i.__disabled=!1,i.isActive||(i.fill=n.fill),i.defaultState.properties.fill=n.fill,r.color=n.fill,r.colorOrig=n.fill),"stroke"==t.property&&(i.isActive||(i.stroke=n.stroke),i.defaultState.properties.stroke=n.stroke)}),void 0,!1))}))},e.prototype.handleSliceScale=function(t){var e=this,i=t.target.dataItem;p.each(i.bullets.iterator(),(function(t){var i=t[1];e.positionBullet(i)}))},e.prototype.handleSliceMove=function(t){},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template)},Object.defineProperty(e.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(t){this.setAlignLabels(t)},enumerable:!0,configurable:!0}),e.prototype.setAlignLabels=function(t){this.setPropertyValue("alignLabels",t,!0)},Object.defineProperty(e.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(t){this.setPropertyValue("ignoreZeroValues",t,!0)},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t){if(t){var e=t.legendDataItem,i=t.legendSettings;e&&i&&i&&(i.labelText&&(e.label.text=i.labelText),i.itemLabelText&&(e.label.text=i.itemLabelText),i.valueText&&(e.valueLabel.text=i.valueText),i.itemValueText&&(e.valueLabel.text=i.itemValueText))}},e}(r.a);d.c.registeredClasses.PercentSeries=b,d.c.registeredClasses.PercentSeriesDataItem=v,y.c.push({relevant:y.b.maybeXS,state:function(t,e){if(t instanceof b){var i=t.states.create(e);return t.labels.template.states.create(e).properties.disabled=!0,t.ticks.template.states.create(e).properties.disabled=!0,i}return null}})},AEc5:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},AaJ4:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("Vs7R"),o=i("aCit"),a=i("8ZqG"),s=i("MIZb"),l=i("TGuK"),c=function(t){function e(){var e=t.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var i=new s.a;return e.stroke=i.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=Object(a.c)(),e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(r.a);o.c.registeredClasses.Grid=c,l.c.push({relevant:l.b.maybeXS,state:function(t,e){if(t instanceof c){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}})},AiPC:function(t,e,i){i("YJIw")("Uint16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},Ax3V:function(t,e,i){var n=i("T9LF").document;t.exports=n&&n.documentElement},AzI1:function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},"B+tY":function(t,e,i){var n=i("Gb1H");n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},B2g9:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("FUSD"),o=i("vSjZ"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},BEgH:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("aGXA"),o=i("Vs7R"),a=i("aCit"),s=i("MIZb"),l=i("hGwe"),c=i("Mtpk"),h=function(t){function e(){var e=t.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var i=new s.a,n=e.background;n.cornerRadius(20,20,20,20),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new o.a;r.element=e.paper.add("path");var a=l.moveTo({x:0,y:0});return a+=l.lineTo({x:11,y:0}),r.path=a,r.pixelPerfect=!0,r.padding(8,3,8,3),r.stroke=i.getFor("primaryButtonText"),e.icon=r,e.applyTheme(),e}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),c.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},e}(r.a);a.c.registeredClasses.ZoomOutButton=h},BTtL:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},BYDm:function(t,e,i){"use strict";var n,r=i("T9LF"),o=i("dstF")(0),a=i("wDk4"),s=i("kFp5"),l=i("bdjS"),c=i("0YcW"),h=i("DvJ+"),u=i("rFJX"),d=i("rFJX"),p=!r.ActiveXObject&&"ActiveXObject"in r,f=s.getWeak,g=Object.isExtensible,m=c.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(h(t)){var e=f(t);return!0===e?m(u(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(u(this,"WeakMap"),t,e)}},b=t.exports=i("/Xnt")("WeakMap",y,v,c,!0,!0);d&&p&&(l((n=c.getConstructor(y,"WeakMap")).prototype,v),s.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,i=e[t];a(e,t,(function(e,r){if(h(e)&&!g(e)){this._f||(this._f=new n);var o=this._f[t](e,r);return"set"==t?this:o}return i.call(this,e,r)}))})))},BmDP:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("qzbU"),o=i("hD5A"),a=i("aCit"),s=function(t){function e(){var e=t.call(this)||this;return e._label=new o.d,e._slice=new o.d,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=this.label,n=e.dataItem.component;if(e&&e.radius>0&&i&&i.text){var r=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,o=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,a=void 0,s=void 0,l=void 0,c=void 0;if(n.alignLabels)a=i.pixelX-this.length,s=i.pixelY,l=i.pixelX,c=s,"right"==i.horizontalCenter&&(l=(a+=2*this.length)-this.length);else{var h=i.pixelRadius(e.radius);l=a=r+h*e.ix,c=s=o+h*e.iy}this.element.attr({points:[r,o,a,s,l,c]})}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new o.c([t.events.on("transformed",this.invalidate,this),t.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),e}(r.a);a.c.registeredClasses.PieTick=s},C2uA:function(t,e,i){i("YJIw")("Int16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},C6Lh:function(t,e,i){"use strict";i.d(e,"a",(function(){return v}));var n=i("m4/l"),r=i("ISWh"),o=i("Vs7R"),a=i("vMqJ"),s=i("hD5A"),l=i("0Mwj"),c=i("pR7v"),h=i("KknQ"),u=i("aCit"),d=i("MIZb"),p=i("85D4"),f=i("Wglt"),g=i("Mtpk"),m=i("hGwe"),y=i("tjMS"),v=function(t){function e(){var e=t.call(this)||this;e._chart=new s.d,e.className="XYChartScrollbar";var i=new d.a;e.padding(0,0,0,0);var n=e.createChild(l.a);n.shouldClone=!1,n.margin(0,0,0,0),n.padding(0,0,0,0),n.interactionsEnabled=!1,e._scrollbarChart=n,e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var r=e.createChild(o.a);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.fill=i.getFor("background"),r.fillOpacity=.8,r.interactionsEnabled=!1,r.isMeasured=!1,r.toBack(),e._unselectedOverlay=r,e._disposers.push(e._unselectedOverlay),n.toBack(),e.background.cornerRadius(0,0,0,0);var a=e.thumb.background;a.cornerRadius(0,0,0,0),a.fillOpacity=0,a.fill=i.getFor("background");var c=a.states.getKey("hover");c&&(c.properties.fillOpacity=.2);var h=a.states.getKey("down");return h&&(h.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new a.b,this._disposers.push(this._series.events.on("inserted",this.handleSeriesAdded,this,!1)),this._disposers.push(this._series.events.on("removed",this.handleSeriesRemoved,this,!1))),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue;if(e.xAxis&&e.yAxis){var i=this.scrollbarChart;i.zoomOutButton.disabled=!0,this.chart=e.chart,i.language.locale=this.chart.language.locale;var n=!0,r=!0;f.each(this.series.iterator(),(function(t){t!=e&&(t.xAxis==e.xAxis&&(n=!1),t.yAxis==e.yAxis&&(r=!1))}));var o=new d.a,a=e.clone();if(n){var s=e.xAxis.clone();if(i.xAxes.moveValue(s),s.title.disabled=!0,s.rangeChangeDuration=0,(v=s.renderer).ticks.template.disabled=!0,v.inside=!0,v.labels.template.inside=!0,v.line.strokeOpacity=0,v.minLabelPosition=.02,v.maxLabelPosition=.98,v.line.disabled=!0,v.axisFills.template.disabled=!0,v.baseGrid.disabled=!0,v.grid.template.strokeOpacity=.05,v.minWidth=void 0,v.minHeight=void 0,v.padding(0,0,0,0),v.chart=i,v.margin(0,0,0,0),s.width=Object(y.c)(100),v.labels.template.fillOpacity=.5,s.maxZoomCount=void 0,s.minZoomCount=void 0,s instanceof h.a){var l=s,u=e.xAxis;s.groupCount=5*u.groupCount,this._disposers.push(l.clonedFrom.events.on("extremeschanged",(function(){g.isNumber(l.clonedFrom.minDefined)&&(l.min=l.clonedFrom.minDefined),g.isNumber(l.clonedFrom.maxDefined)&&(l.max=l.clonedFrom.maxDefined)}),void 0,!1))}else if(s instanceof c.a){var m=s;g.isNumber(m.clonedFrom.minDefined)||(m.min=void 0),g.isNumber(m.clonedFrom.maxDefined)||(m.max=void 0),this._disposers.push(m.clonedFrom.events.on("extremeschanged",(function(){g.isNumber(m.clonedFrom.minDefined)&&(m.min=m.clonedFrom.min),g.isNumber(m.clonedFrom.maxDefined)&&(m.max=m.clonedFrom.max)}),void 0,!1))}a.xAxis=s}else this.scrollbarChart.xAxes.each((function(t){t.clonedFrom==e.xAxis&&(a.xAxis=t)}));if(r){var v,b=e.yAxis.clone();if(i.yAxes.moveValue(b),b.title.disabled=!0,b.rangeChangeDuration=0,(v=b.renderer).ticks.template.disabled=!0,v.inside=!0,v.labels.template.inside=!0,v.line.strokeOpacity=0,v.minLabelPosition=.02,v.maxLabelPosition=.98,v.line.disabled=!0,v.axisFills.template.disabled=!0,v.grid.template.stroke=o.getFor("background"),v.baseGrid.disabled=!0,v.grid.template.strokeOpacity=.05,v.minWidth=void 0,v.minHeight=void 0,v.chart=i,v.padding(0,0,0,0),v.margin(0,0,0,0),b.height=Object(y.c)(100),v.labels.template.fillOpacity=.5,a.yAxis=b,b.maxZoomCount=void 0,b.minZoomCount=void 0,b instanceof h.a){var x=b;u=e.yAxis,b.groupCount=5*u.groupCount,this._disposers.push(x.clonedFrom.events.on("extremeschanged",(function(){g.isNumber(x.clonedFrom.minDefined)&&(x.min=x.clonedFrom.minDefined),g.isNumber(x.clonedFrom.maxDefined)&&(x.max=x.clonedFrom.maxDefined)})))}else if(b instanceof c.a){var w=b;g.isNumber(w.clonedFrom.minDefined)||(w.min=void 0),g.isNumber(w.clonedFrom.maxDefined)||(w.max=void 0),this._disposers.push(w.clonedFrom.events.on("extremeschanged",(function(){g.isNumber(w.clonedFrom.minDefined)&&(w.min=w.clonedFrom.minDefined),g.isNumber(w.clonedFrom.maxDefined)&&(w.max=w.clonedFrom.maxDefined)})))}}else this.scrollbarChart.yAxes.each((function(t){t.clonedFrom==e.yAxis&&(a.yAxis=t)}));a.rangeChangeDuration=0,a.interpolationDuration=0,a.defaultState.transitionDuration=0,a.showOnInit=!1,this._disposers.push(a.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(e.events.on("datavalidated",(function(){a.data!=e.data&&(a.data=e.data)}),void 0,!1)),a.defaultState.properties.visible=!0,a.filters.push(new p.a),i.series.push(a),this.updateByOrientation()}},e.prototype.updateByOrientation=function(){var t=this;this._scrollbarChart&&(f.each(this._scrollbarChart.xAxes.iterator(),(function(e){var i=e.renderer;"vertical"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)})),f.each(this._scrollbarChart.yAxes.iterator(),(function(e){var i=e.renderer;"horizontal"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)})))},e.prototype.handleSeriesRemoved=function(t){var e=t.oldValue,i=this.scrollbarChart;i.series.each((function(t){t.clonedFrom==e&&i.series.removeValue(t)})),0==i.series.length&&(i.xAxes.clear(),i.yAxes.clear());try{e.events.off("validated",this.zoomOutAxes,this)}catch(t){}},Object.defineProperty(e.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.get()!==t&&(this._chart.set(t,t.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),e.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data&&(this.scrollbarChart.data=this.chart.data),this.scrollbarChart.invalidateData()},e.prototype.zoomOutAxes=function(){var t=this.scrollbarChart;f.each(t.xAxes.iterator(),(function(t){t.zoom({start:0,end:1},!0,!0)})),f.each(t.yAxes.iterator(),(function(t){t.zoom({start:0,end:1},!0,!0)}))},e.prototype.updateThumb=function(){if(t.prototype.updateThumb.call(this),this._unselectedOverlay){var e=this.thumb,i=e.pixelX||0,n=e.pixelY||0,r=e.pixelWidth||0,o=e.pixelHeight||0,a="";"horizontal"==this.orientation?(a=m.rectToPath({x:-1,y:0,width:i,height:o}),a+=m.rectToPath({x:i+r,y:0,width:(this.pixelWidth||0)-i-r,height:o})):(a=m.rectToPath({x:0,y:0,width:r,height:n}),a+=m.rectToPath({x:0,y:n+o,width:r,height:(this.pixelHeight||0)-n-o})),this._unselectedOverlay.path=a}},e.prototype.processConfig=function(e){if(e&&g.hasValue(e.series)&&g.isArray(e.series))for(var i=0,n=e.series.length;i<n;i++){var r=e.series[i];if(g.hasValue(r)&&g.isString(r)){if(!this.map.hasKey(r))throw Error("XYChartScrollbar error: Series with id `"+r+"` does not exist.");e.series[i]=this.map.getKey(r)}}t.prototype.processConfig.call(this,e)},e}(r.a);u.c.registeredClasses.XYChartScrollbar=v},C6dT:function(t,e,i){"use strict";i.d(e,"a",(function(){return x}));var n=i("m4/l"),r=i("Vs7R"),o=i("ux7t"),a=i("vMqJ"),s=i("hD5A"),l=i("+qIf"),c=i("zhwk"),h=i("GtDR"),u=i("tjMS"),d=i("aCit"),p=i("MIZb"),f=i("Wglt"),g=i("hJ5i"),m=i("Gg2j"),y=i("Mtpk"),v=i("Rpw0"),b=i("Q4nc"),x=function(t){function e(){var e=t.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new l.a,e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new l.b(e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return n.c(e,t),e.prototype.handleChildAdded=function(t){this.processChild(t.newValue)},e.prototype.processChild=function(t){try{this._childrenDisposers.insertKey(t.uid,new s.c([t.events.on("transformed",this.handleChildTransform,this),t.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch(t){}this.element&&this.element.add(t.group),t.parent=this,t.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:t}),this.invalidate()},e.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},e.prototype.handleChildRemoved=function(t){var e=t.oldValue;this._childrenDisposers.removeKey(e.uid),this.element&&this.element.removeElement(e.group),e.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:e})},e.prototype.handleChildTransform=function(t){t.target.isMeasured&&this.invalidateLayout()},e.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||(this.layoutInvalid=!0,d.c.addToInvalidLayouts(this),v.b.requestFrame())},e.prototype.invalidate=function(){t.prototype.invalidate.call(this),this.invalidateLayout()},e.prototype.deepInvalidate=function(){t.prototype.invalidate.call(this),g.each(this._childrenByLayout,(function(t){t instanceof e?t.deepInvalidate():t.invalidate()})),this.invalidateLayout()},Object.defineProperty(e.prototype,"children",{get:function(){return this._children||(this._children=new a.b),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),e.prototype.removeElement=function(){},e.prototype.sortChildren=function(){var t=this;if(this._childrenByLayout=[],"none"!=this.layout&&"absolute"!=this.layout&&this.layout){var e=[],i=[];f.each(this.children.iterator(),(function(n){"horizontal"==t.layout||"grid"==t.layout?y.isNumber(n.percentWidth)?i.push(n):e.push(n):"vertical"==t.layout&&y.isNumber(n.percentHeight)?i.push(n):e.push(n)})),this._childrenByLayout=e.concat(i)}else this._childrenByLayout=this.children.values;this.calculateRelativeSize()},e.prototype.calculateRelativeSize=function(){var t=this,e=0,i=0;g.each(this._childrenByLayout,(function(t){t.isMeasured&&(y.isNumber(t.percentWidth)&&(e+=t.percentWidth),y.isNumber(t.percentHeight)&&(i+=t.percentHeight))})),g.each(this._childrenByLayout,(function(n){n.isMeasured&&("horizontal"==t.layout&&(y.isNumber(n.percentWidth)&&(n.relativeWidth=n.percentWidth/e),y.isNumber(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100)),"vertical"==t.layout&&(y.isNumber(n.percentHeight)&&(n.relativeHeight=n.percentHeight/i),y.isNumber(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100)),"grid"==t.layout&&(y.isNumber(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100),y.isNumber(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100))),"absolute"!=t.layout&&n.isMeasured||(y.isNumber(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100),y.isNumber(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100))}))},e.prototype.addChildren=function(){if(this.element){var t=g.copy(this.children.values),e=t.map((function(t,e){return{idx:e,data:t}}));e.sort((function(t,e){var i=t.data.zIndex||0,n=e.data.zIndex||0;return i<n?-1:i>n?1:t.idx-e.idx})),t=e.map((function(t){return t.data}));var i=this.element,n=!0;if(i.node&&i.node.childNodes)for(var r=0,o=i.node.childNodes.length;r<o;r++)if(i.node.childNodes[r]!=t[r].group.node){n=!1;break}n||(g.each(t,(function(t){t.group&&i.add(t.group)})),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},e.prototype.createChild=function(t){var e=new t;return e.parent=this,e},e.prototype.removeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.parent=void 0,this.children.removeValue(t)}},e.prototype.disposeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.dispose(),this.children.removeValue(t)}},Object.defineProperty(e.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(t){this._background&&this.background!=t&&this.removeDispose(this._background),t&&(this._background=t,this._disposers.push(t),this.processBackground())},enumerable:!0,configurable:!0}),e.prototype.handleGlobalScale=function(){t.prototype.handleGlobalScale.call(this),this.children.each((function(t){t.handleGlobalScale()}))},e.prototype.createBackground=function(){return new h.a},e.prototype.processBackground=function(){var t=this._background;t&&(t.isMeasured=!1,this._background.fill=(new p.a).getFor("background"),t.parent=this,t.isMeasured=!1,this.children.removeValue(t),this._disposers.push(t),this.group.addToBack(this._background.group))},e.prototype.validateLayout=function(){var t=this;d.c.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var e=0,i=0,n=!0;this.children&&(this.sortChildren(),g.each(this._childrenByLayout,(function(r){var o,a;if(y.isNumber(r.relativeWidth)?(o=m.round(t._availableWidth*r.relativeWidth,2),"horizontal"==t.layout&&(o-=r.pixelMarginRight+r.pixelMarginLeft)):"horizontal"==t.layout&&r.invalid&&r.validate(),y.isNumber(r.relativeHeight)?(a=m.round(t._availableHeight*r.relativeHeight,2),"vertical"==t.layout&&(a-=r.pixelMarginTop+r.pixelMarginBottom)):"vertical"==t.layout&&r.invalid&&r.validate(),0==r.invalid){if(y.isNumber(r.relativeWidth)&&(r.maxWidth=o),y.isNumber(r.relativeHeight)&&(r.maxHeight=a),r.isMeasured){"horizontal"==t.layout&&(y.isNumber(r.percentWidth)||r.measuredWidth>0&&(t._availableWidth-=r.measuredWidth+r.pixelMarginLeft+r.pixelMarginRight)),"vertical"==t.layout&&(y.isNumber(r.percentHeight)||r.measuredHeight>0&&(t._availableHeight-=r.measuredHeight+r.pixelMarginTop+r.pixelMarginBottom));var s=r.measuredWidth,l=r.measuredHeight;"none"!=r.align&&(s+=r.pixelMarginLeft+r.pixelMarginRight),"none"!=r.valign&&(l+=r.pixelMarginTop+r.pixelMarginBottom),e=Math.max(e,s),i=Math.max(i,l)}}else r.isMeasured&&(y.isNumber(r.relativeWidth)&&r.maxWidth!=o&&(r.maxWidth=o,n=!1),y.isNumber(r.relativeHeight)&&r.maxHeight!=a&&(r.maxHeight=a,n=!1))}))),this._absoluteWidth=e,this._absoluteHeight=i,n&&this.arrange()},e.prototype.arrange=function(){var t,e,i,n,r,o,a,s,l,c,h,d=this,p=this.children,v=0,b=0,x=m.max(this.innerWidth,this._absoluteWidth),w=m.max(this.innerHeight,this._absoluteHeight),_=this.pixelPaddingLeft,S=this.pixelPaddingRight,P=this.pixelPaddingTop,k=this.pixelPaddingBottom,C=0,T=0,A=0,O=0,M=[],E=[],I=this.maxWidth,D=this.maxHeight,L=this.minWidth,j=this.minHeight,N=g.copy(p.values);if(this.reverseOrder&&N.reverse(),"grid"==this.layout){o=I,r=1;for(var F=0,R=N.length;F<R;F++)if((z=N[F]).isMeasured&&!z.disabled&&!z.__disabled){var V=z.measuredWidth;V<o&&(o=V),V>r&&(r=V)}o=m.fitToRange(o,1,I),r=m.fitToRange(r,1,I),a=this.fixedWidthGrid?I/r:I/o,a=m.max(1,Math.floor(a)),a=m.min(this.maxColumns,a),M=this.getColumnWidth(N,a,r)}for(F=0,R=N.length;F<R;F++){var z;if(!(z=N[F]).isMeasured||z.disabled||z.__disabled)z.validatePosition();else{var B=void 0,H=void 0,W=z.pixelMarginLeft,X=z.pixelMarginRight,Y=z.pixelMarginTop,G=z.pixelMarginBottom,U=z.measuredWidth,q=z.measuredHeight,$=void 0,K=void 0,Z=void 0,J=void 0;switch(this.layout){case"none":break;case"absolute":switch(z.align){case"left":B=W-z.maxLeft;break;case"center":B=(x-U)/2-z.maxLeft;break;case"right":B=x-X-z.maxRight;break;default:z.x instanceof u.a||(B=z.pixelX)}switch(z.valign){case"top":H=Y-z.maxTop;break;case"middle":H=(w-q)/2-z.maxTop;break;case"bottom":H=w-G-z.maxBottom;break;default:z.y instanceof u.a||(H=z.pixelY)}break;case"vertical":switch(z.align){case"left":B=W-z.maxLeft;break;case"center":B=(x-U)/2-z.maxLeft;break;case"right":B=x-X-z.maxRight;break;default:B=z.pixelX}T=(H=T+Y-z.maxTop)+z.maxBottom+G;break;case"horizontal":switch(z.valign){case"top":H=Y-z.maxTop;break;case"middle":H=(w-q)/2-z.maxTop;break;case"bottom":H=w-G-z.maxBottom;break;default:H=z.pixelY}C=(B=C+W-z.maxLeft)+z.maxRight+X;break;case"grid":switch(B=C+W-z.maxLeft,z.valign){case"top":H=T+Y-z.maxTop;break;case"middle":H=T+(w-q)/2-z.maxTop;break;case"bottom":H=T+w-G-z.maxBottom;break;default:H=T-z.maxTop}C+=M[O],E[A]=m.max(E[A],q);var Q=M[++O];if(y.isNumber(Q)||(Q=r),C>m.min(this.innerWidth,I)-Q+1&&O<a){a=O,C=0,T=0,A=0,O=0,M=this.getColumnWidth(N,a,r),E=[],F=-1;continue}O>=a&&(O=0,T+=E[A],A++,C=0)}"none"!==this.layout&&(z.moveTo({x:B,y:H}),$=B+z.maxLeft-W,K=B+z.maxRight+X,Z=H+z.maxTop-Y,J=H+z.maxBottom+G,(K>e||!y.isNumber(e))&&(e=K),($<t||!y.isNumber(t))&&(t=$),(Z<i||!y.isNumber(i))&&(i=Z),(J>n||!y.isNumber(n))&&(n=J),(K>l||!y.isNumber(l))&&(l=K),($<s||!y.isNumber(s))&&(s=$),(Z<c||!y.isNumber(c))&&(c=Z),(J>h||!y.isNumber(h))&&(h=h))}}if("none"==this.layout){var tt=this.bbox;t=tt.x,e=tt.x+tt.width,i=tt.y,n=tt.y+tt.height}y.isNumber(t)||(t=0,s=0),y.isNumber(e)||(l=e=this._availableWidth),y.isNumber(i)||(i=0,c=0),y.isNumber(n)||(h=n=this._availableHeight),y.isNumber(c)||(c=0),y.isNumber(h)||(h=c),y.isNumber(s)||(s=0),y.isNumber(l)||(l=s),v=e-t,b=n-i,y.isNumber(this.relativeWidth)&&(t=0,e=v=I-_-S),y.isNumber(this.relativeHeight)&&(i=0,n=b=D-P-k),y.isNumber(this._pixelWidth)&&(t=0,v=this._pixelWidth-_-S),y.isNumber(L)&&v<L&&(t=0,v=this.minWidth-_-S),y.isNumber(this._pixelHeight)&&(i=0,b=this._pixelHeight-P-k),y.isNumber(j)&&b<j&&(i=0,b=j-P-k);var et=l-s,it=h-c;if("none"!=this.layout&&(this.contentAlign||this.contentValign)&&p.length>0){var nt,rt,ot=v,at=b;ot<et&&(ot=et),at<it&&(at=it),"center"==this.contentAlign&&(nt=(ot-et)/2),"right"==this.contentAlign&&(nt=ot-et),"middle"==this.contentValign&&(rt=(at-it)/2),"bottom"==this.contentValign&&(rt=at-it),y.isNumber(nt)&&f.each(p.iterator(),(function(t){var e=t.maxLeft,i=nt;"horizontal"==d.layout&&(t.x=t.pixelX+i),"grid"==d.layout&&(t.x=t.pixelX+i),"vertical"==d.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e)),"absolute"==d.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e))})),y.isNumber(rt)&&f.each(p.iterator(),(function(t){var e=t.maxTop,i=rt;"horizontal"==d.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e)),"grid"==d.layout&&(i+=t.pixelMarginTop,t.y=i-e),"vertical"==d.layout&&(t.y=t.pixelY+i),"absolute"==d.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e))}))}var st=this.bbox;v=m.max(v,L),b=m.max(b,j),this.contentWidth=v,this.contentHeight=b,v=m.min(v,I),b=m.min(b,D),this._bbox={x:t,y:i,width:v,height:b};var lt=this.maxLeft,ct=this.maxTop,ht=this.maxBottom,ut=this.maxRight;if(this.measure(),(lt!=this.maxLeft||ut!=this.maxRight||ct!=this.maxTop||ht!=this.maxBottom)&&this.events.isEnabled("transformed")){var dt={type:"transformed",target:this};st&&(dt.dummyData=st.width+" "+v+" "+st.height+" "+b),this.events.dispatchImmediately("transformed",dt)}this.dispatchImmediately("layoutvalidated")},e.prototype.updateCenter=function(){t.prototype.updateCenter.call(this),this.updateBackground()},e.prototype.updateBackground=function(){var t=this._background;t&&(t.x=this.maxLeft,t.y=this.maxTop,t.width=this.maxRight-this.maxLeft,t.height=this.maxBottom-this.maxTop)},e.prototype.getColumnWidth=function(t,e,i){var n=this,r=[],o=0;return g.each(t,(function(t){!t.isMeasured||t.disabled||t.__disabled||(n.fixedWidthGrid?r[o]=i:r[o]=m.max(r[o],t.measuredWidth+t.pixelMarginRight+t.pixelMarginLeft),++o==e&&(o=0))})),r},Object.defineProperty(e.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(t){this.setPropertyValue("layout",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(t){this.setPropertyValue("contentValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(t){this.setPropertyValue("contentAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(t){this.setPropertyValue("fixedWidthGrid",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(t){this.setPropertyValue("maxColumns",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(t){this.setPropertyValue("reverseOrder",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(t){this.setPropertyValue("setStateOnChildren",t,!0)},enumerable:!0,configurable:!0}),e.prototype.fitsToBounds=function(t){var e=t.x,i=t.y;return e>=-.5&&e<=this.pixelWidth+.5&&i>=-.5&&i<=this.pixelHeight+.5},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),f.each(e.children.iterator(),(function(t){t.shouldClone&&(t.clone().parent=i)}))},Object.defineProperty(e.prototype,"preloader",{get:function(){return this._preloader||(this.parent?this.parent.preloader:void 0)},set:function(t){this._preloader&&this.removeDispose(this._preloader),this._preloader=t,t&&(t.parent=this.tooltipContainer,this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(e){var i=this,n=t.prototype.setPaper.call(this,e);return n&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each((function(t){t.setPaper(e),t.topParent=i.topParent}))),n},e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),d.c.removeFromInvalidLayouts(this)},e.prototype.setDataItem=function(e){this._dataItem!=e&&(f.each(this.children.iterator(),(function(t){t.dataItem=e})),this._background&&(this._background.dataItem=e)),t.prototype.setDataItem.call(this,e)},e.prototype.measureElement=function(){this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||this.validateLayout()},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(t){this.setPropertyValue("fontFamily",t,!0)&&(this.setSVGAttribute({"font-family":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(t){this.setPropertyValue("fontSize",t,!0)&&(this.setSVGAttribute({"font-size":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),e.prototype.invalidateLabels=function(){this.children.each((function(t){t.hardInvalidate?t.hardInvalidate():t instanceof e&&t.invalidateLabels()}))},Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(t){this.setPropertyValue("fontWeight",t),this.setSVGAttribute({"font-weight":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(t){this.setPropertyValue("textDecoration",t),this.setSVGAttribute({"text-decoration":t})},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),t.prototype.dispose.call(this)},e.prototype.setState=function(e,i,n){var r=e;return e instanceof o.a&&(r=e.name),this.setStateOnChildren&&f.each(this.children.iterator(),(function(t){t.setState(r,i,n),"active"!=r&&(t.isActive=!1)})),this._background&&this._background.setState(r),this.setStateOnSprites.length&&g.each(this.setStateOnSprites,(function(t){t.setState(r,i,n)})),t.prototype.setState.call(this,e,i,n)},e.prototype.setActive=function(e){t.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},e.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var i=!0;f.eachContinue(this.children.iterator(),(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),g.eachContinue(this._shouldBeReady,(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),i?t.prototype.dispatchReady.call(this):d.c.events.once("exitframe",(function(){e.dispatchReady(),v.b.requestFrame()}),void 0,!1)}},e.prototype._systemUpdate=function(e){this.children.each((function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))})),t.prototype._systemUpdate.call(this,e)},e.prototype._systemValidatePositions=function(){this.children.each((function(t){t.positionInvalid&&t.validatePosition()})),t.prototype._systemValidatePositions.call(this)},e.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(e.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(t){this._tapToActivate!=t&&this.setTapToActivate(t)},enumerable:!0,configurable:!0}),e.prototype.setTapToActivate=function(t){var e=this;this._tapToActivate=t,this.interactions.isTouchProtected=t,t&&this.interactions.setEventDisposer("container-tapToActivate",t,(function(){return new s.c([e.events.on("hit",e.handleTapToActivate,e,!1),e.events.on("down",e.initTapTimeout,e,!1),e.events.on("track",e.initTapTimeout,e,!1),Object(c.b)().body.events.on("down",(function(t){Object(c.b)().isLocalElement(t.pointer,e.paper.svg,e.uid)||e.handleTapToActivateDeactivation()}),e,!1)])})),Object(c.b)()},e.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},e.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},e.prototype.initTapTimeout=function(){var t=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout((function(){t.handleTapToActivateDeactivation()}),this.tapTimeout))},e.prototype.hasLicense=function(){if(b.a.commercialLicense)return!0;for(var t=0;t<b.a.licenses.length;t++)if(b.a.licenses[t].match(/^CH.{5,}/i))return!0;return!1},e}(r.a);d.c.registeredClasses.Container=x},C84C:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("ohjg"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="LightenFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.lightness=0,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"lightness",{get:function(){return this.properties.lightness},set:function(t){this.properties.lightness=t;var e=t+1;this.feColorMatrix.attr({values:e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 1 0"})},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.LightenFilter=a},CTEm:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("m4/l"),r=i("P/bD"),o=i("Tjl+"),a=i("MipW"),s=i("aCit"),l=i("ScGY"),c=i("Qkdp"),h=i("v9UT"),u=i("Mtpk"),d=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._numberFormat="#,###.#####",e._outputFormat="svg",e._smallNumberThreshold=1,e.className="NumberFormatter",e.applyTheme(),e}return n.c(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new r.a),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e){(void 0===e||u.isString(e)&&"number"===e.toLowerCase())&&(e=this._numberFormat);var i=Number(t);if(e instanceof Object)return this.intlLocales?new Intl.NumberFormat(this.intlLocales,e).format(i):new Intl.NumberFormat(void 0,e).format(i);e=h.cleanFormat(e);var n=this.parseFormat(e,this.language),r=void 0;return(r=i>this._negativeBase?n.positive:i<this._negativeBase?n.negative:n.zero).template.split(l.d).join(this.applyFormat(i,r))},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(u.hasValue(n))return n;var r={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1}},o=(t=t.replace("||",l.e)).split("|");return r.positive.source=o[0],void 0===o[2]?r.zero=r.positive:r.zero.source=o[2],void 0===o[1]?r.negative=r.positive:r.negative.source=o[1],c.each(r,(function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n=e.source;"number"===n.toLowerCase()&&(n=u.isString(i._numberFormat)?i._numberFormat:"#,###.#####");for(var o=Object(a.b)().chunk(n,!0),s=0;s<o.length;s++){var c=o[s];if(c.text=c.text.replace(l.e,"|"),"value"===c.type){var h=c.text.match(/[#0.,]+[ ]?[abesABES%!]?[abesABES‰!]?/);if(h)if(null===h||""===h[0])e.template+=c.text;else{var d=h[0].match(/[abesABES%‰!]{2}|[abesABES%‰]{1}$/);d&&(e.mod=d[0].toLowerCase(),e.modSpacing=!!h[0].match(/[ ]{1}[abesABES%‰!]{1}$/));var p=h[0].split(".");if(""===p[0]);else{e.thousands.active=(p[0].match(/0/g)||[]).length,e.thousands.passive=(p[0].match(/\#/g)||[]).length+e.thousands.active;var f=p[0].split(",");1===f.length||(e.thousands.interval=u.getValue(f.pop()).length,0===e.thousands.interval&&(e.thousands.interval=-1))}void 0===p[1]||(e.decimals.active=(p[1].match(/0/g)||[]).length,e.decimals.passive=(p[1].match(/\#/g)||[]).length+e.decimals.active),e.template+=c.text.split(h[0]).join(l.d)}}else e.template+=c.text}i.setCache(e.source,e),e.parsed=!0}else r[t]=i.getCache(e.source)})),this.setCache(t,r),r},e.prototype.applyFormat=function(t,e){var i=t<0;t=Math.abs(t);var n="",r="",o=e.mod?e.mod.split(""):[];if(-1!==o.indexOf("b")){var a=this.applyPrefix(t,this.bytePrefixes,-1!==o.indexOf("!"));t=a[0],n=a[1],r=a[2],e.modSpacing&&(r=" "+r)}else if(-1!==o.indexOf("a")){var s=this.applyPrefix(t,t<this.smallNumberThreshold?this.smallNumberPrefixes:this.bigNumberPrefixes,-1!==o.indexOf("!"));t=s[0],n=s[1],r=s[2],e.modSpacing&&(r=" "+r)}else if(-1!==o.indexOf("%")){var l=t.toString().length;t*=100,t=parseFloat(t.toPrecision(l+2)),r="%"}else-1!==o.indexOf("‰")&&(l=t.toString().length,t*=1e3,t=parseFloat(t.toPrecision(l+3)),r="‰");if(-1!==o.indexOf("e")){var c;c=e.decimals.passive>=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(c[0]),r="e"+c[1],e.modSpacing&&(r=" "+r)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){var u=Math.pow(10,e.decimals.passive);t=Math.round(t*u)/u}var d="",p=h.numberToString(t).split("."),f=p[0];if(f.length<e.thousands.active&&(f=Array(e.thousands.active-f.length+1).join("0")+f),e.thousands.interval>0){for(var g=[],m=f.split("").reverse().join(""),y=0,v=f.length;y<=v;y+=e.thousands.interval){var b=m.substr(y,e.thousands.interval).split("").reverse().join("");""!==b&&g.unshift(b)}f=g.join(e.thousands.separator)}d+=f,1===p.length&&p.push("");var x=p[1];return x.length<e.decimals.active&&(x+=Array(e.decimals.active-x.length+1).join("0")),""!==x&&(d+=e.decimals.separator+x),""===d&&(d="0"),0!==t&&i&&-1===o.indexOf("s")&&(d="-"+d),n&&(d=n+d),r&&(d+=r),d},e.prototype.applyPrefix=function(t,e,i){void 0===i&&(i=!1);for(var n=t,r="",o="",a=!1,s=1,l=0,c=e.length;l<c;l++)e[l].number<=t&&(0===e[l].number?n=0:(n=t/e[l].number,s=e[l].number),r=e[l].prefix,o=e[l].suffix,a=!0);return!a&&i&&e.length&&0!=t&&(n=t/e[0].number,r=e[0].prefix,o=e[0].suffix,a=!0),a&&(n=parseFloat(n.toPrecision(s.toString().length+Math.floor(n).toString().replace(/[^0-9]*/g,"").length))),[n,r,o]},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(t){this._negativeBase=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bigNumberPrefixes",{get:function(){return u.hasValue(this._bigNumberPrefixes)||(this._bigNumberPrefixes=[{number:1e3,suffix:this.language.translate("_big_number_suffix_3")},{number:1e6,suffix:this.language.translate("_big_number_suffix_6")},{number:1e9,suffix:this.language.translate("_big_number_suffix_9")},{number:1e12,suffix:this.language.translate("_big_number_suffix_12")},{number:1e15,suffix:this.language.translate("_big_number_suffix_15")},{number:1e18,suffix:this.language.translate("_big_number_suffix_18")},{number:1e21,suffix:this.language.translate("_big_number_suffix_21")},{number:1e24,suffix:this.language.translate("_big_number_suffix_24")}]),this._bigNumberPrefixes},set:function(t){this._bigNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smallNumberPrefixes",{get:function(){return u.hasValue(this._smallNumberPrefixes)||(this._smallNumberPrefixes=[{number:1e-24,suffix:this.language.translate("_small_number_suffix_24")},{number:1e-21,suffix:this.language.translate("_small_number_suffix_21")},{number:1e-18,suffix:this.language.translate("_small_number_suffix_18")},{number:1e-15,suffix:this.language.translate("_small_number_suffix_15")},{number:1e-12,suffix:this.language.translate("_small_number_suffix_12")},{number:1e-9,suffix:this.language.translate("_small_number_suffix_9")},{number:1e-6,suffix:this.language.translate("_small_number_suffix_6")},{number:.001,suffix:this.language.translate("_small_number_suffix_3")}]),this._smallNumberPrefixes},set:function(t){this._smallNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smallNumberThreshold",{get:function(){return this._smallNumberThreshold},set:function(t){this._smallNumberThreshold=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bytePrefixes",{get:function(){return u.hasValue(this._bytePrefixes)||(this._bytePrefixes=[{number:1,suffix:this.language.translate("_byte_suffix_B")},{number:1024,suffix:this.language.translate("_byte_suffix_KB")},{number:1048576,suffix:this.language.translate("_byte_suffix_MB")},{number:1073741824,suffix:this.language.translate("_byte_suffix_GB")},{number:1099511627776,suffix:this.language.translate("_byte_suffix_TB")},{number:0x4000000000000,suffix:this.language.translate("_byte_suffix_PB")}]),this._bytePrefixes},set:function(t){this._bytePrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.escape=function(t){return t.replace("||",l.e)},e.prototype.unescape=function(t){return t.replace(l.e,"|")},e}(o.a);s.c.registeredClasses.NumberFormatter=d},Cekr:function(t,e,i){"use strict";var n=i("5+SK"),r=i("Wbjh"),o=i("bPwn"),a={};i("Vng0")(a,i("YEtG")("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},CnhP:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("Vs7R"),o=i("aCit"),a=i("Gg2j"),s=i("Mtpk"),l=i("v9UT"),c=function(t){function e(){var e=t.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight;if(s.isNumber(e)&&s.isNumber(i)){var n=a.min(e,i)/2,r=l.relativeToValue(this.cornerRadiusTopLeft,n),o=l.relativeToValue(this.cornerRadiusTopRight,n),c=l.relativeToValue(this.cornerRadiusBottomRight,n),h=l.relativeToValue(this.cornerRadiusBottomLeft,n),u=a.min(Math.abs(e/2),Math.abs(i/2)),d=a.fitToRange(r,0,u),p=a.fitToRange(o,0,u),f=a.fitToRange(c,0,u),g=a.fitToRange(h,0,u),m="M"+d+",0 L"+(e-p)+",0 a"+p+","+p+" 0 0 1 "+p+","+p+" L"+e+","+(i-f)+" a"+f+","+f+" 0 0 1 -"+f+","+f+" L"+g+","+i+" a"+g+","+g+" 0 0 1 -"+g+",-"+g+" L0,"+d+" a"+d+","+d+" 0 0 1 "+d+",-"+d+" Z";this.path=m}},e.prototype.cornerRadius=function(t,e,i,n){this.cornerRadiusTopLeft=t,this.cornerRadiusTopRight=e,this.cornerRadiusBottomLeft=i,this.cornerRadiusBottomRight=n},Object.defineProperty(e.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(t){this.setPercentProperty("cornerRadiusTopLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(t){this.setPercentProperty("cornerRadiusTopRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(t){this.setPercentProperty("cornerRadiusBottomRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(t){this.setPercentProperty("cornerRadiusBottomLeft",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.RoundedRectangle=c},CuFa:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("m4/l"),r=i("Tjl+"),o=i("vMqJ"),a=i("P7v+"),s=i("aCit"),l=i("Wglt"),c=i("Mtpk"),h=i("tjMS"),u=function(t){function e(){var e=t.call(this)||this;return e._stops=new o.b,e.element=e.paper.addGroup("radialGradient"),e.id="gradient-"+s.c.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){var t,e=this,i=this.element;c.isNumber(this.cx)&&((t=this.cx)instanceof h.a&&(t=t.percent+"%"),i.attr({cx:t})),c.isNumber(this.cy)&&((t=this.cy)instanceof h.a&&(t=t.percent+"%"),i.attr({cy:t})),this.fx&&((t=this.fx)instanceof h.a&&(t=t.percent+"%"),i.attr({fx:t})),this.fy&&((t=this.fy)instanceof h.a&&(t=t.percent+"%"),i.attr({fy:t})),i.removeChildNodes(),l.each(l.indexed(this._stops.iterator()),(function(t){var n=t[0],r=t[1],o=r.offset;c.isNumber(o)||(o=n/(e._stops.length-1));var a=e.paper.add("stop");c.hasValue(r.color)&&a.attr({"stop-color":r.color.toString()}),c.isNumber(r.opacity)&&a.attr({"stop-opacity":r.opacity}),c.isNumber(o)&&a.attr({offset:o}),i.add(a)}))},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i}),this.draw()},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Object(a.b)()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cx",{get:function(){return this._cx},set:function(t){this._cx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cy",{get:function(){return this._cy},set:function(t){this._cy=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fx",{get:function(){return this._fx},set:function(t){this._fx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fy",{get:function(){return this._fy},set:function(t){this._fy=t,this.draw()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this.cx=e.cx,this.cy=e.cy,this.fx=e.fx,this.fy=e.fy},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._stops.clear()},e}(r.a);s.c.registeredClasses.RadialGradient=u},"DA7/":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("Tjl+"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return n.c(e,t),e.prototype.modify=function(t){return t},e}(r.a);o.c.registeredClasses.ColorModifier=a},DG6Q:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("C6dT"),o=i("CnhP"),a=i("aCit"),s=i("tjMS"),l=i("Gg2j"),c=function(t){function e(){var e=t.call(this)||this;return e.className="Column",e.width=Object(s.c)(80),e.height=Object(s.c)(80),e.events.disableType("transformed"),e.applyOnClones=!0,e.strokeOpacity=1,e.layout="none",e.createAssets(),e.events.on("childadded",e.handleKidAdded,e,!1),e}return n.c(e,t),e.prototype.handleKidAdded=function(){"none"==this.layout&&(this.layout="absolute")},e.prototype.createAssets=function(){this.column=this.createChild(o.a),this.column.shouldClone=!1,this.column.isMeasured=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.column;e&&(e.width=l.min(this.pixelWidth,this.maxWidth),e.height=l.min(this.pixelHeight,this.maxHeight),e.invalid&&e.validate())},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.column&&this.column.copyFrom(e.column)},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.column?{x:0,y:0,width:this.column.measuredWidth,height:this.column.measuredHeight}:{x:0,y:0,width:l.min(this.pixelWidth,this.maxWidth),height:l.min(this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),e}(r.a);a.c.registeredClasses.Column=c},DHte:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("Tjl+"),o=i("8ZqG"),a=i("aCit"),s=i("hxI2"),l=i("Mtpk"),c=i("v9UT"),h=function(t){function e(){var e=t.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new o.a({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.getReusableColor=function(t){if(0==this._list.length)return this.generate(1),this.list[0];var e=t-Math.floor(t/this._list.length)*this.list.length;return this.list[e]},e.prototype.next=function(){var t;return this.list.length<=this._currentStep?this.reuse?t=this.getReusableColor(this._currentStep):(this.generate(this.minColors),t=this.list[this._currentStep]):t=this.list[this._currentStep],this._currentStep+=this.step,t.saturate(this.saturation)},e.prototype.getIndex=function(t){var e;return this.list.length<=t?this.reuse?e=this.getReusableColor(t):(this.generate(this.minColors),e=this.getIndex(t)):e=this.list[t],e.saturate(this.saturation)},e.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(e.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.generate=function(t){var e=this.currentColor,i=s.rgbToHsl(l.getValue(e.rgb)),n=l.hasValue(this.stepOptions.hue)?this.stepOptions.hue:1/t,r={brighten:0,lighten:0,hue:i.h,lightness:i.l,saturation:i.s},a=[],h=0==this.list.length?0:1;if(this.reuse)for(var u=h;u<=t;u++)a.push(s.rgbToHsl(l.getValue(this._list[u].rgb)).h);else for(u=h;u<=t;u++){var d=i.h+n*u;this.wrap&&d>1&&(d-=1),a.push(d)}for(this.shuffle&&a.sort((function(t,e){return Math.random()-.5})),u=0;u<t;u++){this.reuse?i=s.rgbToHsl(l.getValue(this._list[u].rgb)):i.h=a.shift(),this.applyStepOptions(i,r,u,this._currentPass);var p=Object(o.c)(s.hslToRgb(i)),f=(this.stepOptions.brighten||0)*u+(this.passOptions.brighten||0)*this._currentPass;0!=f&&(f=this.wrap?c.fitNumberRelative(f,this.minLightness,this.maxLightness):c.fitNumber(f,this.minLightness,this.maxLightness),p=p.brighten(f));var g=(this.stepOptions.lighten||0)*u+(this.passOptions.lighten||0)*this._currentPass;0!=g&&(g=this.wrap?c.fitNumberRelative(g,this.minLightness,this.maxLightness):c.fitNumber(g,this.minLightness,this.maxLightness),p=p.lighten(g)),this._list.push(p)}this._currentPass++},Object.defineProperty(e.prototype,"currentColor",{get:function(){return 0==this._list.length?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),e.prototype.applyStepOptions=function(t,e,i,n){t.l=e.lightness+(this.stepOptions.lightness||0)*i+(this.passOptions.lightness||0)*n,this.wrap?(t.l>1?t.l=t.l-Math.floor(t.l):t.l<0&&(t.l=-(t.l-Math.floor(t.l))),t.l=c.fitNumberRelative(t.l,this.minLightness,this.maxLightness)):(t.l>1?t.l=1:t.l<0&&(t.l=0),t.l=c.fitNumber(t.l,this.minLightness,this.maxLightness))},e.prototype.processConfig=function(e){if(e&&l.hasValue(e.list)&&l.isArray(e.list))for(var i=0,n=e.list.length;i<n;i++)e.list[i]instanceof o.a||(e.list[i]=Object(o.c)(e.list[i]));t.prototype.processConfig.call(this,e)},e}(r.a);a.c.registeredClasses.ColorSet=h},DVYA:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},DVvQ:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},DXFp:function(t,e,i){"use strict";i.d(e,"b",(function(){return l})),i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("2I/e"),o=i("AC2I"),a=i("aCit"),s=i("Wglt"),l=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return n.c(e,t),e}(r.b),c=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return n.c(e,t),e.prototype.validateData=function(){t.prototype.validateData.call(this),this.feedLegend()},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];s.each(this.series.iterator(),(function(t){t.hiddenInLegend||s.each(t.dataItems.iterator(),(function(i){i.hiddenInLegend||(e.push(i),i.legendSettings||(i.legendSettings=t.legendSettings))}))})),t.data=e,t.dataFields.name="category"}},e.prototype.createSeries=function(){return new o.a},e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0')}%",e.itemContainers.template.events.on("over",(function(t){var e=t.target.dataItem.dataContext;e.visible&&!e.isHiding&&(e.slice.isHover=!0)})),e.itemContainers.template.events.on("out",(function(t){t.target.dataItem.dataContext.slice.isHover=!1})))},e}(r.a);a.c.registeredClasses.PercentChart=c,a.c.registeredClasses.PercentChartDataItem=l},DbOM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"DvJ+":function(t,e){function i(t){return(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})(t)}t.exports=function(t){return"object"===i(t)?null!==t:"function"==typeof t}},DziZ:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("Vs7R"),o=i("tjMS"),a=i("aCit"),s=i("v9UT"),l=i("Mtpk"),c=i("hGwe"),h=function(t){function e(){var e=t.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=Object(o.c)(100),e.bottomSide=Object(o.c)(100),e.leftSide=Object(o.c)(100),e.rightSide=Object(o.c)(100),e.isMeasured=!1,e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight,n=s.relativeToValue(this.topSide,e),r=s.relativeToValue(this.bottomSide,e),o=s.relativeToValue(this.leftSide,i),a=s.relativeToValue(this.rightSide,i),h=(e-n)/2,u=(i-o)/2,d=e-(e-n)/2,p=(i-a)/2,f=e-(e-r)/2,g=i-(i-a)/2,m=(e-r)/2,y=i-(i-o)/2,v="",b="",x="",w="";if(l.hasValue(this.horizontalNeck)){var _=this.horizontalNeck.value;v=c.lineTo({x:e*_,y:Math.max(u,p)}),x=c.lineTo({x:e*_,y:Math.min(g,y)})}if(l.hasValue(this.verticalNeck)){var S=this.verticalNeck.value;b=c.lineTo({x:Math.min(d,f),y:i*S}),w=c.lineTo({x:Math.max(h,m),y:i*S})}var P=c.moveTo({x:h,y:u})+v+c.lineTo({x:d,y:p})+b+c.lineTo({x:f,y:g})+x+c.lineTo({x:m,y:y})+w;this.path=P},Object.defineProperty(e.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(t){this.setPercentProperty("topSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(t){this.setPercentProperty("bottomSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(t){this.setPercentProperty("leftSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(t){this.setPercentProperty("rightSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(t){this.setPropertyValue("horizontalNeck",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(t){this.setPropertyValue("verticalNeck",t,!0)},enumerable:!0,configurable:!0}),e}(r.a);a.c.registeredClasses.Trapezoid=h},"E+Sg":function(t,e,i){var n=i("hjwn").f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||i("gD3S")&&n(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},EEf7:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("vJiZ"),o=i("W0fk"),a=i("K0ev"),s=i("nHHr").f;i("gD3S")&&n(n.P+i("3/+B"),"Object",{__lookupSetter__:function(t){var e,i=r(this),n=o(t,!0);do{if(e=s(i,n))return e.set}while(i=a(i))}})},EMhK:function(t,e,i){var n=i("Gb1H");n(n.S,"Reflect",{ownKeys:i("+6ht")})},EOVy:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{sign:i("sxbc")})},EVjk:function(t,e,i){var n=i("Gb1H");n(n.S,"Array",{isArray:i("kHwJ")})},EhJv:function(t,e,i){var n=i("sHIJ"),r=i("kcsd");t.exports=function(t){return n(r(t))}},EjGA:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("m4/l"),r=i("Mpxm"),o=i("ZhuL"),a=i("4DCw"),s=i("Tjl+"),l=i("x79X"),c=i("P/bD"),h=i("7XB+"),u=i("aCit"),d=i("Mtpk"),p=i("Qkdp"),f=function(t){function e(e,i){var n=t.call(this)||this;return n.adapter=new l.a(n),n._requestOptions={},n._incremental=!1,n._incrementalParams={},n._keepCount=!1,n._updateCurrentData=!1,n.showPreloader=!0,n.className="DataSource",e&&(n.url=e),i&&(n.parser="string"==typeof i?r.b.getParserByType(i):i),n}return n.c(e,t),e.prototype.processData=function(t,e){if(this.dispatchImmediately("parsestarted"),this.parser||(this.parser=r.b.getParserByData(t,e),this.parser)){if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",t))),!d.hasValue(this.data)&&this.events.isEnabled("parseerror")){var i={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",i)}this.dispatchImmediately("parseended"),d.hasValue(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date}else{if(this.events.isEnabled("parseerror")){var n={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",n)}this.dispatchImmediately("parseended")}},Object.defineProperty(e.prototype,"url",{get:function(){var t=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(t=this.addUrlParams(t,this.incrementalParams)),this.adapter.apply("url",t)},set:function(t){this._url=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(t){this._requestOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser||(this._parser=new o.a),this.adapter.apply("parser",this._parser)},set:function(t){this._parser=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(t){var e=this;this._reloadFrequency!=t&&(this._reloadFrequency=t,t?d.hasValue(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",(function(t){e._reloadTimeout=setTimeout((function(){e.load()}),e.reloadFrequency)}))):d.hasValue(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(t){this._incremental=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(t){this._incrementalParams=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(t){this._keepCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(t){this._updateCurrentData=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new c.a,this.language)},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new h.a,this.dateFormatter)},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),e.prototype.timestampUrl=function(t){var e={};return e[(new Date).getTime().toString()]="",this.addUrlParams(t,e)},e.prototype.dispose=function(){t.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),d.hasValue(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},e.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),r.b.load(this))},e.prototype.addUrlParams=function(t,e){var i=t.match(/\?/)?"&":"?",n=[];return p.each(e,(function(t,e){""!=e?n.push(t+"="+encodeURIComponent(e)):n.push(t)})),n.length?t+i+n.join("&"):t},e.prototype.processConfig=function(e){u.c.registeredClasses.json=o.a,u.c.registeredClasses.JSONParser=o.a,u.c.registeredClasses.csv=a.a,u.c.registeredClasses.CSVParser=a.a,t.prototype.processConfig.call(this,e)},e}(s.b)},F2Gx:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("dstF")(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n(n.P+n.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("M/YL")(o)},FSsr:function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=i("DbOM"),a=n.key,s=n.set;n.exp({metadata:function(t,e){return function(i,n){s(t,e,(void 0!==n?r:o)(i),a(n))}}})},FUSD:function(t,e,i){var n=i("FmWr"),r=i("lhvN"),o=i("kcsd");t.exports=function(t,e,i,a){var s=String(o(t)),l=s.length,c=void 0===i?" ":String(i),h=n(e);if(h<=l||""==c)return s;var u=h-l,d=r.call(c,Math.ceil(u/c.length));return d.length>u&&(d=d.slice(0,u)),a?d+s:s+d}},FmWr:function(t,e,i){var n=i("4BRe"),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},FzPm:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("Vs7R"),o=i("tjMS"),a=i("aCit"),s=i("v9UT"),l=i("Gg2j"),c=function(t){function e(){var e=t.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",Object(o.c)(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return s.relativeToValue(this.radius,l.min(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){var t=this.pixelRadius;this._bbox={x:-t,y:-t,width:2*t,height:2*t}},e}(r.a);a.c.registeredClasses.Circle=c},G0iN:function(t,e,i){var n=i("3BzE"),r=i("pmYy"),o=i("eBSV");t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.f,c=0;s.length>c;)l.call(t,a=s[c++])&&e.push(a);return e}},G5U1:function(t,e){var i=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=i)},GAaQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n,r=i("m4/l"),o=i("qJno"),a=i("x79X"),s=i("Vs7R"),l=i("W8Sc"),c=i("vMqJ"),h=i("+qIf"),u=i("7XB+"),d=i("akNo"),p=i("CTEm"),f=i("P/bD"),g=i("/IEW"),m=i("8ZqG"),y=i("aCit"),v=i("Q4nc"),b=i("58Sn"),x=i("LBDG"),w=i("Qkdp"),_=i("OVUc"),S=i("Mtpk"),P=i("v9UT"),k=i("hJ5i"),C=i("Gg2j"),T=/src: ([^;]+);/;function A(t,e,i){return r.b(this,void 0,void 0,(function(){var n,o,a,s;return r.d(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,_.a(e)];case 1:return n=l.sent(),[3,3];case 2:return o=l.sent(),console.error("Failed to load stylesheet",e,o),[2];case 3:(a=t.createElement("style")).textContent=n.response,t.head.appendChild(a),l.label=4;case 4:return l.trys.push([4,,7,8]),[4,function(t){return r.b(this,void 0,void 0,(function(){var e;return r.d(this,(function(i){switch(i.label){case 0:e=t.sheet,i.label=1;case 1:return i.trys.push([1,2,,4]),[2,e.cssRules];case 2:return i.sent(),[4,new Promise((function(i,n){t.addEventListener("load",(function(){i(e.cssRules)}),!0),t.addEventListener("error",(function(t){n(t)}),!0),setTimeout((function(){n(new Error("Timeout while waiting for <style> to load"))}),1e4)}))];case 3:return[2,i.sent()];case 4:return[2]}}))}))}(a)];case 5:return s=l.sent(),[4,O(t,e,s,i)];case 6:return l.sent(),[3,8];case 7:return t.head.removeChild(a),[7];case 8:return[2]}}))}))}function O(t,e,i,n){return r.b(this,void 0,void 0,(function(){var o,a,s,l,c;return r.d(this,(function(r){switch(r.label){case 0:for(o=[],a=i.length,s=0;s<a;s++)(l=i[s]).type===CSSRule.IMPORT_RULE?(c=l.href)&&(c=P.joinUrl(e,c),o.push(A(t,c,n))):n(e,l);return o.length?[4,Promise.all(o)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))}var M=function(t){function e(e){var i=t.call(this)||this;return i.adapter=new a.a(i),i._formatOptions=new h.a,i._extraSprites=[],i._validateSprites=[],i._dynamicDataFields=!0,i._removedObjects=new c.b,i._hiddenObjects=[],i._objectsAlreadyHidden=!1,i._filePrefix="amCharts",i.useWebFonts=!0,i.useRetina=!0,i.useSimplifiedExport=!0,i.timeoutDelay=2e3,i._container=e,i.className="Export",i._formatOptions.setKey("png",{}),i._formatOptions.setKey("jpg",{quality:.8}),i._formatOptions.setKey("gif",{}),i._formatOptions.setKey("svg",{}),i._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0}),i._formatOptions.setKey("json",{indent:2,useLocale:!0}),i._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),i._formatOptions.setKey("html",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("pdfdata",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),i.adapter.add("options",(function(t){var e=i._formatOptions.getKey(t.type);return t.options?t.options=w.merge(e,t.options):t.options=e,t})),i.applyTheme(),i.dispatchImmediately("inited"),i}return r.c(e,t),Object.defineProperty(e.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;this._menu&&this.removeDispose(this._menu),this._menu=t,this._menu.container=this.container,this._menu.language=this._language,this._menu.adapter.add("branch",(function(t){return t.branch.unsupported=!e.typeSupported(t.branch.type),t})),this._menu.events.on("hit",(function(t){e.export(t.branch.type,t.branch.options),e.menu.close()})),this._menu.events.on("enter",(function(t){e.export(t.branch.type,t.branch.options),e.menu.close()})),this._menu.events.on("over",(function(t){e._disablePointers()})),this._menu.events.on("out",(function(t){e._releasePointers()})),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",(function(t){return t.classPrefix=v.a.classNamePrefix+t.classPrefix,t})),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}),e.prototype.typeSupported=function(t){var e=!0;return"pdf"===t||("xlsx"===t?e=!!this._hasData():("print"!=t||window.print)&&(-1===["json","csv","html","pdfdata"].indexOf(t)||this._hasData())||(e=!1)),this.adapter.apply("supported",{supported:e,type:t}).supported},e.prototype._hasData=function(){return this.data&&this.data.length},e.prototype._getFunction=function(t){switch(t){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":case"pdfdata":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"html":return this.getHTML;case"print":return this.getPrint;default:return this.unsupported}},e.prototype.export=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l=this;return r.d(this,(function(r){switch(r.label){case 0:return"custom"==t?(this.handleCustom(e),[2,!0]):(this.events.isEnabled("exportstarted")&&(i={type:"exportstarted",target:this,format:t,options:e},this.events.dispatchImmediately("exportstarted",i)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout((function(){if(l.events.isEnabled("exporttimedout")){var i={type:"exporttimedout",target:l,format:t,options:e};l.events.dispatchImmediately("exporttimedout",i)}l.showTimeout()}),this.timeoutDelay)),this.hideNonExportableSprites(),n=this._getFunction(t),e=this.adapter.apply("options",{options:e,type:t}).options,[4,(n=this.adapter.apply("exportFunction",{func:n,type:t,options:e}).func).call(this,t,e)]);case 1:return o=r.sent(),this.restoreNonExportableSprites(),o?(this.events.isEnabled("exportfinished")&&(a={type:"exportfinished",target:this,format:t,options:e},this.events.dispatchImmediately("exportfinished",a)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),"print"===t?[2,this.print(o,e,this.adapter.apply("title",{title:this.title,options:e}).title)]:"pdfdata"==t?[2,this.download(o,this.filePrefix+".pdf")]:[2,this.download(o,this.filePrefix+"."+t)]):(this.events.isEnabled("error")&&(s={type:"error",target:this,format:t,options:e},this.events.dispatchImmediately("error",s)),[2,!1])}}))}))},e.prototype.unsupported=function(t,e){return r.b(this,void 0,void 0,(function(){return r.d(this,(function(t){return[2,""]}))}))},e.prototype.handleCustom=function(t){S.hasValue(t)&&S.hasValue(t.callback)&&t.callback.call(t.callbackTarget||this,t)},e.prototype.getPrint=function(t,e){return r.b(this,void 0,void 0,(function(){return r.d(this,(function(t){return[2,this.getImage("png",e)]}))}))},e.prototype.getFontFamilies=function(){return r.b(this,void 0,void 0,(function(){var t,e,i,n,o=this;return r.d(this,(function(a){switch(a.label){case 0:return t=this.getDOMURL(),e=[],i=[],[4,function(t){return r.b(this,void 0,void 0,(function(){var e,i;return r.d(this,(function(n){switch(n.label){case 0:(e=document.createElement("iframe")).src="about:blank",e.setAttribute("title",""),document.head.appendChild(e),n.label=1;case 1:return n.trys.push([1,,3,4]),i=e.contentDocument,[4,Promise.all(k.map(document.styleSheets,(function(e){var n=e.href;return null==n?O(i,location.href,e.cssRules,t):(n=P.joinUrl(location.href,n),A(i,n,t))})))];case 2:return n.sent(),[3,4];case 3:return document.head.removeChild(e),[7];case 4:return[2]}}))}))}((function(n,a){if(a.type===CSSRule.FONT_FACE_RULE){var s=a.cssText,l=T.exec(s);if(null!==l){var c=l[1].split(/ *, */).map((function(i){return r.b(o,void 0,void 0,(function(){var o,a,s,l,c,h;return r.d(this,(function(r){switch(r.label){case 0:return null!==(o=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(i))?[3,1]:[2,i];case 1:a=o[2],s=P.joinUrl(n,o[1]),r.label=2;case 2:return r.trys.push([2,7,,8]),[4,_.a(s,void 0,{responseType:"blob"})];case 3:return l=r.sent(),null==window.navigator.msSaveOrOpenBlob?[3,4]:(c=t.createObjectURL(l.blob),e.push(c),[3,6]);case 4:return[4,function(t){return new Promise((function(e,i){var n=new FileReader;n.onload=function(t){e(n.result)},n.onerror=function(t){i(t)},n.readAsDataURL(t)}))}(l.blob)];case 5:c=r.sent(),r.label=6;case 6:return[2,'url("'+c+'")'+a];case 7:return h=r.sent(),console.error("Failed to load font",s,h),[2,null];case 8:return[2]}}))}))}));i.push(Promise.all(c).then((function(t){return 0===(t=t.filter((function(t){return null!=t}))).length?"":s.replace(T,"src: "+t.join(", ")+";")})))}}}))];case 1:return a.sent(),[4,Promise.all(i)];case 2:return n=a.sent(),[2,{blobs:e,cssText:n.filter((function(t){return!!t})).join("\n")}]}}))}))},e.prototype.getImage=function(t,e,i){return r.b(this,void 0,void 0,(function(){var n,o,a,s,l;return r.d(this,(function(r){switch(r.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),S.hasValue(e)||(e=this.getFormatOptions(t)),[4,this.awaitValidSprites()];case 1:return r.sent(),[4,this.simplifiedImageExport()];case 2:if(!r.sent())return[3,10];r.label=3;case 3:return r.trys.push([3,7,,9]),[4,this.getCanvas(e)];case 4:return o=r.sent(),!1===i?[3,6]:[4,this.addExtras(o,e)];case 5:o=r.sent(),r.label=6;case 6:return a=o.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(o),n||this.restoreNonExportableSprites(),[2,a];case 7:return s=r.sent(),console.error(s.message+"\n"+s.stack),console.warn("Simple export failed, falling back to advanced export"),[4,this.getImageAdvanced(t,e,i)];case 8:return l=r.sent(),n||this.restoreNonExportableSprites(),[2,l];case 9:return[3,12];case 10:return[4,this.getImageAdvanced(t,e,i)];case 11:return l=r.sent(),n||this.restoreNonExportableSprites(),[2,l];case 12:return[2]}}))}))},e.prototype.addExtras=function(t,e,i){return r.b(this,void 0,void 0,(function(){var n,o,a,l,c,h,u,d,p,f,g,m,y,v,b=this;return r.d(this,(function(x){switch(x.label){case 0:return this.extraSprites.length?(n=0,o=0,a=t.width,l=t.height,c=0,h=0,[4,Promise.all(k.map(this.extraSprites,(function(t){return r.b(b,void 0,void 0,(function(){var u,d,p,f;return r.d(this,(function(r){switch(r.label){case 0:return(u=t instanceof s.a?{sprite:t,position:"bottom"}:t).position=u.position||"bottom",u.marginTop=u.marginTop||0,u.marginRight=u.marginRight||0,u.marginBottom=u.marginBottom||0,u.marginLeft=u.marginLeft||0,i?[4,u.sprite.exporting.getCanvasAdvanced(e)]:[3,2];case 1:return d=r.sent(),[3,4];case 2:return[4,u.sprite.exporting.getCanvas(e)];case 3:d=r.sent(),r.label=4;case 4:return p=d.width+u.marginLeft+u.marginRight,f=d.height+u.marginTop+u.marginBottom,"top"==u.position?(a=u.crop?l:C.max(a,p),o+=f):"right"==u.position?(l=u.crop?l:C.max(l,f),c+=p):"left"==u.position?(l=u.crop?l:C.max(l,f),n+=p):"bottom"===u.position&&(a=u.crop?l:C.max(a,p),h+=f),[2,{canvas:d,position:u.position,left:u.marginLeft,top:u.marginTop,width:p,height:f}]}}))}))})))]):[3,2];case 1:return u=x.sent(),(d=this.getDisposableCanvas()).width=n+a+c,d.height=o+l+h,p=d.getContext("2d"),(f=this.backgroundColor||this.findBackgroundColor(this.sprite.dom))&&(p.fillStyle=f.toString(),p.fillRect(0,0,d.width,d.height)),y=(g=n)+a,v=(m=o)+l,k.each(u,(function(t){"top"==t.position?(m-=t.height,p.drawImage(t.canvas,n+t.left,m+t.top)):"right"==t.position?(p.drawImage(t.canvas,y+t.left,o+t.top),y+=t.width):"left"==t.position?(g-=t.width,p.drawImage(t.canvas,g+t.left,o+t.top)):"bottom"===t.position&&(p.drawImage(t.canvas,n+t.left,v+t.top),v+=t.height),b.disposeCanvas(t.canvas)})),p.drawImage(t,n,o),[2,d];case 2:return[2,t]}}))}))},e.prototype.getCanvas=function(t){return r.b(this,void 0,void 0,(function(){var e,i,n,o,a,s,l,c,h,u,d,p,f,g,m,y;return r.d(this,(function(r){switch(r.label){case 0:S.hasValue(t)||(t={}),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),i=this.getDOMURL(),n=null,o=null,r.label=1;case 1:return r.trys.push([1,,4,5]),s=this.sprite.pixelWidth,l=this.sprite.pixelHeight,c=b.l(this.sprite.dom),h=b.m(this.sprite.dom),a=this.getDisposableCanvas(),u=this.getPixelRatio(t),a.style.width=s+"px",a.style.height=l+"px",a.width=s*u,a.height=l*u,d=a.getContext("2d"),1!=u&&d.setTransform(u,0,0,u,0,0),e&&(d.fillStyle=e.toString(),d.fillRect(0,0,s,l)),p=[],this.useWebFonts&&p.push(this.getFontFamilies().then((function(t){return o=t.blobs,t.cssText}))),p.push(this.imagesToDataURI(this.sprite.dom,t)),p.push(this.prepForeignObjects(this.sprite.dom,t)),[4,Promise.all(p)];case 2:return f=r.sent(),g=this.normalizeSVG("<style>"+f[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,s,l,c,h),m=new Blob([g],{type:"image/svg+xml"}),n=i.createObjectURL(m),[4,this.loadNewImage(n,s,l,"anonymous")];case 3:return y=r.sent(),d.drawImage(y,0,0),[3,5];case 4:return null!==n&&i.revokeObjectURL(n),null!==o&&k.each(o,(function(t){i.revokeObjectURL(t)})),this.restoreRemovedObjects(),[7];case 5:return[2,a]}}))}))},e.prototype.getCanvasAdvanced=function(t){return r.b(this,void 0,void 0,(function(){var e,i,n,o,a,s,l,c,h,u;return r.d(this,(function(r){switch(r.label){case 0:return S.hasValue(t)||(t={}),[4,this.imagesToDataURI(this.sprite.dom,t)];case 1:return r.sent(),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return i=r.sent(),n=this.sprite.pixelWidth,o=this.sprite.pixelHeight,a=b.l(this.sprite.dom),s=b.m(this.sprite.dom),l=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,n,o,a,s,e),c=this.getDisposableCanvas(),h=this.getPixelRatio(t),c.style.width=n*h+"px",c.style.height=o*h+"px",c.width=n*h,c.height=o*h,u={useCORS:!0},1!=h&&(u.ignoreDimensions=!0,u.scaleWidth=n*h,u.scaleHeight=o*h),i(c,l,u),[2,c]}}))}))},e.prototype.getImageAdvanced=function(t,e,i){return r.b(this,void 0,void 0,(function(){var n,o,a;return r.d(this,(function(r){switch(r.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),S.hasValue(e)||(e=this.getFormatOptions(t)),[4,this.getCanvasAdvanced(e)];case 1:return o=r.sent(),!1===i?[3,3]:[4,this.addExtras(o,e,!0)];case 2:o=r.sent(),r.label=3;case 3:return a=o.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(o),n||this.restoreNonExportableSprites(),[2,a]}}))}))},e.prototype.getDisposableCanvas=function(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",document.body.appendChild(t),t},e.prototype.disposeCanvas=function(t){document.body.removeChild(t)},e.prototype.getPixelRatio=function(t){var e=t&&t.scale?t.scale:1;return(this.useRetina?P.getPixelRatio():1)*e},e.prototype.imagesToDataURI=function(t,i){return r.b(this,void 0,void 0,(function(){var n,o,a,s,l,c;return r.d(this,(function(r){switch(r.label){case 0:if(!(n=t.querySelectorAll("image")).length)return[3,2];for(o=[],a=n.length,s=0;s<a;s++)l=n[s],(c=l.getAttributeNS(e.XLINK,"href"))&&(-1!==c.indexOf("data:image")||(-1!==c.indexOf(".svg")?o.push(this.svgToDataURI(l,i)):o.push(this.imageToDataURI(l,i))));return[4,Promise.all(o)];case 1:return r.sent(),[2];case 2:return[2]}}))}))},e.prototype.prepForeignObjects=function(t,e){return r.b(this,void 0,void 0,(function(){var e,i,n;return r.d(this,(function(r){if((e=t.querySelectorAll("foreignObject")).length)for(i=e.length,n=0;n<i;n++)this.temporarilyRemoveObject(e[n]);return[2]}))}))},e.prototype.imageToDataURI=function(t,i){return r.b(this,void 0,void 0,(function(){var n,o,a;return r.d(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.loadNewImage(t.getAttributeNS(e.XLINK,"href"),null,null,"anonymous")];case 1:n=r.sent(),(o=document.createElement("canvas")).width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0);try{return a=o.toDataURL(),t.setAttribute("href",a),[2,a]}catch(e){return!1!==i.keepTainted&&this.temporarilyRemoveObject(t),[2,void 0]}return[3,3];case 2:return r.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 3:return[2]}}))}))},e.prototype.svgToDataURI=function(t,i){return r.b(this,void 0,void 0,(function(){var n,o,a,s;return r.d(this,(function(r){switch(r.label){case 0:n=t.getAttributeNS(e.XLINK,"href"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,_.a(n)];case 2:return o=r.sent(),a=this.adapter.apply("charset",{charset:"base64",type:"svg",options:i}).charset,s=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+a+","+btoa(o.response),options:i}).data,t.setAttributeNS(e.XLINK,"href",s),[2,s];case 3:return r.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 4:return[2]}}))}))},e.prototype.temporarilyRemoveObject=function(t,e){var i=t.parentElement||t.parentNode;e||(e=this.sprite.paper.add("g").node),i.insertBefore(e,t),t.textContent,i.removeChild(t),this._removedObjects.push({element:t,placeholder:e})},e.prototype.restoreRemovedObjects=function(){for(var t;t=this._removedObjects.pop();)(t.placeholder.parentElement||t.placeholder.parentNode).insertBefore(t.element,t.placeholder)},e.prototype.simplifiedImageExport=function(){return r.b(this,void 0,void 0,(function(){var t,e,i,n,o,a,s;return r.d(this,(function(r){switch(r.label){case 0:if(!1===this.useSimplifiedExport)return[2,!1];if(!1===(t=y.c.getCache("simplifiedImageExport"))||!0===t)return[2,t];r.label=1;case 1:r.trys.push([1,6,,7]),(e=document.createElement("canvas")).width=1,e.height=1,i=e.getContext("2d"),n=this.getDOMURL(),o=new Blob([this.normalizeSVG("<g></g>",{},1,1)],{type:"image/svg+xml"}),a=n.createObjectURL(o),s=void 0,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.loadNewImage(a,1,1)];case 3:return s=r.sent(),[3,5];case 4:return r.sent(),[2,!1];case 5:i.drawImage(s,0,0),n.revokeObjectURL(a);try{return y.c.setCache("simplifiedImageExport",!0),[2,!0]}catch(t){return y.c.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return r.sent(),y.c.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}}))}))},e.prototype.loadNewImage=function(t,e,i,n){return new Promise((function(r,o){var a;function s(){if(n){var e=a.src;a.onerror=function(){o(new Error('Loading image "'+t+'" failed'))},a.removeAttribute("crossorigin"),a.src="",a.src=e}else o(new Error('Loading image "'+t+'" failed'))}a=e&&i?new Image(e,i):new Image,n&&a.setAttribute("crossOrigin",n),a.onload=function(){r(a)},a.onabort=s,a.onerror=s,a.src=t}))},e.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},e.prototype.getSVG=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l,c,h;return r.d(this,(function(r){switch(r.label){case 0:return(i=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),[4,this.awaitValidSprites()];case 1:return r.sent(),n=this.sprite.pixelWidth,o=this.sprite.pixelHeight,a=b.l(this.sprite.dom),s=b.m(this.sprite.dom),l=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,n,o,a,s),c=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:e}).charset,h=this.adapter.apply("getSVG",{data:"data:"+this.getContentType(t)+";"+c+","+encodeURIComponent(l),options:e}).data,i||this.restoreNonExportableSprites(),[2,h]}}))}))},e.prototype.normalizeSVG=function(t,e,i,n,r,o,a){var s="";i&&(s+='width="'+i+'px" '),n&&(s+='height="'+n+'px" ');var l="";r&&(l+="font-family: "+r.replace(/"/g,"")+";"),o&&(l+="font-size: "+o+";"),t.match(/<svg/)?""!==s&&(t=(t=(t=t.replace(/(<svg[^>]*)width="[^"]*"/,"$1")).replace(/(<svg[^>]*)height="[^"]*"/,"$1")).replace(/(<svg)/,"$1"+s)):t='<?xml version="1.0" encoding="utf-8"?><svg '+s+' style="'+l+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+t+"</svg>",a&&(t=t.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+a.rgba+'"/>')),x.a()&&(t=t.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var c=new RegExp("url\\("+P.escapeForRgex(P.getBaseURI()),"g");return t=t.replace(c,"url(#"),this.adapter.apply("normalizeSVG",{data:t,options:e}).data},e.prototype.serializeElement=function(t){return(new XMLSerializer).serializeToString(t)},e.prototype.getPDF=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l,c,h;return r.d(this,(function(r){switch(r.label){case 0:return[4,this.getImage(e.imageFormat||"png",e)];case 1:return i=r.sent(),[4,this.pdfmake];case 2:return n=r.sent(),o=[30,30,30,30],a={pageSize:e.pageSize||"A4",pageOrientation:e.pageOrientation||"portrait",pageMargins:e.pageMargins||o,content:[]},(s=this.adapter.apply("title",{title:this.title,options:e}).title)&&a.content.push({text:s,fontSize:e.fontSize,bold:!0,margin:[0,0,0,15]}),e.addURL&&a.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:e.fontSize,margin:[0,0,0,15]}),"pdfdata"!=t&&a.content.push({image:i,fit:this.getPageSizeFit(a.pageSize,a.pageMargins)}),"pdfdata"==t||e.addData?(c=(l=a.content).push,h={},[4,this.getPDFData("pdf",e)]):[3,4];case 3:c.apply(l,[(h.table=r.sent(),h)]),r.label=4;case 4:return a=this.adapter.apply("pdfmakeDocument",{doc:a,options:e}).doc,[4,new Promise((function(t,e){n.createPdf(a).getDataUrl((function(e){t(e)}))}))];case 5:return[2,r.sent()]}}))}))},e.prototype.getPDFData=function(t,e){return r.b(this,void 0,void 0,(function(){var t,i,n,o,a,s=this;return r.d(this,(function(r){if(t={body:[]},i=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"pdf"}).dataFields,n=this.data,e.pivot)w.each(i,(function(i,r){var o=[];e.addColumnNames&&o.push(r);for(var a=n.length,l=0;l<a;l++){var c=n[l][i];o.push(s.convertToSpecialFormat(i,c,e,!0))}t.body.push(s.getPDFDataRow(o,e,void 0,!0))}));else for(e.addColumnNames&&(t.body.push(this.getPDFDataRow(i,e,void 0,!0)),t.headerRows=1),o=n.length,a=0;a<o;a++)t.body.push(this.getPDFDataRow(n[a],e,i));return[2,this.adapter.apply("pdfmakeTable",{table:t,options:e}).table]}))}))},e.prototype.getPDFDataRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var o=[];return i||(i=t),w.each(i,(function(i,a){var s=r.convertEmptyValue(i,t[i],e),l=n?s:r.convertToSpecialFormat(i,s,e);l=""+l,o.push(l)})),o},e.prototype.getPageSizeFit=function(t,e){var i=[0,0,0,0];"number"==typeof e?i=[e,e,e,e]:2==e.length?i=[e[0],e[1],e[0],e[1]]:4==e.length&&(i=e);var n={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}[t];return n[0]-=i[0]+i[2],n[1]-=i[1]+i[3],n},e.prototype.getExcel=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l,c,h,u=this;return r.d(this,(function(r){switch(r.label){case 0:return[4,this.xlsx];case 1:if(i=r.sent(),n=this.adapter.apply("xlsxWorkbookOptions",{options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,o=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{name:this.title||this.language.translate("Data")}).name),a={SheetNames:[o],Sheets:{}},s=[],l=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,e.pivot)w.each(l,(function(t,i){var n=[];e.addColumnNames&&n.push(i);for(var r=u.data.length,o=0;o<r;o++){var a=u.data[o][t];n.push(u.convertToSpecialFormat(t,a,e,!0))}s.push(u.getExcelRow(n,e,void 0,!0))}));else for(e.addColumnNames&&s.push(this.getExcelRow(l,e,void 0,!0)),c=this.data.length,h=0;h<c;h++)s.push(this.getExcelRow(this.data[h],e,l));return a.Sheets[o]=i.utils.aoa_to_sheet(s),[2,this.adapter.apply("getExcel",{data:"data:"+this.getContentType(t)+";base64,"+i.write(a,n),options:e}).data]}}))}))},e.prototype.normalizeExcelSheetName=function(t){return t=t.replace(/([:\\\/?*\[\]]+)/g," "),P.truncateWithEllipsis(t,31,"...",!0)},e.prototype.getExcelRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var o=[];return i||(i=t),w.each(i,(function(i,a){var s=r.convertEmptyValue(i,t[i],e),l=n?s:r.convertToSpecialFormat(i,s,e,!0);o.push(l)})),o},e.prototype.getCSV=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l,c,h,u=this;return r.d(this,(function(r){if(i="",n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,o="",a=this.data,e.pivot)w.each(n,(function(t,n){var r=[];e.addColumnNames&&r.push(n);for(var s=a.length,l=0;l<s;l++){var c=a[l][t];r.push(u.convertToSpecialFormat(t,c,e,!0))}i+=o+u.getCSVRow(r,e,void 0,!0),o="\n"}));else{for(s=a.length,l=0;l<s;l++)c=this.getCSVRow(a[l],e,n),e.reverse?i=c+o+i:i+=o+c,o="\n";e.addColumnNames&&(i=this.getCSVRow(n,e,void 0,!0)+o+i)}return h=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getCSV",{data:"data:"+this.getContentType(t)+";"+h+","+encodeURIComponent(i),options:e}).data]}))}))},e.prototype.getCSVRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var o=e.separator||",",a=[];return i||(i=t),w.each(i,(function(i,s){var l=r.convertEmptyValue(i,t[i],e),c=n?l:r.convertToSpecialFormat(i,l,e);c=(c=""+c).replace(/"/g,'""'),(e.forceQuotes||c.search(new RegExp('"|\n|'+o,"g"))>=0)&&(c='"'+c+'"'),a.push(c)})),a.join(o)},e.prototype.getHTML=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l,c=this;return r.d(this,(function(r){if(i="<table>",e.tableClass&&(i='<table class="'+e.tableClass+'">'),n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,o=this.data,e.pivot)w.each(n,(function(t,n){var r=[];e.addColumnNames&&r.push(n);for(var a=o.length,s=0;s<a;s++){var l=o[s][t];r.push(c.convertToSpecialFormat(t,l,e,!0))}i+="\n"+c.getHTMLRow(r,e,void 0,!0)}));else for(e.addColumnNames&&(i+="\n"+this.getHTMLRow(n,e,void 0,!0,!0)),a=o.length,s=0;s<a;s++)i+="\n"+this.getHTMLRow(o[s],e,n);return i+="</table>",l=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getHTML",{data:"data:"+this.getContentType(t)+";"+l+","+encodeURIComponent(i),options:e}).data]}))}))},e.prototype.getHTMLRow=function(t,e,i,n,r){var o=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var a="\t<tr>";e.rowClass&&(a='\t<tr class="'+e.rowClass+'">'),i||(i=t);var s=r?"th":"td",l=!0;return w.each(i,(function(i,r){var c=o.convertEmptyValue(i,t[i],e),h=n?c:o.convertToSpecialFormat(i,c,e);h=(h=""+h).replace(/[\u00A0-\u9999<>\&]/gim,(function(t){return"&#"+t.charCodeAt(0)+";"}));var u=s;e.pivot&&l&&(u="th"),e.cellClass?a+="\n\t\t<"+u+' class="'+e.cellClass+'">'+h+"</"+u+">":a+="\n\t\t<"+u+">"+h+"</"+u+">",l=!1})),a+="\n\t</tr>"},e.prototype.getJSON=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l,c,h,u=this;return r.d(this,(function(r){if(n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,this._dynamicDataFields)i=this.data;else for(i=[],o=this.data,a=function(t,r){var a=o[r];if("object"==typeof a){var s={};w.each(a,(function(t,i){S.hasValue(n[t])&&(s[n[t]]=u.convertToSpecialFormat(t,i,e))})),i.push(s)}},s=o.length,l=0;l<s;l++)a(0,l);return c=JSON.stringify(i,(function(t,i){return"object"==typeof i&&w.each(i,(function(t,n){i[t]=u.convertToSpecialFormat(t,n,e)})),i}),e.indent),h=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getJSON",{data:"data:"+this.getContentType(t)+";"+h+","+encodeURIComponent(c),options:e}).data]}))}))},e.prototype.convertToSpecialFormat=function(t,e,i,n){if("number"==typeof e)if(this.isDateField(t))e=new Date(e);else{if(this.isDurationField(t))return this.durationFormatter.format(e,this.durationFormat);if(this.isNumberField(t)&&this.numberFormat)return this.numberFormatter.format(e,this.numberFormat)}return e instanceof Date?i.useTimestamps?e=e.getTime():i.useLocale?n||(e=e.toLocaleString()):e=this.dateFormatter.format(e,this.dateFormat):S.isString(e)&&this.isDateField(t)&&this.dateFormat&&(e=this.dateFormatter.format(this.dateFormatter.parse(e),this.dateFormat)),e},e.prototype.convertEmptyValue=function(t,e,i){return S.hasValue(e)?e:i.emptyAs},e.prototype.download=function(t,e){return r.b(this,void 0,void 0,(function(){var i,n,o,a,s,l,c,h,u,d,p,f,g,m,y;return r.d(this,(function(r){if(this.msBlobDownloadSupport()){if(f=t.split(";"),g=f.shift().replace(/data:/,""),t=decodeURIComponent(f.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv"].indexOf(g))return i=new Blob([t],{type:g}),window.navigator.msSaveBlob(i,e),[2,!0];try{o=atob(t),t=o}catch(t){return[2,!1]}for(l=new Array(t.length),c=0;c<t.length;++c)h=t.charCodeAt(c),l[c]=h;u=new Blob([new Uint8Array(l)],{type:g}),window.navigator.msSaveBlob(u,e)}else if(this.blobDownloadSupport()){if((n=document.createElement("a")).download=e,document.body.appendChild(n),f=t.split(";"),g=f.shift().replace(/data:/,""),t=decodeURIComponent(f.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv","text/html"].indexOf(g))return a=new Blob([t],{type:g}),s=window.URL.createObjectURL(a),n.href=s,n.download=e,n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(s)}),100),[2,!0];try{o=atob(t),t=o}catch(t){return[2,!1]}for(l=new Array(t.length),c=0;c<t.length;++c)h=t.charCodeAt(c),l[c]=h;u=new Blob([new Uint8Array(l)],{type:g}),d=window.URL.createObjectURL(u),n.href=d,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((function(){window.URL.revokeObjectURL(d)}),100)}else this.linkDownloadSupport()?((p=document.createElement("a")).download=e,p.href=t,document.body.appendChild(p),p.click(),document.body.removeChild(p)):this.legacyIE()?4===(f=t.match(/^data:(.*);[ ]*([^,]*),(.*)$/)).length&&("base64"==f[2]?f[1].match(/^image\//)&&this.showModal('<img src="'+t+'" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'</p><p style="text-align: center;"><small>'+this.language.translate("(Press ESC to close this message)")+"</small></p>",this.language.translate("Image Export Complete")):(g=void 0,e.match(/\.svg$/)?g="image/svg+xml":(g="text/plain",e+=".txt"),(m=document.createElement("iframe")).width="1px",m.height="1px",m.style.display="none",document.body.appendChild(m),(y=m.contentDocument).open(g,"replace"),y.write(decodeURIComponent(f[3])),y.close(),y.execCommand("SaveAs",!0,e),document.body.removeChild(m))):window.location.href=t;return[2,!0]}))}))},e.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},e.prototype.linkDownloadSupport=function(){var t=y.c.getCache("linkDownloadSupport");if(!1===t||!0===t)return t;var e=void 0!==document.createElement("a").download;return y.c.setCache("linkDownloadSupport",e),e},e.prototype.blobDownloadSupport=function(){return S.hasValue(window.Blob)},e.prototype.msBlobDownloadSupport=function(){return S.hasValue(window.navigator.msSaveOrOpenBlob)},e.prototype.legacyIE=function(){var t=document.createElement("div");return t.innerHTML="\x3c!--[if lt IE 10]><i></i><![endif]--\x3e",1==t.getElementsByTagName("i").length},e.prototype.print=function(t,e,i){return r.b(this,void 0,void 0,(function(){return r.d(this,(function(n){return"css"==e.printMethod?[2,this.printViaCSS(t,e,i)]:[2,this.printViaIframe(t,e,i)]}))}))},e.prototype.printViaCSS=function(t,e,i){return r.b(this,void 0,void 0,(function(){var n,o,a,s;return r.d(this,(function(r){return n=document.documentElement.scrollTop||document.body.scrollTop,o=new b.c("body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),i&&document&&document.title&&(a=document.title,document.title=i),(s=new Image).src=t,s.style.maxWidth="100%",s.style.display="block",s.style.position="relative",s.style.visibility="visible",s.style.opacity="1",s.style.clipPath="none",document.body.appendChild(s),this.setTimeout((function(){window.print()}),50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(s),o.dispose(),a&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n}),e.delay||500),[2,!0]}))}))},e.prototype.printViaIframe=function(t,e,i){return r.b(this,void 0,void 0,(function(){var n,o;return r.d(this,(function(r){return(n=document.createElement("iframe")).style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close(),(o=new Image).src=t,o.style.maxWidth="100%",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(o),n.load=function(){n.contentWindow.document.body.appendChild(o)},this.setTimeout((function(){try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch(t){n.contentWindow.print()}}),e.delay||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(n)}),e.delay+50||100),[2,!0]}))}))},e.prototype.findBackgroundColor=function(t){var e=1,i=Object(b.p)(t,"background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||"transparent"==i)&&(e=0),0==e){var n=t.parentElement;return n?this.findBackgroundColor(n):Object(m.c)("#fff")}return Object(m.c)(i,e)},Object.defineProperty(e.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(t){this._container=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(t){this._sprite=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(t){this._extraSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(t){this._validateSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(t){this._data=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(t){this._dataFields=t,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),e.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0)},Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new u.a,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(t){this._dateFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new c.b),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(t){this._dateFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new p.a,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new c.b),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(t){this._numberFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new d.a,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(t){this._durationFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(t){this._durationFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new c.b),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(t){this._durationFields=t},enumerable:!0,configurable:!0}),e.prototype.generateDataFields=function(){var t=this;this._dataFields={},this.data.length&&k.each(this.data,(function(e){w.each(e,(function(e,i){S.hasValue(t._dataFields[e])||(t._dataFields[e]=t.adapter.apply("dataFieldName",{name:e,field:e}).name)}))}))},e.prototype.isDateField=function(t){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(t),field:t}).isDateField},e.prototype.isNumberField=function(t){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(t),field:t}).isNumberField},e.prototype.isDurationField=function(t){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(t),field:t}).isDurationField},e.prototype.getContentType=function(t){var e="";switch(t){case"png":case"gif":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"svg":e="image/svg+xml";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}return this.adapter.apply("contentType",{contentType:e,type:t}).contentType},Object.defineProperty(e.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(t){this._filePrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(t){this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(t){this._title=t},enumerable:!0,configurable:!0}),e.prototype.showPreloader=function(){var t=this.preloader;t&&(t.progress=.5,t.label.text="...")},e.prototype.hidePreloader=function(){var t=this.preloader;t&&(t.progress=1)},Object.defineProperty(e.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),e.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},e.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this._language=new f.a),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modal",{get:function(){return this._modal||(this._modal=new l.a,this._modal.adapter.add("classPrefix",(function(t){return v.a.classNamePrefix+t}))),this._modal},enumerable:!0,configurable:!0}),e.prototype.showModal=function(t,e){this.hideModal(),this.hidePreloader();var i=this.modal;i.container=this.sprite.svgContainer.SVGContainer,i.content=t,i.readerTitle=e,i.open()},e.prototype.hideModal=function(){this._modal&&this.modal.close()},e.prototype._canvg=function(){return r.b(this,void 0,void 0,(function(){var t;return r.d(this,(function(e){switch(e.label){case 0:return[4,i.e("0471").then(i.bind(null,"pu93"))];case 1:return null!=(t=e.sent()).default?[2,t.default]:[2,t]}}))}))},Object.defineProperty(e.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfmake",{get:function(){return null==n&&(n=function(){return r.b(this,void 0,void 0,(function(){var t,e,n,o;return r.d(this,(function(r){switch(r.label){case 0:return[4,Promise.all([i.e("076f").then(i.bind(null,"o2M+")),i.e("076f").then(i.bind(null,"/9Au"))])];case 1:return t=r.sent(),e=t[0],n=t[1],(o=window).pdfMake=o.pdfMake||{},o.pdfMake.vfs=n.default,e.vfs=n.default,[2,e]}}))}))}()),n},enumerable:!0,configurable:!0}),e.prototype._xlsx=function(){return r.b(this,void 0,void 0,(function(){return r.d(this,(function(t){switch(t.label){case 0:return[4,i.e("bf3e").then(i.bind(null,"s5xg"))];case 1:return[2,t.sent()]}}))}))},Object.defineProperty(e.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),e.prototype.setFormatOptions=function(t,e){this._formatOptions.setKey(t,e)},e.prototype.getFormatOptions=function(t){return this._formatOptions.getKey(t)},e.prototype._disablePointers=function(){S.hasValue(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},e.prototype._releasePointers=function(){S.hasValue(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},e.prototype.hideNonExportableSprites=function(){var t=this;if(!this._objectsAlreadyHidden){var e=this.sprite.svgContainer;e&&k.each(e.nonExportableSprites,(function(e){e.isHidden||e.isHiding||t._hiddenObjects.push(e),e.hide(0)})),this._objectsAlreadyHidden=!0}},e.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(k.each(this._hiddenObjects,(function(t){t.show(0)})),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},e.prototype.awaitValidSprites=function(){return r.b(this,void 0,void 0,(function(){var t;return r.d(this,(function(e){switch(e.label){case 0:return t=[],this.validateSprites.length&&k.each(this.validateSprites,(function(e,i){e.invalid&&t.push(new Promise((function(t,i){e.events.once("validated",(function(e){t()}))})))})),t.length?[4,Promise.all(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.processConfig=function(e){y.c.registeredClasses.ExportMenu=o.a,e&&S.hasValue(e.menu)&&!S.hasValue(e.menu.type)&&(e.menu.type="ExportMenu"),t.prototype.processConfig.call(this,e)},e.XLINK="http://www.w3.org/1999/xlink",e}(g.a)},GIxq:function(t,e,i){var n=i("DVYA");t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},GQop:function(t,e,i){"use strict";var n=i("AEc5");t.exports=function(t,e){return!!t&&n((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},Gb1H:function(t,e,i){var n=i("T9LF"),r=i("G5U1"),o=i("Vng0"),a=i("wDk4"),s=i("20m4"),l=function t(e,i,l){var c,h,u,d,p=e&t.F,f=e&t.G,g=e&t.P,m=e&t.B,y=f?n:e&t.S?n[i]||(n[i]={}):(n[i]||{}).prototype,v=f?r:r[i]||(r[i]={}),b=v.prototype||(v.prototype={});for(c in f&&(l=i),l)u=((h=!p&&y&&void 0!==y[c])?y:l)[c],d=m&&h?s(u,n):g&&"function"==typeof u?s(Function.call,u):u,y&&a(y,c,u,e&t.U),v[c]!=u&&o(v,c,d),g&&b[c]!=u&&(b[c]=u)};n.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},Gg2j:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"PI",(function(){return r})),i.d(e,"HALFPI",(function(){return o})),i.d(e,"RADIANS",(function(){return a})),i.d(e,"DEGREES",(function(){return s})),e.toNumberRange=function(t,e,i){return n.hasValue(t)?c(t=n.toNumber(t),e,i):t},e.round=l,e.ceil=function(t,e){if(!n.isNumber(e)||e<=0)return Math.ceil(t);var i=Math.pow(10,e);return Math.ceil(t*i)/i},e.stretch=function(t,e,i){return t*(i-e)+e},e.fitToRange=c,e.sin=h,e.tan=function(t){return l(Math.tan(a*t),10)},e.cos=u,e.max=d,e.min=p,e.closest=function(t,e){return t.reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t}))},e.intersect=function(t,e){var i=n.getValue(t.start),r=n.getValue(e.start),o=n.getValue(t.end),a=n.getValue(e.end);return Math.max(i,r)<=Math.min(o,a)},e.invertRange=function(t){var e=n.getValue(t.start);return{start:1-n.getValue(t.end),end:1-e}},e.intersection=function(t,e){var i=n.getValue(t.start),r=n.getValue(e.start),o=n.getValue(t.end),a=n.getValue(e.end),s=Math.max(i,r),l=Math.min(o,a);return l<s?void 0:{start:s,end:l}},e.getDistance=f,e.getCubicCurveDistance=function(t,e,i,n,r){if(!t)return 0;e||(e={x:0,y:0});var o=0,a=t;if(r>0)for(var s=0;s<=r;s++){var l=y(t,e,i,n,s/r);o+=f(a,l),a=l}return o},e.getScale=function(t,e,i,n){var r=f(e,n),o=f(t,i);return Math.abs(o/r)},e.getMidPoint=function(t,e,i){return n.isNumber(i)||(i=.5),{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}},e.getRotation=g,e.getAngle=m,e.getCenterShift=function(t,e,i,n,r){var o=g(e,i,n,r)-90;o<0&&(o+=360);var a=f(e,n),s=Math.cos(o)/a+e.x,l=Math.cos(o)/a+e.y;return{x:s-t.x,y:l-t.y}},e.getBBox=function(t){if(t){var e=t.length;if(0!==e){for(var i,r=void 0,o=void 0,a=void 0,s=0;s<e;s++){var l=t[s];(!n.isNumber(o)||l.x>o)&&(o=l.x),(!n.isNumber(r)||l.x<r)&&(r=l.x),(!n.isNumber(i)||l.y<i)&&(i=l.y),(!n.isNumber(a)||l.y>a)&&(a=l.y)}return{x:r,y:i,width:o-r,height:a-i}}}return{x:0,y:0,width:0,height:0}},e.getCommonRectangle=function(t){var e=t.length;if(0!==e){for(var i=void 0,n=void 0,r=void 0,o=void 0,a=0;a<e;a++){var s=t[a];i=p(s.x,i),n=p(s.y,n),r=d(s.x+s.width,r),o=d(s.y+s.height,o)}return{x:i,y:n,width:r-i,height:o-n}}},e.getPointOnQuadraticCurve=function(t,e,i,n){return{x:(1-n)*(1-n)*t.x+2*(1-n)*n*i.x+n*n*e.x,y:(1-n)*(1-n)*t.y+2*(1-n)*n*i.y+n*n*e.y}},e.getPointOnCubicCurve=y,e.getCubicControlPointA=function(t,e,i,n,r,o){return r=v(r),o=v(o),{x:(-t.x+e.x/r+i.x)*r,y:(-t.y+e.y/o+i.y)*o}},e.getCubicControlPointB=function(t,e,i,n,r,o){return r=v(r),o=v(o),{x:(e.x+i.x/r-n.x)*r,y:(e.y+i.y/o-n.y)*o}},e.adjustTension=v,e.normalizeAngle=b,e.fitAngleToRange=function(t,e,i){if(e>i){var n=e;e=i,i=n}t=b(t);var r=(e-b(e))/360;return t<e&&(t+=360*(r+1)),t>i&&(t-360>e?t-=360:t=t<e+(i-e)/2+180?i:e),t<e&&(t=t>e+(i-e)/2-180?e:i),t},e.getArcRect=function(t,e,i){var r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,s=-Number.MAX_VALUE,l=[];n.isNumber(i)||(i=1),l.push(x(i,t)),l.push(x(i,e));for(var c=Math.min(90*Math.floor(t/90),90*Math.floor(e/90)),h=Math.max(90*Math.ceil(t/90),90*Math.ceil(e/90)),u=c;u<=h;u+=90)u>=t&&u<=e&&l.push(x(i,u));for(var d=0;d<l.length;d++){var p=l[d];p.x<r&&(r=p.x),p.y<o&&(o=p.y),p.x>a&&(a=p.x),p.y>s&&(s=p.y)}return{x:r,y:o,width:a-r,height:s-o}},e.getArcPoint=x,e.isInRectangle=function(t,e){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>e.y&&t.y<e.y+e.height},e.getLineIntersection=function(t,e,i,n){return{x:((t.x*e.y-e.x*t.y)*(i.x-n.x)-(t.x-e.x)*(i.x*n.y-i.y*n.x))/((t.x-e.x)*(i.y-n.y)-(t.y-e.y)*(i.x-n.x)),y:((t.x*e.y-e.x*t.y)*(i.y-n.y)-(t.y-e.y)*(i.x*n.y-i.y*n.x))/((t.x-e.x)*(i.y-n.y)-(t.y-e.y)*(i.x-n.x))}};var n=i("Mtpk"),r=Math.PI,o=r/2,a=r/180,s=180/r;function l(t,e,i){if(!n.isNumber(e)||e<=0){var r=Math.round(t);return i&&r-t==.5&&r--,r}var o=Math.pow(10,e);return Math.round(t*o)/o}function c(t,e,i){if(n.isNumber(e)){if(n.isNumber(i)&&i<e){var r=i;i=e,e=r}t<e&&(t=e)}return n.isNumber(i)&&t>i&&(t=i),t}function h(t){return l(Math.sin(a*t),10)}function u(t){return l(Math.cos(a*t),10)}function d(t,e){return n.isNumber(t)?n.isNumber(e)&&e>t?e:t:n.isNumber(e)?e:null}function p(t,e){return n.isNumber(t)?n.isNumber(e)&&e<t?e:t:n.isNumber(e)?e:null}function f(t,e){return t?(e||(e={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(t.x-e.x),2)+Math.pow(Math.abs(t.y-e.y),2))):0}function g(t,e,i,n){var r=m(e,n)-m(t,i);return r<0&&(r+=360),r}function m(t,e){e||(e={x:2*t.x,y:2*t.y});var i=e.x-t.x,n=e.y-t.y,r=Math.atan2(n,i)*s;return r<0&&(r+=360),b(r)}function y(t,e,i,n,r){var o={x:0,y:0},a=1-r,s=a*a,l=s*a;return o.x=t.x*l+3*i.x*s*r+3*n.x*a*r*r+e.x*r*r*r,o.y=t.y*l+3*i.y*s*r+3*n.y*a*r*r+e.y*r*r*r,o}function v(t){return 1-t+1e-5}function b(t){return 360==t?360:t%360}function x(t,e){return{x:t*u(e),y:t*h(e)}}},GqPQ:function(t,e,i){var n=i("Gb1H"),r=i("7GtY");r&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},GtDR:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("Vs7R"),o=i("aCit"),a=i("Gg2j"),s=function(t){function e(){var e=t.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var i=a.round(this.innerWidth,e),n=a.round(this.innerHeight,e);this.element.attr({width:i,height:n})},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.Rectangle=s},GuW4:function(t,e,i){var n=i("Gb1H");n(n.S+n.F,"Object",{assign:i("bdjS")})},Gxer:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("aZcm"),o=i("vJiZ"),a=i("FmWr"),s=i("4BRe"),l=i("L2Mu");n(n.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),i=a(e.length),n=l(e,0);return r(n,e,e,i,0,void 0===t?1:s(t)),n}}),i("M/YL")("flatten")},HDh7:function(t,e,i){"use strict";i.d(e,"b",(function(){return p})),i.d(e,"a",(function(){return f}));var n=i("hD5A"),r=i("UsNi"),o=i("W8Sc"),a=i("vMqJ"),s=i("v9UT"),l=i("58Sn"),c=i("hJ5i"),h=i("Mtpk"),u=i("NlGZ"),d=i.n(u),p=[],f=function(){function t(t,e){var i=this;if(this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this.htmlElement=t,!e){var r=function(){i.autoResize&&i.measure()};this.resizeSensor=new d.a(t,r),this._disposers.push(new n.b((function(){i.resizeSensor.detach(r)})))}p.push(this);var o=document.createElement("div"),a=o.style;a.width="100%",a.height="100%",a.position="relative",t.appendChild(o),this.SVGContainer=o}return t.prototype.measure=function(){var t=s.width(this.htmlElement),e=s.height(this.htmlElement),i=this.container;i&&(this.width==t&&this.height==e||(this.width=t,this.height=e,t>0&&(i.maxWidth=t),e>0&&(i.maxHeight=e),l.n(this.SVGContainer)),i.maxWidth||(i.maxWidth=0),i.maxHeight||(i.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.measure()},enumerable:!0,configurable:!0}),t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||c.remove(p,this),c.each(this._disposers,(function(t){t.dispose()}))},Object.defineProperty(t.prototype,"hideOverflow",{set:function(t){this.SVGContainer.style.overflow=t?"hidden":""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modal",{get:function(){return h.hasValue(this._modal)||(this._modal=new o.a,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),t.prototype.openModal=function(t,e){this.closeModal();var i=this.modal;return i.content=t,i.readerTitle=e,i.open(),i},t.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(t.prototype,"popups",{get:function(){if(!h.hasValue(this._popups)){var t=new r.a;t.container=this.SVGContainer,this._popups=new a.e(t),this._disposers.push(new a.c(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),t.prototype.openPopup=function(t,e){var i=this.popups.create();return i.content=t,h.hasValue(e)&&(i.title=e),i.open(),i},t.prototype.closeAllPopups=function(){this.popups.each((function(t){t.close()}))},t.prototype.checkTransform=function(t){if(window.getComputedStyle){if(t&&t.style){var e=window.getComputedStyle(t,null);if(e){var i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(i&&"none"!==i){var n=i.split("(")[1].split(")")[0].split(","),r=Number(n[0]),o=Number(n[1]),a=Math.sqrt(r*r+o*o);isNaN(a)||(this.cssScale*=a)}}}t.parentNode&&t.parentNode instanceof HTMLElement&&this.checkTransform(t.parentNode)}},t}()},HW78:function(t,e,i){t.exports=!i("gD3S")&&!i("AEc5")((function(){return 7!=Object.defineProperty(i("+wz8")("div"),"a",{get:function(){return 7}}).a}))},HyzE:function(t,e,i){var n=i("Gb1H"),r=i("aPa3");n(n.G+n.F*(parseFloat!=r),{parseFloat:r})},ID9o:function(t,e,i){var n=i("YEtG")("iterator"),r=!1;try{var o=[7][n]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:i=!0}},o[n]=function(){return a},t(o)}catch(t){}return i}},IGCA:function(t,e,i){"use strict";i("Mvcd")("blink",(function(t){return function(){return t(this,"blink","","")}}))},ISWh:function(t,e,i){"use strict";i.d(e,"a",(function(){return v}));var n=i("m4/l"),r=i("C6dT"),o=i("xIv9"),a=i("aGXA"),s=i("zhwk"),l=i("qCRI"),c=i("CnhP"),h=i("aCit"),u=i("WYhe"),d=i("MIZb"),p=i("tjMS"),f=i("Gg2j"),g=i("0FpR"),m=i("Mtpk"),y=i("v9UT"),v=function(t){function e(){var e=t.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=g.cubicOut,e.margin(10,10,10,10);var i=new d.a,n=e.background;return n.cornerRadius(10,10,10,10),n.fill=i.getFor("fill"),n.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new o.a,e.endGrip=new o.a,e.events.on("transformed",e.updateThumb,e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",(function(){e._previousStart=void 0,e.dispatchRangeChange()}),void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),"horizontal"===this.orientation?(m.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),m.hasValue(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),m.hasValue(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),m.hasValue(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(m.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),m.hasValue(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),m.hasValue(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),m.hasValue(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},e.prototype.validateLayout=function(){this.updateSize(),t.prototype.validateLayout.call(this),this.updateExtremes()},e.prototype.processBackground=function(){t.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},e.prototype.handleBgHit=function(t){this.makeBusy();var e=t.spritePoint;e=y.spritePointToSprite(e,this.background,this);var i=this.thumb;if("horizontal"==this.orientation){var n=e.x-i.pixelWidth/2;n=f.fitToRange(n,0,this.innerWidth-i.pixelWidth),this._thumbAnimation=i.animate({property:"x",to:n},this.animationDuration,this.animationEasing)}else{var r=e.y-i.pixelHeight/2;r=f.fitToRange(r,0,this.innerHeight-i.pixelHeight),this._thumbAnimation=i.animate({property:"y",to:r},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},e.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},e.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},e.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),1.1*this.animationDuration)},e.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},e.prototype.dispatchRangeChange=function(){this._previousEnd==this.end&&this._previousStart==this.start||(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},e.prototype.updateThumb=function(){if(this.parent){var t=this.thumb,e=this.start,i=this.end,n=this.startGrip,r=this.endGrip;if("horizontal"==this.orientation){var o=this.innerWidth;t.width=o*(i-e),t.maxX=o-t.pixelWidth,t.x=e*o,n.moveTo({x:t.pixelX,y:0},void 0,void 0,!0),r.moveTo({x:t.pixelX+t.pixelWidth,y:0},void 0,void 0,!0),n.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value),n.readerValueNow=""+Math.round(100*e),n.readerValueText=n.readerTitle,r.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value),r.readerValueNow=""+Math.round(100*i),r.readerValueText=r.readerTitle}else{var a=this.innerHeight;t.height=a*(i-e),t.maxY=a-t.pixelHeight,t.y=(1-i)*a,n.moveTo({x:0,y:t.pixelY+t.pixelHeight},void 0,void 0,!0),r.moveTo({x:0,y:t.pixelY},void 0,void 0,!0),n.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-e))+"%",position:1-e}).value),n.readerValueNow=""+Math.round(100*e),n.readerValueText=n.readerTitle,r.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-i))+"%",position:1-i}).value),r.readerValueNow=""+Math.round(100*i),r.readerValueText=r.readerTitle}t.readerTitle=this.language.translate("From %1 to %2",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value),t.readerValueNow=""+Math.round(100*e),t.readerValueText=t.readerTitle,this.readerValueNow=""+Math.round(100*e),this.readerValueText=t.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&this.dispatchRangeChange()}},e.prototype.updateExtremes=function(){var t=0,e=0,i=0,n=0;"horizontal"==this.orientation?(i=this.innerWidth,e=n=this.innerHeight/2):(n=this.innerHeight,t=i=this.innerWidth/2);var r=this.startGrip;r.minX=t,r.maxX=i,r.minY=e,r.maxY=n;var o=this.endGrip;o.minX=t,o.maxX=i,o.minY=e,o.maxY=n;var a=this.thumb;a.minX=t,a.maxX=i,a.minY=e,a.maxY=n},e.prototype.updateSize=function(){var t=this.orientation,e=this.startGrip;e&&(e.orientation=t),this.endGrip&&(this.endGrip.orientation=t);var i=this.thumb;i&&("horizontal"==t?(m.isNumber(this._pixelWidth)||this.width instanceof p.a||(this.width=Object(p.c)(100)),m.hasValue(this.percentHeight)&&(this.height=this.minHeight),i.height=this.innerHeight,i.verticalCenter="middle",i.horizontalCenter="left"):(m.isNumber(this._pixelHeight)||this.height instanceof p.a||(this.height=Object(p.c)(100)),m.hasValue(this.percentWidth)&&(this.width=this.minWidth),i.width=this.innerWidth,i.verticalCenter="top",i.horizontalCenter="middle"))},Object.defineProperty(e.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__start",{get:function(){return this._start},set:function(t){this._start=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__end=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__end",{get:function(){return this._end},set:function(t){this._end=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),e.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},e.prototype.fixRange=function(t){t.start==f.round(this._start,2)&&t.end==f.round(this._end,2)||(this._start=t.start,this._end=t.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},e.prototype.getPosition=function(t){return f.fitToRange(f.round(t,4),0,1)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&("horizontal"===t?(this.startGrip.cursorOverStyle=l.a.horizontalResize,this.endGrip.cursorOverStyle=l.a.horizontalResize):(this.startGrip.cursorOverStyle=l.a.verticalResize,this.endGrip.cursorOverStyle=l.a.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.updateByOrientation=function(){},Object.defineProperty(e.prototype,"startGrip",{get:function(){return this._startGrip},set:function(t){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endGrip",{get:function(){return this._endGrip},set:function(t){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),e.prototype.processGrip=function(t){t.parent=this,t.isMeasured=!1,t.focusable=!0,t.shouldClone=!1,t.zIndex=100,t.events.on("drag",this.handleGripDrag,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("down",this.makeBusy,this,!1),this._disposers.push(t)},e.prototype.handleGripDrag=function(t){this.makeBusy(),t.target===this._startGrip?this._usingGrip="start":this._usingGrip="end","horizontal"==this.orientation?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(e.prototype,"thumb",{get:function(){if(!this._thumb){var t=new a.a;t.background.cornerRadius(10,10,10,10),t.padding(0,0,0,0),this.thumb=t}return this._thumb},set:function(t){var e=this;t&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=t,t.parent=this,t.isMeasured=!1,t.inert=!0,t.draggable=!0,t.clickable=!0,t.hoverable=!0,t.focusable=!0,t.shouldClone=!1,t.zIndex=0,t.cursorOverStyle=l.a.grab,t.cursorDownStyle=l.a.grabbing,t.events.on("dragstart",this.makeBusy,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("positionchanged",this.handleThumbPosition,this,!1),t.events.on("sizechanged",this.handleThumbPosition,this,!1),t.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(Object(s.b)().body.events.on("keyup",(function(t){u.b.isKey(t.event,["space","enter"])&&e.thumb.isFocused&&(t.event.preventDefault(),e.handleDoubleClick())}))),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),e.prototype.handleDoubleClick=function(){this.makeBusy();var t=0,e=1;0!=this.start||1!=this.end?(this._prevStart=this.start,this._prevEnd=this.end):(t=this._prevStart,e=this._prevEnd);var i=this.animate([{property:"__start",to:t},{property:"__end",to:e}],this.animationDuration,this.animationEasing);i&&!i.isFinished()?(i.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=i):this.makeUnbusy()},e.prototype.handleThumbPosition=function(){var t=this.thumb;if("horizontal"==this.orientation){var e=this.innerWidth,i=t.innerWidth,n=t.pixelX;this._start=n/e,this._end=(n+i)/e,this.updateThumb()}else{var r=this.innerHeight,o=t.innerHeight,a=t.pixelY;this._start=1-(a+o)/r,this._end=1-a/r,this.updateThumb()}},e.prototype.createBackground=function(){return new c.a},Object.defineProperty(e.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(t){var e=this;this._hideGrips=t,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),t?(this._overDisposer=this.events.on("over",(function(){e.startGrip.show(),e.endGrip.show()}),void 0,!1),this._outDisposer=this.events.on("out",(function(){e.startGrip.hide(),e.endGrip.hide()}),void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(r.a);h.c.registeredClasses.Scrollbar=v},ITVZ:function(t,e,i){var n=i("Gb1H"),r=Math.PI/180;n(n.S,"Math",{radians:function(t){return t*r}})},IYrR:function(t,e,i){var n=i("YEtG")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},IbTV:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("m4/l"),r=i("TDx+"),o=i("aCit"),a=i("Gg2j"),s=i("Mtpk"),l=i("hGwe"),c=i("v9UT"),h=i("tjMS"),u=function(t){function e(){var e=t.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(t){if(this.setPropertyValue("relativeRotation",t,!0),!s.hasValue(t)){this.rotation=void 0;var e=this.dataItem;e&&e.component&&e.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(t){this.setPropertyValue("bent",t,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),t&&(this.textAlign="middle")},enumerable:!0,configurable:!0}),e.prototype.pixelRadius=function(t){var e=1;return this.inside&&(e=-1),c.relativeToValue(this.radius,t)*e},e.prototype.pixelRadiusY=function(t,e){var i=1;this.inside&&(i=-1);var n=this.radius;return s.isNumber(n)?(n*=e/t,c.relativeToValue(n,t)*i):c.relativeToValue(n,e)*i},e.prototype.fixPosition=function(t,e,i,n,r){s.isNumber(i)||(i=e),s.isNumber(n)||(n=0),s.isNumber(r)||(r=0);var o={x:e*a.cos(t),y:i*a.sin(t)};this.invalid&&this.validate();var c=!1,u=this.radius;(u instanceof h.a&&u.value<0||u<0)&&(c=!0);var d=this.relativeRotation,p=this.pixelRadius(e);if(this.bent){var f={x:e*a.cos(t+180),y:i*a.sin(t+180)};return this.path=l.moveTo(f)+l.arcTo(t+180,360,e+p,i+p*i/e),void(this.locationOnPath=.5)}if(s.isNumber(d)){this.horizontalCenter="none",this.verticalCenter="none",t=a.fitAngleToRange(t,-180,180);var g=this.bbox.width,m=this.bbox.height,y=this.pixelPaddingBottom,v=this.pixelPaddingTop,b=this.pixelPaddingLeft,x=this.pixelPaddingRight;t>90||t<-90?-90==d&&(d=90,g=0):(-90==d&&(m=-m),90==d&&(d=-90,g=-b-x,m=-m-v-y)),this.rotation=d+t+90;var w=a.sin(d)/2,_=a.cos(d)/2,S=this.rotation;this.dx=m*w*a.sin(S)-g*_*a.cos(S),this.dy=-m*w*a.cos(S)-g*_*a.sin(S),this.inside?t>90||t<-90?p-=(y+v)*a.cos(d)+(b+x)*a.sin(d):p+=(y+this.bbox.height+v)*a.cos(d)+(b+x+this.bbox.width)*a.sin(d):p+=(m+y+v)*a.cos(d)+(g+b+x)*a.sin(d),o.x+=a.cos(t)*p,o.y+=a.sin(t)*p*i/e}else this.horizontalCenter="middle",this.verticalCenter="middle",c?(this.dx=0,this.dy=0,o.x=(e+p)*a.cos(t),o.y=(i+p*i/e)*a.sin(t)):(this.dy=this._measuredHeight/2*a.sin(t),this.dx=this._measuredWidth/2*a.cos(t),o.x+=a.cos(t)*p,o.y+=a.sin(t)*p*i/e);o.x+=n,o.y+=r,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(o)},e}(r.a);o.c.registeredClasses.AxisLabelCircular=u},IcXr:function(t,e,i){var n=i("Gb1H"),r=i("DbOM"),o=i("snR7"),a=(i("T9LF").Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!i("AEc5")((function(){a((function(){}))})),"Reflect",{apply:function(t,e,i){var n=r(t),l=o(i);return a?a(n,e,l):s.call(n,e,l)}})},"Ijb/":function(t,e,i){var n=i("Gb1H"),r=i("0C8c");n(n.S+n.F*(r!=Math.expm1),"Math",{expm1:r})},Inf5:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("C6dT"),o=i("Vs7R"),a=i("aCit"),s=i("Gg2j"),l=i("hGwe"),c=i("Mtpk"),h=i("v9UT"),u=i("tjMS"),d=i("CuFa"),p=function(t){function e(){var e=t.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(o.a),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&0==e&&(e=.01),this.slice.path=l.arc(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof d.a&&this.updateGradient(this.realFill),this.realStroke instanceof d.a&&this.updateGradient(this.realStroke)},e.prototype.updateGradient=function(t){t.element.attr({gradientUnits:"userSpaceOnUse"}),t.element.attr({r:this.radius}),t.cx=0,t.cy=0,t.element.attr({radius:this.radius})},Object.defineProperty(e.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;if(this.isMeasured){var t=s.getArcRect(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),e=s.getArcRect(this.startAngle,this.startAngle+this.arc,this.radius);return s.getCommonRectangle([t,e])}return{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",s.normalizeAngle(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){c.isNumber(t)||(t=0),this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){var t=this.getPropertyValue("radius");return c.isNumber(t)||(t=0),t},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return c.isNumber(t)||(t=this.radius),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return h.relativeToValue(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(t){this.setPropertyValue("innerCornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(t){this.setPropertyValue("shiftRadius",t),this.dx=t*this.radius*this.ix,this.dy=t*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ix",{get:function(){return s.cos(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iy",{get:function(){return this.radius,s.sin(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");if(c.isNumber(t))return t;var e=.5;t instanceof u.a&&(e=t.value);var i=h.relativeToValue(this.innerRadius,this.radius);return this.ix*(i+(this.radius-i)*e)},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");if(c.isNumber(t))return t;var e=.5;t instanceof u.a&&(e=t.value);var i=h.relativeToValue(this.innerRadius,this.radius);return this.iy*(i+(this.radius-i)*e)+this.slice.dy},e}(r.a);a.c.registeredClasses.Slice=p},Iz1H:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){function t(){this._disposed=!1,this._disposers=[]}return t.prototype.init=function(){},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;)t.shift().dispose()}},t}()},JNIx:function(t,e,i){"use strict";e.a={_decimalSeparator:".",_thousandSeparator:",",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){var e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""}},JqbS:function(t,e,i){var n=i("snR7"),r=i("DvJ+"),o=i("6w17");t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t);return(0,i.resolve)(e),i.promise}},K0ev:function(t,e,i){var n=i("U3hN"),r=i("vJiZ"),o=i("VYrJ")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},K2Eo:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("oGmz")(!0);n(n.P,"String",{at:function(t){return r(this,t)}})},KfrQ:function(t,e,i){var n=i("Gb1H"),r=i("0C8c"),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=r(t=+t),i=r(-t);return e==1/0?1:i==1/0?-1:(e-i)/(o(t)+o(-t))}})},Kg3M:function(t,e,i){"use strict";var n=i("oGmz")(!0);i("Uobz")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})}))},KknQ:function(t,e,i){"use strict";i.d(e,"b",(function(){return y})),i.d(e,"a",(function(){return v}));var n=i("m4/l"),r=i("pR7v"),o=i("vMqJ"),a=i("+qIf"),s=i("9ZsQ"),l=i("aCit"),c=i("L91H"),h=i("Mtpk"),u=i("Wglt"),d=i("Gg2j"),p=i("hJ5i"),f=i("Qkdp"),g=i("v9UT"),m=i("VGgz"),y=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return n.c(e,t),Object.defineProperty(e.prototype,"date",{get:function(){return this.dates.date},set:function(t){this.setDate("date",t),this.value=t.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(t){this.setDate("endDate",t),this.endValue=t.getTime()},enumerable:!0,configurable:!0}),e}(r.b),v=function(t){function e(){var e=t.call(this)||this;return e._gapBreaks=!1,e.gridIntervals=new o.b,e.groupIntervals=new o.b,e.dateFormats=new a.a,e.periodChangeDateFormats=new a.a,e._baseIntervalReal={timeUnit:"day",count:1},e._minDifference={},e._firstWeekDay=1,e.groupMin={},e.groupMax={},e.className="DateAxis",e.setPropertyValue("markUnitChange",!0),e.snapTooltip=!0,e.tooltipPosition="pointer",e.setPropertyValue("groupData",!1),e.groupCount=200,e.events.on("parentset",e.getDFFormatter,e,!1),e.gridIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}]),e.groupIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}]),e.axisFieldName="date",e.applyTheme(),e}return n.c(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component,n=i._gridInterval,r=c.getDuration(n.timeUnit,n.count);Math.round((e-i.min)/r)/2==Math.round(Math.round((e-i.min)/r)/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),this.dateFormats.hasKey("millisecond")||this.dateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.dateFormats.hasKey("second")||this.dateFormats.setKey("second",this.language.translate("_date_second")),this.dateFormats.hasKey("minute")||this.dateFormats.setKey("minute",this.language.translate("_date_minute")),this.dateFormats.hasKey("hour")||this.dateFormats.setKey("hour",this.language.translate("_date_hour")),this.dateFormats.hasKey("day")||this.dateFormats.setKey("day",this.language.translate("_date_day")),this.dateFormats.hasKey("week")||this.dateFormats.setKey("week",this.language.translate("_date_day")),this.dateFormats.hasKey("month")||this.dateFormats.setKey("month",this.language.translate("_date_month")),this.dateFormats.hasKey("year")||this.dateFormats.setKey("year",this.language.translate("_date_year")),this.periodChangeDateFormats.hasKey("millisecond")||this.periodChangeDateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.periodChangeDateFormats.hasKey("second")||this.periodChangeDateFormats.setKey("second",this.language.translate("_date_second")),this.periodChangeDateFormats.hasKey("minute")||this.periodChangeDateFormats.setKey("minute",this.language.translate("_date_minute")),this.periodChangeDateFormats.hasKey("hour")||this.periodChangeDateFormats.setKey("hour",this.language.translate("_date_hour")),this.periodChangeDateFormats.hasKey("day")||this.periodChangeDateFormats.setKey("day",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("week")||this.periodChangeDateFormats.setKey("week",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("month")||this.periodChangeDateFormats.setKey("month",this.language.translate("_date_month")+" "+this.language.translate("_date_year"))},e.prototype.createDataItem=function(){return new y},e.prototype.createAxisBreak=function(){return new s.a},e.prototype.validateDataItems=function(){var e=this.start,i=this.end,n=this.baseDuration,r=(this.max-this.min)/n;this._firstWeekDay=this.getFirstWeekDay(),this.getDFFormatter(),t.prototype.validateDataItems.call(this);var o=c.getDuration(this.mainBaseInterval.timeUnit,this.mainBaseInterval.count);this.maxZoomFactor=(this.max-this.min)/o,this._deltaMinMax=this.baseDuration/2,e+=(i-e)*(1-r/((this.max-this.min)/n)),this.zoom({start:e,end:i},!1,!0)},e.prototype.handleSelectionExtremesChange=function(){},e.prototype.calculateZoom=function(){var e=this;t.prototype.calculateZoom.call(this);var i=this.adjustDifference(this._minZoomed,this._maxZoomed),r=!1;if(this.groupData&&h.hasValue(i)){var o=this.mainBaseInterval,a=this.chooseInterval(0,i,this.groupCount,this.groupIntervals);c.getDuration(a.timeUnit,a.count)<c.getDuration(o.timeUnit,o.count)&&(a=n.a({},o)),this._groupInterval=a,this._currentDataSetId=a.timeUnit+a.count,this.series.each((function(t){t.baseAxis==e&&t.setDataSet(e._currentDataSetId)&&(r=!0)}))}var s=this.chooseInterval(0,i,this._gridCount);c.getDuration(s.timeUnit,s.count)<this.baseDuration&&(s=n.a({},this.baseInterval)),this._gridInterval=s,this._nextGridUnit=c.getNextUnit(s.timeUnit),this._intervalDuration=c.getDuration(s.timeUnit,s.count),this._gridDate=c.round(new Date(this.minZoomed-c.getDuration(s.timeUnit,s.count)),s.timeUnit,s.count,this._firstWeekDay,this._df.utc,new Date(this.min)),u.each(this.series.iterator(),(function(t){if(t.baseAxis==e){var i=t.getAxisField(e),n=c.round(new Date(e._minZoomed),e.baseInterval.timeUnit,e.baseInterval.count).getTime(),o=n.toString(),a=t.dataItemsByAxis.getKey(e.uid).getKey(o+t.currentDataSetId),s=0;0!=e.start&&(s=a?(a=e.findFirst(a,n,i)).index:t.dataItems.findClosestIndex(e._minZoomed,(function(t){return t[i]}),"left"));var l=e.baseInterval,h=c.add(c.round(new Date(e._maxZoomed),l.timeUnit,l.count,e._firstWeekDay,e._df.utc),l.timeUnit,l.count,e._df.utc).getTime(),u=h.toString(),d=t.dataItemsByAxis.getKey(e.uid).getKey(u+t.currentDataSetId),p=t.dataItems.length;1!=e.end&&(d?p=d.index:(h-=1,(p=t.dataItems.findClosestIndex(h,(function(t){return t[i]}),"right"))<t.dataItems.length&&p++)),t.startIndex=s,t.endIndex=p,!r&&t.dataRangeInvalid&&t.validateDataRange()}}))},e.prototype.findFirst=function(t,e,i){var n=t.index;if(n>0){var r=t.component.dataItems.getIndex(n-1),o=r[i];return!o||o.getTime()<e?t:this.findFirst(r,e,i)}return t},e.prototype.validateData=function(){t.prototype.validateData.call(this),h.isNumber(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(e.prototype,"minDifference",{get:function(){var t=this,e=Number.MAX_VALUE;return this.series.each((function(i){e>t._minDifference[i.uid]&&(e=t._minDifference[i.uid])})),e!=Number.MAX_VALUE&&0!=e||(e=c.getDuration("day")),e},enumerable:!0,configurable:!0}),e.prototype.seriesDataChangeUpdate=function(t){this._minDifference[t.uid]=Number.MAX_VALUE},e.prototype.postProcessSeriesDataItems=function(){var t=this;this.series.each((function(e){JSON.stringify(e._baseInterval[t.uid])!=JSON.stringify(t.mainBaseInterval)&&(e.mainDataSet.each((function(e){t.postProcessSeriesDataItem(e)})),e._baseInterval[t.uid]=t.mainBaseInterval,t.groupData&&t.groupSeriesData(e))})),this.addEmptyUnitsBreaks()},e.prototype.groupSeriesData=function(t){var e=this;if(t.baseAxis==this&&t.dataItems.length>0&&!t.dataGrouped){var i=[],n=this.mainBaseInterval,r=c.getDuration(n.timeUnit,n.count);this.groupIntervals.each((function(t){var n=c.getDuration(t.timeUnit,t.count);n>r&&n<e.max-e.min&&i.push(t)})),t._dataSets&&(t._dataSets.each((function(t,e){e.each((function(t){t.dispose()})),e.clear()})),t._dataSets.clear()),p.each(i,(function(i){var n="date"+e.axisLetter,r=i.timeUnit+i.count,o=new m.b(t.mainDataSet.template.clone());t.dataSets.setKey(r,o),t.dataGrouped=!0;var a,s=t.mainDataSet,l=Number.NEGATIVE_INFINITY,u=0,d=[];f.each(t.dataFields,(function(t,e){var i=t;i!=n&&-1==i.indexOf("Show")&&d.push(i)})),s.each((function(r){var s=r.getDate(n);if(s){var m=s.getTime(),y=c.round(new Date(m),i.timeUnit,i.count,e._df.firstDayOfWeek,e._df.utc),v=y.getTime();l<v?((a=o.create()).dataContext={},a.component=t,a.setDate(n,y),a._index=u,u++,p.each(d,(function(t){var e=r.values[t];if(e){var i=e.value,n=a.values[t];h.isNumber(i)?(n.value=i,n.workingValue=i,n.open=i,n.close=i,n.low=i,n.high=i,n.sum=i,n.average=i,n.count=1):n.count=0}})),e.postProcessSeriesDataItem(a,i),f.each(t.propertyFields,(function(t,e){var i=t,n=r.properties[t];h.hasValue(n)&&(a.hasProperties=!0,a.setProperty(i,n))})),a.groupDataItems=[r],l=v):a&&(p.each(d,(function(e){var i=t.groupFields[e],n=r.values[e];if(n){var o=n.value;if(h.isNumber(o)){var s=a.values[e];h.isNumber(s.open)||(s.open=o),s.close=o,(s.low>o||!h.isNumber(s.low))&&(s.low=o),(s.high<o||!h.isNumber(s.high))&&(s.high=o),h.isNumber(s.sum)?s.sum+=o:s.sum=o,s.count++,s.average=s.sum/s.count,h.isNumber(s[i])&&(s.value=s[i],s.workingValue=s.value)}}})),g.copyProperties(r.properties,a.properties),f.each(t.propertyFields,(function(t,e){var i=t,n=r.properties[t];h.hasValue(n)&&(a.hasProperties=!0,a.setProperty(i,n))})),a.groupDataItems.push(r))}a&&g.copyProperties(r.dataContext,a.dataContext)}))})),this.calculateZoom()}},e.prototype.getDFFormatter=function(){this._df=this.dateFormatter},e.prototype.postProcessSeriesDataItem=function(t,e){var i=this,n="";e?n=e.timeUnit+e.count:e=this.mainBaseInterval;var r=t.component.dataItemsByAxis.getKey(this.uid);f.each(t.dates,(function(o){var a=t.getDate(o).getTime(),s=c.round(new Date(a),e.timeUnit,e.count,i._firstWeekDay,i._df.utc).getTime(),l=c.add(new Date(s),e.timeUnit,e.count,i._df.utc);t.setCalculatedValue(o,s,"open"),t.setCalculatedValue(o,l.getTime(),"close"),r.setKey(s+n,t)}))},e.prototype.addEmptyUnitsBreaks=function(){var t=this;if(this.skipEmptyPeriods&&h.isNumber(this.min)&&h.isNumber(this.max)){var e=this.baseInterval.timeUnit,i=this.baseInterval.count;this._axisBreaks&&this._axisBreaks.clear();for(var n=c.round(new Date(this.min),e,i,this._firstWeekDay,this._df.utc),r=void 0,o=function(){c.add(n,e,i,a._df.utc);var o=n.getTime(),s=o.toString();u.contains(a.series.iterator(),(function(e){return!!e.dataItemsByAxis.getKey(t.uid).getKey(s+e.currentDataSetId)}))?r&&(r.endDate=new Date(o-1),r=void 0):r||((r=a.axisBreaks.create()).startDate=new Date(o),a._gapBreaks=!0)},a=this;n.getTime()<this.max-this.baseDuration;)o()}},e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each((function(t){var i=Math.ceil(e._gridCount*(Math.min(e.end,t.endPosition)-Math.max(e.start,t.startPosition))/(e.end-e.start));t.gridInterval=e.chooseInterval(0,t.adjustedEndValue-t.adjustedStartValue,i);var n=c.round(new Date(t.adjustedStartValue),t.gridInterval.timeUnit,t.gridInterval.count,e._firstWeekDay,e._df.utc);n.getTime()>t.startDate.getTime()&&c.add(n,t.gridInterval.timeUnit,t.gridInterval.count,e._df.utc),t.gridDate=n}))},e.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},e.prototype.getGridDate=function(t,e){var i=this._gridInterval.timeUnit,n=this._gridInterval.count;c.round(t,i,1,this._firstWeekDay,this._df.utc);var r=t.getTime(),o=c.copy(t),a=c.add(o,i,e,this._df.utc).getTime(),s=this.isInBreak(a);s&&s.endDate&&(o=new Date(s.endDate.getTime()),c.round(o,i,n,this._firstWeekDay,this._df.utc),o.getTime()<s.endDate.getTime()&&c.add(o,i,n,this._df.utc),a=o.getTime());var l=this.adjustDifference(r,a);return Math.round(l/c.getDuration(i))<n?this.getGridDate(t,e+n):o},e.prototype.getBreaklessDate=function(t,e,i){var n=new Date(t.endValue);c.round(n,e,i,this._firstWeekDay,this._df.utc),c.add(n,e,i,this._df.utc);var r=n.getTime();return(t=this.isInBreak(r))?this.getBreaklessDate(t,e,i):n},e.prototype.validateAxisElements=function(){var t=this;if(h.isNumber(this.max)&&h.isNumber(this.min)){this.calculateZoom();var e=this._gridDate.getTime(),i=this._gridInterval.timeUnit,n=this._gridInterval.count,r=c.copy(this._gridDate),o=this._dataItemsIterator;this.resetIterators();for(var a=function(){var t=s.getGridDate(c.copy(r),n);e=t.getTime();var a=c.copy(t);a=c.add(a,i,n,s._df.utc);var l=s.dateFormats.getKey(i);s.markUnitChange&&r&&c.checkChange(t,r,s._nextGridUnit,s._df.utc)&&"year"!==i&&(l=s.periodChangeDateFormats.getKey(i));var h=s._df.format(t,l),u=o.find((function(t){return t.text===h}));u.__disabled&&(u.__disabled=!1),s.appendDataItem(u),u.axisBreak=void 0,u.date=t,u.endDate=a,u.text=h,s.validateDataElement(u),r=t},s=this;e<=this._maxZoomed;)a();var l=this.renderer;this._axisBreaks&&u.each(this._axisBreaks.iterator(),(function(e){if(e.breakSize>0){var i=e.gridInterval.timeUnit,n=e.gridInterval.count;if(d.getDistance(e.startPoint,e.endPoint)>4*l.minGridDistance)for(var r,a=e.gridDate.getTime(),s=0,h=function(){var l=c.copy(e.gridDate);if(a=c.add(l,i,n*s,t._df.utc).getTime(),s++,a>e.adjustedStartValue&&a<e.adjustedEndValue){var h=c.copy(l);h=c.add(h,i,n,t._df.utc);var u=t.dateFormats.getKey(i);t.markUnitChange&&r&&c.checkChange(l,r,t._nextGridUnit,t._df.utc)&&"year"!==i&&(u=t.periodChangeDateFormats.getKey(i));var d=t._df.format(l,u),p=o.find((function(t){return t.text===d}));p.__disabled&&(p.__disabled=!1),t.appendDataItem(p),p.axisBreak=e,e.dataItems.moveValue(p),p.date=l,p.endDate=h,p.text=d,r=l,t.validateDataElement(p)}};a<=e.adjustedMax;)h()}}))}},e.prototype.validateDataElement=function(t){if(t.itemIndex=this._axisItemCount,this._axisItemCount++,h.isNumber(this.max)&&h.isNumber(this.min)){var e=this.renderer,i=t.value,n=t.endValue;h.isNumber(n)||(n=i);var r=this.valueToPosition(i),o=this.valueToPosition(n),a=o;!t.isRange&&this._gridInterval.count>this.baseInterval.count&&(o=r+(o-r)/(this._gridInterval.count/this.baseInterval.count)),t.position=r;var s=t.tick;s&&!s.disabled&&e.updateTickElement(s,r,o);var l=t.grid;l&&!l.disabled&&e.updateGridElement(l,r,o);var c=t.axisFill;c&&!c.disabled&&(e.updateFillElement(c,r,a),t.isRange||this.fillRule(t));var u=t.mask;u&&e.updateFillElement(u,r,o),t.bullet&&e.updateBullet(t.bullet,r,o);var d=t.label;if(d&&!d.disabled){var p=d.location;0==p&&(p=1!=this._gridInterval.count||"week"==this._gridInterval.timeUnit||t.isRange?0:.5),e.updateLabelElement(d,r,o,p)}}},Object.defineProperty(e.prototype,"baseDuration",{get:function(){return c.getDuration(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),e.prototype.adjustMinMax=function(t,e){return{min:t,max:e,step:this.baseDuration}},e.prototype.fixMin=function(t){var e=this.baseInterval,i=c.round(new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc).getTime();return i+(c.add(new Date(i),e.timeUnit,e.count,this._df.utc).getTime()-i)*this.startLocation},e.prototype.fixMax=function(t){var e=this.baseInterval,i=c.round(new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc).getTime();return i+(c.add(new Date(i),e.timeUnit,e.count,this._df.utc).getTime()-i)*this.endLocation},e.prototype.chooseInterval=function(t,e,i,r){r||(r=this.gridIntervals);var o=r.getIndex(t),a=c.getDuration(o.timeUnit,o.count),s=r.length-1;if(t>=s)return n.a({},r.getIndex(s));var l=Math.ceil(e/a);return e<a&&t>0?n.a({},r.getIndex(t-1)):l<=i?n.a({},r.getIndex(t)):t+1<r.length?this.chooseInterval(t+1,e,i,r):n.a({},r.getIndex(t))},e.prototype.formatLabel=function(t){return this._df.format(t)},e.prototype.dateToPosition=function(t){return this.valueToPosition(t.getTime())},e.prototype.anyToPosition=function(t){return t instanceof Date?this.dateToPosition(t):this.valueToPosition(t)},e.prototype.dateToPoint=function(t){var e=this.dateToPosition(t),i=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:n}},e.prototype.anyToPoint=function(t){return t instanceof Date?this.dateToPoint(t):this.valueToPoint(t)},e.prototype.positionToDate=function(t){return new Date(this.positionToValue(t))},e.prototype.getPositionX=function(t,e,i,n,r){var o=this.getTimeByLocation(t,e,i);h.isNumber(o)||(o=this.baseValue);var a=this.valueToPosition(o);return r&&(a=d.fitToRange(a,r.start,r.end)),a},e.prototype.getPositionY=function(t,e,i,n,r){var o=this.getTimeByLocation(t,e,i),a=t.getValue("valueX","stack");h.isNumber(o)||(o=this.baseValue);var s=this.valueToPosition(o+a);return r&&(s=d.fitToRange(s,r.start,r.end)),s},e.prototype.getAngle=function(t,e,i,n,r){var o=this.getTimeByLocation(t,e,i),a=t.getValue(n,"stack");h.isNumber(o)||(o=this.baseValue);var s=this.valueToPosition(o+a);return r&&(s=d.fitToRange(s,r.start,r.end)),this.positionToAngle(s)},e.prototype.getTimeByLocation=function(t,e,i){if(h.hasValue(e)){h.isNumber(i)||(i=t.workingLocations[e],h.isNumber(i)||(i=0));var n=t.values[e].open,r=t.values[e].close,o=t.values[e].workingValue,a=t.values[e].value-o;return n-=a,r-=a,h.isNumber(n)&&h.isNumber(r)?n+(r-n)*i:void 0}},e.prototype.processSeriesDataItem=function(t,e){var i,n=t.component,r=t["date"+e];if(r){i=r.getTime();var o,a=t["openDate"+e],s=this._prevSeriesTime;if(a&&(o=a.getTime()),h.isNumber(o)){var l=Math.abs(i-o);this._minDifference[n.uid]>l&&(this._minDifference[n.uid]=l)}var c=i-s;c>0&&this._minDifference[n.uid]>c&&(this._minDifference[n.uid]=c),this._prevSeriesTime=i,n._baseInterval[this.uid]?this.postProcessSeriesDataItem(t):this._baseInterval&&(n._baseInterval[this.uid]=this._baseInterval,this.postProcessSeriesDataItem(t))}},e.prototype.updateAxisBySeries=function(){t.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=c.getDuration("day",27)&&"week"==e.timeUnit&&(e.timeUnit="month",e.count=1),"month"==e.timeUnit&&(this.minDifference>=c.getDuration("day",58)&&1==e.count&&(e.count=2),this.minDifference>=c.getDuration("day",87)&&2==e.count&&(e.count=3),this.minDifference>=c.getDuration("day",174)&&5==e.count&&(e.count=6)),this.minDifference>=c.getDuration("hour",23)&&"hour"==e.timeUnit&&(e.timeUnit="day",e.count=1),this.minDifference>=c.getDuration("week",1)-c.getDuration("hour",1)&&"day"==e.timeUnit&&(e.timeUnit="week",e.count=1),this.minDifference>=c.getDuration("year",1)-c.getDuration("day",1.01)&&"month"==e.timeUnit&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(e.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(t){JSON.stringify(this._baseInterval)!=JSON.stringify(t)&&(this._baseInterval=t,this._mainBaseInterval=t,h.isNumber(t.count)||(t.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(t){if(t){var e=this.axisBreaks.template;e.startLine.disabled=!0,e.endLine.disabled=!0,e.fillShape.disabled=!0,e.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",t)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(t){this.setPropertyValue("tooltipDateFormat",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(t){this.setPropertyValue("markUnitChange",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e,i=this.positionToDate(t);if(i=c.round(i,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min)),h.hasValue(this.tooltipDateFormat))e=this._df.format(i,this.tooltipDateFormat);else{var n=this.dateFormats.getKey(this.baseInterval.timeUnit);e=n?this._df.format(i,n):this.getPositionLabel(t)}return this._adapterO?this._adapterO.apply("getTooltipText",e):e},e.prototype.roundPosition=function(t,e,i){var n=this.baseInterval,r=n.timeUnit,o=n.count,a=this.positionToDate(t);if(c.round(a,r,o,this._firstWeekDay,this._df.utc),e>0&&c.add(a,r,e*o,this._df.utc),i>0&&i<1&&a.setTime(a.getTime()+this.baseDuration*i),this.isInBreak(a.getTime()))for(;a.getTime()<this.max&&(c.add(a,r,o,this._df.utc),this.isInBreak(a.getTime())););return this.dateToPosition(a)},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getSeriesDataItem=function(t,e,i){var n,r=this.positionToValue(e),o=c.round(new Date(r),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc),a=t.dataItemsByAxis.getKey(this.uid).getKey(o.getTime().toString());return!a&&i&&(n="Y"==this.axisLetter?"dateY":"dateX",a=t.dataItems.getIndex(t.dataItems.findClosestIndex(o.getTime(),(function(t){return t[n]?t[n].getTime():-1/0}),"any"))),a},e.prototype.getPositionLabel=function(t){var e=this.positionToDate(t);return this._df.format(e,this.getCurrentLabelFormat())},e.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this);var e=this.renderer;e&&(e.ticks.template.location=0,e.grid.template.location=0,e.labels.template.location=0,e.baseGrid.disabled=!0)},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.animateMinMax=function(t,e){var i=this,n=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing);return n.events.on("animationprogress",(function(){i.dispatch("extremeschanged")})),n},e.prototype.handleExtremesChange=function(){if(t.prototype.handleExtremesChange.call(this),this.groupData){var e=this.baseInterval.timeUnit+this.baseInterval.count;this.groupMin[e]=this.min,this.groupMax[e]=this.max}},e.prototype.zoomToDates=function(t,e,i,n,r){t=this._df.parse(t),e=this._df.parse(e),this.zoomToValues(t.getTime(),e.getTime(),i,n,r)},e.prototype.zoomToValues=function(t,e,i,r,o){var a=this;if(this.groupData){var s=this.adjustDifference(t,e),l=!1;e==this.max&&(l=!0);var u=!1;if(t==this.min&&(u=!0),h.hasValue(s)){var p=this.mainBaseInterval,f=this.chooseInterval(0,s,this.groupCount,this.groupIntervals);(f.timeUnit==p.timeUnit&&f.count<p.count||c.getDuration(f.timeUnit,1)<c.getDuration(p.timeUnit,1))&&(f=n.a({},p));var g=f.timeUnit+f.count,m=this.groupMin[g],y=this.groupMax[g];h.isNumber(m)&&h.isNumber(y)||(m=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,this.series.each((function(t){var e=t.min(a),i=t.max(a);e<m&&(m=e),i<y&&(y=i)})),this.groupMin[g]=m,this.groupMax[g]=y),t=d.fitToRange(t,m,y),e=d.fitToRange(e,m,y),o&&(l&&(t=e-s,t=d.fitToRange(t,m,y)),u&&(e=t+s,e=d.fitToRange(e,m,y))),v=(t-m)/(y-m),b=(e-m)/(y-m),this.zoom({start:v,end:b},i,r)}}else{var v=(t-this.min)/(this.max-this.min),b=(e-this.min)/(this.max-this.min);this.zoom({start:v,end:b},i,r)}},e.prototype.asIs=function(e){return"baseInterval"==e||t.prototype.asIs.call(this,e)},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each((function(t){i.groupIntervals.push(n.a({},t))})),this.gridIntervals.clear(),e.gridIntervals.each((function(t){i.gridIntervals.push(n.a({},t))})),e._baseInterval&&(this.baseInterval=e._baseInterval)},e.prototype.showTooltipAtPosition=function(e,i){var n=this;if(i||(e=this.toAxisPosition(e)),this.snapTooltip){var r,o=this.positionToDate(e).getTime();if(this.series.each((function(t){if(t.baseAxis==n){var i=n.getSeriesDataItem(t,e,!0);if(i){var a=void 0;t.xAxis==n&&(a=i.dateX),t.yAxis==n&&(a=i.dateY),r?Math.abs(r.getTime()-o)>Math.abs(a.getTime()-o)&&(r=a):r=a}}})),r){var a=r.getTime();r=c.round(new Date(a),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc),a=r.getTime();var s=this.renderer.tooltipLocation;0==s&&(s=1e-4),r=new Date(r.getTime()+this.baseDuration*s),e=this.dateToPosition(r),this.series.each((function(t){var e=t.dataItemsByAxis.getKey(n.uid).getKey(a+t.currentDataSetId),i=t.showTooltipAtDataItem(e);i?n.chart._seriesPoints.push({series:t,point:i}):(t.tooltipText||t.tooltipHTML)&&t.hideTooltip()}))}}t.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(t){this.setPropertyValue("groupData",t)&&(this.series.each((function(t){t.setDataSet("")})),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(t){this.setPropertyValue("groupCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),e.prototype.makeGap=function(t,e){var i=t.component;if(t&&e&&!i.connect&&h.isNumber(i.autoGapCount)&&i.baseAxis==this){var n=t.dates["date"+this.axisLetter],r=e.dates["date"+this.axisLetter];if(n&&r&&n.getTime()-r.getTime()>i.autoGapCount*this.baseDuration)return!0}return!1},Object.defineProperty(e.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),e}(r.a);l.c.registeredClasses.DateAxis=v,l.c.registeredClasses.DateAxisDataItem=y},Kmds:function(t,e,i){var n=i("Gb1H"),r=Math.asinh;n(n.S+n.F*!(r&&1/r(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},L2Mu:function(t,e,i){var n=i("ua0L");t.exports=function(t,e){return new(n(t))(e)}},L8kC:function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},L91H:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"timeUnitDurations",(function(){return r})),e.getNextUnit=o,e.getDuration=a,e.now=s,e.getTime=function(){return s().getTime()},e.copy=function(t){return new Date(t.getTime())},e.checkChange=function t(e,i,n,r){e=new Date(e.getTime()),i=new Date(i.getTime());var a=0,s=0;r||"millisecond"==n||(a=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-a),s=i.getTimezoneOffset(),i.setUTCMinutes(i.getUTCMinutes()-s));var l=!1;switch(n){case"year":e.getUTCFullYear()!=i.getUTCFullYear()&&(l=!0);break;case"month":(e.getUTCFullYear()!=i.getUTCFullYear()||e.getUTCMonth()!=i.getUTCMonth())&&(l=!0);break;case"day":(e.getUTCMonth()!=i.getUTCMonth()||e.getUTCDate()!=i.getUTCDate())&&(l=!0);break;case"hour":e.getUTCHours()!=i.getUTCHours()&&(l=!0);break;case"minute":e.getUTCMinutes()!=i.getUTCMinutes()&&(l=!0);break;case"second":e.getUTCSeconds()!=i.getUTCSeconds()&&(l=!0);break;case"millisecond":e.getTime()!=i.getTime()&&(l=!0)}if(l)return!0;var c=o(n);return!!c&&(e.setUTCMinutes(e.getUTCMinutes()+a),i.setUTCMinutes(i.getUTCMinutes()+s),t(e,i,c,r))},e.add=function(t,e,i,n){var r=0;switch(n||"millisecond"==e||(r=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":var o=t.getUTCDate();t.setUTCDate(o+i);break;case"second":var a=t.getUTCSeconds();t.setUTCSeconds(a+i);break;case"millisecond":var s=t.getUTCMilliseconds();t.setUTCMilliseconds(s+i);break;case"hour":var l=t.getUTCHours();t.setUTCHours(l+i);break;case"minute":var c=t.getUTCMinutes();t.setUTCMinutes(c+i);break;case"year":var h=t.getUTCFullYear();t.setUTCFullYear(h+i);break;case"month":var u=t.getUTCMonth();t.setUTCMonth(u+i);break;case"week":var d=t.getUTCDate();t.setUTCDate(d+7*i)}if(!n&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){var p=t.getTimezoneOffset();if(p!=r){var f=p-r;t.setUTCMinutes(t.getUTCMinutes()+f),t.getTimezoneOffset()!=p&&t.setUTCMinutes(t.getUTCMinutes()-f)}}return t},e.round=function t(e,i,r,o,s,l){n.isNumber(r)||(r=1);var c=0;switch(s||"millisecond"==i||(c=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-c)),i){case"day":var h=e.getUTCDate();if(r>1){if(l){l=t(l,"day",1);var u=e.getTime()-l.getTime(),d=Math.floor(u/a("day")/r),p=a("day",d*r);e.setTime(l.getTime()+p-c*a("minute"))}}else e.setUTCDate(h);e.setUTCHours(0,0,0,0);break;case"second":var f=e.getUTCSeconds();r>1&&(f=Math.floor(f/r)*r),e.setUTCSeconds(f,0);break;case"millisecond":if(1==r)return e;var g=e.getUTCMilliseconds();g=Math.floor(g/r)*r,e.setUTCMilliseconds(g);break;case"hour":var m=e.getUTCHours();r>1&&(m=Math.floor(m/r)*r),e.setUTCHours(m,0,0,0);break;case"minute":var y=e.getUTCMinutes();g=e.getUTCMilliseconds(),r>1&&(y=Math.floor(y/r)*r),e.setUTCMinutes(y,0,0);break;case"month":var v=e.getUTCMonth();r>1&&(v=Math.floor(v/r)*r),e.setUTCMonth(v,1),e.setUTCHours(0,0,0,0);break;case"year":var b=e.getUTCFullYear();r>1&&(b=Math.floor(b/r)*r),e.setUTCFullYear(b,0,1),e.setUTCHours(0,0,0,0);break;case"week":var x=e.getUTCDate(),w=e.getUTCDay();n.isNumber(o)||(o=1),x=w>=o?x-w+o:x-(7+w)+o,e.setUTCDate(x),e.setUTCHours(0,0,0,0)}if(!s&&"millisecond"!=i&&(e.setUTCMinutes(e.getUTCMinutes()+c),"day"==i||"week"==i||"month"==i||"year"==i)){var _=e.getTimezoneOffset();if(_!=c){var S=_-c;e.setUTCMinutes(e.getUTCMinutes()+S)}}return e};var n=i("Mtpk"),r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function o(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function a(t,e){return n.hasValue(e)||(e=1),r[t]*e}function s(){return new Date}},LBDG:function(t,e,i){"use strict";e.b=function(){return/apple/i.test(navigator.vendor)},e.a=function(){return/MSIE |Trident\//.test(navigator.userAgent)}},"LGy/":function(t,e,i){i("YJIw")("Float64",8,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},LHMX:function(t,e,i){var n=i("T9LF"),r=i("6/bx"),o=i("hjwn").f,a=i("rkh7").f,s=i("0Zt3"),l=i("x2K9"),c=n.RegExp,h=c,u=c.prototype,d=/a/g,p=/a/g,f=new c(d)!==d;if(i("gD3S")&&(!f||i("AEc5")((function(){return p[i("YEtG")("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")})))){c=function(t,e){var i=this instanceof c,n=s(t),o=void 0===e;return!i&&n&&t.constructor===c&&o?t:r(f?new h(n&&!o?t.source:t,e):h((n=t instanceof c)?t.source:t,n&&o?l.call(t):e),i?this:u,c)};for(var g=function(t){t in c||o(c,t,{configurable:!0,get:function(){return h[t]},set:function(e){h[t]=e}})},m=a(h),y=0;m.length>y;)g(m[y++]);u.constructor=c,c.prototype=u,i("wDk4")(n,"RegExp",c)}i("vdWU")("RegExp")},LLsa:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("sc+R");n(n.P+n.F*!i("GQop")([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},LMet:function(t,e,i){i("xdw4")("asyncIterator")},LNZc:function(t,e,i){"use strict";var n=i("T9LF"),r=i("gD3S"),o=i("pb4Y"),a=i("xSzy"),s=i("Vng0"),l=i("cA+3"),c=i("AEc5"),h=i("ypVE"),u=i("4BRe"),d=i("FmWr"),p=i("bytU"),f=i("rkh7").f,g=i("hjwn").f,m=i("lgQj"),y=i("bPwn"),v="prototype",b="Wrong index!",x=n.ArrayBuffer,w=n.DataView,_=n.Math,S=n.RangeError,P=n.Infinity,k=x,C=_.abs,T=_.pow,A=_.floor,O=_.log,M=_.LN2,E=r?"_b":"buffer",I=r?"_l":"byteLength",D=r?"_o":"byteOffset";function L(t,e,i){var n,r,o,a=new Array(i),s=8*i-e-1,l=(1<<s)-1,c=l>>1,h=23===e?T(2,-24)-T(2,-77):0,u=0,d=t<0||0===t&&1/t<0?1:0;for((t=C(t))!=t||t===P?(r=t!=t?1:0,n=l):(n=A(O(t)/M),t*(o=T(2,-n))<1&&(n--,o*=2),(t+=n+c>=1?h/o:h*T(2,1-c))*o>=2&&(n++,o/=2),n+c>=l?(r=0,n=l):n+c>=1?(r=(t*o-1)*T(2,e),n+=c):(r=t*T(2,c-1)*T(2,e),n=0));e>=8;a[u++]=255&r,r/=256,e-=8);for(n=n<<e|r,s+=e;s>0;a[u++]=255&n,n/=256,s-=8);return a[--u]|=128*d,a}function j(t,e,i){var n,r=8*i-e-1,o=(1<<r)-1,a=o>>1,s=r-7,l=i-1,c=t[l--],h=127&c;for(c>>=7;s>0;h=256*h+t[l],l--,s-=8);for(n=h&(1<<-s)-1,h>>=-s,s+=e;s>0;n=256*n+t[l],l--,s-=8);if(0===h)h=1-a;else{if(h===o)return n?NaN:c?-P:P;n+=T(2,e),h-=a}return(c?-1:1)*n*T(2,h-e)}function N(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function F(t){return[255&t]}function R(t){return[255&t,t>>8&255]}function V(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return L(t,52,8)}function B(t){return L(t,23,4)}function H(t,e,i){g(t[v],e,{get:function(){return this[i]}})}function W(t,e,i,n){var r=p(+i);if(r+e>t[I])throw S(b);var o=t[E]._b,a=r+t[D],s=o.slice(a,a+e);return n?s:s.reverse()}function X(t,e,i,n,r,o){var a=p(+i);if(a+e>t[I])throw S(b);for(var s=t[E]._b,l=a+t[D],c=n(+r),h=0;h<e;h++)s[l+h]=c[o?h:e-h-1]}if(a.ABV){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name}))){for(var Y,G=(x=function(t){return h(this,x),new k(p(t))})[v]=k[v],U=f(k),q=0;U.length>q;)(Y=U[q++])in x||s(x,Y,k[Y]);o||(G.constructor=x)}var $=new w(new x(2)),K=w[v].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(w[v],{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else x=function(t){h(this,x,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[I]=e},w=function(t,e,i){h(this,w,"DataView"),h(t,x,"DataView");var n=t[I],r=u(e);if(r<0||r>n)throw S("Wrong offset!");if(r+(i=void 0===i?n-r:d(i))>n)throw S("Wrong length!");this[E]=t,this[D]=r,this[I]=i},r&&(H(x,"byteLength","_l"),H(w,"buffer","_b"),H(w,"byteLength","_l"),H(w,"byteOffset","_o")),l(w[v],{getInt8:function(t){return W(this,1,t)[0]<<24>>24},getUint8:function(t){return W(this,1,t)[0]},getInt16:function(t){var e=W(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=W(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return N(W(this,4,t,arguments[1]))},getUint32:function(t){return N(W(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return j(W(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return j(W(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){X(this,1,t,F,e)},setUint8:function(t,e){X(this,1,t,F,e)},setInt16:function(t,e){X(this,2,t,R,e,arguments[2])},setUint16:function(t,e){X(this,2,t,R,e,arguments[2])},setInt32:function(t,e){X(this,4,t,V,e,arguments[2])},setUint32:function(t,e){X(this,4,t,V,e,arguments[2])},setFloat32:function(t,e){X(this,4,t,B,e,arguments[2])},setFloat64:function(t,e){X(this,8,t,z,e,arguments[2])}});y(x,"ArrayBuffer"),y(w,"DataView"),s(w[v],a.VIEW,!0),e.ArrayBuffer=x,e.DataView=w},LSPs:function(t,e,i){var n=i("Gb1H");n(n.S,"Date",{now:function(){return(new Date).getTime()}})},"Ly/W":function(t,e,i){"use strict";i("Mvcd")("strike",(function(t){return function(){return t(this,"strike","","")}}))},"M/YL":function(t,e,i){var n=i("YEtG")("unscopables"),r=Array.prototype;null==r[n]&&i("Vng0")(r,n,{}),t.exports=function(t){r[n][t]=!0}},MIZb:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("Tjl+"),o=i("aCit"),a=i("8ZqG"),s=function(t){function e(){var e=t.call(this)||this;return e._purposes={stroke:Object(a.c)("#e5e5e5"),fill:Object(a.c)("#f3f3f3"),primaryButton:Object(a.c)("#6794dc"),primaryButtonHover:Object(a.c)("#6771dc"),primaryButtonDown:Object(a.c)("#68dc75"),primaryButtonActive:Object(a.c)("#68dc75"),primaryButtonText:Object(a.c)("#FFFFFF"),primaryButtonStroke:Object(a.c)("#FFFFFF"),secondaryButton:Object(a.c)("#d9d9d9"),secondaryButtonHover:Object(a.c)("#d9d9d9").brighten(-.25),secondaryButtonDown:Object(a.c)("#d9d9d9").brighten(-.35),secondaryButtonActive:Object(a.c)("#d9d9d9").brighten(.35),secondaryButtonText:Object(a.c)("#000000"),secondaryButtonStroke:Object(a.c)("#FFFFFF"),grid:Object(a.c)("#000000"),background:Object(a.c)("#ffffff"),alternativeBackground:Object(a.c)("#000000"),text:Object(a.c)("#000000"),alternativeText:Object(a.c)("#FFFFFF"),disabledBackground:Object(a.c)("#999999"),positive:Object(a.c)("#67dc75"),negative:Object(a.c)("#dc6788")},e.className="InterfaceColorSet",e.applyTheme(),e}return n.c(e,t),e.prototype.debug=function(){},e.prototype.getFor=function(t){return this._purposes[t]},e.prototype.setFor=function(t,e){this._purposes[t]=e},e}(r.a);o.c.registeredClasses.InterfaceColorSet=s},"MT+g":function(t,e,i){i("6+x4")("WeakSet")},MXvJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("jfaP"),o=i("aCit"),a=i("Gg2j"),s=i("hGwe"),l=function(t){function e(){var e=t.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return n.c(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){var e="";this._realSegments=[];for(var i=0,n=t.length;i<n;i++){var r=t[i],o=[];if(this._realSegments.push(o),r.length>0){e+=s.moveTo(r[0]);for(var l=1;l<r.length;l++){var c=r[l-1],h=r[l],u=a.getDistance(h,c),d=u*this.controlPointDistance,p=this.controlPointPosition,f=-a.getAngle(c,h),g={x:c.x+(h.x-c.x)*p*.5-d*a.sin(f),y:c.y+(h.y-c.y)*p*.5-d*a.cos(f)},m={x:c.x+(h.x-c.x)*p*1.5-d*a.sin(f),y:c.y+(h.y-c.y)*p*1.5-d*a.cos(f)};e+=s.cubicCurveTo(h,g,m);var y=Math.ceil(u),v=c;if(y>0)for(var b=0;b<=y;b++){var x=a.getPointOnCubicCurve(c,h,g,m,b/y);o.push(x),this._distance+=a.getDistance(v,x),v=x}else o.push(c)}}}this.path=e}},Object.defineProperty(e.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(t){this.setPropertyValue("controlPointPosition",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t),this.makePath()},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.Polyarc=l},MZQ8:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("1qam"),o=i("Gg2j"),a=function(t){function e(){var e=t.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.cornerRadius,i=this.innerWidth,n=this.innerHeight;if(i>0&&n>0){var r,a,s=this.pointerX,l=this.pointerY,c=this.pointerBaseWidth/2,h=o.min(i/2,n/2),u=o.fitToRange(e,0,h),d=o.fitToRange(e,0,h),p=o.fitToRange(e,0,h),f=o.fitToRange(e,0,h),g=void 0,m=void 0,y=void 0,v=void 0,b=(s-0)*(n-0)-(l-0)*(i-0),x=(s-0)*(0-n)-(l-n)*(i-0);g=b>0&&x>0?"M"+u+",0 L"+((r=o.fitToRange(s,u+c,i-c-d))-c)+",0 L"+s+","+(l=o.fitToRange(l,-1/0,0))+" L"+(r+c)+",0 L"+(i-d)+",0":"M"+u+",0 L"+(i-d)+",0",y=b<0&&x<0?" L"+(i-p)+","+n+" L"+((r=o.fitToRange(s,f+c,i-c-p))+c)+","+n+" L"+s+","+(l=o.fitToRange(l,n,1/0))+" L"+(r-c)+","+n+" L"+f+","+n:" L"+f+","+n,v=b<0&&x>0?" L0,"+(n-f)+" L0,"+((a=o.fitToRange(l,u+c,n-f-c))+c)+" L"+(s=o.fitToRange(s,-1/0,0))+","+l+" L0,"+(a-c)+" L0,"+u:" L0,"+u,m=b>0&&x<0?" L"+i+","+d+" L"+i+","+((a=o.fitToRange(l,d+c,n-c-p))-c)+" L"+(s=o.fitToRange(s,i,1/0))+","+l+" L"+i+","+(a+c)+" L"+i+","+(n-p):" L"+i+","+(n-p);var w=" a"+d+","+d+" 0 0 1 "+d+","+d,_=" a"+p+","+p+" 0 0 1 -"+p+","+p,S=" a"+f+","+f+" 0 0 1 -"+f+",-"+f,P=" a"+u+","+u+" 0 0 1 "+u+",-"+u;this.path=g+w+m+_+y+S+v+P}},Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(r.a)},MbWG:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("e8Nv");n(n.S+n.F*i("AEc5")((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)r(i,t,arguments[t++]);return i.length=e,i}})},Meme:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("m4/l"),r=i("C6dT"),o=i("hD5A"),a=i("AAkI"),s=i("eAid"),l=i("8EhG"),c=i("AaJ4"),h=i("TDx+"),u=i("eN1s"),d=i("vMqJ"),p=i("aCit"),f=i("tjMS"),g=i("Gg2j"),m=i("Mtpk"),y=function(t){function e(){var e=t.call(this)||this;e._chart=new o.d,e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var i=e.createChild(r.a);i.shouldClone=!1,i.layout="none",i.virtualParent=e,i.width=Object(f.c)(100),i.height=Object(f.c)(100),e.gridContainer=i,i.events.on("maxsizechanged",(function(){e.inited&&e.invalidateAxisItems()}),e,!1);var n=e.createChild(r.a);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",n.width=Object(f.c)(100),n.height=Object(f.c)(100),e.breakContainer=n;var a=e.createChild(r.a);a.shouldClone=!1,a.isMeasured=!1,a.layout="none",a.width=Object(f.c)(100),a.height=Object(f.c)(100),e.bulletsContainer=a,e.line=e.createChild(s.a),e.line.shouldClone=!1,e.line.strokeOpacity=0;var l=e.createChild(c.a);l.shouldClone=!1,e.baseGrid=l;var h=e._disposers;return h.push(l),h.push(e.line),h.push(i),h.push(n),h.push(a),h.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis},set:function(t){this.setAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setAxis=function(t){this._axis=t,this.baseGrid.parent=t,this.line.parent=t,this.gridContainer.bind("opacity",t)},e.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},e.prototype.updateTooltip=function(){},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.positionItem=function(t,e){t&&t.moveTo(e)},e.prototype.positionToPoint=function(t,e){return{x:0,y:0}},e.prototype.positionToAngle=function(t){return 0},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength;return e.renderer.inversed?(e.end-t)*i:(t-e.start)*i},e.prototype.updateGridContainer=function(){},e.prototype.getHeight=function(){var t=this.gridContainer;return t.parent?t.parent.pixelHeight:this.gridContainer.pixelHeight||0},e.prototype.getWidth=function(){var t=this.gridContainer;return t.parent?t.parent.pixelWidth:this.gridContainer.pixelWidth||0},e.prototype.coordinateToPosition=function(t,e){var i,n=this.axis,r=n.axisFullLength;return i=n.renderer.inversed?n.end-t/r:t/r+n.start,g.round(i,5)},e.prototype.pointToPosition=function(t){return 0},e.prototype.getPositionRangePath=function(t,e){return""},e.prototype.invalidateAxisItems=function(){var t=this.axis;t&&t.invalidateDataItems()},e.prototype.updateGridElement=function(t,e,i){},e.prototype.updateTickElement=function(t,e,i){},e.prototype.updateBullet=function(t,e,i){},e.prototype.updateLabelElement=function(t,e,i,n){},e.prototype.updateFillElement=function(t,e,i){t.startPosition=e,t.endPosition=i},e.prototype.updateAxisLine=function(){},e.prototype.updateBaseGridElement=function(){},e.prototype.updateBreakElement=function(t){this.positionItem(t.startLine,t.startPoint),this.toggleVisibility(t.startLine,t.startPosition,0,1),this.positionItem(t.endLine,t.endPoint),this.toggleVisibility(t.endLine,t.endPosition,0,1)},Object.defineProperty(e.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(t){this.setPropertyValue("minGridDistance",t)&&this.axis&&this.axis.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.toggleVisibility=function(t,e,i,n){var r=this.axis,o=t.dataItem;o&&o instanceof a.b&&(m.isNumber(o.minPosition)&&(i=o.minPosition),m.isNumber(o.maxPosition)&&(n=o.maxPosition));var s=r.start+(r.end-r.start)*(i-1e-4),l=r.start+(r.end-r.start)*(n+1e-4);t.disabled||(t.__disabled=e<s||e>l)},e.prototype.createBreakSprites=function(t){},Object.defineProperty(e.prototype,"axisFills",{get:function(){if(!this._axisFills){var t=this.createFill(this.axis);this._axisFills=new d.e(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new d.c(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),e.prototype.createFill=function(t){return new l.a(t)},Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.createGrid();this._grid=new d.e(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new d.c(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),e.prototype.createGrid=function(){return new c.a},Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,t.isMeasured=!1,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new d.e(t),this._disposers.push(new d.c(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),e.prototype.createTick=function(){return new u.a},Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();this._labels=new d.e(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new d.c(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createLabel=function(){return new h.a},Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t)&&this.axis&&this.axis.invalidate(),t?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(t){this.setPropertyValue("opposite",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(t){this.setPropertyValue("fullWidthTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(t){this.setPropertyValue("tooltipLocation2",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(t){this.setPropertyValue("cellStartLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(t){this.setPropertyValue("cellEndLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(t){this.setPropertyValue("inversed",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(t){this.setPropertyValue("minLabelPosition",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(t){this.setPropertyValue("maxLabelPosition",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},e.prototype.toAxisPosition=function(t){return t},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(r.a);p.c.registeredClasses.AxisRenderer=y},MfZA:function(t,e,i){var n=i("DVYA"),r=i("YEtG")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?i:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},MipW:function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),e.b=function(){return null==n&&(n=new u),n};var n,r=i("m4/l"),o=i("Tjl+"),a=i("pzs1"),s=i("x79X"),l=i("aCit"),c=i("ScGY"),h=i("Mtpk"),u=function(t){function e(){var e=t.call(this)||this;return e.adapter=new s.a(e),e.className="TextFormatter",e.applyTheme(),e}return r.c(e,t),e.prototype.debug=function(){},e.prototype.format=function(t,e){h.hasValue(e)||(e="svg");var i="",n=(t=this.escape(t)).match(/\[([^\]]*?)\]/gm);if(!n)return this.wrap(t,"",e);for(var r=t.split(/\[[^\[\]]*\]/),o=0,a=r.length;o<a;o++){var s=r[o];if(""!==s){s=this.adapter.apply("chunk",s);var l="";o>0&&(l=n[o-1].replace("[","").replace("]","")),i+=this.wrap(s,l,e)}}return i=this.unescape(i),this.cleanUp(i)},e.prototype.escape=function(t){return t.replace(/\[\[/g,l.c.getPlaceholder("1")).replace(/([^\/]{1})\]\]/g,"$1"+l.c.getPlaceholder("2")).replace(/\]\]/g,l.c.getPlaceholder("2")).replace(/\{\{/g,l.c.getPlaceholder("3")).replace(/\}\}/g,l.c.getPlaceholder("4")).replace(/\'\'/g,l.c.getPlaceholder("5"))},e.prototype.unescape=function(t){return t.replace(new RegExp(l.c.getPlaceholder("1"),"g"),"[[").replace(new RegExp(l.c.getPlaceholder("2"),"g"),"]]").replace(new RegExp(l.c.getPlaceholder("3"),"g"),"{{").replace(new RegExp(l.c.getPlaceholder("4"),"g"),"}}").replace(new RegExp(l.c.getPlaceholder("5"),"g"),"'")},e.prototype.cleanUp=function(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},e.prototype.wrap=function(t,e,i){switch(""!==e&&"/"!==e||(e=""),i){case"html":return this.wrapHtml(t,this.translateStyleShortcuts(e));default:return this.wrapSvg(t,this.translateStyleShortcuts(e))}},e.prototype.wrapSvg=function(t,e){return""===e?"<tspan>"+t+"</tspan>":"<tspan style='"+e+"'>"+t+"</tspan>"},e.prototype.getSvgElement=function(t,e){var i=new a.a("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.wrapHtml=function(t,e){return""===e?"<span>"+t+"</span>":"<span style='"+this.styleSvgToHtml(e)+"'>"+t+"</span>"},e.prototype.getHtmlElement=function(t,e){var i=document.createElement("span");return i.innerHTML=t,e&&i.setAttribute("style",e),i},e.prototype.styleSvgToHtml=function(t){return t.replace(/fill:/,"color:")},e.prototype.translateStyleShortcuts=function(t){if(""==t||"[ ]"==t)return"";var e=l.c.getCache("translateStyleShortcuts_"+t);if(e)return e;var i=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!i)return t;for(var n=0;n<i.length;n++)i[n].match(/^bold$/i)?i[n]="font-weight:"+i[n]:"/"==i[n]?i[n]="":i[n].match(/:/)||(i[n]="fill:"+i[n]);var r=i.join(";");return l.c.setCache("translateStyleShortcuts_"+t,r),r},e.prototype.chunk=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=[];t=this.escape(t);for(var r=e?t.split("'"):[t],o=0;o<r.length;o++){var a=r[o];if(""!==a)if(o%2==0)for(var s=(a=(a=a.replace(/\]\[/g,"]"+c.d+"[")).replace(/\[\]/g,"[ ]")).split(/[\[\]]+/),l=0;l<s.length;l++)(h=this.cleanUp(this.unescape(s[l])))!==c.d&&""!==h&&(l%2==0?n.push({type:"value",text:this.adapter.apply("chunk",h)}):n.push({type:i?"value":"format",text:"["+h+"]"}));else for(s=a.split(/[\[\]]+/),l=0;l<s.length;l++){var h;""!==(h=this.cleanUp(this.unescape(s[l])))&&(l%2==0?n.push({type:"text",text:h}):this.isImage(h)?n.push({type:"image",text:"["+h+"]"}):n.push({type:"format",text:"["+h+"]"}))}}return n},e.prototype.isImage=function(t){return!!t.match(/img[ ]?:/)},e}(o.a);l.c.registeredClasses.TextFormatter=u},MlsF:function(t,e,i){"use strict";e.b=function(t){switch(t){case 0:return 0;case-1:return 1;case 1:return-1}},e.a=function(t,e){return 0===t?e:t}},Mpxm:function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return c}));var n=i("4DCw"),r=i("ZhuL"),o=i("x79X"),a=i("OVUc"),s=i("hJ5i"),l=function(){function t(){this.adapter=new o.a(this)}return t.prototype.load=function(t){var e=Array.isArray(t)?t:[t],i=s.map(e,(function(t){return t.dispatchImmediately("started"),t.dispatchImmediately("loadstarted"),a.a(t.url,t,t.requestOptions)}));Promise.all(i).then((function(t){s.each(t,(function(t){var e=t.target;e.dispatchImmediately("loadended"),t.error?e.events.isEnabled("error")&&e.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:e.language.translate("Unable to load file: %1",null,e.url),target:e}):e.processData(t.response,t.type),e.dispatchImmediately("ended")}))})).catch((function(t){t.target&&(t.target.dispatchImmediately("loadended"),t.target.events.isEnabled("error")&&t.target.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:t.target.language.translate("Unable to load file: %1",null,t.target.url),target:t.target}),t.target.dispatchImmediately("ended"))}))},t.prototype.getParserByType=function(t){return this.adapter.apply("getParserByType",{parser:null,type:t}).parser||("csv"==t||"text/csv"==t||"application/vnd.ms-excel"==t?new n.a:"json"==t||"application/json"==t?new r.a:void 0)},t.prototype.getParserByData=function(t,e){var i=this.adapter.apply("getParserByData",{parser:null,data:t,type:e}).parser;if(!i){if(i=this.getParserByType(e))return i;if(r.a.isJSON(t))return this.getParserByType("json");if(n.a.isCSV(t))return this.getParserByType("csv")}return i},t}(),c=new l},Mr4Y:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("C6dT"),o=i("Vs7R"),a=i("Gg2j"),s=i("hGwe"),l=i("8ZqG"),c=i("CuFa"),h=i("sxA1"),u=i("C84C"),d=i("Mtpk"),p=function(t){function e(){var e=t.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var i=e.createChild(o.a);i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e.sideBack=i,e._disposers.push(e.sideBack);var n=e.createChild(o.a);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.isMeasured=!1,e.sideBottom=n,e._disposers.push(e.sideBottom);var r=e.createChild(o.a);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideLeft=r,e._disposers.push(e.sideLeft);var a=e.createChild(o.a);a.shouldClone=!1,a.setElement(e.paper.add("path")),a.isMeasured=!1,e.sideRight=a,e._disposers.push(e.sideRight);var s=e.createChild(o.a);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideTop=s,e._disposers.push(e.sideTop);var l=e.createChild(o.a);return l.shouldClone=!1,l.setElement(e.paper.add("path")),l.isMeasured=!1,e.sideFront=l,e._disposers.push(e.sideFront),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight,n=this.depth,r=this.angle,o=a.sin(r),l=a.cos(r),c={x:0,y:0},h={x:e,y:0},u={x:e,y:i},d={x:0,y:i},p={x:n*l,y:-n*o},f={x:n*l+e,y:-n*o},g={x:n*l+e,y:-n*o+i},m={x:n*l,y:-n*o+i};this.sideFront.path=s.moveTo(c)+s.lineTo(h)+s.lineTo(u)+s.lineTo(d)+s.closePath(),this.sideBack.path=s.moveTo(p)+s.lineTo(f)+s.lineTo(g)+s.lineTo(m)+s.closePath(),this.sideLeft.path=s.moveTo(c)+s.lineTo(p)+s.lineTo(m)+s.lineTo(d)+s.closePath(),this.sideRight.path=s.moveTo(h)+s.lineTo(f)+s.lineTo(g)+s.lineTo(u)+s.closePath(),this.sideBottom.path=s.moveTo(d)+s.lineTo(m)+s.lineTo(g)+s.lineTo(u)+s.closePath(),this.sideTop.path=s.moveTo(c)+s.lineTo(p)+s.lineTo(f)+s.lineTo(h)+s.closePath()},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),d.isString(e)&&(e=Object(l.e)(e)),e instanceof l.a)i=e.hex;else if(e instanceof h.a||e instanceof c.a)i=e.stops.getIndex(0).color.hex;else{var n=new u.a;n.lightness=-.2,this.sideBack.filters.push(n);var r=n.clone();r.lightness=-.4,this.sideLeft.filters.push(r);var o=n.clone();o.lightness=-.2,this.sideRight.filters.push(o);var a=n.clone();a.lightness=-.1,this.sideTop.filters.push(a);var s=n.clone();s.lightness=-.5,this.sideBottom.filters.push(s)}i&&(this.sideBack.fill=Object(l.c)(i).lighten(-.2),this.sideLeft.fill=Object(l.c)(i).lighten(-.4),this.sideRight.fill=Object(l.c)(i).lighten(-.2),this.sideTop.fill=Object(l.c)(i).lighten(-.1),this.sideBottom.fill=Object(l.c)(i).lighten(-.5))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)},e}(r.a)},MrGI:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("zAAN");n(n.P+n.F*i("IYrR")("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},MsQa:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{scale:i("eh+x")})},Mtpk:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNaN=r,e.getType=o,e.getDefault=function(t,e){return t||e},e.checkString=function(t){if("string"==typeof t)return!0;throw new Error("Expected a string but got "+o(t))},e.checkBoolean=function(t){if("boolean"==typeof t)return!0;throw new Error("Expected a boolean but got "+o(t))},e.checkNumber=function(t){if("number"!=typeof t)throw new Error("Expected a number but got "+o(t));if(r(t))throw new Error("Expected a number but got NaN");return!0},e.checkObject=function(t){var e=o(t);if("[object Object]"===e)return!0;throw new Error("Expected an object but got "+e)},e.checkArray=function(t){if(Array.isArray(t))return!0;throw new Error("Expected an array but got "+o(t))},e.checkDate=function(t){var e=o(t);if("[object Date]"===e)return!0;throw new Error("Expected a date but got "+e)},e.castString=a,e.castNumber=function(t){if("string"==typeof t){var e=+t;if(r(e))throw new Error("Cannot cast string "+JSON.stringify(t)+" to a number");return e}if("number"==typeof t){if(r(t))throw new Error("Expected a number but got NaN");return t}var i=o(t);if("[object Date]"===i)return t.getTime();throw new Error("Expected a string, number, or date but got "+i)},e.toBoolean=function(t){return!!t},e.toNumber=s,e.toText=function(t){if(l(t)&&!c(t)){if(h(t))return a(t);if(u(t))return t.toString()}return t},e.toNumberOrPercent=function(t){return!l(t)||h(t)||Object(n.b)(t)?t:c(t)&&-1!=t.indexOf("%")?Object(n.c)(s(t)):s(t)},e.hasValue=l,e.getValue=function(t){if(l(t))return t;throw new Error("Value doesn't exist")},e.getValueDefault=function(t,e){return l(t)?t:e},e.isDate=function(t){return"[object Date]"===o(t)},e.isString=c,e.isNumber=h,e.isObject=u,e.isArray=function(t){return Array.isArray(t)};var n=i("tjMS");function r(t){return Number(t)!==t}function o(t){return{}.toString.call(t)}function a(t){if("string"==typeof t)return t;if("number"==typeof t)return""+t;throw new Error("Expected a string or number but got "+o(t))}function s(t){if(l(t)&&!h(t)){var e=Number(t);return r(e)&&c(t)&&""!=t?s(t.replace(/[^0-9.\-]+/g,"")):e}return t}function l(t){return null!=t}function c(t){return"string"==typeof t}function h(t){return"number"==typeof t&&Number(t)==t}function u(t){return"object"==typeof t}},Mvcd:function(t,e,i){var n=i("Gb1H"),r=i("AEc5"),o=i("kcsd"),a=/"/g,s=function(t,e,i,n){var r=String(o(t)),s="<"+e;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+r+"</"+e+">"};t.exports=function(t,e){var i={};i[t]=e(s),n(n.P+n.F*r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)}},"N/Yk":function(t,e,i){i("vdWU")("Array")},"ND2/":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("PTiM"),o=i("8ZqG"),a=i("aFzC"),s=i("hGwe"),l=function(t){function e(){var e=t.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=Object(o.c)(),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2};this.path=s.moveTo(t)+Object(a.c)(t,e,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(r.a)},NKpi:function(t,e,i){var n=i("xCMl"),r=i("WtL7"),o=i("6MWL"),a=i("snR7"),s=i("K0ev"),l=o.keys,c=o.key;o.exp({getMetadataKeys:function(t){return function t(e,i){var o=l(e,i),a=s(e);if(null===a)return o;var c=t(a,i);return c.length?o.length?r(new n(o.concat(c))):c:o}(a(t),arguments.length<2?void 0:c(arguments[1]))}})},NSvu:function(t,e,i){i("YJIw")("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}}),!0)},NlGZ:function(t,e,i){"use strict";var n,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(n=function(){if("undefined"==typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)};function i(t,e){var i=Object.prototype.toString.call(t),n="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,r=0,o=t.length;if(n)for(;r<o;r++)e(t[r]);else e(t)}function n(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function r(t,e){Object.keys(e).forEach((function(i){t.style[i]=e[i]}))}var o=function t(o,a){function s(t,i){if(t)if(t.resizedAttached)t.resizedAttached.add(i);else{t.resizedAttached=new function(){var t,e,i=[];this.add=function(t){i.push(t)},this.call=function(n){for(t=0,e=i.length;t<e;t++)i[t].call(this,n)},this.remove=function(n){var r=[];for(t=0,e=i.length;t<e;t++)i[t]!==n&&r.push(i[t]);i=r},this.length=function(){return i.length}},t.resizedAttached.add(i),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var o={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},a={position:"absolute",left:"0px",top:"0px",transition:"0s"};r(t.resizeSensor,o);var s=document.createElement("div");s.className="resize-sensor-expand",r(s,o);var l=document.createElement("div");r(l,a),s.appendChild(l);var c=document.createElement("div");c.className="resize-sensor-shrink",r(c,o);var h=document.createElement("div");r(h,a),r(h,{width:"200%",height:"200%"}),c.appendChild(h),t.resizeSensor.appendChild(s),t.resizeSensor.appendChild(c),t.appendChild(t.resizeSensor);var u,d,p=window.getComputedStyle(t),f=p?p.getPropertyValue("position"):null;"absolute"!==f&&"relative"!==f&&"fixed"!==f&&(t.style.position="relative");var g=n(t),m=0,y=0,v=!0,b=0,x=function i(){if(v){if(0===t.offsetWidth&&0===t.offsetHeight)return void(b||(b=e((function(){b=0,i()}))));v=!1}!function(){var e=t.offsetWidth,i=t.offsetHeight;l.style.width=e+10+"px",l.style.height=i+10+"px",s.scrollLeft=e+10,s.scrollTop=i+10,c.scrollLeft=e+10,c.scrollTop=i+10}()};t.resizeSensor.resetSensor=x;var w=function(){d=0,u&&(m=g.width,y=g.height,t.resizedAttached&&t.resizedAttached.call(g))},_=function(){g=n(t),(u=g.width!==m||g.height!==y)&&!d&&(d=e(w)),x()},S=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,i):t.addEventListener(e,i)};S(s,"scroll",_),S(c,"scroll",_),e(x)}}i(o,(function(t){s(t,a)})),this.detach=function(e){t.detach(o,e)},this.reset=function(){o.resizeSensor.resetSensor()}};if(o.reset=function(t){i(t,(function(t){t.resizeSensor.resetSensor()}))},o.detach=function(t,e){i(t,(function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(t){for(var e in t)if(t.hasOwnProperty(e))for(var i=t[e].addedNodes,n=0;n<i.length;n++)i[n].resizeSensor&&o.reset(i[n])}));document.addEventListener("DOMContentLoaded",(function(t){a.observe(document.body,{childList:!0,subtree:!0})}))}return o})?n.call(e,i,e,t):n)||(t.exports=r)},"Nv8/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};i.d(n,"System",(function(){return r.a})),i.d(n,"system",(function(){return r.b})),i.d(n,"BaseObject",(function(){return o.a})),i.d(n,"BaseObjectEvents",(function(){return o.b})),i.d(n,"Component",(function(){return a.a})),i.d(n,"Container",(function(){return s.a})),i.d(n,"DataItem",(function(){return l.a})),i.d(n,"Sprite",(function(){return c.a})),i.d(n,"SpriteEventDispatcher",(function(){return h.a})),i.d(n,"SpriteState",(function(){return u.a})),i.d(n,"registry",(function(){return d.c})),i.d(n,"Registry",(function(){return d.a})),i.d(n,"is",(function(){return d.b})),i.d(n,"options",(function(){return p.a})),i.d(n,"CSVParser",(function(){return f.a})),i.d(n,"DataLoader",(function(){return g.a})),i.d(n,"dataLoader",(function(){return g.b})),i.d(n,"DataParser",(function(){return m.a})),i.d(n,"DataSource",(function(){return y.a})),i.d(n,"JSONParser",(function(){return v.a})),i.d(n,"SVGDefaults",(function(){return b.a})),i.d(n,"Button",(function(){return x.a})),i.d(n,"Circle",(function(){return w.a})),i.d(n,"Ellipse",(function(){return _.a})),i.d(n,"Image",(function(){return C})),i.d(n,"Label",(function(){return T.a})),i.d(n,"Line",(function(){return A.a})),i.d(n,"Popup",(function(){return O.a})),i.d(n,"Modal",(function(){return M.a})),i.d(n,"PointedRectangle",(function(){return E.a})),i.d(n,"PointedShape",(function(){return I.a})),i.d(n,"Polyarc",(function(){return D.a})),i.d(n,"Polygon",(function(){return L.a})),i.d(n,"Polyline",(function(){return j.a})),i.d(n,"Polyspline",(function(){return N.a})),i.d(n,"Preloader",(function(){return z})),i.d(n,"Rectangle",(function(){return B.a})),i.d(n,"ResizeButton",(function(){return H.a})),i.d(n,"RoundedRectangle",(function(){return W.a})),i.d(n,"Scrollbar",(function(){return X.a})),i.d(n,"Slider",(function(){return Y})),i.d(n,"Slice",(function(){return R.a})),i.d(n,"TextLink",(function(){return G.a})),i.d(n,"Tooltip",(function(){return U.a})),i.d(n,"Trapezoid",(function(){return q.a})),i.d(n,"Triangle",(function(){return $.a})),i.d(n,"WavedCircle",(function(){return K.a})),i.d(n,"WavedLine",(function(){return Z.a})),i.d(n,"WavedRectangle",(function(){return J.a})),i.d(n,"ZoomOutButton",(function(){return Q.a})),i.d(n,"PlayButton",(function(){return tt})),i.d(n,"Cone",(function(){return et.a})),i.d(n,"Rectangle3D",(function(){return it.a})),i.d(n,"Slice3D",(function(){return nt.a})),i.d(n,"Export",(function(){return rt.a})),i.d(n,"ExportMenu",(function(){return ot.a})),i.d(n,"DateFormatter",(function(){return at.a})),i.d(n,"DurationFormatter",(function(){return st.a})),i.d(n,"NumberFormatter",(function(){return lt.a})),i.d(n,"TextFormatter",(function(){return ct.a})),i.d(n,"getTextFormatter",(function(){return ct.b})),i.d(n,"Inertia",(function(){return ht.a})),i.d(n,"Interaction",(function(){return ut.a})),i.d(n,"getInteraction",(function(){return ut.b})),i.d(n,"InteractionKeyboardObject",(function(){return dt.a})),i.d(n,"InteractionObject",(function(){return pt.a})),i.d(n,"InteractionObjectEventDispatcher",(function(){return ft.a})),i.d(n,"MouseCursorStyle",(function(){return gt.a})),i.d(n,"AMElement",(function(){return mt.a})),i.d(n,"Group",(function(){return yt.a})),i.d(n,"Paper",(function(){return vt.a})),i.d(n,"Tension",(function(){return bt.b})),i.d(n,"Basis",(function(){return bt.a})),i.d(n,"SVGContainer",(function(){return xt.a})),i.d(n,"ColorModifier",(function(){return wt.a})),i.d(n,"LinearGradient",(function(){return _t.a})),i.d(n,"LinearGradientModifier",(function(){return St.a})),i.d(n,"RadialGradientModifier",(function(){return kt})),i.d(n,"LinePattern",(function(){return Ct.a})),i.d(n,"Pattern",(function(){return Tt.a})),i.d(n,"RadialGradient",(function(){return Pt.a})),i.d(n,"RectPattern",(function(){return At.a})),i.d(n,"ColorizeFilter",(function(){return Mt})),i.d(n,"DesaturateFilter",(function(){return Et.a})),i.d(n,"DropShadowFilter",(function(){return It.a})),i.d(n,"BlurFilter",(function(){return Dt})),i.d(n,"Filter",(function(){return Ot.a})),i.d(n,"FocusFilter",(function(){return Lt})),i.d(n,"LightenFilter",(function(){return jt.a})),i.d(n,"GlobalAdapter",(function(){return Nt.b})),i.d(n,"globalAdapter",(function(){return Nt.c})),i.d(n,"Adapter",(function(){return Nt.a})),i.d(n,"Animation",(function(){return Ft.a})),i.d(n,"animate",(function(){return Ft.c})),i.d(n,"nextFrame",(function(){return Rt.a})),i.d(n,"readFrame",(function(){return Rt.c})),i.d(n,"writeFrame",(function(){return Rt.f})),i.d(n,"whenIdle",(function(){return Rt.e})),i.d(n,"triggerIdle",(function(){return Rt.d})),i.d(n,"Cache",(function(){return Vt.a})),i.d(n,"cache",(function(){return Vt.b})),i.d(n,"Color",(function(){return zt.a})),i.d(n,"color",(function(){return zt.c})),i.d(n,"isColor",(function(){return zt.d})),i.d(n,"castColor",(function(){return zt.b})),i.d(n,"ColorSet",(function(){return Bt.a})),i.d(n,"PatternSet",(function(){return Ht.a})),i.d(n,"InterfaceColorSet",(function(){return F.a})),i.d(n,"DictionaryDisposer",(function(){return Wt.b})),i.d(n,"Dictionary",(function(){return Wt.a})),i.d(n,"DictionaryTemplate",(function(){return Wt.c})),i.d(n,"Disposer",(function(){return Xt.b})),i.d(n,"MultiDisposer",(function(){return Xt.c})),i.d(n,"MutableValueDisposer",(function(){return Xt.d})),i.d(n,"CounterDisposer",(function(){return Xt.a})),i.d(n,"StyleRule",(function(){return P.c})),i.d(n,"StyleClass",(function(){return P.b})),i.d(n,"getElement",(function(){return P.q})),i.d(n,"addClass",(function(){return P.f})),i.d(n,"removeClass",(function(){return P.x})),i.d(n,"blur",(function(){return P.h})),i.d(n,"focus",(function(){return P.o})),i.d(n,"outerHTML",(function(){return P.v})),i.d(n,"isElement",(function(){return P.s})),i.d(n,"copyAttributes",(function(){return P.j})),i.d(n,"fixPixelPerfect",(function(){return P.n})),i.d(n,"ready",(function(){return P.w})),i.d(n,"EventDispatcher",(function(){return Yt.a})),i.d(n,"TargetedEventDispatcher",(function(){return Yt.b})),i.d(n,"ListIterator",(function(){return Gt.ListIterator})),i.d(n,"min",(function(){return Gt.min})),i.d(n,"max",(function(){return Gt.max})),i.d(n,"join",(function(){return Gt.join})),i.d(n,"Keyboard",(function(){return Ut.a})),i.d(n,"keyboard",(function(){return Ut.b})),i.d(n,"Language",(function(){return qt.a})),i.d(n,"IndexedIterable",(function(){return $t.a})),i.d(n,"ListGrouper",(function(){return $t.d})),i.d(n,"ListDisposer",(function(){return $t.c})),i.d(n,"List",(function(){return $t.b})),i.d(n,"ListTemplate",(function(){return $t.e})),i.d(n,"Morpher",(function(){return Kt.a})),i.d(n,"reverse",(function(){return Zt.b})),i.d(n,"or",(function(){return Zt.a})),i.d(n,"Percent",(function(){return V.a})),i.d(n,"percent",(function(){return V.c})),i.d(n,"isPercent",(function(){return V.b})),i.d(n,"Plugin",(function(){return Jt.a})),i.d(n,"Responsive",(function(){return Qt.a})),i.d(n,"ResponsiveBreakpoints",(function(){return Qt.b})),i.d(n,"defaultRules",(function(){return Qt.c})),i.d(n,"OrderedList",(function(){return te.a})),i.d(n,"SortedList",(function(){return te.c})),i.d(n,"OrderedListTemplate",(function(){return te.b})),i.d(n,"SortedListTemplate",(function(){return te.d})),i.d(n,"PX",(function(){return ee.f})),i.d(n,"STRING",(function(){return ee.g})),i.d(n,"NUMBER",(function(){return ee.c})),i.d(n,"DATE",(function(){return ee.a})),i.d(n,"DURATION",(function(){return ee.b})),i.d(n,"PLACEHOLDER",(function(){return ee.d})),i.d(n,"PLACEHOLDER2",(function(){return ee.e})),i.d(n,"isNaN",(function(){return k.isNaN})),i.d(n,"checkString",(function(){return k.checkString})),i.d(n,"checkBoolean",(function(){return k.checkBoolean})),i.d(n,"checkNumber",(function(){return k.checkNumber})),i.d(n,"checkObject",(function(){return k.checkObject})),i.d(n,"castString",(function(){return k.castString})),i.d(n,"castNumber",(function(){return k.castNumber})),i.d(n,"isString",(function(){return k.isString})),i.d(n,"isNumber",(function(){return k.isNumber})),i.d(n,"isObject",(function(){return k.isObject})),i.d(n,"isArray",(function(){return k.isArray})),i.d(n,"Validatable",(function(){return ie.a})),i.d(n,"path",(function(){return ne})),i.d(n,"colors",(function(){return re})),i.d(n,"ease",(function(){return oe})),i.d(n,"math",(function(){return ae})),i.d(n,"array",(function(){return se})),i.d(n,"number",(function(){return le})),i.d(n,"object",(function(){return ce})),i.d(n,"string",(function(){return he})),i.d(n,"time",(function(){return ue})),i.d(n,"utils",(function(){return de})),i.d(n,"iter",(function(){return Gt})),i.d(n,"type",(function(){return k})),i.d(n,"create",(function(){return we})),i.d(n,"createFromConfig",(function(){return _e})),i.d(n,"disposeAllCharts",(function(){return me})),i.d(n,"useTheme",(function(){return Se})),i.d(n,"unuseTheme",(function(){return Pe})),i.d(n,"unuseAllThemes",(function(){return ke})),i.d(n,"addLicense",(function(){return Ce}));var r=i("Rpw0"),o=i("Tjl+"),a=i("Y9w3"),s=i("C6dT"),l=i("A6AV"),c=i("Vs7R"),h=i("kQxV"),u=i("ux7t"),d=i("aCit"),p=i("Q4nc"),f=i("4DCw"),g=i("Mpxm"),m=i("mIpt"),y=i("EjGA"),v=i("ZhuL"),b=i("hpNl"),x=i("aGXA"),w=i("FzPm"),_=i("Ybtf"),S=i("m4/l"),P=i("58Sn"),k=i("Mtpk"),C=function(t){function e(){var e=t.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return S.c(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.href){var e=this.innerWidth,i=this.innerHeight;k.isNumber(this.widthRatio)&&(e=i*this.widthRatio,this.width=e),k.isNumber(this.heightRatio)&&(i=e*this.heightRatio,this.height=i),this.element.attr({width:e,height:i}),this.element.attrNS(P.d,"xlink:href",this.href)}},Object.defineProperty(e.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(t){this.setPropertyValue("href",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(t){this.setPropertyValue("widthRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(t){this.setPropertyValue("heightRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),e}(c.a);d.c.registeredClasses.Image=C;var T=i("p9TX"),A=i("PTiM"),O=i("UsNi"),M=i("W8Sc"),E=i("MZQ8"),I=i("1qam"),D=i("MXvJ"),L=i("R6wv"),j=i("jfaP"),N=i("xgTw"),F=i("MIZb"),R=i("Inf5"),V=i("tjMS"),z=function(t){function e(){var e=t.call(this)||this;e.className="Preloader",e.width=Object(V.c)(100),e.height=Object(V.c)(100);var i=new F.a,n=e.createChild(s.a);n.shouldClone=!1;var r=n.createChild(R.a);r.shouldClone=!1,r.radius=53,r.arc=360,r.fill=i.getFor("fill"),r.fillOpacity=.8,r.innerRadius=42,r.isMeasured=!1,e.backgroundSlice=r;var o=n.createChild(R.a);o.shouldClone=!1,o.radius=50,o.innerRadius=45,o.fill=i.getFor("alternativeBackground"),o.fillOpacity=.2,o.isMeasured=!1,e.progressSlice=o;var a=n.createChild(T.a);return a.shouldClone=!1,a.horizontalCenter="middle",a.verticalCenter="middle",a.isMeasured=!1,a.fill=i.getFor("text"),a.align="center",a.valign="middle",a.fillOpacity=.4,e.label=a,e.background.opacity=1,e.background.fill=i.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300,e.states.create("hidden").properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(n),e}return S.c(e,t),Object.defineProperty(e.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(t){var e=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",t),this.progressSlice.arc=360*t,this.label&&(this.label.text=Math.round(100*t)+"%"),t>=1?(this._started&&(this._started=void 0),d.c.events.once("enterframe",(function(){var t=e.hide();t&&!t.isFinished()?t.events.once("animationended",(function(){e.__disabled=!0})):e.__disabled=!0})),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):t>0&&(this.delay?this._started?this._started+this.delay<=(new Date).getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=(new Date).getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(t){this.setPropertyValue("delay",t)},enumerable:!0,configurable:!0}),e}(s.a);d.c.registeredClasses.Preloader=z;var B=i("GtDR"),H=i("xIv9"),W=i("CnhP"),X=i("ISWh"),Y=function(t){function e(){var e=t.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",(function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y})),e.applyTheme(),e}return S.c(e,t),Object.defineProperty(e.prototype,"__end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),e}(X.a);d.c.registeredClasses.Slider=Y;var G=i("Trvg"),U=i("cxKZ"),q=i("DziZ"),$=i("Rnbi"),K=i("Vk33"),Z=i("ND2/"),J=i("w4m0"),Q=i("BEgH"),tt=function(t){function e(){var e=t.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var i=new F.a,n=e.background;n.cornerRadius(25,25,25,25),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new $.a;r.direction="right",r.width=9,r.height=11,r.marginLeft=1,r.marginRight=1,r.horizontalCenter="middle",r.verticalCenter="middle",r.stroke=i.getFor("primaryButtonText"),r.fill=r.stroke,e.icon=r;var o=new W.a;o.width=11,o.height=11,o.horizontalCenter="middle",o.verticalCenter="middle",o.cornerRadius(0,0,0,0),o.stroke=i.getFor("primaryButtonText"),o.fill=r.stroke,e.togglable=!0;var a=e.states.create("active");return a.transitionDuration=0,a.properties.icon=o,e.defaultState.transitionDuration=0,e.applyTheme(),e}return S.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),k.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},e}(x.a);d.c.registeredClasses.PlayButton=tt;var et=i("ncT3"),it=i("Mr4Y"),nt=i("nPzZ"),rt=i("GAaQ"),ot=i("qJno"),at=i("7XB+"),st=i("akNo"),lt=i("CTEm"),ct=i("MipW"),ht=i("0PyG"),ut=i("zhwk"),dt=i("Oe1l"),pt=i("vbOF"),ft=i("YotE"),gt=i("qCRI"),mt=i("pzs1"),yt=i("cOH5"),vt=i("P7v+"),bt=i("aFzC"),xt=i("HDh7"),wt=i("DA7/"),_t=i("sxA1"),St=i("/e9j"),Pt=i("CuFa"),kt=function(t){function e(){var e=t.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new Pt.a,e.applyTheme(),e}return S.c(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(i("3/51").a);d.c.registeredClasses.RadialGradientModifier=kt;var Ct=i("WODi"),Tt=i("ZLF9"),At=i("2gKx"),Ot=i("ohjg"),Mt=function(t){function e(){var e=t.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return S.c(e,t),e.prototype.applyFilter=function(){var t,e,i,n=this.intensity,r=1-n,o=this.color;o&&o.rgb?(t=o.rgb.r/255*n,e=o.rgb.g/255*n,i=o.rgb.b/255*n):(t=0,e=0,i=0),this.feColorMatrix.attr({values:r+" 0 0 0 "+t+" 0 "+r+" 0 0 "+e+" 0 0 "+r+" 0 "+i+" 0 0 0 1 0"})},Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(t){this.properties.intensity=t,this.applyFilter()},enumerable:!0,configurable:!0}),e}(Ot.a);d.c.registeredClasses.ColorizeFilter=Mt;var Et=i("85D4"),It=i("VAFc"),Dt=function(t){function e(){var e=t.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return S.c(e,t),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e}(Ot.a);d.c.registeredClasses.BlurFilter=Dt;var Lt=function(t){function e(){var e=t.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":(new F.a).getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return S.c(e,t),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.feMorphology.attr({radius:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+t+" 0"})},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),t.prototype.setSprite.call(this,e)},e}(Ot.a),jt=i("C84C"),Nt=i("x79X"),Ft=i("1yyj"),Rt=i("/9XX"),Vt=i("eCqC"),zt=i("8ZqG"),Bt=i("DHte"),Ht=i("W0E6"),Wt=i("+qIf"),Xt=i("hD5A"),Yt=i("o0Lc"),Gt=i("Wglt"),Ut=i("WYhe"),qt=i("P/bD"),$t=i("vMqJ"),Kt=i("oC3T"),Zt=i("MlsF"),Jt=i("Iz1H"),Qt=i("TGuK"),te=i("VGgz"),ee=i("ScGY"),ie=i("/IEW"),ne=i("hGwe"),re=i("hxI2"),oe=i("0FpR"),ae=i("Gg2j"),se=i("hJ5i"),le=i("3Cxr"),ce=i("Qkdp"),he=i("wUYf"),ue=i("L91H"),de=i("v9UT"),pe=function(t){function e(){var e=t.call(this)||this;e.className="AmChartsLogo",e.valign="bottom";e.opacity=.3,e.defaultState.properties.opacity=.4,e.url="https://www.amcharts.com/",e.urlTarget="_blank",e.showSystemTooltip=!0,e.readerTitle="Chart created using amCharts library",e.width=66,e.height=21,e.background.opacity=0;var i=Object(zt.c)("#474758");"#ffffff"==(new F.a).getFor("background").alternative.hex&&(i=Object(zt.c)("#ffffff"));var n=new _t.a;n.addColor(i),n.addColor(i,1,.75),n.addColor(Object(zt.c)("#3cabff"),1,.755),n.rotation=-10;var r=n,o=e.createChild(N.a);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:15,y:15},{x:27,y:15},{x:36,y:6},{x:40.5,y:10.5},{x:45,y:6},{x:54,y:15},{x:60,y:15}]],o.strokeWidth=6*.3,o.tensionX=.8,o.tensionY=1,o.stroke=Object(zt.c)("#3cabff");var a=e.createChild(N.a);a.shouldClone=!1,a.isMeasured=!1,a.segments=[[{x:6,y:15},{x:15,y:15},{x:27,y:12*.3},{x:39.9,y:15},{x:51,y:15},{x:60,y:15}]],a.strokeWidth=6*.3,a.tensionX=.75,a.tensionY=1,a.stroke=r,e._disposers.push(a);var s=new Et.a;e.filters.push(s);var l=new Et.a;l.saturation=1;var c=e.states.create("hover");return c.properties.opacity=1,c.filters.push(l),e.applyTheme(),e}return S.c(e,t),e}(s.a),fe=i("pjXm");function ge(t,e){var i=P.q(t);if(i){i.innerHTML="";var n=new xt.a(i),o=new vt.a(n.SVGContainer,"svg-"+(xt.b.length-1)),a=new s.a;a.htmlContainer=i,a.svgContainer=n,a.width=Object(V.c)(100),a.height=Object(V.c)(100),a.background.fillOpacity=0,a.paper=o,o.append(a.group),a.relativeWidth=1,a.relativeHeight=1,n.container=a;var l=a.createChild(e);l.topParent=a;var c=l.uid;d.c.invalidSprites[c]=[],d.c.invalidDatas[c]=[],d.c.invalidPositions[c]=[],d.c.invalidLayouts[c]=[],a.baseId=c,l.isBaseSprite=!0,l.focusFilter=new Lt,d.c.baseSprites.push(l),d.c.baseSpritesByUid[c]=l,l.maskRectangle={x:0,y:0,width:Math.max(n.width,0),height:Math.max(n.height,0)},a.events.on("maxsizechanged",(function(t){0!=t.previousWidth&&0!=t.previousHeight||a.deepInvalidate(),l.maskRectangle&&(l.maskRectangle={x:0,y:0,width:Math.max(n.width,0),height:Math.max(n.height,0)})}));var h=null,u=function(){l.isDisposed()?h=null:null==P.r(l.dom)?(fe.b("Chart was not disposed",l.uid),h=null):h=setTimeout(u,1e3)};u(),l.addDisposer(new Xt.b((function(){null!==h&&clearTimeout(h),se.remove(d.c.baseSprites,l),d.c.baseSpritesByUid[l.uid]=void 0}))),l.addDisposer(a);var f=a.createChild(s.a);f.topParent=a,f.width=Object(V.c)(100),f.height=Object(V.c)(100),f.isMeasured=!1,a.tooltipContainer=f,l.tooltip=new U.a,l.tooltip.hide(0),l.tooltip.setBounds({x:0,y:0,width:f.maxWidth,height:f.maxHeight}),f.events.on("maxsizechanged",(function(){k.getValue(l.tooltip).setBounds({x:0,y:0,width:f.maxWidth,height:f.maxHeight})}),void 0,!1);var g=new z;if(g.events.on("inited",(function(){g.__disabled=!0}),void 0,!1),a.preloader=g,l instanceof s.a&&!l.hasLicense()){var m=f.createChild(pe);f.events.on("maxsizechanged",(function(t){f.maxWidth<=100||f.maxHeight<=50?m.hide():(m.isHidden||m.isHiding)&&m.show()}),void 0,!1),l.logo=m,m.align="left",m.valign="bottom"}if(de.used(l.numberFormatter),a.isStandaloneInstance=!0,p.a.onlyShowOnViewport)if(P.t(i,p.a.viewportTarget))p.a.queue&&ye(l);else{l.__disabled=!0,l.tooltipContainer.__disabled=!0;var y=[P.g(window,"DOMContentLoaded",(function(){be(l)})),P.g(window,"load",(function(){be(l)})),P.g(window,"resize",(function(){be(l)})),P.g(window,"scroll",(function(){be(l)}))];p.a.viewportTarget&&(y.push(P.g(p.a.viewportTarget,"resize",(function(){be(l)}))),y.push(P.g(p.a.viewportTarget,"scroll",(function(){be(l)}))));var v=new Xt.c(y);l.addDisposer(v),l.vpDisposer=v}else p.a.queue&&ye(l);return l}throw r.b.log("html container not found"),new Error("html container not found")}function me(){for(;0!==d.c.baseSprites.length;)d.c.baseSprites.pop().dispose()}function ye(t){-1==d.c.queue.indexOf(t)&&(t.__disabled=!0,t.tooltipContainer.__disabled=!0,t.events.disableType("appeared"),0==d.c.queue.length&&xe(t),t.addDisposer(new Xt.b((function(){ve(t)}))),d.c.queue.push(t))}function ve(t){var e=d.c.queue.indexOf(t);if(e>=0){d.c.queue.splice(d.c.queue.indexOf(t),1);var i=d.c.queue[e];i&&xe(i)}}function be(t){t.__disabled&&P.t(t.htmlContainer,p.a.viewportTarget)&&(t.vpDisposer&&t.vpDisposer.dispose(),ye(t))}function xe(t){t.__disabled=!1,t.tooltipContainer.__disabled=!1,t.events.enableType("appeared"),t.showOnInit&&t.events.on("appeared",(function(){ve(t)})),t.vpDisposer&&t.vpDisposer.dispose(),t instanceof a.a?(t.invalidateData(),t.reinit(),t.events.once("datavalidated",(function(){t.showOnInit?t.appear():ve(t)}))):t.showOnInit?t.appear():ve(t)}function we(t,e){var i;k.isString(e)&&(k.hasValue(d.c.registeredClasses[e])?e=d.c.registeredClasses[e]:(e=d.c.registeredClasses.Container,i=new Error("Class ["+e+"] is not loaded.")));var n=ge(t,e);return i&&n.raiseCriticalError(i),n}function _e(t,e,i){var n,r;k.hasValue(i)||(i=t.type,delete t.type),k.hasValue(e)||(e=t.container,delete t.container),k.isString(i)&&k.hasValue(d.c.registeredClasses[i])?n=d.c.registeredClasses[i]:"function"!=typeof i?(n=s.a,r=new Error("Class ["+i+"] is not loaded.")):n=i;var o=ge(e,n);return r?o.raiseCriticalError(r):o.config=t,o}function Se(t){-1===d.c.themes.indexOf(t)&&d.c.themes.push(t)}function Pe(t){se.remove(d.c.themes,t)}function ke(){d.c.themes=[]}function Ce(t){p.a.licenses.push(t)}window.am4core=n,i.p=function(t){return/(.*\/)[^\/]*$/.exec(t)[1]}(function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src)},O8xK:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("G5U1"),o=i("T9LF"),a=i("QXbb"),s=i("JqbS");n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,r.Promise||o.Promise),i="function"==typeof t;return this.then(i?function(i){return s(e,t()).then((function(){return i}))}:t,i?function(i){return s(e,t()).then((function(){throw i}))}:t)}})},"OB1/":function(t,e,i){var n=i("G5U1"),r=i("T9LF"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i("pb4Y")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},ODWe:function(t,e,i){var n=i("U3hN"),r=i("EhJv"),o=i("mntN")(!1),a=i("VYrJ")("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,c=[];for(i in s)i!=a&&n(s,i)&&c.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(c,i)||c.push(i));return c}},OKlB:function(t,e,i){var n=i("Gb1H");n(n.S,"Number",{isNaN:function(t){return t!=t}})},OVUc:function(t,e,i){"use strict";e.a=function(t,e,i){return new Promise((function(r,o){var a=n.hasValue(i)&&"blob"==i.responseType,s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status){var t,i;if(a)return void function(t){return new Promise((function(e,i){var n=new FileReader;n.onload=function(t){e(n.result)},n.onerror=function(t){i(t)},n.readAsText(t)}))}(t=s.response).then((function(i){var n={xhr:s,error:!1,response:i,blob:t,type:s.getResponseHeader("Content-Type"),target:e};r(n)}));i=s.responseText||s.response;var n={xhr:s,error:!1,response:i,blob:t,type:s.getResponseHeader("Content-Type"),target:e};r(n)}else o({xhr:s,error:!0,type:s.getResponseHeader("Content-Type"),target:e})},s.onerror=function(){o({xhr:s,error:!0,type:s.getResponseHeader("Content-Type"),target:e})},s.open("GET",t,!0),i&&i.withCredentials&&(s.withCredentials=!0),n.hasValue(i)){if(n.hasValue(i.requestHeaders))for(var l=0;l<i.requestHeaders.length;l++){var c=i.requestHeaders[l];s.setRequestHeader(c.key,c.value)}n.hasValue(i.responseType)&&(s.responseType=i.responseType)}s.send()}))};var n=i("Mtpk")},OWpl:function(t,e,i){var n=i("vJiZ"),r=i("3BzE");i("5lay")("keys",(function(){return function(t){return r(n(t))}}))},OXm9:function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i("m4/l"),r=i("Meme"),o=i("ND2/"),a=i("w4m0"),s=i("aCit"),l=i("tjMS"),c=i("Gg2j"),h=i("hGwe"),u=i("v9UT"),d=i("Mtpk"),p=i("TGuK"),f=i("5xph"),g=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=Object(l.c)(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return n.c(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="horizontal"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.y=t.pixelY,e.height=t.axisLength}},e.prototype.toAxisPosition=function(t){var e=this.axis;if(e){var i=1-t,n=e.relativePositionSprite,r=e.pixelY;if(n?r=u.spritePointToSprite({x:0,y:this.pixelY},this.parent,n).y:n=e.parent,n)return 1-(i-r/n.innerHeight)/(e.axisLength/n.innerHeight)}return t},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){var i=e.title;i.valign="middle",e.height instanceof l.a||(e.height=Object(l.c)(100)),this.opposite?(i.rotation=90,this.line.toBack(),i.toFront()):(i.rotation=-90,i.toBack(),this.line.toFront())}},e.prototype.updateTooltip=function(){if(this.axis){var t=0,e=2e3,i=this.axisLength;this.opposite?this.inside&&(t=-2e3,e=2e3):this.inside||(t=-2e3,e=2e3),this.axis.updateTooltip("horizontal",{x:t,y:0,width:e,height:i})}},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredHeight-t.pixelPaddingTop-t.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:0,y:this.positionToCoordinate(t)}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.y,t.x)},e.prototype.coordinateToPosition=function(t,e){var i,n=this.axis,r=n.axisFullLength;return i=n.renderer.inversed?1-n.start-t/r:t/r+(1-n.end),c.round(i,5)},e.prototype.getPositionRangePath=function(t,e){var i=c.fitToRange(this.positionToCoordinate(t),0,this.axisLength),n=c.fitToRange(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),o=this.getWidth(),a=Math.min(i,n);return h.rectToPath({x:0,y:a,width:o,height:r},!0)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=h.moveTo({x:0,y:0})+h.lineTo({x:this.getWidth(),y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;try{u.used(this.axis.title.measuredWidth)}catch(t){}n.x=u.spritePointToSprite({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?r*=t.inside?-1:1:r*=t.inside?1:-1,t.path=h.moveTo({x:0,y:0})+h.lineTo({x:r,y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=h.moveTo({x:0,y:0})+h.lineTo({x:0,y:this.axisLength})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getWidth(),n=this.axisLength,r=e.basePoint.y,o=this.baseGrid;if(r<-.2||r>n+.2)o.hide(0);else{var a=u.spritePointToSprite({x:0,y:0},this.gridContainer,o.parent).x;o.path=h.moveTo({x:0,y:0})+h.lineTo({x:i,y:0}),o.moveTo({x:a,y:r}),o.show(0)}},e.prototype.updateLabelElement=function(t,e,i,n){d.hasValue(n)||(n=t.location),e+=(i-e)*n,t.isMeasured=!t.inside;var r,o=this.positionToPoint(e),a=0,s=this.gridContainer.maxWidth;this.opposite?(t.inside?(r="right","left"==t.align&&(a=-s,r="left"),"center"==t.align&&(a=-s/2,r="middle")):r="left",o.x=0+a):(t.inside?(r="left","right"==t.align&&(a=s,r="right"),"center"==t.align&&(a=s/2,r="middle")):r="right",o.x=this.measuredWidth+a),0==t.rotation&&(t.horizontalCenter=r),this.positionItem(t,o),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,o=e.startPoint,a=e.endPoint,s=e.pixelMarginLeft,l=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;o.y=c.fitToRange(o.y,-1,this.axisLength+1),a.y=c.fitToRange(a.y,-1,this.axisLength+1),o.y==a.y&&(o.y<0||o.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var h=Math.abs(l-s);i.x=s,i.height=0,i.width=h,n.x=s,n.height=0,n.width=h,r.width=h,r.height=Math.abs(a.y-o.y),r.x=s,r.y=a.y},e.prototype.createBreakSprites=function(t){t.startLine=new o.a,t.endLine=new o.a;var e=new a.a;e.setWavedSides(!0,!1,!0,!1),t.fillShape=e},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,n=i.axisFullLength;return e=i.renderer.inversed?(t-i.start)*n:(i.end-t)*n,c.round(e,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof f.a&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.x=u.spritePointToSprite({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(r.a);s.c.registeredClasses.AxisRendererY=g,p.c.push({relevant:p.b.widthS,state:function(t,e){if(t instanceof g){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),p.c.push({relevant:p.b.widthXS,state:function(t,e){if(t instanceof g){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}})},Obr2:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("vJiZ"),o=i("W0fk"),a=i("K0ev"),s=i("nHHr").f;i("gD3S")&&n(n.P+i("3/+B"),"Object",{__lookupGetter__:function(t){var e,i=r(this),n=o(t,!0);do{if(e=s(i,n))return e.get}while(i=a(i))}})},Oe1l:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("zhwk"),r=i("Rpw0"),o=i("hJ5i"),a=function(){function t(t,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=t,this.keyboardEvent=e,this._startedOn=(new Date).getTime(),Object(n.b)().processDragStart(t),r.b.animations.push(this),this.update()}return t.prototype.update=function(){var t=this.interaction,e=Object(n.b)().getKeyboardOption(t,"speed"),i=Object(n.b)().getKeyboardOption(t,"accelleration"),r=Object(n.b)().getKeyboardOption(t,"accellerationDelay"),o={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,i=1):this.keyboardEvent.ctrlKey&&(e*=2);var a=(new Date).getTime()-this._startedOn,s=a-r;if(i>0&&s>0){var l=a/r;a=r,o.x+=this.directionX*(e*i*l*s),o.y+=this.directionY*(e*i*l*s)}o.x+=this.directionX*(e*a),o.y+=this.directionY*(e*a),Object(n.b)().handleTransformMove(t,o,{x:0,y:0},this.keyboardEvent,!0,!1)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(Object(n.b)().processDragStop(this.interaction),o.remove(r.b.animations,this))},t}()},"Oko+":function(t,e,i){"use strict";var n=i("Gb1H"),r=i("dstF")(3);n(n.P+n.F*!i("GQop")([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},OuXI:function(t,e,i){var n=i("Gb1H"),r=i("iAlL")(!0);n(n.S,"Object",{entries:function(t){return r(t)}})},OxI3:function(t,e,i){var n=i("Gb1H"),r=i("0C8c"),o=Math.exp;n(n.S+n.F*i("AEc5")((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},"P/bD":function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("Tjl+"),o=i("x79X"),a=i("hJ5i"),s=i("Mtpk"),l=i("JNIx"),c=i("Q4nc"),h=function(t){function e(){var e=t.call(this)||this;return e.adapter=new o.a(e),e._locale=l.a,e._defaultLocale=l.a,e.className="Language",s.hasValue(c.a.defaultLocale)&&(e.locale=c.a.defaultLocale),e.applyTheme(),e}return n.c(e,t),e.prototype.getLocale=function(t){return null==t&&(t=this._locale),this.adapter.apply("locale",{locale:t}).locale},e.prototype.translate=function(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];e=this.getLocale(e);var o=t,a=this.getTranslations(e)[t];if(null===a)a="";else if(s.hasValue(a))a&&(o=a);else if(e!==this._defaultLocale)return this.translate.apply(this,n.f([t,this._defaultLocale],i));if(i.length)for(var l=i.length,c=0;c<l;++c)o=o.split("%"+(c+1)).join(i[c]);return this.adapter.apply("translate",{translation:o,locale:e}).translation},e.prototype.translateAny=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.translate(t,e)},e.prototype.translateEmpty=function(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var o=this.translate.apply(this,n.f([t,e],i));return o==t?"":o},e.prototype.translateFunc=function(t,e){e=this.getLocale(e);var i=this.getTranslations(e)[t];return null!=i?i:e!==this._defaultLocale?this.translateFunc(t,this._defaultLocale):function(){return""}},e.prototype.translateAll=function(t,e){var i=this;return this.isDefault()?t:a.map(t,(function(t){return i.translate(t,e)}))},e.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale},set:function(t){if(this._locale!=t&&(this._locale=t,this.events.isEnabled("localechanged"))){var e={type:"localechanged",locale:t,target:this};this.events.dispatchImmediately("localechanged",e)}},enumerable:!0,configurable:!0}),e.prototype.getTranslations=function(t){return this.adapter.apply("translations",{translations:t,locale:t}).translations},e}(r.b)},"P7v+":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),e.b=function(){if(null===l){var t=document.createElement("div");t.hidden=!0,document.body.appendChild(t);var e=new o.a(t,!0);l=new s(e.SVGContainer,"ghost")}return l};var n=i("pzs1"),r=i("cOH5"),o=i("HDh7"),a=i("58Sn"),s=function(){function t(t,e){this.container=t,this.id=e;var i=document.createElementNS(a.a,"svg");i.setAttribute("version","1.1"),i.setAttributeNS(a.e,"xmlns",a.a),i.setAttributeNS(a.e,"xmlns:xlink",a.d),i.setAttribute("role","group"),this.container.appendChild(i);var n=document.createElementNS(a.a,"desc");n.appendChild(document.createTextNode("JavaScript chart by amCharts")),i.appendChild(n),this.defs=document.createElementNS(a.a,"defs"),i.appendChild(this.defs),i.style.width="100%",i.style.height="100%",i.style.overflow="visible",this.svg=i}return t.prototype.add=function(t){return new n.a(t)},t.prototype.addGroup=function(t){return new r.a(t)},t.prototype.append=function(t){t&&this.svg.appendChild(t.node)},t.prototype.appendDef=function(t){t&&this.defs.appendChild(t.node)},t.prototype.foreignObject=function(){return new n.a("foreignObject")},t.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},t}(),l=null},PTiM:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("Vs7R"),o=i("8ZqG"),a=i("sxA1"),s=i("aCit"),l=i("Mtpk"),c=i("Gg2j"),h=function(t){function e(){var e=t.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=Object(o.c)(),e.x1=0,e.y1=0,e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(e.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(t){l.isNumber(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof a.a&&(e=1e-5),this.setPropertyValue("x1",t,!0),this.element.attr({x1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){var t=this.getPropertyValue("x2");return l.isNumber(t)||(t=this.pixelWidth),t},set:function(t){l.isNumber(t)||(t=0),this.setPropertyValue("x2",t,!0),this.element.attr({x2:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(t){l.isNumber(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof a.a&&(e=1e-5),this.setPropertyValue("y1",t,!0),this.element.attr({y1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){var t=this.getPropertyValue("y2");return l.isNumber(t)||(t=this.pixelHeight),t},set:function(t){l.isNumber(t)||(t=0),this.setPropertyValue("y2",t,!0),this.element.attr({y2:t})},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.x2,y:this.y2},n=c.getMidPoint(e,i,t),r=c.getAngle(e,i);return{x:n.x,y:n.y,angle:r}},e}(r.a);s.c.registeredClasses.Line=h},PXSi:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("xSzy"),o=i("LNZc"),a=i("snR7"),s=i("UwWU"),l=i("FmWr"),c=i("DvJ+"),h=i("T9LF").ArrayBuffer,u=i("QXbb"),d=o.ArrayBuffer,p=o.DataView,f=r.ABV&&h.isView,g=d.prototype.slice,m=r.VIEW;n(n.G+n.W+n.F*(h!==d),{ArrayBuffer:d}),n(n.S+n.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return f&&f(t)||c(t)&&m in t}}),n(n.P+n.U+n.F*i("AEc5")((function(){return!new d(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==g&&void 0===e)return g.call(a(this),t);for(var i=a(this).byteLength,n=s(t,i),r=s(void 0===e?i:e,i),o=new(u(this,d))(l(r-n)),c=new p(this),h=new p(o),f=0;n<r;)h.setUint8(f++,c.getUint8(n++));return o}}),i("vdWU")("ArrayBuffer")},Pr7S:function(t,e,i){var n=i("DvJ+");i("5lay")("isFrozen",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},Puh1:function(t,e,i){"use strict";i.d(e,"b",(function(){return d})),i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("AC2I"),o=i("Inf5"),a=i("IbTV"),s=i("BmDP"),l=i("aCit"),c=i("Gg2j"),h=i("Mtpk"),u=i("tjMS"),d=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(t){this.setValue("radiusValue",t)},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,n,r){return t.prototype.hide.call(this,e,i,0,["value","radiusValue"])},e.prototype.show=function(e,i,n){return t.prototype.show.call(this,e,i,["value","radiusValue"])},e}(r.b),p=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=Object(u.c)(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return n.c(e,t),e.prototype.createSlice=function(){return new o.a},e.prototype.createTick=function(){return new s.a},e.prototype.createLabel=function(){return new a.a},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),h.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},e.prototype.createDataItem=function(){return new d},e.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#')}% ({value.value})",t.states.create("hover").properties.scale=1.05,t.defaultState.properties.shiftRadius=0,t.togglable=!0,t.events.on("toggled",(function(t){t.target.hideTooltip()})),t.states.create("active").properties.shiftRadius=.1},e.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=c.getArcRect(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var i=this.dataItems.getIndex(e).values.radiusValue.percent;i>this._maxRadiusPercent&&(this._maxRadiusPercent=i)}t.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort((function(t,e){var i=(t.slice.middleAngle+360)%360,n=(e.slice.middleAngle+360)%360;return i>270&&(i-=360),n>270&&(n-=360),i<n?-1:1})),this._leftItems.sort((function(t,e){return(t.slice.middleAngle+360)%360<(e.slice.middleAngle+360)%360?1:-1})),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},e.prototype.validateDataElement=function(e){if(this.pixelRadius>0){this.ignoreZeroValues&&0==e.value?e.__disabled=!0:e.__disabled=!1;var i=e.slice;if(i.radius=this.pixelRadius,h.isNumber(e.radiusValue)&&(i.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),i.innerRadius instanceof u.a||(i.innerRadius=this.pixelInnerRadius),i.startAngle=this._currentStartAngle,i.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var n=e.label,r=e.tick;r.slice=i,r.label=n;var o=(i.middleAngle+360)%360,a=void 0;if(this.alignLabels){var s=n.pixelRadius(i.radius),l=r.length+s;n.dx=0,n.dy=0,n.verticalCenter="middle";var c=this._arcRect;o>270||o<=90?(l+=(c.width+c.x)*this.pixelRadius,n.horizontalCenter="left",this._rightItems.push(e)):(l-=c.x*this.pixelRadius,n.horizontalCenter="right",this._leftItems.push(e),l*=-1);var d=i.radius+r.length+s;a={x:l,y:i.iy*d},n.moveTo(a)}else{var p=i.depth;h.isNumber(p)||(p=0),n.fixPosition(i.middleAngle,i.radius,i.radiusY,0,-p)}}this._currentStartAngle+=i.arc,t.prototype.validateDataElement.call(this,e)}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(t){this._pixelRadius!=t&&(this._pixelRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(t){this._pixelInnerRadius!=t&&(this._pixelInnerRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){var t=this.getPropertyValue("startAngle");return h.isNumber(t)?t:this._startAngleInternal},set:function(t){this.setPropertyValue("startAngle",c.normalizeAngle(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){var t=this.getPropertyValue("endAngle");return h.isNumber(t)?t:this._endAngleInternal},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem.slice,n=e.locationX;h.isNumber(n)||(n=.5);var r=e.locationY;h.isNumber(r)||(r=1);var o=i.startAngle+i.arc*n;e.x=r*i.radius*c.cos(o),e.y=r*i.radiusY*c.sin(o)},e.prototype.handleSliceMove=function(t){if(!this.alignLabels){var e=t.target,i=e.dataItem;if(i){var n=i.label;n&&(n.dx=n.fdx+e.dx+e.pixelX,n.dy=n.fdy+e.dy+e.pixelY)}}},Object.defineProperty(e.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var t=this.chart;return t?c.getArcRect(t.startAngle,t.endAngle,this.pixelRadius):c.getArcRect(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),e}(r.a);l.c.registeredClasses.PieSeries=p,l.c.registeredClasses.PieSeriesDataItem=d},Q4nc:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,licenses:[]}},QXbb:function(t,e,i){var n=i("snR7"),r=i("DbOM"),o=i("YEtG")("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||null==(i=n(a)[o])?e:r(i)}},QZG2:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("mntN")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!i("GQop")(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},Qgck:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{imulh:function(t,e){var i=+t,n=+e,r=65535&i,o=65535&n,a=i>>16,s=n>>16,l=(a*o>>>0)+(r*o>>>16);return a*s+(l>>16)+((r*s>>>0)+(65535&l)>>16)}})},Qkdp:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.entries=function(t){return function(e){for(var i in t)if(s(t,i)&&!e([i,t[i]]))break}},e.keys=o,e.keysOrdered=a,e.hasKey=s,e.getKey=function(t,e){return t[e]},e.eachContinue=l,e.each=function(t,e){l(t,(function(t,i){return e(t,i),!0}))},e.eachOrdered=function(t,e,i){n.each(a(t,i),(function(i){e(i,t[i])}))},e.copy=function(t){return Object.assign({},t)},e.merge=function(t,e){return Object.assign({},t,e)},e.copyProperties=c,e.softCopyProperties=function(t,e,i){n.each(i,(function(i){r.hasValue(t[i])&&!r.hasValue(e[i])&&(e[i]=t[i])}))},e.forceCopyProperties=function(t,e,i){n.each(i,(function(i){e[i]=t[i]}))},e.copyAllProperties=function(t,e){c(t,e,o(t))};var n=i("hJ5i"),r=i("Mtpk");function o(t){var e=[];for(var i in t)s(t,i)&&e.push(i);return e}function a(t,e){return o(t).sort(e)}function s(t,e){return{}.hasOwnProperty.call(t,e)}function l(t,e){for(var i in t)if(s(t,i)&&!e(i,t[i]))break}function c(t,e,i){n.each(i,(function(i){r.hasValue(t[i])&&(e[i]=t[i])}))}},QtEf:function(t,e,i){var n=i("Gb1H"),r=Math.atanh;n(n.S+n.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},R6wv:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("Vs7R"),o=i("oC3T"),a=i("aCit"),s=i("hGwe"),l=i("Mtpk"),c=function(t){function e(){var e=t.call(this)||this;return e.className="Polygon",e.element=e.paper.add("path"),e.shapeRendering="auto",e._currentPoints=[],e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"points",{get:function(){var t=this.getPropertyValue("points"),e=this.path;if(e&&(!t||0==t.length)){for(var i=e.slice(1,e.length-1).split("ZM"),n=0;n<i.length;n++){var r=i[n];if(r.length>0){var o=r.split("M"),a=o[0],s=o[1];if(a&&a.length>0){var l=a.split("L");if(l.length>0){var c=[],h=[c];t.push(h);for(var u=0;u<l.length;u++){var d=l[u].split(",");c.push({x:+d[0],y:+d[1]})}if(s&&s.length>0){var p=s.split("L");if(p.length>0){var f=[];for(h.push(f),u=p.length-1;u>=0;u--)d=p[u].split(","),f.push({x:+d[0],y:+d[1]})}}}}}}this.setPropertyValue("points",t),this._currentPoints=t}return t},set:function(t){this.setPropertyValue("points",t,!0),this._currentPoints=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentPoints",{get:function(){return this._currentPoints&&0!=this._currentPoints.length||!this.path||(this._currentPoints=this.points),this._currentPoints},set:function(t){this._currentPoints!=t&&(this._currentPoints=t,this.draw())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){var e,i,n,r,o="",a=this._currentPoints;if(a.length>0){for(var c=0,h=a.length;c<h;c++){var u=a[c][0],d=a[c][1];if(u&&u.length>0){var p=u[0];o+=s.moveTo(p);for(var f=0;f<u.length;f++)p=u[f],o+=s.lineTo(p),(!l.isNumber(i)||i<p.x)&&(i=p.x),(!l.isNumber(e)||e>p.x)&&(e=p.x),(!l.isNumber(n)||n>p.y)&&(n=p.y),(!l.isNumber(r)||r<p.y)&&(r=p.y)}if(d&&d.length>0){p=d[0],o+=s.moveTo(p);for(var g=0,m=d.length;g<m;g++)p=d[g],o+=s.lineTo(p)}}o&&(o+=s.closePath()),this.bbox.x=e,this.bbox.y=n,this.bbox.width=i-e,this.bbox.height=r-n,t.prototype.setPath.call(this,o)}},e.prototype.setPath=function(e){return!!t.prototype.setPath.call(this,e)&&(this.points=[],this._bbox=this.group.getBBox(),!0)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"centerPoint",{get:function(){return{x:this.bbox.x+this.bbox.width/2,y:this.bbox.y+this.bbox.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new o.a(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),e}(r.a);a.c.registeredClasses.Polygon=c},RC2a:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("FmWr"),o=i("zAAN"),a="".endsWith;n(n.P+n.F*i("IYrR")("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),i=arguments.length>1?arguments[1]:void 0,n=r(e.length),s=void 0===i?n:Math.min(r(i),n),l=String(t);return a?a.call(e,l,s):e.slice(s-l.length,s)===l}})},Rnbi:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("Vs7R"),o=i("aCit"),a=i("hGwe"),s=function(t){function e(){var e=t.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.pixelWidth,n=this.pixelHeight;switch(this.direction){case"right":e=a.moveTo({x:0,y:0})+a.lineTo({x:i,y:n/2})+a.lineTo({x:0,y:n})+a.closePath();break;case"left":e=a.moveTo({x:i,y:0})+a.lineTo({x:0,y:n/2})+a.lineTo({x:i,y:n})+a.closePath();break;case"bottom":e=a.moveTo({x:0,y:0})+a.lineTo({x:i,y:0})+a.lineTo({x:i/2,y:n})+a.closePath();break;case"top":e=a.moveTo({x:i/2,y:0})+a.lineTo({x:i,y:n})+a.lineTo({x:0,y:n})+a.closePath()}this.path=e},Object.defineProperty(e.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(t){this.setPropertyValue("direction",t,!0)},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.Triangle=s},RpVB:function(t,e,i){"use strict";i("Mvcd")("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},Rpw0:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return h}));var n=i("aCit"),r=i("C6dT"),o=i("/9XX"),a=i("hJ5i"),s=i("Qkdp"),l=i("pjXm"),c=function(){function t(){this._isPaused=!1,this.animations=[],this.uid=n.c.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return t.prototype.reportTime=function(t,e){this.dummyCounter,e&&(this.time=Date.now())},t.prototype.update=function(){var t=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();for(var i in n.c.dispatchImmediately("enterframe"),n.c.invalidDatas)if(s.hasKey(n.c.invalidDatas,i)){for(var r=n.c.invalidDatas[i];r.length>0;){var l=(c=r[0]).dataProvider;if(c.isDisposed())a.remove(r,c);else if(l&&l.dataInvalid)try{if(l.validateData(),l.dataValidationProgress<1)break}catch(t){a.remove(r,l),l.raiseCriticalError(t)}else try{if(c.validateData(),c.dataValidationProgress<1)break}catch(t){a.remove(r,c),c.raiseCriticalError(t)}}if(Date.now()-e>this.updateStepDuration)break}for(;n.c.invalidRawDatas.length>0;)if((c=n.c.invalidRawDatas[0]).isDisposed())a.remove(n.c.invalidRawDatas,c);else try{c.validateRawData()}catch(t){a.remove(n.c.invalidRawDatas,c),c.raiseCriticalError(t)}for(;n.c.invalidDataItems.length>0;){if(l=(c=n.c.invalidDataItems[0]).dataProvider,c.isDisposed()||c.dataInvalid||l&&l.dataInvalid);else try{c.validateDataItems()}catch(t){a.remove(n.c.invalidDataItems,c),c.raiseCriticalError(t)}a.remove(n.c.invalidDataItems,c)}for(;n.c.invalidDataRange.length>0;){var c;if(l=(c=n.c.invalidDataRange[0]).dataProvider,c.isDisposed()||c.dataInvalid||l&&l.dataInvalid);else try{c.validateDataRange(),c.skipRangeEvent||c.dispatchImmediately("datarangechanged"),c.skipRangeEvent=!1}catch(t){a.remove(n.c.invalidDataRange,c),c.raiseCriticalError(t)}a.remove(n.c.invalidDataRange,c)}var h=[];s.each(n.c.invalidLayouts,(function(e){t.validateLayouts(e)})),s.each(n.c.invalidPositions,(function(e){t.validatePositions(e)}));var u=!1;if(e=Date.now(),s.each(n.c.invalidSprites,(function(i,r){for(var o=0;r.length>0;){if(t.validateLayouts(i),t.validatePositions(i),5==++o){if(Date.now()-e>t.updateStepDuration)break;o=0}var s=r[r.length-1];if(s&&!s.isDisposed()){if(s._systemCheckIfValidate())if(t.checkIfValidate2(s))try{s._systemUpdate(h)}catch(t){s.invalid=!1,a.remove(r,s),s.raiseCriticalError(t)}else h.push(s);else h.push(s);s.invalid=!1}a.remove(r,s)}n.c.invalidSprites[i]=n.c.invalidSprites[i].concat(h)})),s.each(n.c.invalidSprites,(function(t,e){e.length>0&&(u=!0)})),s.each(n.c.invalidDatas,(function(t,e){e.length>0&&(u=!0)})),a.each(a.copy(this.animations),(function(t){t.update()})),s.each(n.c.invalidLayouts,(function(e){t.validateLayouts(e)})),s.each(n.c.invalidPositions,(function(e){t.validatePositions(e)})),Object(o.d)(),s.each(n.c.invalidLayouts,(function(e){t.validateLayouts(e)})),s.each(n.c.invalidPositions,(function(e){t.validatePositions(e)})),n.c.dispatchImmediately("exitframe"),(u||this.animations.length>0||[].length>0)&&this.requestFrame(),this.updateStepDuration<200){var d=!0;s.each(n.c.invalidDatas,(function(t,e){e.length>0&&(d=!1)})),s.each(n.c.invalidSprites,(function(t,e){e.length>0&&(d=!1)})),d&&(this.updateStepDuration=200)}}},t.prototype.checkIfValidate2=function(t){return!(t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid&&!t.dataItem.component.isTemplate)},t.prototype.requestFrame=function(){var t=this;this._frameRequested||(Object(o.b)((function(){t.update()})),this._frameRequested=!0)},t.prototype.softInvalidate=function(t){var e=this;t.children.each((function(t){t instanceof r.a&&e.softInvalidate(t),t.measureFailed&&(Object(n.b)(t,"Label")?t.hardInvalidate():t.invalidate(),t.measureFailed=!1)}))},t.prototype.validatePositions=function(t){for(var e=n.c.invalidPositions[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())a.remove(e,i);else try{i._systemValidatePositions()}catch(t){i.positionInvalid=!1,a.remove(e,i),i.raiseCriticalError(t)}}},t.prototype.validateLayouts=function(t){for(var e=n.c.invalidLayouts[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())a.remove(e,i);else try{i.children.each((function(t){t._systemValidateLayouts()})),i.validateLayout()}catch(t){i.layoutInvalid=!1,a.remove(e,i),i.raiseCriticalError(t)}}},t.prototype.log=function(t){l.a(t)},Object.defineProperty(t.prototype,"isPaused",{get:function(){return this._isPaused},set:function(t){this._isPaused=t,t||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),t.VERSION="4.7.18",t}(),h=new c},RzG0:function(t,e,i){var n=i("T9LF"),r=i("0v9/").set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,l="process"==i("DVYA")(a);t.exports=function(){var t,e,i,c=function(){var n,r;for(l&&(n=a.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(l)i=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var h=s.resolve(void 0);i=function(){h.then(c)}}else i=function(){r.call(n,c)};else{var u=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),i=function(){d.data=u=!u}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}}},S9D9:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{log1p:i("AzI1")})},ScGY:function(t,e,i){"use strict";i.d(e,"f",(function(){return n})),i.d(e,"g",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return l})),i.d(e,"e",(function(){return c}));var n="px",r="string",o="number",a="date",s="duration",l="__§§§__",c="__§§§§__"},T3RA:function(t,e,i){"use strict";var n=i("T9LF"),r=i("U3hN"),o=i("DVYA"),a=i("6/bx"),s=i("W0fk"),l=i("AEc5"),c=i("rkh7").f,h=i("nHHr").f,u=i("hjwn").f,d=i("nAZS").trim,p=n.Number,f=p,g=p.prototype,m="Number"==o(i("5+SK")(g)),y="trim"in String.prototype,v=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var i,n,r,o=(e=y?e.trim():d(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var a,l=e.slice(2),c=0,h=l.length;c<h;c++)if((a=l.charCodeAt(c))<48||a>r)return NaN;return parseInt(l,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof p&&(m?l((function(){g.valueOf.call(i)})):"Number"!=o(i))?a(new f(v(e)),i,p):v(e)};for(var b,x=i("gD3S")?c(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)r(f,b=x[w])&&!r(p,b)&&u(p,b,h(f,b));p.prototype=g,g.constructor=p,i("wDk4")(n,"Number",p)}},T3m9:function(t,e,i){"use strict";var n,r,o,a,s=i("pb4Y"),l=i("T9LF"),c=i("20m4"),h=i("MfZA"),u=i("Gb1H"),d=i("DvJ+"),p=i("DbOM"),f=i("ypVE"),g=i("hpnp"),m=i("QXbb"),y=i("0v9/").set,v=i("RzG0")(),b=i("6w17"),x=i("wYgt"),w=i("vSjZ"),_=i("JqbS"),S=l.TypeError,P=l.process,k=P&&P.versions,C=k&&k.v8||"",T=l.Promise,A="process"==h(P),O=function(){},M=r=b.f,E=!!function(){try{var t=T.resolve(1),e=(t.constructor={})[i("YEtG")("species")]=function(t){t(O,O)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==C.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var i=t._c;v((function(){for(var n=t._v,r=1==t._s,o=0,a=function(e){var i,o,a,s=r?e.ok:e.fail,l=e.resolve,c=e.reject,h=e.domain;try{s?(r||(2==t._h&&N(t),t._h=1),!0===s?i=n:(h&&h.enter(),i=s(n),h&&(h.exit(),a=!0)),i===e.promise?c(S("Promise-chain cycle")):(o=I(i))?o.call(i,l,c):l(i)):c(n)}catch(t){h&&!a&&h.exit(),c(t)}};i.length>o;)a(i[o++]);t._c=[],t._n=!1,e&&!t._h&&L(t)}))}},L=function(t){y.call(l,(function(){var e,i,n,r=t._v,o=j(t);if(o&&(e=x((function(){A?P.emit("unhandledRejection",r,t):(i=l.onunhandledrejection)?i({promise:t,reason:r}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",r)})),t._h=A||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){y.call(l,(function(){var e;A?P.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},R=function t(e){var i,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(i=I(e))?v((function(){var r={_w:n,_d:!1};try{i.call(e,c(t,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=e,n._s=1,D(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};E||(T=function(t){f(this,T,"Promise","_h"),p(t),n.call(this);try{t(c(R,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i("cA+3")(T.prototype,{then:function(t,e){var i=M(m(this,T));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=A?P.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&D(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(R,t,1),this.reject=c(F,t,1)},b.f=M=function(t){return t===T||t===a?new o(t):r(t)}),u(u.G+u.W+u.F*!E,{Promise:T}),i("bPwn")(T,"Promise"),i("vdWU")("Promise"),a=i("G5U1").Promise,u(u.S+u.F*!E,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(s||!E),"Promise",{resolve:function(t){return _(s&&this===a?T:this,t)}}),u(u.S+u.F*!(E&&i("ID9o")((function(t){T.all(t).catch(O)}))),"Promise",{all:function(t){var e=this,i=M(e),n=i.resolve,r=i.reject,o=x((function(){var i=[],o=0,a=1;g(t,!1,(function(t){var s=o++,l=!1;i.push(void 0),a++,e.resolve(t).then((function(t){l||(l=!0,i[s]=t,--a||n(i))}),r)})),--a||n(i)}));return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=M(e),n=i.reject,r=x((function(){g(t,!1,(function(t){e.resolve(t).then(i.resolve,n)}))}));return r.e&&n(r.v),i.promise}})},"T9+M":function(t,e,i){i("6+x4")("Set")},T9LF:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},"TDx+":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("p9TX"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(r.a);o.c.registeredClasses.AxisLabel=a},TGuK:function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"c",(function(){return d})),i.d(e,"b",(function(){return p}));var n=i("m4/l"),r=i("Tjl+"),o=i("vMqJ"),a=i("x79X"),s=i("aCit"),l=i("Wglt"),c=i("hJ5i"),h=i("Mtpk"),u=function(t){function e(){var e=t.call(this)||this;return e._rules=new o.b,e._appliedRules={},e._appliedTargets=[],e._useDefault=!0,e.adapter=new a.a(e),e._enabled=!1,e._noStates=[],e.className="Responsive",e.rules.events.on("inserted",e.checkRules,!0),e.rules.events.on("removed",e.checkRules,!0),e._disposers.push(e.rules.events),e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"component",{get:function(){return this._component},set:function(t){t!=this._component&&(this._sizeEventDisposer&&this.removeDispose(this._sizeEventDisposer),this._component=t,this._sizeEventDisposer=h.getValue(this.component).events.on("sizechanged",this.checkRules,this),this._disposers.push(this._sizeEventDisposer),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.adapter.apply("enabled",this._enabled)},set:function(t){this._enabled!=t&&(this._enabled=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefault",{get:function(){return this.adapter.apply("useDefault",this._useDefault)},set:function(t){this._useDefault!=t&&(this._useDefault=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this.adapter.apply("rules",this._rules)},set:function(t){this._rules=t,this._enabled=!0,this.applyRules()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",d)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allRules",{get:function(){var t=new o.b;return this.useDefault&&t.copyFrom(this.defaultRules),t.copyFrom(this.rules),this.adapter.apply("allRules",t)},enumerable:!0,configurable:!0}),e.prototype.isApplied=function(t){var e=this._appliedRules[t];return!!h.hasValue(e)&&e},e.prototype.checkRules=function(){var t=this,e=this.allRules;if(e&&0!=e.length){var i=!1,n=h.getValue(this.component);if(l.each(e.iterator(),(function(e){e.id||(e.id=s.c.getUniqueId());var r=e.relevant(n);(r&&!t.isApplied(e.id)||!r&&t.isApplied(e.id))&&(i=!0),t._appliedRules[e.id]=r})),i){if(!this.component.isReady())return n.hidden=!0,void n.events.once("ready",(function(e){e.target.show(0),t.applyRules()}));this.dispatchImmediately("ruleschanged"),this.applyRules()}}},e.prototype.applyRules=function(t){var e=this,i=h.hasValue(t)?t:h.getValue(this.component),n=!1;this.enabled&&l.each(this.allRules.iterator(),(function(t){var r=e.getState(t,i);r&&(n||(-1!==c.indexOf(e._appliedTargets,i.uid)&&i.applyCurrentState(0),n=!0),c.remove(e._appliedTargets,i.uid),e.isApplied(h.getValue(t.id))&&(r.transitionDuration=0,i.setState(r),e.dispatchImmediately("ruleapplied",{rule:t}),c.replace(e._appliedTargets,i.uid)))})),i.children&&l.each(i.children.iterator(),(function(t){e.applyRules(t)}))},e.prototype.getState=function(t,e){var i="responsive-"+t.id,n=e.uid+"_"+i;if(-1===c.indexOf(this._noStates,n)){if(e.states.hasKey(i))return e.states.getKey(i);var r=t.state(e,i);return r||this._noStates.push(n),r}},e.prototype.getValue=function(t,e){var i=t.getPropertyValue(e);return!h.hasValue(i)&&h.hasValue(t[e])&&(i=t[e]),i},e}(r.b),d=new o.b;d.events.on("inserted",(function(t){t.newValue.id=s.c.getUniqueId()}));var p=function(){function t(){}return t.widthXXS=function(e){return e.pixelWidth<=t.XXS},t.widthXS=function(e){return e.pixelWidth<=t.XS},t.widthS=function(e){return e.pixelWidth<=t.S},t.widthM=function(e){return e.pixelWidth<=t.M},t.widthL=function(e){return e.pixelWidth<=t.L},t.widthXL=function(e){return e.pixelWidth<=t.XL},t.widthXXL=function(e){return e.pixelWidth<=t.XXL},t.heightXXS=function(e){return e.pixelHeight<=t.XXS},t.heightXS=function(e){return e.pixelHeight<=t.XS},t.heightS=function(e){return e.pixelHeight<=t.S},t.heightM=function(e){return e.pixelHeight<=t.M},t.heightL=function(e){return e.pixelHeight<=t.L},t.heightXL=function(e){return e.pixelHeight<=t.XL},t.heightXXL=function(e){return e.pixelHeight<=t.XXL},t.isXXS=function(e){return e.pixelWidth<=t.XXS&&e.pixelHeight<=t.XXS},t.isXS=function(e){return e.pixelWidth<=t.XS&&e.pixelHeight<=t.XS},t.isS=function(e){return e.pixelWidth<=t.S&&e.pixelHeight<=t.S},t.isM=function(e){return e.pixelWidth<=t.M&&e.pixelHeight<=t.M},t.isL=function(e){return e.pixelWidth<=t.L&&e.pixelHeight<=t.L},t.isXL=function(e){return e.pixelWidth<=t.XL&&e.pixelHeight<=t.XL},t.isXXL=function(e){return e.pixelWidth<=t.XXL&&e.pixelHeight<=t.XXL},t.maybeXXS=function(e){return e.pixelWidth<=t.XXS||e.pixelHeight<=t.XXS},t.maybeXS=function(e){return e.pixelWidth<=t.XS||e.pixelHeight<=t.XS},t.maybeS=function(e){return e.pixelWidth<=t.S||e.pixelHeight<=t.S},t.maybeM=function(e){return e.pixelWidth<=t.M||e.pixelHeight<=t.M},t.maybeL=function(e){return e.pixelWidth<=t.L||e.pixelHeight<=t.L},t.maybeXL=function(e){return e.pixelWidth<=t.XL||e.pixelHeight<=t.XL},t.maybeXXL=function(e){return e.pixelWidth<=t.XXL||e.pixelHeight<=t.XXL},t.XXS=100,t.XS=200,t.S=300,t.M=400,t.L=600,t.XL=800,t.XXL=1e3,t}()},TXRX:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("C6dT"),o=i("aCit"),a=i("TGuK"),s=function(t){function e(){var e=t.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){if(this.setPropertyValue("locationX",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){if(this.setPropertyValue("locationY",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(t){this.setPropertyValue("xField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(t){this.setPropertyValue("yField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(t){this.setPropertyValue("isDynamic",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(t){this.setPropertyValue("copyToLegendMarker",t)},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.Bullet=s,a.c.push({relevant:a.b.isXS,state:function(t,e){if(t instanceof s){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}})},"Tjl+":function(t,e,i){"use strict";i.d(e,"a",(function(){return y})),i.d(e,"b",(function(){return v}));var n=i("m4/l"),r=i("vMqJ"),o=i("VGgz"),a=i("+qIf"),s=i("hD5A"),l=i("o0Lc"),c=i("x79X"),h=i("8ZqG"),u=i("tjMS"),d=i("aCit"),p=i("eCqC"),f=i("hJ5i"),g=i("Qkdp"),m=i("Mtpk"),y=function(){function t(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return t.prototype.debug=function(){},Object.defineProperty(t.prototype,"uid",{get:function(){return this._uid||(this._uid=d.c.getUniqueId(),d.c.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new a.a),this._map},enumerable:!0,configurable:!0}),t.prototype.applyTheme=function(){var t=this;if(d.c){var e=this.getCurrentThemes();e&&f.each(e,(function(e,i){e(t)}))}},Object.defineProperty(t.prototype,"themes",{get:function(){return this._themes},set:function(t){this._themes=t},enumerable:!0,configurable:!0}),t.prototype.getCurrentThemes=function(){return this.themes||d.c.themes},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;)t.shift().dispose();this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var e=this._uid;null!=e&&d.c.map.removeKey(e)}},t.prototype.addDisposer=function(t){this._disposers.push(t)},t.prototype.removeDispose=function(t){if(!this._disposed){var e=f.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()},t.prototype.clone=function(t){t||(t="clone-"+d.c.getUniqueId());var e=new this.constructor;return e.cloneId=t,e.copyFrom(this),e},Object.defineProperty(t.prototype,"clones",{get:function(){return this._clones||(this._clones=new r.b),this._clones},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){t.clones.push(this),this.clonedFrom=t},Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){p.b.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),p.b.get(this.uid,t,e)},t.prototype.clearCache=function(){p.b.clear(this.uid)},t.prototype.setTimeout=function(t,e){var i=this,n=setTimeout((function(){i.removeDispose(r),t()}),e),r=new s.b((function(){clearTimeout(n)}));return this._disposers.push(r),r},t.prototype.setInterval=function(t,e){var i=this,n=setInterval((function(){i.removeDispose(r),t()}),e),r=new s.b((function(){clearTimeout(n)}));return this._disposers.push(r),r},Object.defineProperty(t.prototype,"config",{set:function(t){try{this.processConfig(t)}catch(t){this.raiseCriticalError(t)}},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){var i=this;if(e){var n=this;if(g.eachOrdered(e,(function(e,s){var p,f=s;if("callback"==e&&"function"==typeof s&&s.call(n),i.hasProperty(e))if(!m.isObject(f)||!m.hasValue(f.type)||m.isObject(n[e])&&m.hasValue(n[e].className)&&!f.forceCreate&&n[e].className==f.type||i.asIs(e)?p=n[e]:(p=i.createClassInstance(f.type))?n[e]=p:p=n[e],p instanceof c.a)i.processAdapters(p,f);else if(p instanceof l.a)i.processEvents(p,f);else if("locale"==e&&m.isString(f))document["am4lang_"+f]&&(n[e]=document["am4lang_"+f]);else if("parent"==e&&m.isString(f)){var y=i.map.getKey(f);if(!y)throw Error('Non-existing ID in config: "'+f+'".');n[e]=y}else if(i.asIs(e))n[e]=f;else if(i.asFunction(e)&&m.isString(f)){if(!m.hasValue(d.c.registeredClasses[f]))throw Error("Invalid easing function: "+f);n[e]=d.c.registeredClasses[f]}else if(f instanceof t)n[e]=f;else if(p instanceof t)p.config=f;else if(p instanceof r.e||p instanceof o.b||p instanceof o.d){if(m.isArray(f))p instanceof r.e?i.processListTemplate(f,p):i.processOrderedTemplate(f,p);else if(m.isObject(f))if(f instanceof t)p.template=f;else{var v;v=m.hasValue(f.template)?f.template:f,p.template instanceof t?p.template.config=v:g.each(v,(function(e,n){var o=p.template[e];o instanceof c.a?i.processAdapters(o,n):o instanceof l.a?i.processEvents(o,n):o instanceof a.c?i.processDictionaryTemplate(o,n):p.template[e]instanceof t?p.template[e].config=n:m.isObject(n)&&m.hasValue(n.type)?(o=i.createClassInstance(n.type))?(o instanceof t&&(o.config=n),p.template[e]=o):p.template[e]=n:o instanceof r.b?i.processList(n,o):p.template[e]=i.maybeColorOrPercent(n)})),m.hasValue(f.values)&&(p instanceof r.e?i.processListTemplate(f.values,p):i.processOrderedTemplate(f.values,p))}}else p instanceof r.b?"children"==e?i.processList(f,p,i):i.processList(f,p):p instanceof a.c?i.processDictionaryTemplate(p,f):p instanceof a.a?i.processDictionary(p,f):p instanceof h.a||p instanceof u.a?n[e]=i.maybeColorOrPercent(f):m.isObject(p)&&m.isObject(f)?g.copyAllProperties(f,p):(f=i.maybeColorOrPercent(f),n[e]=f);else i.isReserved(e)||(n[e]=f)}),this.configOrder),this.processingErrors.length){var s=this.processingErrors.join("\n");throw this._processingErrors=[],Error(s)}}},t.prototype.maybeColorOrPercent=function(t){if(m.isString(t)){if(t.match(/^[\-]?[0-9.]+\%$/))return Object(u.c)(m.toNumber(t));if(t.match(/^\#[0-9abcdef]{3,}$/i))return Object(h.c)(t)}return t},t.prototype.processAdapters=function(t,e){var i=this;m.isArray(e)?f.each(e,(function(e,n){t.add(e.key,e.callback,e.priority||0,i)})):m.isObject(e)&&g.each(e,(function(e,i){t.has(e,i)||t.add(e,i)}))},t.prototype.processEvents=function(t,e){var i=this;m.isObject(e)?g.each(e,(function(e,i){t.has(e,i)||t.on(e,i)})):m.isArray(e)&&f.each(e,(function(e,n){t.on(e.type,e.callback,i)}))},t.prototype.processDictionaryTemplate=function(e,i){m.isObject(i)&&g.each(i,(function(i,n){var r;(r="template"==i?e.template:e.hasKey(i)?e.getKey(i):e.create(i))instanceof t?r.config=n:m.isObject(r)&&m.isObject(n)?g.copyAllProperties(n,r):r.setKey(i,n)}))},t.prototype.processDictionary=function(t,e){m.isObject(e)&&g.each(e,(function(e,i){t.setKey(e,i)}))},t.prototype.processListTemplate=function(e,i){var n=this;for(f.each(e,(function(e,r){var o,a=n.getConfigEntryType(e);if(i.hasIndex(r)&&!e.forceCreate)o=i.getIndex(r);else{if(e instanceof t)return void i.push(e);o=a?i.create(a):i.create()}e===o||m.isObject(e)&&(o instanceof t?o.config=e:m.isObject(o)&&m.isObject(e)?g.copyAllProperties(e,o):i.setIndex(i.indexOf(o),e))}));e.length>i.length;)i.pop()},t.prototype.processOrderedTemplate=function(e,i){var n=this;f.each(e,(function(e,r){var o,a=n.getConfigEntryType(e);o=a?i.create(a):i.create(),m.isObject(e)&&(o instanceof t?o.config=e:m.isObject(o)&&m.isObject(e)?g.copyAllProperties(e,o):i.insert(e))}))},t.prototype.processList=function(e,i,n){var r=this;m.isArray(e)||(e=[e]);var o=i.length;for(f.each(e,(function(e,a){if(m.isObject(e)){var s=void 0;if(a<o&&!e.forceCreate)s=i.getIndex(a);else{if(e instanceof t)return void i.push(e);s=r.createEntryInstance(e),n?s.parent=n:i.push(s)}s instanceof t?s.config=e:m.isObject(s)&&m.isObject(e)&&g.copyAllProperties(e,s)}else i.hasIndex(a)?i.setIndex(a,e):i.push(e)}));e.length>i.length;)i.pop()},t.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:0},t.prototype.asIs=function(t){return-1!=f.indexOf(["locale"],t)},t.prototype.asFunction=function(t){return!1},t.prototype.createClassInstance=function(t){if(m.hasValue(d.c.registeredClasses[t]))return new d.c.registeredClasses[t];throw Error('Invalid type: "'+t+'".')},t.prototype.createEntryInstance=function(t){var e;return m.hasValue(t.type)&&(e=this.createClassInstance(t.type)),e||t},t.prototype.getConfigEntryType=function(t){if(m.hasValue(t.type)){if(m.hasValue(d.c.registeredClasses[t.type]))return d.c.registeredClasses[t.type];throw Error('Invalid type: "'+t.type+'".')}},t.prototype.hasProperty=function(t){return t in this},t.prototype.isReserved=function(t){return-1!==["type","forceCreate"].indexOf(t)},Object.defineProperty(t.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),t}(),v=function(t){function e(){var e=t.call(this)||this;return e.className="BaseObjectEvents",e}return n.c(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher||(this._eventDispatcher=new l.a,this._disposers.push(this._eventDispatcher)),this._eventDispatcher},enumerable:!0,configurable:!0}),e.prototype.dispatch=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},e.prototype.dispatchImmediately=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e._eventDispatcher&&this.events.copyFrom(e._eventDispatcher)},e}(y)},Trvg:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("p9TX"),o=i("qCRI"),a=i("MIZb"),s=i("aCit"),l=function(t){function e(){var e=t.call(this)||this;e.className="TextLink",e.selectable=!0;var i=new a.a;return e.fill=i.getFor("primaryButton").brighten(.3),e.states.create("hover").properties.fill=i.getFor("primaryButtonHover").brighten(.3),e.states.create("down").properties.fill=i.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=o.a.pointer,e.applyTheme(),e}return n.c(e,t),e}(r.a);s.c.registeredClasses.TextLink=l},U1Gp:function(t,e,i){"use strict";var n=i("20m4"),r=i("Gb1H"),o=i("vJiZ"),a=i("sNEp"),s=i("a8UT"),l=i("FmWr"),c=i("e8Nv"),h=i("iOZG");r(r.S+r.F*!i("ID9o")((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,r,u,d=o(t),p="function"==typeof this?this:Array,f=arguments.length,g=f>1?arguments[1]:void 0,m=void 0!==g,y=0,v=h(d);if(m&&(g=n(g,f>2?arguments[2]:void 0,2)),null==v||p==Array&&s(v))for(i=new p(e=l(d.length));e>y;y++)c(i,y,m?g(d[y],y):d[y]);else for(u=v.call(d),i=new p;!(r=u.next()).done;y++)c(i,y,m?a(u,g,[r.value,y],!0):r.value);return i.length=y,i}})},U3hN:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},UPxv:function(t,e,i){var n=i("Gb1H");n(n.S,"System",{global:i("T9LF")})},UXfn:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("FmWr"),o=i("zAAN"),a="".startsWith;n(n.P+n.F*i("IYrR")("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),i=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,i):e.slice(i,i+n.length)===n}})},Uf57:function(t,e,i){"use strict";i.d(e,"b",(function(){return w})),i.d(e,"a",(function(){return _}));var n=i("m4/l"),r=i("aM7D"),o=i("Vs7R"),a=i("pR7v"),s=i("+qIf"),l=i("hD5A"),c=i("0Mwj"),h=i("VB2N"),u=i("KknQ"),d=i("aCit"),p=i("Wglt"),f=i("Gg2j"),g=i("v9UT"),m=i("Mtpk"),y=i("L91H"),v=i("hJ5i"),b=i("Qkdp"),x=i("hGwe"),w=function(t){function e(){var e=t.call(this)||this;return e.className="XYSeriesDataItem",e.values.customValue={},e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(t){this.setValue("customValue",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(t){this.setDate("dateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(t){this.setDate("dateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(t){this.setCategory("categoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(t){this.setCategory("categoryY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(t){this.setValue("openValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(t){this.setValue("openValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(t){this.setDate("openDateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(t){this.setDate("openDateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(t){this.setCategory("openCategoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(t){this.setCategory("openCategoryY",t)},enumerable:!0,configurable:!0}),e.prototype.getMin=function(t,e,i){var n,r=this;return m.isNumber(i)||(i=0),v.each(t,(function(t){var o;o=e?r.getWorkingValue(t):r.getValue(t),((o+=i)<n||!m.isNumber(n))&&(n=o)})),n},e.prototype.getMax=function(t,e,i){var n,r=this;return m.isNumber(i)||(i=0),v.each(t,(function(t){var o;o=e?r.getWorkingValue(t):r.getValue(t),((o+=i)>n||!m.isNumber(n))&&(n=o)})),n},e}(r.b),_=function(t){function e(){var e=t.call(this)||this;return e.groupFields={},e._xAxis=new l.d,e._yAxis=new l.d,e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.dataGrouped=!1,e.usesShowFields=!1,e._dataSetChanged=!1,e.className="XYSeries",e.isMeasured=!1,e.groupFields.valueX="close",e.groupFields.valueY="close",e.groupFields.customValue="close",e.groupFields.openValueX="open",e.groupFields.openValueY="open",e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new o.a,e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e.tooltip.pointerOrientation="horizontal",e.hideTooltipWhileZooming=!0,e.maskBullets=!0,e.tooltip.events.on("hidden",(function(){e.returnBulletDefaultState()}),void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.applyTheme(),e}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),m.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},e.prototype.createDataItem=function(){return new w},e.prototype.dataChangeUpdate=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},e.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow?this.usesShowFields=!0:this.usesShowFields=!1,this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),t.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!m.hasValue(this.dataFields[this._xField])||!m.hasValue(this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.dataGrouped=!1},e.prototype.processDataItem=function(e,i){try{t.prototype.processDataItem.call(this,e,i),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(t){this._chart&&this._chart.raiseCriticalError(t)}},e.prototype.updateDataItem=function(e){t.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},e.prototype.setInitialWorkingValues=function(t){},e.prototype.disposeData=function(){t.prototype.disposeData.call(this);var e=this.xAxis,i=this.yAxis;if(e){var n=this.dataItemsByAxis.getKey(e.uid);n&&n.clear(),e instanceof h.a&&this.clearCatAxis(e)}if(i){var r=this.dataItemsByAxis.getKey(i.uid);r&&r.clear(),i instanceof h.a&&this.clearCatAxis(i)}},e.prototype.clearCatAxis=function(t){var e=this.uid;t.dataItems.each((function(t){t.seriesDataItems[e]&&(t.seriesDataItems[e]=[])}))},e.prototype.defineFields=function(){var t=this.xAxis,e=this.yAxis;if(t&&e){var i=t.axisFieldName,n=i+"X",r="open"+g.capitalize(i)+"X",o=e.axisFieldName,a=o+"Y",s="open"+g.capitalize(o)+"Y";this._xField=n,this._yField=a,this.dataFields[r]&&(this._xOpenField=r),this.dataFields[s]&&(this._yOpenField=s),this.dataFields[s]||this.baseAxis!=e||(this._yOpenField=a),this.dataFields[r]||this.baseAxis!=t||(this._xOpenField=n),this.stacked&&this.baseAxis==t&&(this._xOpenField=n),this.stacked&&this.baseAxis==e&&(this._yOpenField=a),t instanceof h.a&&e instanceof h.a&&(this._yOpenField||(this._yOpenField=a)),this._xValueFields=[],this._yValueFields=[],this.addValueField(t,this._xValueFields,this._xField),this.addValueField(t,this._xValueFields,this._xOpenField),this.addValueField(e,this._yValueFields,this._yField),this.addValueField(e,this._yValueFields,this._yOpenField)}},e.prototype.addValueField=function(t,e,i){t instanceof a.a&&m.hasValue(this.dataFields[i])&&-1==e.indexOf(i)&&e.push(i)},e.prototype.setCategoryAxisField=function(t,e){m.hasValue(this.dataFields[t])||(this.dataFields[t]=e.dataFields.category)},e.prototype.setDateAxisField=function(t,e){m.hasValue(this.dataFields[t])||(this.dataFields[t]=e.dataFields.date)},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.createMask()},e.prototype.createMask=function(){if(this.mainContainer.mask){var t=this.getMaskPath();p.each(this.axisRanges.iterator(),(function(e){e.axisFill.fillPath&&(e.axisFill.validate(),t+=e.axisFill.fillPath)})),this.mainContainer.mask.path=t}},e.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?x.rectToPath({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},e.prototype.getAxisField=function(t){return t==this.xAxis?this.xField:t==this.yAxis?this.yField:void 0},e.prototype.validateDataItems=function(){var e=this.xAxis,i=this.yAxis;e&&i&&(e.updateAxisBySeries(),i.updateAxisBySeries()),t.prototype.validateDataItems.call(this),e&&i&&(e.postProcessSeriesDataItems(),i.postProcessSeriesDataItems())},e.prototype.validateDataRange=function(){var e=this.xAxis,i=this.yAxis;e&&i&&(e.dataRangeInvalid&&e.validateDataRange(),i.dataRangeInvalid&&i.validateDataRange()),t.prototype.validateDataRange.call(this)},e.prototype.validate=function(){var e=this.xAxis,i=this.yAxis;if(e&&i){e.invalid&&e.validate(),i.invalid&&i.validate(),this.y=i.pixelY,this.x=e.pixelX,this._showBullets=!0;var n=this.minBulletDistance;m.isNumber(n)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<n&&(this._showBullets=!1)}t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var t=this.chart.xAxes.getIndex(0);if(!t)throw Error("There are no X axes on chart.");this.xAxis=t}return this._xAxis.get()}},set:function(t){this.setXAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setXAxis=function(t){var e=this._xAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._xAxis.dispose(),e.series.removeValue(this)),this._xAxis.set(t,t.registerSeries(this)),this.dataItemsByAxis.setKey(t.uid,new s.a),this.invalidateData())},Object.defineProperty(e.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var t=this.chart.yAxes.getIndex(0);if(!t)throw Error("There are no Y axes on chart.");this.yAxis=t}return this._yAxis.get()}},set:function(t){this.setYAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setYAxis=function(t){var e=this._yAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._yAxis.dispose(),e.series.removeValue(this)),this._yAxis.set(t,t.registerSeries(this)),t.chart instanceof c.a&&t.chart.handleYAxisSet(this),this.dataItemsByAxis.setKey(t.uid,new s.a),this.invalidateData())},Object.defineProperty(e.prototype,"baseAxis",{get:function(){var t=this.xAxis,e=this.yAxis;return!this._baseAxis&&t&&e&&(e instanceof u.a&&(this._baseAxis=e),t instanceof u.a&&(this._baseAxis=t),e instanceof h.a&&(this._baseAxis=e),t instanceof h.a&&(this._baseAxis=t),this._baseAxis||(this._baseAxis=t)),this._baseAxis},set:function(t){this._baseAxis!=t&&(this._baseAxis=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.setDataSet=function(e){var i=t.prototype.setDataSet.call(this,e);if(i){this._dataSetChanged=!0;var n=this.dataItems;this._tmax.clear(),this._tmin.clear(),this._smax.clear(),this._smin.clear();var r=this.xAxis,o=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,r instanceof u.a&&r==this.baseAxis&&(this._tmin.setKey(r.uid,n.getIndex(0).dateX.getTime()),this._tmax.setKey(r.uid,n.getIndex(n.length-1).dateX.getTime()),this.dispatch("extremeschanged")),o instanceof u.a&&o==this.baseAxis&&(this._tmin.setKey(o.uid,n.getIndex(0).dateY.getTime()),this._tmax.setKey(o.uid,n.getIndex(n.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}return i},e.prototype.processValues=function(e){t.prototype.processValues.call(this,e);var i=this.xAxis,n=this.yAxis;if(i&&n){var r=this.dataItems,o=1/0,s=-1/0,l=1/0,c=-1/0,h=this.startIndex,d=this.endIndex,p=h,g=d;e||(h=0,d=this.dataItems.length);for(var y=h;y<d;y++){var v=r.getIndex(y);this.getStackValue(v,e);var b=v.getValue("valueX","stack"),x=v.getValue("valueY","stack");o=f.min(v.getMin(this._xValueFields,e,b),o),l=f.min(v.getMin(this._yValueFields,e,x),l),s=f.max(v.getMax(this._xValueFields,e,b),s),c=f.max(v.getMax(this._yValueFields,e,x),c),this.stacked&&(this.baseAxis==i&&(x<l&&(l=x),x>c&&(c=x)),this.baseAxis==n&&(b<o&&(o=b),b>s&&(s=b)))}i.processSeriesDataItems(),n.processSeriesDataItems();var w=i.uid,_=n.uid;if(!(this.xAxis instanceof a.a&&(o==1/0||s==-1/0)||this.yAxis instanceof a.a&&(l==1/0||c==-1/0))){if(!e&&(this._tmin.getKey(w)!=o||this._tmax.getKey(w)!=s||this._tmin.getKey(_)!=l||this._tmax.getKey(_)!=c)){this._tmin.setKey(w,o),this._tmax.setKey(w,s),this._tmin.setKey(_,l),this._tmax.setKey(_,c);var S=this.stackedSeries;S&&(S.isDisposed()?this.stackedSeries=void 0:S.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(h!=p||d!=g)for(o=1/0,s=-1/0,l=1/0,c=-1/0,y=p;y<g;y++)v=r.getIndex(y),this.getStackValue(v,e),b=v.getValue("valueX","stack"),x=v.getValue("valueY","stack"),o=f.min(v.getMin(this._xValueFields,e,b),o),l=f.min(v.getMin(this._yValueFields,e,x),l),s=f.max(v.getMax(this._xValueFields,e,b),s),c=f.max(v.getMax(this._yValueFields,e,x),c),this.stacked&&(this.baseAxis==i&&(x<l&&(l=x),x>c&&(c=x)),this.baseAxis==n&&(b<o&&(o=b),b>s&&(s=b)));if(!(this.xAxis instanceof a.a&&(o==1/0||s==-1/0)||this.yAxis instanceof a.a&&(l==1/0||c==-1/0))){if((this._smin.getKey(w)!=o||this._smax.getKey(w)!=s||this._smin.getKey(_)!=l||this._smax.getKey(_)!=c)&&(this._smin.setKey(w,o),this._smax.setKey(w,s),this._smin.setKey(_,l),this._smax.setKey(_,c),this.appeared||0!=this.start||1!=this.end||this.dataItems!=this.mainDataSet)){var P=!1;if(n instanceof a.a&&!(n instanceof u.a)){var k=this._tmin.getKey(_);(!m.isNumber(k)||(this.usesShowFields||this._dataSetChanged)&&l<k||this.stackedSeries)&&(this._tmin.setKey(_,l),P=!0);var C=this._tmax.getKey(_);(!m.isNumber(C)||(this.usesShowFields||this._dataSetChanged)&&c>C||this.stackedSeries)&&(this._tmax.setKey(_,c),P=!0)}i instanceof a.a&&!(i instanceof u.a)&&(k=this._tmin.getKey(w),(!m.isNumber(k)||(this.usesShowFields||this._dataSetChanged)&&o<k||this.stackedSeries)&&(this._tmin.setKey(w,o),P=!0),C=this._tmax.getKey(w),(!m.isNumber(C)||(this.usesShowFields||this._dataSetChanged)&&s>C||this.stackedSeries)&&(this._tmax.setKey(w,s),P=!0)),P&&this.dispatchImmediately("extremeschanged"),0==this.start&&1==this.end&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}}}},e.prototype.hideTooltip=function(){t.prototype.hideTooltip.call(this),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i;if(this.visible&&!this.isHiding&&!this.isShowing){var n=this._xAxis.get(),r=this._yAxis.get();n==this.baseAxis&&(i=n.getSeriesDataItem(this,n.toAxisPosition(t),this.snapTooltip)),r==this.baseAxis&&(i=r.getSeriesDataItem(this,r.toAxisPosition(e),this.snapTooltip));var o=this.showTooltipAtDataItem(i);if(o)return o;if(!this.tooltipText)return}this.hideTooltip()},e.prototype.getAdjustedXLocation=function(t,e){return t.locations[e]},e.prototype.getAdjustedYLocation=function(t,e){return t.locations[e]},e.prototype.showTooltipAtDataItem=function(t){var e,i,r=this.chart.cursor;if(r&&r.hideSeriesTooltipsOnSelection&&r.selection.visible&&r.downPoint)this.hideTooltip();else if(this.returnBulletDefaultState(t),t&&t.visible){if(this.updateLegendValue(t),this.cursorTooltipEnabled){this.tooltipDataItem=t;var o=this.tooltipXField,a=this.tooltipYField;if(m.hasValue(t[o])&&m.hasValue(t[a])){var s=this.getPoint(t,o,a,this.getAdjustedXLocation(t,o),this.getAdjustedYLocation(t,a));if(s){if(this.tooltipX=s.x,this.tooltipY=s.y,this._prevTooltipDataItem!=t&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:t}),this._prevTooltipDataItem=t),this.cursorHoverEnabled)try{for(var l=n.g(t.sprites),c=l.next();!c.done;c=l.next()){var h=c.value;!h.parent.visible||h.isHidden||h.__disabled||h.disabled||h.isHiding||(h.isHover=!0)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return this.showTooltip()?g.spritePointToSvg({x:s.x,y:s.y},this):void 0}}}}else this.updateLegendValue(t,!0)},e.prototype.returnBulletDefaultState=function(t){if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=t)try{for(var e=n.g(this._prevTooltipDataItem.sprites),i=e.next();!i.done;i=e.next()){var r=i.value;r.isDisposed()?this._prevTooltipDataItem=void 0:r.isHover=!1}}catch(t){o={error:t}}finally{try{i&&!i.done&&(a=e.return)&&a.call(e)}finally{if(o)throw o.error}}var o,a},e.prototype.shouldCreateBullet=function(t,e){var i=e.xField;m.hasValue(i)||(i=this.xField);var n=e.yField;if(m.hasValue(n)||(n=this.yField),this.xAxis instanceof a.a&&!t.hasValue([i])||this.yAxis instanceof a.a&&!t.hasValue([n]))return!1;if(e.disabled){var r=e.propertyFields.disabled,o=t.dataContext;return!(!o||!1!==o[r])}return!0},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,n=e.xField;m.hasValue(n)||(n=this.xField);var r=e.yField;m.hasValue(r)||(r=this.yField);var o=this.xAxis,s=this.yAxis;if(o instanceof a.a&&!i.hasValue([n])||s instanceof a.a&&!i.hasValue([r]))e.visible=!1;else{var l=this.getBulletLocationX(e,n),c=this.getBulletLocationY(e,r);if(this.getPoint(i,n,r,l,c)){var d=this.xOpenField,p=this.yOpenField,f=void 0,g=void 0;if(o instanceof u.a){m.isNumber(l)||(l=0);var v=void 0,b=i.getWorkingValue(n);if(d?v=i.getWorkingValue(d):o==this.baseAxis&&(v=o.baseValue),m.isNumber(v)||(v=b),(v+=C=i.getValue("valueX","stack"))==(b+=C)){var x=o.baseInterval,w=o.dateFormatter;v=y.round(new Date(v),x.timeUnit,x.count,w.firstDayOfWeek,w.utc).getTime(),b=y.add(new Date(v),x.timeUnit,x.count,w.utc).getTime()}var _=void 0;_=o==this.baseAxis?v+(b-v)*l:v+(b-v)*(1-l),f=o.valueToPosition(_)}else if(o instanceof a.a)m.isNumber(l)||(l=0),v=void 0,b=i.getWorkingValue(n),v=d?i.getWorkingValue(d):o.baseValue,_=(v+=C=i.getValue("valueX","stack"))+((b+=C)-v)*(1-l),f=o.valueToPosition(_);else if(o instanceof h.a){var S=this.getAdjustedXLocation(i,n),P=this.getAdjustedXLocation(i,d);f=o.categoryToPosition(i[n],S);var k=void 0;d&&(k=o.categoryToPosition(i[d],P)),m.isNumber(k)||(k=1),f=k+(f-k)*l}if(s instanceof u.a)m.isNumber(c)||(c=0),v=void 0,b=i.getWorkingValue(r),p?v=i.getWorkingValue(p):s==this.baseAxis&&(v=s.baseValue),m.isNumber(v)||(v=b),(v+=C=i.getValue("valueY","stack"))==(b+=C)&&(x=s.baseInterval,w=s.dateFormatter,v=y.round(new Date(v),x.timeUnit,x.count,w.firstDayOfWeek,w.utc).getTime(),b=y.add(new Date(v),x.timeUnit,x.count,w.utc).getTime()),_=void 0,_=s==this.baseAxis?v+(b-v)*c:v+(b-v)*(1-c),g=s.valueToPosition(_);else if(s instanceof a.a){var C;m.isNumber(c)||(c=0),v=void 0,b=i.getWorkingValue(r),v=p?i.getWorkingValue(p):s.baseValue,_=(v+=C=i.getValue("valueY","stack"))+((b+=C)-v)*(1-c),g=s.valueToPosition(_)}else if(s instanceof h.a){g=s.categoryToPosition(i[r],c);var T=this.getAdjustedYLocation(i,r),A=this.getAdjustedYLocation(i,p);g=s.categoryToPosition(i[r],T);var O=void 0;p&&(O=s.categoryToPosition(i[p],A)),m.isNumber(O)||(O=1),g=O+(g-O)*c}e.visible=!0,this.positionBulletReal(e,f,g)}else e.visible=!1}},e.prototype.positionBulletReal=function(t,e,i){t.x=this.xAxis.renderer.positionToPoint(e,i).x,t.y=this.yAxis.renderer.positionToPoint(i,e).y},e.prototype.getBulletLocationX=function(t,e){var i=t.locationX,n=t.dataItem;return m.isNumber(i)||(i=n.workingLocations[e]),i},e.prototype.getBulletLocationY=function(t,e){var i=t.locationY,n=t.dataItem;return m.isNumber(i)||(i=n.workingLocations[e]),i},Object.defineProperty(e.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(t){this.setPropertyValue("stacked",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i,n=this;this.xAxis instanceof a.a&&this.xAxis!=this.baseAxis&&(i=this._xValueFields),this.yAxis instanceof a.a&&this.yAxis!=this.baseAxis&&(i=this._yValueFields);var r,o=this.startIndex,s=this.endIndex,l=0,c=this.defaultState.transitionDuration;m.isNumber(e)&&(c=e),p.each(p.indexed(this.dataItems.iterator()),(function(t){var e=t[0],a=t[1];n.sequencedInterpolation&&c>0&&(l=n.sequencedInterpolationDelay*e+c*(e-o)/(s-o)),r=a.show(c,l,i)})),this.dataSets.each((function(t,e){e!=n.dataItems&&e.each((function(t){t.events.disable(),t.show(0,0,i),t.events.enable()}))})),this.mainDataSet!=this.dataItems&&this.mainDataSet.each((function(t){t.events.disable(),t.show(0,0,i),t.events.enable()}));var h=t.prototype.show.call(this,e);return r&&!r.isFinished()&&(h=r),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),h},e.prototype.hide=function(e){var i,n,r=this,o=this.xAxis;o instanceof a.a&&o!=this.baseAxis&&(i=this._xValueFields,n=this.stacked||o.minZoomed<o.baseValue&&o.maxZoomed>o.baseValue||this.stackedSeries?o.baseValue:o.min);var s=this.yAxis;s instanceof a.a&&s!=this.baseAxis&&(i=this._yValueFields,n=this.stacked||s.minZoomed<s.baseValue&&s.maxZoomed>s.baseValue||this.stackedSeries?s.baseValue:s.min);var l=this.startIndex,c=this.endIndex,h=this.hiddenState.transitionDuration;m.isNumber(e)&&(h=e);var u,d=0;p.each(p.indexed(this.dataItems.iterator()),(function(t){var e=t[0],o=t[1];0==h?o.hide(0,0,n,i):(r.sequencedInterpolation&&h>0&&(d=r.sequencedInterpolationDelay*e+h*(e-l)/(c-l)),u=o.hide(h,d,n,i))}));var f=t.prototype.hide.call(this,h);return f&&!f.isFinished()&&f.delay(d),u&&!u.isFinished()&&(f=u),this.validateDataElements(),f},e.prototype.handleDataItemWorkingValueChange=function(e,i){t.prototype.handleDataItemWorkingValueChange.call(this,e,i);var n=this.baseAxis.series;p.each(n.iterator(),(function(t){(t.stacked||t.stackedSeries)&&t.invalidateProcessedData()}))},e.prototype.getStackValue=function(t,e){var i=this,n=this.xAxis,r=this.yAxis;if(this.stacked&&n&&r){var o,s=this.chart,l=s.series.indexOf(this);n!=this.baseAxis&&n instanceof a.a&&(o=this.xField),r!=this.baseAxis&&r instanceof a.a&&(o=this.yField),o&&(t.setCalculatedValue(o,0,"stack"),p.eachContinue(s.series.range(0,l).backwards().iterator(),(function(a){if(a.xAxis==n&&a.yAxis==r){a.stackedSeries=i;var s=a.dataItems.getIndex(t.index);if(s&&s.hasValue(i._xValueFields)&&s.hasValue(i._yValueFields)){var l,c=t.getValue(o),h=s.getValue(o)+s.getValue(o,"stack");if(l=e?s.getWorkingValue(o)+s.getValue(o,"stack"):s.getValue(o)+s.getValue(o,"stack"),c>=0&&h>=0||c<0&&h<0)return t.setCalculatedValue(o,l,"stack"),!1}else if(!a.stacked)return!1}return!0})))}},Object.defineProperty(e.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(t){this._tooltipXField=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(t){this._tooltipYField=t},enumerable:!0,configurable:!0}),e.prototype.min=function(t){return this._tmin.getKey(t.uid)},e.prototype.max=function(t){return this._tmax.getKey(t.uid)},e.prototype.selectionMin=function(t){var e=this._smin.getKey(t.uid);return m.isNumber(e)||(e=this.min(t)),e},e.prototype.selectionMax=function(t){var e=this._smax.getKey(t.uid);return m.isNumber(e)||(e=this.max(t)),e},e.prototype.processConfig=function(e){if(e){if(m.hasValue(e.baseAxis)&&m.isString(e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),m.hasValue(e.xAxis)&&m.isString(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),m.hasValue(e.yAxis)&&m.isString(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),m.hasValue(e.axisRanges)&&m.isArray(e.axisRanges))for(var i=0,n=e.axisRanges.length;i<n;i++){var r=e.axisRanges[i];m.hasValue(r.type)||(r.type="AxisDataItem"),m.hasValue(r.axis)&&m.isString(r.axis)&&this.map.hasKey(r.axis)?r.component=this.map.getKey(r.axis):m.hasValue(r.component)&&m.isString(r.component)&&this.map.hasKey(r.component)&&(r.component=this.map.getKey(r.component))}m.hasValue(e.dataFields)&&m.isObject(e.dataFields)||this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}t.prototype.processConfig.call(this,e)},e.prototype.getPoint=function(t,e,i,n,r,o,a){if(this.xAxis&&this.yAxis){var s=this.xAxis.getX(t,e,n),l=this.yAxis.getY(t,i,r);return{x:s=f.fitToRange(s,-1e5,1e5),y:l=f.fitToRange(l,-1e5,1e5)}}},e.prototype.updateItemReaderText=function(){if(!this._itemReaderTextChanged){var t="";b.each(this.dataFields,(function(e,i){t+="{"+e+"} "})),this.itemReaderText=t,this._itemReaderTextChanged=!1}},Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(t){this.setPropertyValue("cursorHoverEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(t){this.setPropertyValue("excludeFromTotal",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t);var e=this.chart;e&&(this.bulletsContainer.parent=t?e.bulletsContainer:e.axisBulletsContainer)},enumerable:!0,configurable:!0}),e}(r.a);d.c.registeredClasses.XYSeries=_,d.c.registeredClasses.XYSeriesDataItem=w},Uobz:function(t,e,i){"use strict";var n=i("pb4Y"),r=i("Gb1H"),o=i("wDk4"),a=i("Vng0"),s=i("9BM3"),l=i("Cekr"),c=i("bPwn"),h=i("K0ev"),u=i("YEtG")("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,i,f,g,m,y){l(i,e,f);var v,b,x,w=function(t){if(!d&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},_=e+" Iterator",S="values"==g,P=!1,k=t.prototype,C=k[u]||k["@@iterator"]||g&&k[g],T=C||w(g),A=g?S?w("entries"):T:void 0,O="Array"==e&&k.entries||C;if(O&&(x=h(O.call(new t)))!==Object.prototype&&x.next&&(c(x,_,!0),n||"function"==typeof x[u]||a(x,u,p)),S&&C&&"values"!==C.name&&(P=!0,T=function(){return C.call(this)}),n&&!y||!d&&!P&&k[u]||a(k,u,T),s[e]=T,s[_]=p,g)if(v={values:S?T:w("values"),keys:m?T:w("keys"),entries:A},y)for(b in v)b in k||o(k,b,v[b]);else r(r.P+r.F*(d||P),e,v);return v}},UsNi:function(t,e,i){"use strict";var n=i("m4/l"),r=i("58Sn"),o=i("+qIf"),a=i("hD5A"),s=i("MIZb"),l=new o.a,c=i("x79X"),h=i("Tjl+"),u=i("zhwk"),d=i("WYhe"),p=i("Mtpk"),f=i("Qkdp");i.d(e,"a",(function(){return g}));var g=function(t){function e(){var e=t.call(this)||this;return e.adapter=new c.a(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return n.c(e,t),e.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},e.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},e.prototype.dispose=function(){this.close(),t.prototype.dispose.call(this)},e.prototype.positionElement=function(t){var e=this;void 0===t&&(t=!0),this._elements.wrapper&&setTimeout((function(){if(e._elements.wrapper){if(t||!e._sized){if(e._elements.wrapper.style.opacity="0.01",e._elements.wrapper.style.left="0",e._elements.wrapper.style.top="0",e._elements.wrapper.style.margin="0 0 0 0",!e._elements.wrapper.style.width){var i=e._elements.wrapper.getBoundingClientRect();e._elements.wrapper.style.width=i.width+"px",e._elements.wrapper.style.height=i.height+"px"}e._sized=!0}setTimeout((function(){if(e._elements.wrapper){var i;switch(!t&&e._sized||!e._bbox?(i=e._elements.wrapper.getBoundingClientRect(),e._elements.wrapper.style.opacity=""):i=e._bbox,e.align){case"left":e._elements.wrapper.style.left="0",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;case"center":e._elements.wrapper.style.left="50%",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(Math.round(-i.width/2)+(e._shift.x+e._tempShift.x));break;case"right":e._elements.wrapper.style.left="auto",e._elements.wrapper.style.right="0",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;default:e._elements.wrapper.style.left=e.toStyle(e.left)||"auto",e._elements.wrapper.style.right=e.toStyle(e.right)||"auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x)}switch(e.verticalAlign){case"top":e._elements.wrapper.style.top="0",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;case"middle":e._elements.wrapper.style.top="50%",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(Math.round(-i.height/2)+(e._shift.y+e._tempShift.y));break;case"bottom":e._elements.wrapper.style.top="auto",e._elements.wrapper.style.bottom="0",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;default:e._elements.wrapper.style.top=e.toStyle(e.top)||"auto",e._elements.wrapper.style.bottom=e.toStyle(e.bottom)||"auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y)}}}),1)}}),1)},e.prototype.setupDragging=function(){var t=this;this.draggable?(this._IOs.header.events.has("drag")||this._IOs.header.events.on("drag",(function(e){t._tempShift.x=e.shift.x,t._tempShift.y=e.shift.y,t.positionElement(!1)})),this._IOs.header.events.has("dragstop")||this._IOs.header.events.on("dragstop",(function(e){t._shift.x+=t._tempShift.x,t._shift.y+=t._tempShift.y,t._tempShift.x=0,t._tempShift.y=0,t.positionElement(!1)}))):this._IOs.header&&(Object(u.b)().unprepElement(this._IOs.header),this._IOs.header.events.has("drag")&&this._IOs.header.events.off("drag"),this._IOs.header.events.has("dragstop")&&this._IOs.header.events.off("dragstop"))},e.prototype.toStyle=function(t){return p.hasValue(t)?p.isNumber(t)?t+"px":t.toString():null},Object.defineProperty(e.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(t){this._classPrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this.adapter.apply("content",this._content)},set:function(t){this._content!=t&&(this._content=t,this._elements.content||this.createContentElement(),this._elements.content.innerHTML=t,this.positionElement())},enumerable:!0,configurable:!0}),e.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",headerClass:this.classPrefix+"-header",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",insideClass:this.classPrefix+"-inside",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},e.prototype.createContentElement=function(){if(!this._elements.wrapper){var t=this.getClassNames(),e=document.createElement("div");e.className=t.contentClass,e.style.opacity="0.01";var i=document.createElement("a");i.className=t.closeClass;var n=document.createElement("div");n.className=t.headerClass;var r=document.createElement("div");r.innerHTML=this.title,r.className=t.titleClass,this.title||(r.style.display="none");var o=document.createElement("div");o.className=t.insideClass,o.innerHTML=this.content,this._IOs.wrapper=Object(u.b)().getInteraction(e),this._IOs.header=Object(u.b)().getInteraction(n),this._disposers.push(this._IOs.wrapper),this._IOs.wrapper.events.on("over",this.disablePointers,this),this._IOs.wrapper.events.on("out",this.releasePointers,this),this._IOs.close=Object(u.b)().getInteraction(i),this._disposers.push(this._IOs.close),i.style.visibility="hidden",e.setAttribute("role","dialog"),n.appendChild(i),n.appendChild(r),e.appendChild(n),e.appendChild(o),this.container.appendChild(e),this._elements.wrapper=e,this._elements.header=n,this._elements.content=o,this._elements.title=r,this._elements.close=i,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(e.prototype,"title",{get:function(){return this.adapter.apply("title",this._title)},set:function(t){this._title!=t&&(this._title=t,this._elements.content||this.createContentElement(),this._elements.title.innerHTML=t,this.positionElement(),this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerTitle",{get:function(){return this.adapter.apply("readerTitle",""!=this._readerTitle?this._readerTitle:this.title)},set:function(t){this._readerTitle!=t&&(this._readerTitle=t,this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closable",{get:function(){return this.adapter.apply("closable",this._closable)},set:function(t){t!==this._closable&&(this._closable=t,this.applyEvents())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitTo",{get:function(){return this.adapter.apply("fitTo",this._fitTo)},set:function(t){t!=this._fitTo&&(this._fitTo=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",this._defaultStyles)},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showCurtain",{get:function(){return this.adapter.apply("showCurtain",this._showCurtain)},set:function(t){this._showCurtain!=t&&(this._showCurtain=t,this._elements.curtain&&(this._elements.curtain.style.display=t?"block":"none"))},enumerable:!0,configurable:!0}),e.prototype.createCurtainElement=function(){var t=this.getClassNames(),e=document.createElement("div");e.className=t.curtainClass,this.container.appendChild(e),this._IOs.curtain=Object(u.b)().getInteraction(e),this._disposers.push(this._IOs.curtain),this._IOs.curtain.events.on("over",this.disablePointers,this),this._IOs.curtain.events.on("out",this.releasePointers,this),e.style.display=this.showCurtain?"block":"none",this._elements.curtain=e},Object.defineProperty(e.prototype,"draggable",{get:function(){return this.adapter.apply("draggable",this._draggable)},set:function(t){this._draggable!=t&&(this._draggable=t,this.setupDragging())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adapter.apply("align",this._align)},set:function(t){this._align!=t&&(this._align=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",this._verticalAlign)},set:function(t){this._verticalAlign!=t&&(this._verticalAlign=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.adapter.apply("left",this._left)},set:function(t){this.left!=t&&(this._left=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.adapter.apply("right",this._right)},set:function(t){this.right!=t&&(this._right=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.adapter.apply("top",this._top)},set:function(t){this.top!=t&&(this._top=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.adapter.apply("bottom",this._bottom)},set:function(t){this.bottom!=t&&(this._bottom=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e.prototype.loadDefaultCSS=function(){this._cssLoaded||(this._disposers.push(function(t){t||(t="ampopup");var e=new s.a,i=e.getFor("text"),n=e.getFor("background");n.alpha=.8;var o=e.getFor("alternativeBackground");return o.alpha=.05,l.insertKeyIfEmpty(t,(function(){var e=new a.c([new r.c("."+t,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new r.c("."+t+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":n.hex,opacity:"0.5"}),new r.c("."+t+"-header",{display:"block",width:"100%","min-height":"1.8em",background:o.rgba}),new r.c("."+t+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new r.c("."+t+"-content",{background:n.hex,"background-color":n.rgba,color:i.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new r.c("."+t+"-inside",{padding:"1em"}),new r.c("."+t+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new a.a((function(){l.removeKey(t),e.dispose()}))})).increment()}(this.classPrefix)),f.each(this._elements,(function(t,e){e.style.display=""})),this._cssLoaded=!0)},e.prototype.applyEvents=function(){var t=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var e=[Object(u.b)().body.events.on("keyup",(function(e){d.b.isKey(e.event,"esc")&&t.closable&&t.close()})),this._IOs.close.events.on("hit",(function(e){t.close()}))];e.push(this._IOs.curtain.events.on("hit",(function(e){t.showCurtain&&t.close()}))),this._disposers.push(new a.c(e))}else this._IOs.close.element.style.visibility="hidden"},e.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},e.prototype.releasePointers=function(){p.hasValue(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},e.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.container=e.container,this.sprite=e.sprite,this.classPrefix=e.classPrefixRaw,this.content=e.content,this.title=e.title,this.readerTitle=e.readerTitle,this.defaultStyles=e.defaultStyles,this.showCurtain=e.showCurtain,this.align=e.align,this.verticalAlign=e.verticalAlign,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.adapter.copyFrom(e.adapter)},e}(h.b)},Uslz:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("m4/l"),r=i("C6dT"),o=i("hD5A"),a=i("ND2/"),s=i("vMqJ"),l=i("aCit"),c=i("8ZqG"),h=i("MIZb"),u=function(t){function e(){var e=t.call(this)||this;e._axis=new o.d,e.dataItems=new s.b,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var i=new h.a,n=new a.a;n.fill=i.getFor("background"),n.stroke=Object(c.c)(),n.fillOpacity=.9,n.zIndex=0,e._fillShape=n;var r=new a.a;r.fill=Object(c.c)(),r.stroke=i.getFor("grid"),r.strokeOpacity=.3,r.zIndex=1,e._startLine=r;var l=new a.a;return l.fill=Object(c.c)(),l.stroke=Object(c.c)("#000000"),l.strokeOpacity=.3,l.zIndex=2,e._endLine=l,e._disposers.push(e._axis),e.applyTheme(),e}return n.c(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(e.prototype,"startLine",{get:function(){return this._startLine},set:function(t){this._startLine&&this._startLine.dispose(),this._startLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},set:function(t){this._endLine&&this._endLine.dispose(),this._endLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillShape",{get:function(){return this._fillShape},set:function(t){this._fillShape&&this._fillShape.dispose(),this._fillShape=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),e.prototype.addBreakSprite=function(t){t.parent=this,t.isMeasured=!1,this._disposers.push(t)},Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this._axis.get()!==t){this._axis.set(t,t.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),t.renderer.createBreakSprites(this);var e=t.axisBreaks.template;this.startLine.copyFrom(e.startLine),this.endLine.copyFrom(e.endLine),this.fillShape.copyFrom(e.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(t){this.setPropertyValue("breakSize",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.draw=function(){t.prototype.draw.call(this),this.axis&&this.axis.renderer.updateBreakElement(this)},Object.defineProperty(e.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(r.a);l.c.registeredClasses.AxisBreak=u},UwWU:function(t,e,i){var n=i("4BRe"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?r(t+e,0):o(t,e)}},VAFc:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("ohjg"),o=i("8ZqG"),a=i("aCit"),s=function(t){function e(){var e=t.call(this)||this;return e.className="DropShadowFilter",e.color=Object(o.c)("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.feFlood&&this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feFlood.attr({"flood-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.properties.dx},set:function(t){this.properties.dx=t,this.feOffset.attr({dx:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.properties.dy},set:function(t){this.properties.dy=t,this.feOffset.attr({dy:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},e}(r.a);a.c.registeredClasses.DropShadowFilter=s},VB2N:function(t,e,i){"use strict";i.d(e,"b",(function(){return f})),i.d(e,"a",(function(){return g}));var n=i("m4/l"),r=i("AAkI"),o=i("k6kv"),a=i("OXm9"),s=i("aCit"),l=i("+qIf"),c=i("+K/x"),h=i("Gg2j"),u=i("Mtpk"),d=i("Wglt"),p=i("x79X"),f=function(t){function e(){var e=t.call(this)||this;return e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new p.a(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(t){this.setProperty("endCategory",t)},enumerable:!0,configurable:!0}),e}(r.b),g=function(t){function e(){var e=t.call(this)||this;return e.dataItemsByCategory=new l.a,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme(),e}return n.c(e,t),e.prototype.createDataItem=function(){return new f},e.prototype.createAxisBreak=function(){return new c.a},e.prototype.processSeriesDataItem=function(e,i){t.prototype.processSeriesDataItem.call(this,e,i);var n=e["category"+this.axisLetter];if(u.hasValue(n)){var r=this.dataItemsByCategory.getKey(n);if(r){var o=e.component.uid,a=r.seriesDataItems[o];a||(a=[],r.seriesDataItems[o]=a),a.push(e)}}else e.component.dataItems.remove(e)},e.prototype.validateDataRange=function(){var i=this;t.prototype.validateDataRange.call(this),d.each(this._series.iterator(),(function(t){if(t.xAxis instanceof e&&t.yAxis instanceof e)t.invalidateDataRange();else{var n=i.positionToIndex(i.start),r=i.positionToIndex(i.end);r>=i.dataItems.length&&r--;for(var o=t.uid,a=void 0,s=void 0,l=n;l<=r;l++){var c=i.dataItems.getIndex(l);if(c){var h=c.seriesDataItems[o];if(h)for(var d=0;d<h.length;d++){var p=h[d];if(p){var f=p.index;(!u.isNumber(a)||f<a)&&(a=f),(!u.isNumber(s)||f>s)&&(s=f)}}}}u.isNumber(a)?t.startIndex=a:t.start=i.start,u.isNumber(s)?t.endIndex=s+1:t.end=i.end,i._axisBreaks&&i._axisBreaks.length>0&&t.invalidateDataRange()}}))},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this);var i=this.dataItems.length,n=h.fitToRange(Math.floor(this.start*i-1),0,i),r=h.fitToRange(Math.ceil(this.end*i),0,i);this.renderer.invalid&&this.renderer.validate();var o=this.renderer.axisLength/this.renderer.minGridDistance,a=Math.min(this.dataItems.length,Math.ceil((r-n)/o));if(this._startIndex=Math.floor(n/a)*a,this._endIndex=Math.ceil(this.end*i),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=a,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),n=h.max(0,this._startIndex-this._frequency),r=h.min(this.dataItems.length,this._endIndex+this._frequency);for(var s=0,l=0;l<n;l++)(u=this.dataItems.getIndex(l)).__disabled=!0;l=r;for(var c=this.dataItems.length;l<c;l++)(u=this.dataItems.getIndex(l)).__disabled=!0;for(l=n;l<r;l++)if(l<this.dataItems.length){var u=this.dataItems.getIndex(l);l/this._frequency==Math.round(l/this._frequency)?(this.isInBreak(l)||(this.appendDataItem(u),this.validateDataElement(u,s)),s++):u.__disabled=!0}this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,s+1,this.dataItems.length),this._axisBreaks&&this._axisBreaks.each((function(t){var i=t.adjustedStartValue,n=t.adjustedEndValue;if(h.intersect({start:i,end:n},{start:e._startIndex,end:e._endIndex}))for(var r=h.fitToRange(Math.ceil(e._frequency/t.breakSize),1,n-i),o=0,a=i;a<=n;a+=r){var s=e.dataItems.getIndex(a);e.appendDataItem(s),e.validateDataElement(s,o),o++}})),this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},e.prototype.validateDataElement=function(e,i,n){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var r=this.renderer;u.isNumber(n)||(n=this.categoryToIndex(e.category));var s=this.categoryToIndex(e.endCategory);u.isNumber(s)||(s=n);var l,c,h,d=this.indexToPosition(n,e.locations.category),p=this.indexToPosition(s,e.locations.endCategory);e.position=d,e.isRange&&(l=s,c=this.indexToPosition(n,e.locations.category),h=this.indexToPosition(l,e.locations.endCategory)),e.point=r.positionToPoint(d);var f=e.tick;f&&!f.disabled&&r.updateTickElement(f,d,p);var g=e.grid;g&&!g.disabled&&r.updateGridElement(g,d,p);var m=e.label;m&&!m.disabled&&(e.isRange&&null!=m.text||(e.text=e.text),r.updateLabelElement(m,d,p),(r instanceof a.a&&e.label.measuredWidth>this.ghostLabel.measuredWidth||r instanceof o.a&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var y=e.axisFill;y&&!y.disabled&&(e.isRange||(l=n+this._frequency,c=this.indexToPosition(n,y.location),h=this.indexToPosition(l,y.location)),r.updateFillElement(y,c,h),e.isRange||this.fillRule(e,i)),e.bullet&&r.updateBullet(e.bullet,d,p);var v=e.mask;v&&r.updateFillElement(v,c,h)},e.prototype.disposeData=function(){this.dataItemsByCategory.clear(),t.prototype.disposeData.call(this)},e.prototype.processDataItem=function(e,i){e&&(t.prototype.processDataItem.call(this,e,i),u.hasValue(e.category)&&this.dataItemsByCategory.setKey(e.category,e))},e.prototype.getDataItem=function(t){var e=t[this.dataFields.category];if(u.hasValue(e))return this.dataItemsByCategory.getKey(e)||this.dataItems.create()},e.prototype.indexToPosition=function(t,e){u.isNumber(e)||(e=.5);var i=this.startIndex,n=this.endIndex,r=this.adjustDifference(i,n),o=this.startLocation;if(r-=o,r-=1-this.endLocation,this._axisBreaks){var a=this._axisBreaks;d.eachContinue(a.iterator(),(function(e){var r=e.adjustedStartValue,o=e.adjustedEndValue;if(t<i)return!1;if(h.intersect({start:r,end:o},{start:i,end:n})){r=Math.max(i,r),o=Math.min(n,o);var a=e.breakSize;t>o?i+=(o-r)*(1-a):t<r||(t=r+(t-r)*a)}return!0}))}return h.round((t+e-o-i)/r,5)},e.prototype.categoryToPosition=function(t,e){var i=this.categoryToIndex(t);return this.indexToPosition(i,e)},e.prototype.categoryToPoint=function(t,e){var i=this.categoryToPosition(t,e),n=this.renderer.positionToPoint(i),r=this.renderer.positionToAngle(i);return{x:n.x,y:n.y,angle:r}},e.prototype.anyToPoint=function(t,e){return this.categoryToPoint(t,e)},e.prototype.anyToPosition=function(t,e){return this.categoryToPosition(t,e)},e.prototype.categoryToIndex=function(t){if(u.hasValue(t)){var e=this.dataItemsByCategory.getKey(t);if(e)return e.index}},e.prototype.zoomToCategories=function(t,e){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1)},e.prototype.getAnyRangePath=function(t,e,i,n){var r=this.categoryToPosition(t,i),o=this.categoryToPosition(e,n);return this.getPositionRangePath(r,o)},e.prototype.roundPosition=function(t,e){var i=this.positionToIndex(t);return this.indexToPosition(i,e)},e.prototype.getFirstSeriesDataItem=function(t,e){for(var i=0;i<t.dataItems.length;i++){var n=t.dataItems.getIndex(i);if(t.xAxis==this&&n.categoryX==e)return n;if(t.yAxis==this&&n.categoryY==e)return n}},e.prototype.getLastSeriesDataItem=function(t,e){for(var i=t.dataItems.length-1;i>=0;i--){var n=t.dataItems.getIndex(i);if(t.xAxis==this&&n.categoryX==e)return n;if(t.yAxis==this&&n.categoryY==e)return n}},e.prototype.getSeriesDataItem=function(t,e,i){var n=this;if(u.isNumber(e)){var r=this.positionToIndex(e);r>=this.dataItems.length&&r--;var o=this.dataItems.getIndex(r);if(o){var a,s=o.category,l=t.dataItems.getIndex(r);if(l){if(t.xAxis==this&&l.categoryX==s)return l;if(t.yAxis==this&&l.categoryY==s)return l}return t.dataItems.each((function(e){t.xAxis==n&&e.categoryX==s&&(a||(a=e),Math.abs(r-a.index)>Math.abs(r-e.index)&&(a=e)),t.yAxis==n&&e.categoryY==s&&(a||(a=e),Math.abs(r-a.index)>Math.abs(r-e.index)&&(a=e))})),a}}},e.prototype.getX=function(t,e,i,n,r){var o=this.getPositionX(t,e,i,n,r);return u.isNaN(o)?this.basePoint.x:this.renderer.positionToPoint(o).x},e.prototype.getPositionX=function(t,e,i,n,r){var o;return u.hasValue(e)&&(o=this.categoryToPosition(t.categories[e],i)),r&&(o=h.fitToRange(o,r.start,r.end)),o},e.prototype.getY=function(t,e,i,n,r){var o=this.getPositionY(t,e,i,n,r);return u.isNaN(o)?this.basePoint.y:this.renderer.positionToPoint(o).y},e.prototype.getPositionY=function(t,e,i,n,r){var o;return u.hasValue(e)&&(o=this.categoryToPosition(t.categories[e],i)),r&&(o=h.fitToRange(o,r.start,r.end)),o},e.prototype.getAngle=function(t,e,i,n,r){var o=this.categoryToPosition(t.categories[e],i);return r&&(o=h.fitToRange(o,r.start,r.end)),this.positionToAngle(o)},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getTooltipText=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return this.tooltipDataItem=e,this.tooltip.dataItem=e,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",e.category):e.category},e.prototype.positionToIndex=function(t){(t=h.round(t,10))<0&&(t=0),t>1&&(t=1);var e=this.startIndex,i=this.endIndex,n=i-e-this.startLocation-(1-this.endLocation);t+=1/n*this.startLocation;var r=null;if(this._axisBreaks){var o=this._axisBreaks;d.eachContinue(o.iterator(),(function(o){var a=o.startPosition,s=o.endPosition,l=o.adjustedStartValue,c=o.adjustedEndValue;l=h.max(l,e),c=h.min(c,i);var u=o.breakSize;if(n-=(c-l)*(1-u),t>s)e+=(c-l)*(1-u);else if(!(t<a)){var d=(t-a)/(s-a);return r=l+Math.round(d*(c-l)),!1}return!0}))}return u.isNumber(r)||(r=Math.floor(t*n+e)),r>=this.dataItems.length&&(r=this.dataItems.length-1),r},e.prototype.positionToCategory=function(t){return this.getPositionLabel(t)},e.prototype.getPositionLabel=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return e.category},Object.defineProperty(e.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this),this.renderer.baseGrid.disabled=!0},Object.defineProperty(e.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),e}(r.a);s.c.registeredClasses.CategoryAxis=g,s.c.registeredClasses.CategoryAxisDataItem=f},VCCo:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("FUSD"),o=i("vSjZ"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},VGgz:function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"c",(function(){return c})),i.d(e,"b",(function(){return h})),i.d(e,"d",(function(){return u}));var n=i("m4/l"),r=i("o0Lc"),o=i("hJ5i"),a=i("Wglt"),s=i("Mtpk"),l=function(){function t(t){this._values=[],this.events=new r.a,null!=t&&this.setAll(t)}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype._insert=function(t){return this._values.push(t),this._values.length-1},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return o.indexOf(this._values,t)},t.prototype.contains=function(t){return-1!==this.indexOf(t)},t.prototype.getIndex=function(t){return this._values[t]},Object.defineProperty(t.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),t.prototype.insert=function(t){var e=this._insert(t);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:e,newValue:t})},t.prototype.remove=function(t){var e=this.indexOf(t);if(-1!==e){var i=this._values[e];o.removeIndex(this._values,e),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:e,oldValue:i})}},t.prototype.setAll=function(t){var e=this;o.eachReverse(this._values,(function(t,i){e._values.pop(),e.events.isEnabled("removed")&&e.events.dispatchImmediately("removed",{type:"removed",target:e,index:i,oldValue:t})})),o.each(t,(function(t){e.insert(t)}))},t.prototype.clear=function(){this.setAll([])},t.prototype.slice=function(e,i){var n=new t;return n._values=this._values.slice(e,i),n},t.prototype.findClosestIndex=function(t,e,i){void 0===i&&(i="any");var n,r,o=-1,l=0;return a.eachContinue(this.iterator(),(function(a){var c=e(a);if("any"===i){if(c===t)return o=l,!1;var h=Math.abs(t-c);(!s.hasValue(r)||r>h)&&(o=l,n=c,r=h)}else"left"===i&&c<t?(!s.hasValue(n)||n<c)&&(o=l,n=c):"right"===i&&c>=t&&(!s.hasValue(n)||n>=c)&&(o=l,n=c);return++l,!0})),-1===o&&("left"===i?o=0:"right"===i&&(o=this.length-1)),o},t.prototype.iterator=function(){return a.fromArray(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return n.d(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){o.each(this._values,t)},t}(),c=function(t){function e(e){var i=t.call(this)||this;return i._ordering=e,i}return n.c(e,t),e.prototype._insert=function(t){var e=o.getSortedIndex(this._values,this._ordering,t).index;return o.insertIndex(this._values,e,t),e},e.prototype.indexOf=function(t){var e=o.getSortedIndex(this._values,this._ordering,t),i=e.found,n=e.index;return i?n:-1},e.prototype.update=function(t){var e=o.indexOf(this._values,t);if(-1!==e){var i=this._values.length-1;(0===e||this._ordering(this._values[e-1],t)<0)&&(e===i||this._ordering(t,this._values[e+1])<0)||(o.removeIndex(this._values,e),this._insert(t))}},e}(l),h=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return n.c(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;a.each(t.iterator(),(function(t){e.insert(t.clone())}))},e.prototype.slice=function(t,i){var n=new e(this.template);return n._values=this._values.slice(t,i),n},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(l),u=function(t){function e(e,i){var n=t.call(this,i)||this;return n.template=e,n}return n.c(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;a.each(t.iterator(),(function(t){e.insert(t.clone())}))},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(c)},VIOb:function(t,e,i){"use strict";var n=i("m4/l"),r=i("aCit"),o=i("Y9w3"),a=i("hD5A"),s=i("vMqJ"),l=i("C6dT"),c=i("p9TX"),h=i("aGXA"),u=i("Vs7R"),d=i("MIZb"),p=i("tjMS"),f=i("hGwe"),g=function(t){function e(){var e=t.call(this)||this;e.className="Grip";var i=new d.a;e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var n=new u.a;n.element=e.paper.add("path");var r=f.moveTo({x:-6,y:0});return r+=f.lineTo({x:6,y:0}),r+=f.moveTo({x:-8,y:-6}),r+=f.lineTo({x:0,y:-12}),r+=f.lineTo({x:8,y:-6}),r+=f.moveTo({x:-8,y:6}),r+=f.lineTo({x:0,y:12}),r+=f.lineTo({x:8,y:6}),n.path=r,n.strokeWidth=2,n.fillOpacity=0,n.pixelPerfect=!0,n.padding(0,4,0,4),n.stroke=i.getFor("text"),n.strokeOpacity=.7,n.align="center",n.valign="middle",e.icon=n,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.events.on("down",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose()})),e.events.on("out",(function(t){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){if(this.setPropertyValue("position",t))switch(t){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=Object(p.c)(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="right",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=Object(p.c)(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=Object(p.c)(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=Object(p.c)(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=Object(p.c)(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(t){this.setPropertyValue("autoHideDelay",t)},enumerable:!0,configurable:!0}),e}(h.a);r.c.registeredClasses.Grip=g;var m=i("A6AV"),y=i("Wglt"),v=i("Mtpk"),b=i("TGuK");i.d(e,"b",(function(){return x})),i.d(e,"a",(function(){return w}));var x=function(t){function e(){var e=t.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return n.c(e,t),e}(m.a),w=function(t){function e(){var i=t.call(this)||this;if(i._legend=new a.d,i.constructor===e)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");i.className="Chart";var n=new c.a;i.titles=new s.e(n),i._disposers.push(new s.c(i.titles)),i._disposers.push(n),i.width=Object(p.c)(100),i.height=Object(p.c)(100),i.layout="vertical";var r=i.createChild(l.a);r.shouldClone=!1,r.layout="vertical",r.width=Object(p.c)(100),r.height=Object(p.c)(100),i.chartAndLegendContainer=r;var o=r.createChild(l.a);return o.shouldClone=!1,o.width=Object(p.c)(100),o.height=Object(p.c)(100),i.chartContainer=o,i.showOnInit=!0,i._disposers.push(i._legend),i.titles.events.on("inserted",(function(t){i.processTitle(t),i.updateReaderTitleReferences()}),i,!1),i.titles.events.on("removed",(function(t){i.updateReaderTitleReferences()}),i,!1),i.role="region",i.defaultState.transitionDuration=1,i.applyTheme(),i}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},e.prototype.draw=function(){this.fixLayout(),t.prototype.draw.call(this)},e.prototype.fixLayout=function(){var t=this.legend;if(t){var e=this.chartAndLegendContainer,i=this.chartContainer;switch(i.x=void 0,i.y=void 0,t.x=void 0,t.y=void 0,t.position){case"left":e.layout="horizontal",v.isNumber(t.width)||(t.width=200),t.toBack();break;case"right":e.layout="horizontal",v.isNumber(t.width)||(t.width=200),t.toFront();break;case"top":e.layout="vertical",t.maxWidth=void 0,t.width=Object(p.c)(100),t.toBack();break;case"bottom":e.layout="vertical",t.maxWidth=void 0,t.width=Object(p.c)(100),t.toFront()}}},e.prototype.feedLegend=function(){},e.prototype.processTitle=function(t){var e=t.newValue;return e.parent=this,e.toBack(),e.shouldClone=!1,e.align="center",e.uidAttr(),e},e.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var t=[];y.each(this.titles.iterator(),(function(e){t.push(e.uid)})),this.setSVGAttribute({"aria-labelledby":t.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(e.prototype,"legend",{get:function(){return this._legend.get()},set:function(t){this.setLegend(t)},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(t){var e=this;this._legend.get()!==t&&(t?(t.parent=this.chartAndLegendContainer,this._legend.set(t,t.events.on("propertychanged",(function(t){"position"!=t.property&&"width"!=t.property||e.fixLayout()}),void 0,!1))):this._legend.reset(),this.feedLegend())},e.prototype.dispose=function(){this.legend&&this.legend.dispose(),t.prototype.dispose.call(this)},e.prototype.processConfig=function(e){e&&v.hasValue(e.legend)&&!v.hasValue(e.legend.type)&&(e.legend.type="Legend"),t.prototype.processConfig.call(this,e)},e.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),this.chartContainer.copyFrom(e.chartContainer),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),t.prototype.copyFrom.call(this,e)},Object.defineProperty(e.prototype,"dragGrip",{get:function(){var t=this;if(!this._dragGrip){var e=this.tooltipContainer.createChild(g);e.align="right",e.valign="middle",e.hide(0),e.events.on("down",(function(e){e.touch&&(t.interactionsEnabled=!1)})),e.events.on("up",(function(e){t.interactionsEnabled=!0})),this.events.on("down",(function(t){t.touch&&e.show()})),this._dragGrip=e}return this._dragGrip},set:function(t){this._dragGrip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(t){this.parent.focusable=!0},enumerable:!0,configurable:!0}),e}(o.a);r.c.registeredClasses.Chart=w,b.c.push({relevant:b.b.widthXS,state:function(t,e){if(t instanceof w){var i=t.states.create(e);return t.pixelPaddingLeft>10&&(i.properties.paddingLeft=10),t.pixelPaddingRight>10&&(i.properties.paddingRight=10),i}return null}}),b.c.push({relevant:b.b.heightXS,state:function(t,e){if(t instanceof w){var i=t.states.create(e);return t.pixelPaddingTop>10&&(i.properties.paddingTop=10),t.pixelPaddingBottom>10&&(i.properties.paddingBottom=10),i}return null}}),b.c.push({relevant:b.b.widthXXS,state:function(t,e){if(t instanceof w){var i=t.states.create(e);return i.properties.paddingLeft=0,i.properties.paddingRight=0,i}return null}}),b.c.push({relevant:b.b.heightXXS,state:function(t,e){if(t instanceof w){var i=t.states.create(e);return i.properties.paddingTop=0,i.properties.paddingBottom=0,i}return null}})},VYrJ:function(t,e,i){var n=i("OB1/")("keys"),r=i("7bL/");t.exports=function(t){return n[t]||(n[t]=r(t))}},Vk33:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("FzPm"),o=i("aCit"),a=i("hGwe"),s=i("Gg2j"),l=i("v9UT"),c=i("aFzC"),h=function(t){function e(){var e=t.call(this)||this;return e.className="WavedCircle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.fill=void 0,e.fillOpacity=0,e.tension=.8,e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){var t="",e=this.pixelRadius;if(e>0){var i=this.getPoints(e);t=a.moveTo(i[0])+new c.b(this.tension,this.tension).smooth(i)}var n=this.pixelInnerRadius;n>0&&((i=this.getPoints(n)).reverse(),t+=a.moveTo(i[0])+new c.b(this.tension,this.tension).smooth(i)),this.path=t},e.prototype.getPoints=function(t){for(var e=t*Math.PI*2,i=this.waveHeight/2,n=e/Math.round(e/this.waveLength),r=n/2,o=[],a=e/n,l=0;l<=a;l++){var c=l*n/e*360,h=(l*n+r)/e*360;o.push({x:(t-i)*s.cos(c),y:(t-i)*s.sin(c)}),o.push({x:(t+i)*s.cos(h),y:(t+i)*s.sin(h)})}return o.pop(),o},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return l.relativeToValue(this.innerRadius,s.min(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.WavedCircle=h},Vng0:function(t,e,i){var n=i("hjwn"),r=i("Wbjh");t.exports=i("gD3S")?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},Vs7R:function(t,e,i){"use strict";i.d(e,"b",(function(){return F})),i.d(e,"a",(function(){return R}));var n=i("m4/l"),r=i("ux7t"),o=i("kQxV"),a=i("Tjl+"),s=i("x79X"),l=i("+qIf"),c=i("vMqJ"),h=i("hD5A"),u=i("1yyj"),d=i("P7v+"),p=i("C6dT"),f=i("ZLF9"),g=i("sxA1"),m=i("CuFa"),y=i("8ZqG"),v=i("zhwk"),b=i("qCRI"),x=i("Q4nc"),w=i("aCit"),_=i("CTEm"),S=i("7XB+"),P=i("akNo"),k=i("MipW"),C=i("P/bD"),T=i("GAaQ"),A=i("v9UT"),O=i("Gg2j"),M=i("ScGY"),E=i("hJ5i"),I=i("Qkdp"),D=i("Mtpk"),L=i("Wglt"),j=i("Rpw0"),N=i("tjMS"),F=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],R=function(t){function e(){var e=t.call(this)||this;return e.properties={},e._eventDispatcher=new o.a(e),e._bindings={},e._isTemplate=!1,e._isPath=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new h.d,e._positionPrecision=3,e._language=new h.d,e._exporting=new h.d,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0},e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e._measuredWidthSelf=0,e._measuredHeightSelf=0,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e.maxLeftSelf=0,e.maxRightSelf=0,e.maxTopSelf=0,e.maxBottomSelf=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.measureFailed=!1,e.preventShow=!1,e.className="Sprite",e._disposers.push(e._eventDispatcher),A.used(e.uid),e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("tooltipX",Object(N.c)(50)),e.setPropertyValue("tooltipX",Object(N.c)(50)),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e.setPropertyValue("showTooltipOn","hover"),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new h.b((function(){I.each(e._bindings,(function(t,e){e.dispose()}))}))),e.setPropertyValue("interactionsEnabled",!0),e}return n.c(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new s.a(this)),this._adapterO},enumerable:!0,configurable:!0}),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),x.a.autoSetClassName&&this.setClassName()},e.prototype.getCurrentThemes=function(){var t=this._themes;if(t)return t;var e=this.parent;return e?e.getCurrentThemes():w.c.themes},e.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},e.prototype.invalidate=function(){this.disabled||this._isTemplate||this.invalid||(this.invalid=!0,w.c.addToInvalidSprites(this),j.b.requestFrame())},e.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,w.c.removeFromInvalidSprites(this),this.afterDraw()},e.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,w.c.addToInvalidPositions(this),j.b.requestFrame())},e.prototype.validatePosition=function(){var t=this.pixelX,e=this.pixelY,i=this.dx,n=this.dy,r=t+i,o=e+n;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var a=this.measure(),s=this.group.transformString;this.group.moveTo({x:r,y:o}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(s!=this.group.transformString||a)&&(null==s?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),"hit"!=this.showTooltipOn&&"always"!=this.showTooltipOn||this.updateTooltipPosition()),t+i==r&&e+n==o&&(w.c.removeFromInvalidPositions(this),this.positionInvalid=!1);var l=this._maskRectangle;l&&this._clipElement.moveTo({x:l.x-t,y:l.y-e})},e.prototype.beforeDraw=function(){},e.prototype.draw=function(){},e.prototype.afterDraw=function(){if((this.isMeasured||"none"!==this.horizontalCenter||"none"!==this.verticalCenter)&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var t=n.g(this._adapterO.keys()),e=t.next();!e.done;e=t.next()){var i=e.value;switch(i){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[i]=this[i]}}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=t.return)&&o.call(t)}finally{if(r)throw r.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}var r,o;"always"==this.showTooltipOn&&(!this.visible||this.disabled||this.__disabled?this.hideTooltip(0):this.showTooltip())},e.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},e.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},e.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},e.prototype.updateFilterScale=function(){var t=this;L.each(this.filters.iterator(),(function(e){e.scale=t.globalScale}))},e.prototype.removeFromInvalids=function(){w.c.removeFromInvalidSprites(this),w.c.removeFromInvalidPositions(this)},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each((function(t){i.filters.push(t.clone())})),e._adapterO&&this.adapter.copyFrom(e._adapterO),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):this.tooltip=e.tooltip.clone()),this._showSystemTooltip=e.showSystemTooltip,A.copyProperties(e.propertyFields,this.propertyFields),A.copyProperties(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone())},e.prototype.dispose=function(){if(!this.isDisposed()){if(this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(t.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--)this._clones.getIndex(e).dispose();this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var i=this.stroke;!i||i instanceof y.a||!i.dispose||this.clonedFrom&&this.clonedFrom.stroke==i||i.dispose();var n=this.fill;if(!n||n instanceof y.a||!n.dispose||this.clonedFrom&&this.clonedFrom.fill==n||n.dispose(),D.hasValue(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var r=this._filters.getIndex(0);r.dispose(),this._filters.removeValue(r)}this._alwaysShowDisposers=void 0}},Object.defineProperty(e.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(t){t=D.toBoolean(t),this._isTemplate!=t&&(this._isTemplate=t,this instanceof p.a&&L.each(this.children.iterator(),(function(e){e.isTemplate=t})),t?(this.parent=this.parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSystemTooltip",{get:function(){return D.hasValue(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:!!this.parent&&this.parent.showSystemTooltip},set:function(t){t=D.toBoolean(t),this._showSystemTooltip!=t&&(this._showSystemTooltip=t,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topParent",{get:function(){return this._topParent?this._topParent:this.parent?this.parent.topParent:void 0},set:function(t){this._topParent=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(t){if(!this._isTemplate){A.used(this.paper);var e=this._parent;e!=t&&(e&&e.children.removeValue(this),this._parent=t,t?(this.topParent=t.topParent,t.isTemplate&&(this.isTemplate=!0),this.baseId=t.baseId,t.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=t.tooltipContainer),this._dataItem||(this.dataItem=t.dataItem),this.handleAlwaysShowTooltip(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),e.prototype.handleAlwaysShow=function(){this.showTooltip()},e.prototype.handleAlwaysShowTooltip=function(){var t=this,e=this._alwaysShowDisposers;if(e&&E.each(e,(function(t){t.dispose()})),this._alwaysShowDisposers=[],"always"==this.showTooltipOn)for(;null!=t;){var i=t.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(i),this._alwaysShowDisposers.push(i),t=t.parent}},Object.defineProperty(e.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(t){this._virtualParent=t},enumerable:!0,configurable:!0}),e.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var t=this.fill;t&&t.element&&this.paper.appendDef(t.element);var e=this.stroke;if(e&&e.element&&this.paper.appendDef(e.element),this.fillModifier&&this.fill instanceof y.a){var i=this.fillModifier.modify(this.fill);i&&i.element&&this.paper.appendDef(i.element)}if(this.strokeModifier&&this.stroke instanceof y.a){var n=this.strokeModifier.modify(this.stroke);n&&n.element&&this.paper.appendDef(n.element)}this._clipPath&&this.paper.appendDef(this._clipPath),!1===this._exportable&&(this.exportable=!1)},Object.defineProperty(e.prototype,"map",{get:function(){var t=this.topParent;return t?t.map:(this._map||(this._map=new l.a),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){if(this._id!=t){if(this._id=t,this.map.hasKey(t))throw Error("Duplicate id ("+t+") used on multiple objects.");this.map.setKey(t,this),x.a.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:this.parent?this.parent.paper:Object(d.b)()},set:function(t){this.setPaper(t)},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(t){return this._paper!=t&&(this._paper=t,this.appendDefs(),!0)},Object.defineProperty(e.prototype,"htmlContainer",{get:function(){return this._htmlContainer?this._htmlContainer:this.parent?this.parent.htmlContainer:void 0},set:function(t){this._htmlContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters||(this._filters=new c.b,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new c.c(this._filters))),this._filters},enumerable:!0,configurable:!0}),e.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},e.prototype.setSVGAttribute=function(t){this.group.attr(t)},e.prototype.removeSVGAttribute=function(t){this.group.removeAttr(t)},e.prototype.setClassName=function(){var t=this.className,e=x.a.classNamePrefix;this.element&&this.element.addClass(e+t),this.group.addClass(e+t+"-group"),D.hasValue(this.id)&&this.group.addClass(e+this.id)},e.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},e.prototype.updateClipPath=function(){var t=this._clipElement;t&&t.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},e.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var t=w.c.getUniqueId();this._clipPath.attr({id:t}),this.group.attr({"clip-path":'url("'+A.getBaseURI()+t+'")'})}},e.prototype.applyMask=function(){var t=this.mask;if(this._clipPath&&t)if(t instanceof p.a){this._clipElement.attr({width:O.max(0,t.pixelWidth),height:O.max(0,t.pixelHeight)});var e=A.spritePointToSprite({x:t.pixelX,y:t.pixelY},t.parent,this);this._clipPath.x=e.x,this._clipPath.y=e.y}else t.element&&t.element!=this._clipElement&&(this._clipElement=t.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=t.scale,this._clipPath.x=t.pixelX,this._clipPath.y=t.pixelY,this._clipPath.rotation=t.rotation},e.prototype.applyFilters=function(){var t=this;if(this._filters&&this._filters.length>0){var e=100,i=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var n="filter-"+this.uid;this.filterElement.attr({id:n}),L.each(this.filters.iterator(),(function(n){n.sprite=t,n.paper=t.paper,n.appendPrimitives(t.filterElement),n.width>e&&(e=n.width),n.height>i&&(i=n.height),n.scale=t.globalScale}));var r=e+"%",o=i+"%";this.filterElement.attr({width:r,height:o,x:-(e-100)/2+"%",y:-(i-100)/2+"%"}),this.group.attr({filter:'url("'+A.getBaseURI()+n+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},e.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},e.prototype.setElement=function(t){this.element=t,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this.removeElement(),this._element=t,this.group.add(t),t.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),x.a.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgContainer",{get:function(){return this._svgContainer?this._svgContainer:this.parent?this.parent.svgContainer:void 0},set:function(t){this._svgContainer=t},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var t=this.element.getBBox();this._bbox={x:t.x,y:t.y,width:t.width,height:t.height}}},e.prototype.updateCenter=function(){if(this.element){var t=this.element.transformString,e=this.bbox,i=0,n=0,r=e.x,o=e.y,a=e.width,s=e.height,l=this.pixelPaddingLeft,c=this.pixelPaddingRight,h=this.pixelPaddingTop,u=this.pixelPaddingBottom,d=O.max(a+l+c,this.pixelWidth),p=O.max(s+h+u,this.pixelHeight),f=e.x,g=e.x+d,m=e.y,y=e.y+p,v=this.horizontalCenter,b=this.verticalCenter;switch(v){case"none":i=r+l;break;case"left":i=l;break;case"middle":i=l-(a+c+l)/2;break;case"right":i=-c-a}switch(b){case"none":n=o+h;break;case"top":n=h;break;case"middle":n=h-(s+u+h)/2;break;case"bottom":n=-u-s}this._measuredHeight=p,this._measuredWidth=d;var x=O.round(i-r,this._positionPrecision,!0),w=O.round(n-o,this._positionPrecision,!0);this.ex=x-l,this.ey=w-h,this.maxLeft=f+x-l,this.maxRight=g+x-l,this.maxTop=m+w-h,this.maxBottom=y+w-h,this.pixelPerfect&&(x-=.5,w-=.5),this.element.moveTo({x:x,y:w}),t!=this.element.transformString&&this.dispatchImmediately("transformed")}},e.prototype.measure=function(){this.updateCenter();var t=this._measuredWidth,e=this._measuredHeight,i=this.maxLeft,n=this.maxRight,r=this.maxTop,o=this.maxBottom;this._measuredWidthSelf=t,this._measuredHeightSelf=e;var a=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,0!==this.rotation||1!==this.scale){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var s=this.paper.svg,l=s.createSVGMatrix(),c=this.rotation;l.a=O.cos(c)*this.scale,l.c=-O.sin(c)*this.scale,l.e=0,l.b=O.sin(c)*this.scale,l.d=O.cos(c)*this.scale,l.f=0;var h=s.createSVGPoint();h.x=i,h.y=r;var u=s.createSVGPoint();u.x=n,u.y=r;var d=s.createSVGPoint();d.x=n,d.y=o;var p=s.createSVGPoint();p.x=i,p.y=o;var f=h.matrixTransform(l),g=u.matrixTransform(l),m=d.matrixTransform(l),y=p.matrixTransform(l);i=Math.min(f.x,g.x,m.x,y.x),n=Math.max(f.x,g.x,m.x,y.x),r=Math.min(f.y,g.y,m.y,y.y),t=n-i,e=(o=Math.max(f.y,g.y,m.y,y.y))-r,this.maxLeft=O.round(i,a,!0),this.maxRight=O.round(n,a,!0),this.maxTop=O.round(r,a,!0),this.maxBottom=O.round(o,a,!0)}return this._measuredWidth=O.round(t,a,!0),this._measuredHeight=O.round(e,a,!0),(this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight)&&(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||"hit"==this.showTooltipOn||"always"==this.showTooltipOn)&&this.tooltip&&this.tooltip.visible&&(D.hasValue(this.tooltipText)||D.hasValue(this.tooltipHTML))&&this.updateTooltipPosition(),!0)},e.prototype.insertBefore=function(t){var e=this.parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i),e.sortChildren())}return this},e.prototype.insertAfter=function(t){var e=this.parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i+1),e.sortChildren())}return this},e.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},e.prototype.getRelativeX=function(t){return t instanceof N.a?t.value:this.parent?t/this.parent.innerWidth:0},e.prototype.getRelativeY=function(t){return t instanceof N.a?t.value:this.parent?t/this.parent.innerHeight:0},e.prototype.getPixelX=function(t){var e=0;if(D.isNumber(t))e=t;else if(t instanceof N.a){var i=t.value;this.parent&&(e=O.round(this.parent.innerWidth*i,this._positionPrecision,!0))}return e},e.prototype.getPixelY=function(t){var e=0;if(D.isNumber(t))e=t;else if(t instanceof N.a){var i=t.value;this.parent&&(e=O.round(this.parent.innerHeight*i,this._positionPrecision,!0))}return e},e.prototype.moveTo=function(t,e,i,n){this.isDragged&&!n||(t&&(D.isNumber(t.x)&&this.setPropertyValue("x",O.round(t.x,this._positionPrecision,!0)),D.isNumber(t.y)&&this.setPropertyValue("y",O.round(t.y,this._positionPrecision,!0))),D.isNumber(e)&&(this.rotation=e),D.isNumber(i)&&(this.scale=i),this.invalidatePosition())},Object.defineProperty(e.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(t){var e=this;this._mask.get()!==t&&(t?(this.createClipPath(),t instanceof p.a?this._clipElement=this.paper.add("rect"):(t.isMeasured=!1,t.element&&(this._clipElement=t.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(t,new h.c([t.events.on("maxsizechanged",(function(){e.inited&&e.applyMask()}),void 0,!1),t.events.on("validated",this.applyMask,this,!1),t.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(t){t?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:t.width,height:t.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(t){(t=D.toBoolean(t))||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=t&&(this._isMeasured=t,this.invalidatePosition())},enumerable:!0,configurable:!0}),e.prototype.hitTest=function(t){this.invalid&&this.validate(),t.invalid&&t.validate();var e=this.pixelX,i=this.pixelY,n=e+this.measuredWidth,r=i+this.measuredHeight,o=t.pixelX,a=t.pixelY,s=o+t.measuredWidth,l=a+t.measuredHeight;return!(o>n||s<e||a>r||l<i)},Object.defineProperty(e.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),e.prototype.isReady=function(){return this._ready},Object.defineProperty(e.prototype,"states",{get:function(){if(!this._states){var t=new r.a;this._states=new l.c(t),this._disposers.push(this._states.events.on("insertKey",this.processState,this,!1)),this._disposers.push(this._states.events.on("setKey",this.processState,this,!1)),this._disposers.push(new l.b(this._states)),this._disposers.push(t)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenState",{get:function(){if(!this.states.getKey("hidden")){var t=this.states.create("hidden");t.properties.opacity=0,t.properties.visible=!1}return this.states.getKey("hidden")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultState",{get:function(){return this.states.getKey("default")||(this.states.create("default").properties.opacity=1),this.states.getKey("default")},enumerable:!0,configurable:!0}),e.prototype.processState=function(t){var e=t.newValue;if(e.sprite=this,e.name=t.key,(this.states.hasKey("hover")||"hover"==this.showTooltipOn&&(D.hasValue(this.tooltipHTML)||D.hasValue(this.tooltipText)))&&(this.hoverable=!0),(this.states.hasKey("down")||"hover"==this.showTooltipOn&&(D.hasValue(this.tooltipHTML)||D.hasValue(this.tooltipText)))&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var i=this.clones.values,n=i.length,r=0;r<n;++r){var o=i[r];o.isDisposed()||o.states.setKey(e.name,e)}},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new u.b(this._animations))),this._animations},enumerable:!0,configurable:!0}),e.prototype.getSvgPoint=function(t){try{var e=this.htmlContainer.getBoundingClientRect();return{x:t.x-e.left,y:t.y-e.top}}catch(e){return t}},e.prototype.animate=function(t,e,i){return new u.a(this,t,e,i).start()},e.prototype.setState=function(t,e,i){var n;if(t instanceof r.a)this.states.setKey(t.name,t),n=t;else if(!(n=this.states.getKey(t)))return;if("hover"==n.name){if(this.isHidden)return;this.isHover=!0}return"hidden"==n.name?this.isHiding=!0:this.visible||this.setVisibility(n.properties.visible||this.defaultState.properties.visible),"active"==n.name&&(this.isActive=!0),D.isNumber(e)||(e=n.transitionDuration),D.hasValue(i)||(i=n.transitionEasing),this.transitTo(n,e,i)},e.prototype.applyCurrentState=function(t){var e=this.setState(this.defaultState,t);return this.isHover&&(e=this.setState("hover",t)),this.isDown&&this.interactions.downPointers.length&&(e=this.setState("down",t)),this.isFocused=this.isFocused,this.isActive&&(e=this.setState("active",t),this.isHover&&this.states.hasKey("hoverActive")&&(e=this.setState("hoverActive",t))),e},e.prototype.transitTo=function(t,e,i){var n,r=this,o=[],a=t.allValues;if(I.each(a,(function(t,e){var i=r[t];if(e!=i&&null==r.defaultState.properties[t]&&(r.defaultState.properties[t]=i),D.hasValue(e)){var n={from:i,to:e,property:t};o.push(n)}})),o.length>0&&((n=this.animate(o,e,i))&&!n.isFinished()?this._disposers.push(n.events.on("animationended",(function(){r.dispatchImmediately("transitionended")}))):this.dispatchImmediately("transitionended")),t.filters.length>0){var s=[];L.each(t.filters.iterator(),(function(t){var n=t.clone();s.push(n);var o=[];L.each(r.filters.iterator(),(function(t){t.className==n.className&&(L.contains(r.defaultState.filters.iterator(),(function(t){return t.className===n.className}))||r.defaultState.filters.push(t),I.each(n.properties,(function(e,i){var n=t.properties[e];n!=i&&o.push({property:e,from:n,to:i})})))})),n.animate(o,e,i)})),this.filters.clear(),this.filters.pushAll(s)}return n},e.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(e.prototype,"isHover",{get:function(){return!!this.isInteractive()&&this.interactions.isHover},set:function(t){(t=D.toBoolean(t))!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=t,t?this.handleOver():this.handleOut())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return!!this.isInteractive()&&this.interactions.isDown},set:function(t){t=D.toBoolean(t),this.isInteractive()&&this.isDown!=t&&(this.interactions.isDown=t,t?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!!this.isInteractive()&&this.interactions.isFocused},set:function(t){t=D.toBoolean(t),this.focusable&&this.isFocused!=t&&this.isInteractive()&&(this.interactions.isFocused=t,!0===t?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this.setActive(t)},enumerable:!0,configurable:!0}),e.prototype.setActive=function(t){t=D.toBoolean(t),this._isActive!==t&&(this._isActive=t,t&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(e.prototype,"disabled",{get:function(){var t=this.getPropertyValue("disabled");return D.hasValue(t)?t:this.virtualParent?this.virtualParent.disabled:!!this.parent&&this.parent.disabled},set:function(t){this.setDisabled(t)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(t){if(t=D.toBoolean(t),this.getPropertyValue("disabled")!=t){if(this.setPropertyValue("disabled",t,!0),t)this.parent=this.parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this.parent){var e=this.parent.element;e.hasChild(this.group)||e.add(this.group)}this instanceof p.a?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),j.b.requestFrame(),!0}return!1},Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(t){this._internalDisabled!=t&&(this._internalDisabled=t,this._updateDisabled=!0,this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this.parent?this.parent.numberFormatter:(this._numberFormatter=new _.a,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(t){this._numberFormatter=t,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this.parent?this.parent.dateFormatter:(this._dateFormatter=new S.a,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(t){this._dateFormatter=t,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this.parent?this.parent.durationFormatter:(this._durationFormatter=new P.a,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(t){this._durationFormatter=t,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this._language.get();return t||(this.virtualParent?this.virtualParent.language:this.parent?this.parent.language:(t=new C.a,this.language=t,t))},set:function(t){var e=this;this._language.get()!==t&&this._language.set(t,t.events.on("localechanged",(function(t){if(e._numberFormatter&&(e._numberFormatter.language=e.language),e._dateFormatter&&(e._dateFormatter.language=e.language),e._durationFormatter&&(e._durationFormatter.language=e.language),e._exporting.get()){var i=e._exporting.get();i.numberFormatter.language=e.language,i.dateFormatter.language=e.language,i.durationFormatter.language=e.language,i.language=e.language}e instanceof p.a&&e.deepInvalidate()})))},enumerable:!0,configurable:!0}),e.prototype.populateString=function(t,e){if(D.hasValue(t)){t=D.castString(t);var i=(t=Object(k.b)().escape(t)).match(/\{([^}]+)\}/g),n=void 0;if(i)for(n=0;n<i.length;n++){var r=i[n].replace(/\{([^}]+)\}/,"$1"),o=this.getTagValue(r,"",e);D.hasValue(o)||(o=""),t=t.split(i[n]).join(o)}t=Object(k.b)().unescape(t)}else t="";return this._adapterO?this._adapterO.apply("populateString",t):t},e.prototype.getTagValue=function(t,e,i){var n;D.hasValue(i)||(i=this.dataItem);for(var r,o=[],a=/([^.]+)\(([^)]*)\)|([^.]+)/g;null!==(r=a.exec(t));)if(r[3])o.push({prop:r[3]});else{var s=[];if(""!=A.trim(r[2]))for(var l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,c=void 0;null!==(c=l.exec(r[2]));)s.push(c[1]||c[2]||c[3]);o.push({method:r[1],params:s})}if(i){n=this.getTagValueFromObject(o,i.values),D.hasValue(n)&&!D.isObject(n)||(n=this.getTagValueFromObject(o,i));var h=i.dataContext;!D.hasValue(n)&&h&&(n=this.getTagValueFromObject(o,i.dataContext),!D.hasValue(n)&&h.dataContext&&(n=this.getTagValueFromObject(o,h.dataContext))),!D.hasValue(n)&&i.component&&i.component.dataItem!==i&&(n=i.component.getTagValue(t,e))}return D.hasValue(n)||(n=this.getTagValueFromObject(o,this.populateStringFrom||this)),!D.hasValue(n)&&this.parent&&(n=this.parent.getTagValue(t,e)),n},e.prototype.getTagValueFromObject=function(t,e,i){for(var n=e,r=!1,o=0,a=t.length;o<a;o++){var s=t[o];if(s.prop){if(n=n[s.prop],!D.hasValue(n))return}else switch(s.method){case"formatNumber":var l=A.anyToNumber(n);D.hasValue(l)&&(n=this.numberFormatter.format(l,i||s.params[0]||void 0),r=!0);break;case"formatDate":var c=void 0;if(c=D.isString(n)?this.dateFormatter.parse(n):A.anyToDate(n),!D.isDate(c)||D.isNaN(c.getTime()))return;D.hasValue(c)&&(n=this.dateFormatter.format(c,i||s.params[0]||void 0),r=!0);break;case"formatDuration":var h=A.anyToNumber(n);D.hasValue(h)&&(n=this.durationFormatter.format(h,i||s.params[0]||void 0,s.params[1]||void 0),r=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[s.method]&&n[s.method].apply(this,s.params)}}if(!r){var u=[{method:"",params:i}];if(D.hasValue(i)){var d=A.getFormat(i);d===M.c?u[0].method="formatNumber":d===M.a?u[0].method="formatDate":d===M.b&&(u[0].method="formatDuration")}else D.isNumber(n)?(u[0].method="formatNumber",u[0].params=""):D.isDate(n)&&(u[0].method="formatDate",u[0].params="");u[0].method&&(n=this.getTagValueFromObject(u,n))}return n},Object.defineProperty(e.prototype,"dataItem",{get:function(){if(!this._dataItem){if(this.virtualParent)return this.virtualParent.dataItem;if(this.parent)return this.parent.dataItem}return this._dataItem},set:function(t){this.setDataItem(t)},enumerable:!0,configurable:!0}),e.prototype.setDataItem=function(t){var e=this;if(this._dataItem!=t){if(this._dataItem=t,t){if(this.configField){var i=t.dataContext;i&&(this.config=i[this.configField],!this.config&&i.dataContext&&(this.config=i.dataContext[this.configField]))}var n=t.dataContext;if(n){var r=n.dataContext;I.each(this.propertyFields,(function(t,i){if(D.hasValue(n[i]))e[t]=n[i];else if(r){var o=r[i];D.hasValue(o)&&(e[t]=o)}}))}}this.invalidate()}},e.prototype.getPropertyValue=function(t){var e=this.properties[t];return this._isTemplate||this._adapterO&&(e=this._adapterO.apply(t,e)),e},e.prototype.setColorProperty=function(t,e,i){var n=this.properties[t];return!(e instanceof y.a&&n instanceof y.a&&e.toString()==n.toString())&&this.setPropertyValue(t,e,i)},e.prototype.setPercentProperty=function(t,e,i,n,r,o){if(e=D.toNumberOrPercent(e),D.isNumber(e))return e=O.round(e,r,o),this.setPropertyValue(t,e,i,n);var a=this.properties[t];return!(e instanceof N.a&&a instanceof N.a&&e.value==a.value)&&this.setPropertyValue(t,e,i,n)},e.prototype.setPropertyValue=function(t,e,i,n){if(this.properties[t]!==e&&!this.isDisposed()){if(this.properties[t]=e,this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:t};this.events.dispatchImmediately("propertychanged",r)}if(i&&this.invalidate(),n&&this.invalidatePosition(),this.applyOnClones)for(var o=this.clones.values,a=o.length,s=0;s<a;++s){var l=o[s];l.isDisposed()||(l[t]=e)}return!0}return!1},e.prototype.bind=function(t,e,i,n){var r=this;void 0===i&&(i=t),D.hasValue(this._bindings[t])&&this._bindings[t].dispose(),this[t]=e[i],this._bindings[t]=e.events.on("propertychanged",(function(o){if(o.property===i){var a=e[i];n&&(a=n(a)),r[t]=a}}))},e.prototype.observe=function(t,e,i,n){var r=this;return new h.c(E.map(E.toArray(t),(function(t){return r.events.on("propertychanged",(function(n){n.property===t&&e.call(i,n)}),i,n)})))},e.prototype.applyAccessibility=function(){var t=this.readerTitle,e=this.readerDescription,i=this.role,n=this.readerHidden,r=this.readerChecked,o=this.readerControls,a=this.readerLive,s=this.readerOrientation,l=this.readerValueNow,c=this.readerValueText,h=[],u=[],d=this.readerLabelledBy;d&&h.push(d);var p=this.readerDescribedBy;if(p&&u.push(p),!this.showSystemTooltip&&t&&(e=e?t+" -- "+e:t,t=void 0),!t||e||this.showSystemTooltip){if(t){var f=this.titleElement,g=this.uid+"-title";f.node.textContent!=t&&(f.node.textContent=t,f.attr({id:g})),h.push(g)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);var m=this.uid+"-description";if(e){var y=this.descriptionElement;y.node.textContent!=e&&(y.node.textContent=e,y.attr({id:m})),u.push(m)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0,E.remove(u,m))}else this.setSVGAttribute({"aria-label":t}),this.removeSVGAttribute("aria-description"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);h.length?this.setSVGAttribute({"aria-labelledby":h.join(" ")}):this.removeSVGAttribute("aria-labelledby"),u.length?this.setSVGAttribute({"aria-describedby":u.join(" ")}):this.removeSVGAttribute("aria-describedby"),i?this.setSVGAttribute({role:i}):this.removeSVGAttribute("role"),n?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),r?this.setSVGAttribute({"aria-checked":"true"}):!1===r?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),o?this.setSVGAttribute({"aria-controls":o}):this.removeSVGAttribute("aria-controls"),a?this.setSVGAttribute({"aria-live":a}):this.removeSVGAttribute("aria-live"),s?this.setSVGAttribute({"aria-orientation":s}):this.removeSVGAttribute("aria-orientation"),l?this.setSVGAttribute({"aria-valuenow":l}):this.removeSVGAttribute("aria-valuenow"),c?this.setSVGAttribute({"aria-valuetext":c}):this.removeSVGAttribute("aria-valuetext")},Object.defineProperty(e.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return D.hasValue(t)&&this.dataItem?this.populateString(t):t},set:function(t){t=D.toText(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescription",{get:function(){return this.getPropertyValue("readerDescription")},set:function(t){t=D.toText(t),this.setPropertyValue("readerDescription",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(t){t=D.toText(t),this.setPropertyValue("role",t)&&(this.applyAccessibility(),"slider"==t&&(this.setSVGAttribute({"aria-valuemin":"0"}),this.setSVGAttribute({"aria-valuemax":"100"})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("readerHidden",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("readerChecked",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(t){t=D.toText(t),this.setPropertyValue("readerControls",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(t){t=D.toText(t),this.setPropertyValue("readerLive",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(t){t=D.toText(t),this.setPropertyValue("readerLabelledBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(t){t=D.toText(t),this.setPropertyValue("readerDescribedBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerOrientation",{get:function(){return this.getPropertyValue("readerOrientation")},set:function(t){t=D.toText(t),this.setPropertyValue("readerOrientation",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerValueNow",{get:function(){return this.getPropertyValue("readerValueNow")},set:function(t){t=D.toText(t),this.setPropertyValue("readerValueNow",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerValueText",{get:function(){return this.getPropertyValue("readerValueText")},set:function(t){t=D.toText(t),this.setPropertyValue("readerValueText",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){if(!this.interactions.keyboardOptions){if(this.virtualParent)return this.virtualParent.keyboardOptions;if(this.parent)return this.parent.keyboardOptions}return this.interactions.keyboardOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseOptions",{get:function(){if(!this.interactions.mouseOptions){if(this.virtualParent)return this.virtualParent.mouseOptions;if(this.parent)return this.parent.mouseOptions}return this.interactions.mouseOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interactions",{get:function(){if(!this._interaction){var t=Object(v.b)().getInteraction(this.dom);this._interaction=t,this._interaction.clickable=this.clickable,this._interaction.hoverable=this.hoverable,this._interaction.trackable=this.trackable,this._interaction.draggable=this.draggable,this._interaction.swipeable=this.swipeable,this._interaction.resizable=this.resizable,this._interaction.wheelable=this.wheelable,this._interaction.contextMenuDisabled=this.contextMenuDisabled,this._interaction.inert=this.inert,this._interaction.sprite=this,this._disposers.push(this._interaction)}return this._interaction},enumerable:!0,configurable:!0}),e.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(e.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(t){var e=this;t=D.toBoolean(t),this.setPropertyValue("focusable",t)&&(t||this.isInteractive())&&(this.interactions.focusable=t,t?this.setSVGAttribute({focusable:t}):this.removeSVGAttribute("focusable"),this.interactions.setEventDisposer("sprite-focusable",t,(function(){return new h.c([e.events.on("blur",e.handleBlur,e,!1),e.events.on("focus",e.handleFocus,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleFocus=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},e.prototype.handleBlur=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(e.prototype,"focusFilter",{get:function(){return this._focusFilter||(this.virtualParent?this.virtualParent.focusFilter:this.parent?this.parent.focusFilter:void 0)},set:function(t){this._focusFilter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(t){t!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){var t=this._tabindex;return null!=t?t:this.virtualParent?this.virtualParent.tabindex:this.parent?this.parent.tabindex:void 0},set:function(t){t=D.toNumber(t),this.setPropertyValue("tabindex",t)&&D.isNumber(t)&&(this.interactions.tabindex=t,this.setSVGAttribute({tabindex:t}),this.focusable=t>-1||void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this.parent?this.parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(t){var e=this;t=D.toBoolean(t),this.setPropertyValue("draggable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.draggable=t,this.interactions.setEventDisposer("sprite-draggable",t,(function(){return new h.c([e.events.on("down",e.handleDown,e,!1),e.events.on("dragstart",e.handleDragStart,e,!1),e.events.on("drag",e.handleDragMove,e,!1),e.events.on("dragstop",e.handleDragStop,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleDragStart=function(t){this.interactions.isTouchProtected&&t.touch||(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},e.prototype.dragStart=function(t){this._isDragged=!0,Object(v.b)().dragStart(this.interactions,t)},e.prototype.handleDragStop=function(t){this.interactions.isTouchProtected&&t.touch||(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},e.prototype.dragStop=function(t){this._isDragged=!1,Object(v.b)().dragStop(this.interactions,t)},e.prototype.handleDragMove=function(t){if(!this.interactions.isTouchProtected||!t.touch){var e=this.interactions.originalPosition;if(e&&this._isDragged){var i=this.parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:e.x+t.shift.x/i,y:e.y+t.shift.y/i},void 0,void 0,!0)}this.dispatchImmediately("dragged",t)}},Object.defineProperty(e.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("inert",t)&&(t||this.isInteractive())&&(this.interactions.inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this.parent)return this.parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(t){var e=this;t=D.toBoolean(t),this.setPropertyValue("hoverable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.hoverable=t,this.interactions.setEventDisposer("sprite-hoverable",t,(function(){return new h.c([e.events.on("over",e.handleOver,e,!1),e.events.on("out",e.handleOut,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleOver=function(t){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var e=void 0;t&&t.pointer&&(e=A.documentPointToSvg(t.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),"hover"==this.showTooltipOn&&this.showTooltip(e)}else"hover"==this.showTooltipOn&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},e.prototype.handleOut=function(t){var e=this;this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover?this._outTimeout=this.setTimeout((function(){e.tooltip.isHover||(e.tooltip.targetSprite==e&&e.hideTooltip(),e._outTimeout=e.setTimeout(e.handleOutReal.bind(e),e.rollOutDelay))}),10):("hover"==this.showTooltipOn&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay))},e.prototype.handleOutReal=function(){this.isHidden||this.isHiding||!this.states.hasKey("hover")||this.applyCurrentState()},Object.defineProperty(e.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this.parent)return this.parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),e.prototype.handleDown=function(t){1===this.interactions.downPointers.length&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},e.prototype.handleUp=function(t){var e=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),"hit"==this.showTooltipOn&&(this.showTooltip(),this._disposers.push(Object(v.b)().body.events.once("down",(function(t){e.hideTooltip()}))))},Object.defineProperty(e.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(t){var e=this;t=D.toBoolean(t),this.setPropertyValue("clickable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.clickable=t,this.interactions.setEventDisposer("sprite-clickable",t,(function(){return new h.c([e.events.on("down",e.handleDown,e,!1),e.events.on("up",e.handleUp,e,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(t){var e=this;t=D.toBoolean(t),this.setPropertyValue("togglable",t)&&(t||this.isInteractive())&&this.interactions.setEventDisposer("sprite-togglable",t,(function(){return e.events.on("hit",e.handleToggle,e,!1)}))},enumerable:!0,configurable:!0}),e.prototype.handleToggle=function(t){this.isActive=!this.isActive},Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("contextMenuDisabled",t)&&(this.interactions.contextMenuDisabled=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(t){this.setPropertyValue("url",t)&&(this._urlDisposer&&this._urlDisposer.dispose(),A.isNotEmpty(t)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=b.a.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseId",{get:function(){return!this._baseId&&this.parent&&(this.baseId=this.parent.baseId),this._baseId},set:function(t){this.setBaseId(t)},enumerable:!0,configurable:!0}),e.prototype.setBaseId=function(t){t!=this._baseId&&(this.invalid&&(this.invalid=!1,w.c.removeFromInvalidSprites(this),this.invalidate()),this._baseId=t)},Object.defineProperty(e.prototype,"baseSprite",{get:function(){return this.isBaseSprite?this:this.parent?this.parent.baseSprite:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(t){this.setPropertyValue("urlTarget",t)},enumerable:!0,configurable:!0}),e.prototype.urlHandler=function(t){if(A.isNotEmpty(this.url)){var e=this.populateString(this.url);"_self"===this.urlTarget?window.location.href=e:window.open(e,this.urlTarget)}},Object.defineProperty(e.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this.parent)return this.parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("swipeable",t)&&(this.applyCursorStyle(),(t||this.isInteractive())&&(this.interactions.swipeable=t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("trackable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.trackable=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(t){this.setPropertyValue("wheelable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.wheelable=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(t){var e=this;t=D.toBoolean(t),this.setPropertyValue("resizable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.resizable=t,this.interactions.setEventDisposer("sprite-resizable",t,(function(){return new h.c([e.events.on("down",e.handleDown,e,!1),e.events.on("resize",e.handleResize,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleResize=function(t){if((!this.interactions.isTouchProtected||!t.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*t.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var e=A.documentPointToSvg(t.point1,this.htmlContainer,this.svgContainer.cssScale),i=A.documentPointToSvg(t.point2,this.htmlContainer,this.svgContainer.cssScale),n=O.getMidPoint(e,i),r=A.documentPointToSprite(t.startPoint1,this.parent),o=A.documentPointToSprite(t.startPoint2,this.parent),a=this.interactions.originalPosition,s=this.interactions.originalScale;if(a){var l={x:(r.x-a.x)/s,y:(r.y-a.y)/s},c={x:(o.x-a.x)/s,y:(o.y-a.y)/s},h=O.getMidPoint(l,c),u=A.svgPointToSprite(n,this.parent);this.moveTo({x:u.x-h.x*this.scale,y:u.y-h.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(e.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this.parent)return this.parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOverStyle",{set:function(t){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=t,Object(v.b)().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorDownStyle",{set:function(t){this.cursorOptions.downStyle=t},enumerable:!0,configurable:!0}),e.prototype.applyCursorStyle=function(){},Object.defineProperty(e.prototype,"interactionsEnabled",{get:function(){return!1!==this.getPropertyValue("interactionsEnabled")&&(this.virtualParent?this.virtualParent.interactionsEnabled:!this.parent||this.parent.interactionsEnabled)},set:function(t){if(t=D.toBoolean(t),this.setPropertyValue("interactionsEnabled",t)){var e=null;t?this.group.node.style.pointerEvents="":e="none",this.group.node.style.pointerEvents=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exporting",{get:function(){return this.getExporting()},set:function(t){this._exporting.set(t,t)},enumerable:!0,configurable:!0}),e.prototype.getExporting=function(){var t=this._exporting.get();return t||(!this.isStandaloneInstance&&this.parent?this.parent.exporting:((t=new T.a(this.svgContainer.SVGContainer)).sprite=this,t.language=this.language,t.numberFormatter=this.numberFormatter,t.dateFormatter=this.dateFormatter,t.durationFormatter=this.durationFormatter,this._exporting.set(t,t),t))},Object.defineProperty(e.prototype,"exportable",{get:function(){return this._exportable},set:function(t){var e=this.svgContainer;this._exportable=t,e&&(t?E.remove(e.nonExportableSprites,this):-1==E.indexOf(e.nonExportableSprites,this)&&e.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),e.prototype.modalPrefix=function(t){return x.a.classNamePrefix+t},Object.defineProperty(e.prototype,"modal",{get:function(){var t=this.svgContainer;if(t){var e=t.modal;return e.adapter.has("classPrefix",this.modalPrefix)||e.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),e.prototype.openModal=function(t,e){var i=this.svgContainer;if(i)return i.openModal(t,e)},e.prototype.closeModal=function(){var t=this.svgContainer;t&&t.closeModal()},Object.defineProperty(e.prototype,"popups",{get:function(){var t=this.svgContainer;if(t){var e=t.popups;return e.template.sprite=this,e.template.adapter.has("classPrefix",this.modalPrefix)||e.template.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),e.prototype.openPopup=function(t,e){var i=this.svgContainer;if(i)return i.openPopup(t,e)},e.prototype.closeAllPopups=function(){var t=this.svgContainer;t&&t.closeAllPopups()},Object.defineProperty(e.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(t){this.isDragged||this.setPercentProperty("x",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelX",{get:function(){var t=O.fitToRange(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(t){D.isNumber(t)&&(t=O.round(t,this._positionPrecision,!0),this.setPropertyValue("minX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(t){D.isNumber(t)&&(t=O.round(t,this._positionPrecision,!0),this.setPropertyValue("maxX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(t){this.isDragged||this.setPercentProperty("y",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelY",{get:function(){var t=O.fitToRange(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(t){D.isNumber(t)&&(t=O.round(t,this._positionPrecision,!0),this.setPropertyValue("minY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(t){D.isNumber(t)&&(t=O.round(t,this._positionPrecision,!0),this.setPropertyValue("maxY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(t){D.isNumber(t)&&(t=O.round(t,this._positionPrecision,!0),this.setPropertyValue("dx",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(t){D.isNumber(t)&&(t=O.round(t,this._positionPrecision,!0),this.setPropertyValue("dy",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(t){t=D.toNumber(t),D.isNumber(t)||(t=0),this.setPropertyValue("rotation",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(t){t=D.toText(t),this.setPropertyValue("align",t)&&this.parent&&this.parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(t){t=D.toText(t),this.setPropertyValue("valign",t)&&this.parent&&this.parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(t){t=D.toText(t),this.setPropertyValue("horizontalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(t){t=D.toText(t),this.setPropertyValue("verticalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){var t=this.getPropertyValue("maxWidth");return!D.isNumber(t)&&this.parent?this.parent.maxWidth:t},set:function(t){this.setMaxWidth(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxWidth=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxWidth",t)){D.isNumber(this.relativeWidth)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"maxHeight",{get:function(){var t=this.getPropertyValue("maxHeight");return!D.isNumber(t)&&this.parent?this.parent.maxHeight:t},set:function(t){this.setMaxHeight(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxHeight=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxHeight",t)){D.isNumber(this.relativeHeight)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(t){this.setPercentProperty("width",t,!0,!1,this._positionPrecision,!0)&&(this.percentWidth=void 0,this.relativeWidth=void 0,t instanceof N.a?(this.percentWidth=t.percent,D.isNumber(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(t),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(t){this.setPercentProperty("height",t,!0,!1,this._positionPrecision,!0)&&(this.percentHeight=void 0,this._relativeHeight=void 0,t instanceof N.a?(this.percentHeight=t.percent,D.isNumber(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(t),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){var t;t=D.isNumber(this.percentWidth)?this.maxWidth:D.isNumber(this._pixelWidth)?this._pixelWidth:0;var e=this.minWidth;null!=e&&t<e&&(t=e);var i=O.round(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelWidth",i):i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){var t;t=D.isNumber(this.percentHeight)?this.maxHeight:D.isNumber(this._pixelHeight)?this._pixelHeight:0;var e=this.minHeight;null!=e&&t<e&&(t=e);var i=O.round(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelHeight",i):i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeWidth",{get:function(){var t=this._relativeWidth;if(D.isNumber(t))return this._adapterO?this._adapterO.apply("relativeWidth",t):t},set:function(t){this._relativeWidth!=t&&(this._relativeWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeight",{get:function(){var t=this._relativeHeight;if(D.isNumber(t))return this._adapterO?this._adapterO.apply("relativeHeight",t):t},set:function(t){this._relativeHeight!=t&&(this._relativeHeight=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredWidth",this._measuredWidth):this._measuredWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredHeight",this._measuredHeight):this._measuredHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerWidth",{get:function(){var t=this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft;return this._adapterO?this._adapterO.apply("outerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerHeight",{get:function(){var t=this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom;return this._adapterO?this._adapterO.apply("outerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){var t=Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft);return this._adapterO?this._adapterO.apply("innerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerHeight",{get:function(){var t=Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom);return this._adapterO?this._adapterO.apply("innerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalScale",{get:function(){var t=this.scale;return this.parent&&(t*=this.parent.globalScale),this._adapterO?this._adapterO.apply("globalScale",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(t){(t=D.toNumber(t))<0&&(t=0),t!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",t,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),e.prototype.margin=function(t,e,i,n){return this.marginTop=t,this.marginRight=e,this.marginBottom=i,this.marginLeft=n,this},Object.defineProperty(e.prototype,"marginLeft",{get:function(){return this.getPropertyValue("marginLeft")},set:function(t){this.setPercentProperty("marginLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")},set:function(t){this.setPercentProperty("marginRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginTop",{get:function(){return this.getPropertyValue("marginTop")},set:function(t){this.setPercentProperty("marginTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginBottom",{get:function(){return this.getPropertyValue("marginBottom")},set:function(t){this.setPercentProperty("marginBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginRight",{get:function(){var t=this.getPixelX(this.marginRight);return this._adapterO?this._adapterO.apply("pixelMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginRight",{get:function(){var t=this.getRelativeX(this.marginRight);return this._adapterO?this._adapterO.apply("relativeMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginLeft",{get:function(){var t=this.getPixelX(this.marginLeft);return this._adapterO?this._adapterO.apply("pixelMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginLeft",{get:function(){var t=this.getRelativeX(this.marginLeft);return this._adapterO?this._adapterO.apply("relativeMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginTop",{get:function(){var t=this.getPixelY(this.marginTop);return this._adapterO?this._adapterO.apply("pixelMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginTop",{get:function(){var t=this.getRelativeY(this.marginTop);return this._adapterO?this._adapterO.apply("relativeMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginBottom",{get:function(){var t=this.getPixelY(this.marginBottom);return this._adapterO?this._adapterO.apply("pixelMarginBottom",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginBottom",{get:function(){var t=this.getRelativeY(this.marginBottom);return this._adapterO?this._adapterO.apply("relativeMarginBottom",t):t},enumerable:!0,configurable:!0}),e.prototype.padding=function(t,e,i,n){return this.paddingTop=t,this.paddingRight=e,this.paddingBottom=i,this.paddingLeft=n,this},Object.defineProperty(e.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft")},set:function(t){this.setPercentProperty("paddingLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight")},set:function(t){this.setPercentProperty("paddingRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingTop",{get:function(){return this.getPropertyValue("paddingTop")},set:function(t){this.setPercentProperty("paddingTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingBottom",{get:function(){return this.getPropertyValue("paddingBottom")},set:function(t){this.setPercentProperty("paddingBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPath(t)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this._isPath||(this.element&&(!this.element.node||this.element.node instanceof SVGPathElement)||(this.element=this.paper.add("path")),this._isPath=!0),D.hasValue(t)?this.element.attr({d:t}):this.element.removeAttr("d"),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0)},Object.defineProperty(e.prototype,"fillModifier",{get:function(){return this.getPropertyValue("fillModifier")},set:function(t){this.setPropertyValue("fillModifier",t)&&this.setFill(this.fill)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(t){this.setPropertyValue("strokeModifier",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(t){t=O.toNumberRange(t,0,1),this.setPropertyValue("fillOpacity",t)&&this.setSVGAttribute({"fill-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.getPropertyValue("fill")},set:function(t){this.setFill(t)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(t){if(D.isObject(t)||(t=Object(y.e)(t)),this.setColorProperty("fill",t)||this.fillModifier)if(t instanceof y.a&&this.fillModifier&&(t=this.fillModifier.modify(t)),this.realFill=t,t instanceof y.a)this.setSVGAttribute({fill:t.toString()});else if(D.hasValue(t)){if(t instanceof f.a||t instanceof g.a||t instanceof m.a){var e=t;e.paper=this.paper,this.setSVGAttribute({fill:'url("'+A.getBaseURI()+e.id+'")'})}}else this.removeSVGAttribute("fill")},Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(t){t=O.toNumberRange(t,0,1),this.setPropertyValue("opacity",t)&&this.setSVGAttribute({opacity:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(t){this.setStroke(t)},enumerable:!0,configurable:!0}),e.prototype.setStroke=function(t){if(D.isObject(t)||(t=Object(y.e)(t)),this.setColorProperty("stroke",t)||this.strokeModifier)if(t instanceof y.a&&this.strokeModifier&&(t=this.strokeModifier.modify(t)),this.realStroke=t,t instanceof y.a)"none"==t.hex?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:t.toString()});else if(D.hasValue(t)){if(t instanceof f.a||t instanceof g.a||t instanceof m.a){var e=t;e.paper=this.paper,this.setSVGAttribute({stroke:'url("'+A.getBaseURI()+e.id+'")'})}}else this.removeSVGAttribute("stroke")},Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(t){t=O.toNumberRange(t,0,1),this.setPropertyValue("strokeOpacity",t)&&this.setSVGAttribute({"stroke-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("nonScalingStroke",t)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("nonScaling",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(t){t=D.toNumber(t),this.setPropertyValue("strokeWidth",t,!0),this.nonScalingStroke&&(D.isNumber(t)||(t=1),t/=this.globalScale),this.setSVGAttribute({"stroke-width":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(t){t=D.toText(t),this.setPropertyValue("strokeDasharray",t)&&this.setSVGAttribute({"stroke-dasharray":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(t){t=D.toNumber(t),this.setPropertyValue("strokeDashoffset",t)&&this.setSVGAttribute({"stroke-dashoffset":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeLinecap",{get:function(){return this.getPropertyValue("strokeLinecap")},set:function(t){this.setPropertyValue("strokeLinecap",t)&&this.setSVGAttribute({"stroke-linecap":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeLinejoin",{get:function(){return this.getPropertyValue("strokeLinejoin")},set:function(t){this.setPropertyValue("strokeLinejoin",t)&&this.setSVGAttribute({"stroke-linejoin":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(t){t=D.toText(t),this.setPropertyValue("shapeRendering",t)&&this.setSVGAttribute({"shape-rendering":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(t){t=D.toBoolean(t),this._positionPrecision=t?0:3,this.setPropertyValue("pixelPerfect",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rtl",{get:function(){return D.hasValue(this._rtl)?this._rtl:this.virtualParent?this.virtualParent.rtl:!!this.parent&&this.parent.rtl},set:function(t){t=D.toBoolean(t),this._rtl=t},enumerable:!0,configurable:!0}),e.prototype.show=function(t){return this.showReal(t)},e.prototype.showReal=function(t){var e=this;if(!this.preventShow){var i,n=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||null!=n.opacity&&this.opacity<n.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),D.isNumber(t)||(t=this.defaultState.transitionDuration),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this._showHideDisposer&&this.removeDispose(this._showHideDisposer),this._isHidden=!1,this.isHiding=!1,this.isShowing=!0,(i=this.applyCurrentState(t))&&!i.isFinished()?(this._showHideDisposer=i.events.on("animationended",(function(){e.isShowing=!1})),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var r=this.defaultState.properties.visible;D.hasValue(r)||(r=!0),this.visible=r,this.readerHidden=!1,this.dispatchImmediately("shown")}return i}},e.prototype.hide=function(t){return this.hideReal(t)},e.prototype.hideReal=function(t){var e,i=this;if(!this.isHiding&&this.visible&&!this.isDisposed()){this.hideTooltip(0),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this.isShowing=!1,this._showHideDisposer&&this.removeDispose(this._showHideDisposer);var n=this.hiddenState;n?(e=this.setState(n,t,void 0))&&!e.isFinished()?(this._hideAnimation=e,this._showHideDisposer=e.events.on("animationended",(function(){i.isHiding=!1,i._isHidden=!0}),this),this._disposers.push(this._showHideDisposer),this._disposers.push(e)):(this.isHiding=!1,this._isHidden=!0):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return D.isNumber(t)||(t=this.hiddenState.transitionDuration),e},Object.defineProperty(e.prototype,"visible",{get:function(){return this.getVisibility()},set:function(t){t=D.toBoolean(t),this.setVisibility(t)},enumerable:!0,configurable:!0}),e.prototype.getVisibility=function(){var t=this.getPropertyValue("visible");return D.hasValue(t)||(t=!0),t},e.prototype.setVisibility=function(t){if(this.setPropertyValue("visible",t)&&(t?this.group.removeAttr("visibility"):this.group.attr({visibility:"hidden"}),this.events.isEnabled("visibilitychanged"))){var e={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",e)}},Object.defineProperty(e.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(t){t=D.toNumber(t),this.setPropertyValue("zIndex",t)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),e.prototype.toFront=function(){var t=this.parent;t&&t.children.indexOf(this)!=t.children.length-1&&(t.children.moveValue(this,t.children.length-1),this.dispatch("zIndexChanged"))},e.prototype.toBack=function(){var t=this.parent;t&&0!=t.children.indexOf(this)&&(t.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip?this._tooltip:this.virtualParent?this.virtualParent.tooltip:this.parent?this.parent.tooltip:void 0},set:function(t){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=t,t&&(t.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDataItem",{get:function(){return this._tooltipDataItem||this.dataItem},set:function(t){this._tooltipDataItem=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(t){this._tooltipColorSource=t},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(t){"always"==this.showTooltipOn&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone());for(var e=this;null!=e;){if(!e.visible||e.disabled||e.__disabled)return void(this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0));e=e.parent}if(D.hasValue(this.tooltipText)||D.hasValue(this.tooltipHTML)){var i=this.tooltip,n=this.tooltipDataItem;if(i){i.targetSprite=this;var r=this,o=this.tooltipColorSource;if((i.getStrokeFromObject||i.getFillFromObject)&&o&&(o.isTemplate?n&&E.eachContinue(n.sprites,(function(t){return t.clonedFrom!=o||(r=t,!1)})):r=o),i.getStrokeFromObject){for(var a=this.stroke,s=r;null!=s.parent&&(null==(a=s.stroke)&&(s=s.parent),null==a););a instanceof y.a?i.background.animate({property:"stroke",to:a},i.animationDuration):i.background.stroke=a}if(i.dataItem=n,i.label.populateStringFrom=this,i.getFillFromObject){var l=this.fill;for(s=r;null!=s.parent;)if(null==(l=s.fill)||l instanceof y.a&&null==l.rgb)s=s.parent;else if(null!=l)break;null==l&&(l=Object(y.c)("#000000")),l instanceof y.a&&i.visible?i.background.animate({property:"fill",to:l},i.animationDuration):i.background.fill=l,i.autoTextColor&&l instanceof y.a&&(i.label.fill=l.alternative)}var c="";if(this.tooltipHTML&&(i.html=this.tooltipHTML,c=this.tooltipHTML),this.tooltipText&&(i.text=this.tooltipText,c=this.tooltipText),this.updateTooltipPosition(t)){if(i.readerDescribedBy=this.uidAttr(),i.label.invalid&&i.label.validate(),null!=c&&""!=c&&""!=i.label.currentText){i&&!i.parent&&(i.parent=this.tooltipContainer);var h=i.defaultState.transitionDuration;return h<=0&&(h=1),i.show(h),!0}this.hideTooltip(0)}else this.hideTooltip(0)}}return!1},e.prototype.updateTooltipPosition=function(t){var e=this;if("pointer"!=this.tooltipPosition){var i=A.spritePointToSvg({x:this.getTooltipX(),y:this.getTooltipY()},this);return this.pointTooltipTo(i)}if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=Object(v.b)().body.events.on("track",(function(t){return e.pointTooltipTo(A.documentPointToSvg(t.point,e.svgContainer.SVGContainer,e.svgContainer.cssScale),!0)})),t)return this.pointTooltipTo(t,!0)},e.prototype.pointTooltipTo=function(t,e){var i=this.tooltip;if(i&&this.topParent){if(i.showInViewport)return i.pointTo(t,e),!0;if(O.isInRectangle(t,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))return i.pointTo(t,e),!0}return!1},e.prototype.hideTooltip=function(t){if("always"!=this.showTooltipOn){var e=this.tooltip;e&&(e.targetSprite==this&&(e.targetSprite=void 0),e.hide(t),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0))}},Object.defineProperty(e.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(t){t=D.toText(t),this.hoverable=!0,this.setPropertyValue("tooltipHTML",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")},set:function(t){(t=D.toText(t))&&(this.hoverable=!0),this.setPropertyValue("tooltipText",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipContainer",{get:function(){return this._tooltipContainer?this._tooltipContainer:this.parent?this.parent.tooltipContainer:void 0},set:function(t){this._tooltipContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(t){this.setPercentProperty("tooltipX",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alwaysShowTooltip",{get:function(){return"always"==this.getPropertyValue("showTooltipOn")},set:function(t){(t=D.toBoolean(t))&&(this.showTooltipOn="always")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showTooltipOn",{get:function(){return this.getPropertyValue("showTooltipOn")},set:function(t){this.setPropertyValue("showTooltipOn",t)&&("hit"==t&&(this.clickable=!0),this.tooltip&&("always"==t?this.showTooltip():this.handleAlwaysShowTooltip()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(t){this.setPropertyValue("tooltipPosition",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(t){this.setPercentProperty("tooltipY",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t,e=this.getPropertyValue("tooltipX");return D.hasValue(e)||(e=Object(N.c)(50)),D.isNumber(e)&&(t=e),e instanceof N.a&&(t=this.maxLeftSelf+this._measuredWidthSelf*e.value-this.pixelPaddingLeft-this.ex),D.isNumber(t)||(t=0),t},e.prototype.getTooltipY=function(){var t,e=this.getPropertyValue("tooltipY");return D.hasValue(e)||(e=Object(N.c)(50)),D.isNumber(e)&&(t=e),e instanceof N.a&&(t=this.maxTopSelf+this._measuredHeightSelf*e.value-this.pixelPaddingTop-this.ey),D.isNumber(t)||(t=0),t},e.prototype.raiseCriticalError=function(t){this.svgContainer&&(this._adapterO?this.modal.content=this._adapterO.apply("criticalError",t).message:this.modal.content=t.message,this.modal.closable=!1,this.modal.open(),this.disabled=!0),x.a.verbose&&console.log(t)},e.prototype.processConfig=function(e){e&&(D.hasValue(e.tooltipColorSource)&&D.isString(e.tooltipColorSource)&&this.map.hasKey(e.tooltipColorSource)&&(e.tooltipColorSource=this.map.getKey(e.tooltipColorSource)),D.hasValue(e.cursorOverStyle)&&D.isString(e.cursorOverStyle)&&(e.cursorOverStyle=this.getCursorStyle(e.cursorOverStyle)),D.hasValue(e.cursorDowntyle)&&D.isString(e.cursorDowntyle)&&(e.cursorDowntyle=this.getCursorStyle(e.cursorDowntyle)),D.hasValue(e.cursorOptions)&&(D.hasValue(e.cursorOptions.overStyle)&&D.isString(e.cursorOptions.overStyle)&&(e.cursorOptions.overStyle=this.getCursorStyle(e.cursorOptions.overStyle)),D.hasValue(e.cursorOptions.downStyle)&&D.isString(e.cursorOptions.downStyle)&&(e.cursorOptions.downStyle=this.getCursorStyle(e.cursorOptions.downStyle)))),t.prototype.processConfig.call(this,e)},e.prototype.getCursorStyle=function(t){switch(t){case"grab":return b.a.grab;case"grabbing":return b.a.grabbing;case"pointer":return b.a.pointer;case"horizontalResize":return b.a.horizontalResize;case"verticalResize":return b.a.verticalResize;default:return b.a.default}},e.prototype.configOrder=function(e,i){return e==i?0:"tooltipColorSource"==e?1:"tooltipColorSource"==i?-1:t.prototype.configOrder.call(this,e,i)},Object.defineProperty(e.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:!!this._parent&&this._parent.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(t){t=D.toBoolean(t),this.setShowOnInit(t)},enumerable:!0,configurable:!0}),e.prototype.setShowOnInit=function(t){this.setPropertyValue("showOnInit",t)&&(this.isTemplate||(!t||this.inited||this.hidden?this._showOnInitDisposer&&this._showOnInitDisposer.dispose():(this._showOnInitDisposer=new h.c([w.c.events.once("enterframe",this.hideInitially,this),this.events.once("beforevalidated",this.hideInitially,this,!1),this.events.on("inited",this.appear,this,!1)]),this._disposers.push(this._showOnInitDisposer))))},e.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},e.prototype.appear=function(){var t=this;if(this.appeared=!1,this.hidden||this.isHidden||this.hide(0),this.hidden)this.appeared=!0,this.dispatch("appeared");else{var e=this.show();e&&!e.isFinished()?e.events.on("animationended",(function(){t.appeared=!0,t.dispatch("appeared")})):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(e.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(t){t=D.toBoolean(t),this.setPropertyValue("hidden",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"plugins",{get:function(){var t=this;return this._plugins||(this._plugins=new c.b,this._disposers.push(this._plugins.events.on("inserted",(function(e){e.newValue.target=t,e.newValue.init()}))),this._disposers.push(new c.c(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),e.prototype._systemUpdate=function(t){this.validate()},e.prototype._systemCheckIfValidate=function(){return!0},e.prototype._systemValidatePositions=function(){this.validatePosition()},e.prototype._systemValidateLayouts=function(){},e}(a.b);w.c.registeredClasses.Sprite=R},W0E6:function(t,e,i){"use strict";var n=i("m4/l"),r=i("Tjl+"),o=i("8ZqG"),a=i("MIZb"),s=i("WODi"),l=i("2gKx"),c=i("ZLF9"),h=i("aCit"),u=function(t){function e(){var e=t.call(this)||this;return e.properties.radius=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(e.prototype,"radius",{get:function(){return this.properties.radius},set:function(t){this.properties.radius=t,this.draw()},enumerable:!0,configurable:!0}),e}(c.a);h.c.registeredClasses.CirclePattern=u,i.d(e,"a",(function(){return d}));var d=function(t){function e(){var e=t.call(this)||this;e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new o.a({r:103,g:183,b:220}),e.className="PatternSet";var i=new a.a;return e.list=[e.getLinePattern(1e3,45,1,6),e.getRectPattern(10,0,4),e.getLinePattern(1e3,-45,1,6),e.getCirclePattern(11,2,!0),e.getLinePattern(6,90,1),e.getRectPattern(12,45,6,!0),e.getLinePattern(6,0,1),e.getRectPattern(7,0,4),e.getLinePattern(1e3,45,2,3,"4,2"),e.getCirclePattern(9,3,!1),e.getLinePattern(1e3,-45,2,3,"4,2"),e.getRectPattern(10,45,Math.sqrt(50)),e.getLinePattern(1e3,-45,2,1),e.getRectPattern(10,0,9),e.getLinePattern(1e3,45,2,1),e.getLinePattern(1e3,0,3,1),e.getRectPattern(10,45,10),e.getLinePattern(1e3,90,3,1)],e.baseColor=i.getFor("stroke"),e.applyTheme(),e}return n.c(e,t),e.prototype.getLinePattern=function(t,e,i,n,r){var o=new s.a;return o.width=t,o.height=t,o.stroke=this.baseColor,o.gap=n,o.strokeDasharray=r,o.strokeWidth=i,o.rotation=e,o},e.prototype.getRectPattern=function(t,e,i,n){var r=new l.a;return r.width=t,r.height=t,r.rectWidth=i,r.rectHeight=i,n?(r.stroke=this.baseColor,r.strokeWidth=1,r.fillOpacity=0):(r.fill=this.baseColor,r.strokeWidth=0),0!=e&&(r.shapeRendering="auto"),r.rotation=e,r},e.prototype.getCirclePattern=function(t,e,i){var n=new u;return n.width=t,n.height=t,n.shapeRendering="auto",n.radius=e,i?(n.stroke=this.baseColor,n.strokeWidth=1,n.fillOpacity=0):(n.fill=this.baseColor,n.strokeWidth=0),n},Object.defineProperty(e.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.next=function(){var t=this.getIndex(this.currentStep);return this._currentStep++,t},e.prototype.getIndex=function(t){for(;this.list.length<=t;)this.generatePatterns();return this.list[t].clone()},e.prototype.generatePatterns=function(){var t=this.list.length/(this._currentPass+1);this._currentPass++;for(var e=0;e<t;e++)this.list.push(this.list[e].clone())},e.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(e.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){t.prototype.processConfig.call(this,e)},e}(r.a);h.c.registeredClasses.PatternSet=d},W0fk:function(t,e,i){var n=i("DvJ+");t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},W8Sc:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("UsNi"),o=i("x79X"),a=function(t){function e(){var e=t.call(this)||this;return e.adapter=new o.a(e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return n.c(e,t),e}(r.a)},WODi:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("ZLF9"),o=i("aCit"),a=i("hGwe"),s=function(t){function e(){var e=t.call(this)||this;return e.properties.gap=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return n.c(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var e=this.width,i=this.height,n="";if(this.gap)for(var r=this.gap+this.strokeWidth,o=this.height/r,s=-o/2;s<1.5*o;s++)Math.round(this.rotation/90)!=this.rotation/90?(n+=a.moveTo({x:-e,y:(s+.5)*r})+a.lineTo({x:2*e,y:(s+.5)*r}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n+=a.moveTo({x:-e,y:s*r})+a.lineTo({x:2*e,y:s*r});else Math.round(this.rotation/90)!=this.rotation/90?(n=a.moveTo({x:-e,y:i/2})+a.lineTo({x:2*e,y:i/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n=a.moveTo({x:0,y:0})+a.lineTo({x:e,y:0});this._line.attr({d:n})}},Object.defineProperty(e.prototype,"gap",{get:function(){return this.properties.gap},set:function(t){this.properties.gap=t,this.draw()},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.LinePattern=s},WXwQ:function(t,e,i){var n=i("Gb1H"),r=i("hcxM"),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},WYhe:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var n=i("Mtpk"),r=function(){function t(){}return t.prototype.getEventKey=function(t){var e;switch(t.keyCode||t.which){case 38:e="up";break;case 40:e="down";break;case 37:e="left";break;case 39:e="right";break;case 13:e="enter";break;case 27:e="esc";break;case 36:e="home";break;case 35:e="end";break;case 9:e="tab";break;case 17:e="ctrl";break;case 18:e="alt";break;case 16:e="shift";break;case 32:e="space";break;case 36:e="home";break;case 35:e="end";break;case 33:e="pgup";break;case 34:e="pgdn";break;case 45:e="ins";break;case 46:e="del";break;case 107:e="plus";break;case 109:e="minus";break;default:e="other"}return e},t.prototype.isKey=function(t,e){var i=this.getEventKey(t);return n.isString(e)&&(e=[e]),-1!==e.indexOf(i)},t.prototype.shiftKey=function(t){return t.shiftKey},t.prototype.ctrlKey=function(t){return t.ctrlKey},t.prototype.altKey=function(t){return t.altKey},t.prototype.metaKey=function(t){return t.metaKey},t}(),o=new r},Wbjh:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Wglt:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromArray=r,e.length=function(t){var e=0;return t((function(t){return++e,!0})),e},e.toArray=o,e.eachContinue=function(t,e){t(e)},e.each=function(t,e){t((function(t){return e(t),!0}))},e.sort=function(t,e){return r(o(t).sort(e))},e.map=function(t,e){return function(i){return t((function(t){return i(e(t))}))}},e.filter=function(t,e){return function(i){return t((function(t){return!e(t)||i(t)}))}},e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var i=!0,n=function(t){return i=e(t)},r=t.length,o=0;o<r&&(t[o](n),i);++o);}},e.flatten=function(t){return function(e){var i=!0,n=function(t){return i=e(t)};t((function(t){return t(n),i}))}},e.indexed=function(t){return function(e){var i=0;t((function(t){return e([i++,t])}))}},e.findIndex=function(t,e){var i=!1,n=0;return t((function(t){return e(t)?(i=!0,!1):(++n,!0)})),i?n:-1},e.find=function(t,e){var i;return t((function(t){return!e(t)||(i=t,!1)})),i},e.findMap=function(t,e){var i;return t((function(t){var n=e(t);return null===n||(i=n,!1)})),i},e.contains=function(t,e){var i=!1;return t((function(t){return!e(t)||(i=!0,!1)})),i},e.foldl=a,e.min=function(t){return a(t,null,s)},e.max=function(t){return a(t,null,l)},e.join=function(t,e){void 0===e&&(e="");var i=!0,n="";return t((function(t){return i?i=!1:n+=e,n+=t,!0})),n},i.d(e,"ListIterator",(function(){return c}));var n=i("hJ5i");function r(t){return function(e){for(var i=t.length,n=0;n<i&&e(t[n]);++n);}}function o(t){var e=[];return t((function(t){return e.push(t),!0})),e}function a(t,e,i){return t((function(t){return e=i(e,t),!0})),e}function s(t,e){return null==t||e<t?e:t}function l(t,e){return null==t||e>t?e:t}var c=function(){function t(t,e){this.createNewItems=!1,this.list=t,this._create=e,this.reset()}return t.prototype.reset=function(){this._listCopy=o(this.list.iterator())},t.prototype.clear=function(){this._listCopy.length=0},t.prototype.getFirst=function(){return this.returnItem(0)},t.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},t.prototype.find=function(t){var e=n.findIndex(this._listCopy,t);if(-1!==e){var i=this._listCopy[e];return n.remove(this._listCopy,i),i}return this.getLast()},t.prototype.removeItem=function(t){return n.remove(this._listCopy,t)},t.prototype.returnItem=function(t){if(t>=0&&t<this._listCopy.length){var e=this._listCopy[t];return n.remove(this._listCopy,e),e}if(this.createNewItems)return this._create()},t.prototype.iterator=function(){return r(this._listCopy)},t}()},WtL7:function(t,e,i){var n=i("hpnp");t.exports=function(t,e){var i=[];return n(t,!1,i.push,i,e),i}},X3ZK:function(t,e,i){i("3mH9")("Map")},XQMn:function(t,e,i){var n=i("Gb1H"),r=i("aPa3");n(n.S+n.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},"XUg+":function(t,e,i){var n=i("Gb1H");n(n.S+n.F*!i("gD3S"),"Object",{defineProperty:i("hjwn").f})},XYQ1:function(t,e,i){var n=i("Gb1H");n(n.S+n.F*!i("gD3S"),"Object",{defineProperties:i("p3CN")})},Xf1i:function(t,e,i){var n=i("Gb1H"),r=i("eh+x"),o=i("kg8J");n(n.S,"Math",{fscale:function(t,e,i,n,a){return o(r(t,e,i,n,a))}})},Xt8l:function(t,e,i){"use strict";i("Mvcd")("italics",(function(t){return function(){return t(this,"i","","")}}))},Y9w3:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("m4/l"),r=i("C6dT"),o=i("vMqJ"),a=i("VGgz"),s=i("+qIf"),l=i("hD5A"),c=i("EjGA"),h=i("TGuK"),u=i("Rpw0"),d=i("A6AV"),p=i("aCit"),f=i("Gg2j"),g=i("hJ5i"),m=i("0FpR"),y=i("v9UT"),v=i("Wglt"),b=i("Qkdp"),x=i("Mtpk"),w=function(t){function e(){var e=t.call(this)||this;return e.dataFields={},e._dataSources={},e._parseDataFrom=0,e._dataDisposers=[],e._currentDataSetId="",e._start=0,e._end=1,e.skipRangeEvent=!1,e.rangeChangeDuration=0,e.rangeChangeEasing=m.cubicOut,e.parsingStepDuration=50,e.dataInvalid=!1,e.rawDataInvalid=!1,e.dataRangeInvalid=!1,e.dataItemsInvalid=!1,e.interpolationDuration=0,e.interpolationEasing=m.cubicOut,e.sequencedInterpolation=!0,e.sequencedInterpolationDelay=0,e.dataValidationProgress=0,e._addAllDataItems=!0,e._usesData=!0,e.className="Component",e.minZoomCount=1,e.maxZoomCount=0,e._dataItems=new a.b(e.createDataItem()),e._dataItems.events.on("inserted",e.handleDataItemAdded,e,!1),e._dataItems.events.on("removed",e.handleDataItemRemoved,e,!1),e._disposers.push(new o.c(e._dataItems)),e._disposers.push(e._dataItems.template),e.invalidateData(),e.dataUsers.events.on("inserted",e.handleDataUserAdded,e,!1),e._disposers.push(new l.c(e._dataDisposers)),e._start=0,e._end=1,e.maxZoomDeclination=1,e.applyTheme(),e}return n.c(e,t),e.prototype.createDataItem=function(){return new d.a},e.prototype.handleDataUserAdded=function(t){t.newValue.dataProvider=this},e.prototype.handleDataItemValueChange=function(t,e){this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){},e.prototype.handleDataItemWorkingLocationChange=function(t,e){},e.prototype.handleDataItemCalculatedValueChange=function(t,e){},e.prototype.handleDataItemPropertyChange=function(t,e){},e.prototype.processDataItem=function(t,e){var i=this;if(t){e||(e={}),t.dataContext=e;var n=!1;b.each(this.dataFields,(function(r,s){var l=r,c=e[s];if(i._adapterO&&i._adapterO.isEnabled("dataContextValue")&&(c=i._adapterO.apply("dataContextValue",{field:l,value:c,dataItem:t}).value),t.hasChildren[l]){if(x.hasValue(c)){n=!0;var h=i.createDataItem();h.copyFrom(i.mainDataSet.template);var u=new a.b(h);u.events.on("inserted",i.handleDataItemAdded,i,!1),u.events.on("removed",i.handleDataItemRemoved,i,!1),i._dataDisposers.push(new o.c(u));for(var d=c.length,p=0;p<d;p++){var f=c[p],g=u.create();g.parent=t,i.processDataItem(g,f)}t[l]=u}}else x.hasValue(c)&&(n=!0,t[l]=c)})),b.each(this.propertyFields,(function(i,r){var o=i,a=e[r];x.hasValue(a)&&(n=!0,t.setProperty(o,a))})),this._addAllDataItems||n||this.mainDataSet.remove(t)}},e.prototype.updateDataItem=function(t){var e=this;if(t){var i=t.dataContext;b.each(this.dataFields,(function(n,r){var o=n,a=i[r];if(e._adapterO&&(a=e._adapterO.apply("dataContextValue",{field:o,value:a,dataItem:t}).value),t.hasChildren[o]){if(a){var s=t[o];v.each(s.iterator(),(function(t){e.updateDataItem(t)}))}}else x.hasValue(a)&&(t[o]=a)})),b.each(this.propertyFields,(function(e,n){var r=e,o=i[n];x.hasValue(o)&&t.setProperty(r,o)}))}},e.prototype.validateDataElements=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){var i=this.dataItems.getIndex(e);i&&this.validateDataElement(i)}},e.prototype.validate=function(){this.validateDataElements(),t.prototype.validate.call(this)},e.prototype.validateDataElement=function(t){},e.prototype.addData=function(t,e){var i=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),t instanceof Array?g.each(t,(function(t){i.data.push(t)})):this.data.push(t),this.inited)this.removeData(e);else if(x.isNumber(e))for(;e>0;)this.data.shift(),e--;this.invalidateData()},e.prototype.removeData=function(t){if(x.isNumber(t)){for(;t>0;){var e=this.mainDataSet.getIndex(0);e&&this.mainDataSet.remove(e),this.dataUsers.each((function(t){if(!t.data||0==t.data.length){var e=t.dataItems.getIndex(0);e&&t.dataItems.remove(e)}})),this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,t--}this.invalidateData()}},e.prototype.invalidateData=function(){this.disabled||this.isTemplate||(p.c.addToInvalidComponents(this),u.b.requestFrame(),this.dataInvalid=!0,v.each(this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataUsers=function(){v.each(this.dataUsers.iterator(),(function(t){t.invalidate()}))},e.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(g.move(p.c.invalidDataItems,this),u.b.requestFrame(),this.dataItemsInvalid=!0,v.each(this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,g.move(p.c.invalidDataRange,this),u.b.requestFrame())},e.prototype.validateDataRange=function(){g.remove(p.c.invalidDataRange,this),this.dataRangeInvalid=!1,this.startIndex==this._prevStartIndex&&this.endIndex==this._prevEndIndex||(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},e.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},e.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},e.prototype.appendDataItems=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++)(i=this.dataItems.getIndex(e))&&(i.__disabled=!1);for(e=0;e<this.startIndex;e++)(i=this.dataItems.getIndex(e)).__disabled=!0;for(e=this.endIndex;e<this.dataItems.length;e++){var i;(i=this.dataItems.getIndex(e)).__disabled=!0}},e.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(g.move(p.c.invalidRawDatas,this),u.b.requestFrame(),this.rawDataInvalid=!0,v.each(this.dataUsers.iterator(),(function(t){t.invalidateRawData()})))},e.prototype.validateRawData=function(){var t=this;g.remove(p.c.invalidRawDatas,this),v.each(this.mainDataSet.iterator(),(function(e){e&&t.updateDataItem(e)}))},e.prototype.dispose=function(){var e=this;this.mainDataSet.template.clones.clear(),b.each(this._dataSources,(function(t,i){e.removeDispose(i)})),t.prototype.dispose.call(this)},e.prototype.disposeData=function(){this.mainDataSet.template.clones.clear(),g.each(this._dataDisposers,(function(t){t.dispose()})),v.each(this.dataUsers.iterator(),(function(t){t.disposeData()})),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.mainDataSet.clear(),this.mainDataSet.template.clones.clear(),this._dataSets&&this._dataSets.clear()},e.prototype.getDataItem=function(t){return this.mainDataSet.create()},e.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,p.c.removeFromInvalidComponents(this),!this.__disabled){if(this.dataValidationProgress=0,this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.dataFields.data&&this.dataItem){var t=this.dataItem.dataContext;this._data=t[this.dataFields.data]}if(0===this._parseDataFrom&&this.data.length>0&&this.disposeData(),this.data.length>0){var e=this.preloader;v.each(this.dataUsers.iterator(),(function(t){t._startIndex=void 0,t._endIndex=void 0}));for(var i=0,n=Date.now(),r=this._parseDataFrom,o=this.data.length,a=function(){var t=s.data[r];if(s._usesData){var o=s.getDataItem(t);s.processDataItem(o,t)}if(s.dataUsers.each((function(e){if(0==e.data.length){var i=e.getDataItem(t);e.processDataItem(i,t)}})),100==++i&&(i=0,Date.now()-n>s.parsingStepDuration&&r<s.data.length-10))return s._parseDataFrom=r+1,e&&(r/s.data.length>.5&&!e.visible||(e.progress=r/s.data.length)),s.dataValidationProgress=r/s.data.length,r=s.data.length,s.invalidateData(),{value:void 0}},s=this;r<o;r++){var l=a();if("object"==typeof l)return l.value}e&&(e.progress=1),this.dataUsers.each((function(t){t.hidden&&t.hide(0)}))}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},e.prototype.validateDataItems=function(){g.remove(p.c.invalidDataItems,this),this.dataItemsInvalid=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(e.prototype,"data",{get:function(){return this._data||(this._data=[]),this._adapterO?this._adapterO.apply("data",this._data):this._data},set:function(t){this.setData(t)},enumerable:!0,configurable:!0}),e.prototype.setData=function(t){this._parseDataFrom=0,this.disposeData(),this._data=t,t&&t.length>0&&this.invalidateData()},e.prototype.getDataSource=function(t){var e=this;return x.hasValue(this._dataSources[t])||(this._dataSources[t]=new c.a,this._dataSources[t].component=this,this.setDataSourceEvents(this._dataSources[t],t),this._dataSources[t].adapter.add("dateFields",(function(t){return e.dataSourceDateFields(t)})),this._dataSources[t].adapter.add("numberFields",(function(t){return e.dataSourceNumberFields(t)})),this.events.on("inited",(function(){e.loadData(t)}),this,!1)),this._dataSources[t]},Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(t){var e=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=t,this._dataSources.data.component=this,this.events.on("inited",(function(){e.loadData("data")}),this,!1),this.setDataSourceEvents(t,"data")},enumerable:!0,configurable:!0}),e.prototype.loadData=function(t){this._dataSources[t].load()},e.prototype.dataSourceDateFields=function(t){return t},e.prototype.dataSourceNumberFields=function(t){return t},e.prototype.populateDataSourceFields=function(t,e,i){return g.each(i,(function(i){e[i]&&-1===g.indexOf(t,e[i])&&t.push(e[i])})),t},e.prototype.setDataSourceEvents=function(t,e){var i=this;t.events.on("started",(function(t){var e=i.preloader;e&&(e.progress=0)}),void 0,!1),t.events.on("loadstarted",(function(t){var e=i.preloader;e&&(e.progress=.25)}),void 0,!1),t.events.on("loadended",(function(t){var e=i.preloader;e&&(e.progress=.5)}),void 0,!1),t.events.on("parseended",(function(t){var e=i.preloader;e&&(e.progress=.75)}),void 0,!1),t.events.on("ended",(function(t){var e=i.preloader;e&&(e.progress=1)}),void 0,!1),t.events.on("error",(function(t){var e=i.preloader;e&&(e.progress=1),i.openModal(t.message)}),void 0,!1),e&&t.events.on("done",(function(n){var r=i.preloader;r&&(r.progress=1),"data"!=e||x.isArray(n.data)||(n.data=[n.data]),t.incremental&&"data"==e&&i.data.length?i.addData(n.data,t.keepCount?n.data.length:0):t.updateCurrentData&&"data"==e&&i.data.length?(g.each(i.data,(function(t,e){x.hasValue(n.data[e])&&b.each(t,(function(i,r){x.hasValue(n.data[e][i])&&(t[i]=n.data[e][i])}))})),i.invalidateRawData()):i[e]=n.data}))},Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new h.a,this._responsive.component=this),this._responsive},set:function(t){this._responsive=t,this._responsive.component=this},enumerable:!0,configurable:!0}),e.prototype.zoom=function(t,e,i,n){var r=this;void 0===e&&(e=!1),void 0===i&&(i=!1);var o=t.start,a=t.end,s=t.priority;if(t.start==t.end&&(t.start=t.start-.5/this.maxZoomFactor,t.end=t.end+.5/this.maxZoomFactor),"end"==s&&1==a&&0!=o&&o<this.start&&(s="start"),"start"==s&&0==o&&a>this.end&&(s="end"),x.isNumber(n)||(n=this.maxZoomDeclination),!x.isNumber(o)||!x.isNumber(a))return{start:this.start,end:this.end};if(this._finalStart!=o||this._finalEnd!=a){var l=this.maxZoomFactor/this.minZoomCount,c=this.maxZoomFactor/this.maxZoomCount;if("start"==s?(this.maxZoomCount>0&&1/(a-o)<c&&(a=o+1/c),1/(a-o)>l&&(a=o+1/l),a>1&&a-o<1/l&&(o=a-1/l)):(this.maxZoomCount>0&&1/(a-o)<c&&(o=a-1/c),1/(a-o)>l&&(o=a-1/l),o<0&&a-o<1/l&&(a=o+1/l)),o<-n&&(o=-n),1/(a-o)>l&&(a=o+1/l),a>1+n&&(a=1+n),1/(a-o)>l&&(o=a-1/l),this._finalEnd=a,this._finalStart=o,this.skipRangeEvent=e,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!i){var h=this.rangeChangeAnimation;if(h&&h.progress<1){var u=h.animationOptions;if(u.length>1){if(u[0].to==o&&u[1].to==a)return{start:o,end:a};h.isDisposed()||h.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),h=this.animate([{property:"start",to:o},{property:"end",to:a}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=h,h&&!h.isFinished()?h.events.on("animationended",(function(){r.dispatchImmediately("rangechangeended")})):this.dispatchImmediately("rangechangeended")}else this.start=o,this.end=a,this.dispatch("rangechangeended")}return{start:o,end:a}},e.prototype.zoomToIndexes=function(t,e,i,n){if(x.isNumber(t)&&x.isNumber(e)){var r=t/this.dataItems.length,o=e/this.dataItems.length;this.zoom({start:r,end:o},i,n)}},Object.defineProperty(e.prototype,"zoomFactor",{get:function(){return f.fitToRange(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(t){this.setPropertyValue("maxZoomFactor",t)&&(1==t&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(t){this.setPropertyValue("maxZoomDeclination",t)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return x.isNumber(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(t){this._startIndex=f.fitToRange(Math.round(t),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),e.prototype.indexToPosition=function(t){return t/this.dataItems.length},Object.defineProperty(e.prototype,"endIndex",{get:function(){var t=this.dataItems.length;return(!x.isNumber(this._endIndex)||this._endIndex>t)&&(this._endIndex=t),this._endIndex},set:function(t){this._endIndex=f.fitToRange(Math.round(t),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(t){if(this._start!=t){this._start=t;var e=Math.max(0,Math.floor(this.dataItems.length*t)||0);this._startIndex=Math.min(e,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(t){this._end!=t&&(this._end=t,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*t)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),p.c.removeFromInvalidComponents(this),g.remove(p.c.invalidDataItems,this),g.remove(p.c.invalidDataRange,this),g.remove(p.c.invalidRawDatas,this)},Object.defineProperty(e.prototype,"dataItems",{get:function(){if(""!=this._currentDataSetId){var t=this.dataSets.getKey(this._currentDataSetId);if(t)return t}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new s.a),this._dataSets},enumerable:!0,configurable:!0}),e.prototype.setDataSet=function(t){if(this._currentDataSetId!=t){if(this.dataSets.getKey(t))return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId=t,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0;if(""!=this._currentDataSetId)return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0}return!1},Object.defineProperty(e.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),e.prototype._updateDataItemIndexes=function(t){for(var e=this.mainDataSet.values,i=e.length,n=t;n<i;++n)e[n]._index=n},e.prototype.handleDataItemAdded=function(t){t.newValue.component=this,this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemRemoved=function(t){this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.bindDataField=function(t,e){this.dataFields[t]=e,this.invalidateDataRange()},e.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},e.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(e.prototype,"dataUsers",{get:function(){var t=this;return this._dataUsers||(this._dataUsers=new o.b,this._disposers.push(new l.b((function(){v.each(t._dataUsers.iterator(),(function(t){t.dispose()}))})))),this._dataUsers},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.dataFields=y.copyProperties(this.dataFields,{}),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.data=e.data,this.sequencedInterpolation=e.sequencedInterpolation,this.sequencedInterpolationDelay=e.sequencedInterpolationDelay,this.interpolationDuration=e.interpolationDuration,this.interpolationEasing=e.interpolationEasing},e.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},e.prototype.getExporting=function(){var e=t.prototype.getExporting.call(this);return e.adapter.has("data",this._exportData,-1,this)||(e.adapter.add("data",this._exportData,-1,this),this.events.on("datavalidated",(function(t){e.menu&&e.menu.invalidate(),e.handleDataUpdated()}))),e},e.prototype._exportData=function(t){return t.data=this.data,t},e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return i&&this.invalidateData(),i},e.prototype.setShowOnInit=function(e){e!=this.getPropertyValue("showOnInit")&&(!e||this.inited||this.hidden?this._showOnInitDisposer2&&this.removeDispose(this._showOnInitDisposer2):(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2))),t.prototype.setShowOnInit.call(this,e)},e.prototype.setBaseId=function(e){e!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,p.c.removeFromInvalidComponents(this),this._baseId=e,this.invalidateData()),t.prototype.setBaseId.call(this,e)},Object.defineProperty(e.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")},set:function(t){this.setPropertyValue("minZoomCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomCount",{get:function(){return this.getPropertyValue("maxZoomCount")},set:function(t){this.setPropertyValue("maxZoomCount",t)},enumerable:!0,configurable:!0}),e.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},e.prototype.asFunction=function(e){return"interpolationEasing"==e||"rangeChangeEasing"==e||t.prototype.asIs.call(this,e)},e}(r.a);p.c.registeredClasses.Component=w},YDsm:function(t,e,i){"use strict";function n(t){return(n="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})(t)}var r=i("T9LF"),o=i("U3hN"),a=i("gD3S"),s=i("Gb1H"),l=i("wDk4"),c=i("kFp5").KEY,h=i("AEc5"),u=i("OB1/"),d=i("bPwn"),p=i("7bL/"),f=i("YEtG"),g=i("xxwE"),m=i("xdw4"),y=i("G0iN"),v=i("kHwJ"),b=i("snR7"),x=i("DvJ+"),w=i("vJiZ"),_=i("EhJv"),S=i("W0fk"),P=i("Wbjh"),k=i("5+SK"),C=i("8rbL"),T=i("nHHr"),A=i("pmYy"),O=i("hjwn"),M=i("3BzE"),E=T.f,I=O.f,D=C.f,L=r.Symbol,j=r.JSON,N=j&&j.stringify,F=f("_hidden"),R=f("toPrimitive"),V={}.propertyIsEnumerable,z=u("symbol-registry"),B=u("symbols"),H=u("op-symbols"),W=Object.prototype,X="function"==typeof L&&!!A.f,Y=r.QObject,G=!Y||!Y.prototype||!Y.prototype.findChild,U=a&&h((function(){return 7!=k(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=E(W,e);n&&delete W[e],I(t,e,i),n&&t!==W&&I(W,e,n)}:I,q=function(t){var e=B[t]=k(L.prototype);return e._k=t,e},$=X&&"symbol"==n(L.iterator)?function(t){return"symbol"==n(t)}:function(t){return t instanceof L},K=function(t,e,i){return t===W&&K(H,e,i),b(t),e=S(e,!0),b(i),o(B,e)?(i.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),i=k(i,{enumerable:P(0,!1)})):(o(t,F)||I(t,F,P(1,{})),t[F][e]=!0),U(t,e,i)):I(t,e,i)},Z=function(t,e){b(t);for(var i,n=y(e=_(e)),r=0,o=n.length;o>r;)K(t,i=n[r++],e[i]);return t},J=function(t){var e=V.call(this,t=S(t,!0));return!(this===W&&o(B,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(B,t)||o(this,F)&&this[F][t])||e)},Q=function(t,e){if(t=_(t),e=S(e,!0),t!==W||!o(B,e)||o(H,e)){var i=E(t,e);return!i||!o(B,e)||o(t,F)&&t[F][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=D(_(t)),n=[],r=0;i.length>r;)o(B,e=i[r++])||e==F||e==c||n.push(e);return n},et=function(t){for(var e,i=t===W,n=D(i?H:_(t)),r=[],a=0;n.length>a;)!o(B,e=n[a++])||i&&!o(W,e)||r.push(B[e]);return r};X||(l((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0);return a&&G&&U(W,t,{configurable:!0,set:function e(i){this===W&&e.call(H,i),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),U(this,t,P(1,i))}}),q(t)}).prototype,"toString",(function(){return this._k})),T.f=Q,O.f=K,i("rkh7").f=C.f=tt,i("eBSV").f=J,A.f=et,a&&!i("pb4Y")&&l(W,"propertyIsEnumerable",J,!0),g.f=function(t){return q(f(t))}),s(s.G+s.W+s.F*!X,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)f(it[nt++]);for(var rt=M(f.store),ot=0;rt.length>ot;)m(rt[ot++]);s(s.S+s.F*!X,"Symbol",{for:function(t){return o(z,t+="")?z[t]:z[t]=L(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!X,"Object",{create:function(t,e){return void 0===e?k(t):Z(k(t),e)},defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=h((function(){A.f(1)}));s(s.S+s.F*at,"Object",{getOwnPropertySymbols:function(t){return A.f(w(t))}}),j&&s(s.S+s.F*(!X||h((function(){var t=L();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(x(e)||void 0!==t)&&!$(t))return v(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!$(e))return e}),n[1]=e,N.apply(j,n)}}),L.prototype[R]||i("Vng0")(L.prototype,R,L.prototype.valueOf),d(L,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},YEtG:function(t,e,i){var n=i("OB1/")("wks"),r=i("7bL/"),o=i("T9LF").Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=n},YF4K:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},YJIw:function(t,e,i){"use strict";function n(t){return(n="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})(t)}if(i("gD3S")){var r=i("pb4Y"),o=i("T9LF"),a=i("AEc5"),s=i("Gb1H"),l=i("xSzy"),c=i("LNZc"),h=i("20m4"),u=i("ypVE"),d=i("Wbjh"),p=i("Vng0"),f=i("cA+3"),g=i("4BRe"),m=i("FmWr"),y=i("bytU"),v=i("UwWU"),b=i("W0fk"),x=i("U3hN"),w=i("MfZA"),_=i("DvJ+"),S=i("vJiZ"),P=i("a8UT"),k=i("5+SK"),C=i("K0ev"),T=i("rkh7").f,A=i("iOZG"),O=i("7bL/"),M=i("YEtG"),E=i("dstF"),I=i("mntN"),D=i("QXbb"),L=i("2/6D"),j=i("9BM3"),N=i("ID9o"),F=i("vdWU"),R=i("lgQj"),V=i("y2pX"),z=i("hjwn"),B=i("nHHr"),H=z.f,W=B.f,X=o.RangeError,Y=o.TypeError,G=o.Uint8Array,U=Array.prototype,q=c.ArrayBuffer,$=c.DataView,K=E(0),Z=E(2),J=E(3),Q=E(4),tt=E(5),et=E(6),it=I(!0),nt=I(!1),rt=L.values,ot=L.keys,at=L.entries,st=U.lastIndexOf,lt=U.reduce,ct=U.reduceRight,ht=U.join,ut=U.sort,dt=U.slice,pt=U.toString,ft=U.toLocaleString,gt=M("iterator"),mt=M("toStringTag"),yt=O("typed_constructor"),vt=O("def_constructor"),bt=l.CONSTR,xt=l.TYPED,wt=l.VIEW,_t=E(1,(function(t,e){return Tt(D(t,t[vt]),e)})),St=a((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Pt=!!G&&!!G.prototype.set&&a((function(){new G(1).set({})})),kt=function(t,e){var i=g(t);if(i<0||i%e)throw X("Wrong offset!");return i},Ct=function(t){if(_(t)&&xt in t)return t;throw Y(t+" is not a typed array!")},Tt=function(t,e){if(!_(t)||!(yt in t))throw Y("It is not a typed array constructor!");return new t(e)},At=function(t,e){return Ot(D(t,t[vt]),e)},Ot=function(t,e){for(var i=0,n=e.length,r=Tt(t,n);n>i;)r[i]=e[i++];return r},Mt=function(t,e,i){H(t,e,{get:function(){return this._d[i]}})},Et=function(t){var e,i,n,r,o,a,s=S(t),l=arguments.length,c=l>1?arguments[1]:void 0,u=void 0!==c,d=A(s);if(null!=d&&!P(d)){for(a=d.call(s),n=[],e=0;!(o=a.next()).done;e++)n.push(o.value);s=n}for(u&&l>2&&(c=h(c,arguments[2],2)),e=0,i=m(s.length),r=Tt(this,i);i>e;e++)r[e]=u?c(s[e],e):s[e];return r},It=function(){for(var t=0,e=arguments.length,i=Tt(this,e);e>t;)i[t]=arguments[t++];return i},Dt=!!G&&a((function(){ft.call(new G(1))})),Lt=function(){return ft.apply(Dt?dt.call(Ct(this)):Ct(this),arguments)},jt={copyWithin:function(t,e){return V.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(Ct(this),arguments)},filter:function(t){return At(this,Z(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return tt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return it(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(Ct(this),arguments)},lastIndexOf:function(t){return st.apply(Ct(this),arguments)},map:function(t){return _t(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Ct(this),arguments)},reduceRight:function(t){return ct.apply(Ct(this),arguments)},reverse:function(){for(var t,e=Ct(this).length,i=Math.floor(e/2),n=0;n<i;)t=this[n],this[n++]=this[--e],this[e]=t;return this},some:function(t){return J(Ct(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(Ct(this),t)},subarray:function(t,e){var i=Ct(this),n=i.length,r=v(t,n);return new(D(i,i[vt]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,m((void 0===e?n:v(e,n))-r))}},Nt=function(t,e){return At(this,dt.call(Ct(this),t,e))},Ft=function(t){Ct(this);var e=kt(arguments[1],1),i=this.length,n=S(t),r=m(n.length),o=0;if(r+e>i)throw X("Wrong length!");for(;o<r;)this[e+o]=n[o++]},Rt={entries:function(){return at.call(Ct(this))},keys:function(){return ot.call(Ct(this))},values:function(){return rt.call(Ct(this))}},Vt=function(t,e){return _(t)&&t[xt]&&"symbol"!=n(e)&&e in t&&String(+e)==String(e)},zt=function(t,e){return Vt(t,e=b(e,!0))?d(2,t[e]):W(t,e)},Bt=function(t,e,i){return!(Vt(t,e=b(e,!0))&&_(i)&&x(i,"value"))||x(i,"get")||x(i,"set")||i.configurable||x(i,"writable")&&!i.writable||x(i,"enumerable")&&!i.enumerable?H(t,e,i):(t[e]=i.value,t)};bt||(B.f=zt,z.f=Bt),s(s.S+s.F*!bt,"Object",{getOwnPropertyDescriptor:zt,defineProperty:Bt}),a((function(){pt.call({})}))&&(pt=ft=function(){return ht.call(this)});var Ht=f({},jt);f(Ht,Rt),p(Ht,gt,Rt.values),f(Ht,{slice:Nt,set:Ft,constructor:function(){},toString:pt,toLocaleString:Lt}),Mt(Ht,"buffer","b"),Mt(Ht,"byteOffset","o"),Mt(Ht,"byteLength","l"),Mt(Ht,"length","e"),H(Ht,mt,{get:function(){return this[xt]}}),t.exports=function(t,e,i,n){var c=t+((n=!!n)?"Clamped":"")+"Array",h="get"+t,d="set"+t,f=o[c],g=f||{},v=f&&C(f),b=!f||!l.ABV,x={},S=f&&f.prototype,P=function(t,i){H(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[h](i*e+n.o,St)}(this,i)},set:function(t){return function(t,i,r){var o=t._d;n&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[d](i*e+o.o,r,St)}(this,i,t)},enumerable:!0})};b?(f=i((function(t,i,n,r){u(t,f,c,"_d");var o,a,s,l,h=0,d=0;if(_(i)){if(!(i instanceof q||"ArrayBuffer"==(l=w(i))||"SharedArrayBuffer"==l))return xt in i?Ot(f,i):Et.call(f,i);o=i,d=kt(n,e);var g=i.byteLength;if(void 0===r){if(g%e)throw X("Wrong length!");if((a=g-d)<0)throw X("Wrong length!")}else if((a=m(r)*e)+d>g)throw X("Wrong length!");s=a/e}else s=y(i),o=new q(a=s*e);for(p(t,"_d",{b:o,o:d,l:a,e:s,v:new $(o)});h<s;)P(t,h++)})),S=f.prototype=k(Ht),p(S,"constructor",f)):a((function(){f(1)}))&&a((function(){new f(-1)}))&&N((function(t){new f,new f(null),new f(1.5),new f(t)}),!0)||(f=i((function(t,i,n,r){var o;return u(t,f,c),_(i)?i instanceof q||"ArrayBuffer"==(o=w(i))||"SharedArrayBuffer"==o?void 0!==r?new g(i,kt(n,e),r):void 0!==n?new g(i,kt(n,e)):new g(i):xt in i?Ot(f,i):Et.call(f,i):new g(y(i))})),K(v!==Function.prototype?T(g).concat(T(v)):T(g),(function(t){t in f||p(f,t,g[t])})),f.prototype=S,r||(S.constructor=f));var A=S[gt],O=!!A&&("values"==A.name||null==A.name),M=Rt.values;p(f,yt,!0),p(S,xt,c),p(S,wt,!0),p(S,vt,f),(n?new f(1)[mt]==c:mt in S)||H(S,mt,{get:function(){return c}}),x[c]=f,s(s.G+s.W+s.F*(f!=g),x),s(s.S,c,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*a((function(){g.of.call(f,1)})),c,{from:Et,of:It}),"BYTES_PER_ELEMENT"in S||p(S,"BYTES_PER_ELEMENT",e),s(s.P,c,jt),F(c),s(s.P+s.F*Pt,c,{set:Ft}),s(s.P+s.F*!O,c,Rt),r||S.toString==pt||(S.toString=pt),s(s.P+s.F*a((function(){new f(1).slice()})),c,{slice:Nt}),s(s.P+s.F*(a((function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Lt}),j[c]=O?A:M,r||O||p(S,gt,M)}}else t.exports=function(){}},YOID:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("m4/l"),r=i("C6dT"),o=i("Vs7R"),a=i("aCit"),s=i("hGwe"),l=i("Qkdp"),c=i("8ZqG"),h=i("aFzC"),u=function(t){function e(){var e=t.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var i=e.createChild(o.a);e.fillSprite=i,i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e._disposers.push(i);var n=e.createChild(o.a);return e.strokeSprite=n,n.shouldClone=!1,n.fill=Object(c.c)(),n.setElement(e.paper.add("path")),n.isMeasured=!1,e._disposers.push(n),e}return n.c(e,t),e.prototype.drawSegment=function(t,e,i,n){if(!this.disabled)if(t.length>0&&e.length>0){var r=s.moveTo({x:t[0].x-.2,y:t[0].y-.2})+s.moveTo(t[0])+new h.b(i,n).smooth(t);0==this.strokeOpacity||0==this.strokeSprite.strokeOpacity||(this.strokeSprite.path=r),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(r+=s.lineTo(e[0])+new h.b(i,n).smooth(e),r+=s.lineTo(t[0]),r+=s.closePath(),this.fillSprite.path=r)}else this.fillSprite.path="",this.strokeSprite.path=""},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e);var i=this.strokeSprite;l.copyProperties(e,i.properties,o.b),i.events.copyFrom(e.strokeSprite.events),i.fillOpacity=0;var n=this.fillSprite;l.copyProperties(e,n.properties,o.b),n.events.copyFrom(e.fillSprite.events),n.strokeOpacity=0},e}(r.a);a.c.registeredClasses.LineSeriesSegment=u},Ybtf:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("FzPm"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(e.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(t){this.height=2*t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(t){this.width=2*t,this.invalidate()},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.Ellipse=a},YnyG:function(t,e,i){var n=i("Gb1H"),r=i("K0ev"),o=i("snR7");n(n.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},YotE:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("o0Lc"),o=i("hD5A"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domEvents={},e}return n.c(e,t),e.prototype._addDOMEvent=function(t,e,i,n){var r=this;if(!this._domEvents[t]){var a=function(t){i.call(n,e,t)};this.target.element.addEventListener(t,a,!1),this._domEvents[t]=new o.a((function(){delete r._domEvents[t],r.target.element.removeEventListener(t,a,!1)}))}return this._domEvents[t].increment()},e.prototype._dispatchKeyboardEvent=function(t,e){this.target.events.isEnabled(t)&&this.target.events.dispatchImmediately(t,{type:t,target:this.target,event:e})},e.prototype._on=function(e,i,n,r,a,s){var l=t.prototype._on.call(this,e,i,n,r,a,s),c=[l.disposer];switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":case"out":this.target.hoverable=!0;break;case"focus":case"blur":case"focusin":case"focusout":this.target.focusable=!0;break;case"keydown":case"keyup":case"keypress":case"input":c.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this))}return l.disposer=new o.c(c),l},e}(r.b)},YxCF:function(t,e,i){"use strict";var n=i("oGmz")(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},ZLF9:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("Tjl+"),o=i("P7v+"),a=i("vMqJ"),s=i("1yyj"),l=i("aCit"),c=i("MIZb"),h=i("Wglt"),u=i("Qkdp"),d=i("Mtpk"),p=function(t){function e(){var e=t.call(this)||this;e._elements=new a.b,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var i=new c.a;return e.backgroundFill=i.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=i.getFor("alternativeBackground"),e.stroke=i.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+l.c.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new a.c(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){var t=this,e=this.element;if(e){e.removeChildNodes();var i=this.paper.add("rect");i.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":this.backgroundOpacity}),e.add(i),e.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),h.each(this._elements.iterator(),(function(e){e.rotation=t.rotation,e.rotationX=t.properties.rotationX,e.rotationY=t.properties.rotationY,t.element.add(e)}))}},e.prototype.animate=function(t,e,i){return new s.a(this,t,e,i).start()},e.prototype.addElement=function(t){this._elements.push(t),this._disposers.push(t)},e.prototype.removeElement=function(t){this._elements.removeValue(t),this.removeDispose(t)},Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(t){this.properties.fillOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.properties.fill},set:function(t){this.properties.fill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(t){this.properties.backgroundFill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(t){this.properties.backgroundOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(t){this.properties.strokeOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(t){this.properties.shapeRendering=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(t){this.properties.rotation=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(t){this.properties.patternUnits=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.properties.x},set:function(t){this.properties.x=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.properties.y},set:function(t){this.properties.y=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Object(o.b)()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),u.each(e.properties,(function(t,e){i[t]=e}))},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new s.b(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray},set:function(t){this.properties.strokeDashArray=t,this.draw()},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e&&d.hasValue(e.elements)&&d.isArray(e.elements))for(var i=0,n=e.elements.length;i<n;i++){var o=e.elements[i];if(d.hasValue(o.type)){var a=this.createEntryInstance(o);a instanceof r.a&&(a.config=o),this.addElement(d.hasValue(o.typeProperty)?a[o.typeProperty]:a.element)}}t.prototype.processConfig.call(this,e)},e}(r.a);l.c.registeredClasses.Pattern=p},ZhuL:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("mIpt"),o=i("Qkdp"),a=i("Mtpk"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="application/json",e.options={},e}return n.c(e,t),e.isJSON=function(t){try{return JSON.parse(t),!0}catch(t){return!1}},e.prototype.parse=function(t){var e,i=this;try{a.hasValue(JSON)&&(e=JSON.parse(t))}catch(t){return}var n=a.hasValue(this.options.emptyAs),r=this.parsableNumbers,s=this.parsableDates;if(Array.isArray(e)&&(r||s||n))for(var l=function(t,a){var l=e[t];o.each(l,(function(t,e){n&&(l[t]=i.maybeToEmpty(l[t])),r&&(l[t]=i.maybeToNumber(t,l[t])),s&&(l[t]=i.maybeToDate(t,l[t]))}))},c=0,h=e.length;c<h;c++)l(c);return e},e}(r.a)},Zisa:function(t,e,i){var n=i("Gb1H"),r=180/Math.PI;n(n.S,"Math",{degrees:function(t){return t*r}})},Zljy:function(t,e,i){var n=i("DvJ+");i("5lay")("isSealed",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},ZoDA:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("Uslz"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.ValueAxisBreak=a},Ztji:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("EhJv"),o=i("4BRe"),a=i("FmWr"),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!i("GQop")(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=r(this),i=a(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},ZytL:function(t,e,i){i("6+x4")("Map")},a8UT:function(t,e,i){var n=i("9BM3"),r=i("YEtG")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}},aCit:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"c",(function(){return h})),e.b=function(t,e){var i=h.registeredClasses[e];return null!=i&&t instanceof i};var n=i("o0Lc"),r=i("+qIf"),o=i("eCqC"),a=i("Mtpk"),s=i("wUYf"),l=i("hJ5i"),c=function(){function t(){this.events=new n.a,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[]}return t.prototype.getUniqueId=function(){var t=this._uidCount;return this._uidCount+=1,"id-"+t},Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new r.a),this._map},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){o.b.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),o.b.get(this.uid,t,e)},t.prototype.dispatch=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},t.prototype.dispatchImmediately=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},t.prototype.getPlaceholder=function(t){return a.hasValue(this._placeholders[t])||(this._placeholders[t]="__amcharts_"+t+"_"+s.random(8)+"__"),this._placeholders[t]},t.prototype.addToInvalidComponents=function(t){t.baseId?l.move(this.invalidDatas[t.baseId],t):l.move(this.invalidDatas.noBase,t)},t.prototype.removeFromInvalidComponents=function(t){t.baseId&&l.remove(this.invalidDatas[t.baseId],t),l.remove(this.invalidDatas.noBase,t)},t.prototype.addToInvalidSprites=function(t){t.baseId?l.add(this.invalidSprites[t.baseId],t):l.add(this.invalidSprites.noBase,t)},t.prototype.removeFromInvalidSprites=function(t){t.baseId&&l.remove(this.invalidSprites[t.baseId],t),l.remove(this.invalidSprites.noBase,t)},t.prototype.addToInvalidPositions=function(t){t.baseId?l.add(this.invalidPositions[t.baseId],t):l.add(this.invalidPositions.noBase,t)},t.prototype.removeFromInvalidPositions=function(t){t.baseId&&l.remove(this.invalidPositions[t.baseId],t),l.remove(this.invalidPositions.noBase,t)},t.prototype.addToInvalidLayouts=function(t){t.baseId?l.add(this.invalidLayouts[t.baseId],t):l.add(this.invalidLayouts.noBase,t)},t.prototype.removeFromInvalidLayouts=function(t){t.baseId&&l.remove(this.invalidLayouts[t.baseId],t),l.remove(this.invalidLayouts.noBase,t)},t}(),h=new c},aFzC:function(t,e,i){"use strict";i.d(e,"b",(function(){return l})),e.c=function(t,e,i,o,c,h){var u=t.x,d=t.y,p=e.x,f=e.y,g=s.getDistance(t,e);h&&(i=g/Math.round(g/i));var m=n.c.getCache(a.stringify(["wavedLine",t.x,e.x,t.y,e.y,i,o]));if(!m){if(g>0){var y=Math.atan2(f-d,p-u),v=Math.cos(y),b=Math.sin(y),x=i*v,w=i*b;if(i<=1||o<=1)m=r.lineTo(e);else{var _=Math.round(2*g/i),S=[],P=1;p<u&&(P*=-1),f<d&&(P*=-1);for(var k=0;k<=_;k++){var C=u+k*x/2+(P*=-1)*o/2*b,T=d+k*w/2-P*o/2*v;S.push({x:C,y:T})}m=new l(c,c).smooth(S)}}else m="";n.c.setCache(a.stringify(["wavedLine",t.x,e.x,t.y,e.y,i,o]),m)}return m},i.d(e,"a",(function(){return c}));var n=i("aCit"),r=i("hGwe"),o=i("hJ5i"),a=i("v9UT"),s=i("Gg2j"),l=function(){function t(t,e){this._tensionX=t,this._tensionY=e}return t.prototype.smooth=function(t){var e=this._tensionX,i=this._tensionY;if(t.length<3||e>=1&&i>=1)return r.polyline(t);var n=t[0],o=t[t.length-1],a=!1;s.round(n.x,3)==s.round(o.x)&&s.round(n.y)==s.round(o.y)&&(a=!0);for(var l="",c=0,h=t.length-1;c<h;c++){var u=t[c-1],d=t[c],p=t[c+1],f=t[c+2];0===c?u=a?t[t.length-2]:t[c]:c==t.length-2&&(f=a?t[1]:t[c+1]);var g=s.getCubicControlPointA(u,d,p,f,e,i),m=s.getCubicControlPointB(u,d,p,f,e,i);l+=r.cubicCurveTo(p,g,m)}return l},t}(),c=function(){function t(t){this._closed=t.closed}return t.prototype.smooth=function(t){var e=this,i=NaN,n=NaN,a=NaN,s=NaN,l=NaN,c=NaN,h=NaN,u=NaN,d=NaN,p=NaN,f=0,g="",m=function(t,e){g+=r.cubicCurveTo({x:(i+4*n+t)/6,y:(c+4*h+e)/6},{x:(2*i+n)/3,y:(2*c+h)/3},{x:(i+2*n)/3,y:(c+2*h)/3})},y=function(t){var o=t.x,y=t.y;switch(f){case 0:f=1,e._closed?(a=o,u=y):g+=r.lineTo({x:o,y:y});break;case 1:f=2,e._closed&&(s=o,d=y);break;case 2:if(f=3,e._closed){l=o,p=y,g+=r.moveTo({x:(i+4*n+o)/6,y:(c+4*h+y)/6});break}g+=r.lineTo({x:(5*i+n)/6,y:(5*c+h)/6});default:m(o,y)}i=n,n=o,c=h,h=y};if(o.each(t,y),this._closed)switch(f){case 1:g+=r.moveTo({x:a,y:u}),g+=r.closePath();break;case 2:g+=r.moveTo({x:(a+2*s)/3,y:(u+2*d)/3}),g+=r.lineTo({x:(s+2*a)/3,y:(d+2*u)/3}),g+=r.closePath();break;case 3:y({x:a,y:u}),y({x:s,y:d}),y({x:l,y:p})}else{switch(f){case 3:m(n,h);case 2:g+=r.lineTo({x:n,y:h})}g+=r.closePath()}return g},t}()},aGXA:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("C6dT"),o=i("p9TX"),a=i("CnhP"),s=i("MIZb"),l=i("aCit"),c=function(t){function e(){var e=t.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16);var i=new s.a,n=e.background;n.fill=i.getFor("secondaryButton"),n.stroke=i.getFor("secondaryButtonStroke"),n.fillOpacity=1,n.strokeOpacity=1,n.cornerRadius(3,3,3,3),e.label=new o.a,e.label.fill=i.getFor("secondaryButtonText");var r=n.states.create("hover");r.properties.fillOpacity=1,r.properties.fill=i.getFor("secondaryButtonHover");var a=n.states.create("down");return a.transitionDuration=100,a.properties.fill=i.getFor("secondaryButtonDown"),a.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"icon",{get:function(){return this.getPropertyValue("icon")},set:function(t){var e=this.getPropertyValue("icon");e&&(e.parent=void 0),t&&(this.setPropertyValue("icon",t),t.parent=this,t.interactionsEnabled=!1,this.iconPosition=this.iconPosition,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(t){this.setPropertyValue("iconPosition",t),this.icon&&("left"==t?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(t){this._label&&this.removeDispose(this._label),this._label=t,t&&(t.parent=this,t.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new a.a},e}(r.a);l.c.registeredClasses.Button=c},aHTY:function(t,e,i){"use strict";var n=i("snR7"),r=i("FmWr"),o=i("YxCF"),a=i("2i0j");i("7V6K")("match",1,(function(t,e,i,s){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=s(i,t,this);if(e.done)return e.value;var l=n(t),c=String(this);if(!l.global)return a(l,c);var h=l.unicode;l.lastIndex=0;for(var u,d=[],p=0;null!==(u=a(l,c));){var f=String(u[0]);d[p]=f,""===f&&(l.lastIndex=o(c,r(l.lastIndex),h)),p++}return 0===p?null:d}]}))},aM7D:function(t,e,i){"use strict";i.d(e,"b",(function(){return P})),i.d(e,"a",(function(){return k}));var n=i("m4/l"),r=i("Y9w3"),o=i("Vs7R"),a=i("vMqJ"),s=i("+qIf"),l=i("A6AV"),c=i("C6dT"),h=i("cxKZ"),u=i("TXRX"),d=i("uWmK"),p=i("Q4nc"),f=i("8ZqG"),g=i("aCit"),m=i("Wglt"),y=i("Gg2j"),v=i("0FpR"),b=i("v9UT"),x=i("Qkdp"),w=i("Mtpk"),_=i("hJ5i"),S=i("hxI2"),P=function(t){function e(){var e=t.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new s.a,this._disposers.push(new s.b(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.bullets.clear(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),e}(l.a),k=function(t){function e(){var i=t.call(this)||this;if(i._ignoreMinMax=!1,i._showBullets=!0,i.legendSettings=new d.c,i._tmin=new s.a,i._tmax=new s.a,i._smin=new s.a,i._smax=new s.a,i.dataItemsByAxis=new s.a,i.skipFocusThreshold=20,i._itemReaderTextChanged=!1,i.calculatePercent=!1,i.autoDispose=!0,i.simplifiedProcessing=!1,i.constructor===e)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");i.className="Series",i.isMeasured=!1,i.layout="none",i.shouldClone=!1,i.setPropertyValue("hidden",!1),i.axisRanges=new a.b,i.axisRanges.events.on("inserted",i.processAxisRange,i,!1),i.minBulletDistance=0,i.mainContainer=i.createChild(c.a),i.mainContainer.shouldClone=!1,i.mainContainer.mask=i.createChild(o.a),i._disposers.push(i.mainContainer);var n=i.mainContainer.createChild(c.a);return i._shouldBeReady.push(n),n.shouldClone=!1,n.layout="none",n.virtualParent=i,i._disposers.push(n),i.bulletsContainer=n,i.tooltip=new h.a,i.tooltip.virtualParent=i,i._disposers.push(i.tooltip),i.hiddenState.transitionEasing=v.cubicIn,i.dataItem=i.createDataItem(),i._disposers.push(i.dataItem),i.dataItem.component=i,i.role="group",i.applyTheme(),i}return n.c(e,t),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),p.a.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},e.prototype.createDataItem=function(){return new P},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){},e.prototype.processBullet=function(t){var e=this,i=t.newValue;i.isTemplate=!0,this.events.once("datavalidated",(function(t){e.itemsFocusable()&&(i.focusable=!0)}))},e.prototype.removeBullet=function(t){var e=t.oldValue;this.dataItems.each((function(t){var i=t.bullets.getKey(e.uid);i&&i.dispose()})),this.invalidate()},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.processValues(!1)},e.prototype.getFirstValue=function(t,e){e>0&&e<this.dataItems.length-1&&e++;for(var i=e;i>=0;i--){var n=this.dataItems.getIndex(i).getActualWorkingValue(t);if(w.isNumber(n))return n}return null},e.prototype.getAbsoluteFirstValue=function(t){for(var e=0;e<this.dataItems.length;e++){var i=this.dataItems.getIndex(e).values[t].value;if(w.isNumber(i))return i}return null},e.prototype.rangeChangeUpdate=function(){t.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},e.prototype.processValues=function(t){var e=this;if(!this.simplifiedProcessing){var i=this.dataItems,n={},r={},o={},a={},s={},l={},c={},h={},u={},d={},p=y.max(0,this._workingStartIndex);p=y.min(p,this.dataItems.length);var f=y.min(this._workingEndIndex,this.dataItems.length);if(w.isNumber(p)||(p=0),w.isNumber(f)||(f=this.dataItems.length),p>0){var g=i.getIndex(p-1);x.each(g.values,(function(t,e){var i=g.getActualWorkingValue(t);w.isNumber(i)&&(h[t]=i)}))}for(var m=function(t){var f=i.getIndex(t);x.each(f.values,(function(t,i){var g=f.getActualWorkingValue(t);if(w.isNumber(g)){w.isNumber(n[t])||(n[t]=0),n[t]++,w.isNumber(r[t])||(r[t]=0),r[t]+=g,w.isNumber(o[t])||(o[t]=0),o[t]+=Math.abs(g),w.isNumber(l[t])||(l[t]=g),c[t]=g,w.isNumber(a[t])?a[t]>g&&(a[t]=g):a[t]=g,w.isNumber(s[t])?s[t]<g&&(s[t]=g):s[t]=g,w.isNumber(u[t])||(u[t]=e.getFirstValue(t,p)),w.isNumber(d[t])||(d[t]=e.getAbsoluteFirstValue(t)),f.setCalculatedValue(t,g-u[t],"change"),f.setCalculatedValue(t,(g-u[t])/u[t]*100,"changePercent"),f.setCalculatedValue(t,g-d[t],"startChange"),f.setCalculatedValue(t,(g-d[t])/d[t]*100,"startChangePercent");var m=h[t];w.isNumber(m)||(m=g),f.setCalculatedValue(t,g-m,"previousChange"),f.setCalculatedValue(t,(g-m)/m*100,"previousChangePercent"),h[t]=g}}))},v=p;v<f;v++)m(v);if(this.calculatePercent){var b=function(t){var e=i.getIndex(t);x.each(e.values,(function(t){var i=o[t],n=e.getActualWorkingValue(t);if(w.isNumber(n))if(i>0){n==i&&(i=e.values[t].value);var r=n/i*100;e.setCalculatedValue(t,r,"percent")}else e.setCalculatedValue(t,0,"percent")}))};for(v=p;v<f;v++)b(v)}if(p>0){var _=i.getIndex(p-1);x.each(_.values,(function(t){var e=_.values[t].value;_.setCalculatedValue(t,e-l[t],"change"),_.setCalculatedValue(t,(e-l[t])/l[t]*100,"changePercent")}))}var S=this.dataItem;x.each(S.values,(function(t){S.setCalculatedValue(t,r[t],"sum"),S.setCalculatedValue(t,o[t],"absoluteSum"),S.setCalculatedValue(t,r[t]/n[t],"average"),S.setCalculatedValue(t,l[t],"open"),S.setCalculatedValue(t,c[t],"close"),S.setCalculatedValue(t,a[t],"low"),S.setCalculatedValue(t,s[t],"high"),S.setCalculatedValue(t,n[t],"count")}))}},e.prototype.validate=function(){m.each(this.axisRanges.iterator(),(function(t){t.validate()})),t.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var i=0;i<this.startIndex;i++)(n=this.dataItems.getIndex(i))&&n.bullets.each((function(t,e){e.__disabled=!0}));for(i=this.dataItems.length-1;i>this.endIndex;i--){var n;(n=this.dataItems.getIndex(i))&&n.bullets.each((function(t,e){e.__disabled=!0}))}}else this.bulletsContainer.children.each((function(t){t.__disabled=!0}));this.updateTooltipBounds()},e.prototype.updateTooltipBounds=function(){if(this.topParent){var t={x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight};this.tooltip.setBounds(t)}},e.prototype.shouldCreateBullet=function(t,e){return!0},e.prototype.validateDataElement=function(e){var i=this;t.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each((function(t){var n=e.bullets.getKey(t.uid);if(i.shouldCreateBullet(e,t)){if(!n){var r=t.propertyFields.disabled,o=e.dataContext;r&&o&&!1===o[r]?(t.applyOnClones=!1,t.disabled=!1,n=t.clone(),t.disabled=!0,t.applyOnClones=!0):n=t.clone(),n.shouldClone=!1,e.addSprite(n),i.visible&&!i.isHiding||n.hide(0)}var a=n.dataItem;if(a!=e){a&&a.bullets.setKey(t.uid,void 0);var s=i.itemReaderText;n instanceof u.a&&(s||(s="{"+n.xField+"}: {"+n.yField+"}"),n.isDynamic&&(e.events.on("workingvaluechanged",n.deepInvalidate,n,!1),i.dataItem.events.on("workingvaluechanged",n.deepInvalidate,n,!1)),n.deepInvalidate()),n.focusable&&(n.events.on("focus",(function(t){n.readerTitle=i.populateString(s,n.dataItem)}),void 0,!1),n.events.on("blur",(function(t){n.readerTitle=""}),void 0,!1)),n.hoverable&&(n.events.on("over",(function(t){n.readerTitle=i.populateString(s,n.dataItem)}),void 0,!1),n.events.on("out",(function(t){n.readerTitle=""}),void 0,!1))}n.parent=i.bulletsContainer,e.bullets.setKey(t.uid,n),n.maxWidth=e.itemWidth,n.maxHeight=e.itemHeight,n.__disabled=!1,i.positionBullet(n)}}))):this.bulletsContainer.visible=!1},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){this._ignoreMinMax=t,this.invalidateDataItems()},enumerable:!0,configurable:!0}),e.prototype.createMask=function(){},e.prototype.processAxisRange=function(t){this.rangesContainer||(this.rangesContainer=this.createChild(c.a),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var e=t.newValue;e&&(e.contents.parent=this.rangesContainer,e.isRange=!0,e.events.on("valuechanged",this.invalidateDataItems,this,!1))},e.prototype.getAxisField=function(t){},e.prototype.showTooltipAtPosition=function(t,e){},Object.defineProperty(e.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(t){this.setPropertyValue("minBulletDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new a.e(new u.a),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new a.c(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){},Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(t){this.setPropertyValue("hiddenInLegend",t)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t);var e=this.legendDataItem;e&&(e.component.invalidate(),e.component.invalidateRawData()),this.readerTitle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemReaderText",{get:function(){var t=this._itemReaderText;return t||(this.tooltipText?t=b.plainText(this.tooltipText):this.tooltipHTML&&(t=b.plainText(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",t):t},set:function(t){this._itemReaderText=t,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),e.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t,e){if(this.legendDataItem){var i=this.legendSettings,n=this.legendDataItem,r=n.label,o=n.valueLabel;t||e?(o&&(i.itemValueText&&(o.text=i.itemValueText),o.dataItem=t),r&&(i.itemLabelText&&(r.text=i.itemLabelText),r.dataItem=t)):(r&&((i.labelText||null!=i.itemLabelText)&&(r.text=i.labelText),r.dataItem=this.dataItem),o&&((i.valueText||null!=i.itemValueText)&&(o.text=i.valueText),o.dataItem=this.dataItem))}},e.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.simplifiedProcessing=e.simplifiedProcessing,t.prototype.copyFrom.call(this,e)},e.prototype.raiseCriticalError=function(t){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",t).message,this._chart.modal.closable=!1,this._chart.modal.open(),this._chart.disabled=!0),p.a.verbose&&console.log(t)},e.prototype.applyFilters=function(){var e=this;t.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),m.each(this.filters.iterator(),(function(t){e.bulletsContainer.filters.push(t.clone())}))},Object.defineProperty(e.prototype,"heatRules",{get:function(){var t=this;return this._heatRules||(this._heatRules=new a.b,this._heatRules.events.on("inserted",(function(e){var i=e.newValue,n=i.target;if(n){var r=i.dataField;w.hasValue(r)||(r="value");var a=i.min,s=i.max,l=t.dataItem,h=i.property,u=w.toNumber(i.minValue),d=w.toNumber(i.maxValue);w.isNumber(u)||w.isNumber(d)||t.dataItem.events.on("calculatedvaluechanged",(function(e){e.property==r&&m.each(t.dataItems.iterator(),(function(t){var e=!1;_.each(t.sprites,(function(t){if(t.clonedFrom==n){var i=t;i[h]=i[h],e=!0}})),e||_.each(t.sprites,(function(t){t instanceof c.a&&m.each(t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[h]=e[h]}else t instanceof c.a&&t.deepInvalidate()}))}))}))})),t.dataItems.template.events.on("workingvaluechanged",(function(t){if(t.property==r){var e=t.target,i=!1;_.each(e.sprites,(function(t){if(t.clonedFrom==n){var e=t;e[h]=e[h],i=!0}})),i||_.each(e.sprites,(function(t){t instanceof c.a&&m.each(t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[h]=e[h]}else t instanceof c.a&&t.deepInvalidate()}))}))}})),n.adapter.add(h,(function(t,e,n){var c=w.toNumber(i.minValue),h=w.toNumber(i.maxValue);if(e instanceof o.a){var u=e.propertyFields[n];if(u&&e.dataItem){var d=e.dataItem.dataContext;if(d&&w.hasValue(d[u]))return t}}var p=e.dataItem;if(w.isNumber(c)||(c=l.values[r].low),w.isNumber(h)||(h=l.values[r].high),p&&p.values[r]){var g=p.getActualWorkingValue(r);if(w.hasValue(a)&&w.hasValue(s)&&w.isNumber(c)&&w.isNumber(h)&&w.isNumber(g)){var m=(g-c)/(h-c);if(w.isNumber(g)&&!w.isNumber(m)&&(m=.5),w.isNumber(a))return a+(s-a)*m;if(a instanceof f.a)return new f.a(S.interpolate(a.rgb,s.rgb,m))}}return t}))}}))),this._heatRules},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i;if(e){if(w.hasValue(e.bullets)&&w.isArray(e.bullets))for(var n=0,r=e.bullets.length;n<r;n++){var o=e.bullets[n];w.hasValue(o.type)||(o.type="Bullet")}w.hasValue(e.heatRules)&&w.isArray(e.heatRules)&&(i=e.heatRules,delete e.heatRules)}if(t.prototype.processConfig.call(this,e),i){for(n=0,r=i.length;n<r;n++){var s=i[n],l=this;if(w.hasValue(s.target)&&w.isString(s.target))if(this.map.hasKey(s.target))l=this.map.getKey(s.target);else for(var c=s.target.split("."),h=0;h<c.length;h++)if(l instanceof a.b){var u=l.getIndex(w.toNumber(c[h]));l=u||l[c[h]]}else l=l[c[h]];s.target=l,w.hasValue(s.min)&&(s.min=this.maybeColorOrPercent(s.min)),w.hasValue(s.max)&&(s.max=this.maybeColorOrPercent(s.max))}t.prototype.processConfig.call(this,{heatRules:i})}},e.prototype.configOrder=function(e,i){return e==i?0:"heatRules"==e?1:"heatRules"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(r.a);g.c.registeredClasses.Series=k,g.c.registeredClasses.SeriesDataItem=P},aPa3:function(t,e,i){var n=i("T9LF").parseFloat,r=i("nAZS").trim;t.exports=1/n(i("brDO")+"-0")!=-1/0?function(t){var e=r(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},aZcm:function(t,e,i){"use strict";var n=i("kHwJ"),r=i("DvJ+"),o=i("FmWr"),a=i("20m4"),s=i("YEtG")("isConcatSpreadable");t.exports=function t(e,i,l,c,h,u,d,p){for(var f,g,m=h,y=0,v=!!d&&a(d,p,3);y<c;){if(y in l){if(f=v?v(l[y],y,i):l[y],g=!1,r(f)&&(g=void 0!==(g=f[s])?!!g:n(f)),g&&u>0)m=t(e,i,f,o(f.length),m,u-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=f}m++}y++}return m}},aae5:function(t,e,i){var n=i("Gb1H");n(n.P,"String",{repeat:i("lhvN")})},akNo:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("P/bD"),o=i("Tjl+"),a=i("MipW"),s=i("aCit"),l=i("ScGY"),c=i("Qkdp"),h=i("v9UT"),u=i("Mtpk"),d=i("Gg2j"),p=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._baseUnit="second",e._outputFormat="svg",e._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},e._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},e.className="DurationFormatter",e.applyTheme(),e}return n.c(e,t),e.prototype.format=function(t,e,i){this.language||(this.sprite?this.language=this.sprite.language:this.language=new r.a);var n=i||this._baseUnit;void 0!==e&&""!==e||(e=u.hasValue(this.durationFormat)?this.durationFormat:this.getFormat(u.toNumber(t),null,n)),e=h.cleanFormat(e);var o,a=this.parseFormat(e,n),s=Number(t);o=s>this._negativeBase?a.positive:s<this._negativeBase?a.negative:a.zero;var l=this.applyFormat(s,o);return""!==o.color&&("svg"===this._outputFormat?l="<tspan fill='"+o.color+"'>"+l+"</tspan>":"html"===this._outputFormat&&(l="<span style='color: "+o.color+";'>"+l+"</span>")),l},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(u.hasValue(n))return n;var r=e||this._baseUnit,o={positive:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1}},s=(t=t.replace("||",l.e)).split("|");return o.positive.source=s[0],void 0===s[2]?o.zero=o.positive:o.zero.source=s[2],void 0===s[1]?o.negative=o.positive:o.negative.source=s[1],c.each(o,(function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n,r=e.source;(n=e.source.match(/^\[([^\]]*)\]/))&&n.length&&""!==n[0]&&(r=e.source.substr(n[0].length),e.color=n[1]);for(var s=Object(a.b)().chunk(r,!0),c=0;c<s.length;c++){var h=s[c];if(h.text=h.text.replace(l.e,"|"),"value"===h.type){h.text.match(/[yYMdDwhHKkmsSn]+a/)&&(e.absolute=!0,h.text=h.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var d=h.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(d)for(var p=0;p<d.length;p++)u.hasValue(d[p])||(d[p]=i._unitAliases[d[p]]),e.parts.push(d[p]),h.text=h.text.replace(d[p],l.d)}e.template+=h.text}i.setCache(e.source,e),e.parsed=!0}else o[t]=i.getCache(e.source)})),this.setCache(t,o),o},e.prototype.applyFormat=function(t,e){var i=!e.absolute&&t<this._negativeBase;t=Math.abs(t);for(var n=this.toTimeStamp(t,e.baseUnit),r=e.template,o=0,a=e.parts.length;o<a;o++){var s=e.parts[o],c=this.toTimeUnit(s.substr(0,1)),u=s.length,d=Math.floor(n/this._unitValues[c]);r=r.replace(l.d,h.padString(d,u,"0")),n-=d*this._unitValues[c]}return i&&(r="-"+r),r},e.prototype.toTimeStamp=function(t,e){return t*this._unitValues[e]},e.prototype.toTimeUnit=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.getFormat=function(t,e,i){if(u.hasValue(this.durationFormat))return this.durationFormat;if(i||(i=this.baseUnit),u.hasValue(e)&&t!=e){t=Math.abs(t),e=Math.abs(e);var n=this.getValueUnit(d.max(t,e),i);return this.durationFormats[i][n]}var r=this.getValueUnit(t,i);return this.durationFormats[i][r]},e.prototype.getValueUnit=function(t,e){var i;e||(e=this.baseUnit);var n=this.getMilliseconds(t,e);return c.eachContinue(this._unitValues,(function(t,r){if(t==e||i){if(n/r<=1)return i||(i=t),!1;i=t}return!0})),i},e.prototype.getMilliseconds=function(t,e){return e||(e=this.baseUnit),t*this._unitValues[e]},Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(t){this._durationFormat!=t&&(this._durationFormat=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormats",{get:function(){return this._durationFormats||(this._durationFormats={millisecond:{millisecond:this.language.translate("_duration_millisecond"),second:this.language.translate("_duration_millisecond_second"),minute:this.language.translate("_duration_millisecond_minute"),hour:this.language.translate("_duration_millisecond_hour"),day:this.language.translate("_duration_millisecond_day"),week:this.language.translate("_duration_millisecond_week"),month:this.language.translate("_duration_millisecond_month"),year:this.language.translate("_duration_millisecond_year")},second:{second:this.language.translate("_duration_second"),minute:this.language.translate("_duration_second_minute"),hour:this.language.translate("_duration_second_hour"),day:this.language.translate("_duration_second_day"),week:this.language.translate("_duration_second_week"),month:this.language.translate("_duration_second_month"),year:this.language.translate("_duration_second_year")},minute:{minute:this.language.translate("_duration_minute"),hour:this.language.translate("_duration_minute_hour"),day:this.language.translate("_duration_minute_day"),week:this.language.translate("_duration_minute_week"),month:this.language.translate("_duration_minute_month"),year:this.language.translate("_duration_minute_year")},hour:{hour:this.language.translate("_duration_hour"),day:this.language.translate("_duration_hour_day"),week:this.language.translate("_duration_hour_week"),month:this.language.translate("_duration_hour_month"),year:this.language.translate("_duration_hour_year")},day:{day:this.language.translate("_duration_day"),week:this.language.translate("_duration_day_week"),month:this.language.translate("_duration_day_month"),year:this.language.translate("_duration_day_year")},week:{week:this.language.translate("_duration_week"),month:this.language.translate("_duration_week_month"),year:this.language.translate("_duration_week_year")},month:{month:this.language.translate("_duration_month"),year:this.language.translate("_duration_month_year")},year:{year:this.language.translate("_duration_year")}}),this._durationFormats},set:function(t){this._durationFormats=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),e}(o.a);s.c.registeredClasses.DurationFormatter=p},bPwn:function(t,e,i){var n=i("hjwn").f,r=i("U3hN"),o=i("YEtG")("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},bcCe:function(t,e,i){i("YDsm"),i("9UcF"),i("XUg+"),i("XYQ1"),i("tzvs"),i("fRTO"),i("OWpl"),i("l3wE"),i("xDSx"),i("g2OP"),i("gmzR"),i("Pr7S"),i("Zljy"),i("8oRD"),i("GuW4"),i("e/xe"),i("0B2R"),i("/Oef"),i("fyXH"),i("E+Sg"),i("pvlQ"),i("1Vzv"),i("HyzE"),i("T3RA"),i("rutD"),i("3fx7"),i("gmIO"),i("7Va9"),i("5Les"),i("OKlB"),i("WXwQ"),i("mL9U"),i("B+tY"),i("XQMn"),i("iuHC"),i("5LIN"),i("Kmds"),i("QtEf"),i("57Qg"),i("tIuN"),i("uuf2"),i("Ijb/"),i("e8Y+"),i("/URX"),i("8tDI"),i("fL7J"),i("S9D9"),i("fTgz"),i("EOVy"),i("OxI3"),i("KfrQ"),i("p4R3"),i("iTz5"),i("yl71"),i("hLmE"),i("Kg3M"),i("l9Vx"),i("RC2a"),i("MrGI"),i("aae5"),i("UXfn"),i("xEZ5"),i("hIRz"),i("IGCA"),i("t3Ma"),i("eaU5"),i("RpVB"),i("8NlW"),i("Xt8l"),i("fi6C"),i("rTLi"),i("Ly/W"),i("8LiO"),i("0Czv"),i("LSPs"),i("7xho"),i("31Mu"),i("q+2p"),i("w1yl"),i("EVjk"),i("U1Gp"),i("MbWG"),i("5BRL"),i("gc4I"),i("xwvB"),i("ssJO"),i("ds6r"),i("8ujI"),i("Oko+"),i("3xrs"),i("/dMO"),i("LLsa"),i("QZG2"),i("Ztji"),i("nZH2"),i("lKl7"),i("f5kt"),i("F2Gx"),i("N/Yk"),i("2/6D"),i("LHMX"),i("zy/o"),i("jvLk"),i("jgQn"),i("aHTY"),i("rU+O"),i("qgJR"),i("4McO"),i("T3m9"),i("dLrC"),i("xCMl"),i("BYDm"),i("vaBr"),i("PXSi"),i("+gRV"),i("dS+R"),i("rU6r"),i("NSvu"),i("C2uA"),i("AiPC"),i("vH9k"),i("7DgU"),i("z9n7"),i("LGy/"),i("IcXr"),i("6PqY"),i("ch2R"),i("oVsg"),i("iYyY"),i("hLeK"),i("oAPj"),i("YnyG"),i("necU"),i("2OOH"),i("EMhK"),i("j2vi"),i("vsTS"),i("GqPQ"),i("0yJt"),i("icDv"),i("Gxer"),i("K2Eo"),i("VCCo"),i("B2g9"),i("of/x"),i("nEmP"),i("1lef"),i("LMet"),i("uc+e"),i("wdkS"),i("mOSd"),i("OuXI"),i("vDrc"),i("9MGJ"),i("Obr2"),i("EEf7"),i("6l3Y"),i("osLN"),i("ZytL"),i("T9+M"),i("d5pU"),i("MT+g"),i("X3ZK"),i("r7ZX"),i("tYpR"),i("68eo"),i("izpu"),i("UPxv"),i("0jav"),i("8aZA"),i("YF4K"),i("Zisa"),i("Xf1i"),i("l2gh"),i("l3rq"),i("Qgck"),i("3X+j"),i("ITVZ"),i("MsQa"),i("cm0w"),i("BTtL"),i("O8xK"),i("8LwG"),i("uqxK"),i("ma7z"),i("gJSe"),i("NKpi"),i("oMjf"),i("yBbu"),i("2Dqo"),i("L8kC"),i("FSsr"),i("fDnL"),i("vFXE"),i("ybeA"),i("/NC3"),i("6mHT"),t.exports=i("G5U1")},bdjS:function(t,e,i){"use strict";var n=i("gD3S"),r=i("3BzE"),o=i("pmYy"),a=i("eBSV"),s=i("vJiZ"),l=i("sHIJ"),c=Object.assign;t.exports=!c||i("AEc5")((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=c({},t)[i]||Object.keys(c({},e)).join("")!=n}))?function(t,e){for(var i=s(t),c=arguments.length,h=1,u=o.f,d=a.f;c>h;)for(var p,f=l(arguments[h++]),g=u?r(f).concat(u(f)):r(f),m=g.length,y=0;m>y;)p=g[y++],n&&!d.call(f,p)||(i[p]=f[p]);return i}:c},brDO:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},bytU:function(t,e,i){var n=i("4BRe"),r=i("FmWr");t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw RangeError("Wrong length!");return i}},"cA+3":function(t,e,i){var n=i("wDk4");t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},cOH5:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("m4/l"),r=function(t){function e(e){return t.call(this,e)||this}return n.c(e,t),e.prototype.add=function(t){t&&this.node.appendChild(t.node)},e.prototype.addToBack=function(t){if(t){var e=this.node.childNodes[0];e?e!=t.node&&this.node.insertBefore(t.node,e):this.node.appendChild(t.node)}},e.prototype.removeElement=function(t){if(t)try{t.node&&t.node.parentNode==this.node&&this.node.removeChild(t.node)}catch(t){}},e.prototype.hasChild=function(t){for(var e=0;e<this.node.childNodes.length;e++)if(this.node.childNodes[e]==t.node)return!0;return!1},Object.defineProperty(e.prototype,"content",{get:function(){return this.node.innerHTML},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),e.prototype.removeChildren=function(){if(this.node.childNodes)for(;this.node.childNodes.length>0;){var t=this.node.firstChild;t&&t.parentNode&&t.parentNode.removeChild(t)}},e}(i("pzs1").a)},ch2R:function(t,e,i){var n=i("hjwn"),r=i("Gb1H"),o=i("snR7"),a=i("W0fk");r(r.S+r.F*i("AEc5")((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,i){o(t),e=a(e,!0),o(i);try{return n.f(t,e,i),!0}catch(t){return!1}}})},cm0w:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{umulh:function(t,e){var i=+t,n=+e,r=65535&i,o=65535&n,a=i>>>16,s=n>>>16,l=(a*o>>>0)+(r*o>>>16);return a*s+(l>>>16)+((r*s>>>0)+(65535&l)>>>16)}})},cxKZ:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("m4/l"),r=i("C6dT"),o=i("aCit"),a=i("MZQ8"),s=i("p9TX"),l=i("1yyj"),c=i("8ZqG"),h=i("VAFc"),u=i("Gg2j"),d=i("0FpR"),p=i("v9UT"),f=function(t){function e(){var e=t.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var i=e.background;i.interactionsEnabled=!1,i.fillOpacity=.9,i.strokeWidth=1,i.strokeOpacity=1,i.stroke=Object(c.c)("#ffffff"),i.cornerRadius=3,i.pointerLength=6,i.pointerBaseWidth=10;var n=new h.a;n.dy=1,n.dx=1,n.opacity=.5,i.filters.push(n),e.autoTextColor=!0;var r=e.createChild(s.a);return r.shouldClone=!1,e.label=r,r.padding(7,12,4,12),r.interactionsEnabled=!1,r.horizontalCenter="middle",r.fill=Object(c.c)("#ffffff"),e._disposers.push(r),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=d.cubicOut,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return n.c(e,t),e.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(e.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(t){this.setPropertyValue("getStrokeFromObject",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(t){this.setPropertyValue("autoTextColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(t){var e=this;this.setPropertyValue("keepTargetHover",t,!0)&&t&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!0)}))),this._disposers.push(this.events.on("out",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!1)}))))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(t){this.setPropertyValue("showInViewport",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(t){this.setPropertyValue("getFillFromObject",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new a.a},Object.defineProperty(e.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(t){this.setPropertyValue("pointerOrientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.label.html},set:function(t){this.label.html!=t&&(this.label.html=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.label.text},set:function(t){this.label.text!=t&&(this.label.text=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var i,n,r=this._pointTo.x,o=this._pointTo.y,a=this._boundingRect,s=e.measuredWidth,l=e.measuredHeight,c=this.background.pointerLength;if(s>a.width){p.spritePointToDocument({x:a.x,y:a.y},this.parent);var h=p.spritePointToDocument({x:a.x+a.width,y:a.y+a.height},this.parent),d=document.body.offsetWidth;p.used(document.body.offsetHeight),h.x>d/2?a.x=a.width-s:a.width=a.x+s}var f=this.pointerOrientation;"horizontal"==f||"left"==f||"right"==f?(n=-l/2,i="horizontal"==f?r>a.x+a.width/2?-s/2-c:s/2+c:"left"==f?s/2+c:-s/2-c):(i=u.fitToRange(0,a.x-r+s/2,a.x-r+a.width-s/2),"vertical"==f?o>a.y+l+c?(n=-l-c,this._verticalOrientation="up"):(n=c,this._verticalOrientation="down"):"down"==f?(n=-l-c,this._verticalOrientation="up"):(n=c,this._verticalOrientation="down")),n=u.fitToRange(n,a.y-o,a.y+a.height-l-o),e.x=i,e.y=n,this.drawBackground()},e.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},e.prototype.drawBackground=function(){var t=this.label,e=this.background,i=t.measuredWidth,n=t.measuredHeight,r=this._boundingRect,o=i,a=t.pixelX-i/2,s=n,l=t.pixelY,c=this._pointTo.x,h=this._pointTo.y,d=r.x-c,p=d+r.width,f=r.y-h,g=f+r.height;e.x=a,e.y=l,e.width=o,e.height=s,this.fitPointerToBounds?(e.pointerX=u.fitToRange(-e.x,d-e.x,p-e.x),e.pointerY=u.fitToRange(-e.y,f-e.y,g-e.y)):(e.pointerX=-e.x,e.pointerY=-e.y),e.validate()},e.prototype.pointTo=function(t,e){this._pointTo.x==t.x&&this._pointTo.y==t.y||(this._pointTo=t,this.invalidate(),!this.visible||e?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):0==this.pixelX&&0==this.pixelY?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new l.a(this,[{property:"x",to:t.x,from:this.pixelX},{property:"y",to:t.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},e.prototype.setBounds=function(t){var e=this._boundingRect;e.x==t.x&&e.y==t.y&&e.width==t.width&&e.height==t.height||(this._boundingRect=t,this.invalidate())},Object.defineProperty(e.prototype,"boundingContainer",{set:function(t){this._boundingContainer=t,t.events.on("sizechanged",this.updateBounds,this),t.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),e.prototype.updateBounds=function(){var t=this._boundingContainer,e=p.spriteRectToSvg({x:t.pixelX,y:t.pixelY,width:t.maxWidth,height:t.maxHeight},t);this.setBounds(e)},Object.defineProperty(e.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(r.a);o.c.registeredClasses.Tooltip=f},d5pU:function(t,e,i){i("6+x4")("WeakMap")},dJEq:function(t,e,i){var n=i("MfZA"),r=i("WtL7");t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},dLrC:function(t,e,i){"use strict";var n=i("hgv4"),r=i("rFJX");t.exports=i("/Xnt")("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(r(this,"Map"),0===t?0:t,e)}},n,!0)},"dS+R":function(t,e,i){i("YJIw")("Int8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},ds6r:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("dstF")(1);n(n.P+n.F*!i("GQop")([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},dstF:function(t,e,i){var n=i("20m4"),r=i("sHIJ"),o=i("vJiZ"),a=i("FmWr"),s=i("L2Mu");t.exports=function(t,e){var i=1==t,l=2==t,c=3==t,h=4==t,u=6==t,d=5==t||u,p=e||s;return function(e,s,f){for(var g,m,y=o(e),v=r(y),b=n(s,f,3),x=a(v.length),w=0,_=i?p(e,x):l?p(e,0):void 0;x>w;w++)if((d||w in v)&&(m=b(g=v[w],w,y),t))if(i)_[w]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:_.push(g)}else if(h)return!1;return u?-1:c||h?h:_}}},"e/xe":function(t,e,i){var n=i("Gb1H");n(n.S,"Object",{is:i("DVvQ")})},e8Nv:function(t,e,i){"use strict";var n=i("hjwn"),r=i("Wbjh");t.exports=function(t,e,i){e in t?n.f(t,e,r(0,i)):t[e]=i}},"e8Y+":function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{fround:i("kg8J")})},eAid:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("m4/l"),r=i("Vs7R"),o=i("aCit"),a=i("8ZqG"),s=i("MIZb"),l=function(t){function e(){var e=t.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var i=new s.a;return e.stroke=i.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=Object(a.c)(),e.applyTheme(),e.interactionsEnabled=!1,e}return n.c(e,t),e}(r.a);o.c.registeredClasses.AxisLine=l},eBSV:function(t,e){e.f={}.propertyIsEnumerable},eCqC:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a}));var n=i("+qIf"),r=i("Mtpk"),o=function(){function t(){this._storage=new n.a,this.ttl=1e3}return t.prototype.set=function(t,e,i,o){var a=this._storage.insertKeyIfEmpty(t,(function(){return new n.a})),s={touched:(new Date).getTime(),ttl:r.isNumber(o)?o:this.ttl,value:i};a.setKey(e,s)},t.prototype.get=function(t,e,i){if(void 0===i&&(i=void 0),this._storage.hasKey(t)){var n=this._storage.getKey(t);if(n.hasKey(e)){var r=n.getKey(e);return r.ttl&&r.touched+r.ttl<(new Date).getTime()&&(r.expired=!0),r.expired?(n.removeKey(e),i):r.value}return i}return i},t.prototype.clear=function(t){t?this._storage.removeKey(t):this._storage.clear()},t}(),a=new o},eN1s:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("m4/l"),r=i("qzbU"),o=i("aCit"),a=function(t){function e(){var e=t.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(r.a);o.c.registeredClasses.AxisTick=a},eaU5:function(t,e,i){"use strict";i("Mvcd")("fixed",(function(t){return function(){return t(this,"tt","","")}}))},"eh+x":function(t,e){t.exports=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-n)/(i-e)+n}},f5kt:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("dstF")(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("M/YL")("find")},fDnL:function(t,e,i){var n=i("Gb1H"),r=i("RzG0")(),o=i("T9LF").process,a="process"==i("DVYA")(o);n(n.G,{asap:function(t){var e=a&&o.domain;r(e?e.bind(t):t)}})},fL7J:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},fRTO:function(t,e,i){var n=i("vJiZ"),r=i("K0ev");i("5lay")("getPrototypeOf",(function(){return function(t){return r(n(t))}}))},fTgz:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},fi6C:function(t,e,i){"use strict";i("Mvcd")("link",(function(t){return function(e){return t(this,"a","href",e)}}))},fyXH:function(t,e,i){var n=i("Gb1H");n(n.P,"Function",{bind:i("lLkc")})},g2OP:function(t,e,i){var n=i("DvJ+"),r=i("kFp5").onFreeze;i("5lay")("seal",(function(t){return function(e){return t&&n(e)?t(r(e)):e}}))},gD3S:function(t,e,i){t.exports=!i("AEc5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},gJSe:function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=i("K0ev"),a=n.has,s=n.get,l=n.key;n.exp({getMetadata:function(t,e){return function t(e,i,n){if(a(e,i,n))return s(e,i,n);var r=o(i);return null!==r?t(e,r,n):void 0}(t,r(e),arguments.length<3?void 0:l(arguments[2]))}})},gc4I:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("Ax3V"),o=i("DVYA"),a=i("UwWU"),s=i("FmWr"),l=[].slice;n(n.P+n.F*i("AEc5")((function(){r&&l.call(r)})),"Array",{slice:function(t,e){var i=s(this.length),n=o(this);if(e=void 0===e?i:e,"Array"==n)return l.call(this,t,e);for(var r=a(t,i),c=a(e,i),h=s(c-r),u=new Array(h),d=0;d<h;d++)u[d]="String"==n?this.charAt(r+d):this[r+d];return u}})},gmIO:function(t,e,i){var n=i("Gb1H");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},gmzR:function(t,e,i){var n=i("DvJ+"),r=i("kFp5").onFreeze;i("5lay")("preventExtensions",(function(t){return function(e){return t&&n(e)?t(r(e)):e}}))},gqvf:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("m4/l"),r=i("1Fjw"),o=i("Vs7R"),a=i("hD5A"),s=i("aCit"),l=i("8ZqG"),c=i("MIZb"),h=i("zhwk"),u=i("qCRI"),d=i("Gg2j"),p=i("v9UT"),f=i("Mtpk"),g=i("hGwe"),m=function(t){function e(){var e=t.call(this)||this;e._lineX=new a.d,e._lineY=new a.d,e._xAxis=new a.d,e._yAxis=new a.d,e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var i=new c.a,n=e.createChild(o.a);n.shouldClone=!1,n.fillOpacity=.2,n.fill=i.getFor("alternativeBackground"),n.isMeasured=!1,n.visible=!1,n.interactionsEnabled=!1,e.selection=n,e._disposers.push(e.selection);var r=e.createChild(o.a);r.shouldClone=!1,r.stroke=i.getFor("grid"),r.fill=Object(l.c)(),r.strokeDasharray="3,3",r.isMeasured=!1,r.strokeOpacity=.4,r.interactionsEnabled=!1,r.y=0,e.lineX=r,e._disposers.push(e.lineX);var s=e.createChild(o.a);return s.shouldClone=!1,s.stroke=i.getFor("grid"),s.fill=Object(l.c)(),s.strokeDasharray="3,3",s.isMeasured=!1,s.strokeOpacity=.4,s.interactionsEnabled=!1,s.x=0,e.lineY=s,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.hideSeriesTooltipsOnSelection=!0,e.applyTheme(),e}return n.c(e,t),e.prototype.updateSize=function(){this.lineX&&(this.lineX.path=g.moveTo({x:0,y:0})+g.lineTo({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=g.moveTo({x:0,y:0})+g.lineTo({x:this.innerWidth,y:0}))},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint,e=this.behavior;if(t){var i=this.point;this.lineX&&(i.x=this.lineX.pixelX),this.lineY&&(i.y=this.lineY.pixelY);var n=this.selection,r=Math.min(i.x,t.x),o=Math.min(i.y,t.y),a=d.round(Math.abs(t.x-i.x),this._positionPrecision),s=d.round(Math.abs(t.y-i.y),this._positionPrecision);switch(e){case"zoomX":o=0,s=this.pixelHeight;break;case"zoomY":r=0,a=this.pixelWidth;break;case"selectX":o=0,s=this.pixelHeight;break;case"selectY":r=0,a=this.pixelWidth}n.x=r,n.y=o,n.path=g.rectangle(a,s),n.validatePosition()}else"select"!=this._generalBehavior&&this.selection.hide()}},e.prototype.fixPoint=function(t){return t.x=Math.max(0,t.x),t.y=Math.max(0,t.y),t.x=Math.min(this.pixelWidth,t.x),t.y=Math.min(this.pixelHeight,t.y),t},e.prototype.triggerMoveReal=function(e){t.prototype.triggerMoveReal.call(this,e),this.snapToSeries&&!this.snapToSeries.isHidden||this.updateLinePositions(e),this.downPoint&&d.getDistance(this.downPoint,e)>3&&"pan"==this._generalBehavior&&(this.getPanningRanges(),this.dispatch("panning"))},e.prototype.updateLinePositions=function(t){t=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=t.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=t.y),this.updateSelection()},e.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if("select"==this._generalBehavior&&(this.selection.parent=this.parent),this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var i=this.selection,n=this.downPoint.x,r=this.downPoint.y;this._usesSelection&&(i.x=n,i.y=r,i.path="",i.show()),t.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},e.prototype.updatePoint=function(t){this.lineX&&(t.x=this.lineX.pixelX),this.lineY&&(t.y=this.lineY.pixelY)},e.prototype.triggerUpReal=function(e){d.getDistance(this._upPointOrig,this._downPointOrig)>Object(h.b)().getHitOption(this.interactions,"hitTolerance")?this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),"pan"!=this._generalBehavior&&this.getRanges(),"select"!=this._generalBehavior&&this.selection.hide(),t.prototype.triggerUpReal.call(this,e)):("select"!=this._generalBehavior?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),"pan"==this._generalBehavior&&Object(h.b)().setGlobalStyle(u.a.default),this.dispatchImmediately("behaviorcanceled")),this.downPoint=void 0,this.dispatch("cursorpositionchanged")},e.prototype.getPanningRanges=function(){var t=d.round(this.downPoint.x/this.innerWidth,5),e=1-d.round(this.downPoint.y/this.innerHeight,5),i=t-d.round(this.point.x/this.innerWidth,5),n=e-(1-d.round(this.point.y/this.innerHeight,5));this.xRange={start:i,end:1+i},this.yRange={start:n,end:1+n},"panX"==this.behavior&&(this.yRange.start=0,this.yRange.end=1),"panY"==this.behavior&&(this.xRange.start=0,this.xRange.end=1)},e.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),p.used(this.selection);var t=d.round(this.downPoint.x/this.innerWidth,5),e=d.round(this.upPoint.x/this.innerWidth,5),i=1-d.round(this.downPoint.y/this.innerHeight,5),n=1-d.round(this.upPoint.y/this.innerHeight,5);this.xRange={start:d.min(t,e),end:d.max(t,e)},this.yRange={start:d.min(i,n),end:d.max(i,n)}},Object.defineProperty(e.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(t){this.setPropertyValue("behavior",t,!0),this._usesSelection=!1,-1!=t.indexOf("zoom")&&(this._generalBehavior="zoom",this._usesSelection=!0),-1!=t.indexOf("select")&&(this._generalBehavior="select",this._usesSelection=!0),-1!=t.indexOf("pan")&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),e.prototype.shouldPreventGestures=function(t){return!(this.interactions.isTouchProtected&&t||"none"==this.behavior)},Object.defineProperty(e.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(t){this.setPropertyValue("fullWidthLineX",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(t){this.setPropertyValue("fullWidthLineY",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(t){this.setPropertyValue("hideSeriesTooltipsOnSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(t){this.setPropertyValue("maxTooltipDistance",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(t){var e=this;this._xAxis.get()!=t&&this._xAxis.set(t,new a.c([t.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),t.events.on("rangechangestarted",(function(t){e.hide(0),e.preventShow=!0}),void 0,!1),t.events.on("rangechangeended",(function(t){e.preventShow=!1,e.hide(0),e.dispatch("cursorpositionchanged")}),void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(t){var e=this;this._yAxis.get()!=t&&this._yAxis.set(t,new a.c([t.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),t.events.on("rangechangestarted",(function(t){e.hide(0),e.__disabled=!0}),void 0,!1),t.events.on("rangechangeended",(function(t){e.__disabled=!1,e.hide(0),e.dispatch("cursorpositionchanged")}),void 0,!1)]))},enumerable:!0,configurable:!0}),e.prototype.handleXTooltipPosition=function(t){var e=this.xAxis.tooltip,i=p.svgPointToSprite({x:e.pixelX,y:e.pixelY},this),n=i.x;if(i.y=1,this.lineX&&(this.lineX.x=n,this.fitsToBounds(i)||this.hide()),this.xAxis&&this.fullWidthLineX){var r=this.xAxis.currentItemStartPoint,o=this.xAxis.currentItemEndPoint;if(r&&o){this.lineX.x=n;var a=o.x-r.x;this.lineX.path=g.rectangle(a,this.innerHeight,-a/2)}}},e.prototype.handleYTooltipPosition=function(t){var e=this.yAxis.tooltip,i=p.svgPointToSprite({x:e.pixelX,y:e.pixelY},this),n=i.y;if(i.x=1,this.lineY&&(this.lineY.y=n,this.fitsToBounds(i)||this.hide()),this.yAxis&&this.fullWidthLineY){var r=this.yAxis.currentItemStartPoint,o=this.yAxis.currentItemEndPoint;if(r&&o){this.lineY.y=n;var a=o.y-r.y;this.lineY.path=g.rectangle(this.innerWidth,a,0,-a/2)}}},Object.defineProperty(e.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineX.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.interactionsEnabled=!1,t.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineY.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.parent=this,t.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){return this._selection},set:function(t){this._selection=t,t&&(t.element=this.paper.add("path"),t.parent=this)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){e&&(f.hasValue(e.xAxis)&&f.isString(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),f.hasValue(e.yAxis)&&f.isString(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),f.hasValue(e.snapToSeries)&&f.isString(e.snapToSeries)&&(this.map.hasKey(e.snapToSeries)?e.snapToSeries=this.map.getKey(e.snapToSeries):(this.processingErrors.push('[XYCursor] No series with id "'+e.snapToSeries+'" found for `series`'),delete e.snapToSeries))),t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(t){this.setPropertyValue("snapToSeries",t)&&(this._snapToDisposer&&this._snapToDisposer.dispose(),t&&(this._snapToDisposer=t.events.on("tooltipshownat",this.handleSnap,this,!1)))},enumerable:!0,configurable:!0}),e.prototype.handleSnap=function(){var t=this.snapToSeries,e=t.getTooltipX(),i=t.getTooltipY();this.xAxis&&this.xAxis.renderer.opposite&&(i-=this.pixelHeight),this.point={x:e,y:i},this.getPositions();var n=e,r=i;e-=this.pixelWidth,this.yAxis&&this.yAxis.renderer.opposite&&(e+=this.pixelWidth);var o=t.tooltip,a=o.animationDuration,s=o.animationEasing;t.baseAxis==t.xAxis&&t.yAxis.showTooltipAtPosition(this.yPosition),t.baseAxis==t.yAxis&&t.xAxis.showTooltipAtPosition(this.xPosition),this.lineX.animate([{property:"y",to:i}],a,s),this.lineY.animate([{property:"x",to:e}],a,s),this.xAxis||this.lineX.animate([{property:"x",to:n}],a,s),this.yAxis||this.lineY.animate([{property:"y",to:r}],a,s)},e.prototype.dispose=function(){this.hide(0),t.prototype.dispose.call(this)},e}(r.a);s.c.registeredClasses.XYCursor=m},hD5A:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return l})),i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("hJ5i"),o=i("Mtpk"),a=function(){function t(t){this._disposed=!1,this._dispose=t}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},t}(),s=function(t){function e(e){return t.call(this,(function(){r.each(e,(function(t){t.dispose()}))}))||this}return n.c(e,t),e}(a),l=function(t){function e(){var e=t.call(this,(function(){o.hasValue(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)}))||this;return e}return n.c(e,t),e.prototype.get=function(){return this._value},e.prototype.set=function(t,e){o.hasValue(this._disposer)&&this._disposer.dispose(),this._disposer=e,this._value=t},e.prototype.reset=function(){this.set(void 0,void 0)},e}(a),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._counter=0,e}return n.c(e,t),e.prototype.increment=function(){var t=this;return++this._counter,new a((function(){--t._counter,0===t._counter&&t.dispose()}))},e}(a)},hGwe:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyline=function(t){var e=l(t[0]),i={x:0,y:0},o=a.a.minPolylineStep;r.isNumber(o)||(o=.5);for(var s=0,c=t.length;s<c;s++){var h=t[s];n.getDistance(h,i)>o&&(e+=l(h),i=h)}return e},e.moveTo=s,e.lineTo=l,e.quadraticCurveTo=function(t,e){return" Q"+n.round(e.x,4)+","+n.round(e.y,4)+" "+n.round(t.x,4)+","+n.round(t.y,4)},e.cubicCurveTo=function(t,e,i){return" C"+n.round(e.x,4)+","+n.round(e.y,4)+" "+n.round(i.x,4)+","+n.round(i.y,4)+" "+n.round(t.x,4)+","+n.round(t.y,4)},e.closePath=function(){return" Z"},e.arcTo=c,e.arc=function(t,e,i,o,a,u,d){if(0==e)return"";if(r.isNumber(o)||(o=0),0==i&&o<=0)return"";if(i<o){var p=i;i=o,o=p,r.isNumber(a)&&(a=a/o*i)}360==(e=n.min(e,360))&&(u=0,d=0);var f=t+e,g=n.sin(n.min(e,45)/2),m=(a=r.isNumber(a)?a:i)/i*o,y=a/i*(u=u||0),v=a/i*(d=r.isNumber(d)?d:u);u=n.fitToRange(u,0,(i-o)/2),y=n.fitToRange(y,0,(a-m)/2),d=n.fitToRange(d,0,(i-o)/2),v=n.fitToRange(v,0,(a-m)/2),u=n.round(n.fitToRange(u,0,i*g),4),y=n.round(n.fitToRange(y,0,a*g),4),d=n.round(n.fitToRange(d,0,o*g),4),v=n.round(n.fitToRange(v,0,m*g),4);var b=Math.asin(u/i/2)*n.DEGREES*2,x=Math.asin(y/a/2)*n.DEGREES*2;o<d&&(o=d),m<v&&(m=v);var w=Math.asin(d/o/2)*n.DEGREES*2,_=Math.asin(v/m/2)*n.DEGREES*2;r.isNumber(w)||(w=0),r.isNumber(_)||(_=0);var S=t+e/2,P={x:n.round(n.cos(S)*o,4),y:n.sin(S)*m},k={x:n.cos(t)*(o+d),y:n.sin(t)*(m+v)},C={x:n.cos(t)*(i-u),y:n.sin(t)*(a-y)},T={x:n.cos(f)*(i-u),y:n.sin(f)*(a-y)},A={x:n.cos(f)*(o+d),y:n.sin(f)*(m+v)},O={x:n.cos(t+b)*i,y:n.sin(t+x)*a},M={x:n.cos(f-w)*o,y:n.sin(f-_)*m};d+=d*n.sin(w/2),v+=v*n.sin(_/2),w>(f-t)/2&&(M=P);var E="";return 360==e?E=s(C):(E=s(k),E+=l(C),E+=h(O,u,y,!0)),E+=c(t+b,e-2*b,i,a),r.isNumber(o)&&0!=o?(360==e&&0==u?E+=s(A):(E+=h(T,u,y,!0),E+=l(A),E+=h(M,d,v,!0)),E+=c(f-w,-(e-2*w),o,m),(e<360||u>0)&&(E+=h(k,d,v,!0)),E+=l(k)):(E+=h(T,u,y,!0),e<360&&(E+=l(k))),E},e.arcToPoint=h,e.rectangle=function(t,e,i,n){return r.isNumber(i)||(i=0),r.isNumber(n)||(n=0),s({x:i,y:n})+l({x:i+t,y:n})+l({x:i+t,y:n+e})+l({x:i,y:n+e})+" Z"},e.rectToPath=function(t,e){var i=",",n=" L";return e?"M"+t.x+i+t.y+n+t.x+i+(t.y+t.height)+n+(t.x+t.width)+i+(t.y+t.height)+n+(t.x+t.width)+i+t.y+n+t.x+i+t.y:"M"+t.x+i+t.y+n+(t.x+t.width)+i+t.y+n+(t.x+t.width)+i+(t.y+t.height)+n+t.x+i+(t.y+t.height)+n+t.x+i+t.y},e.pathToPoints=function(t,e){var i=Object(o.b)().add("path").node;if(i.setAttribute("d",t),i.getPointAtLength&&i.getTotalLength){for(var n=i.getTotalLength(),r=[],a=0;a<e;a++){var s=i.getPointAtLength(a/e*n);r.push({x:s.x,y:s.y})}return r}i.remove()},e.spiralPoints=function(t,e,i,o,a,s,l,c,h){r.isNumber(c)||(c=0),r.isNumber(c)||(h=c);for(var u=a+.01,d=c*n.RADIANS,p=[];u<i+l;){var f=s;if(f/2>u&&(f=2*u),(d+=2*Math.asin(f/2/u))*n.DEGREES>h+(i-a)/l*360)break;var g=d*n.DEGREES,m={x:t+u*Math.cos(d),y:e+u*o/i*Math.sin(d)};p.push(m),u=a+g/360*l}return p.shift(),p},e.pointsToPath=function(t){if(!t||0==t.length)return"";var e=s(t[0]);if(t&&t.length>0)for(var i=1;i<t.length;i++)e+=l(t[i]);return e};var n=i("Gg2j"),r=i("Mtpk"),o=i("P7v+"),a=i("Q4nc");function s(t){return" M"+n.round(t.x,4)+","+n.round(t.y,4)+" "}function l(t){return" L"+n.round(t.x,4)+","+n.round(t.y,4)+" "}function c(t,e,i,o){if(0==e)return"";r.isNumber(o)||(o=i);var a="",s=",",c=Math.ceil(Math.abs(e)/180),h=1;e<0&&(h=0);var u=0,d=0,p=-n.cos(t)*i,f=-n.sin(t)*o;if(e<.5&&i>3e3){var g=t+e;return l({x:y=n.round(n.cos(g)*i,4),y:v=n.round(n.sin(g)*o,4)})}for(var m=0;m<c;m++){var y,v;g=t+e/c*(m+1),a+=" a"+i+s+o+s+0+s+0+s+h+s+(y=n.round(n.cos(g)*i+p-u,4))+s+(v=n.round(n.sin(g)*o+f-d,4)),u=y,d=v}return a}function h(t,e,i,r,o,a){if(0==e)return"";var s=",";return" A"+e+s+i+s+(a=a||0)+s+ +(o=Boolean(o))+s+ +(r=Boolean(r))+s+n.round(t.x,4)+s+n.round(t.y,4)}},hIRz:function(t,e,i){"use strict";i("Mvcd")("big",(function(t){return function(){return t(this,"big","","")}}))},hJ5i:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.indexOf=o,e.any=function(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n]))return!0;return!1},e.map=function(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=e(t[r],r);return n},e.each=function(t,e){for(var i=t.length,n=0;n<i;++n)e(t[n],n)},e.eachReverse=function(t,e){for(var i=t.length;i--;)e(t[i],i)},e.eachContinue=function(t,e){for(var i=t.length,n=0;n<i&&e(t[n],n);++n);},e.shiftLeft=function(t,e){for(var i=t.length,n=e;n<i;++n)t[n-e]=t[n];t.length=i-e},e.last=function(t){var e=t.length;return e?t[e-1]:void 0},e.first=function(t){return t[0]},e.insert=a,e.setIndex=function(t,e,i){s(t,e),a(t,e,i)},e.pushAll=function(t,e){for(var i=e.length,n=0;n<i;++n)t.push(e[n])},e.remove=s,e.move=function(t,e,i){var n=o(t,e);-1!==n&&c(t,n),null==i?t.push(e):l(t,i,e)},e.add=function(t,e,i){r.isNumber(i)?0===i?t.unshift(e):t.splice(i,0,e):t.push(e)},e.replace=function(t,e,i){var n=t.indexOf(e);-1!==n&&t.splice(n,1),r.isNumber(i)?t.splice(i,0,e):t.push(e)},e.toArray=function(t){return Array.isArray(t)?t:[t]},e.has=function(t,e){return-1!==o(t,e)},e.copy=function(t){for(var e=t.length,i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i},e.slice=function(t,e,i){void 0===i&&(i=t.length);for(var n=new Array(i-e),r=e;r<i;++r)n[r-e]=t[r];return n},e.insertIndex=l,e.removeIndex=c,e.getSortedIndex=function(t,e,i){for(var n=0,r=t.length,o=!1;n<r;){var a=n+r>>1,s=e(i,t[a]);s<0?r=a:0===s?(o=!0,n=a+1):n=a+1}return{found:o,index:o?n-1:n}},e.findIndex=h,e.find=function(t,e){var i=h(t,e);if(-1!==i)return t[i]},e.shuffle=function(t){for(var e,i,n=t.length;0!==n;)i=Math.floor(Math.random()*n),e=t[n-=1],t[n]=t[i],t[i]=e};var n=i("Gg2j"),r=i("Mtpk");function o(t,e){for(var i=t.length,n=0;n<i;++n)if(t[n]===e)return n;return-1}function a(t,e,i){i=n.fitToRange(i,0,t.length),t.splice(i,0,e)}function s(t,e){var i=!1,n=t.indexOf(e);if(-1!==n){i=!0,t.splice(n,1);for(var r=t.length;n<r;)t[n]===e?(t.splice(n,1),--r):++n}return i}function l(t,e,i){t.splice(e,0,i)}function c(t,e){t.splice(e,1)}function h(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n],n))return n;return-1}},hLeK:function(t,e,i){var n=i("nHHr"),r=i("K0ev"),o=i("U3hN"),a=i("Gb1H"),s=i("DvJ+"),l=i("snR7");a(a.S,"Reflect",{get:function t(e,i){var a,c,h=arguments.length<3?e:arguments[2];return l(e)===h?e[i]:(a=n.f(e,i))?o(a,"value")?a.value:void 0!==a.get?a.get.call(h):void 0:s(c=r(e))?t(c,i,h):void 0}})},hLmE:function(t,e,i){"use strict";i("nAZS")("trim",(function(t){return function(){return t(this,3)}}))},hcxM:function(t,e,i){var n=i("DvJ+"),r=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&r(t)===t}},heQh:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},hgv4:function(t,e,i){"use strict";var n=i("hjwn").f,r=i("5+SK"),o=i("cA+3"),a=i("20m4"),s=i("ypVE"),l=i("hpnp"),c=i("Uobz"),h=i("36h5"),u=i("vdWU"),d=i("gD3S"),p=i("kFp5").fastKey,f=i("rFJX"),g=d?"_s":"size",m=function(t,e){var i,n=p(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,c){var h=t((function(t,n){s(t,h,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[g]=0,null!=n&&l(n,i,t[c],t)}));return o(h.prototype,{clear:function(){for(var t=f(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var i=f(this,e),n=m(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[g]--}return!!n},forEach:function(t){f(this,e);for(var i,n=a(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!m(f(this,e),t)}}),d&&n(h.prototype,"size",{get:function(){return f(this,e)[g]}}),h},def:function(t,e,i){var n,r,o=m(t,e);return o?o.v=i:(t._l=o={i:r=p(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:m,setStrong:function(t,e,i){c(t,e,(function(t,i){this._t=f(t,e),this._k=i,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?h(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,h(1))}),i?"entries":"values",!i,!0),u(e)}}},hjwn:function(t,e,i){var n=i("snR7"),r=i("HW78"),o=i("W0fk"),a=Object.defineProperty;e.f=i("gD3S")?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},hpNl:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("8ZqG"),r=function(){function t(){}return t.opacity=1,t.strokeOpacity=1,t.strokeWidth=1,t.fillOpacity=1,t.fill=Object(n.c)("#000000"),t.stroke=Object(n.c)("#000000"),t.focusable=void 0,t.tabindex=0,t}()},hpnp:function(t,e,i){var n=i("20m4"),r=i("sNEp"),o=i("a8UT"),a=i("snR7"),s=i("FmWr"),l=i("iOZG"),c={},h={};(e=t.exports=function(t,e,i,u,d){var p,f,g,m,y=d?function(){return t}:l(t),v=n(i,u,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(p=s(t.length);p>b;b++)if((m=e?v(a(f=t[b])[0],f[1]):v(t[b]))===c||m===h)return m}else for(g=y.call(t);!(f=g.next()).done;)if((m=r(g,v,f.value,e))===c||m===h)return m}).BREAK=c,e.RETURN=h},hxI2:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rgb=function(t,e){var i;return o[t]?i=o[t]:"#"===t.charAt(0)?i=a(t):t.match(/^rgba?\(/)&&(i=s(t)),i||(i={r:0,g:0,b:0,a:1}),r.hasValue(e)&&(i.a=e),i},e.hexToRgb=a,e.rgbaToRgb=s,e.rgbToHex=function(t){return"#"+l(t.r.toString(16))+l(t.g.toString(16))+l(t.b.toString(16))},e.rgbToRGBA=function(t){return r.hasValue(t.a)&&1!==t.a?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"rgb("+t.r+","+t.g+","+t.b+")"},e.pad2=l,e.interpolate=function(t,e,i){return i=n.fitToRange(i,0,1),t?e?{r:t.r+Math.round((e.r-t.r)*i),g:t.g+Math.round((e.g-t.g)*i),b:t.b+Math.round((e.b-t.b)*i),a:(t.a||1)+Math.round(((e.a||1)-(t.a||1))*i)}:t:e||t},e.lighten=function(t,e){return t?{r:Math.max(0,Math.min(255,t.r+c(t.r,e))),g:Math.max(0,Math.min(255,t.g+c(t.g,e))),b:Math.max(0,Math.min(255,t.b+c(t.b,e))),a:t.a}:t},e.getLightnessStep=c,e.brighten=function(t,e){if(t){var i=c(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t},e.getBrightnessStep=function(t,e){return Math.round(255*e)},e.saturate=function(t,e){if(null==t||1==e)return t;var i=u(t);return i.s=e,h(i)},e.hslToRgb=h,e.rgbToHsl=u,e.rgbToHsv=function(t){var e,i=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(i,n,r),a=Math.min(i,n,r),s=0,l=o,c=o-a;if(e=0==o?0:c/o,o==a)s=0;else{switch(o){case i:s=(n-r)/c+(n<r?6:0);break;case n:s=(r-i)/c+2;break;case r:s=(i-n)/c+4}s/=6}return{h:s,s:e,v:l}},e.hsvToRgb=function(t){var e=0,i=0,n=0,r=t.h,o=t.s,a=t.v,s=Math.floor(6*r),l=6*r-s,c=a*(1-o),h=a*(1-l*o),u=a*(1-(1-l)*o);switch(s%6){case 0:e=a,i=u,n=c;break;case 1:e=h,i=a,n=c;break;case 2:e=c,i=a,n=u;break;case 3:e=c,i=h,n=a;break;case 4:e=u,i=c,n=a;break;case 5:e=a,i=c,n=h}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*n)}},e.isLight=function(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128};var n=i("Gg2j"),r=i("Mtpk"),o={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function a(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:void 0}function s(t){var e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(!(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)))return;return{r:parseInt(e[1]),g:parseInt(e[2]),b:parseInt(e[3]),a:parseFloat(e[4])}}function l(t){return 1==t.length?"0"+t:""+t}function c(t,e){var i=e>0?255-t:t;return Math.round(i*e)}function h(t){var e,i,n,r=t.h,o=t.s,a=t.l;if(0==o)e=i=n=a;else{var s=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},l=a<.5?a*(1+o):a+o-a*o,c=2*a-l;e=s(c,l,r+1/3),i=s(c,l,r),n=s(c,l,r-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*n)}}function u(t){var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),o=Math.min(e,i,n),a=0,s=0,l=(r+o)/2;if(r===o)a=s=0;else{var c=r-o;switch(s=l>.5?c/(2-r-o):c/(r+o),r){case e:a=(i-n)/c+(i<n?6:0);break;case i:a=(n-e)/c+2;break;case n:a=(e-i)/c+4}a/=6}return{h:a,s:s,l:l}}},iAlL:function(t,e,i){var n=i("gD3S"),r=i("3BzE"),o=i("EhJv"),a=i("eBSV").f;t.exports=function(t){return function(e){for(var i,s=o(e),l=r(s),c=l.length,h=0,u=[];c>h;)i=l[h++],n&&!a.call(s,i)||u.push(t?[i,s[i]]:s[i]);return u}}},iOZG:function(t,e,i){var n=i("MfZA"),r=i("YEtG")("iterator"),o=i("9BM3");t.exports=i("G5U1").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[n(t)]}},iTz5:function(t,e,i){var n=i("Gb1H"),r=i("UwWU"),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}})},iYyY:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("snR7"),o=function(t){this._t=r(t),this._i=0;var e,i=this._k=[];for(e in t)i.push(e)};i("Cekr")(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},icDv:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("aZcm"),o=i("vJiZ"),a=i("FmWr"),s=i("DbOM"),l=i("L2Mu");n(n.P,"Array",{flatMap:function(t){var e,i,n=o(this);return s(t),e=a(n.length),i=l(n,0),r(i,n,n,e,0,1,t,arguments[1]),i}}),i("M/YL")("flatMap")},iuHC:function(t,e,i){var n=i("Gb1H"),r=i("17ao");n(n.S+n.F*(Number.parseInt!=r),"Number",{parseInt:r})},izpu:function(t,e,i){var n=i("Gb1H");n(n.G,{global:i("T9LF")})},j2vi:function(t,e,i){var n=i("Gb1H"),r=i("snR7"),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},jfaP:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("Vs7R"),o=i("8ZqG"),a=i("aCit"),s=i("hGwe"),l=i("Gg2j"),c=function(t){function e(){var e=t.call(this)||this;return e._distance=0,e.className="Polyline",e.element=e.paper.add("path"),e.shapeRendering="auto",e.fill=Object(o.c)(),e.strokeOpacity=1,e.applyTheme(),e}return n.c(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){for(var e="",i=0,n=t.length;i<n;i++){var r=t[i];if(r.length>0){e+=s.moveTo(r[0]);for(var o=1;o<r.length;o++){var a=r[o];e+=s.lineTo(a),this._distance+=l.getDistance(r[o-1],a)}}}this.path=e}this._realSegments=t},Object.defineProperty(e.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(t){this.setPropertyValue("segments",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=0;t<0&&(t=Math.abs(t),e=180);var i=this._realSegments;if(i){for(var n=this.distance,r=0,o=0,a=0,s=void 0,c=void 0,h=0;h<i.length;h++){var u=i[h];if(u.length>1){for(var d=1;d<u.length;d++)if(s=u[d-1],c=u[d],o=r/n,a=(r+=l.getDistance(s,c))/n,o<=t&&a>t){h=i.length;break}}else 1==u.length&&(s=u[0],c=u[0],o=0,a=1)}if(s&&c){var p=(t-o)/(a-o),f=l.getMidPoint(s,c,p);return{x:f.x,y:f.y,angle:e+l.getAngle(s,c)}}}return{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),e}(r.a);a.c.registeredClasses.Polyline=c},jgQn:function(t,e,i){i("gD3S")&&"g"!=/./g.flags&&i("hjwn").f(RegExp.prototype,"flags",{configurable:!0,get:i("x2K9")})},jvLk:function(t,e,i){"use strict";i("jgQn");var n=i("snR7"),r=i("x2K9"),o=i("gD3S"),a=/./.toString,s=function(t){i("wDk4")(RegExp.prototype,"toString",t,!0)};i("AEc5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},k6kv:function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i("m4/l"),r=i("Meme"),o=i("5xph"),a=i("ND2/"),s=i("w4m0"),l=i("aCit"),c=i("tjMS"),h=i("Gg2j"),u=i("hGwe"),d=i("v9UT"),p=i("Mtpk"),f=i("TGuK"),g=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=Object(c.c)(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return n.c(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="vertical"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.x=t.pixelX,e.width=t.axisLength}},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof c.a||(e.width=Object(c.c)(100)),d.used(this.line);var i=e.title;i.rotation=0,i.align="center",this.opposite?(this.line.toFront(),i.toBack()):(i.toFront(),this.toBack(),this.line.toBack())}},e.prototype.updateTooltip=function(){if(this.axis){var t=this.line.pixelX,e=this.line.pixelY,i=this.axisLength,n=1e3;this.opposite?this.inside||(e=-1e3,n=1e3):this.inside&&(e=-1e3,n=1e3),this.axis.updateTooltip("vertical",{x:t,y:e,width:i,height:n})}},e.prototype.updateLabelElement=function(t,e,i,n){p.hasValue(n)||(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);t.isMeasured=!t.inside;var o,a=0,s=this.gridContainer.maxHeight;this.opposite?(t.inside?(o="top","bottom"==t.valign&&(a=s,o="bottom"),"middle"==t.valign&&(a=s/2,o="middle")):o="bottom",r.y=a):(t.inside?(o="bottom","top"==t.valign&&(a=-s,o="top"),"middle"==t.valign&&(a=-s/2,o="middle")):o="top",r.y+=a),0==t.rotation&&(t.verticalCenter=o),this.positionItem(t,r),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredWidth-t.pixelPaddingRight-t.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:this.positionToCoordinate(t),y:0}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.x,t.y)},e.prototype.getPositionRangePath=function(t,e){var i=h.fitToRange(this.positionToCoordinate(t),0,this.axisLength),n=h.fitToRange(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),o=this.getHeight(),a=Math.min(i,n);return u.rectToPath({x:a,y:0,width:r,height:o},!0)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,o=e.startPoint,a=e.endPoint,s=e.pixelMarginLeft,l=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;o.x=h.fitToRange(o.x,-1,this.axisLength+1),a.x=h.fitToRange(a.x,-1,this.axisLength+1),o.x==a.x&&(o.x<0||o.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,i.y=s,i.width=0,i.height=l,n.y=s,n.width=0,n.height=l,r.height=l,r.width=Math.abs(a.x-o.x),r.y=s,r.x=o.x},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=u.moveTo({x:0,y:0})+u.lineTo({x:0,y:this.getHeight()}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;n.y=d.spritePointToSprite({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?r*=t.inside?1:-1:r*=t.inside?-1:1,t.path=u.moveTo({x:0,y:0})+u.lineTo({x:0,y:r}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=u.moveTo({x:0,y:0})+u.lineTo({x:this.axisLength,y:0})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getHeight(),n=this.axisLength,r=this.baseGrid,o=e.basePoint.x;if(o<-.2||o>n+.2)r.hide(0);else{var a=d.spritePointToSprite({x:0,y:0},this.gridContainer,r.parent).y;r.path=u.moveTo({x:0,y:0})+u.lineTo({x:0,y:i}),r.moveTo({x:o,y:a}),r.show(0)}},e.prototype.createBreakSprites=function(t){t.startLine=new a.a,t.endLine=new a.a;var e=new s.a;e.setWavedSides(!1,!0,!1,!0),t.fillShape=e},e.prototype.toAxisPosition=function(t){var e=t,i=this.axis;if(i){var n=i.relativePositionSprite,r=i.pixelX;if(n?r=d.spritePointToSprite({x:this.pixelX,y:0},this.parent,n).x:n=i.parent,n)return(e-r/n.innerWidth)/(i.axisLength/n.innerWidth)}return t},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof o.a&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.y=d.spritePointToSprite({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(r.a);l.c.registeredClasses.AxisRendererX=g,f.c.push({relevant:f.b.heightXS,state:function(t,e){if(t instanceof g){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),f.c.push({relevant:f.b.heightXXS,state:function(t,e){if(t instanceof g){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}})},kFp5:function(t,e,i){function n(t){return(n="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})(t)}var r=i("7bL/")("meta"),o=i("DvJ+"),a=i("U3hN"),s=i("hjwn").f,l=0,c=Object.isExtensible||function(){return!0},h=!i("AEc5")((function(){return c(Object.preventExtensions({}))})),u=function(t){s(t,r,{value:{i:"O"+ ++l,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==n(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return h&&d.NEED&&c(t)&&!a(t,r)&&u(t),t}}},kHwJ:function(t,e,i){var n=i("DVYA");t.exports=Array.isArray||function(t){return"Array"==n(t)}},kJ6f:function(t,e,i){"use strict";var n=i("snR7"),r=i("W0fk");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(n(this),"number"!=t)}},kQxV:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("+qIf"),o=i("o0Lc"),a=i("hD5A"),s=i("v9UT"),l=i("Qkdp"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._interactionEvents=new r.a,e}return n.c(e,t),e.prototype._dispatchSpriteEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=l.merge(t,{target:this.target});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._dispatchSpritePointEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=l.merge(t,{target:this.target,spritePoint:s.documentPointToSprite(t.point,this.target),svgPoint:this.target.getSvgPoint(t.point)});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._addInteractionObjectEvent=function(t,e,i,n){var r=this;return this._interactionEvents.insertKeyIfEmpty(t,(function(){var o=r.target.interactions.events.on(t,e,i,n);return new a.a((function(){r._interactionEvents.removeKey(t),o.dispose()}))})).increment()},e.prototype._on=function(e,i,n,r,o,s){var l=t.prototype._on.call(this,e,i,n,r,o,s),c=[l.disposer];switch(i){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":c.push(this._addInteractionObjectEvent(i,this._dispatchSpritePointEvent,this,o));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":c.push(this._addInteractionObjectEvent(i,this._dispatchSpriteEvent,this,o))}switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0}return l.disposer=new a.c(c),l},e}(o.b)},kcsd:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},kg8J:function(t,e,i){var n=i("sxbc"),r=Math.pow,o=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),l=r(2,-126);t.exports=Math.fround||function(t){var e,i,r=Math.abs(t),c=n(t);return r<l?c*function(t){return t+1/o-1/o}(r/l/a)*l*a:(i=(e=(1+a/o)*r)-(e-r))>s||i!=i?c*(1/0):c*i}},l2gh:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)+(n>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}})},l3rq:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)-(n>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}})},l3wE:function(t,e,i){i("5lay")("getOwnPropertyNames",(function(){return i("8rbL").f}))},l9Vx:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("oGmz")(!1);n(n.P,"String",{codePointAt:function(t){return r(this,t)}})},lKl7:function(t,e,i){var n=i("Gb1H");n(n.P,"Array",{fill:i("lgQj")}),i("M/YL")("fill")},lLkc:function(t,e,i){"use strict";var n=i("DbOM"),r=i("DvJ+"),o=i("yOPk"),a=[].slice,s={};t.exports=Function.bind||function(t){var e=n(this),i=a.call(arguments,1),l=function n(){var r=i.concat(a.call(arguments));return this instanceof n?function(t,e,i){if(!(e in s)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";s[e]=Function("F,a","return new F("+n.join(",")+")")}return s[e](t,i)}(e,r.length,r):o(e,r,t)};return r(e.prototype)&&(l.prototype=e.prototype),l}},lgQj:function(t,e,i){"use strict";var n=i("vJiZ"),r=i("UwWU"),o=i("FmWr");t.exports=function(t){for(var e=n(this),i=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,i),l=a>2?arguments[2]:void 0,c=void 0===l?i:r(l,i);c>s;)e[s++]=t;return e}},lhvN:function(t,e,i){"use strict";var n=i("4BRe"),r=i("kcsd");t.exports=function(t){var e=String(r(this)),i="",o=n(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},"m4/l":function(t,e,i){"use strict";e.c=function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},i.d(e,"a",(function(){return r})),e.b=function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(a,s)}l((n=n.apply(t,e||[])).next())}))},e.d=function(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},e.g=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],i=0;return e?e.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}},e.e=o,e.f=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t};var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},r=function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function o(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}},mIpt:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("7XB+"),r=i("v9UT"),o=i("Mtpk"),a=function(){function t(){}return t.prototype.parse=function(t){return[]},Object.defineProperty(t.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToNumber=function(t,e){return-1!==this.options.numberFields.indexOf(t)?r.anyToNumber(e):e},Object.defineProperty(t.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToDate=function(t,e){return-1!==this.options.dateFields.indexOf(t)?this.options.dateFormatter.parse(e,this.dateFormat):e},t.prototype.maybeToEmpty=function(t){return o.hasValue(t)&&""!=t||!o.hasValue(this.options.emptyAs)?t:this.options.emptyAs},Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new n.a,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),t}()},mL9U:function(t,e,i){var n=i("Gb1H");n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},mOSd:function(t,e,i){var n=i("Gb1H"),r=i("iAlL")(!1);n(n.S,"Object",{values:function(t){return r(t)}})},ma7z:function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:o(arguments[2]),n=a(r(e),i,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var l=s.get(e);return l.delete(i),!!l.size||s.delete(e)}})},mntN:function(t,e,i){var n=i("EhJv"),r=i("FmWr"),o=i("UwWU");t.exports=function(t){return function(e,i,a){var s,l=n(e),c=r(l.length),h=o(a,c);if(t&&i!=i){for(;c>h;)if((s=l[h++])!=s)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},nAZS:function(t,e,i){var n=i("Gb1H"),r=i("kcsd"),o=i("AEc5"),a=i("brDO"),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),h=function(t,e,i){var r={},s=o((function(){return!!a[t]()||"
"!="
"[t]()})),l=r[t]=s?e(u):a[t];i&&(r[i]=l),n(n.P+n.F*s,"String",r)},u=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=h},nEmP:function(t,e,i){"use strict";i("nAZS")("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},nHHr:function(t,e,i){var n=i("eBSV"),r=i("Wbjh"),o=i("EhJv"),a=i("W0fk"),s=i("U3hN"),l=i("HW78"),c=Object.getOwnPropertyDescriptor;e.f=i("gD3S")?c:function(t,e){if(t=o(t),e=a(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},nPzZ:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("Inf5"),o=i("Vs7R"),a=i("Gg2j"),s=i("hGwe"),l=i("Mtpk"),c=i("8ZqG"),h=i("CuFa"),u=i("sxA1"),d=i("C84C"),p=function(t){function e(){var e=t.call(this)||this;e.className="Slice3D",e.layout="none";var i=e.createChild(o.a);e.edge=i,i.shouldClone=!1,i.isMeasured=!1,i.toBack(),e.angle=30,e.depth=20;var n=e.createChild(o.a);e.sideA=n,n.shouldClone=!1,n.isMeasured=!1;var r=e.createChild(o.a);return e.sideB=r,r.shouldClone=!1,r.isMeasured=!1,e.applyTheme(),e}return n.c(e,t),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),e instanceof c.a)i=e.hex;else if(e instanceof u.a||e instanceof h.a)i=e.stops.getIndex(0).color.hex;else{var n=new d.a;n.lightness=-.25,this.edge.filters.push(n),this.sideA.filters.push(n.clone()),this.sideB.filters.push(n.clone())}if(i){var r=Object(c.c)(i).lighten(-.25);this.edge.fill=r,this.sideA.fill=r,this.sideB.fill=r,this.edge.stroke=r,this.sideA.stroke=r,this.sideB.stroke=r}},e.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,t.prototype.draw.call(this),0!==this.arc&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,i=this.arc,n=this.pixelInnerRadius||0,r=this.radiusY||0,o=this.radius,l=e+i,c=r/o*n,h={x:a.cos(e)*n,y:a.sin(e)*c},u={x:a.cos(e)*o,y:a.sin(e)*r},d={x:a.cos(l)*o,y:a.sin(l)*r},p={x:a.cos(l)*n,y:a.sin(l)*c},f=this.depth,g={x:h.x,y:h.y-f},m={x:u.x,y:u.y-f},y={x:d.x,y:d.y-f},v={x:p.x,y:p.y-f},b="",x=Math.ceil(i/5),w=i/x,_=e,S=m,P=0;P<x;P++)if((_+=w)>0&&_<180){b+=s.moveTo(S);var k={x:a.cos(_)*o,y:a.sin(_)*r-f};b+=s.lineTo({x:S.x,y:S.y+f}),b+=s.arcToPoint({x:k.x,y:k.y+f},o,r,!0),b+=s.lineTo(k),b+=s.arcToPoint(S,o,r),b+="z",S=k}else b+=s.moveTo(S),k={x:a.cos(_)*o,y:a.sin(_)*r-f},b+=s.arcToPoint(k,o,r,!0),b+=s.lineTo({x:k.x,y:k.y+f}),b+=s.arcToPoint({x:S.x,y:S.y+f},o,r),b+=s.lineTo(S),b+="z",S=k;for(S=g,_=e,P=0;P<x;P++)(_+=w)>0&&_<180?(b+=s.moveTo(S),k={x:a.cos(_)*n,y:a.sin(_)*c-f},b+=s.lineTo({x:S.x,y:S.y+f}),b+=s.arcToPoint({x:k.x,y:k.y+f},n,c,!0),b+=s.lineTo(k),b+=s.arcToPoint(S,n,c),b+="z",S=k):(b+=s.moveTo(S),k={x:a.cos(_)*n,y:a.sin(_)*c-f},b+=s.arcToPoint(k,n,c,!0),b+=s.lineTo({x:k.x,y:k.y+f}),b+=s.arcToPoint({x:S.x,y:S.y+f},n,c),b+=s.lineTo(S),b+="z",S=k);this.edge.path=b,this.sideA.path=s.moveTo(h)+s.lineTo(u)+s.lineTo(m)+s.lineTo(g)+s.closePath(),this.sideB.path=s.moveTo(d)+s.lineTo(p)+s.lineTo(v)+s.lineTo(y)+s.closePath(),this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-f}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){var t=this.getPropertyValue("angle");return l.isNumber(t)||(t=0),t},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return l.isNumber(t)||(t=this.radius-this.radius*this.angle/90),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)},e}(r.a)},nZH2:function(t,e,i){var n=i("Gb1H");n(n.P,"Array",{copyWithin:i("y2pX")}),i("M/YL")("copyWithin")},ncT3:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("m4/l"),r=i("C6dT"),o=i("Vs7R"),a=i("Ybtf"),s=i("/e9j"),l=i("tjMS"),c=i("Qkdp"),h=i("hGwe"),u=function(t){function e(){var e=t.call(this)||this;return e.className="Cone",e.angle=30,e.radius=Object(l.c)(100),e.topRadius=Object(l.c)(100),e.top=e.createChild(a.a),e.top.shouldClone=!1,e.bottom=e.createChild(a.a),e.bottom.shouldClone=!1,e.body=e.createChild(o.a),e.body.shouldClone=!1,e.body.setElement(e.paper.add("path")),e.layout="none",e.bodyFillModifier=new s.a,e.bodyFillModifier.lightnesses=[0,-.25,0],e.body.fillModifier=e.bodyFillModifier,e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),c.copyProperties(this,this.top,o.b),c.copyProperties(this,this.bottom,o.b),c.copyProperties(this,this.body,o.b);var e,i,n,r=this.innerWidth,a=this.innerHeight,s=this.bottom,l=this.top,u=this.angle;"horizontal"==this.orientation?(e=a/2,s.y=a/2,l.y=a/2,l.x=r,i=(90-u)/90,n=0,this.bodyFillModifier.gradient.rotation=90):(i=0,n=(90-u)/90,e=r/2,s.y=a,s.x=r/2,l.x=r/2,this.bodyFillModifier.gradient.rotation=0);var d,p=this.radius.value*e,f=this.topRadius.value*e;s.radius=p-p*i,s.radiusY=p-p*n,l.radius=f-f*i,l.radiusY=f-f*n,d="horizontal"==this.orientation?h.moveTo({x:0,y:a/2-s.radiusY})+h.arcTo(-90,-180,s.radius,s.radiusY)+h.lineTo({x:r,y:a/2+l.radiusY})+h.arcTo(90,180,l.radius,l.radiusY)+h.closePath():h.moveTo({x:r/2-l.radius,y:0})+h.arcTo(180,-180,l.radius,l.radiusY)+h.lineTo({x:r/2+s.radius,y:a})+h.arcTo(0,180,s.radius,s.radiusY)+h.closePath(),this.body.path=d},Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(t){this.setPropertyValue("topRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),e}(r.a)},necU:function(t,e,i){var n=i("Gb1H");n(n.S,"Reflect",{has:function(t,e){return e in t}})},o0Lc:function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return c}));var n=i("m4/l"),r=i("hD5A"),o=i("hJ5i"),a=i("/9XX"),s=i("Mtpk"),l=function(){function t(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{o.each(t,(function(t){t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}},t.prototype.hasListeners=function(){return 0!==this._listeners.length},t.prototype.hasListenersByType=function(t){return o.any(this._listeners,(function(e){return(null===e.type||e.type===t)&&!e.killed}))},t.prototype.enable=function(){this._enabled=!0},t.prototype.disable=function(){this._enabled=!1},t.prototype.enableType=function(t){delete this._disabled[t]},t.prototype.disableType=function(t,e){void 0===e&&(e=1/0),this._disabled[t]=e},t.prototype._removeListener=function(t){if(0===this._iterating){var e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)},t.prototype._removeExistingListener=function(t,e,i,n){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((function(r){r.once!==t||r.type!==e||null!=i&&r.callback!==i||r.context!==n||r.disposer.dispose()}))},t.prototype.isEnabled=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&null==this._disabled[t]},t.prototype.has=function(t,e,i){return-1!==o.findIndex(this._listeners,(function(n){return!0!==n.once&&n.type===t&&(null==e||n.callback===e)&&n.context===i}))},t.prototype._shouldDispatch=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[t];return s.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled},t.prototype._eachListener=function(t){var e=this;++this._iterating;try{o.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(o.each(this._killed,(function(t){e._removeListener(t)})),this._killed.length=0)}},t.prototype.dispatchImmediately=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||i.dispatch(t,e)}))},t.prototype.dispatch=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||a.e((function(){i.killed||i.dispatch(t,e)}))}))},t.prototype._on=function(t,e,i,n,o,a){var s=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);var l={type:e,callback:i,context:n,shouldClone:o,dispatch:a,killed:!1,once:t,disposer:new r.b((function(){l.killed=!0,s._removeListener(l)}))};return this._listeners.push(l),l},t.prototype.onAll=function(t,e,i){return void 0===i&&(i=!0),this._on(!1,null,t,e,i,(function(i,n){return t.call(e,i,n)})).disposer},t.prototype.on=function(t,e,i,n){return void 0===n&&(n=!0),this._on(!1,t,e,i,n,(function(t,n){return e.call(i,n)})).disposer},t.prototype.once=function(t,e,i,n){void 0===n&&(n=!0);var r=this._on(!0,t,e,i,n,(function(t,n){r.disposer.dispose(),e.call(i,n)}));return r.disposer},t.prototype.off=function(t,e,i){this._removeExistingListener(!1,t,e,i)},t.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");o.each(t._listeners,(function(t){!t.killed&&t.shouldClone&&(null===t.type?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))}))},t}(),c=function(t){function e(e){var i=t.call(this)||this;return i.target=e,i}return n.c(e,t),e.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");o.each(t._listeners,(function(i){i.context!==t.target&&!i.killed&&i.shouldClone&&(null===i.type?e.onAll(i.callback,i.context):i.once?e.once(i.type,i.callback,i.context):e.on(i.type,i.callback,i.context))}))},e}(l)},oAPj:function(t,e,i){var n=i("nHHr"),r=i("Gb1H"),o=i("snR7");r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},oC3T:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("Tjl+"),o=i("1yyj"),a=i("Gg2j"),s=i("0FpR"),l=i("Mtpk"),c=function(t){function e(e){var i=t.call(this)||this;return i._bboxes=[],i.morphDuration=800,i.morphEasing=s.cubicOut,i.morphToSingle=!0,i.scaleRatio=1,i.className="Morpher",i.morphable=e,i.applyTheme(),i}return n.c(e,t),e.prototype.morphToPolygon=function(t,e,i){var n=this.morphable.currentPoints;if(n&&t){this.sortPoints(n),this.sortPoints(t),this._morphFromPointsReal=[],this._morphToPointsReal=[],l.hasValue(e)||(e=this.morphDuration),l.hasValue(i)||(i=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(t,n),this._morphToPointsReal=this.normalizePoints(n,t),this.morphable.currentPoints=this._morphFromPointsReal;var r=new o.a(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(r),r.start(),r}},e.prototype.normalizePoints=function(t,e){for(var i=0,n=t.length;i<n;i++){var r=t[i][0],o=t[i][1],s=l.getValue(a.getBBox(r)),c=s.x+s.width,h=s.y+s.height;if(e[i]||(e[i]=[]),r&&!e[i][0]&&(e[i][0]=[{x:c,y:h},{x:c,y:h}]),e[i][0]){e[i][0]=this.addPoints(e[i][0],r.length);for(var u=1/0,d=0,p=0;p<e[i][0].length;p++){var f=a.getDistance(e[i][0][p],r[0]);f<u&&(d=p,u=f)}var g=e[i][0].slice(0,d),m=e[i][0].slice(d);e[i][0]=m.concat(g)}o&&(e[i][1]||(e[i][1]=[{x:c,y:h},{x:c,y:h}]),e[i][1]=this.addPoints(e[i][1],o.length))}return e},e.prototype.sortPoints=function(t){t.sort((function(t,e){var i=l.getValue(a.getBBox(t[0])),n=l.getValue(a.getBBox(e[0]));return i.width*i.height>n.width*n.height?-1:1}));for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i][0];r&&e.push(l.getValue(a.getBBox(r)))}return a.getCommonRectangle(e)},e.prototype.morphToCircle=function(t,e,i){var n=this.morphable.points,r=this.sortPoints(n);this._morphFromPointsReal=[],this._morphToPointsReal=[],l.hasValue(e)||(e=this.morphDuration),l.hasValue(i)||(i=this.morphEasing);for(var s=0,c=n.length;s<c;s++){var h=n[s][0],u=n[s][1];if(this._morphFromPointsReal[s]=[],this._morphToPointsReal[s]=[],h){var d=h,p=h,f=l.getValue(a.getBBox(p));this.morphToSingle&&(f=l.getValue(r));var g=f.x+f.width/2,m=f.y+f.height/2,y=t;l.isNumber(y)||(y=Math.min(f.width/2,f.height/2)),d=[];var v=a.getAngle({x:g,y:m},h[0]),b=100;h.length>b&&(b=h.length);for(var x=360/((b=(p=this.addPoints(h,b)).length)-1),w=0;w<b;w++){var _=x*w+v,S={x:g+y*a.cos(_),y:m+y*a.sin(_)};d[w]=S}if(u&&u.length>0)for(var P=0,k=u.length;P<k;P++)d.push({x:g,y:m});this._morphFromPointsReal[s][0]=p,this._morphToPointsReal[s][0]=d}}this.morphable.currentPoints=this._morphFromPointsReal;var C=new o.a(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(C),C.start(),C},e.prototype.addPoints=function(t,e){for(var i=Math.round(e/t.length),n=[],r=0,o=t.length;r<o;r++){var a,s=t[r];a=r==t.length-1?t[0]:t[r+1],n.push(s);for(var l=1;l<i;l++){var c=l/i,h={x:s.x+(a.x-s.x)*c,y:s.y+(a.y-s.y)*c};n.push(h)}n.length+t.length-r==e&&(i=0)}if(n.length<e&&t.length>0){var u=t[t.length-1];for(l=n.length;l<e;l++)n.push({x:u.x,y:u.y})}return n},e.prototype.morphToRectangle=function(t,e,i,n){var r=this.morphable.points;this.sortPoints(r),this._morphFromPointsReal=[],this._morphToPointsReal=[],l.hasValue(i)||(i=this.morphDuration),l.hasValue(n)||(n=this.morphEasing);for(var a=0,s=r.length;a<s;a++){var c=r[a][0],h=r[a][1];if(this._morphFromPointsReal[a]=[],this._morphToPointsReal[a]=[],c){var u=c,d=c,p=this._bboxes[a];this.morphToSingle;var f=p.x,g=p.y,m=t,y=e;if(l.isNumber(m)||(m=p.width),l.isNumber(y)||(y=p.height),u=[{x:f,y:g},{x:f+m,y:g},{x:f+m,y:g+y},{x:f,y:g+y}],u=this.addPoints(u,c.length),c.length<4)for(var v=c.length;v<4;v++)u.push({x:c[v].x,y:c[v].y});if(h&&h.length>0)for(var b=p.x+p.width/2,x=p.y+p.height/2,w=0,_=h.length;w<_;w++)u.push({x:b,y:x});this._morphFromPointsReal[a][0]=d,this._morphToPointsReal[a][0]=u}}this.morphable.currentPoints=this._morphFromPointsReal;var S=new o.a(this,{property:"morphProgress",from:0,to:1},i,n);return this._disposers.push(S),S.start(),S},Object.defineProperty(e.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(t){this._morphProgress=t;var e=[];if(null!=t){var i=this._morphFromPointsReal,n=this._morphToPointsReal;if(null!=i&&null!=n)for(var r=0,o=i.length;r<o;r++){var a=[];e.push(a);var s=i[r][0],l=i[r][1],c=n[r][0],h=n[r][1];if(s&&s.length>0&&c&&c.length>0){for(var u=[],d=0,p=s.length;d<p;d++){var f=s[d],g=c[d],m={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t};u.push(m)}a[0]=u}if(l&&l.length>0&&h&&h.length>0){for(var y=[],v=0,b=l.length;v<b;v++)f=l[v],g=h[v],m={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t},y.push(m);a[1]=y}}}this.morphable.currentPoints=e},enumerable:!0,configurable:!0}),e.prototype.morphBack=function(t,e){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,l.hasValue(t)||(t=this.morphDuration),l.hasValue(e)||(e=this.morphEasing);var i=new o.a(this,{property:"morphProgress",from:0,to:1},t,e);return this._disposers.push(i),i.start(),i},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new o.b(this._animations))),this._animations},enumerable:!0,configurable:!0}),e}(r.a)},oGmz:function(t,e,i){var n=i("4BRe"),r=i("kcsd");t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},oMjf:function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=n.get,a=n.key;n.exp({getOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},oVsg:function(t,e,i){var n=i("Gb1H"),r=i("nHHr").f,o=i("snR7");n(n.S,"Reflect",{deleteProperty:function(t,e){var i=r(o(t),e);return!(i&&!i.configurable)&&delete t[e]}})},"of/x":function(t,e,i){"use strict";i("nAZS")("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},ohjg:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("Tjl+"),o=i("P7v+"),a=i("1yyj"),s=i("vMqJ"),l=i("Qkdp"),c=i("Wglt"),h=function(t){function e(){var e=t.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new s.b,e.filterPrimitives.events.on("inserted",(function(t){e._disposers.push(t.newValue)})),e.width=120,e.height=120,e.applyTheme(),e}return n.c(e,t),e.prototype.appendPrimitives=function(t){c.each(this.filterPrimitives.iterator(),(function(e){t.add(e)}))},e.prototype.animate=function(t,e,i){return new a.a(this,t,e,i).start()},Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),l.each(e.properties,(function(t,e){i[t]=e}))},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Object(o.b)()},set:function(t){this._paper!=t&&(this._paper=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new a.b(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale=t,this.updateScale()},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){},Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(t){this._nonScaling=t,t||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{set:function(t){this.setSprite(t)},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.filters.removeValue(this),this._sprite=t},e}(r.a)},osLN:function(t,e,i){var n=i("Gb1H");n(n.P+n.R,"Set",{toJSON:i("dJEq")("Set")})},p3CN:function(t,e,i){var n=i("hjwn"),r=i("snR7"),o=i("3BzE");t.exports=i("gD3S")?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},p4R3:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},p9TX:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("m4/l"),r=i("C6dT"),o=i("aCit"),a=i("MipW"),s=i("hD5A"),l=i("MIZb"),c=i("Gg2j"),h=i("v9UT"),u=i("Mtpk"),d=i("58Sn"),p=i("TGuK"),f=function(t){function e(){var e=t.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=(new l.a).getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="...",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e._positionPrecision=1,e.events.on("maxsizechanged",(function(){e.inited&&e.handleMaxSize()}),e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return n.c(e,t),e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.validatePosition()},e.prototype.setPaper=function(e){var i=t.prototype.setPaper.call(this,e);return i&&this.hardInvalidate(),i},e.prototype.handleValidate=function(){!this.currentText&&!this.text||0!=this.bbox.width&&0!=this.bbox.height||o.c.events.once("exitframe",this.hardInvalidate,this)},e.prototype.handleMaxSize=function(){this.bbox.width>this.availableWidth||this.bbox.width<this.availableWidth&&(this.isOversized||this.truncate)||this.bbox.height>this.availableHeight||this.bbox.height<this.availableHeight&&this.isOversized?this.invalidate():this.alignSVGText()},e.prototype.arrange=function(){},e.prototype.updateCurrentText=function(){var t,e;h.isNotEmpty(this.html)&&this.paper.supportsForeignObject()?(t="html",e=this.html):(t="svg",e=this.text),u.isObject(e)&&(e=e.toString()),u.hasValue(e)&&""!==e&&(e=this.populateString(e,this.dataItem)),"html"==t?this._adapterO&&(e=this._adapterO.apply("htmlOutput",e)):this._adapterO&&(e=this._adapterO.apply("textOutput",e));var i=e!=this.currentText||t!=this._currentFormat;return this.currentText=e,this._currentFormat=t,i},e.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},e.prototype.getLineBBox=function(t){var e=t&&t.element,i=e&&e.node;i&&i.parentNode&&(t.bbox=e.getBBox())},e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.bbox.width,i=this.bbox.height,n=this.topParent;if(!n||n.maxWidth&&n.maxHeight){var r=c.max(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),o=c.max(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),s=o+","+r+this.wrap+this.truncate+this.fullWords+this.rtl+this.ellipsis;if(this.updateCurrentText()||!this.inited||this._prevStatus!=s){this._measuredWidth=0,this._measuredHeight=0,this.isOversized=!1;var l=this._currentFormat,d=this.currentText;if(u.hasValue(d)&&""!=d){var p=d.split("\n");this._prevStatus=s,this.textAlign=this.textAlign;var f=this.group.getAttr("display");if("none"==f&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),"svg"===l){this.element.removeAttr("display");var g=this.element;this.resetBBox();for(var m=0,y="",v=0;v<p.length;v++){var b=p[v];if(""!=b){var x=Object(a.b)().chunk(b,null,this.ignoreFormatting),w=0,_=!0,S=!1,P=this.getLineInfo(v);P?P.element.textContent="":(P={element:this.getSVGLineElement("",0),complex:!1},g.add(P.element)),P.element.removeAttr("display"),P.element.removeChildren(),this.textPathElement&&P.element.add(this.textPathElement);for(var k=0;k<x.length;k++){k&&(P.complex=!0);var C=x[k];if("format"===C.type)y=C.text;else{if(S)continue;P.text=C.text,P.style=Object(a.b)().translateStyleShortcuts(y);var T=this.getSvgElement(P.text,P.style);if(this.textPathElement?this.textPathElement.add(T):P.element.add(T),this.getLineBBox(P),P.bbox.width=Math.ceil(P.bbox.width),w<P.bbox.height&&(w=P.bbox.height),(this.wrap||this.truncate)&&P.bbox.width>r){this.isOversized=!0;var A=P.element.textContent,O=P.bbox.width/A.length,M=c.min(Math.ceil((P.bbox.width-r)/O),A.length);if(this.truncate){var E=!1,I=P.element.node;if(I&&I.childNodes)for(var D=P.element.node.childNodes.length-1;D>=0;D--){var L=P.element.node.childNodes[D];if(E&&P.bbox.width<=r&&(L.textContent+=" "+this.ellipsis,P.bbox=P.element.getBBox(),P.bbox.width=Math.floor(P.bbox.width),P.bbox.width<=r))break;E=!1;var j=L.textContent;for(A=P.element.textContent,M=c.min(Math.ceil((P.bbox.width-r)/O),A.length);P.bbox.width>r&&M<=A.length&&M>0;)(R=c.max(j.length-M-this.ellipsis.length,1))<=1&&(M=0,D>0&&(E=!0,P.element.node.removeChild(L))),(j=h.truncateWithEllipsis(j,R,this.ellipsis,this.fullWords,this.rtl)).length>R&&this.fullWords&&(j=h.truncateWithEllipsis(j,R,this.ellipsis,!1,this.rtl)),L.textContent=j,P.bbox=P.element.getBBox(),P.bbox.width=Math.floor(P.bbox.width),M=Math.ceil(1.1*M);S=!0}}else if(P.element.node){for(var N=P.element.node.lastChild,F=void 0;P.bbox.width>r&&M<=A.length&&M>0;){var R=c.max(C.text.length-M,1);_?F=h.splitTextByCharCount(C.text,R,!0,this.rtl):((F=h.splitTextByCharCount(C.text,R,!0,this.rtl))[0].length>R||1===R)&&(P.element.node.removeChild(N),M=0),M>0&&(N.textContent=Object(a.b)().cleanUp(h.trim(F.shift()))),P.bbox=P.element.getBBox(),P.bbox.width=Math.floor(P.bbox.width),M=Math.ceil(1.1*M)}if(F.length>0){var V="";u.hasValue(F)&&(this.rtl?V+=F.join("")+y:V+=y+F.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var z=k+1;z<x.length;z++)"value"==x[z].type?V+=x[z].text.replace(/([\[\]]{1})/g,"$1$1"):V+=x[z].text;p.splice(v+1,0,V)}S=!0}}this.bbox.width<P.bbox.width&&(this.bbox.width=P.bbox.width),this.bbox.height=m+w,this.textPathElement?P.element.attr({dy:-this.paddingBottom.toString()}):P.element.attr({x:"0",y:m+w,dy:c.round(this.baseLineRatio*w,3).toString()}),_=!1}}var B=P.element.node;B&&(N=B.lastChild)&&(N.textContent=this.rtl?h.ltrim(N.textContent):h.rtrim(N.textContent)),m+=w,this.addLineInfo(P,v)}else{var H=this.getSVGLineElement("",0);H.add(this.getSvgElement(".",Object(a.b)().translateStyleShortcuts(y))),g.add(H);var W=Math.ceil(H.getBBox().height);W>0&&(m+=W),g.removeElement(H)}}this.maybeHideOversized(),this.measureFailed=!1,0!=this.bbox.width&&0!=this.bbox.height||(this.measureFailed=!0),this._measuredWidth=c.round(c.max(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=c.round(c.max(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,i==this._measuredHeight&&e==this._measuredWidth||this.dispatch("transformed"),this.hideUnused(p.length)}else{this.element.removeAttr("display"),this.resetBBox(),(g=this.element).removeChildren();var X=this.paper.foreignObject();g.add(X),this.maxWidth&&X.attr({width:this.maxWidth}),this.maxHeight&&X.attr({height:this.maxHeight});var Y=this.getHTMLLineElement(d);X.node.appendChild(Y),Y.style.display="inline-block";var G=Y.clientWidth,U=Y.clientHeight;Y.style.display="block",this._bbox={x:0,y:0,width:G,height:U},X.attr({width:G,height:U}),this.maybeHideOversized(),this._measuredWidth=c.max(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=c.max(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(Y.style.overflow="hidden"),(G>r||U>o)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),"none"==f&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}else this.element.attr({display:"none"})}}else n.events.once("maxsizechanged",this.hardInvalidate,this,!1)},e.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth<this.bbox.width||this.availableHeight<this.bbox.height?(this.element.attr({display:"none"}),this.isOversized=!0):(this.element.removeAttr("display"),this.isOversized=!1))},e.prototype.alignSVGText=function(){var t=this.element,e=t.node.children||t.node.childNodes;if(e&&(!e||0!=e.length)){var i=this._measuredWidth,n=this._measuredHeight;h.used(this.pixelPaddingLeft),h.used(this.pixelPaddingRight),h.used(this.pixelPaddingTop),h.used(this.pixelPaddingBottom);for(var r=e.length-1;r>=0;r--){var o=e[r];if(o.setAttribute("text-anchor",this.textAlign),this.textPathElement)o.removeAttribute("x"),o.removeAttribute("y");else{switch(this.textAlign){case"middle":o.setAttribute("x",(i/2).toString()+"px");break;case"end":this.rtl||o.setAttribute("x",i.toString());break;default:this.rtl?o.setAttribute("x",i.toString()):o.removeAttribute("text-anchor")}var a=u.toNumber(o.getAttribute("y"));switch(this.textValign){case"middle":o.setAttribute("y",(a+(n-this.bbox.height)/2).toString());break;case"bottom":o.setAttribute("y",(a+n-this.bbox.height).toString());break;default:o.setAttribute("y",a.toString())}}}}},e.prototype.getSVGLineElement=function(t,e){var i=this.paper.addGroup("text");return i.textContent=t,i.attr({x:"0"}),u.hasValue(e)&&i.attr({y:e.toString()}),(this.truncate||this.wrap)&&i.attr({overflow:"hidden"}),this.rtl&&i.attr({direction:"rtl"}),i},e.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},e.prototype.getHTMLLineElement=function(t){var e=document.createElement("div");switch(e.innerHTML=t,this.textAlign){case"middle":e.style.textAlign="center";break;case"end":e.style.textAlign="right"}return this.wrap?e.style.wordWrap="break-word":e.style.whiteSpace="nowrap",this.rtl&&(e.style.direction="rtl"),u.hasValue(this.fill)&&(e.style.color=this.fill.toString()),e},e.prototype.setStyles=function(){var t=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?t.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(t.removeStyle("webkitUserSelect"),t.removeStyle("msUserSelect"))},e.prototype.hideUnused=function(t){this.initLineCache();var e=this.getCache("lineInfo");if(e.length>=t)for(var i=t;i<e.length;i++){var n=e[i];n&&n.element&&n.element.attr({display:"none"})}},Object.defineProperty(e.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(t){this.setPropertyValue("text",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPropertyValue("path",t,!0)&&(this.pathElement&&this.pathElement.dispose(),this.textPathElement&&this.textPathElement.dispose(),this.pathElement=this.paper.add("path"),this.pathElement.attr({d:t}),this.pathElement.attr({id:"text-path-"+this.uid}),this._disposers.push(this.pathElement),this.textPathElement=this.paper.addGroup("textPath"),this.textPathElement.attrNS(d.d,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:t}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(t){this.setPropertyValue("locationOnPath",t),this.textPathElement&&this.textPathElement.attr({startOffset:100*t+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(t){this.setPropertyValue("baseLineRatio",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(t){this.resetBBox(),this.setPropertyValue("wrap",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")},set:function(t){this.resetBBox(),this.setPropertyValue("truncate",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(t){this.setPropertyValue("fullWords",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(t){this.setPropertyValue("ellipsis",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(t){this.setPropertyValue("selectable",t,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(t){this.setPropertyValue("textAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(t){this.setPropertyValue("textValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(t){this.setPropertyValue("html",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(t){this.setPropertyValue("hideOversized",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(t){this.setPropertyValue("ignoreFormatting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},e.prototype.getLineInfo=function(t){this.initLineCache();var e=this.getCache("lineInfo");return e.length>t?e[t]:void 0},e.prototype.addLineInfo=function(t,e){this.initLineCache(),this.getCache("lineInfo")[e]=t},e.prototype.initLineCache=function(){u.hasValue(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},e.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new s.c([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),t.prototype.setDataItem.call(this,e)},Object.defineProperty(e.prototype,"availableWidth",{get:function(){return u.hasValue(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"availableHeight",{get:function(){return u.hasValue(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.getSvgElement=function(t,e){var i=this.paper.add("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.deepInvalidate=function(){t.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(e.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return t||(t=this.populateString(h.plainText(h.isNotEmpty(this.html)?this.html:this.text))),t},set:function(t){t=u.toText(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.Label=f,p.c.push({relevant:p.b.heightXS,state:function(t,e){if(t instanceof f&&t.parent&&t.parent.isBaseSprite){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}})},pR7v:function(t,e,i){"use strict";i.d(e,"b",(function(){return f})),i.d(e,"a",(function(){return g}));var n=i("m4/l"),r=i("AAkI"),o=i("OXm9"),a=i("hD5A"),s=i("aCit"),l=i("ZoDA"),c=i("Gg2j"),h=i("Wglt"),u=i("Qkdp"),d=i("Mtpk"),p=i("v9UT"),f=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(t){this.setValue("endValue",t)},enumerable:!0,configurable:!0}),e}(r.b),g=function(t){function e(){var e=t.call(this)||this;return e._stepDecimalPlaces=0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return n.c(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component;t.axisFill.disabled||(c.round(e/i.step/2,5)==Math.round(e/i.step/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new f},e.prototype.createAxisBreak=function(){return new l.a},e.prototype.dataChangeUpdate=function(){this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},e.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var t=this.series.getIndex(0),e=t.startIndex;if(t.dataItems.length>0){e>0&&e--;var i=t.endIndex;i<t.dataItems.length&&i++;for(var n=function(t){var e={};r.series.each((function(i){if(!i.excludeFromTotal){var n=i.dataItems.getIndex(t);n&&u.each(n.values,(function(t){var i=n.values[t].workingValue;d.isNumber(i)&&(d.isNumber(e[t])?e[t]+=Math.abs(i):e[t]=Math.abs(i))}))}})),r.series.each((function(i){if(!i.excludeFromTotal){var n=i.dataItems.getIndex(t);n&&u.each(n.values,(function(t){var i=n.values[t].workingValue;d.isNumber(i)&&(n.setCalculatedValue(t,e[t],"total"),n.setCalculatedValue(t,100*i/e[t],"totalPercent"))}))}}))},r=this,o=e;o<i;++o)n(o)}}},e.prototype.validate=function(){this.axisLength<=0||(t.prototype.validate.call(this),this.getMinMax(),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},e.prototype.calculateZoom=function(){if(d.isNumber(this.min)&&d.isNumber(this.max)){var t=this.positionToValue(this.start),e=this.positionToValue(this.end),i=this.adjustDifference(t,e),n=this.adjustMinMax(t,e,i,this._gridCount,!0);t=n.min,e=n.max,this._adjustedStart=c.round((t-this.min)/(this.max-this.min),5),this._adjustedEnd=c.round((e-this.min)/(this.max-this.min),5),this._step=n.step,this._stepDecimalPlaces=p.decimalPlaces(this._step),this._minZoomed==t&&this._maxZoomed==e||(this._minZoomed=t,this._maxZoomed=e,this.dispatchImmediately("selectionextremeschanged"))}else this._adjustedStart=this.start,this._adjustedEnd=this.end},e.prototype.validateAxisElements=function(){var t=this;if(d.isNumber(this.max)&&d.isNumber(this.min)){var e=this.minZoomed-2*this._step;this.logarithmic?Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E):0==(e=Math.floor(this.minZoomed/this._step)*this._step)&&(e=this.minZoomed):e=Math.floor(e/this._step)*this._step;var i=this._maxZoomed+this._step;this.resetIterators();for(var n=this._dataItemsIterator,r=0;e<=i;){if(!this.isInBreak(e)){var o=n.find((function(t){return t.value===e}));o.__disabled&&(o.__disabled=!1),this.appendDataItem(o),o.axisBreak=void 0,o.value!=e&&(o.value=e,o.text=this.formatLabel(e),o.label&&o.label.invalid&&o.label.validate(),o.value>=this.min&&o.value<=this.max&&o.label&&("Y"==this.axisLetter&&o.label.measuredWidth>this.ghostLabel.measuredWidth||"X"==this.axisLetter&&o.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=o.label.currentText,this.ghostLabel.validate())),this.validateDataElement(o)}r++,this.logarithmic&&Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E+r):e+=this._step;var a=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(a<1){var s=Math.round(Math.abs(Math.log(Math.abs(a))*Math.LOG10E))+2;e=c.round(e,s)}}var l=this._axisBreaks;if(l){var u=this.renderer;h.each(l.iterator(),(function(e){if(e.breakSize>0&&c.getDistance(e.startPoint,e.endPoint)>u.minGridDistance)for(var i=e.adjustedMin;i<=e.adjustedMax;){if(i>=e.adjustedStartValue&&i<=e.adjustedEndValue){var r=n.find((function(t){return t.value===i}));r.__disabled&&(r.__disabled=!1),t.appendDataItem(r),r.axisBreak=e,r.value!=i&&(r.value=i,r.text=t.formatLabel(i),r.label&&r.label.invalid&&r.label.validate()),t.validateDataElement(r)}i+=e.adjustedStep}}))}}},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var i=this.renderer,n=e.value,r=e.endValue,o=this.valueToPosition(n);e.position=o;var a=o,s=this.valueToPosition(n+this._step);d.isNumber(r)&&(s=a=this.valueToPosition(r)),e.point=i.positionToPoint(o);var l=e.tick;l&&!l.disabled&&i.updateTickElement(l,o,a);var c=e.grid;c&&!c.disabled&&i.updateGridElement(c,o,a);var h=e.label;h&&!h.disabled&&i.updateLabelElement(h,o,a);var u=e.axisFill;u&&!u.disabled&&(i.updateFillElement(u,o,s),e.isRange||this.fillRule(e)),e.bullet&&i.updateBullet(e.bullet,o,a);var p=e.mask;p&&i.updateFillElement(p,o,s)},e.prototype.formatLabel=function(t){return this.numberFormatter.format(t)},Object.defineProperty(e.prototype,"basePoint",{get:function(){var t=this.baseValue,e=this.valueToPosition(t);return this.renderer.positionToPoint(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseValue",{get:function(){var t=this._baseValue;return this.logarithmic&&(t=this.min),this._adapterO?this._adapterO.apply("baseValue",t):t},set:function(t){this._baseValue=t,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),e.prototype.anyToPosition=function(t){return this.valueToPosition(t)},e.prototype.valueToPoint=function(t){var e=this.valueToPosition(t),i=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:n}},e.prototype.anyToPoint=function(t){return this.valueToPoint(t)},e.prototype.valueToPosition=function(t){if(d.isNumber(t)){var e=this.min,i=this.max;if(d.isNumber(e)&&d.isNumber(i)){var n=this._difference,r=this._axisBreaks;return r&&r.length>0&&h.eachContinue(r.iterator(),(function(n){var r=n.adjustedStartValue,o=n.adjustedEndValue;if(d.isNumber(r)&&d.isNumber(o)){if(t<r)return!1;if(c.intersect({start:r,end:o},{start:e,end:i})){r=Math.max(r,e),o=Math.min(o,i);var a=n.breakSize;t>o?e+=(o-r)*(1-a):t<r||(t=r+(t-r)*a)}}return!0})),this.logarithmic?(Math.log(t)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E):(t-e)/n}}return 0},e.prototype.positionToValue=function(t){t=c.round(t,10);var e=this.min,i=this.max;if(d.isNumber(e)&&d.isNumber(i)){var n=i-e,r=null,o=this._axisBreaks;return o&&o.length>0&&h.eachContinue(o.iterator(),(function(o){var a=o.startPosition,s=o.endPosition,l=o.adjustedStartValue,h=o.adjustedEndValue;if(d.isNumber(l)&&d.isNumber(h)){if(l>i)return!1;if(c.intersect({start:l,end:h},{start:e,end:i})){l=c.max(l,e),h=c.min(h,i);var u=o.breakSize;if(n-=(h-l)*(1-u),t>s)e+=(h-l)*(1-u);else if(!(t<a))return r=l+(t-a)/(s-a)*(h-l),!1}return!0}})),d.isNumber(r)||(r=this.logarithmic?Math.pow(Math.E,(t*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):t*n+e),r}},e.prototype.xToValue=function(t){return this.positionToValue(this.pointToPosition({x:t,y:0}))},e.prototype.yToValue=function(t){return this.positionToValue(this.pointToPosition({x:0,y:t}))},e.prototype.pointToPosition=function(t){return this.renderer instanceof o.a?1-this.renderer.pointToPosition(t):this.renderer.pointToPosition(t)},e.prototype.animateMinMax=function(t,e){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing)},e.prototype.getMinMax=function(){var t=this;this.updateGridCount();var e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;if(d.isNumber(this._minDefined)&&d.isNumber(this._maxDefined)||(this.series.each((function(n){if(!n.ignoreMinMax){var r=n.min(t);d.isNumber(r)&&r<e&&(e=r);var o=n.max(t);d.isNumber(o)&&o>i&&(i=o)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var n=c.min(t.value,t.endValue),r=c.max(t.value,t.endValue);(n<e||!d.isNumber(e))&&(e=n),(r>i||!d.isNumber(i))&&(i=r)}}))),this.logarithmic&&e<=0)throw Error("Logarithmic value axis can not have vales <= 0.");if(0==e&&0==i&&(i=.9,e=-.9),d.isNumber(this._minDefined)&&(e=this._minDefined),d.isNumber(this._maxDefined)&&(i=this._maxDefined),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),d.isNumber(e)&&d.isNumber(i)){this._minReal=e,this._maxReal=i,e==Number.POSITIVE_INFINITY&&(e=void 0),i==Number.NEGATIVE_INFINITY&&(i=void 0);var n=this.adjustDifference(e,i);if(e=this.fixMin(e),(i=this.fixMax(i))-e<=1/Math.pow(10,15)){if(i-e!=0)this._deltaMinMax=(i-e)/2;else{var r=Math.log(Math.abs(i))*Math.LOG10E,o=Math.pow(10,Math.floor(r));o/=10,this._deltaMinMax=o}e-=this._deltaMinMax,i+=this._deltaMinMax}e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax;var a=this.strictMinMax;d.isNumber(this._maxDefined)&&(a=!0);var s=this.adjustMinMax(e,i,n,this._gridCount,a);if(e=s.min,n=(i=s.max)-e,s=this.adjustMinMax(e,i,i-e,this._gridCount,!0),e=s.min,i=s.max,this.strictMinMax&&(e=d.isNumber(this._minDefined)?this._minDefined:this._minReal,(i=d.isNumber(this._maxDefined)?this._maxDefined:this._maxReal)-e<=1e-8&&(e-=this._deltaMinMax,i+=this._deltaMinMax),e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),(this._minAdjusted!=e||this._maxAdjusted!=i)&&d.isNumber(e)&&d.isNumber(i)){var l=this._minMaxAnimation;if(this._extremesChanged&&d.isNumber(this._minAdjusted)&&d.isNumber(this._maxAdjusted)&&this.inited){if(l&&!l.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._finalMin=e,this._finalMax=i,(l=this.animateMinMax(e,i))&&!l.isFinished()?(l.events.on("animationprogress",this.validateDataItems,this),l.events.on("animationended",(function(){t.series.each((function(t){t.validate()})),t.validateDataItems(),t.handleSelectionExtremesChange()})),this._minMaxAnimation=l):this.series.each((function(t){t.validate()})),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(l&&!l.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._minAdjusted=e,this._maxAdjusted=i,this._finalMin=e,this._finalMax=i,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged")}}this._extremesChanged=!1,this._difference=this.adjustDifference(e,i)}},e.prototype.fixMin=function(t){return t},e.prototype.fixMax=function(t){return t},e.prototype.adjustMinMax=function(t,e,i,n,r){n<=1&&(n=1),n=Math.round(n);var o=t,a=e;0===i&&(i=Math.abs(e));var s=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(s)),h=l/=10;r&&(h=0),this.logarithmic?(t<=0&&(t=this.baseValue),t==1/0&&(t=1),e==-1/0&&(e=10),t=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),e=Math.pow(10,Math.ceil(Math.log(Math.abs(e))*Math.LOG10E))):(r?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&o>=0&&(t=0),e>0&&a<=0&&(e=0)),s=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(s)),l/=10;var u=Math.ceil(i/n/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(u))*Math.LOG10E)),p=Math.ceil(u/d);p>5?p=10:p<=5&&p>2&&(p=5),u=Math.ceil(u/(d*p))*d*p,this.maxPrecision<Number.MAX_VALUE&&u!=c.ceil(u,this.maxPrecision)&&(u=c.ceil(u,this.maxPrecision));var f=0;if(d<1&&(f=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,u=c.round(u,f)),!this.logarithmic){var g=Math.floor(t/u);t=c.round(u*g,f);var m=void 0;(m=r?Math.floor(e/u):Math.ceil(e/u))==g&&m++,(e=c.round(u*m,f))<a&&(e+=u),t>o&&(t-=u)}return{min:t,max:e,step:u}},Object.defineProperty(e.prototype,"min",{get:function(){var t=this._minAdjusted;return d.isNumber(t)||(t=this._minDefined),t},set:function(t){this._minDefined!=t&&(this._minDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(t){this.setPropertyValue("extraMin",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(t){this.setPropertyValue("extraMax",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){var t=this._maxAdjusted;return d.isNumber(t)||(t=this._maxDefined),t},set:function(t){this._maxDefined!=t&&(this._maxDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.registerSeries=function(e){return new a.c([t.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},e.prototype.handleSelectionExtremesChange=function(){var t,e,i=this,n=!0;if(h.each(this.series.iterator(),(function(r){if(!r.ignoreMinMax&&!r.isHidden){r.visible&&!r.isHiding&&(n=!1);var o=r.selectionMin(i),a=r.selectionMax(i);d.isNumber(o)&&(!d.isNumber(t)||o<t)&&(t=o),d.isNumber(a)&&(!d.isNumber(e)||a>e)&&(e=a)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var i=c.min(t.value,t.endValue),n=c.max(t.value,t.endValue);i<e&&(e=i),n>e&&(e=n)}})),d.isNumber(this._minDefined)?t=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(t=this._minReal),d.isNumber(this._maxDefined)?e=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(e=this._maxReal),t==e){t-=this._deltaMinMax,e+=this._deltaMinMax;var r=this.adjustMinMax(t,e,0,this._gridCount,this.strictMinMax);t=r.min,e=r.max}var o=this.adjustDifference(t,e),a=this.adjustMinMax(t,e,o,this._gridCount);t=a.min,e=a.max,t-=(e-t)*this.extraMin,e+=(e-t)*this.extraMax,t=c.fitToRange(t,this.min,this.max),e=c.fitToRange(e,this.min,this.max),o=this.adjustDifference(t,e),a=this.adjustMinMax(t,e,o,this._gridCount,!0),t=a.min,e=a.max,this.strictMinMax&&(t=c.max(t,this._minDefined),e=c.min(e,this._maxDefined)),this._minZoomed=t,this._maxZoomed=e,this._step=a.step,this._difference=this.adjustDifference(this.min,this.max);var s=this.valueToPosition(t),l=this.valueToPosition(e);n&&(s=0,l=1),this.keepSelection||this.zoom({start:s,end:l},!1,!1,0)},Object.defineProperty(e.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(t){this.setPropertyValue("strictMinMax",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(t){this.setPropertyValue("logarithmic",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(t){this.setPropertyValue("keepSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(t){this.setPropertyValue("includeRangesInMinMax",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(t){this.setPropertyValue("maxPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.handleExtremesChange=function(){var t=this;this._extremesChanged=!0,this.getMinMax(),this.ghostLabel&&this.dataItems.each((function(e){e.label&&e.label.pixelWidth>0&&(t.ghostLabel.text=e.label.currentText)}))},e.prototype.getX=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionX(t,e,i,n,r)).x},e.prototype.getPositionX=function(t,e,i,n,r){var o=t.getWorkingValue(e);d.hasValue(n)||(n="valueX");var a=t.getValue(n,"stack");d.isNumber(o)||(o=this.baseValue,this.logarithmic&&a>0&&(o=0));var s=this.valueToPosition(o+a);return r&&(s=c.fitToRange(s,r.start,r.end)),s},e.prototype.getY=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionY(t,e,i,n,r)).y},e.prototype.getPositionY=function(t,e,i,n,r){var o=t.getWorkingValue(e);d.hasValue(n)||(n="valueY");var a=t.getValue(n,"stack");d.isNumber(o)||(o=this.baseValue,this.logarithmic&&a>0&&(o=0));var s=this.valueToPosition(o+a);return r&&(s=c.fitToRange(s,r.start,r.end)),s},e.prototype.getAngle=function(t,e,i,n,r){var o=t.getWorkingValue(e),a=t.getValue(n,"stack");d.isNumber(o)||(o=this.baseValue);var s=this.valueToPosition(o+a);return r&&(s=c.fitToRange(s,r.start,r.end)),this.positionToAngle(s)},e.prototype.getAnyRangePath=function(t,e,i){var n=this.valueToPosition(t),r=this.valueToPosition(e);return this.getPositionRangePath(n,r)},e.prototype.getTooltipText=function(t){var e=c.round(this.positionToValue(t),this._stepDecimalPlaces),i=this.tooltip.numberFormatter.format(e);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},e.prototype.zoomToValues=function(t,e,i,n){var r=(t-this.min)/(this.max-this.min),o=(e-this.min)/(this.max-this.min);this.zoom({start:r,end:o},i,n)},Object.defineProperty(e.prototype,"minZoomed",{get:function(){return c.max(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomed",{get:function(){return c.min(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each((function(t){var i=t.adjustedStartValue,n=t.adjustedEndValue,r=n-i,o=Math.ceil(r*t.breakSize)*e._gridCount/(e.max-e.min),a=e.adjustMinMax(i,n,r,o,!0);t.adjustedStep=a.step,t.adjustedMin=a.min,t.adjustedMax=a.max})),this._difference=this.adjustDifference(this.min,this.max)},e.prototype.getPositionLabel=function(t){var e=this.positionToValue(t);return this.numberFormatter.format(e)},e.prototype.showTooltipAt=function(t){this.showTooltipAtPosition(this.valueToPosition(t))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},e}(r.a);s.c.registeredClasses.ValueAxis=g,s.c.registeredClasses.ValueAxisDataItem=f},pb4Y:function(t,e){t.exports=!1},pjXm:function(t,e,i){"use strict";e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r.a.verbose&&console&&console.log.apply(console,n.f(t))},e.b=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console&&console.warn.apply(console,n.f(t))};var n=i("m4/l"),r=i("Q4nc")},pmYy:function(t,e){e.f=Object.getOwnPropertySymbols},pvlQ:function(t,e,i){"use strict";var n=i("DvJ+"),r=i("K0ev"),o=i("YEtG")("hasInstance"),a=Function.prototype;o in a||i("hjwn").f(a,o,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},pzs1:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("58Sn"),r=i("Qkdp"),o=i("Mtpk"),a=function(){function t(t){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,this.node="string"==typeof t?document.createElementNS(n.a,t):t}return t.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(t.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),t.prototype.transform=function(){var t="translate("+this._x+","+this._y+")";if(1!=this._scale&&(t+=(t?" ":"")+"scale("+this._scale+")"),0!=this._rotation){var e="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(e="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),t+=(t?" ":"")+e}this._transformString=t,this.node.setAttribute("transform",t)},t.prototype.getBBox=function(){var t={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height}catch(t){}return t},t.prototype.moveTo=function(t){if(t){var e=t.x,i=t.y;this._x==e&&this._y==i||(this._x=e,this._y=i,this.transform())}},Object.defineProperty(t.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(t){this.node.textContent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!=t&&(this._x=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!=t&&(this._y=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!=t&&(this._rotation=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationX",{get:function(){return this._rotationX},set:function(t){this._rotationX!=t&&(this._rotationX=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationY",{get:function(){return this._rotationY},set:function(t){this._rotationY!=t&&(this._rotationY=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale!=t&&(this._scale=t,this.transform())},enumerable:!0,configurable:!0}),t.prototype.removeAttr=function(t){this.node.removeAttribute(t)},t.prototype.attr=function(t){var e=this;return r.each(t,(function(t,i){o.hasValue(i)?e.node.setAttribute(t,i):e.node.removeAttribute(t)})),this},t.prototype.getAttr=function(t){return this.node.getAttribute(t)},t.prototype.attrNS=function(t,e,i){return this.node.setAttributeNS(t,e,i),this},t.prototype.getAttrNS=function(t,e){return this.node.getAttributeNS(t,e)},t.prototype.removeStyle=function(t){delete this.node.style[t]},t.prototype.getStyle=function(t){return this.node.style[t]},t.prototype.addStyle=function(t){var e=this;return r.each(t,(function(t,i){o.hasValue(i)?e.node.style[t]=i:e.removeStyle(t)})),this},t.prototype.addClass=function(t){n.f(this.node,t)},t.prototype.removeClass=function(t){n.x(this.node,t)},t.prototype.setClass=function(t){this.node.setAttribute("class",t)},t.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.dispose=function(){this.removeNode()},t}()},"q+2p":function(t,e,i){var n=Date.prototype,r=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&i("wDk4")(n,"toString",(function(){var t=o.call(this);return t==t?r.call(this):"Invalid Date"}))},qCRI:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){function t(){}return t.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],t.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],t.pointer=[{property:"cursor",value:"pointer"}],t.default=[{property:"cursor",value:"default"}],t.horizontalResize=[{property:"cursor",value:"ew-resize"}],t.verticalResize=[{property:"cursor",value:"ns-resize"}],t.notAllowed=[{property:"cursor",value:"not-allowed"}],t}()},qJno:function(t,e,i){"use strict";var n=i("m4/l"),r=i("58Sn"),o=i("MIZb"),a=i("+qIf"),s=i("hD5A"),l=new a.a,c=i("x79X"),h=i("vMqJ"),u=i("zhwk"),d=i("P/bD"),p=i("/IEW"),f=i("WYhe"),g=i("v9UT"),m=i("Wglt"),y=i("Mtpk");i.d(e,"a",(function(){return v}));var v=function(t){function e(){var e=t.call(this)||this;return e.adapter=new c.a(e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new s.d,e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invalidate(),e.applyTheme(),e}return n.c(e,t),e.prototype.validate=function(){this.draw(),t.prototype.validate.call(this)},e.prototype.draw=function(){var t=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),y.getValue(this._container).appendChild(this._element);for(var e=this.adapter.apply("items",{items:this._items}).items,i=e.length,n=0;n<i;n++)this.drawBranch(this._element,e[n],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(Object(u.b)().body.events.on("down",(function(e){e.pointer.touch||(t._ignoreNextClose=!1),t.close()}))),this._disposers.push(Object(u.b)().body.events.on("keyup",(function(e){var i=f.b.getEventKey(e.event);switch(i){case"esc":t.close();break;case"up":case"down":case"left":case"right":t.moveSelection(i)}}))),this.defaultStyles&&this.loadDefaultCSS()},e.prototype.drawBranch=function(t,e,i){var n=this;if(!0!==(e=this.adapter.apply("branch",{branch:e,level:i}).branch).unsupported){e.ascendants||(e.ascendants=new h.b);var r,o=e.type,a=this.createItemElement(i,o);e.icon?((r=this.createIconElement(i,o)).src=e.icon,e.label&&(r.title=e.label)):e.svg?(r=this.createSvgElement(i,o,e.svg),e.label&&(r.title=e.label)):(r=this.createLabelElement(i,o)).innerHTML=e.label?this.language.translate(e.label):"";var s=this.getReaderLabel(e,r.innerHTML);r.setAttribute("aria-label",s),a.appendChild(r),e.interactions=Object(u.b)().getInteraction(r),e.element=a,this.typeClickable(o)&&(e.interactions.events.on("hit",(function(t){if(n.events.isEnabled("hit")){var i={type:"hit",event:t.event,target:n,branch:e};n.events.dispatchImmediately("hit",i)}})),e.interactions.events.on("keyup",(function(t){if(f.b.isKey(t.event,"enter")&&n.events.isEnabled("enter")){var i={type:"enter",event:t.event,target:n,branch:e};n.events.dispatchImmediately("enter",i)}})));var l=this.getSubMenu(e);null!=l&&(e.interactions.events.on("keyup",(function(t){f.b.isKey(t.event,"enter")&&(n.selectBranch(l[0]),n.setFocus(l[0]))})),e.interactions.events.on("hit",(function(t){n.selectBranch(e)}))),e.interactions.events.on("over",(function(t){if(t.pointer.touch&&(n._ignoreNextClose=!0),n.selectBranch(e),n.events.isEnabled("over")){var i={type:"over",event:t.event,target:n,branch:e};n.events.dispatchImmediately("over",i)}})),e.interactions.events.on("out",(function(t){if(t.pointer.touch||n.delayUnselectBranch(e),n.events.isEnabled("out")){var i={type:"out",event:t.event,target:n,branch:e};n.events.dispatchImmediately("out",i)}})),e.interactions.events.on("focus",(function(t){n.selectBranch(e)})),e.interactions.events.on("blur",(function(t){n.delayUnselectBranch(e)}));var c=i+1;if(e.menu){for(var d=this.createMenuElement(c),p=e.menu.length,g=0;g<p;g++){var m=new h.b;e.menu[g].ascendants=m,e.ascendants.length&&m.copyFrom(e.ascendants),m.push(e),this.drawBranch(d,e.menu[g],c)}if(""==d.innerHTML)return;a.appendChild(d)}e.hidden&&this.hideBranch(e),e.id&&a.setAttribute("id",e.id),e.color&&(a.style.backgroundColor=e.color.hex),t.appendChild(a)}},e.prototype.createMenuElement=function(t){var e=document.createElement(this.menuTag);return e.className=this.getMenuItemClass(t),0===t&&e.setAttribute("role","menu"),e},e.prototype.getMenuItemClass=function(t){var e=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+t;return 0===t&&(e+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:e,level:t}).className},e.prototype.createItemElement=function(t,e){var i=document.createElement(this.itemTag),n=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return i.className=this.adapter.apply("itemClass",{className:n,level:t,type:e}).className,i},e.prototype.createLabelElement=function(t,e){var i=document.createElement(this.labelTag),n=this.classPrefix+"-label "+this.classPrefix+"-label-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createIconElement=function(t,e){var i=document.createElement(this.iconTag),n=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createSvgElement=function(t,e,i){var n=(new DOMParser).parseFromString(i,"image/svg+xml").documentElement,r=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(r+=" "+this.classPrefix+"-clickable"),n.setAttribute("class",this.adapter.apply("labelClass",{className:r,level:t,type:e}).className),n.setAttribute("tabindex",this.tabindex.toString()),n.setAttribute("role","menuitem"),n},e.prototype.dispose=function(){this._disposed||(t.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},e.prototype.typeClickable=function(t){return y.hasValue(t)},e.prototype.hasSubMenu=function(t){return!(!t.menu||!t.menu.length)},e.prototype.getSubMenu=function(t){if(t.menu&&t.menu.length)return t.menu},e.prototype.getReaderLabel=function(t,e){return e=g.stripTags(e),this.hasSubMenu(t)?e+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":"print"==t.type?e=this.language.translate("Click, tap or press ENTER to print."):this.typeClickable(t.type)&&(e=this.language.translate("Click, tap or press ENTER to export as %1.",void 0,e)),this.adapter.apply("rederLabel",{label:e,branch:t}).label},Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{set:function(t){this._menuTag=t,this._itemTag="ul"==t?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}).align},set:function(t){this._align=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",{verticalAlign:this._verticalAlign}).verticalAlign},set:function(t){this._verticalAlign=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",{classPrefix:this._classPrefix}).classPrefix},set:function(t){this._classPrefix=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",{defaultStyles:this._defaultStyles}).defaultStyles},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t,t&&this.loadDefaultCSS()),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.loadDefaultCSS=function(){this._disposers.push(function(t){var e=t||"amexport",i=new o.a;return l.insertKeyIfEmpty(e,(function(){var t=new s.c([new r.c("."+e+"-menu *",{"box-sizing":"border-box"}),new r.c("."+e+"-menu-level-0",{position:"absolute",top:"5px",right:"5px"}),new r.c("."+e+"-menu-level-0."+e+"-left",{right:"auto",left:"5px"}),new r.c("."+e+"-menu-level-0."+e+"-right",{right:"5px",left:"auto"}),new r.c("."+e+"-menu-level-0."+e+"-top",{top:"5px",bottom:"auto"}),new r.c("."+e+"-menu-level-0."+e+"-bottom",{top:"auto",bottom:"5px"}),new r.c("."+e+"-item."+e+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new r.c("div:hover ."+e+"-item."+e+"-item-level-0, ."+e+"-item."+e+"-item-level-0.active",{opacity:"0.9"}),new r.c("."+e+"-item."+e+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new r.c("."+e+"-item."+e+"-item-level-0:before",{display:"block"}),new r.c("."+e+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":i.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:i.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new r.c("."+e+"-left ."+e+"-item",{margin:"1px 0 0 1px"}),new r.c("."+e+"-item:hover, ."+e+"-item.active",{background:i.getFor("secondaryButtonHover").hex,color:i.getFor("secondaryButtonText").hex}),new r.c("."+e+"-item > ."+e+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new r.c("."+e+"-left ."+e+"-item > ."+e+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new r.c("."+e+"-right ."+e+"-item > ."+e+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new r.c("."+e+"-top ."+e+"-item > ."+e+"-menu",{top:"-1px",bottom:"auto"}),new r.c("."+e+"-bottom ."+e+"-item > ."+e+"-menu",{top:"auto",bottom:"0"}),new r.c("."+e+"-item > ."+e+"-menu",{display:"none"}),new r.c("."+e+"-item:hover > ."+e+"-menu, ."+e+"-item.active > ."+e+"-menu",{display:"block"}),new r.c("."+e+"-item:hover > ."+e+"-menu > ."+e+"-item, ."+e+"-item.active > ."+e+"-menu > ."+e+"-item",{opacity:"1"}),new r.c("."+e+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new r.c("."+e+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new r.c("."+e+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new r.c("."+e+"-item-level-0 > ."+e+"-icon",{padding:"0.1em 0.2em"}),new r.c("."+e+"-clickable",{cursor:"pointer"})]);return new s.a((function(){l.removeKey(e),t.dispose()}))})).increment()}(this.classPrefix)),this._element&&(this._element.style.display="")},Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(t){this._tabindex=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this,e=this._language.get();return null==e&&(e=new d.a,this._language.set(e,e.events.on("localechanged",(function(e){t.invalidate()})))),e},set:function(t){var e=this;this._language.set(t,t.events.on("localechanged",(function(t){e.invalidate()}))),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.close=function(){var t=this;if(this._ignoreNextClose)this._ignoreNextClose=!1;else{if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout((function(){t._element.style.pointerEvents="auto"}),100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var e=this._element.getElementsByClassName("active"),i=e.length-1;i>=0;i--)e[i]&&r.x(e[i],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},e.prototype.selectBranch=function(t){var e=this;if(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),r.f(t.interactions.element.parentElement,"active"),this._currentSelection&&this._currentSelection!==t&&this._currentSelection.ascendants&&m.each(m.concat(m.fromArray([this._currentSelection]),this._currentSelection.ascendants.iterator()),(function(i){t.ascendants.contains(i)||t===i||e.unselectBranch(i,!0)})),m.each(t.ascendants.iterator(),(function(t){t.closeTimeout&&(e.removeDispose(t.closeTimeout),t.closeTimeout=void 0),r.f(t.interactions.element.parentElement,"active")})),this._currentSelection=t,this.events.isEnabled("branchselected")){var i={type:"branchselected",target:this,branch:t};this.events.dispatchImmediately("branchselected",i)}},e.prototype.unselectBranch=function(t,e){if(r.x(t.interactions.element.parentElement,"active"),this._currentSelection==t&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected")){var i={type:"branchunselected",target:this,branch:t};this.events.dispatchImmediately("branchunselected",i)}},e.prototype.delayUnselectBranch=function(t,e){var i=this;t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),t.closeTimeout=this.setTimeout((function(){i.unselectBranch(t,e)}),this.closeDelay),!0!==e&&t.ascendants&&m.each(t.ascendants.iterator(),(function(t){i.delayUnselectBranch(t,!0)}))},e.prototype.moveSelection=function(t){if(this._currentSelection){var e;if("up"==t)e=this.getPrevSibling(this._currentSelection);else if("down"==t)e=this.getNextSibling(this._currentSelection);else if("left"==t&&"right"==this.align||"right"==t&&"left"==this.align){var i=this.getSubMenu(this._currentSelection);null!=i&&(e=i[0])}else("right"==t&&"right"==this.align||"left"==t&&"left"==this.align)&&(e=this.getParentItem(this._currentSelection));e&&e!==this._currentSelection&&(this.selectBranch(e),this.setFocus(e),this._currentSelection=e)}},e.prototype.getSiblings=function(t){var e=this.getParentItem(t);return e&&e.menu?e.menu:[]},e.prototype.getParentItem=function(t){return t.ascendants&&t.ascendants.length?t.ascendants.getIndex(t.ascendants.length-1):void 0},e.prototype.getNextSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)+1;return e[i=e.length==i?0:i].unsupported?this.getNextSibling(e[i]):e[i]}return t},e.prototype.getPrevSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)-1;return e[i=-1==i?e.length-1:i].unsupported?this.getPrevSibling(e[i]):e[i]}return t},e.prototype.setFocus=function(t){if(t.interactions)try{t.interactions.element.focus()}catch(t){}},e.prototype.setBlur=function(t){if(t.interactions)try{t.interactions.element.blur()}catch(t){}},e.prototype.hideBranch=function(t){t.element.style.display="none"},e.prototype.showBranch=function(t){t.element.style.display=""},e}(p.a)},qgJR:function(t,e,i){"use strict";var n=i("snR7"),r=i("DVvQ"),o=i("2i0j");i("7V6K")("search",1,(function(t,e,i,a){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=a(i,t,this);if(e.done)return e.value;var s=n(t),l=String(this),c=s.lastIndex;r(c,0)||(s.lastIndex=0);var h=o(s,l);return r(s.lastIndex,c)||(s.lastIndex=c),null===h?-1:h.index}]}))},quKg:function(t,e,i){"use strict";i.d(e,"b",(function(){return d})),i.d(e,"a",(function(){return p}));var n=i("m4/l"),r=i("DXFp"),o=i("tjMS"),a=i("Puh1"),s=i("aCit"),l=i("Wglt"),c=i("v9UT"),h=i("Gg2j"),u=i("Mtpk"),d=function(t){function e(){var e=t.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return n.c(e,t),e}(r.b),p=function(t){function e(){var e=t.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=Object(o.c)(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var i=e.seriesContainer;return i.isMeasured=!0,i.valign="middle",i.align="center",i.layout="absolute",i.width=void 0,i.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e.applyTheme(),e}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),u.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.updateRadius()},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},e.prototype.updateSeriesAngles=function(){var t=this;this.series.each((function(e){e._startAngleInternal=t.startAngle,e._endAngleInternal=t.endAngle}))},e.prototype.updateRadius=function(){var t=this.chartContainer,e=h.getArcRect(this.startAngle,this.endAngle,1),i={x:0,y:0,width:0,height:0},n=this.innerRadius;n instanceof o.a&&(i=h.getArcRect(this.startAngle,this.endAngle,n.value)),e=h.getCommonRectangle([e,i]);var r=Math.min(t.innerWidth/e.width,t.innerHeight/e.height);u.isNumber(r)||(r=0);var a=c.relativeRadiusToValue(this.radius,r),s=c.relativeRadiusToValue(this.innerRadius,r),d=(a-s)/this.series.length;a==this._chartPixelRadius&&s==this._chartPixelInnerRadius||(this._chartPixelRadius=a,this._chartPixelInnerRadius=s,l.each(l.indexed(this.series.iterator()),(function(t){var e=t[0],i=t[1],n=s+c.relativeRadiusToValue(i.radius,a-s),r=s+c.relativeRadiusToValue(i.innerRadius,a-s);u.isNumber(n)||(n=s+d*(e+1)),u.isNumber(r)||(r=s+d*e),i.pixelRadius=n,i.pixelInnerRadius=r})),this.seriesContainer.definedBBox={x:a*e.x,y:a*e.y,width:a*e.width,height:a*e.height},this.seriesContainer.invalidateLayout(),this.bulletsContainer.x=this.seriesContainer.x,this.bulletsContainer.y=this.seriesContainer.y)},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new a.a},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),e}(r.a);s.c.registeredClasses.PieChart=p,s.c.registeredClasses.PieChartDataItem=d},qzbU:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("Vs7R"),o=i("aCit"),a=i("MIZb"),s=function(t){function e(){var e=t.call(this)||this;e.className="Tick";var i=new a.a;return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=i.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(t){this.setPropertyValue("length",t,!0)},enumerable:!0,configurable:!0}),e}(r.a);o.c.registeredClasses.Tick=s},r7ZX:function(t,e,i){i("3mH9")("Set")},rFJX:function(t,e,i){var n=i("DvJ+");t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},rTLi:function(t,e,i){"use strict";i("Mvcd")("small",(function(t){return function(){return t(this,"small","","")}}))},"rU+O":function(t,e,i){"use strict";var n=i("snR7"),r=i("vJiZ"),o=i("FmWr"),a=i("4BRe"),s=i("YxCF"),l=i("2i0j"),c=Math.max,h=Math.min,u=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,f=function(t){return void 0===t?t:String(t)};i("7V6K")("replace",2,(function(t,e,i,g){return[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):i.call(String(o),n,r)},function(t,e){var r=g(i,t,this,e);if(r.done)return r.value;var u=n(t),d=String(this),p="function"==typeof e;p||(e=String(e));var y=u.global;if(y){var v=u.unicode;u.lastIndex=0}for(var b=[];;){var x=l(u,d);if(null===x)break;if(b.push(x),!y)break;""===String(x[0])&&(u.lastIndex=s(d,o(u.lastIndex),v))}for(var w="",_=0,S=0;S<b.length;S++){x=b[S];for(var P=String(x[0]),k=c(h(a(x.index),d.length),0),C=[],T=1;T<x.length;T++)C.push(f(x[T]));var A=x.groups;if(p){var O=[P].concat(C,k,d);void 0!==A&&O.push(A);var M=String(e.apply(void 0,O))}else M=m(P,d,k,C,A,e);k>=_&&(w+=d.slice(_,k)+M,_=k+P.length)}return w+d.slice(_)}];function m(t,e,n,o,a,s){var l=n+t.length,c=o.length,h=p;return void 0!==a&&(a=r(a),h=d),i.call(s,h,(function(i,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var h=+r;if(0===h)return i;if(h>c){var d=u(h/10);return 0===d?i:d<=c?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):i}s=o[h-1]}return void 0===s?"":s}))}}))},rU6r:function(t,e,i){i("YJIw")("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},rkh7:function(t,e,i){var n=i("ODWe"),r=i("heQh").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},rutD:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("4BRe"),o=i("GIxq"),a=i("lhvN"),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],h="Number.toFixed: incorrect invocation!",u=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*c[i],c[i]=n%1e7,n=l(n/1e7)},d=function(t){for(var e=6,i=0;--e>=0;)i+=c[e],c[e]=l(i/t),i=i%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var i=String(c[t]);e=""===e?i:e+a.call("0",7-i.length)+i}return e},f=function t(e,i,n){return 0===i?n:i%2==1?t(e,i-1,n*e):t(e*e,i/2,n)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i("AEc5")((function(){s.call({})}))),"Number",{toFixed:function(t){var e,i,n,s,l=o(this,h),c=r(t),g="",m="0";if(c<0||c>20)throw RangeError(h);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(i=(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(l*f(2,69,1))-69)<0?l*f(2,-e,1):l/f(2,e,1),i*=4503599627370496,(e=52-e)>0){for(u(0,i),n=c;n>=7;)u(1e7,0),n-=7;for(u(f(10,n,1),0),n=e-1;n>=23;)d(1<<23),n-=23;d(1<<n),u(1,1),d(2),m=p()}else u(0,i),u(1<<-e,0),m=p()+a.call("0",c);return c>0?g+((s=m.length)<=c?"0."+a.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):g+m}})},sHIJ:function(t,e,i){var n=i("DVYA");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},sNEp:function(t,e,i){var n=i("snR7");t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},"sc+R":function(t,e,i){var n=i("DbOM"),r=i("vJiZ"),o=i("sHIJ"),a=i("FmWr");t.exports=function(t,e,i,s,l){n(e);var c=r(t),h=o(c),u=a(c.length),d=l?u-1:0,p=l?-1:1;if(i<2)for(;;){if(d in h){s=h[d],d+=p;break}if(d+=p,l?d<0:u<=d)throw TypeError("Reduce of empty array with no initial value")}for(;l?d>=0:u>d;d+=p)d in h&&(s=e(s,h[d],d,c));return s}},snR7:function(t,e,i){var n=i("DvJ+");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ssJO:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("dstF")(0),o=i("GQop")([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},sxA1:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("m4/l"),r=i("Tjl+"),o=i("vMqJ"),a=i("P7v+"),s=i("aCit"),l=i("Wglt"),c=i("Gg2j"),h=i("Mtpk"),u=function(t){function e(){var e=t.call(this)||this;return e._stops=new o.b,e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+s.c.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return n.c(e,t),e.prototype.validate=function(){var t=this,e=(this._rotation+90)*c.RADIANS,i=Math.round(50+50*Math.sin(e+Math.PI))+"%",n=Math.round(50+50*Math.cos(e))+"%",r=Math.round(50+50*Math.sin(e))+"%",o=Math.round(50+50*Math.cos(e+Math.PI))+"%",a=this.element;a.removeChildNodes(),a.attr({x1:i,x2:r,y1:n,y2:o}),l.each(l.indexed(this._stops.iterator()),(function(e){var i=e[0],n=e[1],r=n.offset;h.isNumber(r)||(r=i/(t._stops.length-1));var o=t.paper.add("stop");h.hasValue(n.color)&&o.attr({"stop-color":n.color.toString()}),h.isNumber(n.opacity)&&o.attr({"stop-opacity":n.opacity}),h.isNumber(r)&&o.attr({offset:r}),a.add(o)}))},e.prototype.clear=function(){this._stops.clear()},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i})},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Object(a.b)()},set:function(t){this._paper!=t&&(this._paper=t,this.validate(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation=t,this.validate()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},e}(r.a);s.c.registeredClasses.LinearGradient=u},sxbc:function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},t3Ma:function(t,e,i){"use strict";i("Mvcd")("bold",(function(t){return function(){return t(this,"b","","")}}))},tIuN:function(t,e,i){var n=i("Gb1H");n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},tYpR:function(t,e,i){i("3mH9")("WeakMap")},tjMS:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),e.c=function(t){return new n(t)},e.b=function(t){return t instanceof n};var n=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._value+"%"},t}()},tzvs:function(t,e,i){var n=i("EhJv"),r=i("nHHr").f;i("5lay")("getOwnPropertyDescriptor",(function(){return function(t,e){return r(n(t),e)}}))},uWmK:function(t,e,i){"use strict";i.d(e,"b",(function(){return w})),i.d(e,"c",(function(){return _})),i.d(e,"a",(function(){return S}));var n=i("m4/l"),r=i("Y9w3"),o=i("A6AV"),a=i("vMqJ"),s=i("CnhP"),l=i("C6dT"),c=i("p9TX"),h=i("WYhe"),u=i("aCit"),d=i("zhwk"),p=i("tjMS"),f=i("MIZb"),g=i("v9UT"),m=i("Mtpk"),y=i("Vs7R"),v=i("hD5A"),b=i("qCRI"),x=i("TGuK"),w=function(t){function e(){var e=t.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this._label=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new v.b((function(){m.hasValue(t.component)&&t.component.labels.removeValue(e)})))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueLabel",{get:function(){var t=this;if(!this._valueLabel){var e=this.component.valueLabels.create();this._valueLabel=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new v.b((function(){m.hasValue(t.component)&&t.component.valueLabels.removeValue(e)})))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemContainer",{get:function(){var t=this;if(!this._itemContainer){var e=this.component,i=e.itemContainers.create();i.parent=e,this._itemContainer=i,this.addSprite(i),this._disposers.push(i),i.togglable&&i.events.on("toggled",(function(t){e.toggleDataItem(t.target.dataItem)}),void 0,!1),i.focusable&&(i.events.on("focus",(function(t){e.focusedItem=t.target.dataItem}),void 0,!1),i.events.on("blur",(function(t){e.focusedItem=void 0}),void 0,!1)),this._disposers.push(new v.b((function(){m.hasValue(t.component)&&t.component.itemContainers.removeValue(i)}))),this.dataContext.uidAttr&&(i.readerControls=this.dataContext.uidAttr(),i.readerLabelledBy=this.dataContext.uidAttr());var n=this.dataContext;(n instanceof o.a||n instanceof y.a)&&!n.isDisposed()&&(i.addDisposer(n.events.on("visibilitychanged",(function(t){i.readerChecked=t.visible,i.events.disableType("toggled"),i.isActive=!t.visible,i.events.enableType("toggled")}),void 0,!1)),n.addDisposer(new v.b((function(){t.component&&t.component.dataItems.remove(t)}))),n instanceof y.a&&(i.addDisposer(n.events.on("hidden",(function(t){i.readerChecked=!1,i.events.disableType("toggled"),i.isActive=!0,i.events.enableType("toggled")}),void 0,!1)),i.addDisposer(n.events.on("shown",(function(t){i.readerChecked=!0,i.events.disableType("toggled"),i.isActive=!1,i.events.enableType("toggled")}),void 0,!1))))}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){var t=this;if(!this._marker){var e=this.component.markers.create();this._marker=e,e.parent=this.itemContainer,this.addSprite(e),this._disposers.push(e),this._disposers.push(new v.b((function(){m.hasValue(t.component)&&t.component.markers.removeValue(e)})))}return this._marker},enumerable:!0,configurable:!0}),e}(o.a),_=function(){this.createMarker=!0},S=function(t){function e(){var e=t.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("contentAlign","center");var i=new l.a;i.applyOnClones=!0,i.padding(10,0,10,0),i.margin(0,10,0,0),i.layout="horizontal",i.clickable=!0,i.focusable=!0,i.role="switch",i.togglable=!0,i.cursorOverStyle=b.a.pointer,i.background.fillOpacity=0,e.itemContainers=new a.e(i),e._disposers.push(new a.c(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(Object(d.b)().body.events.on("keyup",(function(t){h.b.isKey(t.event,"enter")&&e.focusedItem&&e.focusedItem.itemContainer.clickable&&e.toggleDataItem(e.focusedItem)}),e));var n=new f.a,r=new l.a;r.width=23,r.height=23,r.interactionsEnabled=!1,r.applyOnClones=!0,r.setStateOnChildren=!0,r.background.fillOpacity=0,r.background.strokeOpacity=0,r.propertyFields.fill="fill",r.valign="middle";var o=n.getFor("disabledBackground");r.events.on("childadded",(function(t){var e=t.newValue.states.create("active");e.properties.stroke=o,e.properties.fill=o})),e.markers=new a.e(r),e._disposers.push(new a.c(e.markers)),e._disposers.push(e.markers.template);var u=r.createChild(s.a);u.width=Object(p.c)(100),u.height=Object(p.c)(100),u.applyOnClones=!0,u.propertyFields.fill="fill",u.strokeOpacity=0;var g=new c.a;g.text="{name}",g.margin(0,5,0,5),g.valign="middle",g.applyOnClones=!0,g.states.create("active").properties.fill=n.getFor("disabledBackground"),e.labels=new a.e(g),e._disposers.push(new a.c(e.labels)),e._disposers.push(e.labels.template),g.interactionsEnabled=!1;var m=new c.a;return m.margin(0,5,0,0),m.valign="middle",m.width=50,m.align="right",m.textAlign="end",m.applyOnClones=!0,m.states.create("active").properties.fill=n.getFor("disabledBackground"),m.interactionsEnabled=!1,e.valueLabels=new a.e(m),e._disposers.push(new a.c(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",i.states.create("active"),i.setStateOnChildren=!0,e.role="group",e.applyTheme(),e}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),m.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},e.prototype.createDataItem=function(){return new w},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=e.itemContainer,n=e.marker;g.used(e.label);var r=e.valueLabel;i.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var o=e.dataContext.legendSettings,a=e.dataContext;!a.createLegendMarker||this.useDefaultMarker&&a instanceof y.a||e.childrenCreated||(a.createLegendMarker(n),e.childrenCreated=!0),a.updateLegendValue&&a.updateLegendValue(),a.component&&a.component.updateLegendValue&&a.component.updateLegendValue(a),r.invalid&&r.validate(),""==r.currentText||null==r.currentText?r.__disabled=!0:r.__disabled=!1,!o||null==o.itemValueText&&null==o.valueText||(r.__disabled=!1);var s=e.dataContext.visible;void 0===s&&(s=!0),s=m.toBoolean(s),e.dataContext.visible=s,i.events.disableType("toggled"),i.isActive=!s,i.events.enableType("toggled")},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t)&&("left"==t||"right"==t?(this.margin(10,20,10,20),this.valign="middle",this.itemContainers.template.width=Object(p.c)(100),this.valueLabels.template.width=Object(p.c)(100),this.labels.template.truncate=!0,this.labels.template.fullWords=!1):(this.itemContainers.template.width=void 0,this.itemContainers.template.maxWidth=void 0,this.valueLabels.template.width=50,this.labels.template.truncate=!1,this.width=Object(p.c)(100)),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(t){this.setPropertyValue("useDefaultMarker",t,!0)},enumerable:!0,configurable:!0}),e.prototype.toggleDataItem=function(t){var e=t.dataContext;!e.visible||e.isHiding||e instanceof y.a&&e.isHidden?(t.color=t.colorOrig,t.itemContainer.isActive=!1,!0===e.hidden&&(e.hidden=!1),e.show?e.show():e.visible=!0):(t.itemContainer.isActive=!0,e.hide?e.hide():e.visible=!1,t.color=(new f.a).getFor("disabledBackground"))},Object.defineProperty(e.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.handleDataItemPropertyChange=function(t,e){t.valueLabel.invalidate(),t.label.invalidate()},e}(r.a);u.c.registeredClasses.Legend=S,x.c.push({relevant:x.b.widthXS,state:function(t,e){if(t instanceof S&&("left"==t.position||"right"==t.position)){var i=t.states.create(e);return i.properties.position="bottom",i}return null}}),x.c.push({relevant:x.b.heightXS,state:function(t,e){if(t instanceof S&&("top"==t.position||"bottom"==t.position)){var i=t.states.create(e);return i.properties.position="right",i}return null}}),x.c.push({relevant:x.b.isXS,state:function(t,e){if(t instanceof S){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}})},ua0L:function(t,e,i){var n=i("DvJ+"),r=i("kHwJ"),o=i("YEtG")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},"uc+e":function(t,e,i){i("xdw4")("observable")},uqxK:function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=n.key,a=n.set;n.exp({defineMetadata:function(t,e,i,n){a(t,e,r(i),o(n))}})},uuf2:function(t,e,i){var n=i("Gb1H"),r=Math.exp;n(n.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},ux7t:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("m4/l"),r=i("Tjl+"),o=i("aCit"),a=i("x79X"),s=i("vMqJ"),l=i("8ZqG"),c=i("tjMS"),h=i("v9UT"),u=i("0FpR"),d=i("Qkdp"),p=i("Mtpk"),f=function(t){function e(){var e=t.call(this)||this;return e.transitionDuration=0,e.transitionEasing=u.cubicOut,e.properties={},e.propertyFields={},e.filters=new s.b,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new s.c(e.filters)),e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){var t=this;return this._adapterO||(this._adapterO=new a.a(this),this._adapterO.events.on("inserted",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1),this._adapterO.events.on("removed",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),e.prototype.getPropertyValue=function(t){var e=this.properties[t],i=this.sprite;if(i){var n=this.propertyFields[t];if(p.hasValue(n)&&i.dataItem&&(e=i.dataItem.dataContext[n]),p.hasValue(e))this._adapterO&&(e=this._adapterO.apply(t,e));else{var r=i.getPropertyValue(t);(e=this._adapterO?this._adapterO.apply(t,r):r)==r&&(e=void 0)}}return e},e.prototype.copyFrom=function(t){t&&t!=this&&(this.transitionDuration=t.transitionDuration,this.transitionEasing=t.transitionEasing,h.copyProperties(t.properties,this.properties),h.copyProperties(t.propertyFields,this.propertyFields),this.filters.copyFrom(t.filters),t._adapterO&&this.adapter.copyFrom(t._adapterO))},Object.defineProperty(e.prototype,"allValues",{get:function(){var t=this,e={};if(d.each(this.properties,(function(i,n){e[i]=t.getPropertyValue(i)})),this._adapterO){var i=this._adapterO.keys();d.each(i,(function(i,n){var r=t.getPropertyValue(n);e[n]=r}))}var n=this.propertyFields;return d.each(n,(function(i){var n=t.getPropertyValue(i);e[i]=n})),e},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.properties={},this.filters.clear()},e.prototype.processConfig=function(e){p.hasValue(e)&&p.hasValue(e.properties)&&d.each(e.properties,(function(t,i){p.isString(i)&&(i.match(/^[0-9.\-]+\%$/)?e.properties[t]=Object(c.c)(p.toNumber(i)):i.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[t]=Object(l.e)(i)))})),t.prototype.processConfig.call(this,e)},e.prototype.asFunction=function(e){return"transitionEasing"==e||t.prototype.asIs.call(this,e)},e}(r.a);o.c.registeredClasses.SpriteState=f},v36H:function(t,e,i){"use strict";i.d(e,"b",(function(){return w})),i.d(e,"a",(function(){return _}));var n=i("m4/l"),r=i("Uf57"),o=i("Vs7R"),a=i("C6dT"),s=i("vMqJ"),l=i("YOID"),c=i("pR7v"),h=i("KknQ"),u=i("VB2N"),d=i("aCit"),p=i("PTiM"),f=i("p9TX"),g=i("GtDR"),m=i("Wglt"),y=i("Qkdp"),v=i("Mtpk"),b=i("hJ5i"),x=i("TXRX"),w=function(t){function e(){var e=t.call(this)||this;return e.className="LineSeriesDataItem",e}return n.c(e,t),e}(r.b),_=function(t){function e(){var e=t.call(this)||this;return e.minDistance=.5,e.segments=new s.e(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new s.c(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new m.ListIterator(e.segments,(function(){return e.segments.create()})),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.segmentsContainer=e.mainContainer.createChild(a.a),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return n.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},e.prototype.createSegment=function(){return new l.a},e.prototype.createDataItem=function(){return new w},e.prototype.setInitialWorkingValues=function(t){var e=this._yAxis.get(),i=this._xAxis.get();if(this.appeared&&this.visible){var n=this.dataItems.getIndex(t.index-1);if(t.component=this,this.baseAxis==i&&e instanceof c.a){var r=e.minZoomed;n&&(r=n.values.valueY.workingValue),t.setWorkingValue("valueY",r,0),t.setWorkingValue("valueY",t.values.valueY.value),i instanceof h.a&&(t.setWorkingLocation("dateX",t.locations.dateX-1,0),t.setWorkingLocation("dateX",t.locations.dateX))}if(this.baseAxis==e&&i instanceof c.a){var o=i.minZoomed;n&&(o=n.values.valueX.workingValue),t.setWorkingValue("valueX",o,0),t.setWorkingValue("valueX",t.values.valueX.value),e instanceof h.a&&(t.setWorkingLocation("dateY",t.locations.dateX-1,0),t.setWorkingLocation("dateY",t.locations.dateY))}}else this.baseAxis==i&&e instanceof c.a&&(i instanceof h.a&&t.setWorkingLocation("dateX",t.locations.dateX),i instanceof u.a&&t.setWorkingLocation("categoryX",t.locations.categoryX)),this.baseAxis==e&&i instanceof c.a&&(e instanceof h.a&&t.setWorkingLocation("dateY",t.locations.dateY),e instanceof u.a&&t.setWorkingLocation("categoryY",t.locations.categoryY))},e.prototype.updateLegendValue=function(e,i){t.prototype.updateLegendValue.call(this,e,i),e&&e.segment&&(this.tooltipColorSource=e.segment)},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),m.each(this.axisRanges.iterator(),(function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)})),m.each(this._segmentsIterator.iterator(),(function(t){t.__disabled=!0})))},e.prototype.sliceData=function(){for(var t=this.startIndex,e=this.endIndex,i=this.startIndex-1;i>=0;i--)if((r=this.dataItems.getIndex(i))&&r.hasValue(this._xValueFields)&&r.hasValue(this._yValueFields)){t=i;break}this._adjustedStartIndex=this.findAdjustedIndex(t,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]),i=this.endIndex;for(var n=this.dataItems.length;i<n;i++){var r;if((r=this.dataItems.getIndex(i))&&r.hasValue(this._xValueFields)&&r.hasValue(this._yValueFields)){e=i+1;break}}this._workingStartIndex=t,this._workingEndIndex=e},e.prototype.findAdjustedIndex=function(t,e){var i=this,n=this.propertyFields,r=t;return b.each(e,(function(e){if(v.hasValue(n[e]))for(var o=r;o>=0;o--){var a=i.dataItems.getIndex(o);if(a&&v.hasValue(a.properties[e])){t>o&&(t=o);break}}})),t},e.prototype.openSegmentWrapper=function(t,e){var i={index:t,axisRange:e};do{i=this.openSegment(i.index,i.axisRange)}while(i)},e.prototype.openSegment=function(t,e){var i=!1,n=[];t=Math.min(t,this.dataItems.length);var r,a=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var s=!1,l=this._segmentsIterator.getFirst();l.__disabled=!1,e?(l.parent=e.contents,y.copyProperties(e.contents,l,o.b)):(y.copyProperties(this,l,o.b),l.filters.clear(),l.parent=this.segmentsContainer);for(var c=this.connect,u=!1,d=t;d<a;d++){var p=this.dataItems.getIndex(d);if(p.segment=l,p.hasProperties&&(d==t?this.updateSegmentProperties(p.properties,l):s=this.updateSegmentProperties(p.properties,l,!0)),p.hasValue(this._xValueFields)&&p.hasValue(this._yValueFields))this.addPoints(n,p,this.xField,this.yField),u=!0;else{if(d==t)continue;if(!c&&u){r=d;break}}if(r=d,this.baseAxis instanceof h.a){var f=this.dataItems.getIndex(d+1);if(f&&this.baseAxis.makeGap(f,p)){i=!0;break}}if(s)break}return this.closeSegment(l,n,t,r,e,i)},e.prototype.addPoints=function(t,e,i,n,r){var o=this.getPoint(e,i,n,e.workingLocations[i],e.workingLocations[n]);r||(e.point=o),t.push(o)},e.prototype.closeSegment=function(t,e,i,n,r,o){var a=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var s=n;s>=i;s--){var l=this.dataItems.getIndex(s);l.hasValue(this._xValueFields)&&l.hasValue(this._yValueFields)&&this.addPoints(a,l,this.xOpenField,this.yOpenField,!0)}else{var c=this.baseAxis,h=e.length,u=this.xAxis,d=this.yAxis;h>0&&(c==u?(a.push({x:e[h-1].x,y:d.basePoint.y}),a.push({x:e[0].x,y:d.basePoint.y})):(a.push({x:u.basePoint.x,y:e[h-1].y}),a.push({x:u.basePoint.x,y:e[0].y})))}return this.drawSegment(t,e,a),o&&n++,n<this._workingEndIndex-1?{index:n,axisRange:r}:null},e.prototype.drawSegment=function(t,e,i){t.drawSegment(e,i,this.tensionX,this.tensionY)},e.prototype.updateSegmentProperties=function(t,e,i){var n=!1;return y.each(t,(function(t,r){if(v.hasValue(r)){var o=e[t],a=void 0;o&&(a=o.toString?o.toString():o);var s=void 0;r&&(s=r.toString?r.toString():r),o==r||null!=a&&null!=s&&a==s||(i||(e[t]=r),n=!0)}})),n},Object.defineProperty(e.prototype,"connect",{get:function(){return this.getPropertyValue("connect")},set:function(t){this.setPropertyValue("connect",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=this,i=t.pixelWidth,n=t.pixelHeight;t.disposeChildren();var r=t.createChild(p.a);if(r.shouldClone=!1,y.copyProperties(this,r,o.b),r.x2=i,r.y=n/2,r.visible=!0,this.fillOpacity>0){var s=t.createChild(g.a);y.copyProperties(this,s,o.b),s.width=i,s.height=n,s.y=0,s.strokeOpacity=0,s.visible=!0,r.y=0}var l=t.dataItem;l.color=this.stroke,l.colorOrig=this.fill,m.eachContinue(this.bullets.iterator(),(function(r){if(r instanceof x.a&&!r.copyToLegendMarker)return!1;var o=!1;if(r instanceof a.a&&m.each(r.children.iterator(),(function(t){if(t instanceof f.a)return o=!0,!0})),!o){var s=r.clone();return s.parent=t,s.isMeasured=!0,s.tooltipText=void 0,s.x=i/2,e.fillOpacity>0?s.y=0:s.y=n/2,s.visible=!0,v.hasValue(s.fill)||(s.fill=e.fill),v.hasValue(s.stroke)||(s.stroke=e.stroke),!1}}))},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(e.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(t){this.setPropertyValue("autoGapCount",t,!0)},enumerable:!0,configurable:!0}),e}(r.a);d.c.registeredClasses.LineSeries=_,d.c.registeredClasses.LineSeriesDataItem=w},v9UT:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.used=function(t){},e.copyProperties=function(t,e){return c.each(t,(function(t,i){a.hasValue(i)&&(e[t]=i)})),e},e.stripHash=u,e.getBaseURI=function(){var t="#";if(Object(r.b)()){var e=document.baseURI;if(e){e=u(e);var i=u(location.href);e!==i&&(t=i+t)}}return t},e.softCopyProperties=function(t,e){return c.each(t,(function(t,i){a.hasValue(i)&&!a.hasValue(e[t])&&(e[t]=i)})),e},e.copy=function(t,e){return c.each(t,(function(t,i){e[t]=i})),e},e.isNotEmpty=function(t){return a.hasValue(t)&&""!==t.toString()},e.relativeToValue=function(t,e){return a.isNumber(t)?t:null!=t&&a.isNumber(t.value)&&a.isNumber(e)?e*t.value:0},e.relativeRadiusToValue=function(t,e,i){var n;return a.isNumber(t)?(n=t)<0&&(n=i?e+n:e-n):null!=t&&a.isNumber(t.value)&&(n=e*t.value),n},e.valueToRelative=function(t,e){return t instanceof n.a?t.value:t/e},e.getPixelRatio=function(){return window.devicePixelRatio||1},e.camelToDashed=function(t){return t.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()},e.capitalize=function(t){var e=t.split("");return e[0]=e[0].toUpperCase(),e.join("")},e.stringify=function(t){return JSON.stringify(t)},e.escapeForRgex=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},e.splitTextByCharCount=d,e.truncateWithEllipsis=function(t,e,i,n,r){return t.length<=e?t:((e-=i.length)<1&&(e=1),(d(t,e,n,r)[0]||"")+i)},e.trim=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.rtrim=function(t){return t.replace(/[\s\uFEFF\xA0]+$/g,"")},e.ltrim=function(t){return t.replace(/^[\s\uFEFF\xA0]+/g,"")},e.reverseString=p,e.unquote=function(t){var e=t.trim();return(e=t.replace(/^'(.*)'$/,"$1"))==t&&(e=t.replace(/^"(.*)"$/,"$1")),e},e.padString=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i="0"),"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t},e.getFormat=function(t){if(void 0===t)return l.g;var e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:t===l.c?l.c:t===l.a?l.a:t===l.b?l.b:t.match(/[#0]/)?l.c:t.match(/[ymwdhnsqaxkzgtei]/)?l.a:l.g},e.cleanFormat=function(t){return t.replace(/\/(date|number|duration)$/i,"")},e.stripTags=f,e.plainText=function(t){return t?f(t.replace(/[\n\r]+/g,". ")):t},e.numberToString=function(t){if(a.isNaN(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";var e=t<0;t=Math.abs(t);var i,n=a.getValue(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t)),r=n[1],o=n[2]||"";if(null==n[3])i=""===o?r:r+"."+o;else{var l=+n[3];if(t<1){var c=l-1;i="0."+s.repeat("0",c)+r+o}else{i=0===(c=l-o.length)?r+o:c<0?r+o.slice(0,c)+"."+o.slice(c):r+o+s.repeat("0",c)}}return e?"-"+i:i},e.anyToDate=function(t){if(a.isDate(t))return new Date(t);if(a.isNumber(t))return new Date(t);var e=Number(t);return a.isNumber(e)?new Date(e):new Date(t)},e.anyToNumber=function(t){if(a.isDate(t))return t.getTime();if(a.isNumber(t))return t;if(a.isString(t)){var e=Number(t);return a.isNumber(e)?e:void 0}},e.getYearDay=g,e.getWeek=m,e.getMonthWeek=function(t,e){void 0===e&&(e=!1);var i=m(new Date(t.getFullYear(),t.getMonth(),1),e),n=m(t,e);return 1==n&&(n=53),n-i+1},e.getDayFromWeek=function(t,e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);var r=new Date(e,0,4,0,0,0,0);return n&&r.setUTCFullYear(e),7*t+i-((r.getDay()||7)+3)},e.get12Hours=function(t,e){return t>12?t-=12:0===t&&(t=12),a.hasValue(e)?t+(e-1):t},e.getTimeZone=function(t,e,i,n){if(void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),n)return e?"Coordinated Universal Time":"UTC";var r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),o},e.random=function(t,e){return Math.floor(Math.random()*e)+t},e.fitNumber=function(t,e,i){return t>i?i:t<e?e:t},e.fitNumberRelative=function(t,e,i){var n=i-e;return(t>i||t<e)&&(t=e+(t-n*Math.floor(t/n))),t},e.svgPointToSprite=y,e.spritePointToSvg=v,e.spritePointToSprite=function(t,e,i){return y(v(t,e),i)},e.svgRectToSprite=function(t,e){var i=y(t,e),n=y({x:t.x+t.width,y:t.y+t.height},e);return{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}},e.spriteRectToSvg=function(t,e){var i=v(t,e),n=v({x:t.x+t.width,y:t.y+t.height},e);return{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}},e.documentPointToSvg=b,e.svgPointToDocument=x,e.documentPointToSprite=function(t,e){return e&&e.htmlContainer?y(b(t,a.getValue(e.htmlContainer),e.svgContainer.cssScale),e):t},e.spritePointToDocument=function(t,e){return e&&e.htmlContainer?x(v(t,e),a.getValue(e.htmlContainer)):t},e.width=function(t){var e=getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),n=parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth);return t.clientWidth-i-n},e.height=function(t){var e=getComputedStyle(t),i=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),n=parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth);return t.clientHeight-i-n},e.decimalPlaces=function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},e.parseUrl=_,e.serializeUrl=S,e.joinUrl=function(t,e){var i=_(t),n=_(e);if(P(i))throw new Error("Left URL is not absolute");if(P(n)){if(""!==n.path)if("/"===n.path[0])i.path=n.path;else{var r=i.path.split(/\//),o=n.path.split(/\//);if(0===r.length?0!==o.length&&r.push(""):r.length>1&&r.pop(),h.pushAll(r,o),i.path=r.join("/"),""!==i.path&&"/"!==i.path[0])throw new Error("URL path must start with /")}return i.query=n.query,i.hash=n.hash,S(i)}return S(n)},e.isIE=function(){return!!window.MSInputMethodContext&&!!document.documentMode};var n=i("tjMS"),r=i("LBDG"),o=i("Gg2j"),a=i("Mtpk"),s=i("wUYf"),l=i("ScGY"),c=i("Qkdp"),h=i("hJ5i");function u(t){return/^[^#]*/.exec(t)[0]}function d(t,e,i,n){if(t.length<=e)return[t];var r=[];if(i)for(var o=-1,a=t.replace(/([,;:!?\\\/\.\s]+)/g,l.d+"$1"+l.d).split(l.d),s=0;s<a.length;s++){var c=a[s],h=c.length;if(0!==h){var u;if(h>e){if(n&&(c=p(c)),u=c.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(var d=0;d<u.length;d++)u[d]=p(u[d]);r=r.concat(u)}}else-1===o&&(r.push(""),o=0),r[o].length+h+1>e&&""!==r[o]&&(r.push(""),o++),r[o]+=c;o=r.length-1}}else if(u=t.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(d=0;d<u.length;d++)u[d]=p(u[d]);r=u}return 1==r.length&&i&&r[0].length>e&&(r=[]),r}function p(t){return t.split("").reverse().join("")}function f(t){return t?t.replace(/<[^>]*>/g,""):t}function g(t,e){void 0===e&&(e=!1);var i=new Date(t.getFullYear(),0,1,0,0,0,0);return Math.floor((t.getTime()-i.getTime())/864e5)+1}function m(t,e){void 0===e&&(e=!1);var i=g(t,e)-1,n=Math.floor((i-(t.getDay()||7)+10)/7);return 0===n?n=53:53===n&&(n=1),n}function y(t,e){var i=t.x,n=t.y,r=[];if(e){for(;a.hasValue(e.parent);)r.push(e),e=e.parent;r.reverse();for(var s=0;s<r.length;s++){var l=r[s],c=l.rotation,h=i-l.pixelX-l.ex,u=n-l.pixelY-l.ey;l.dx&&(i-=l.dx),l.dy&&(n-=l.dy);var d=l.scale;l.group&&(d=l.group.scale),i=(o.cos(-c)*h-o.sin(-c)*u)/d-l.pixelPaddingLeft,n=(o.cos(-c)*u+o.sin(-c)*h)/d-l.pixelPaddingTop}}return{x:i,y:n}}function v(t,e){var i=t.x,n=t.y;if(e)for(;a.hasValue(e.parent);){var r=e.rotation;i+=e.pixelPaddingLeft+e.ex,n+=e.pixelPaddingTop+e.ey,e.dx&&(i+=e.dx),e.dy&&(n+=e.dy);var s=e.scale;e.group&&(s=e.group.scale);var l=e.pixelX+(i*o.cos(r)-n*o.sin(r))*s,c=e.pixelY+(i*o.sin(r)+n*o.cos(r))*s;i=l,n=c,e=e.parent}return{x:i,y:n}}function b(t,e,i){try{var n=e.getBoundingClientRect();return a.isNumber(i)||(i=1),{x:(t.x-n.left)/i,y:(t.y-n.top)/i}}catch(e){return t}}function x(t,e){try{var i=e.getBoundingClientRect();return{x:t.x+i.left,y:t.y+i.top}}catch(e){return t}}var w=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function _(t){var e=w.exec(t);return{protocol:e&&e[1]||"",separator:e&&e[2]||"",authority:e&&e[3]||"",domain:e&&e[4]||"",port:e&&e[5]||"",path:e&&e[6]||"",query:e&&e[7]||"",hash:e&&e[8]||""}}function S(t){return t.protocol+t.separator+t.authority+t.domain+t.port+t.path+t.query+t.hash}function P(t){return""===t.protocol&&""===t.separator&&""===t.authority&&""===t.domain&&""===t.port}},vDrc:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("vJiZ"),o=i("DbOM"),a=i("hjwn");i("gD3S")&&n(n.P+i("3/+B"),"Object",{__defineGetter__:function(t,e){a.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},vFXE:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("T9LF"),o=i("G5U1"),a=i("RzG0")(),s=i("YEtG")("observable"),l=i("DbOM"),c=i("snR7"),h=i("ypVE"),u=i("cA+3"),d=i("Vng0"),p=i("hpnp"),f=p.RETURN,g=function(t){return null==t?void 0:l(t)},m=function(t){var e=t._c;e&&(t._c=void 0,e())},y=function(t){return void 0===t._o},v=function(t){y(t)||(t._o=void 0,m(t))},b=function(t,e){c(t),this._c=void 0,this._o=t,t=new x(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:l(i),this._c=i)}catch(e){return void t.error(e)}y(this)&&m(this)};b.prototype=u({},{unsubscribe:function(){v(this)}});var x=function(t){this._s=t};x.prototype=u({},{next:function(t){var e=this._s;if(!y(e)){var i=e._o;try{var n=g(i.next);if(n)return n.call(i,t)}catch(t){try{v(e)}finally{throw t}}}},error:function(t){var e=this._s;if(y(e))throw t;var i=e._o;e._o=void 0;try{var n=g(i.error);if(!n)throw t;t=n.call(i,t)}catch(t){try{m(e)}finally{throw t}}return m(e),t},complete:function(t){var e=this._s;if(!y(e)){var i=e._o;e._o=void 0;try{var n=g(i.complete);t=n?n.call(i,t):void 0}catch(t){try{m(e)}finally{throw t}}return m(e),t}}});var w=function(t){h(this,w,"Observable","_f")._f=l(t)};u(w.prototype,{subscribe:function(t){return new b(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||r.Promise)((function(i,n){l(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),r.unsubscribe()}},error:n,complete:i})}))}}),u(w,{from:function(t){var e="function"==typeof this?this:w,i=g(c(t)[s]);if(i){var n=c(i.call(t));return n.constructor===e?n:new e((function(t){return n.subscribe(t)}))}return new e((function(e){var i=!1;return a((function(){if(!i){try{if(p(t,!1,(function(t){if(e.next(t),i)return f}))===f)return}catch(t){if(i)throw t;return void e.error(t)}e.complete()}})),function(){i=!0}}))},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:w)((function(t){var e=!1;return a((function(){if(!e){for(var n=0;n<i.length;++n)if(t.next(i[n]),e)return;t.complete()}})),function(){e=!0}}))}}),d(w.prototype,s,(function(){return this})),n(n.G,{Observable:w}),i("vdWU")("Observable")},vH9k:function(t,e,i){i("YJIw")("Int32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},vJiZ:function(t,e,i){var n=i("kcsd");t.exports=function(t){return Object(n(t))}},vMqJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"d",(function(){return c})),i.d(e,"c",(function(){return h})),i.d(e,"b",(function(){return d})),i.d(e,"e",(function(){return p}));var n=i("m4/l"),r=i("hD5A"),o=i("o0Lc"),a=i("hJ5i"),s=i("Wglt"),l=function(){function t(t,e,i){this._array=t,this._start=e,this._end=i}return t.prototype.iterator=function(){var t=this;return function(e){if(t._start!==t._end)if(t._start<t._end)for(var i=t._start;i<t._end&&e(t._array[i]);++i);else for(i=t._start-1;i>=t._end&&e(t._array[i]);--i);}},t.prototype.backwards=function(){return new t(this._array,this._end,this._start)},t.prototype.range=function(e,i){if(e<=i){if(this._start===this._end)return this;if(this._start<this._end){var n=i-e;return e=Math.max(this._start+e,this._start),i=Math.min(e+n,this._end),new t(this._array,e,i)}return n=i-e,e=Math.max(this._start-e,this._end),i=Math.max(e-n,this._end),new t(this._array,e,i)}throw new Error("Start index must be lower than end index")},t}(),c=function(t){function e(e,i,n){var r=t.call(this,[e.events.on("inserted",(function(t){var i=t.newValue,n=r._getKey(i),o=0;s.eachContinue(e.iterator(),(function(t){return t!==i&&(r._getKey(t)===n&&++o,!0)})),r._insert(i,n,o)}),void 0,!1),e.events.on("removed",(function(t){r._remove(t.oldValue)}),void 0,!1)])||this;return r._keys=[],r._groups={},r._getKey=i,r._sort=n,s.each(e.iterator(),(function(t){r._insert(t,i(t))})),r}return n.c(e,t),e.prototype._insert=function(t,e,i){if(null==this._groups[e]){this._groups[e]=[];var n=a.getSortedIndex(this._keys,this._sort,e),r=n.found,o=n.index;if(r)throw new Error("Key already exists: "+e);a.insertIndex(this._keys,o,e)}null==i?this._groups[e].push(t):a.insertIndex(this._groups[e],i,t)},e.prototype._remove=function(t){var e=this._getKey(t),i=this._groups[e];if(null!=i&&(a.remove(i,t),0===i.length)){delete this._groups[e];var n=a.getSortedIndex(this._keys,this._sort,e),r=n.found,o=n.index;if(!r)throw new Error("Key doesn't exist: "+e);a.removeIndex(this._keys,o)}},e.prototype.iterator=function(){var t=this;return s.flatten(s.map(s.fromArray(this._keys),(function(e){return s.fromArray(t._groups[e])})))},e}(r.c),h=function(t){function e(e){var i=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);return t.call(this,(function(){i.dispose(),s.each(e.iterator(),(function(t){t.dispose()}))}))||this}return n.c(e,t),e}(r.b);function u(t,e){if(!(t>=0&&t<e))throw new Error("Index out of bounds: "+t)}var d=function(){function t(t){void 0===t&&(t=[]),this.events=new o.a,this._values=t}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return-1!==this._values.indexOf(t)},t.prototype.removeValue=function(t){for(var e=0,i=this._values.length;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e},t.prototype.indexOf=function(t){return a.indexOf(this._values,t)},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.hasIndex=function(t){return t>=0&&t<this._values.length},t.prototype.getIndex=function(t){return this._values[t]},t.prototype.setIndex=function(t,e){u(t,this._values.length);var i=this._values[t];return i!==e&&(this._values[t]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),i},t.prototype.insertIndex=function(t,e){u(t,this._values.length+1),a.insertIndex(this._values,t,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},t.prototype._sortQuicksort=function(t,e,i){if(t<e){var n=this._sortPartition(t,e,i);this._sortQuicksort(t,n,i),this._sortQuicksort(n+1,e,i)}},t.prototype._sortPartition=function(t,e,i){for(var n=this._values,r=n[t],o=t-1,a=e+1;;){do{++o}while(i(n[o],r)<0);do{--a}while(i(n[a],r)>0);if(o>=a)return a;this.swap(o,a)}},t.prototype.sort=function(t){this._sortQuicksort(0,this._values.length-1,t)},t.prototype.swap=function(t,e){var i=this._values.length;if(u(t,i),u(e,i),t!==e){var n=this._values[t],r=this._values[e];this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:n,newValue:r}),this._values[e]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:n})}},t.prototype.removeIndex=function(t){u(t,this._values.length);var e=this._values[t];return a.removeIndex(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},t.prototype.moveValue=function(t,e){var i=this.indexOf(t);if(-1!==i){var n=this._values[i];a.removeIndex(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:n})}null==e?(e=this._values.length,this._values.push(t)):a.insertIndex(this._values,e,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),-1===i&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},t.prototype.push=function(t){var e=this._values.push(t)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t}),t},t.prototype.unshift=function(t){this.insertIndex(0,t)},t.prototype.pushAll=function(t){var e=this;a.each(t,(function(t){e.push(t)}))},t.prototype.copyFrom=function(t){this.pushAll(t._values)},t.prototype.pop=function(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)},t.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},t.prototype.setAll=function(t){var e=this,i=a.copy(this._values);this._values.length=0,a.each(t,(function(t){e._values.push(t)})),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:i,newArray:this._values}),this.events.isEnabled("removed")&&a.each(i,(function(t){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:t})})),this.events.isEnabled("inserted")&&a.each(this._values,(function(t){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:t})}))},t.prototype.clear=function(){this.setAll([])},t.prototype.iterator=function(){return s.fromArray(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return n.d(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){a.each(this._values,t)},t.prototype.range=function(t,e){if(t<=e){var i=e-t;return t=Math.max(t,0),e=Math.min(t+i,this._values.length),new l(this._values,t,e)}throw new Error("Start index must be lower than end index")},t.prototype.backwards=function(){return new l(this._values,this._values.length,0)},t}(),p=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return n.c(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;s.each(t.iterator(),(function(t){e.push(t.clone())}))},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.push(e),e},e.prototype.clone=function(){for(var t=new e(this.template),i=this.values,n=i.length,r=0;r<n;++r)t.push(i[r].clone());return t},e}(d)},vSjZ:function(t,e,i){var n=i("T9LF").navigator;t.exports=n&&n.userAgent||""},vaBr:function(t,e,i){"use strict";var n=i("0YcW"),r=i("rFJX");i("/Xnt")("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(r(this,"WeakSet"),t,!0)}},n,!1,!0)},vbOF:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("m4/l"),r=i("YotE"),o=i("Tjl+"),a=i("vMqJ"),s=i("+qIf"),l=i("zhwk"),c=i("Mtpk"),h=function(t){function e(e){var i=t.call(this)||this;return i._eventDispatcher=new r.a(i),i.eventDisposers=new s.a,i.replacedStyles=new s.a,i._clickable=!1,i._contextMenuDisabled=!1,i._hoverable=!1,i._trackable=!1,i._draggable=!1,i._swipeable=!1,i._resizable=!1,i._wheelable=!1,i._inert=!1,i._isHover=!1,i._isHoverByTouch=!1,i._isDown=!1,i._isFocused=!1,i._isTouchProtected=!1,i._inertiaOptions=new s.a,i.inertias=new s.a,i._hitOptions={},i._hoverOptions={},i._swipeOptions={},i._keyboardOptions={},i._mouseOptions={},i._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},i._disposers.push(i._eventDispatcher),i._element=e,i.className="InteractionObject",i._disposers.push(new s.b(i.inertias)),i._disposers.push(new s.b(i.eventDisposers)),i.applyTheme(),i}return n.c(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHover",{get:function(){return this._isHover},set:function(t){this.isHover!=t&&(this._isHover=t,t?Object(l.b)().overObjects.moveValue(this):Object(l.b)().overObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(t){this.isHoverByTouch!=t&&(this._isHoverByTouch=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new a.b),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return this._isDown},set:function(t){this.isDown!=t&&(this._isDown=t,t?Object(l.b)().downObjects.moveValue(this):Object(l.b)().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new a.b),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(t){this.isFocused!=t&&(this._isFocused=t,Object(l.b)().focusedObject=t?this:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(t){this._isTouchProtected!=t&&(this._isTouchProtected=t,t?Object(l.b)().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&Object(l.b)().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clickable",{get:function(){return this._clickable},set:function(t){this._clickable!==t&&(this._clickable=t,Object(l.b)().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(t){this._contextMenuDisabled!==t&&(this._contextMenuDisabled=t,Object(l.b)().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this._hoverable},set:function(t){this._hoverable!==t&&(this._hoverable=t,Object(l.b)().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this._trackable},set:function(t){this._trackable!==t&&(this._trackable=t,Object(l.b)().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(t){this._draggable!==t&&(this._draggable=t,Object(l.b)().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this._swipeable},set:function(t){this._swipeable!==t&&(this._swipeable=t,Object(l.b)().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this._resizable},set:function(t){this._resizable!==t&&(this._resizable=t,Object(l.b)().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this._wheelable},set:function(t){this._wheelable!==t&&(this._wheelable=t,Object(l.b)().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inert",{get:function(){return this._inert},set:function(t){this._inert!==t&&(this._inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this._focusable},set:function(t){this._focusable!==t&&(this._focusable=t,this._focusable&&-1==this.tabindex&&(this._tabindex=1),Object(l.b)().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return c.getValueDefault(this._tabindex,-1)},set:function(t){this._tabindex!==t&&(this._tabindex=t,t>-1&&(this.focusable=!0),Object(l.b)().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this._element=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(t){this._originalPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalScale",{get:function(){return c.getValueDefault(this._originalScale,1)},set:function(t){this._originalScale!==t&&(this._originalScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalAngle",{get:function(){return c.getValueDefault(this._originalAngle,0)},set:function(t){this._originalAngle!==t&&(this._originalAngle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(t){this._inertiaOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(t){this._hitOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(t){this._hoverOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(t){this._swipeOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(t){this._keyboardOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(t){this._mouseOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(t){this._cursorOptions=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,Object(l.b)().applyCursorOverStyle(this)},e.prototype.setEventDisposer=function(t,e,i){var n=this.eventDisposers.getKey(t);e?null==n&&this.eventDisposers.setKey(t,i()):null!=n&&(n.dispose(),this.eventDisposers.removeKey(t))},e.prototype.dispose=function(){t.prototype.dispose.call(this);var e=Object(l.b)();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},e}(o.b)},vdWU:function(t,e,i){"use strict";var n=i("T9LF"),r=i("hjwn"),o=i("gD3S"),a=i("YEtG")("species");t.exports=function(t){var e=n[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},vsTS:function(t,e,i){var n=i("hjwn"),r=i("nHHr"),o=i("K0ev"),a=i("U3hN"),s=i("Gb1H"),l=i("Wbjh"),c=i("snR7"),h=i("DvJ+");s(s.S,"Reflect",{set:function t(e,i,s){var u,d,p=arguments.length<4?e:arguments[3],f=r.f(c(e),i);if(!f){if(h(d=o(e)))return t(d,i,s,p);f=l(0)}if(a(f,"value")){if(!1===f.writable||!h(p))return!1;if(u=r.f(p,i)){if(u.get||u.set||!1===u.writable)return!1;u.value=s,n.f(p,i,u)}else n.f(p,i,l(0,s));return!0}return void 0!==f.set&&(f.set.call(p,s),!0)}})},w1yl:function(t,e,i){var n=i("YEtG")("toPrimitive"),r=Date.prototype;n in r||i("Vng0")(r,n,i("kJ6f"))},w4m0:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("m4/l"),r=i("GtDR"),o=i("aFzC"),a=i("hGwe"),s=function(t){function e(){var e=t.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return n.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight;if(e>0&&i>0){var n={x:0,y:0},r={x:e,y:0},s={x:e,y:i},l={x:0,y:i},c=Math.min(e,this.waveLength),h=Math.min(i,this.waveHeight),u=Math.min(i,this.waveLength),d=Math.min(e,this.waveHeight),p="",f="",g="",m="";this.wavedTop&&(p=Object(o.c)(n,r,c,h,this.tension,!0)),this.wavedRight&&(f=Object(o.c)(r,s,u,d,this.tension,!0)),this.wavedBottom&&(g=Object(o.c)(s,l,c,h,this.tension,!0)),this.wavedLeft&&(m=Object(o.c)(l,n,u,d,this.tension,!0)),this.path=a.moveTo(n)+p+a.lineTo(r)+f+a.lineTo(s)+g+a.lineTo(l)+m+"z"}},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.setWavedSides=function(t,e,i,n){this.wavedTop=t,this.wavedRight=e,this.wavedBottom=i,this.wavedLeft=n},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(t){this.setPropertyValue("wavedRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(t){this.setPropertyValue("wavedLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(t){this.setPropertyValue("wavedTop",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(t){this.setPropertyValue("wavedBottom",t,!0)},enumerable:!0,configurable:!0}),e}(r.a)},wDk4:function(t,e,i){var n=i("T9LF"),r=i("Vng0"),o=i("U3hN"),a=i("7bL/")("src"),s=i("+BwA"),l=(""+s).split("toString");i("G5U1").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,i,s){var c="function"==typeof i;c&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(c&&(o(i,a)||r(i,a,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},wUYf:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.order=function(t,e){return t===e?0:t<e?-1:1},e.repeat=function(t,e){return new Array(e+1).join(t)},e.random=function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*i.length));return e}},wYgt:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},wdkS:function(t,e,i){var n=i("Gb1H"),r=i("+6ht"),o=i("EhJv"),a=i("nHHr"),s=i("e8Nv");n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=o(t),l=a.f,c=r(n),h={},u=0;c.length>u;)void 0!==(i=l(n,e=c[u++]))&&s(h,e,i);return h}})},x2K9:function(t,e,i){"use strict";var n=i("snR7");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},x79X:function(t,e,i){"use strict";i.d(e,"b",(function(){return c})),i.d(e,"c",(function(){return h})),i.d(e,"a",(function(){return u}));var n=i("VGgz"),r=i("3Cxr"),o=i("MlsF"),a=i("Wglt"),s=i("hJ5i"),l=i("Mtpk"),c=function(){function t(){this._callbackId=0,this._callbacks=new n.c((function(t,e){return o.a(r.order(t.priority,e.priority),r.order(t.id,e.id))}))}return t.prototype.addAll=function(t,e,i,n,r){void 0===n&&(n=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:i,priority:n,scope:r,type:t})},t.prototype.isEnabled=function(t,e){return this._callbacks.length>0},t.prototype.applyAll=function(t,e,i){var n=this._callbacks.values,r=n.length;if(0==r)return i;for(var o=0;o<r;++o){var a=n[o];a.key===e&&t instanceof a.type&&(i=a.callback.call(a.scope,i,t,e))}return i},t}(),h=new c,u=function(){function t(t){this._callbackId=0,this._callbacks=new n.c((function(t,e){return o.a(r.order(t.priority,e.priority),r.order(t.id,e.id))})),this.object=t,this.events=this._callbacks.events}return t.prototype.add=function(t,e,i,n){void 0===i&&(i=0),this._callbacks.insert({id:++this._callbackId,key:t,callback:e,priority:i,scope:n})},t.prototype.has=function(t,e,i,n){return void 0===i&&(i=0),a.contains(this._callbacks.iterator(),(function(r){return r.key===t&&r.callback===e&&r.priority===i&&r.scope===n}))},t.prototype.remove=function(t,e){var i=this;s.each(a.toArray(this._callbacks.iterator()),(function(n){n.key!==t||l.isNumber(e)&&e!==n.priority||i._callbacks.remove(n)}))},t.prototype.isEnabled=function(t){return this._callbacks.length>0||h.isEnabled(this.object,t)},t.prototype.apply=function(t,e){var i=this._callbacks.values,n=i.length;if(n>0)for(var r=0;r<n;++r){var o=i[r];o.key===t&&(e=o.callback.call(o.scope,e,this.object,t))}return h.applyAll(this.object,t,e)},t.prototype.keys=function(){return a.toArray(a.map(this._callbacks.iterator(),(function(t){return t.key})))},t.prototype.copyFrom=function(t){var e=this;a.each(t._callbacks.iterator(),(function(t){e.add(t.key,t.callback,t.priority,t.scope)}))},t.prototype.clear=function(){this._callbacks.clear()},t}()},xCMl:function(t,e,i){"use strict";var n=i("hgv4"),r=i("rFJX");t.exports=i("/Xnt")("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(r(this,"Set"),t=0===t?0:t,t)}},n)},xDSx:function(t,e,i){var n=i("DvJ+"),r=i("kFp5").onFreeze;i("5lay")("freeze",(function(t){return function(e){return t&&n(e)?t(r(e)):e}}))},xEZ5:function(t,e,i){"use strict";i("Mvcd")("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},xIv9:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("aGXA"),o=i("Vs7R"),a=i("MIZb"),s=i("aCit"),l=i("hGwe"),c=function(t){function e(){var e=t.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var i=new o.a;i.element=e.paper.add("path");var n=l.moveTo({x:-2,y:-6});return n+=l.lineTo({x:-2,y:6}),n+=l.moveTo({x:2,y:-6}),n+=l.lineTo({x:2,y:6}),i.path=n,i.pixelPerfect=!0,i.padding(0,4,0,4),i.stroke=(new a.a).getFor("alternativeText"),i.strokeOpacity=.7,e.icon=i,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return n.c(e,t),Object.defineProperty(e.prototype,"orientation",{set:function(t){var e=this.icon;e&&(e.rotation="horizontal"==t?0:-90)},enumerable:!0,configurable:!0}),e}(r.a);s.c.registeredClasses.ResizeButton=c},xSzy:function(t,e,i){for(var n,r=i("T9LF"),o=i("Vng0"),a=i("7bL/"),s=a("typed_array"),l=a("view"),c=!(!r.ArrayBuffer||!r.DataView),h=c,u=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");u<9;)(n=r[d[u++]])?(o(n.prototype,s,!0),o(n.prototype,l,!0)):h=!1;t.exports={ABV:c,CONSTR:h,TYPED:s,VIEW:l}},xdw4:function(t,e,i){var n=i("T9LF"),r=i("G5U1"),o=i("pb4Y"),a=i("xxwE"),s=i("hjwn").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},xgTw:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("m4/l"),r=i("jfaP"),o=i("aCit"),a=i("Gg2j"),s=i("Mtpk"),l=i("hGwe"),c=function(t){function e(){var e=t.call(this)||this;return e.className="Polyspline",e.tensionX=.5,e.tensionY=.5,e.applyTheme(),e}return n.c(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments,e=this.tensionX,i=this.tensionY;if(this.allPoints=[],t&&t.length>0){var n="";this._realSegments=[];for(var r=0,o=t.length;r<o;r++){var s=t[r],c=[];if(this._realSegments.push(c),s.length>0){var h=s[0],u=s[s.length-1],d=!1;a.round(h.x,3)==a.round(u.x)&&a.round(h.y)==a.round(u.y)&&(d=!0),n+=l.moveTo(s[0]);for(var p=0;p<s.length-1;p++){var f=s[p-1],g=s[p],m=s[p+1],y=s[p+2];0===p?f=s[p]:p==s.length-2&&(y=s[p+1]),y||(y=m),0===p?f=d?s[s.length-2]:s[r]:p==s.length-2&&(y=d?s[1]:s[p+1]);var v=a.getCubicControlPointA(f,g,m,y,e,i),b=a.getCubicControlPointB(f,g,m,y,e,i);n+=l.cubicCurveTo(m,v,b);var x=1.2*Math.ceil(a.getCubicCurveDistance(g,m,v,b,20)),w=g;if(x>0)for(var _=0;_<=x;_++){var S=a.getPointOnCubicCurve(g,m,v,b,_/x);if(S.x!=w.x||S.y!=w.y){c.push(S);var P=a.round(a.getAngle(w,S),5);this._distance+=a.getDistance(w,S),this.allPoints[Math.floor(this._distance)]={x:S.x,y:S.y,angle:P},w=S}}else c.push(f)}}var k=this.allPoints;if(k.length>1)for(var C=0;C<k.length;C++)if(!k[C])if(C>1)k[C]=k[C-1];else for(var T=1;T<k.length;T++)if(k[T]){k[C]=k[T];break}}this.path=n}},e.prototype.getClosestPointIndex=function(t){var e,i=this.allPoints,n=1/0;if(i.length>1)for(var r=1;r<i.length;r++){var o=a.getDistance(t,i[r]);o<n&&(e=r,n=o)}return e},Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0),this.makePath()},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){var i=0,n=this.allPoints,r=n.length;if(s.isNumber(t)||(t=0),r>1){if(e&&r>3){if(t<0){t<-.01&&(t=-.01);var o=n[0],l=n[1];return{x:c=o.x-(o.x-l.x)*r*t,y:h=o.y-(o.y-l.y)*r*t,angle:a.getAngle(o,l)}}var c,h;if(t>1)return t>1.01&&(t=1.01),o=n[n.length-2],l=n[n.length-3],{x:c=o.x+(o.x-l.x)*r*(t-1),y:h=o.y+(o.y-l.y)*r*(t-1),angle:a.getAngle(o,{x:c,y:h})};if(1==t){var u=n[n.length-1];return{x:u.x,y:u.y,angle:u.angle}}}else t<0&&(t=Math.abs(t),i=180),t>=1&&(t=.9999999999999);var d;return{x:(d=n[Math.floor(t*r)]).x,y:d.y,angle:d.angle+i}}return 1==r?{x:(d=n[0]).x,y:d.y,angle:d.angle}:{x:0,y:0,angle:0}},e}(r.a);o.c.registeredClasses.Polyspline=c},xwvB:function(t,e,i){"use strict";var n=i("Gb1H"),r=i("DbOM"),o=i("vJiZ"),a=i("AEc5"),s=[].sort,l=[1,2,3];n(n.P+n.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!i("GQop")(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),r(t))}})},xxwE:function(t,e,i){e.f=i("YEtG")},y2pX:function(t,e,i){"use strict";var n=i("vJiZ"),r=i("UwWU"),o=i("FmWr");t.exports=[].copyWithin||function(t,e){var i=n(this),a=o(i.length),s=r(t,a),l=r(e,a),c=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===c?a:r(c,a))-l,a-s),u=1;for(l<s&&s<l+h&&(u=-1,l+=h-1,s+=h-1);h-- >0;)l in i?i[s]=i[l]:delete i[s],s+=u,l+=u;return i}},yBbu:function(t,e,i){var n=i("6MWL"),r=i("snR7"),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(t){return o(r(t),arguments.length<2?void 0:a(arguments[1]))}})},yOPk:function(t,e){t.exports=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},ybeA:function(t,e,i){var n=i("T9LF"),r=i("Gb1H"),o=i("vSjZ"),a=[].slice,s=/MSIE .\./.test(o),l=function(t){return function(e,i){var n=arguments.length>2,r=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};r(r.G+r.B+r.F*s,{setTimeout:l(n.setTimeout),setInterval:l(n.setInterval)})},yl71:function(t,e,i){var n=i("Gb1H"),r=i("EhJv"),o=i("FmWr");n(n.S,"String",{raw:function(t){for(var e=r(t.raw),i=o(e.length),n=arguments.length,a=[],s=0;i>s;)a.push(String(e[s++])),s<n&&a.push(String(arguments[s]));return a.join("")}})},ypVE:function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},z9n7:function(t,e,i){i("YJIw")("Float32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}}))},zAAN:function(t,e,i){var n=i("0Zt3"),r=i("kcsd");t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},zhwk:function(t,e,i){"use strict";i.d(e,"a",(function(){return x})),e.b=_;var n=i("m4/l"),r=i("Tjl+"),o=i("vMqJ"),a=i("1yyj"),s=i("hD5A"),l=i("vbOF"),c=i("Oe1l"),h=i("+qIf"),u=i("0PyG"),d=i("58Sn"),p=i("WYhe"),f=i("Rpw0"),g=i("0FpR"),m=i("Gg2j"),y=i("Wglt"),v=i("Mtpk"),b=i("L91H"),x=function(t){function e(){var i=t.call(this)||this;return i._globalEventsAdded=!1,i._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},i._usePointerEventsOnly=!1,i._useTouchEventsOnly=!1,i._addHoverEvents=!0,i._passiveSupported=!1,i._delayedEvents={out:[]},i.overObjects=new o.b,i.downObjects=new o.b,i.trackedObjects=new o.b,i.transformedObjects=new o.b,i.pointers=new h.a,i.inertiaOptions=new h.a,i.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},i.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},i.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},i.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},i.mouseOptions={sensitivity:1},i.className="Interaction",i.body=i.getInteraction(document.body),i._disposers.push(i.body),window.hasOwnProperty("PointerEvent")?(i._pointerEvents.pointerdown="pointerdown",i._pointerEvents.pointerup="pointerup",i._pointerEvents.pointermove="pointermove",i._pointerEvents.pointercancel="pointercancel",i._pointerEvents.pointerover="pointerover",i._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(i._pointerEvents.pointerdown="MSPointerDown",i._pointerEvents.pointerup="MSPointerUp",i._pointerEvents.pointermove="MSPointerMove",i._pointerEvents.pointercancel="MSPointerUp",i._pointerEvents.pointerover="MSPointerOver",i._pointerEvents.pointerout="MSPointerOut"):"undefined"!=typeof matchMedia&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(i._addHoverEvents=!1,i._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)?i._usePointerEventsOnly=!0:i._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?i._pointerEvents.wheel="wheel":v.hasValue(document.onmousewheel)&&(i._pointerEvents.wheel="mousewheel"),i.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:g.polyOut3}),i.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:g.polyOut3}),i._passiveSupported=e.passiveSupported,i.applyTheme(),i}return n.c(e,t),e.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},e.prototype.debug=function(){},e.prototype.addGlobalEvents=function(){var t=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(Object(d.g)(document,this._pointerEvents.pointerdown,(function(e){t.handleGlobalPointerDown(e)}))),this._disposers.push(Object(d.g)(document,this._pointerEvents.pointermove,(function(e){t.handleGlobalPointerMove(e)}))),this._disposers.push(Object(d.g)(document,this._pointerEvents.pointerup,(function(e){t.handleGlobalPointerUp(e)}))),this._disposers.push(Object(d.g)(document,this._pointerEvents.pointercancel,(function(e){t.handleGlobalPointerUp(e,!0)})))),this._usePointerEventsOnly||(this._disposers.push(Object(d.g)(document,"touchstart",(function(e){t.handleGlobalTouchStart(e)}))),this._disposers.push(Object(d.g)(document,"touchmove",(function(e){t.handleGlobalTouchMove(e)}))),this._disposers.push(Object(d.g)(document,"touchend",(function(e){t.handleGlobalTouchEnd(e)})))),this._disposers.push(Object(d.g)(document,"keydown",(function(e){t.handleGlobalKeyDown(e)}))),this._disposers.push(Object(d.g)(document,"keyup",(function(e){t.handleGlobalKeyUp(e)}))),this._globalEventsAdded=!0)},e.prototype.processClickable=function(t){this.processTouchable(t)},e.prototype.processContextMenu=function(t){t.contextMenuDisabled?t.eventDisposers.hasKey("contextMenuDisabled")||t.eventDisposers.setKey("contextMenuDisabled",Object(d.g)(t.element,"contextmenu",(function(t){t.preventDefault()}))):t.eventDisposers.hasKey("contextMenuDisabled")&&t.eventDisposers.getKey("contextMenuDisabled").dispose()},e.prototype.processHoverable=function(t){var e=this;if(t.hoverable||t.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(t),!t.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&t.eventDisposers.setKey("hoverable",new s.c([Object(d.g)(t.element,this._pointerEvents.pointerout,(function(i){return e.handlePointerOut(t,i)})),Object(d.g)(t.element,this._pointerEvents.pointerover,(function(i){return e.handlePointerOver(t,i)}))])),t.trackable;else{var i=t.eventDisposers.getKey("hoverable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("hoverable"))}this.processTouchable(t)},e.prototype.processMovable=function(t){(t.draggable||t.swipeable||t.trackable||t.resizable)&&(this.isGlobalElement(t)||t.isTouchProtected||this.prepElement(t),this.applyCursorOverStyle(t)),this.processTouchable(t)},e.prototype.processTrackable=function(t){this.processHoverable(t),this.processMovable(t),t.trackable?this.trackedObjects.moveValue(t):this.trackedObjects.removeValue(t)},e.prototype.processDraggable=function(t){this.processMovable(t)},e.prototype.processSwipeable=function(t){this.processMovable(t)},e.prototype.processResizable=function(t){this.processMovable(t)},e.prototype.processWheelable=function(t){var e=this;if(t.wheelable)t.eventDisposers.hasKey("wheelable")||t.eventDisposers.setKey("wheelable",new s.c([Object(d.g)(t.element,this._pointerEvents.wheel,(function(i){return e.handleMouseWheel(t,i)}),!!this._passiveSupported&&{passive:!1}),t.events.on("out",(function(i){t.wheelable&&e.unlockWheel()})),t.events.on("over",(function(i){t.wheelable&&e.lockWheel()}))]));else{var i=t.eventDisposers.getKey("wheelable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("wheelable"))}},e.prototype.processFocusable=function(t){var e=this;if(!0===t.focusable&&t.tabindex>-1&&!this._useTouchEventsOnly)t.eventDisposers.hasKey("focusable")||t.eventDisposers.setKey("focusable",new s.c([Object(d.g)(t.element,"focus",(function(i){return e.handleFocus(t,i)})),Object(d.g)(t.element,"blur",(function(i){return e.handleBlur(t,i)})),Object(d.g)(t.element,this._pointerEvents.pointerdown,(function(i){return e.handleFocusBlur(t,i)})),Object(d.g)(t.element,"touchstart",(function(i){return e.handleFocusBlur(t,i)}),!!this._passiveSupported&&{passive:!1})]));else{var i=t.eventDisposers.getKey("focusable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("focusable"))}},e.prototype.processTouchable=function(t){var e=this;if(t.clickable||t.hoverable||t.trackable||t.draggable||t.swipeable||t.resizable)this.addGlobalEvents(),t.eventDisposers.hasKey("touchable")||(this._useTouchEventsOnly||this._usePointerEventsOnly?this._useTouchEventsOnly?this._usePointerEventsOnly||t.eventDisposers.setKey("touchable",Object(d.g)(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})):t.eventDisposers.setKey("touchable",Object(d.g)(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)}))):t.eventDisposers.setKey("touchable",new s.c([Object(d.g)(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)})),Object(d.g)(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})])));else{var i=t.eventDisposers.getKey("touchable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("touchable"))}},e.prototype.handleFocus=function(t,e){if(t.focusable){if(t.isFocused=!0,t.events.isEnabled("focus")&&!f.b.isPaused){var i={type:"focus",target:t,event:e};t.events.dispatchImmediately("focus",i)}}else e.preventDefault()},e.prototype.handleFocusBlur=function(t,e){!1!==t.focusable&&this.getHitOption(t,"noFocus")&&t.events.once("focus",(function(){t.events.disableType("blur"),d.h(),t.sprite&&t.sprite.handleBlur(),t.events.enableType("blur")}))},e.prototype.handleBlur=function(t,e){if(t.focusable){if(t.isFocused=!1,t.events.isEnabled("blur")&&!f.b.isPaused){var i={type:"blur",target:t,event:e};t.events.dispatchImmediately("blur",i)}}else e.preventDefault()},e.prototype.handleGlobalKeyDown=function(t){if(this.focusedObject)if(p.b.isKey(t,"esc"))d.h();else if(this.focusedObject.draggable&&p.b.isKey(t,["up","down","left","right"])){t.preventDefault();var e=this.focusedObject;if(e.eventDisposers.hasKey("interactionKeyboardObject"))return;var i=new c.a(e,t);switch(e.eventDisposers.setKey("interactionKeyboardObject",i),p.b.getEventKey(t)){case"up":i.directionY=-1;break;case"down":i.directionY=1;break;case"left":i.directionX=-1;break;case"right":i.directionX=1}}},e.prototype.handleGlobalKeyUp=function(t){if(this.focusedObject){var e=this.focusedObject.eventDisposers.getKey("interactionKeyboardObject");null!=e&&(t.preventDefault(),e.dispose(),this.focusedObject.eventDisposers.removeKey("interactionKeyboardObject"))}},e.prototype.handleGlobalPointerMove=function(t){var e=this.getPointer(t);if(e.point=this.getPointerPoint(t),this.events.isEnabled("track")&&!f.b.isPaused){var i={type:"track",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("track",i)}this.addBreadCrumb(e,e.point),this.handleGlobalMove(e,t)},e.prototype.handleGlobalPointerDown=function(t){this.processDelayed();var e=this.getPointer(t);if(this.events.isEnabled("down")&&!f.b.isPaused){var i={type:"down",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("down",i)}},e.prototype.preventTouchAction=function(t){t.defaultPrevented||t.preventDefault()},e.prototype.handleGlobalPointerUp=function(t,e){void 0===e&&(e=!1);var i=this.getPointer(t);if(this.events.isEnabled("up")&&!f.b.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t,e)},e.prototype.handleGlobalTouchMove=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(i.point=this.getPointerPoint(t.changedTouches[e]),this.events.isEnabled("track")&&!f.b.isPaused){var n={type:"track",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("track",n)}this.addBreadCrumb(i,i.point),this.handleGlobalMove(i,t)}},e.prototype.handleGlobalTouchStart=function(t){this.processDelayed();for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!f.b.isPaused){var n={type:"down",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("down",n)}}},e.prototype.handleGlobalTouchEnd=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(this.events.isEnabled("up")&&!f.b.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t)}},e.prototype.handlePointerDown=function(t,e){var i=this.getPointer(e);(i.touch||1==e.which||3==e.which)&&(i.button=e.which,this.resetPointer(i,e),this.handleDown(t,i,e))},e.prototype.handlePointerOver=function(t,e){var i=this.getPointer(e);this.handleOver(t,i,e)},e.prototype.handlePointerOut=function(t,e){var i=this.getPointer(e);this.handleOut(t,i,e)},e.prototype.handleMouseWheel=function(t,e){var i=this.getPointer(e);i.point=this.getPointerPoint(e);var n,r,o=1;if(1==e.deltaMode&&(o=50),o*=this.getMouseOption(t,"sensitivity"),!(e instanceof WheelEvent))throw new Error("Invalid event type");n=Math.round(-1*e.wheelDeltaX||e.deltaX)*o,r=Math.round(-1*e.wheelDeltaY||e.deltaY)*o,this.handleWheel(t,i,n,r,e)},e.prototype.handleTouchDown=function(t,e){for(var i=0;i<e.changedTouches.length;i++){var n=this.getPointer(e.changedTouches[i]);this.maybePreventDefault(t,e,n),this.resetPointer(n,e.changedTouches[i]),this.handleDown(t,n,e)}},e.prototype.handleHit=function(t,e,i){var n=b.getTime();if(t.lastHit&&t.lastHit>=n-this.getHitOption(t,"doubleHitTime")){if(n-t.lastHit<100)return;if(t.lastHit=void 0,t.lastHitPointer=void 0,t.events.isEnabled("doublehit")&&!f.b.isPaused){var r={type:"doublehit",target:t,point:e.point,event:i,touch:e.touch};t.events.dispatchImmediately("doublehit",r)}}else t.lastHit=n,t.lastHitPointer=e,3===e.button?t.events.isEnabled("rightclick")&&!f.b.isPaused&&(r={type:"rightclick",target:t,event:i},t.events.dispatchImmediately("rightclick",r)):t.events.isEnabled("hit")&&!f.b.isPaused&&(r={type:"hit",target:t,event:i,point:e.point,touch:e.touch},t.events.dispatchImmediately("hit",r))},e.prototype.handleOver=function(t,e,i,n){if(void 0===n&&(n=!1),t.hoverable&&(this.processDelayed(),t.overPointers.moveValue(e),!t.isHover&&(t.isHover=!0,this.overObjects.moveValue(t),this.handleTrack(this.body,e,i,!0),t.events.isEnabled("over")&&!f.b.isPaused))){var r={type:"over",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("over",r)}},e.prototype.handleOut=function(t,e,i,n,r){var o=this;if(void 0===n&&(n=!1),void 0===r&&(r=!1),t.hoverable&&(t.overPointers.removeValue(e),t.isHover&&(!t.hasDelayedOut||r))){if(n&&t.overPointers.length)return;if(e.touch&&!r&&!this.old(e)){var a=this.getHoverOption(t,"touchOutBehavior");if("leave"==a)return this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:b.getTime()+500}),void(t.hasDelayedOut=!0);if("delay"==a&&this.getHoverOption(t,"touchOutDelay"))return void this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:b.getTime()+500,timeout:this.setTimeout((function(){o.handleOut(t,e,i,!0)}),this.getHoverOption(t,"touchOutDelay"))})}if(t.isHover=!1,this.overObjects.removeValue(t),t.events.isEnabled("out")&&!f.b.isPaused){var s={type:"out",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("out",s)}t.overPointers.clear(),t.hasDelayedOut=!1}},e.prototype.processDelayed=function(){for(var t;t=this._delayedEvents.out.pop();)t.timeout&&t.timeout.dispose(),this.handleOut(t.io,t.pointer,t.event,!1,!0)},e.prototype.handleDown=function(t,e,i){if(this.maybePreventDefault(t,i,e),t.inert&&this.stopInertia(t),this.handleOver(t,e,i,!0),t.downPointers.moveValue(e),this.applyCursorDownStyle(t,e),t.isDown||(!1!==t.focusable&&this.getHitOption(t,"noFocus")&&this.focusedObject&&d.h(),t.isDown=!0,this.downObjects.moveValue(t),t.draggable&&this.processDragStart(t,e,i),t.resizable&&this.processResizeStart(t,e,i)),t.events.isEnabled("down")&&!f.b.isPaused){var n={type:"down",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("down",n)}},e.prototype.handleGlobalUp=function(t,e,i){var n=this;void 0===i&&(i=!1),y.each(this.downObjects.backwards().iterator(),(function(r){r&&r.downPointers.contains(t)&&n.handleUp(r,t,e,i)}))},e.prototype.handleUp=function(t,e,i,n){if(void 0===n&&(n=!1),this.restoreCursorDownStyle(t,e),t.downPointers.removeValue(e),(e.touch||this._useTouchEventsOnly)&&this.handleOut(t,e,i,!0),t.isDown){if(0==t.downPointers.length&&(t.isDown=!1,this.downObjects.removeValue(t)),t.events.isEnabled("up")&&!f.b.isPaused){var r={type:"up",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("up",r)}n||(t.swipeable&&this.swiped(t,e)?this.handleSwipe(t,e,i):(t.clickable&&!this.moved(e,this.getHitOption(t,"hitTolerance"))&&this.handleHit(t,e,i),t.inert&&this.moved(e,this.getHitOption(t,"hitTolerance"))?this.handleInertia(t,e):t.draggable&&this.processDragStop(t,e,i),t.resizable&&this.processResizeStop(t,e,i)))}},e.prototype.maybePreventDefault=function(t,e,i){!v.hasValue(e)||!(t.draggable||t.swipeable||t.trackable||t.resizable)||this.isGlobalElement(t)||!1===e.cancelable||t.isTouchProtected&&i&&i.touch||e.preventDefault()},e.prototype.handleGlobalMove=function(t,e){var i=this;if(!t.touch){var n=d.k(t.lastEvent);y.each(this.overObjects.backwards().iterator(),(function(r){if(r&&r.overPointers.contains(t)&&r.hoverable){var o=!1;r.element&&t.lastEvent&&d.i(r.element,n)||(o=!0),o&&i.handleOut(r,t,e,!0)}}))}y.each(this.transformedObjects.backwards().iterator(),(function(n){!n.downPointers.contains(t)||n.swipeable&&i.swiping(n,t)||!n.draggable&&!n.resizable||i.handleTransform(n,e)})),y.each(this.trackedObjects.backwards().iterator(),(function(n){n.overPointers.contains(t)||i.handleTrack(n,t,e)}))},e.prototype.handleTrack=function(t,e,i,n){if(void 0===n&&(n=!1),(n||this.moved(e,0))&&t.events.isEnabled("track")&&!f.b.isPaused){var r={type:"track",target:t,event:i,point:e.point,pointer:e,touch:e.touch};t.events.dispatchImmediately("track",r)}},e.prototype.handleSwipe=function(t,e,i){if(t.events.isEnabled("swipe")&&!f.b.isPaused){var n={type:"swipe",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swipe",n)}e.startPoint.x<e.point.x?t.events.isEnabled("swiperight")&&!f.b.isPaused&&(n={type:"swiperight",target:t,event:i,touch:e.touch},t.events.dispatchImmediately("swiperight",n)):t.events.isEnabled("swipeleft")&&!f.b.isPaused&&(n={type:"swipeleft",target:t,event:i,touch:e.touch},t.events.dispatchImmediately("swipeleft",n))},e.prototype.handleWheel=function(t,e,i,n,r){var o={x:i,y:n};t.events.isEnabled("wheel")&&!f.b.isPaused&&t.events.dispatchImmediately("wheel",{type:"wheel",target:t,event:r,point:e.point,shift:o}),i<0?t.events.isEnabled("wheelleft")&&!f.b.isPaused&&t.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:t,event:r,point:e.point,shift:o}):i>0?t.events.isEnabled("swiperight")&&!f.b.isPaused&&t.events.dispatchImmediately("wheelright",{type:"wheelright",target:t,event:r,point:e.point,shift:o}):n<0?t.events.isEnabled("wheelup")&&!f.b.isPaused&&t.events.dispatchImmediately("wheelup",{type:"wheelup",target:t,event:r,point:e.point,shift:o}):n>0&&t.events.isEnabled("wheeldown")&&!f.b.isPaused&&t.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:t,event:r,point:e.point,shift:o})},e.prototype.handleInertia=function(t,e){t.draggable&&0===t.downPointers.length&&this.handleMoveInertia(t,e),t.resizable&&t.downPointers.length>1&&this.handleResizeInertia(t,e)},e.prototype.handleMoveInertia=function(t,e){var i=t,n={x:e.point.x,y:e.point.y},r={x:e.startPoint.x,y:e.startPoint.y},o=new u.a(i,"move",n,r),s=this.getTrailPoint(e,b.getTime()-this.getInertiaOption(t,"move","time"));if(void 0!==s){var l=this.getInertiaOption(t,"move","factor"),c=[{to:e.point.x+(e.point.x-s.point.x)*l,property:"x"},{to:e.point.y+(e.point.y-s.point.y)*l,property:"y"}],h=new a.a(o,c,this.getInertiaOption(t,"move","duration"),this.getInertiaOption(t,"move","easing")).start();this._disposers.push(h.events.on("animationended",(function(t){o.done()}))),t.inertias.setKey("move",o)}else this.processDragStop(t,e,e.lastUpEvent)},e.prototype.handleResizeInertia=function(t,e){},e.prototype.handleTransform=function(t,e){var i,n,r,o=t.downPointers.getIndex(0),a=null,s=null;o&&(a=o.point,s=o.startPoint),r=n={x:t.originalPosition.x,y:t.originalPosition.y};for(var l=!0,c=1;c<t.downPointers.length;c++){var h=t.downPointers.getIndex(c);if(s.x!=h.startPoint.x&&s.y!=h.startPoint.y){l=!1,n=(i=h).point,r=i.startPoint;break}}var u=o&&this.moved(o,0);if(t.draggable&&o&&o.dragStartEvents&&o.dragStartEvents.length&&u&&t.events.isEnabled("dragstart")&&!f.b.isPaused&&t.events.dispatchImmediately("dragstart",o.dragStartEvents.shift()),l&&t.draggable)this.handleTransformMove(t,a,s,e,u,o.touch);else{var d=i&&this.moved(i,0);t.draggable&&t.resizable?(this.handleTransformMove(t,a,s,e,u&&d,o.touch),this.handleTransformResize(t,a,s,n,r,e,u&&d,o.touch)):(t.draggable&&this.handleTransformMove(t,a,s,e,u,o.touch),!t.resizable||l&&!e.ctrlKey||this.handleTransformResize(t,a,s,n,r,e,u&&d,o.touch))}},e.prototype.handleTransformMove=function(t,e,i,n,r,o){if(r&&t.events.isEnabled("drag")&&!f.b.isPaused&&(!t.isTouchProtected||!o)){var a={type:"drag",target:t,event:n,shift:{x:e.x-i.x,y:e.y-i.y},startPoint:i,point:e,touch:o};t.events.dispatchImmediately("drag",a)}},e.prototype.handleTransformResize=function(t,e,i,n,r,o,a,s){if(t.events.isEnabled("resize")&&!f.b.isPaused&&(!t.isTouchProtected||!s)){var l={type:"resize",target:t,event:o,scale:m.getScale(e,i,n,r),startPoint1:i,point1:e,startPoint2:r,point2:n,touch:s};t.events.dispatchImmediately("resize",l)}},e.prototype.processDragStart=function(t,e,i){this.transformedObjects.moveValue(t);var n={type:"dragstart",target:t,event:i,touch:!!e&&e.touch};e&&(e.dragTarget=t),e&&e.dragStartEvents?e.dragStartEvents.push(n):f.b.isPaused||t.dispatchImmediately("dragstart",n)},e.prototype.processDragStop=function(t,e,i){if(e||(e=this.getDragPointer(t)),e&&(e.dragTarget=void 0),this.transformedObjects.removeValue(t),(!e||this.moved(e,0))&&t.events.isEnabled("dragstop")&&!f.b.isPaused){var n={type:"dragstop",target:t,touch:!!e&&e.touch};t.events.dispatchImmediately("dragstop",n)}},e.prototype.processResizeStart=function(t,e,i){this.transformedObjects.moveValue(t)},e.prototype.processResizeStop=function(t,e,i){this.transformedObjects.removeValue(t)},e.prototype.dragStart=function(t,e){e||(e=this.getDragPointer(t)),e&&this.handleDown(t,e,e.lastDownEvent)},e.prototype.dragStop=function(t,e){e||(e=this.getDragPointer(t)),e&&this.handleGlobalUp(e,e.lastUpEvent)},e.prototype.getDragPointer=function(t){return t?t.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},e.prototype.getPointerId=function(t){return(v.hasValue(t.identifier)?""+t.identifier:v.hasValue(t.pointerId)?""+t.pointerId:"m").replace("-","")},e.prototype.getPointerPoint=function(t){return{x:t.clientX,y:t.clientY}},e.prototype.getPointer=function(t){var e,i=this.getPointerId(t),n=this.getPointerPoint(t);return this.pointers.hasKey(i)?(e=this.pointers.getKey(i)).touch=this.isPointerTouch(t):(e={id:i,touch:this.isPointerTouch(t),startPoint:n,startTime:b.getTime(),point:n,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(e,n),this.pointers.setKey(i,e)),e.lastEvent=t,e},e.prototype.isPointerTouch=function(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&v.hasValue(t.pointerType))switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(v.hasValue(t.type)&&t.type.match(/^mouse/))return!1;return!0},e.prototype.resetPointer=function(t,e){var i=this.getPointerPoint(e);t.startTime=b.getTime(),t.startPoint={x:i.x,y:i.y},t.point={x:i.x,y:i.y},t.track=[],t.swipeCanceled=!1},e.prototype.addBreadCrumb=function(t,e){t.track.push({timestamp:b.getTime(),point:e})},e.prototype.lockDocument=function(){this.prepElement(this.body)},e.prototype.unlockDocument=function(){0==this.transformedObjects.length&&this.restoreAllStyles(this.body)},e.prototype.lockElement=function(t){this.prepElement(t)},e.prototype.unlockElement=function(t){this.restoreAllStyles(t)},e.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,!!this._passiveSupported&&{passive:!1})},e.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},e.prototype.isLocalElement=function(t,e,i){var n=this.getCache("local_pointer_"+t.id);if(v.hasValue(n))return n;var r=(d.r(e)||document).elementFromPoint(t.point.x,t.point.y),o=r&&d.i(e,r);return this.setCache("local_pointer_"+t.id+"_"+i,o,100),o},e.prototype.wheelLockEvent=function(t){return t.preventDefault(),!1},e.prototype.prepElement=function(t){var e=t.element;if(e){for(var i=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<i.length;n++)i[n]in e.style&&this.setTemporaryStyle(t,i[n],"none");this.setTemporaryStyle(t,"tapHighlightColor","rgba(0, 0, 0, 0)")}},e.prototype.unprepElement=function(t){var e=t.element;if(e){for(var i=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<i.length;n++)i[n]in e.style&&this.restoreStyle(t,i[n]);this.restoreStyle(t,"tapHighlightColor")}},e.prototype.getHitOption=function(t,e){var i=t.hitOptions[e];return void 0===i&&(i=this.hitOptions[e]),i},e.prototype.getHoverOption=function(t,e){var i=t.hoverOptions[e];return void 0===i&&(i=this.hoverOptions[e]),i},e.prototype.getSwipeOption=function(t,e){var i=t.swipeOptions[e];return void 0===i&&(i=this.swipeOptions[e]),i},e.prototype.getKeyboardOption=function(t,e){var i=t.keyboardOptions[e];return void 0===i&&(i=this.keyboardOptions[e]),i},e.prototype.getMouseOption=function(t,e){var i=t.mouseOptions[e];return void 0===i&&(i=this.mouseOptions[e]),i},e.prototype.getInertiaOption=function(t,e,i){var n=t.inertiaOptions.getKey(e);return n&&v.hasValue(n[i])?n[i]:this.inertiaOptions.getKey(e)[i]},e.prototype.stopInertia=function(t){for(var e,i=["move","resize"],n=0;n<i.length;n++)if(e=i[n],t.inertias.hasKey(e)){var r=t.inertias.getKey(e);if(r){r.dispose();continue}}},e.prototype.swiping=function(t,e){var i=b.getTime();return!(e.swipeCanceled||!t.swipeable)&&Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>i-this.getSwipeOption(t,"time")},e.prototype.swiped=function(t,e){var i=b.getTime();return!e.swipeCanceled&&Math.abs(e.startPoint.x-e.point.x)>this.getSwipeOption(t,"horizontalThreshold")&&Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>i-this.getSwipeOption(t,"time")},e.prototype.applyCursorOverStyle=function(t){var e=t.cursorOptions;if(v.hasValue(e.overStyle))for(var i=0;i<e.overStyle.length;i++)d.y(t.element,e.overStyle[i].property,e.overStyle[i].value)},e.prototype.applyCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&v.hasValue(i))for(var n=0;n<i.length;n++)this.setTemporaryStyle(this.body,i[n].property,i[n].value),this.setTemporaryStyle(t,i[n].property,i[n].value)}},e.prototype.restoreCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&v.hasValue(i))for(var n=0;n<i.length;n++)this.restoreStyle(this.body,i[n].property),this.restoreStyle(t,i[n].property)}},e.prototype.setGlobalStyle=function(t){for(var e=_().body,i=v.isArray(t)?t:[t],n=0;n<i.length;n++)this.setTemporaryStyle(e,i[n].property,i[n].value)},e.prototype.restoreGlobalStyle=function(t){for(var e=_().body,i=v.isArray(t)?t:[t],n=0;n<i.length;n++)this.restoreStyle(e,i[n].property)},e.prototype.isGlobalElement=function(t){return document.body===t.element},e.prototype.moved=function(t,e,i){void 0===i&&(i=300);var n=this.getShift(t);return Math.abs(n.x)>e||Math.abs(n.y)>e},e.prototype.old=function(t,e){return void 0===e&&(e=300),b.getTime()-t.startTime>e},e.prototype.getShift=function(t){return{x:t.startPoint.x-t.point.x,y:t.startPoint.y-t.point.y}},e.prototype.getTrailPoint=function(t,e){for(var i,n=0;n<t.track.length;n++)if(t.track[n].timestamp>=e){i=t.track[n];break}return i},e.prototype.pointerExists=function(t,e){var i=!1;return t.each((function(t){t!=e&&(i=t.point.x==e.point.x&&t.point.y==e.point.y)})),i},e.prototype.getInteraction=function(t){return new l.a(t)},e.prototype.setTemporaryStyle=function(t,e,i){var n=t.element;v.hasValue(n.style[e])&&!t.replacedStyles.hasKey(e)&&t.replacedStyles.setKey(e,n.style[e]),d.y(n,e,i)},e.prototype.restoreStyle=function(t,e){t.replacedStyles.hasKey(e)?(t.element.style[e]=t.replacedStyles.getKey(e),t.replacedStyles.removeKey(e)):delete t.element.style[e]},e.prototype.restoreAllStyles=function(t){y.each(t.replacedStyles.iterator(),(function(e){var i=e[0],n=e[1];t.element.style[i]=n,t.replacedStyles.removeKey(i)}))},e.prototype.dispose=function(){this.isDisposed()||(t.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},e.prototype.log=function(t,e,i){if(e.changedTouches)for(var n=0;n<e.changedTouches.length;n++)this.logTouch(t,e.type,e.changedTouches[n]);else{var r="";if(e.pointerType)switch(e.pointerType){case 2:r="touch";break;case 4:r="mouse";break;default:r=e.pointerType}else r="undefined"!=typeof TouchEvent&&e instanceof TouchEvent?"touch":e.type.match(/^mouse/)?"mouse":"???";var o;o=v.hasValue(e.identifier)?e.identifier:v.hasValue(e.pointerId)?e.pointerId:"???",i?console.log(t+" ("+i.uid+") "+e.type+" "+r+" "+o):console.log(t+" "+e.type+" "+r+" "+o)}},e.prototype.logTouch=function(t,e,i){console.log(t+" "+e+" touch "+i.identifier)},Object.defineProperty(e,"passiveSupported",{get:function(){var t=this;if(null==this._passiveSupported)try{var e=Object.defineProperty({},"passive",{get:function(){t._passiveSupported=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(t){this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),e}(r.b),w=null;function _(){return null==w&&(w=new x),w}},"zy/o":function(t,e,i){"use strict";var n=i("2Nze");i("Gb1H")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})}}),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
|
||
*
|
||
* This sofware is provided under multiple licenses. Please see below for
|
||
* links to appropriate usage.
|
||
*
|
||
* Free amCharts linkware license. Details and conditions:
|
||
* https://github.com/amcharts/amcharts4/blob/master/LICENSE
|
||
*
|
||
* One of the amCharts commercial licenses. Details and pricing:
|
||
* https://www.amcharts.com/online-store/
|
||
* https://www.amcharts.com/online-store/licenses-explained/
|
||
*
|
||
* If in doubt, contact amCharts at contact@amcharts.com
|
||
*
|
||
* PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE.
|
||
* @hidden
|
||
*/
|
||
am4internal_webpackJsonp(["689e"],{XFs4:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};i.d(n,"GaugeChartDataItem",(function(){return F})),i.d(n,"GaugeChart",(function(){return R})),i.d(n,"RadarChartDataItem",(function(){return E})),i.d(n,"RadarChart",(function(){return I})),i.d(n,"XYChartDataItem",(function(){return o.b})),i.d(n,"XYChart",(function(){return o.a})),i.d(n,"SerialChartDataItem",(function(){return V.b})),i.d(n,"SerialChart",(function(){return V.a})),i.d(n,"PieChart3DDataItem",(function(){return Y})),i.d(n,"PieChart3D",(function(){return G})),i.d(n,"PieChartDataItem",(function(){return z.b})),i.d(n,"PieChart",(function(){return z.a})),i.d(n,"SlicedChart",(function(){return $})),i.d(n,"SlicedChartDataItem",(function(){return q})),i.d(n,"FlowDiagramDataItem",(function(){return ft})),i.d(n,"FlowDiagram",(function(){return gt})),i.d(n,"SankeyDiagramDataItem",(function(){return St})),i.d(n,"SankeyDiagram",(function(){return Pt})),i.d(n,"ChordDiagramDataItem",(function(){return Ot})),i.d(n,"ChordDiagram",(function(){return Mt})),i.d(n,"TreeMapDataItem",(function(){return Ft})),i.d(n,"TreeMap",(function(){return Rt})),i.d(n,"XYChart3DDataItem",(function(){return Ut})),i.d(n,"XYChart3D",(function(){return qt})),i.d(n,"ChartDataItem",(function(){return K.b})),i.d(n,"Chart",(function(){return K.a})),i.d(n,"LegendDataItem",(function(){return rt.b})),i.d(n,"Legend",(function(){return rt.a})),i.d(n,"LegendSettings",(function(){return rt.c})),i.d(n,"HeatLegend",(function(){return $t.a})),i.d(n,"SeriesDataItem",(function(){return Kt.b})),i.d(n,"Series",(function(){return Kt.a})),i.d(n,"XYSeriesDataItem",(function(){return Zt.b})),i.d(n,"XYSeries",(function(){return Zt.a})),i.d(n,"LineSeriesDataItem",(function(){return s.b})),i.d(n,"LineSeries",(function(){return s.a})),i.d(n,"LineSeriesSegment",(function(){return Jt.a})),i.d(n,"CandlestickSeriesDataItem",(function(){return te})),i.d(n,"CandlestickSeries",(function(){return ee})),i.d(n,"OHLCSeriesDataItem",(function(){return ne})),i.d(n,"OHLCSeries",(function(){return re})),i.d(n,"ColumnSeriesDataItem",(function(){return It.b})),i.d(n,"ColumnSeries",(function(){return It.a})),i.d(n,"StepLineSeriesDataItem",(function(){return ae})),i.d(n,"StepLineSeries",(function(){return se})),i.d(n,"RadarSeriesDataItem",(function(){return u})),i.d(n,"RadarSeries",(function(){return d})),i.d(n,"RadarColumnSeriesDataItem",(function(){return ce})),i.d(n,"RadarColumnSeries",(function(){return he})),i.d(n,"PieSeriesDataItem",(function(){return B.b})),i.d(n,"PieSeries",(function(){return B.a})),i.d(n,"FunnelSeries",(function(){return me})),i.d(n,"FunnelSeriesDataItem",(function(){return ge})),i.d(n,"PyramidSeries",(function(){return ve})),i.d(n,"PyramidSeriesDataItem",(function(){return ye})),i.d(n,"PictorialStackedSeries",(function(){return xe})),i.d(n,"PictorialStackedSeriesDataItem",(function(){return be})),i.d(n,"PieTick",(function(){return we.a})),i.d(n,"FunnelSlice",(function(){return de})),i.d(n,"PieSeries3DDataItem",(function(){return W})),i.d(n,"PieSeries3D",(function(){return X})),i.d(n,"TreeMapSeriesDataItem",(function(){return Dt})),i.d(n,"TreeMapSeries",(function(){return Lt})),i.d(n,"ColumnSeries3DDataItem",(function(){return Yt})),i.d(n,"ColumnSeries3D",(function(){return Gt})),i.d(n,"ConeSeriesDataItem",(function(){return Pe})),i.d(n,"ConeSeries",(function(){return ke})),i.d(n,"CurvedColumnSeries",(function(){return Ae})),i.d(n,"CurvedColumnSeriesDataItem",(function(){return Te})),i.d(n,"AxisDataItem",(function(){return Oe.b})),i.d(n,"Axis",(function(){return Oe.a})),i.d(n,"Grid",(function(){return b.a})),i.d(n,"AxisTick",(function(){return Me.a})),i.d(n,"AxisLabel",(function(){return Ee.a})),i.d(n,"AxisLine",(function(){return Ie.a})),i.d(n,"AxisFill",(function(){return m.a})),i.d(n,"AxisRenderer",(function(){return g.a})),i.d(n,"AxisBreak",(function(){return De.a})),i.d(n,"AxisBullet",(function(){return S.a})),i.d(n,"ValueAxisDataItem",(function(){return Et.b})),i.d(n,"ValueAxis",(function(){return Et.a})),i.d(n,"CategoryAxisDataItem",(function(){return C.b})),i.d(n,"CategoryAxis",(function(){return C.a})),i.d(n,"CategoryAxisBreak",(function(){return Le.a})),i.d(n,"DateAxisDataItem",(function(){return je.b})),i.d(n,"DateAxis",(function(){return je.a})),i.d(n,"DurationAxisDataItem",(function(){return Ne})),i.d(n,"DurationAxis",(function(){return Fe})),i.d(n,"DateAxisBreak",(function(){return Re.a})),i.d(n,"ValueAxisBreak",(function(){return Ve.a})),i.d(n,"AxisRendererX",(function(){return Vt.a})),i.d(n,"AxisRendererY",(function(){return k.a})),i.d(n,"AxisRendererRadial",(function(){return O})),i.d(n,"AxisLabelCircular",(function(){return w.a})),i.d(n,"AxisRendererCircular",(function(){return P})),i.d(n,"AxisFillCircular",(function(){return v})),i.d(n,"GridCircular",(function(){return x})),i.d(n,"AxisRendererX3D",(function(){return zt})),i.d(n,"AxisRendererY3D",(function(){return Bt})),i.d(n,"Tick",(function(){return pe.a})),i.d(n,"Bullet",(function(){return st.a})),i.d(n,"LabelBullet",(function(){return yt})),i.d(n,"CircleBullet",(function(){return ze})),i.d(n,"ErrorBullet",(function(){return Be})),i.d(n,"XYChartScrollbar",(function(){return He.a})),i.d(n,"ClockHand",(function(){return N})),i.d(n,"FlowDiagramNode",(function(){return ot})),i.d(n,"FlowDiagramLink",(function(){return ut})),i.d(n,"SankeyNode",(function(){return vt})),i.d(n,"SankeyLink",(function(){return wt})),i.d(n,"ChordNode",(function(){return Ct})),i.d(n,"ChordLink",(function(){return At})),i.d(n,"NavigationBarDataItem",(function(){return Ue})),i.d(n,"NavigationBar",(function(){return qe})),i.d(n,"Column",(function(){return Ht.a})),i.d(n,"Candlestick",(function(){return Qt})),i.d(n,"OHLC",(function(){return ie})),i.d(n,"RadarColumn",(function(){return le})),i.d(n,"Column3D",(function(){return Xt})),i.d(n,"ConeColumn",(function(){return Se})),i.d(n,"CurvedColumn",(function(){return Ce})),i.d(n,"XYCursor",(function(){return $e.a})),i.d(n,"Cursor",(function(){return Ke.a})),i.d(n,"RadarCursor",(function(){return Ze}));var r=i("m4/l"),o=i("0Mwj"),a=i("tjMS"),s=i("v36H"),l=i("aCit"),c=i("Gg2j"),h=i("hGwe"),u=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return r.c(e,t),e}(s.b),d=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return r.c(e,t),e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.createDataItem=function(){return new u},e.prototype.getPoint=function(t,e,i,n,r,o,a){o||(o="valueX"),a||(a="valueY");var s=this.yAxis.getX(t,i,r,a),l=this.yAxis.getY(t,i,r,a),h=c.getDistance({x:s,y:l});0==h&&(h=1e-5);var u=this.xAxis.getAngle(t,e,n,o),d=this.chart.startAngle,p=this.chart.endAngle;return u<d||u>p?void 0:{x:h*c.cos(u),y:h*c.sin(u)}},e.prototype.addPoints=function(t,e,i,n,r){var o=this.getPoint(e,i,n,e.locations[i],e.locations[n]);o&&t.push(o)},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return h.arc(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.drawSegment=function(e,i,n){var r=this.yAxis.renderer;this.connectEnds&&360==Math.abs(r.endAngle-r.startAngle)&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(i.push(i[0]),n.length>0&&n.unshift(n[n.length-1])),t.prototype.drawSegment.call(this,e,i,n)},Object.defineProperty(e.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(t){this.setPropertyValue("connectEnds",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBulletReal=function(t,e,i){var n=this.xAxis,r=this.yAxis;(e<n.start||e>n.end||i<r.start||i>r.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,i))},e.prototype.setXAxis=function(e){t.prototype.setXAxis.call(this,e),this.updateRendererRefs()},e.prototype.setYAxis=function(e){t.prototype.setYAxis.call(this,e),this.updateRendererRefs()},e.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},e}(s.a);l.c.registeredClasses.RadarSeries=d,l.c.registeredClasses.RadarSeriesDataItem=u;var p=i("C6dT"),f=i("FzPm"),g=i("Meme"),m=i("8EhG"),y=i("Mtpk"),v=function(t){function e(e){var i=t.call(this,e)||this;return i.className="AxisFillCircular",i.element=i.paper.add("path"),i.radius=Object(a.c)(100),i.applyTheme(),i}return r.c(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),!this.__disabled&&!this.disabled&&this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,y.hasValue(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(m.a);l.c.registeredClasses.AxisFillCircular=v;var b=i("AaJ4"),x=function(t){function e(){var e=t.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e}(b.a);l.c.registeredClasses.GridCircular=x;var w=i("IbTV"),_=i("v9UT"),S=i("5xph"),P=function(t){function e(){var e=t.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=Object(a.c)(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return r.c(e,t),e.prototype.setAxis=function(e){var i=this;t.prototype.setAxis.call(this,e),e.isMeasured=!1;var n=e.tooltip;n.adapter.add("dx",(function(t,e){var n=_.svgPointToSprite({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.cos(Math.atan2(n.y,n.x))-n.x})),n.adapter.add("dy",(function(t,e){var n=_.svgPointToSprite({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.sin(Math.atan2(n.y,n.x))-n.y}))},e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return _.relativeRadiusToValue(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(t){this.setPropertyValue("useChartAngles",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return _.relativeRadiusToValue(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){y.isNumber(e)||(e=1);var i=this.positionToCoordinate(t),n=this.startAngle+(this.endAngle-this.startAngle)*i/this.axisLength,r=this.pixelRadius,o=this.pixelInnerRadius;if(this.axisRendererY){var a=c.fitToRange(this.axisRendererY.positionToCoordinate(e),0,1/0);return{x:a*c.cos(n),y:a*c.sin(n)}}return{x:c.cos(n)*o+(r-o)*c.cos(n)*e,y:c.sin(n)*o+(r-o)*c.sin(n)*e}},e.prototype.positionToAngle=function(t){var e,i=this.axis,n=(this.endAngle-this.startAngle)/(i.end-i.start);return e=i.renderer.inversed?this.startAngle+(i.end-t)*n:this.startAngle+(t-i.start)*n,c.round(e,3)},e.prototype.updateAxisLine=function(){var t=this.pixelRadius,e=this.startAngle,i=this.endAngle-e;this.line.path=h.moveTo({x:t*c.cos(e),y:t*c.sin(e)})+h.arcTo(e,i,t,t)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(y.isNumber(n.x)&&y.isNumber(n.y)&&t.element){var r=c.DEGREES*Math.atan2(n.y,n.x),o=_.relativeRadiusToValue(y.hasValue(t.radius)?t.radius:Object(a.c)(100),this.pixelRadius),s=_.relativeRadiusToValue(t.innerRadius,this.pixelRadius);t.zIndex=0;var l=_.relativeRadiusToValue(y.isNumber(s)?s:this.innerRadius,this.pixelRadius,!0);t.path=h.moveTo({x:l*c.cos(r),y:l*c.sin(r)})+h.lineTo({x:o*c.cos(r),y:o*c.sin(r)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.pixelRadius,o=c.DEGREES*Math.atan2(n.y,n.x),a=t.length;t.inside&&(a=-a),t.zIndex=1,t.path=h.moveTo({x:r*c.cos(o),y:r*c.sin(o)})+h.lineTo({x:(r+a)*c.cos(o),y:(r+a)*c.sin(o)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof S.a&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e),o=this.pixelRadius,a=c.DEGREES*Math.atan2(r.y,r.x);r={x:o*c.cos(a),y:o*c.sin(a)},this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,n){y.hasValue(n)||(n=t.location),e+=(i-e)*n,t.fixPosition(this.positionToAngle(e),this.pixelRadius),t.zIndex=2,this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e,i,n,r){var o="";if(y.isNumber(t)&&y.isNumber(e)){y.hasValue(i)||(i=this.radius),t=c.max(t,this.axis.start),(e=c.min(e,this.axis.end))<t&&(e=t);var a=_.relativeRadiusToValue(i,this.pixelRadius),s=_.relativeRadiusToValue(n,this.pixelRadius,!0),l=this.positionToAngle(t),u=this.positionToAngle(e)-l;o=h.arc(l,u,a,s,a,r)}return o},e.prototype.createGrid=function(){return new x},e.prototype.createFill=function(t){return new v(t)},e.prototype.createLabel=function(){return new w.a},e.prototype.pointToPosition=function(t){var e=c.fitAngleToRange(c.getAngle(t),this.startAngle,this.endAngle);return this.coordinateToPosition((e-this.startAngle)/360*this.axisLength)},e}(g.a);l.c.registeredClasses.AxisRendererCircular=P;var k=i("OXm9"),C=i("VB2N"),T=i("Vk33"),A=i("hD5A"),O=function(t){function e(){var e=t.call(this)||this;return e._chart=new A.d,e.pixelRadiusReal=0,e.className="AxisRendererRadial",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.minGridDistance=30,e.gridType="circles",e.axisAngle=-90,e.isMeasured=!1,e.layout="none",e.radius=Object(a.c)(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return r.c(e,t),e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return _.relativeRadiusToValue(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return _.relativeRadiusToValue(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){var i=c.fitToRange(this.positionToCoordinate(t),0,1/0);return{x:i*c.cos(this.axisAngle),y:i*c.sin(this.axisAngle)}},e.prototype.updateAxisLine=function(){this.line.path=h.moveTo({x:this.pixelInnerRadius*c.cos(this.axisAngle),y:this.pixelInnerRadius*c.sin(this.axisAngle)})+h.lineTo({x:this.pixelRadius*c.cos(this.axisAngle),y:this.pixelRadius*c.sin(this.axisAngle)});var t=this.axis.title;t.valign="none",t.horizontalCenter="middle",t.verticalCenter="bottom",t.y=-this.axisLength/2;var e=90;this.opposite?this.inside||(e=-90):this.inside&&(e=-90),t.rotation=e},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n,r=this.positionToPoint(e),o=c.getDistance(r),a=this.startAngle,s=this.endAngle;if(y.isNumber(o)&&t.element){var l=this.chart,u=l.xAxes.getIndex(0),d=0,p=l.series.getIndex(0);if(p&&(d=p.dataItems.length),"polygons"==this.gridType&&d>0&&p&&u&&u instanceof C.a){var f=u.renderer.grid.template.location,g=u.getAngle(p.dataItems.getIndex(0),"categoryX",f);n=h.moveTo({x:o*c.cos(g),y:o*c.sin(g)});for(var m=1;m<d;m++)g=u.getAngle(p.dataItems.getIndex(m),"categoryX",f),n+=h.lineTo({x:o*c.cos(g),y:o*c.sin(g)});g=u.getAngle(p.dataItems.getIndex(d-1),"categoryX",u.renderer.cellEndLocation),n+=h.lineTo({x:o*c.cos(g),y:o*c.sin(g)})}else n=h.moveTo({x:o*c.cos(a),y:o*c.sin(a)})+h.arcTo(a,s-a,o,o);t.path=n}this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,n){y.hasValue(n)||(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);this.positionItem(t,r),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBaseGridElement=function(){},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(t){this.setPropertyValue("axisAngle",c.normalizeAngle(t)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridType",{get:function(){return this.chart.xAxes.getIndex(0)instanceof C.a?this.getPropertyValue("gridType"):"circles"},set:function(t){this.setPropertyValue("gridType",t,!0)},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e){var i,n=this.pixelInnerRadius,r=this.axisLength+n,o=c.fitToRange(this.positionToCoordinate(t),n,r),a=c.fitToRange(this.positionToCoordinate(e),n,r),s=this.startAngle,l=this.endAngle-s,u=this.chart,d=u.xAxes.getIndex(0),p=u.series.getIndex(0),f=0;if(p&&(f=p.dataItems.length),"polygons"==this.gridType&&f>0&&p&&d&&d instanceof C.a){var g=d.renderer.grid.template.location,m=d.getAngle(p.dataItems.getIndex(0),"categoryX",g);i=h.moveTo({x:a*c.cos(m),y:a*c.sin(m)});for(var y=1;y<f;y++)m=d.getAngle(p.dataItems.getIndex(y),"categoryX",g),i+=h.lineTo({x:a*c.cos(m),y:a*c.sin(m)});for(m=d.getAngle(p.dataItems.getIndex(f-1),"categoryX",d.renderer.cellEndLocation),i+=h.lineTo({x:a*c.cos(m),y:a*c.sin(m)}),i+=h.moveTo({x:o*c.cos(m),y:o*c.sin(m)}),y=f-1;y>=0;y--)m=d.getAngle(p.dataItems.getIndex(y),"categoryX",g),i+=h.lineTo({x:o*c.cos(m),y:o*c.sin(m)})}else i=h.arc(s,l,a,o);return i},e.prototype.updateBreakElement=function(t){var e=t.startLine,i=t.endLine,n=t.fillShape,r=t.startPoint,o=t.endPoint;e.radius=Math.abs(r.y),i.radius=Math.abs(o.y),n.radius=Math.abs(o.y),n.innerRadius=Math.abs(r.y)},e.prototype.createBreakSprites=function(t){t.startLine=new T.a,t.endLine=new T.a,t.fillShape=new T.a},e.prototype.updateTooltip=function(){if(this.axis){var t=this.axisAngle;t<0&&(t+=360);var e="vertical";(t>45&&t<135||t>225&&t<315)&&(e="horizontal"),this.axis.updateTooltip(e,{x:-4e3,y:-4e3,width:8e3,height:8e3})}},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=c.normalizeAngle(this.axisAngle+90);r/90!=Math.round(r/90)?t.pixelPerfect=!1:t.pixelPerfect=!0;var o=-t.length;t.inside&&(o*=-1),t.path=h.moveTo({x:0,y:0})+h.lineTo({x:o*c.cos(r),y:o*c.sin(r)})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof S.a&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,n=i.axisFullLength,r=this.pixelInnerRadius;return e=i.renderer.inversed?(i.end-t)*n+r:(t-i.start)*n+r,c.round(e,1)},e.prototype.pointToPosition=function(t){var e=c.getDistance(t)-this.pixelInnerRadius;return this.coordinateToPosition(e)},e}(k.a);l.c.registeredClasses.AxisRendererRadial=O;var M=i("Wglt"),E=function(t){function e(){var e=t.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return r.c(e,t),e}(o.b),I=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=P,e._axisRendererY=O,e.innerRadiusModifyer=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=Object(a.c)(80),e.innerRadius=0;var i=e.plotContainer.createChild(p.a);return i.shouldClone=!1,i.layout="absolute",i.align="center",i.valign="middle",e.seriesContainer.parent=i,e.radarContainer=i,e.bulletsContainer.parent=i,e.axisBulletsContainer=i,e._cursorContainer=i,e._bulletMask=i.createChild(f.a),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return r.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},e.prototype.processAxis=function(e){t.prototype.processAxis.call(this,e);var i=e.renderer;i.gridContainer.parent=i,i.breakContainer.parent=i,e.parent=this.radarContainer,i.toBack()},e.prototype.handleXAxisRangeChange=function(){t.prototype.handleXAxisRangeChange.call(this),M.each(this.yAxes.iterator(),(function(t){t.invalidate()}))},e.prototype.handleYAxisRangeChange=function(){t.prototype.handleYAxisRangeChange.call(this),M.each(this.xAxes.iterator(),(function(t){t.invalidate()}))},e.prototype.processConfig=function(e){if(e&&(y.hasValue(e.cursor)&&!y.hasValue(e.cursor.type)&&(e.cursor.type="RadarCursor"),y.hasValue(e.series)&&y.isArray(e.series)))for(var i=0,n=e.series.length;i<n;i++)e.series[i].type=e.series[i].type||"RadarSeries";t.prototype.processConfig.call(this,e)},e.prototype.beforeDraw=function(){t.prototype.beforeDraw.call(this);var e=this.plotContainer,i=c.getArcRect(this.startAngle,this.endAngle,1),n={x:0,y:0,width:0,height:0},r=e.innerWidth/i.width,o=e.innerHeight/i.height,s=this.innerRadius;if(s instanceof a.a){var l=s.value,u=Math.min(r,o);l=Math.max(u*l,u-Math.min(e.innerHeight,e.innerWidth))/u,n=c.getArcRect(this.startAngle,this.endAngle,l),this.innerRadiusModifyer=l/s.value,s=Object(a.c)(100*l)}i=c.getCommonRectangle([i,n]);var d=Math.min(e.innerWidth/i.width,e.innerHeight/i.height),p=2*_.relativeRadiusToValue(this.radius,d)||0,f=p/2,g=this.startAngle,m=this.endAngle;this._pixelInnerRadius=_.relativeRadiusToValue(s,f),this._bulletMask.path=h.arc(g,m-g,f,this._pixelInnerRadius),M.each(this.xAxes.iterator(),(function(t){t.renderer.useChartAngles&&(t.renderer.startAngle=g,t.renderer.endAngle=m),t.width=p,t.height=p,t.renderer.pixelRadiusReal=f,t.renderer.innerRadius=s})),M.each(this.yAxes.iterator(),(function(t){t.renderer.startAngle=g,t.renderer.endAngle=m,t.width=p,t.height=p,t.renderer.pixelRadiusReal=f,t.renderer.innerRadius=s}));var y=this.cursor;y&&(y.width=p,y.height=p,y.startAngle=g,y.endAngle=m),this.radarContainer.definedBBox={x:f*i.x,y:f*i.y,width:f*i.width,height:f*i.height},this.radarContainer.validatePosition()},e.prototype.createSeries=function(){return new d},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.updateXAxis=function(t){t&&t.processRenderer()},e.prototype.updateYAxis=function(t){t&&t.processRenderer()},e}(o.a);l.c.registeredClasses.RadarChart=I;var D=i("vMqJ"),L=i("DziZ"),j=i("MIZb"),N=function(t){function e(){var e=t.call(this)||this;e._axis=new A.d,e.className="ClockHand";var i=new j.a;e.fill=i.getFor("alternativeBackground"),e.stroke=e.fill;var n=new f.a;n.radius=5,e.pin=n,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=Object(a.c)(100),e.height=Object(a.c)(100),e.radius=Object(a.c)(100),e.innerRadius=Object(a.c)(0);var r=new L.a;return e.hand=r,e._disposers.push(e._axis),e.applyTheme(),e}return r.c(e,t),e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var i=Math.max(this.startWidth,this.endWidth);if(e.height=i,e.leftSide=Object(a.c)(this.startWidth/i*100),e.rightSide=Object(a.c)(this.endWidth/i*100),this.axis){var n=this.axis.renderer,r=_.relativeRadiusToValue(this.innerRadius,n.pixelRadius),o=_.relativeRadiusToValue(this.radius,n.pixelRadius);e.x=r,e.y=-i/2,e.width=o-r}},Object.defineProperty(e.prototype,"pin",{get:function(){return this._pin},set:function(t){this._pin&&this.removeDispose(this._pin),t&&(this._pin=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hand",{get:function(){return this._hand},set:function(t){this._hand&&this.removeDispose(this._hand),t&&(this._hand=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(t){this.setPropertyValue("startWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(t){this.setPropertyValue("endWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(t){this.setPropertyValue("rotationDirection",t)},enumerable:!0,configurable:!0}),e.prototype.showValue=function(t,e,i){if(this._value=t,null!=t&&(y.isNumber(e)||(e=0),this.axis)){var n=this.axis.renderer.positionToAngle(this.axis.anyToPosition(t)),r=this.rotation;"clockWise"==this.rotationDirection&&n<r&&(this.rotation=r-360),"counterClockWise"==this.rotationDirection&&n>r&&(this.rotation=r+360),this.animate({property:"rotation",to:n},e,i)}},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.showValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this.axis!=t&&this._axis.set(t,new A.c([t.events.on("datavalidated",this.updateValue,this,!1),t.events.on("datarangechanged",this.updateValue,this,!1),t.events.on("dataitemsvalidated",this.updateValue,this,!1),t.events.on("propertychanged",this.invalidate,this,!1)])),t){var e=t.chart;e&&(this.rotation=e.startAngle)}this.parent=t.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),e.prototype.updateValue=function(){this.value=this.value},e.prototype.processConfig=function(e){e&&y.hasValue(e.axis)&&y.isString(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),t.prototype.processConfig.call(this,e)},e}(p.a);l.c.registeredClasses.ClockHand=N;var F=function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}return r.c(e,t),e}(E),R=function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new D.e(new N),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new D.c(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return r.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},e.prototype.processHand=function(t){var e=t.newValue;e.axis||(e.axis=this.xAxes.getIndex(0))},e.prototype.configOrder=function(e,i){return e==i?0:"hands"==e?1:"hands"==i?-1:t.prototype.configOrder.call(this,e,i)},e}(I);l.c.registeredClasses.GaugeChart=R;var V=i("2I/e"),z=i("quKg"),B=i("Puh1"),H=i("nPzZ"),W=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(t){this.setValue("depthValue",t)},enumerable:!0,configurable:!0}),e}(B.b),X=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return r.c(e,t),e.prototype.createDataItem=function(){return new W},e.prototype.createSlice=function(){return new H.a},e.prototype.validateDataElement=function(e){var i=e.slice,n=this.depth;y.isNumber(n)||(n=this.chart.depth);var r=e.values.depthValue.percent;y.isNumber(r)||(r=100),i.depth=r*n/100;var o=this.angle;y.isNumber(o)||(o=this.chart.angle),i.angle=o,t.prototype.validateDataElement.call(this,e)},e.prototype.validate=function(){t.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var i=this.dataItems.getIndex(e).slice,n=i.startAngle;n>=-90&&n<90?i.toFront():n>=90&&i.toBack()}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem.slice;e.y=e.pixelY-i.depth},e}(B.a);l.c.registeredClasses.PieSeries3D=X,l.c.registeredClasses.PieSeries3DDataItem=W;var Y=function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}return r.c(e,t),e}(z.b),G=function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){t=c.fitToRange(t,0,90),this.setPropertyValue("angle",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new X},e}(z.a);l.c.registeredClasses.PieChart3D=G;var U=i("DXFp"),q=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return r.c(e,t),e}(U.b),$=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return r.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},e.prototype.validate=function(){t.prototype.validate.call(this)},e}(U.a);l.c.registeredClasses.SlicedChart=$,l.c.registeredClasses.SlicedChartDataItem=q;var K=i("VIOb"),Z=i("+qIf"),J=i("Vs7R"),Q=i("wUYf"),tt=i("MlsF"),et=i("3Cxr"),it=i("CnhP"),nt=i("Qkdp"),rt=i("uWmK"),ot=function(t){function e(){var e=t.call(this)||this;return e.legendSettings=new rt.c,e.className="FlowDiagramNode",e.isMeasured=!1,new j.a,e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invalidateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return r.c(e,t),e.prototype.handleHit=function(t){this.isHidden||this.isHiding?this.show():this.hide()},e.prototype.show=function(e){var i=t.prototype.show.call(this,e);return this.outgoingDataItems.each((function(t){(!t.toNode||t.toNode&&!t.toNode.isHidden)&&t.setWorkingValue("value",t.getValue("value"),e)})),this.incomingDataItems.each((function(t){(!t.fromNode||t.fromNode&&!t.fromNode.isHidden)&&t.setWorkingValue("value",t.getValue("value"),e)})),i},e.prototype.hide=function(e){var i=t.prototype.hide.call(this,e);return this.outgoingDataItems.each((function(t){t.setWorkingValue("value",0,e)})),this.incomingDataItems.each((function(t){t.setWorkingValue("value",0,e)})),i},e.prototype.validate=function(){this.isDisposed()||(t.prototype.validate.call(this),this.invalidateLinks())},e.prototype.invalidateLinks=function(){var t=this;this.outgoingDataItems.each((function(e){var i=e.link;if("fromNode"==i.colorMode&&(i.fill=i.dataItem.fromNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var n=i.gradient.stops.getIndex(0);n&&(n.color=t.color,i.gradient.validate())}})),this.incomingDataItems.each((function(e){var i=e.link;if("toNode"==i.colorMode&&(i.fill=i.dataItem.toNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var n=i.gradient.stops.getIndex(1);n&&(n.color=t.color,i.gradient.validate())}}))},Object.defineProperty(e.prototype,"incomingDataItems",{get:function(){var t=this;if(!this._incomingDataItems){var e=new D.b;e.events.on("inserted",(function(){"name"==t.chart.sortBy?t._incomingSorted=M.sort(t._incomingDataItems.iterator(),(function(t,e){return Q.order(t.fromName,e.fromName)})):"value"==t.chart.sortBy?t._incomingSorted=M.sort(t._incomingDataItems.iterator(),(function(t,e){return tt.b(et.order(t.value,e.value))})):t._incomingSorted=t._incomingDataItems.iterator()}),void 0,!1),this._incomingDataItems=e}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outgoingDataItems",{get:function(){var t=this;if(!this._outgoingDataItems){var e=new D.b;e.events.on("inserted",(function(){"name"==t.chart.sortBy?t._outgoingSorted=M.sort(t._outgoingDataItems.iterator(),(function(t,e){return Q.order(t.fromName,e.fromName)})):"value"==t.chart.sortBy?t._outgoingSorted=M.sort(t._outgoingDataItems.iterator(),(function(t,e){return tt.b(et.order(t.value,e.value))})):t._outgoingSorted=t._outgoingDataItems.iterator()}),void 0,!1),this._outgoingDataItems=e}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(t){this.setPropertyValue("total",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(t){this.setPropertyValue("totalIncoming",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(t){this.setPropertyValue("totalOutgoing",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.getPropertyValue("color")},set:function(t){this.setColorProperty("color",t),this._background&&(this._background.fill=t),this.fill=t},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n=t.createChild(it.a);n.shouldClone=!1,nt.copyProperties(this,n,J.b),n.stroke=this.fill,n.copyFrom(this),n.padding(0,0,0,0),n.width=e,n.height=i;var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e}(p.a);l.c.registeredClasses.FlowDiagramNode=ot;var at=i("sxA1"),st=i("TXRX"),lt=i("8ZqG"),ct=i("jfaP"),ht=i("PTiM"),ut=function(t){function e(){var e=t.call(this)||this;e.className="FlowDiagramLink";var i=new j.a;return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}→{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(J.a),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=i.getFor("alternativeBackground"),e.applyTheme(),e}return r.c(e,t),e.prototype.positionBullets=function(){var t=this;M.each(this.bullets.iterator(),(function(e){e.parent=t.bulletsContainer,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,t.positionBullet(e)}))},Object.defineProperty(e.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var t=this.createChild(p.a);t.shouldClone=!1,t.layout="none",this._bulletsContainer=t}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var t=this.createChild(J.a);t.shouldClone=!1,t.setElement(this.paper.add("path")),t.isMeasured=!1,this._bulletsMask=t}return this._bulletsMask},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){var e=t.locationX;y.isNumber(e)||(e=t.locationY),y.isNumber(e)||(e=.5);var i=this.middleLine.positionToPoint(e);t.moveTo(i);var n,r=t.propertyFields.rotation;t.dataItem&&(n=t.dataItem.dataContext[r]),y.isNumber(n)||(n=i.angle),t.rotation=n},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(t){if("gradient"==t){var e=this.fill;this.gradient.stops.clear(),e instanceof lt.a&&(this.gradient.addColor(e),this.gradient.addColor(e)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){t.prototype.setFill.call(this,e);var i=this._gradient;i&&e instanceof lt.a&&(i.stops.clear(),i.addColor(e),i.addColor(e))},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bullets",{get:function(){var t=this;return this._bullets||(this._bullets=new D.e(new st.a),this._disposers.push(new D.c(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",(function(e){e.newValue.events.on("propertychanged",(function(e){"locationX"!=e.property&&"locationY"!=e.property||t.positionBullet(e.target)}),void 0,!1)}),void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var i=this.middleLine;i&&(i instanceof ht.a&&e.middleLine instanceof ht.a&&i.copyFrom(e.middleLine),i instanceof ct.a&&e.middleLine instanceof ct.a&&i.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},e.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},e.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(e.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new at.a),this._gradient},enumerable:!0,configurable:!0}),e}(p.a);l.c.registeredClasses.FlowDiagramLink=ut;var dt=i("/e9j"),pt=i("DHte"),ft=function(t){function e(){var e=t.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(t){this.setProperty("fromName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toName",{get:function(){return this.properties.toName},set:function(t){this.setProperty("toName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",Object(lt.e)(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"link",{get:function(){var t=this;if(!this._link){var e=this.component.links.create();this._link=e,this.addSprite(e),this._disposers.push(new A.b((function(){t.component&&t.component.links.removeValue(e)})))}return this._link},enumerable:!0,configurable:!0}),e}(K.b),gt=function(t){function e(){var e=t.call(this)||this;e.colors=new pt.a,e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var i=e.chartContainer.createChild(p.a);i.shouldClone=!1,i.layout="none",i.isMeasured=!1,e.linksContainer=i;var n=e.chartContainer.createChild(p.a);return n.shouldClone=!1,n.layout="none",n.isMeasured=!1,e.nodesContainer=n,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return r.c(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.dataItem.dispose()},e.prototype.validateData=function(){var e=this;0==this._parseDataFrom&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),t.prototype.validateData.call(this);var i,n,r=0,o=0;M.each(this.dataItems.iterator(),(function(t){var a=t.fromName;a&&((s=e.nodes.getKey(a))||((s=e.nodes.create(a)).name=a,s.chart=e,s.dataItem=t),t.fromNode=s,t.fromNode.outgoingDataItems.push(t));var s,l=t.toName;if(l&&((s=e.nodes.getKey(l))||((s=e.nodes.create(l)).name=l,s.chart=e,s.dataItem=t),t.toNode=s,t.toNode.incomingDataItems.push(t)),!t.fromNode){var c=new dt.a;c.opacities=[0,1],t.link.strokeModifier=c}if(!t.toNode){var h=new dt.a;h.opacities=[1,0],t.link.strokeModifier=h}var u=t.value;y.isNumber(u)&&(r+=u,o++,(i>u||!y.isNumber(i))&&(i=u),(n<u||!y.isNumber(n))&&(n=u))}));var a="value";this.dataItem.setCalculatedValue(a,n,"high"),this.dataItem.setCalculatedValue(a,i,"low"),this.dataItem.setCalculatedValue(a,r,"sum"),this.dataItem.setCalculatedValue(a,r/o,"average"),this.dataItem.setCalculatedValue(a,o,"count"),M.each(this.nodes.iterator(),(function(t){var i=t[1];i.fill instanceof lt.a&&(i.color=i.fill),null==i.color&&(i.color=e.colors.next()),null!=i.dataItem.color&&(i.color=i.dataItem.color),i.dataItem.visible||i.hide(0),e.getNodeValue(i)})),this.sortNodes(),this.feedLegend()},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.invalidate()},e.prototype.sortNodes=function(){"name"==this.sortBy?this._sorted=this.nodes.sortedIterator():"value"==this.sortBy?this._sorted=M.sort(this.nodes.iterator(),(function(t,e){return tt.b(et.order(t[1].total,e[1].total))})):this._sorted=this.nodes.iterator()},e.prototype.getNodeValue=function(t){var e=0,i=0;M.each(t.incomingDataItems.iterator(),(function(t){var i=t.getWorkingValue("value");y.isNumber(i)&&(e+=i)})),M.each(t.outgoingDataItems.iterator(),(function(t){var e=t.getWorkingValue("value");y.isNumber(e)&&(i+=e)})),t.total=e+i,t.totalIncoming=e,t.totalOutgoing=i},e.prototype.changeSorting=function(){this.sortNodes()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},e.prototype.createDataItem=function(){return new ft},Object.defineProperty(e.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")},set:function(t){this.setPropertyValue("nodePadding",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(t){this.setPropertyValue("sortBy",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(t){this.setPropertyValue("minNodeSize",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){if(!this._nodes){var t=this.createNode();t.events.on("hit",(function(t){t.target.handleHit(t)})),this._nodes=new Z.c(t),this._disposers.push(new Z.b(this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new ot;return this._disposers.push(t),t},Object.defineProperty(e.prototype,"links",{get:function(){return this._links||(this._links=new D.e(this.createLink()),this._disposers.push(new D.c(this._links))),this._links},enumerable:!0,configurable:!0}),e.prototype.createLink=function(){var t=new ut;return this._disposers.push(t),t},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];this.nodes.each((function(t,i){e.push(i)})),t.data=e,t.dataFields.name="name"}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.nodes.clear()},e}(K.a);l.c.registeredClasses.FlowDiagram=gt;var mt=i("p9TX"),yt=function(t){function e(){var e=t.call(this)||this;e.className="LabelBullet";var i=e.createChild(mt.a);return i.shouldClone=!1,i.verticalCenter="middle",i.horizontalCenter="middle",i.truncate=!0,i.hideOversized=!1,i.maxWidth=500,i.maxHeight=500,i.stroke=Object(lt.c)(),i.strokeOpacity=0,i.fill=(new j.a).getFor("text"),e.events.on("maxsizechanged",e.handleMaxSize,e,!1),e.label=i,e.applyTheme(),e}return r.c(e,t),e.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label)},e}(st.a);l.c.registeredClasses.LabelBullet=yt;var vt=function(t){function e(){var e=t.call(this)||this;e.nextInCoord=0,e.nextOutCoord=0,e.className="SankeyNode",e.width=10,e.height=10;var i=e.createChild(yt);i.shouldClone=!1,i.locationX=1,i.locationY=.5,i.label.text="{name}",i.width=150,i.height=150,i.label.horizontalCenter="left",i.label.padding(0,5,0,5),e.nameLabel=i;var n=e.createChild(yt);n.shouldClone=!1,n.label.hideOversized=!1,n.locationX=.5,n.locationY=.5,n.width=150,n.height=150,n.label.horizontalCenter="middle",e.valueLabel=n;var r=e.hiddenState;return r.properties.fill=(new j.a).getFor("disabledBackground"),r.properties.opacity=.5,r.properties.visible=!0,e.background.hiddenState.copyFrom(r),e}return r.c(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var i=this.chart;if(i){var n=i.orientation;this._incomingSorted&&M.each(this._incomingSorted,(function(t){var r=t.link,o=t.getWorkingValue("value");if(y.isNumber(o)){r.parent=e.chart.linksContainer;var a=void 0,s=void 0,l=void 0;if("horizontal"==n?(a=e.pixelX+e.dx,s=e.nextInCoord+e.pixelY+e.dy,l=0):(s=e.pixelY+e.dy,a=e.nextInCoord+e.pixelX+e.dx,l=90),r.endX=a,r.endY=s,r.startAngle=l,r.endAngle=l,r.gradient.rotation=l,r.linkWidth=o*i.valueHeight,!t.fromNode){"horizontal"==n?(r.maxWidth=200,r.startX=e.pixelX+e.dx-r.maxWidth,r.startY=r.endY):(r.maxHeight=200,r.startX=r.endX,r.startY=e.pixelY+e.dy-r.maxHeight),_.used(r.gradient),r.fill=t.toNode.color;var c=r.gradient.stops.getIndex(0);c&&("gradient"==r.colorMode&&(c.color=e.color),c.opacity=0,r.fill=r.gradient,r.stroke=r.gradient,r.gradient.validate())}e.nextInCoord+=r.linkWidth}})),this._outgoingSorted&&M.each(this._outgoingSorted,(function(t){var i=t.link;i.parent=e.chart.linksContainer;var r=t.getWorkingValue("value");if(y.isNumber(r)){var o=void 0,a=void 0,s=void 0;if("horizontal"==n?(s=0,o=e.pixelX+e.pixelWidth+e.dx-1,a=e.nextOutCoord+e.pixelY+e.dy):(s=90,o=e.nextOutCoord+e.pixelX+e.dx,a=e.pixelY+e.pixelHeight+e.dy-1),i.startX=o,i.startY=a,i.startAngle=s,i.endAngle=s,i.gradient.rotation=s,i.linkWidth=r*e.chart.valueHeight,!t.toNode){"horizontal"==n?(i.maxWidth=200,i.endX=e.pixelX+i.maxWidth+e.dx,i.endY=i.startY):(i.maxHeight=200,i.endX=i.startX,i.endY=e.pixelY+i.maxHeight+e.dy),i.opacity=e.opacity;var l=i.gradient.stops.getIndex(1);l&&("gradient"==i.colorMode&&(l.color=e.color),l.opacity=0,i.fill=i.gradient,i.stroke=i.gradient,i.gradient.validate())}e.nextOutCoord+=i.linkWidth}}))}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},e.prototype.positionBullet=function(t){t&&(t.x=this.measuredWidth*t.locationX,t.y=this.measuredHeight*t.locationY)},Object.defineProperty(e.prototype,"level",{get:function(){return this.getPropertyValue("level")},set:function(t){this.setPropertyValue("level",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.nameLabel.copyFrom(e.nameLabel),this.valueLabel.copyFrom(e.valueLabel)},e}(ot);l.c.registeredClasses.SankeyNode=vt;var bt=i("xgTw"),xt=i("aFzC"),wt=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyLink",new j.a,e.tension=.8,e.controlPointDistance=.2,e.startAngle=0,e.endAngle=0,e.linkWidth=0,e.startX=0,e.endX=0,e.startY=0,e.endY=0,e.middleLine=e.createChild(bt.a),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return r.c(e,t),e.prototype.validate=function(){if(t.prototype.validate.call(this),!this.isTemplate){var e=this.startX,i=this.startY,n=this.endX,r=this.endY;y.isNumber(n)||(n=e),y.isNumber(r)||(r=i);var o=this.startAngle,a=this.endAngle,s=this.linkWidth,l="",u=e,d=i,p=n,f=r,g=e+s*c.sin(o),m=n+s*c.sin(a),v=i+s*c.cos(o),b=r+s*c.cos(a),x=e+s/2*c.sin(o),w=n+s/2*c.sin(a),_=i+s/2*c.cos(o),S=r+s/2*c.cos(a);this.zIndex=this.zIndex||this.dataItem.index;var P=this.tension+(1-this.tension)*c.sin(o),k=this.tension+(1-this.tension)*c.cos(o);if(this.middleLine.tensionX=P,this.middleLine.tensionY=k,y.isNumber(s)&&y.isNumber(e)&&y.isNumber(n)&&y.isNumber(i)&&y.isNumber(r)){c.round(u,3)==c.round(p,3)&&(p+=.01),c.round(d,3)==c.round(f,3)&&(f+=.01),c.round(g,3)==c.round(m,3)&&(m+=.01),c.round(v,3)==c.round(b,3)&&(b+=.01);var C=Math.min(g,m,u,p),T=Math.min(v,b,d,f),A=Math.max(g,m,u,p),O=Math.max(v,b,d,f);this._bbox={x:C,y:T,width:A-C,height:O-T};var M=this.controlPointDistance,E=u+(p-u)*M*c.cos(o),I=d+(f-d)*M*c.sin(o),D=p-(p-u)*M*c.cos(a),L=f-(f-d)*M*c.sin(a),j=x+(w-x)*M*c.cos(o),N=_+(S-_)*M*c.sin(o),F=w-(w-x)*M*c.cos(a),R=S-(S-_)*M*c.sin(a),V=c.getAngle({x:E,y:I},{x:D,y:L}),z=(s/c.cos(V)-s)/c.tan(V)*c.cos(o),B=(s/c.sin(V)-s)*c.tan(V)*c.sin(o),H=-z/2+g+(m-g)*M*c.cos(o),W=-B/2+v+(b-v)*M*c.sin(o),X=-z/2+m-(m-g)*M*c.cos(a),Y=-B/2+b-(b-v)*M*c.sin(a);this.middleLine.segments=[[{x:x,y:_},{x:j,y:N},{x:F,y:R},{x:w,y:S}]],E+=z/2,I+=B/2,D+=z/2,L+=B/2,l+=h.moveTo({x:u,y:d}),l+=new xt.b(P,k).smooth([{x:u,y:d},{x:E,y:I},{x:D,y:L},{x:p,y:f}]),l+=h.lineTo({x:m,y:b}),l+=new xt.b(P,k).smooth([{x:m,y:b},{x:X,y:Y},{x:H,y:W},{x:g,y:v}]),l+=h.closePath()}this.link.path=l,this.maskBullets&&(this.bulletsMask.path=l,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(e.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(t){this.setPropertyValue("startX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(t){this.setPropertyValue("endX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startY",{get:function(){return this.getPropertyValue("startY")},set:function(t){this.setPropertyValue("startY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(t){this.setPropertyValue("endY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(t){this.setPropertyValue("linkWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),e}(ut);l.c.registeredClasses.SankeyLink=wt;var _t=i("1yyj"),St=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyDiagramDataItem",e.applyTheme(),e}return r.c(e,t),e}(ft),Pt=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyDiagram",e.orientation="horizontal",e.nodeAlign="middle",e.nodesContainer.width=Object(a.c)(100),e.nodesContainer.height=Object(a.c)(100),e.linksContainer.width=Object(a.c)(100),e.linksContainer.height=Object(a.c)(100),e.applyTheme(),e}return r.c(e,t),e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this._levelCount=0,this.nodes.each((function(t,e){e.level=void 0})),this.nodes.each((function(t,i){i.level=e.getNodeLevel(i,0),e._levelCount=c.max(e._levelCount,i.level)}))},e.prototype.getNodeLevel=function(t,e){var i=this,n=[e];return M.each(t.incomingDataItems.iterator(),(function(t){t.fromNode&&(y.isNumber(t.fromNode.level)?n.push(t.fromNode.level+1):n.push(i.getNodeLevel(t.fromNode,e+1)))})),Math.max.apply(Math,r.f(n))},e.prototype.calculateValueHeight=function(){var t=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var e,i,n,r=this.dataItem.values.value.sum;M.each(this._sorted,(function(e){var i=e[1];t.getNodeValue(i)})),this.nodes.each((function(e,i){var n=i.level,o=Math.max(i.totalIncoming,i.totalOutgoing);o/r<t.minNodeSize&&(o=r*t.minNodeSize),y.isNumber(t._levelSum[n])?t._levelSum[n]+=o:t._levelSum[n]=o,y.isNumber(t._levelNodesCount[n])?t._levelNodesCount[n]++:t._levelNodesCount[n]=1})),e="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,nt.each(this._levelSum,(function(r,o){var a=o,s=t._levelNodesCount[r],l=(e-(s-1)*t.nodePadding)/a;(n>l||!y.isNumber(n))&&(n=l,t.maxSum=a,i=y.toNumber(r))})),this._maxSumLevel=i;var o=this._levelNodesCount[this._maxSumLevel],a=(e-(o-1)*this.nodePadding)/this.maxSum;if(y.isNumber(this.valueHeight)){var s=void 0;try{s=this._heightAnimation.animationOptions[0].to}catch(t){}if(s!=a){var l=this.interpolationDuration;try{l=this.nodes.template.states.getKey("active").transitionDuration}catch(t){}this._heightAnimation=new _t.a(this,{property:"valueHeight",from:this.valueHeight,to:a},l,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}else this.valueHeight=a},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this.calculateValueHeight();var i=this.nodesContainer,n={},r=this._levelNodesCount[this._maxSumLevel],o=this.dataItem.values.value.sum;M.each(this._sorted,(function(t){var a,s,l,c=t[1],h=c.level,u=0,d=e._levelNodesCount[h];switch(e.nodeAlign){case"bottom":u=(e.maxSum-e._levelSum[h])*e.valueHeight-(d-r)*e.nodePadding;break;case"middle":u=(e.maxSum-e._levelSum[h])*e.valueHeight/2-(d-r)*e.nodePadding/2}c.parent=i;var p=Math.max(c.totalIncoming,c.totalOutgoing);if(p/o<e.minNodeSize&&(p=o*e.minNodeSize),"horizontal"==e.orientation){s=(a=(e.innerWidth-c.pixelWidth)/e._levelCount)*c.level,l=n[h]||u;var f=p*e.valueHeight;c.height=f,c.minX=s,c.maxX=s,n[h]=l+f+e.nodePadding}else{a=(e.innerHeight-c.pixelHeight)/e._levelCount,s=n[h]||u,l=a*c.level;var g=p*e.valueHeight;c.width=g,c.minY=l,c.maxY=l,n[h]=s+g+e.nodePadding}c.x=s,c.y=l}))},e.prototype.showReal=function(e){var i=this;if(!this.preventShow){if(this.interpolationDuration>0){var n=this.nodesContainer,r=0;M.each(this.links.iterator(),(function(t){t.hide(0)})),M.each(this._sorted,(function(t){var e,o=t[1];"horizontal"==i.orientation?(o.dx=-(n.pixelWidth-o.pixelWidth)/Math.max(i._levelCount,1),e="dx"):(o.dy=-(n.pixelHeight-o.pixelHeight)/Math.max(i._levelCount,1),e="dy");var a=0,s=i.interpolationDuration;i.sequencedInterpolation&&(a=i.sequencedInterpolationDelay*r+s*r/M.length(i.nodes.iterator())),o.opacity=0,o.invalidateLinks(),o.animate([{property:"opacity",from:0,to:1},{property:e,to:0}],i.interpolationDuration,i.interpolationEasing).delay(a),M.each(o.outgoingDataItems.iterator(),(function(t){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(a)})),M.each(o.incomingDataItems.iterator(),(function(t){if(!t.fromNode){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(a)}})),r++}))}return t.prototype.showReal.call(this)}},e.prototype.changeSorting=function(){var t=this;this.sortNodes();var e={};M.each(this._sorted,(function(i){var n,r,o=i[1],a=o.level,s=(t.maxSum-t._levelSum[a])*t.valueHeight/2;"horizontal"==t.orientation?(n="y",r=o.pixelHeight):(n="x",r=o.pixelWidth),o.animate({property:n,to:e[a]||s},t.interpolationDuration,t.interpolationEasing),e[a]=(e[a]||s)+r+t.nodePadding,o.invalidateLinks()}))},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},e.prototype.createDataItem=function(){return new St},Object.defineProperty(e.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(t){this.setPropertyValue("nodeAlign",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.nodes.template.nameLabel;"vertical"==t?(this.nodes.template.width=void 0,e.label.horizontalCenter="middle",e.locationX=.5):(this.nodes.template.height=void 0,e.label.horizontalCenter="left",e.locationX=1)},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new vt;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new wt;return this._disposers.push(t),t},Object.defineProperty(e.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(t){t!=this._valueHeight&&(this._valueHeight=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},e}(gt);l.c.registeredClasses.SankeyDiagram=Pt;var kt=i("Inf5"),Ct=function(t){function e(){var e=t.call(this)||this;e.className="ChordNode";var i=e.createChild(w.a);i.location=.5,i.radius=5,i.text="{name}",i.zIndex=1,i.shouldClone=!1,e.label=i,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(kt.a),e.slice.isMeasured=!1;var n=e.hiddenState;return n.properties.fill=(new j.a).getFor("disabledBackground"),n.properties.opacity=.5,n.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",(function(t,e){return e.slice.ix*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)})),e.adapter.add("tooltipY",(function(t,e){return e.slice.iy*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)})),e}return r.c(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this);var i=this.label,n=this.slice,r=this.chart;if(r&&n){var o=this.total,a=n.arc,s=n.startAngle;this.children.each((function(t){if(t instanceof st.a){var e=t.locationX;y.isNumber(e)||(e=.5);var i=t.locationY;y.isNumber(i)||(i=1);var r=s+a*e,o=i*n.radius;t.x=o*c.cos(r),t.y=o*c.sin(r)}}));var l=s+a*i.location,h=s+(1-o/this.adjustedTotal)*a*.5;y.isNaN(h)&&(h=s),i.fixPosition(l,n.radius),this.nextAngle=h,this._outgoingSorted&&M.each(this._outgoingSorted,(function(t){var i=t.link;i.parent=e.chart.linksContainer;var o=t.getWorkingValue("value");if(y.isNumber(o)){if(r.nonRibbon){var l=i.percentWidth;y.isNumber(l)||(l=5),l/=100,i.startAngle=s+a/2-a/2*l,i.arc=a*l}else i.arc=o*r.valueAngle,i.startAngle=e.nextAngle,e.nextAngle+=i.arc;t.toNode||(i.endAngle=i.startAngle),i.radius=n.pixelInnerRadius}})),this._incomingSorted&&M.each(this._incomingSorted,(function(t){var i=t.link;if(i.radius=n.pixelInnerRadius,r.nonRibbon){var o=i.percentWidth;y.isNumber(o)||(o=5),o/=100,i.endAngle=s+a/2-a/2*o,i.arc=a*o}else{i.endAngle=e.nextAngle;var l=t.getWorkingValue("value");y.isNumber(l)&&(i.arc=l*r.valueAngle,e.nextAngle+=i.arc)}t.fromNode||(i.startAngle=i.endAngle)}))}},e.prototype.updateRotation=function(){var t=this.slice,e=this.trueStartAngle+t.arc/2,i=t.radius,n=i*c.cos(e),r=i*c.sin(e),o=c.getAngle({x:n+this.pixelX,y:r+this.pixelY});t.startAngle=this.trueStartAngle+(o-e),this.dx=-this.pixelX,this.dy=-this.pixelY},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},e}(ot);l.c.registeredClasses.ChordNode=Ct;var Tt=function(t){function e(){var e=t.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=Object(lt.c)(),e.applyTheme(),e}return r.c(e,t),e.prototype.draw=function(){if(y.isNumber(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2},i={x:this.cpx,y:this.cpy},n=h.moveTo(t)+h.quadraticCurveTo(e,i);this.path=n}},Object.defineProperty(e.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(t){this.setPropertyValue("cpx",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(t){this.setPropertyValue("cpy",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.cpx,y:this.cpy},n={x:this.x2,y:this.y2},r=c.getPointOnQuadraticCurve(e,n,i,t),o=c.getPointOnQuadraticCurve(e,n,i,t+.001);return{x:r.x,y:r.y,angle:c.getAngle(r,o)}},e}(ht.a),At=function(t){function e(){var e=t.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(Tt),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return r.c(e,t),e.prototype.validate=function(){if(t.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,i=this.endAngle,n=this.arc,r=this.radius,o=this.dataItem.fromNode,a=this.dataItem.toNode,s=0,l=0;o&&(s=o.pixelX+o.dx,l=o.pixelY+o.dy);var u=0,d=0;if(a&&(u=a.pixelX+a.dx,d=a.pixelY+a.dy),r>0){var p=r*c.cos(e)+s,f=r*c.sin(e)+l,g=r*c.cos(i)+u,m=r*c.sin(i)+d,y={x:0,y:0},v=h.moveTo({x:p,y:f});v+=h.arcTo(e,n,r),v+=h.quadraticCurveTo({x:g,y:m},y),v+=h.arcTo(i,n,r),v+=h.quadraticCurveTo({x:p,y:f},y),this.link.path=n>0?v:"",this.maskBullets&&(this.bulletsMask.path=v,this.bulletsContainer.mask=this.bulletsMask);var b=e+n/2,x=i+n/2,w=this.middleLine;w.x1=r*c.cos(b)+s,w.y1=r*c.sin(b)+l,w.x2=r*c.cos(x)+u,w.y2=r*c.sin(x)+d,w.cpx=0,w.cpy=0,w.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),e}(ut);l.c.registeredClasses.ChordLink=At;var Ot=function(t){function e(){var e=t.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return r.c(e,t),e}(ft),Mt=function(t){function e(){var e=t.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=Object(a.c)(80),e.innerRadius=-15,e.nodePadding=5;var i=e.chartContainer.createChild(p.a);return i.align="center",i.valign="middle",i.shouldClone=!1,i.layout="absolute",e.chordContainer=i,e.nodesContainer.parent=i,e.linksContainer.parent=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return r.c(e,t),e.prototype.validate=function(){var e=this,i=this.chartContainer,n=this.endAngle,r=this.startAngle+this.nodePadding/2,o=c.getArcRect(this.startAngle,this.endAngle,1);o=c.getCommonRectangle([o,{x:0,y:0,width:0,height:0}]);var a=Math.min(i.innerWidth/o.width,i.innerHeight/o.height);y.isNumber(a)||(a=0);var s=_.relativeRadiusToValue(this.radius,a),l=_.relativeRadiusToValue(this.innerRadius,s,!0),h=this.dataItem.values.value.sum,u=0,d=0;M.each(this._sorted,(function(t){var i=t[1];e.getNodeValue(i),u++;var n=i.total;i.total/h<e.minNodeSize&&(n=h*e.minNodeSize),d+=n})),this.valueAngle=(n-this.startAngle-this.nodePadding*u)/d,M.each(this._sorted,(function(t){var i=t[1],o=i.slice;o.radius=s,o.innerRadius=l;var a,c=i.total;i.total/h<e.minNodeSize&&(c=h*e.minNodeSize),i.adjustedTotal=c,a=e.nonRibbon?(n-e.startAngle)/u-e.nodePadding:e.valueAngle*c,o.arc=a,o.startAngle=r,i.trueStartAngle=r,i.parent=e.nodesContainer,i.validate(),r+=a+e.nodePadding})),this.chordContainer.definedBBox={x:s*o.x,y:s*o.y,width:s*o.width,height:s*o.height},this.chordContainer.invalidateLayout(),t.prototype.validate.call(this)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},e.prototype.createDataItem=function(){return new Ot},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(t){this.setPropertyValue("nonRibbon",t,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new Ct;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new At;return this._disposers.push(t),t},e}(gt);l.c.registeredClasses.ChordDiagram=Mt;var Et=i("pR7v"),It=i("5vid"),Dt=function(t){function e(){var e=t.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"parentName",{get:function(){var t=this.treeMapDataItem;if(t&&t.parent)return t.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.treeMapDataItem;if(t)return t.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,n,r){var o=this.treeMapDataItem;return o&&o.hide(e),t.prototype.hide.call(this,e,i,n,r)},e.prototype.show=function(e,i,n){var r=this.treeMapDataItem;return r&&r.show(e,i,n),t.prototype.show.call(this,e,i,n)},e}(It.b),Lt=function(t){function e(){var e=t.call(this)||this;e.className="TreeMapSeries",e.applyTheme(),e.fillOpacity=1,e.strokeOpacity=1,e.minBulletDistance=0,e.columns.template.tooltipText="{parentName} {name}: {value}",e.columns.template.configField="config";var i=new j.a;return e.stroke=i.getFor("background"),e.dataFields.openValueX="x0",e.dataFields.valueX="x1",e.dataFields.openValueY="y0",e.dataFields.valueY="y1",e.sequencedInterpolation=!1,e.showOnInit=!1,e.columns.template.pixelPerfect=!1,e}return r.c(e,t),e.prototype.processDataItem=function(e,i){i.seriesDataItem=e,t.prototype.processDataItem.call(this,e,i)},e.prototype.createDataItem=function(){return new Dt},e.prototype.show=function(e){if(!this.preventShow){var i=this.defaultState.transitionDuration;return y.isNumber(e)&&(i=e),this.dataItems.each((function(t){t.show(e)})),t.prototype.showReal.call(this,i)}},e.prototype.hide=function(e){var i=this.defaultState.transitionDuration;y.isNumber(e)&&(i=e);var n=t.prototype.hideReal.call(this,i);return this.dataItems.each((function(t){t.hide(e)})),n},e.prototype.processValues=function(){},e.prototype.getStartLocation=function(t){return 0},e.prototype.getEndLocation=function(t){return 1},e.prototype.dataChangeUpdate=function(){},e.prototype.processConfig=function(e){e&&(y.hasValue(e.dataFields)&&y.isObject(e.dataFields)||(e.dataFields={})),t.prototype.processConfig.call(this,e)},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n=t.createChild(it.a);n.shouldClone=!1,nt.copyProperties(this,n,J.b),n.padding(0,0,0,0),n.width=e,n.height=i;var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill},e}(It.a);l.c.registeredClasses.TreeMapSeries=Lt,l.c.registeredClasses.TreeMapSeriesDataItem=Dt;var jt=i("qCRI"),Nt=i("hJ5i"),Ft=function(t){function e(){var e=t.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,t.label&&(t.label.dataItem=this),t.valueLabel&&(t.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),e.prototype.getDuration=function(){return 0},Object.defineProperty(e.prototype,"value",{get:function(){var t=0;return this.children&&0!=this.children.length?M.each(this.children.iterator(),(function(e){var i=e.value;y.isNumber(i)&&(t+=i)})):t=this.values.value.workingValue,t},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x0",{get:function(){return this.values.x0.value},set:function(t){this.setValue("x0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x1",{get:function(){return this.values.x1.value},set:function(t){this.setValue("x1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y0",{get:function(){return this.values.y0.value},set:function(t){this.setValue("y0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.values.y1.value},set:function(t){this.setValue("y1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.properties.children},set:function(t){this.setProperty("children",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){var t=this.properties.color;return null==t&&this.parent&&(t=this.parent.color),null==t&&this.component&&(t=this.component.colors.getIndex(this.component.colors.step*this.index)),t},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(t){t!=this._series&&(this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=t,this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,n,r){this.setWorkingValue("value",0),this.children&&this.children.each((function(t){t.hide(e,i,n,r)}));var o=this.seriesDataItem;return o&&o.bullets.each((function(t,e){e.hide(),e.preventShow=!0})),t.prototype.hide.call(this,e,i,n,r)},e.prototype.show=function(e,i,n){this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each((function(t){t.show(e,i,n)}));var r=this.seriesDataItem;return r&&r.bullets.each((function(t,e){e.preventShow=!1})),t.prototype.show.call(this,e,i,n)},e}(o.b),Rt=function(t){function e(){var e=t.call(this)||this;e.layoutAlgorithm=e.squarify,e.zoomable=!0,e.className="TreeMap",e._usesData=!0,e.maxLevels=2,e.currentLevel=0,e.hideParentColumns=!1,e.colors=new pt.a,e.sorting="descending";var i=e.xAxes.push(new Et.a);i.title.disabled=!0,i.strictMinMax=!0;var n=i.renderer;n.inside=!0,n.labels.template.disabled=!0,n.ticks.template.disabled=!0,n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.minGridDistance=100,n.line.disabled=!0,n.baseGrid.disabled=!0;var r=e.yAxes.push(new Et.a);r.title.disabled=!0,r.strictMinMax=!0;var o=r.renderer;o.inside=!0,o.labels.template.disabled=!0,o.ticks.template.disabled=!0,o.grid.template.disabled=!0,o.axisFills.template.disabled=!0,o.minGridDistance=100,o.line.disabled=!0,o.baseGrid.disabled=!0,o.inversed=!0,e.xAxis=i,e.yAxis=r;var a=new Lt;return e.seriesTemplates=new Z.c(a),a.virtualParent=e,e._disposers.push(new Z.b(e.seriesTemplates)),e._disposers.push(a),e.zoomOutButton.events.on("hit",(function(){e.zoomToChartDataItem(e._homeDataItem)}),void 0,!1),e.seriesTemplates.events.on("insertKey",(function(t){t.newValue.isTemplate=!0}),void 0,!1),e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(t){var e=this;this._navigationBar!=t&&(this._navigationBar=t,t.parent=this,t.toBack(),t.links.template.events.on("hit",(function(t){var i=t.target.dataItem.dataContext;i.isDisposed()||(e.zoomToChartDataItem(i),e.createTreeSeries(i))}),void 0,!0),this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],t.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.clone();this._homeDataItem=e,M.each(this.dataItems.iterator(),(function(t){t.parent=e})),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var i=10*Math.round(1e3*this.pixelHeight/this.pixelWidth/10)||1e3;e.x1=1e3,e.y1=i,this.xAxis.min=0,this.xAxis.max=1e3,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=i,this.yAxis.getMinMax(),this.layoutItems(e),this.createTreeSeries(e)},e.prototype.layoutItems=function(t,e){if(t){var i=t.children;e||(e=this.sorting),"ascending"==e&&i.values.sort((function(t,e){return t.value-e.value})),"descending"==e&&i.values.sort((function(t,e){return e.value-t.value})),this._updateDataItemIndexes(0),this.layoutAlgorithm(t);for(var n=0,r=i.length;n<r;n++){var o=i.getIndex(n);o.children&&this.layoutItems(o)}}},e.prototype.createTreeSeries=function(t){var e=this;this._tempSeries=[];for(var i=[t],n=t.parent;null!=n;)this.initSeries(n),i.push(n),n=n.parent;i.reverse(),this.navigationBar&&(this.navigationBar.data=i),this.createTreeSeriesReal(t),Nt.each(this._tempSeries,(function(t){-1==e.series.indexOf(t)&&e.series.push(t),t.zIndex=t.level}))},e.prototype.createTreeSeriesReal=function(t){if(t.children&&t.level<this.currentLevel+this.maxLevels){this.initSeries(t);for(var e=0;e<t.children.length;e++){var i=t.children.getIndex(e);i.children&&this.createTreeSeriesReal(i)}}},e.prototype.setData=function(e){this.currentLevel=0,this.currentlyZoomed=void 0,this.xAxis.start=0,this.xAxis.end=1,this.yAxis.start=0,this.yAxis.end=1,t.prototype.setData.call(this,e)},e.prototype.seriesAppeared=function(){return!0},e.prototype.initSeries=function(t){var e=this;if(!t.series){var i=void 0,n=this.seriesTemplates.getKey(t.level.toString());(i=n?n.clone():this.series.create()).dataItem.dataContext=t,i.name=t.name,i.parentDataItem=t,t.series=i;var r=t.level;i.level=r;var o=t.dataContext;o&&(i.config=o.config),this.dataUsers.removeValue(i),i.data=t.children.values,i.fill=t.color,i.columnsContainer.hide(0),i.bulletsContainer.hide(0),i.columns.template.adapter.add("fill",(function(t,e){var i=e.dataItem;if(i){var n=i.treeMapDataItem;if(n)return e.fill=n.color,e.adapter.remove("fill"),n.color}})),this.zoomable&&(t.level>this.currentLevel||t.children&&t.children.length>0)&&(i.columns.template.cursorOverStyle=jt.a.pointer,this.zoomable&&i.columns.template.events.on("hit",(function(i){var n=i.target.dataItem;t.level>e.currentLevel?e.zoomToChartDataItem(n.treeMapDataItem.parent):e.zoomToSeriesDataItem(n)}),this,void 0))}this._tempSeries.push(t.series)},e.prototype.toggleBullets=function(t){var e=this;M.each(this.series.iterator(),(function(i){-1==e._tempSeries.indexOf(i)?(i.columnsContainer.hide(),i.bulletsContainer.hide(t)):(i.columnsContainer.show(),i.bulletsContainer.show(t),i.dataItems.each((function(t){t.bullets.each((function(t,e){e.show()}))})),i.level<e.currentLevel?(e.hideParentColumns&&i.columnsContainer.hide(),i.bulletsContainer.hide(t)):i.level==e.currentLevel&&e.maxLevels>1&&i.dataItems.each((function(t){t.treeMapDataItem.children&&t.bullets.each((function(t,e){e.hide()}))})))}))},e.prototype.zoomToSeriesDataItem=function(t){this.zoomToChartDataItem(t.treeMapDataItem)},e.prototype.zoomToChartDataItem=function(t){var e=this,i=this.zoomOutButton;if(i&&(t!=this._homeDataItem?i.show():i.hide()),t&&t.children){this.xAxis.zoomToValues(t.x0,t.x1),this.yAxis.zoomToValues(t.y0,t.y1),this.currentLevel=t.level,this.currentlyZoomed=t,this.createTreeSeries(t);var n=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;!n||n.isDisposed()||n.isFinished()?this.toggleBullets():(this._dataDisposers.push(n),n.events.once("animationended",(function(){e.toggleBullets()})))}},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},e.prototype.createDataItem=function(){return new Ft},Object.defineProperty(e.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(t){this.setPropertyValue("maxLevels",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(t){this.setPropertyValue("currentLevel",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(t){this.setPropertyValue("hideParentColumns",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(t){this.setPropertyValue("sorting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new Lt},Object.defineProperty(e.prototype,"homeText",{get:function(){return this._homeText},set:function(t){this._homeText=t,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e){if(y.hasValue(e.layoutAlgorithm)&&y.isString(e.layoutAlgorithm))switch(e.layoutAlgorithm){case"squarify":e.layoutAlgorithm=this.squarify;break;case"binaryTree":e.layoutAlgorithm=this.binaryTree;break;case"slice":e.layoutAlgorithm=this.slice;break;case"dice":e.layoutAlgorithm=this.dice;break;case"sliceDice":e.layoutAlgorithm=this.sliceDice;break;default:delete e.layoutAlgorithm}y.hasValue(e.navigationBar)&&!y.hasValue(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),t.prototype.processConfig.call(this,e)}},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),M.each(this.series.iterator(),(function(t){t.validateRawData()})),this.zoomToChartDataItem(this._homeDataItem)},e.prototype.binaryTree=function(t){var e,i,n=t.children,r=n.length,o=new Array(r+1);for(o[0]=i=e=0;e<r;++e)o[e+1]=i+=n.getIndex(e).value;!function t(e,i,r,a,s,l,c){if(e>=i-1){var h=n.getIndex(e);return h.x0=a,h.y0=s,h.x1=l,void(h.y1=c)}for(var u=o[e],d=r/2+u,p=e+1,f=i-1;p<f;){var g=p+f>>>1;o[g]<d?p=g+1:f=g}d-o[p-1]<o[p]-d&&e+1<p&&--p;var m=o[p]-u,y=r-m;if(l-a>c-s){var v=(a*y+l*m)/r;t(e,p,m,a,s,v,c),t(p,i,y,v,s,l,c)}else{var b=(s*y+c*m)/r;t(e,p,m,a,s,l,b),t(p,i,y,a,b,l,c)}}(0,r,t.value,t.x0,t.y0,t.x1,t.y1)},e.prototype.slice=function(t){for(var e,i=t.x0,n=t.x1,r=t.y0,o=t.y1,a=t.children,s=-1,l=a.length,c=t.value&&(o-r)/t.value;++s<l;)(e=a.getIndex(s)).x0=i,e.x1=n,e.y0=r,r+=e.value*c,e.y1=r},e.prototype.dice=function(t){for(var e,i=t.x0,n=t.x1,r=t.y0,o=t.y1,a=t.children,s=-1,l=a.length,c=t.value&&(n-i)/t.value;++s<l;)(e=a.getIndex(s)).y0=r,e.y1=o,e.x0=i,i+=e.value*c,e.x1=i},e.prototype.sliceDice=function(t){1&t.level?this.slice(t):this.dice(t)},e.prototype.squarify=function(t){for(var e,i,n,r,o,a,s,l,c,h,u=(1+Math.sqrt(5))/2,d=t.x0,p=t.x1,f=t.y0,g=t.y1,m=t.children,y=0,v=0,b=m.length,x=t.value;y<b;){i=p-d,n=g-f;do{r=m.getIndex(v++).value}while(!r&&v<b);for(o=a=r,h=r*r*(c=Math.max(n/i,i/n)/(x*u)),l=Math.max(a/h,h/o);v<b;++v){if(r+=e=m.getIndex(v).value,e<o&&(o=e),e>a&&(a=e),h=r*r*c,(s=Math.max(a/h,h/o))>l){r-=e;break}l=s}var w=this.dataItems.template.clone();w.value=r,w.dice=i<n,w.children=m.slice(y,v),w.x0=d,w.y0=f,w.x1=p,w.y1=g,w.dice?(w.y1=x?f+=n*r/x:g,this.dice(w)):(w.x1=x?d+=i*r/x:p,this.slice(w)),x-=r,y=v}},e.prototype.handleSeriesAdded2=function(){},e.prototype.handleDataItemValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.getLegendLevel=function(t){if(t&&t.children)return t.children.length>1?t:1==t.children.length?this.getLegendLevel(t.children.getIndex(0)):t},e.prototype.feedLegend=function(){var t=this.legend;if(t){t.dataFields.name="name";var e=this.getLegendLevel(this._homeDataItem);if(e){var i=[];e.children.each((function(t){i.push(t)})),t.data=i}}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},e.prototype.getExporting=function(){var e=this,i=t.prototype.getExporting.call(this);return i.adapter.add("formatDataFields",(function(t){return"csv"!=t.format&&"xlsx"!=t.format||y.hasValue(e.dataFields.children)&&delete t.dataFields[e.dataFields.children],t})),i},e}(o.a);l.c.registeredClasses.TreeMap=Rt;var Vt=i("k6kv"),zt=function(t){function e(){var e=t.call(this)||this;return e._chart=new A.d,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return r.c(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.chart.dx3D||0,o=this.chart.dy3D||0,a=this.getHeight();t.path=h.moveTo({x:r,y:o})+h.lineTo({x:r,y:a+o})+h.lineTo({x:0,y:a})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),i=this.chart.dx3D||0,n=this.chart.dy3D||0;this.baseGrid.path=h.moveTo({x:i,y:n})+h.lineTo({x:0,y:0})+h.lineTo({x:0,y:e})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(Vt.a);l.c.registeredClasses.AxisRendererX3D=zt;var Bt=function(t){function e(){var e=t.call(this)||this;return e._chart=new A.d,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return r.c(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.chart.dx3D||0,o=this.chart.dy3D||0,a=this.getWidth();t.path=h.moveTo({x:0,y:0})+h.lineTo({x:r,y:o})+h.lineTo({x:a+r,y:o})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,i=this.chart.dy3D||0,n=this.getWidth();this.baseGrid.path=h.moveTo({x:0,y:0})+h.lineTo({x:n,y:0})+h.lineTo({x:n+e,y:i})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(k.a),Ht=i("DG6Q"),Wt=i("Mr4Y"),Xt=function(t){function e(){var e=t.call(this)||this;return e.className="Column3D",e}return r.c(e,t),e.prototype.createAssets=function(){this.column3D=this.createChild(Wt.a),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},e.prototype.validate=function(){t.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},e.prototype.setFill=function(e){t.prototype.setFill.call(this,e),this.column.fill=e},e}(Ht.a);l.c.registeredClasses.Column3D=Xt;var Yt=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return r.c(e,t),e}(It.b),Gt=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){var t=this.chart;return t&&t.columnsContainer&&"vertical"!=t.leftAxesContainer.layout&&"vertical"!=t.rightAxesContainer.layout&&"horizontal"!=t.bottomAxesContainer.layout&&"horizontal"!=t.topAxesContainer.layout?t.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy)},e.prototype.validateDataElements=function(){t.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},e.prototype.createColumnTemplate=function(){return new Xt},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0),this.columns.template.column3D.depth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.columns.template.column3D.angle=t},enumerable:!0,configurable:!0}),e}(It.a);l.c.registeredClasses.ColumnSeries3D=Gt,l.c.registeredClasses.ColumnSeries3DDataItem=Yt;var Ut=function(t){function e(){var e=t.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}return r.c(e,t),e}(o.b),qt=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=zt,e._axisRendererY=Bt,e.className="XYChart3D",e.depth=30,e.angle=30;var i=e.seriesContainer.createChild(p.a);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e.columnsContainer=i,e.columnsContainer.mask=e.createChild(J.a),e.applyTheme(),e}return r.c(e,t),e.prototype.updateSeriesMasks=function(){if(t.prototype.updateSeriesMasks.call(this),_.isIE()){var e=this.columnsContainer,i=e.mask;e.mask=void 0,e.mask=i}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx3D",{get:function(){return c.cos(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy3D",{get:function(){return-c.sin(this.angle)*this.depth},enumerable:!0,configurable:!0}),e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.fixColumns()},e.prototype.fixLayout=function(){this.chartContainer.marginTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),t.prototype.fixLayout.call(this)},e.prototype.fixColumns=function(){var t=this,e=1,i=0;M.each(this.series.iterator(),(function(t){t instanceof Gt&&(!t.clustered&&i>0&&e++,t.depthIndex=e-1,i++)}));var n=0;M.each(this.series.iterator(),(function(i){if(i instanceof Gt){i.depth=t.depth/e,i.angle=t.angle,i.columnsContainer==t.columnsContainer&&(i.dx=t.depth/e*c.cos(t.angle)*i.depthIndex,i.dy=-t.depth/e*c.sin(t.angle)*i.depthIndex);var r=!1;(i.baseAxis==i.xAxis&&i.xAxis.renderer.inversed||i.baseAxis==i.yAxis&&i.yAxis.renderer.inversed)&&(r=!0);var o=1;i.dataItems.each((function(t){var e=t.column;e&&(e.zIndex=r?1e3*(1e3-o)+n-100*i.depthIndex:1e3*o+n-100*i.depthIndex,o++)})),r?n--:n++}})),this.maskColumns()},e.prototype.processConfig=function(e){if(e&&y.hasValue(e.series)&&y.isArray(e.series))for(var i=0,n=e.series.length;i<n;i++)e.series[i].type=e.series[i].type||"ColumnSeries3D";t.prototype.processConfig.call(this,e)},e.prototype.maskColumns=function(){var t=this.plotContainer.pixelWidth,e=this.plotContainer.pixelHeight,i=this.dx3D,n=this.dy3D,r=h.moveTo({x:0,y:0})+h.lineTo({x:i,y:n})+h.lineTo({x:t+i,y:n})+h.lineTo({x:t+i,y:e+n})+h.lineTo({x:t,y:e})+h.lineTo({x:t,y:e})+h.lineTo({x:0,y:e})+h.closePath(),o=this.columnsContainer;o&&o.mask&&(o.mask.path=r)},e}(o.a);l.c.registeredClasses.XYChart3D=qt;var $t=i("2OXf"),Kt=i("aM7D"),Zt=i("Uf57"),Jt=i("YOID"),Qt=function(t){function e(){var e=t.call(this)||this;return e.className="Candlestick",e.layout="none",e}return r.c(e,t),e.prototype.createAssets=function(){t.prototype.createAssets.call(this),this.lowLine=this.createChild(ht.a),this.lowLine.shouldClone=!1,this.highLine=this.createChild(ht.a),this.highLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},e}(Ht.a);l.c.registeredClasses.Candlestick=Qt;var te=function(t){function e(){var e=t.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(t){this.setValue("lowValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(t){this.setValue("lowValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(t){this.setValue("highValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(t){this.setValue("highValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),e}(It.b),ee=function(t){function e(){var e=t.call(this)||this;e.className="CandlestickSeries",e.groupFields.lowValueX="low",e.groupFields.lowValueY="low",e.groupFields.highValueX="high",e.groupFields.highValueY="high",e.strokeOpacity=1;var i=new j.a,n=i.getFor("positive"),r=i.getFor("negative");return e.dropFromOpenState.properties.fill=r,e.dropFromOpenState.properties.stroke=r,e.riseFromOpenState.properties.fill=n,e.riseFromOpenState.properties.stroke=n,e.applyTheme(),e}return r.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},e.prototype.createDataItem=function(){return new te},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.lowLine,n=e.highLine;if(this.baseAxis==this.xAxis){var r=e.pixelWidth/2;i.x=r,n.x=r;var o=t.getWorkingValue(this.yOpenField),a=t.getWorkingValue(this.yField),s=this.yAxis.getY(t,this.yOpenField),l=this.yAxis.getY(t,this.yField),c=this.yAxis.getY(t,this.yLowField),h=this.yAxis.getY(t,this.yHighField),u=e.pixelY;i.y1=c-u,n.y1=h-u,o<a?(i.y2=s-u,n.y2=l-u):(i.y2=l-u,n.y2=s-u)}if(this.baseAxis==this.yAxis){var d=e.pixelHeight/2;i.y=d,n.y=d;var p=t.getWorkingValue(this.xOpenField),f=t.getWorkingValue(this.xField),g=this.xAxis.getX(t,this.xOpenField),m=this.xAxis.getX(t,this.xField),y=this.xAxis.getX(t,this.xLowField),v=this.xAxis.getX(t,this.xHighField),b=e.pixelX;i.x1=y-b,n.x1=v-b,p<f?(i.x2=g-b,n.x2=m-b):(i.x2=m-b,n.x2=g-b)}M.each(this.axisRanges.iterator(),(function(e){var r=t.rangesColumns.getKey(e.uid);if(r){var o=r.lowLine;o.x=i.x,o.y=i.y,o.x1=i.x1,o.x2=i.x2,o.y1=i.y1,o.y2=i.y2;var a=r.highLine;a.x=n.x,a.y=n.y,a.x1=n.x1,a.x2=n.x2,a.y1=n.y1,a.y2=n.y2}}))}},Object.defineProperty(e.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),e.prototype.defineFields=function(){t.prototype.defineFields.call(this);var e=this.xAxis,i=this.yAxis;if(e&&i){if(this.baseAxis==e){var n=_.capitalize(i.axisFieldName);this._yLowField="low"+n+"Y",this._yHighField="high"+n+"Y"}if(this.baseAxis==i){var r=_.capitalize(e.axisFieldName);this._xLowField="low"+r+"X",this._xHighField="high"+r+"X"}this.addValueField(e,this._xValueFields,this._xLowField),this.addValueField(e,this._xValueFields,this._xHighField),this.addValueField(i,this._yValueFields,this._yLowField),this.addValueField(i,this._yValueFields,this._yHighField)}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n,r,o=t.createChild(Qt);o.shouldClone=!1,o.copyFrom(this.columns.template);var a=o.lowLine,s=o.highLine;this.baseAxis==this.yAxis?(n=e/3,r=i,a.y=i/2,s.y=i/2,a.x2=e/3,s.x2=e/3,s.x=e/3*2,o.column.x=e/3):(n=e,r=i/3,a.x=e/2,s.x=e/2,a.y2=i/3,s.y2=i/3,s.y=i/3*2,o.column.y=i/3),o.width=n,o.height=r,nt.copyProperties(this,t,J.b),nt.copyProperties(this.columns.template,o,J.b),o.stroke=this.riseFromOpenState.properties.stroke,o.fill=o.stroke;var l=t.dataItem;l.color=o.fill,l.colorOrig=o.fill},e.prototype.createColumnTemplate=function(){return new Qt},e}(It.a);l.c.registeredClasses.CandlestickSeries=ee,l.c.registeredClasses.CandlestickSeriesDataItem=te;var ie=function(t){function e(){var e=t.call(this)||this;return e.className="OHLC",e.layout="none",e}return r.c(e,t),e.prototype.createAssets=function(){this.openLine=this.createChild(ht.a),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(ht.a),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(ht.a),this.closeLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.openLine&&this.openLine.copyFrom(e.openLine),this.highLowLine&&this.highLowLine.copyFrom(e.highLowLine),this.closeLine&&this.closeLine.copyFrom(e.closeLine)},e}(Qt);l.c.registeredClasses.OHLC=ie;var ne=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return r.c(e,t),e}(te),re=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return r.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},e.prototype.createDataItem=function(){return new ne},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.openLine,n=e.highLowLine,r=e.closeLine;if(this.baseAxis==this.xAxis){var o=e.pixelWidth/2;n.x=o,t.getWorkingValue(this.yOpenField),t.getWorkingValue(this.yField);var a=this.yAxis.getY(t,this.yOpenField),s=this.yAxis.getY(t,this.yField),l=this.yAxis.getY(t,this.yLowField),c=this.yAxis.getY(t,this.yHighField),h=e.pixelY;i.y1=a-h,i.y2=a-h,i.x1=0,i.x2=o,r.y1=s-h,r.y2=s-h,r.x1=o,r.x2=2*o,n.y1=c-h,n.y2=l-h}if(this.baseAxis==this.yAxis){var u=e.pixelHeight/2;n.y=u,t.getWorkingValue(this.xOpenField),t.getWorkingValue(this.xField);var d=this.xAxis.getX(t,this.xOpenField),p=this.xAxis.getX(t,this.xField),f=this.xAxis.getX(t,this.xLowField),g=this.xAxis.getX(t,this.xHighField),m=e.pixelX;i.x1=d-m,i.x2=d-m,i.y1=u,i.y2=2*u,r.x1=p-m,r.x2=p-m,r.y1=0,r.y2=u,n.x1=g-m,n.x2=f-m}M.each(this.axisRanges.iterator(),(function(e){var o=t.rangesColumns.getKey(e.uid);if(o){var a=o.openLine;a.x=i.x,a.y=i.y,a.x1=i.x1,a.x2=i.x2,a.y1=i.y1,a.y2=i.y2;var s=o.closeLine;s.x=r.x,s.y=r.y,s.x1=r.x1,s.x2=r.x2,s.y1=r.y1,s.y2=r.y2;var l=o.highLowLine;l.x=n.x,l.y=n.y,l.x1=n.x1,l.x2=n.x2,l.y1=n.y1,l.y2=n.y2}}))}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n,r,o=t.createChild(ie);o.shouldClone=!1,o.copyFrom(this.columns.template);var a=o.openLine,s=o.closeLine,l=o.highLowLine;this.baseAxis==this.yAxis?(n=e/3,r=i,l.y=i/2,l.x2=e,a.x=e/3*2,a.y2=i/2,s.x=e/3,s.y2=i,s.y1=i/2):(n=e,r=i/3,l.x=e/2,l.y2=i,a.y=i/3*2,a.x2=e/2,s.y=i/3,s.x2=e,s.x1=e/2),o.width=n,o.height=r,nt.copyProperties(this,t,J.b),nt.copyProperties(this.columns.template,o,J.b),o.stroke=this.riseFromOpenState.properties.stroke;var c=t.dataItem;c.color=o.stroke,c.colorOrig=o.stroke},e.prototype.createColumnTemplate=function(){return new ie},e}(ee);l.c.registeredClasses.OHLCSeries=re,l.c.registeredClasses.OHLCSeriesDataItem=ne;var oe=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesSegment",e}return r.c(e,t),e.prototype.drawSegment=function(t,e,i,n,r,o){if(t.length>0&&e.length>0)if(r){var a=h.moveTo(t[0]);if(t.length>0)for(var s=1;s<t.length;s++){var l=t[s];s/2==Math.round(s/2)?a+=h.moveTo(l):a+=h.lineTo(l)}this.strokeSprite.path=a,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(a=h.moveTo(t[0])+h.polyline(t),a+=h.lineTo(e[0])+h.polyline(e),a+=h.lineTo(t[0]),a+=h.closePath(),this.fillSprite.path=a)}else a=h.moveTo(t[0])+h.polyline(t),this.strokeSprite.path=a,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(a+=h.lineTo(e[0])+h.polyline(e),a+=h.lineTo(t[0]),a+=h.closePath(),this.fillSprite.path=a)},e}(Jt.a);l.c.registeredClasses.StepLineSeriesSegment=oe;var ae=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return r.c(e,t),e}(s.b),se=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return r.c(e,t),e.prototype.createDataItem=function(){return new ae},e.prototype.addPoints=function(t,e,i,n,r){var o,a,s,l;this.baseAxis==this.xAxis&&(o=this.startLocation,a=this.endLocation,s=this.getAdjustedXLocation(e,this.yOpenField),l=this.getAdjustedXLocation(e,this.yField)),this.baseAxis==this.yAxis&&(s=this.startLocation,l=this.endLocation,o=this.getAdjustedXLocation(e,this.xOpenField),a=this.getAdjustedXLocation(e,this.xField));var h=this.xAxis.getX(e,i,o),u=this.yAxis.getY(e,n,s),d=this.xAxis.getX(e,i,a),p=this.yAxis.getY(e,n,l);if(h=c.fitToRange(h,-1e5,1e5),u=c.fitToRange(u,-1e5,1e5),d=c.fitToRange(d,-1e5,1e5),p=c.fitToRange(p,-1e5,1e5),!this.noRisers&&t.length>1){var f=t[t.length-1];this.baseAxis==this.xAxis&&(r?t.push({x:f.x,y:p}):t.push({x:h,y:f.y})),this.baseAxis==this.yAxis&&(r?t.push({x:d,y:f.y}):t.push({x:f.x,y:u}))}var g={x:h,y:u},m={x:d,y:p};r?t.push(m,g):t.push(g,m)},e.prototype.drawSegment=function(t,e,i){var n=!1;this.yAxis==this.baseAxis&&(n=!0),t.drawSegment(e,i,this.tensionX,this.tensionY,this.noRisers,n)},e.prototype.createSegment=function(){return new oe},Object.defineProperty(e.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(t){this.setPropertyValue("noRisers",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e}(s.a);l.c.registeredClasses.StepLineSeries=se,l.c.registeredClasses.StepLineSeriesDataItem=ae;var le=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumn",e}return r.c(e,t),e.prototype.createAssets=function(){this.radarColumn=this.createChild(kt.a),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return y.isNumber(t)?t:this.radarColumn.getTooltipX()},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipX");return y.isNumber(t)?t:this.radarColumn.getTooltipY()},e}(Ht.a);l.c.registeredClasses.RadarColumn=le;var ce=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return r.c(e,t),e}(It.b),he=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return r.c(e,t),e.prototype.createColumnTemplate=function(){return new le},e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.__disabled=!0),M.each(this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.__disabled=!0)})))},e.prototype.validateDataElementReal=function(t){var e,i,n,r,o=this,s=this.chart.startAngle,l=this.chart.endAngle,h=this.yField,u=this.yOpenField,d=this.xField,p=this.xOpenField,f=this.getStartLocation(t),g=this.getEndLocation(t),m=(l-s)/(this.dataItems.length*(this.end-this.start)),y=t.column;y||(y=this.columns.create(),t.column=y,nt.forceCopyProperties(this.columns.template,y,J.b),t.addSprite(y),y.paper=this.paper,this.setColumnStates(y));var v=y.width,b=100;v instanceof a.a&&(b=v.percent);var x=c.round((g-f)*(1-b/100)/2,5);if(f+=x,g-=x,this.baseAxis==this.xAxis?(n=c.getDistance({x:this.yAxis.getX(t,h,t.locations[h],"valueY"),y:this.yAxis.getY(t,h,t.locations[h],"valueY")}),r=c.getDistance({x:this.yAxis.getX(t,u,t.locations[u],"valueY"),y:this.yAxis.getY(t,u,t.locations[u],"valueY")}),e=this.xAxis.getAngle(t,p,f,"valueX"),i=this.xAxis.getAngle(t,d,g,"valueX"),s+=f*m,l-=(1-g)*m):(n=c.getDistance({x:this.yAxis.getX(t,h,f,"valueY"),y:this.yAxis.getY(t,h,f,"valueY")}),r=c.getDistance({x:this.yAxis.getX(t,u,g,"valueY"),y:this.yAxis.getY(t,u,g,"valueY")}),e=this.xAxis.getAngle(t,d,t.locations[d],"valueX"),i=this.xAxis.getAngle(t,p,t.locations[p],"valueX")),i<e){var w=i;i=e,e=w}e=c.fitToRange(e,s,l),i=c.fitToRange(i,s,l);var _=y.radarColumn;_.startAngle=e;var S=i-e;S>0?(_.arc=S,_.radius=n,_.innerRadius=r,y.__disabled=!1,y.parent=this.columnsContainer,M.each(this.axisRanges.iterator(),(function(i){var a=t.rangesColumns.getKey(i.uid);a||(a=o.columns.create(),nt.forceCopyProperties(o.columns.template,a,J.b),nt.copyProperties(i.contents,a,J.b),a.dataItem&&Nt.remove(a.dataItem.sprites,a),t.addSprite(a),a.paper=o.paper,o.setColumnStates(a),t.rangesColumns.setKey(i.uid,a));var s=a.radarColumn;s.startAngle=e,s.arc=S,s.radius=n,s.innerRadius=r,s.invalid&&(s.paper=o.paper,s.validate()),a.__disabled=!1,a.parent=i.contents}))):this.disableUnusedColumns(t)},e.prototype.getPoint=function(t,e,i,n,r,o,a){o||(o="valueX"),a||(a="valueY");var s=this.yAxis.getX(t,i,r,a),l=this.yAxis.getY(t,i,r,a),h=c.getDistance({x:s,y:l});0==h&&(h=1e-5);var u=this.xAxis.getAngle(t,e,n,o);return{x:h*c.cos(u),y:h*c.sin(u)}},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return h.arc(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.positionBulletReal=function(t,e,i){var n=this.xAxis,r=this.yAxis;(e<n.start||e>n.end||i<r.start||i>r.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,i))},e.prototype.setXAxis=function(e){t.prototype.setXAxis.call(this,e),this.updateRendererRefs()},e.prototype.setYAxis=function(e){t.prototype.setYAxis.call(this,e),this.updateRendererRefs()},e.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},e}(It.a);l.c.registeredClasses.RadarColumnSeries=he,l.c.registeredClasses.RadarColumnSeriesDataItem=ce;var ue=i("AC2I"),de=function(t){function e(){var e=t.call(this)||this;return e.slice=e.createChild(J.a),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=Object(a.c)(100),e.topWidth=Object(a.c)(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return r.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelPaddingTop,i=this.pixelPaddingBottom,n=this.pixelPaddingRight,r=this.pixelPaddingLeft,o=this.pixelWidth-n-r,a=this.pixelHeight-e-i,s=this.expandDistance,l="";if("vertical"==this.orientation){var c={x:(o-(v=_.relativeToValue(this.topWidth,o)))/2+r,y:e},u={x:(o+v)/2+r,y:e},d={x:(o+(b=_.relativeToValue(this.bottomWidth,o)))/2+r,y:e+a},p={x:(o-b)/2+r,y:e+a},f={x:u.x+(d.x-u.x)/2+s*a,y:u.y+.5*a},g={x:c.x+(p.x-c.x)/2-s*a,y:c.y+.5*a},m=h.lineTo(d),y="";0!=s&&(m=h.quadraticCurveTo(d,f),y=h.quadraticCurveTo(c,g)),l=h.moveTo(c)+h.lineTo(u)+m+h.lineTo(p)+y,this.tickPoint={x:u.x+(d.x-u.x)/2,y:u.y+(d.y-u.y)/2}}else{var v,b,x={x:r,y:(a-(v=_.relativeToValue(this.topWidth,a)))/2+e},w={x:r,y:(a+v)/2+e},S={x:r+o,y:(a-(b=_.relativeToValue(this.bottomWidth,a)))/2+e},P={x:r+o,y:(a+b)/2+e};f={y:x.y+(S.y-x.y)/2-s*o,x:x.x+.5*o},g={y:w.y+(P.y-w.y)/2+s*o,x:w.x+.5*o},m=h.lineTo(S),y="",0!=s&&(m=h.quadraticCurveTo(S,f),y=h.quadraticCurveTo(w,g)),l=h.moveTo(w)+h.lineTo(x)+m+h.lineTo(P)+y,this.tickPoint={y:w.y+(P.y-w.y)/2,x:w.x+(P.x-w.x)/2}}this.slice.path=l,this.invalidateLayout()},e.prototype.getPoint=function(t,e){var i=this.pixelPaddingTop,n=this.pixelPaddingBottom,r=this.pixelPaddingRight,o=this.pixelPaddingLeft,a=this.pixelWidth-r-o,s=this.pixelHeight-i-n;if("vertical"==this.orientation){var l={x:(a-(d=_.relativeToValue(this.topWidth,a)))/2+o,y:i},c={x:(a+d)/2+o,y:i},h={x:(a+(p=_.relativeToValue(this.bottomWidth,a)))/2+o,y:i+s},u=l.x+((a-p)/2+o-l.x)*e;return{x:u+(c.x+(h.x-c.x)*e-u)*t,y:c.y+(h.y-c.y)*e}}var d,p,f=o,g=(s-(d=_.relativeToValue(this.topWidth,s)))/2+i,m=(s+d)/2+i,y=o+a,v=g+((s-(p=_.relativeToValue(this.bottomWidth,s)))/2+i-g)*t;return{y:v+(m+((s+p)/2+i-m)*t-v)*e,x:f+(y-f)*t}},Object.defineProperty(e.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(t){this.setPropertyValue("expandDistance",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},e}(p.a);l.c.registeredClasses.FunnelSlice=de;var pe=i("qzbU"),fe=function(t){function e(){var e=t.call(this)||this;return e._label=new A.d,e._slice=new A.d,e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return r.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=e.getPoint(this.locationX,this.locationY);if(i){var n=this.label,r=e.dataItem.component,o=void 0,a=void 0,s=void 0;if("vertical"==r.orientation){var l=n.pixelX,c=n.pixelY;r.labelsOpposite||(l+=n.maxRight),o=_.spritePointToSprite(i,e,this.parent),s=_.spritePointToSprite({x:l,y:c},n.parent,this.parent),a={x:n.parent.pixelX-this.length,y:s.y},r.labelsOpposite||(a.x=n.parent.measuredWidth+this.length)}else l=n.pixelX,c=n.pixelY,r.labelsOpposite||(c+=n.maxBottom),o=_.spritePointToSprite(i,e,this.parent),a={x:(s=_.spritePointToSprite({x:l,y:c},n.parent,this.parent)).x,y:n.parent.pixelY-this.length},r.labelsOpposite||(a.y=n.parent.measuredHeight+this.length);this.path=h.moveTo(o)+h.lineTo(a)+h.lineTo(s)}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new A.c([t.events.on("transformed",this.invalidate,this,!1),t.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){this.setPropertyValue("locationX",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){this.setPropertyValue("locationY",t,!1,!0)},enumerable:!0,configurable:!0}),e}(pe.a);l.c.registeredClasses.FunnelTick=fe;var ge=function(t){function e(){var e=t.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",(function(){e.component&&e.component.invalidateDataItems()}),e,!1),e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"sliceLink",{get:function(){var t=this;if(!this._sliceLink){var e=this.component.sliceLinks.create();this._sliceLink=e,this._disposers.push(e),e.parent=this.component.slicesContainer,this._disposers.push(new A.b((function(){t.component&&t.component.sliceLinks.removeValue(e)}))),this.addSprite(e),e.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),e}(ue.b),me=function(t){function e(){var e=t.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=Object(a.c)(100),e.height=Object(a.c)(100),e.slicesContainer.width=Object(a.c)(100),e.slicesContainer.height=Object(a.c)(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return r.c(e,t),e.prototype.createSlice=function(){return new de},e.prototype.createTick=function(){return new fe},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},e.prototype.createDataItem=function(){return new ge},e.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#')}% ({value.value})",t.states.create("hover").properties.expandDistance=.2},e.prototype.initLabel=function(e){t.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextY=0},e.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer,n=this.labelsContainer,r=this.labels.template;this.alignLabels?(r.interactionsEnabled=!0,i.isMeasured=!0,n.isMeasured=!0):(r.interactionsEnabled=!1,i.isMeasured=!1,n.isMeasured=!1);var o=0,a=0;this.dataItems.each((function(t){y.hasValue(t.value)&&(a++,t.value>0?o+=Math.abs(t.getWorkingValue("value")/t.value):e.ignoreZeroValues||!t.visible||t.__disabled||t.isHiding?a--:o+=1)})),this._total=1/a*o,this._count=a,t.prototype.validateDataElements.call(this),this.arrangeLabels()},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");if(e<this.dataItems.length-1){var n=this.dataItems.getIndex(e+1);if(i=n.getWorkingValue("value"),!n.visible||n.isHiding||n.__disabled||0==n.value&&this.ignoreZeroValues)return this.getNextValue(n)}return i},e.prototype.formDataElement=function(){},e.prototype.validateDataElement=function(e){if(y.hasValue(e.value)){var i=e.slice;i.orientation=this.orientation;var n=e.sliceLink;n.orientation=this.orientation;var r=e.tick,o=e.label;r.slice=i,r.label=o,this.decorateSlice(e),n.fill=i.fill,e.index==this.dataItems.length-1&&(n.disabled=!0),t.prototype.validateDataElement.call(this,e)}},e.prototype.decorateSlice=function(t){var e=t.slice,i=t.sliceLink,n=t.label,r=t.tick,o=this.slicesContainer.innerWidth,a=this.slicesContainer.innerHeight,s=this.getNextValue(t),l=Math.abs(t.getWorkingValue("value")),h=this.bottomRatio,u=1;if(0!=t.value?u=l/Math.abs(t.value):(t.__disabled||t.isHiding||!t.visible)&&(u=1e-6),this.ignoreZeroValues&&0==t.value)t.__disabled=!0;else if(t.__disabled=!1,this._nextY==1/0&&(this._nextY=0),"vertical"==this.orientation){var d=i.pixelHeight*u;a+=d,e.topWidth=l/this.dataItem.values.value.high*o,e.bottomWidth=(l-(l-s)*h)/this.dataItem.values.value.high*o,i.topWidth=e.bottomWidth,i.bottomWidth=(l-(l-s))/this.dataItem.values.value.high*o,e.y=this._nextY,e.height=Math.min(1e5,c.max(0,a/this._count*u/this._total-d)),e.x=o/2,this.alignLabels?n.x=void 0:n.x=e.x,n.y=e.pixelY+e.pixelHeight*r.locationY,this._nextY+=e.pixelHeight+d,i.y=this._nextY-d,i.x=e.x}else{var p=i.pixelWidth*u;o+=p,e.topWidth=l/this.dataItem.values.value.high*a,e.bottomWidth=(l-(l-s)*h)/this.dataItem.values.value.high*a,i.topWidth=e.bottomWidth,i.bottomWidth=(l-(l-s))/this.dataItem.values.value.high*a,e.x=this._nextY,e.width=Math.min(1e5,o/this._count*u*1/this._total-p),e.y=a/2,this.alignLabels?n.y=this.labelsContainer.measuredHeight:n.y=e.y,n.x=e.pixelX+e.pixelWidth*r.locationX,this._nextY+=e.pixelWidth+p,i.x=this._nextY-p,i.y=e.y}},e.prototype.getLastLabel=function(t){if(t>0){var e=this.labels.getIndex(t);return e.__disabled||!e.visible?this.getLastLabel(t-1):e}},e.prototype.arrangeLabels=function(){if(this.alignLabels){var t=this.labels.length;if(t>1){var e=this.getLastLabel(t-1);if(e){var i=e.pixelY,n=e.pixelX;if(t>1){for(var r=t-2;r>=0;r--)(o=this.labels.getIndex(r)).visible&&!o.__disabled&&(o.invalid&&o.validate(),"vertical"==this.orientation?o.pixelY+o.measuredHeight>i&&(o.y=Math.min(1e6,i-o.measuredHeight)):o.pixelX+o.measuredWidth>n&&(o.x=Math.min(1e6,n-o.measuredWidth)),i=o.pixelY,n=o.pixelX);for(i=0,n=0,r=0;r<t;r++){var o;(o=this.labels.getIndex(r)).visible&&!o.__disabled&&(o.invalid&&o.validate(),"vertical"==this.orientation?o.pixelY<i&&(o.y=Math.min(1e6,i)):o.pixelX<n&&(o.x=Math.min(1e6,n)),i+=o.measuredHeight,n+=o.measuredWidth)}}}}}},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem.slice,n=e.locationX;y.isNumber(n)||(n=.5);var r=e.locationY;y.isNumber(r)||(r=1),e.x=i.pixelX+i.measuredWidth*n,e.y=i.pixelY+i.measuredHeight*r},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),"vertical"==t?(this.ticks.template.locationX=1,this.ticks.template.locationY=.5,this.labels.template.rotation=0,this.layout="horizontal"):(this.ticks.template.locationX=.5,this.ticks.template.locationY=1,this.labels.template.rotation=-90,this.layout="vertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(t){this.setPropertyValue("bottomRatio",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var t=new de;t.applyOnClones=!0,t.fillOpacity=.5,t.expandDistance=-.3,t.hiddenState.properties.opacity=0,this._disposers.push(t),this._sliceLinks=new D.e(t),this._disposers.push(new D.c(this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i=this,n=this.startIndex,r=this.endIndex,o=this.defaultState.transitionDuration;y.isNumber(e)&&(o=e);var a=0;return M.each(M.indexed(this.dataItems.iterator()),(function(t){var e=t[0],s=t[1];i.sequencedInterpolation&&(a=i.sequencedInterpolationDelay*e+o*(e-n)/(r-n)),s.show(o,a,["value"])})),t.prototype.show.call(this,e)},e.prototype.hide=function(e){var i=this,n=["value"],r=this.startIndex,o=this.endIndex,a=0,s=this.hiddenState.transitionDuration;y.isNumber(e)&&(s=e),M.each(M.indexed(this.dataItems.iterator()),(function(t){var e=t[0],l=t[1];i.sequencedInterpolation&&(a=i.sequencedInterpolationDelay*e+s*(e-r)/(o-r)),l.hide(s,a,0,n)}));var l=t.prototype.hide.call(this,e);return l&&!l.isFinished()&&l.delay(a),l},e.prototype.setAlignLabels=function(e){t.prototype.setAlignLabels.call(this,e),this.ticks.template.disabled=!e;var i=this.labelsContainer;i&&(e?(i.height=void 0,i.width=void 0,i.margin(10,10,10,10)):(i.width=Object(a.c)(100),i.height=Object(a.c)(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(e.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")},set:function(t){this.setPropertyValue("labelsOpposite",t);var e=this.labels.template,i="none",n="none";this.alignLabels?t?(this.labelsContainer.toFront(),"vertical"==this.orientation?(this.ticks.template.locationX=1,e.horizontalCenter="left",i="right"):(this.ticks.template.locationY=1,e.horizontalCenter="right",n="bottom")):(this.labelsContainer.toBack(),"vertical"==this.orientation?(this.ticks.template.locationX=0,i="left"):(n="top",this.ticks.template.locationY=0)):"vertical"==this.orientation?i="center":n="middle",e.align=i,e.valign=n,this.validateLayout(),this.ticks.each((function(t){t.invalidate()})),this.invalidateDataItems()},enumerable:!0,configurable:!0}),e}(ue.a);l.c.registeredClasses.FunnelSeries=me,l.c.registeredClasses.FunnelSeriesDataItem=ge;var ye=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return r.c(e,t),e}(ge),ve=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeries",e.topWidth=Object(a.c)(0),e.bottomWidth=Object(a.c)(100),e.pyramidHeight=Object(a.c)(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return r.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new ye},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextWidth=void 0},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");return e<this.dataItems.length-1&&(i=this.dataItems.getIndex(e+1).getWorkingValue("value")),0==i&&(i=1e-6),i},e.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer.innerWidth,n=this.slicesContainer.innerHeight;if(this.dataItems.each((function(t){if(t.value>0){var r=t.getWorkingValue("value")/t.value,o=t.sliceLink;"vertical"==e.orientation?n-=o.pixelHeight*r:i-=o.pixelWidth*r}})),this._pyramidHeight=_.relativeToValue(this.pyramidHeight,n),this._pyramidWidth=_.relativeToValue(this.pyramidHeight,i),"vertical"==this.orientation){var r=(n-this._pyramidHeight)/2;this.slicesContainer.y=r,this.labelsContainer.y=r,this.ticksContainer.y=r}else{var o=(i-this._pyramidWidth)/2;this.slicesContainer.x=o,this.labelsContainer.x=o,this.ticksContainer.x=o}t.prototype.validateDataElements.call(this)},e.prototype.decorateSlice=function(t){var e=this.dataItem.values.value.absoluteSum;if(0!=e){var i=t.slice,n=t.sliceLink,r=t.label,o=t.tick;this.getNextValue(t);var a=Math.abs(t.getWorkingValue("value"));0==a&&(a=1e-6);var s=this._pyramidWidth,l=this._pyramidHeight,c=this.slicesContainer.innerWidth,h=this.slicesContainer.innerHeight,u=n.pixelWidth,d=n.pixelHeight;if(0==t.value&&this.ignoreZeroValues?t.__disabled=!0:t.__disabled=!1,"vertical"==this.orientation){var p=_.relativeToValue(this.topWidth,c);y.isNumber(this._nextWidth)||(this._nextWidth=p);var f=_.relativeToValue(this.bottomWidth,c),g=this._nextWidth,m=Math.atan2(l,p-f);0==(S=Math.tan(Math.PI/2-m))&&(S=1e-8);var v=void 0,b=void 0;if("area"==this.valueIs){var x=(p+f)/2*l*a/e,w=Math.abs(g*g-2*x*S);b=(2*x-(v=(g-Math.sqrt(w))/S)*g)/v}else b=g-(v=l*a/e)*S;i.height=v,i.width=c,i.bottomWidth=b,i.topWidth=g,n.topWidth=i.bottomWidth,n.bottomWidth=i.bottomWidth,i.y=this._nextY,this.alignLabels?r.x=0:r.x=c/2,r.y=i.pixelY+i.pixelHeight*o.locationY+i.dy,this._nextY+=i.pixelHeight+d*a/Math.max(Math.abs(t.value),1e-8),n.y=this._nextY-d,n.x=c/2}else{var S;p=_.relativeToValue(this.topWidth,h),y.isNumber(this._nextWidth)||(this._nextWidth=p),f=_.relativeToValue(this.bottomWidth,h),g=this._nextWidth,m=Math.atan2(s,p-f),0==(S=Math.tan(Math.PI/2-m))&&(S=1e-8);var P=void 0;b=void 0,b="area"==this.valueIs?(2*(x=(p+f)/2*s*a/e)-(P=(g-Math.sqrt(g*g-2*x*S))/S)*g)/P:g-(P=s*a/e)*S,i.width=P,i.height=h,i.bottomWidth=b,i.topWidth=g,n.topWidth=i.bottomWidth,n.bottomWidth=i.bottomWidth,i.x=this._nextY,this.alignLabels?r.y=this.labelsContainer.measuredHeight:r.y=h/2,r.x=i.pixelX+i.pixelWidth*o.locationX+i.dx,this._nextY+=i.pixelWidth+u*a/Math.max(Math.abs(t.value),1e-8),n.x=this._nextY-u,n.y=h/2}this._nextWidth=i.bottomWidth}},Object.defineProperty(e.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(t){this.setPercentProperty("pyramidHeight",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(t){this.setPropertyValue("valueIs",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e}(me);l.c.registeredClasses.PyramidSeries=ve,l.c.registeredClasses.PyramidSeriesDataItem=ye;var be=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return r.c(e,t),e}(ye),xe=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=Object(a.c)(100),e.bottomWidth=Object(a.c)(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild(J.a),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return r.c(e,t),e.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,i=this.slicesContainer.maxHeight,n=this._maskSprite,r=n.measuredWidth/n.scale,o=n.measuredHeight/n.scale,a=c.min(i/o,e/r);a==1/0&&(a=1),a=c.max(.001,a);var s,l,h=this.startLocation,u=this.endLocation,d=c.min(e,r*a),p=c.min(i,o*a);n.scale=a,"vertical"==this.orientation?(this.topWidth=d+4,this.bottomWidth=d+4,this.pyramidHeight=p*(u-h),n.x=e/2,n.y=p/2):(this.topWidth=p+4,this.bottomWidth=p+4,this.pyramidHeight=d*(u-h),n.valign="middle",n.x=d/2,n.y=i/2),n.verticalCenter="middle",n.horizontalCenter="middle",t.prototype.validateDataElements.call(this),"vertical"==this.orientation?("bottom"==this.valign&&(s=i-p),"middle"==this.valign&&(s=(i-p)/2),"top"==this.valign&&(s=0),"left"==this.align&&(l=-(e-d)/2),"center"==this.align&&(l=0),"right"==this.align&&(l=(e-d)/2),this.slices.template.dy=h*p,this.alignLabels&&(this.slicesContainer.dx=l)):("bottom"==this.valign&&(s=(i-p)/2),"middle"==this.valign&&(s=0),"top"==this.valign&&(s=-(i-p)/2),"left"==this.align&&(l=0),"center"==this.align&&(l=(e-d)/2),"right"==this.align&&(l=e-d),this.slices.template.dx=h*d,this.alignLabels&&(this.slicesContainer.dy=s)),this.slicesContainer.x=l,this.labelsContainer.x=l,this.ticksContainer.x=l,this.slicesContainer.y=s,this.labelsContainer.y=s,this.ticksContainer.y=s,d>0&&p>0&&(this.slicesContainer.mask=n)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new be},Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),e.prototype.initSlice=function(e){t.prototype.initSlice.call(this,e);var i=e.states.getKey("hover");i&&(i.properties.expandDistance=0)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),e}(ve);l.c.registeredClasses.PictorialStackedSeries=xe,l.c.registeredClasses.PictorialStackedSeriesDataItem=be;var we=i("BmDP"),_e=i("ncT3"),Se=function(t){function e(){var e=t.call(this)||this;return e.className="ConeColumn",e}return r.c(e,t),e.prototype.createAssets=function(){this.coneColumn=this.createChild(_e.a),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},e}(Ht.a);l.c.registeredClasses.ConeColumn=Se;var Pe=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return r.c(e,t),e}(It.b),ke=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return r.c(e,t),e.prototype.createColumnTemplate=function(){return new Se},e.prototype.getMaskPath=function(){var t=0,e=0,i=this.columns.getIndex(0);if(i)return this.baseAxis==this.xAxis?e=i.coneColumn.innerWidth/2+1:t=i.coneColumn.innerHeight/2+1,h.rectToPath({x:-t,y:0,width:this.xAxis.axisLength+t,height:this.yAxis.axisLength+e})},e.prototype.validateDataElementReal=function(e){if(t.prototype.validateDataElementReal.call(this,e),e.column){var i=e.column.coneColumn;i.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical"}},e}(It.a);l.c.registeredClasses.ConeSeries=ke,l.c.registeredClasses.ConeSeriesDataItem=Pe;var Ce=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumn",e}return r.c(e,t),e.prototype.createAssets=function(){this.curvedColumn=this.createChild(J.a),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=Object(a.c)(120),this.height=Object(a.c)(120),this.column=this.curvedColumn},e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.realWidth,n=this.realHeight,r=this.realX-this.pixelX,o=this.realY-this.pixelY;_.used(this.width);var a=1,s=1;"vertical"==this.orientation?(a=this.tension,e=[{x:0,y:n+o},{x:i/2,y:o},{x:i,y:n+o}]):(s=this.tension,e=[{x:r,y:0},{x:r+i,y:n/2},{x:r,y:n}]);var l=h.moveTo(e[0])+new xt.b(a,s).smooth(e);this.column.path=l},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),e}(Ht.a);l.c.registeredClasses.CurvedColumn=Ce;var Te=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return r.c(e,t),e}(It.b),Ae=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return r.c(e,t),e.prototype.createColumnTemplate=function(){return new Ce},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e);var i=e.column;(i=e.column)&&(e.column.curvedColumn.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical")},e}(It.a);l.c.registeredClasses.CurvedColumnSeries=Ae,l.c.registeredClasses.CurvedColumnSeriesDataItem=Te;var Oe=i("AAkI"),Me=i("eN1s"),Ee=i("TDx+"),Ie=i("eAid"),De=i("Uslz"),Le=i("+K/x"),je=i("KknQ"),Ne=function(t){function e(){var e=t.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return r.c(e,t),e}(Et.b),Fe=function(t){function e(){var e=t.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return r.c(e,t),e.prototype.formatLabel=function(t,e){return this.durationFormatter.format(t,e||this.axisDurationFormat)},e.prototype.adjustMinMax=function(e,i,n,o,a){var s,l,h,u=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),"millisecond"==u||"second"==u||"minute"==u||"hour"==u){o<=1&&(o=1),o=Math.round(o);var d=e,p=i;0===n&&(n=Math.abs(i));var f,g=[60,30,20,15,10,2,1],m=1;"hour"==u&&(g=[24,12,6,4,2,1]);try{for(var y=r.g(g),v=y.next();!v.done;v=y.next()){var b=v.value;if(n/b>o){m=b;break}}}catch(t){l={error:t}}finally{try{v&&!v.done&&(h=y.return)&&h.call(y)}finally{if(l)throw l.error}}var x=Math.ceil((i-e)/m/o),w=Math.log(Math.abs(x))*Math.LOG10E,_=Math.pow(10,Math.floor(w))/10,S=x/_;f=m*(x=c.closest(g,S)*_),this.durationFormatter.getValueUnit(f,this.baseUnit),e=Math.floor(e/f)*f,i=Math.ceil(i/f)*f,a&&((e-=f)<0&&d>=0&&(e=0),(i+=f)>0&&p<=0&&(i=0)),s={min:e,max:i,step:f}}else s=t.prototype.adjustMinMax.call(this,e,i,n,o,a);return this.axisDurationFormat=this.durationFormatter.getFormat(s.step,s.max,this.baseUnit),s},Object.defineProperty(e.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(t){this._tooltipDurationFormat=t},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e=c.round(this.positionToValue(t),this._stepDecimalPlaces),i=this.formatLabel(e,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit!=t&&(this._baseUnit=t,this.durationFormatter.baseUnit=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},e}(Et.a);l.c.registeredClasses.DurationAxis=Fe,l.c.registeredClasses.DurationAxisDataItem=Ne;var Re=i("9ZsQ"),Ve=i("ZoDA"),ze=function(t){function e(){var e=t.call(this)||this;e.className="CircleBullet";var i=e.createChild(f.a);return i.shouldClone=!1,i.radius=5,i.isMeasured=!1,e.circle=i,e.applyTheme(),e}return r.c(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},e}(st.a);l.c.registeredClasses.CircleBullet=ze;var Be=function(t){function e(){var e=t.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(J.a),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return r.c(e,t),e.prototype.validatePosition=function(){t.prototype.validatePosition.call(this);var e=this.pixelWidth/2,i=this.pixelHeight/2;this.errorLine.path=h.moveTo({x:-e,y:-i})+h.lineTo({x:e,y:-i})+h.moveTo({x:0,y:-i})+h.lineTo({x:0,y:i})+h.moveTo({x:-e,y:i})+h.lineTo({x:e,y:i})},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},e}(st.a);l.c.registeredClasses.ErrorBullet=Be;var He=i("C6Lh"),We=i("Y9w3"),Xe=i("A6AV"),Ye=i("Trvg"),Ge=i("Rnbi"),Ue=function(t){function e(){var e=t.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return r.c(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),e}(Xe.a),qe=function(t){function e(){var e=t.call(this)||this;e.className="NavigationBar";var i=new j.a,n=new Ye.a;n.valign="middle",n.paddingTop=8,n.paddingBottom=8,e.paddingBottom=2,e.links=new D.e(n),e._disposers.push(new D.c(e.links)),e._disposers.push(n),e._linksIterator=new M.ListIterator(e.links,(function(){return e.links.create()})),e._linksIterator.createNewItems=!0;var r=new Ge.a;r.direction="right",r.width=8,r.height=12,r.fill=i.getFor("alternativeBackground"),r.fillOpacity=.5,r.valign="middle",r.marginLeft=10,r.marginRight=10,e.separators=new D.e(r),e._disposers.push(new D.c(e.separators)),e._disposers.push(r);var o=new Ye.a;return e.activeLink=o,o.copyFrom(n),o.valign="middle",o.fontWeight="bold",e.width=Object(a.c)(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return r.c(e,t),e.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),t.prototype.validateDataElements.call(this)},e.prototype.validateDataElement=function(e){var i;if(t.prototype.validateDataElement.call(this,e),e.index<this.dataItems.length-1){(i=this._linksIterator.getLast()).parent=this;var n=this.separators.create();n.parent=this,n.valign="middle"}else(i=this.activeLink).events.copyFrom(this.links.template.events),i.hide(0),i.show(),i.parent=this;i.dataItem=e,i.text=e.name,i.validate()},e}(We.a);l.c.registeredClasses.NavigationBar=qe,l.c.registeredClasses.NavigationBarDataItem=Ue;var $e=i("gqvf"),Ke=i("1Fjw"),Ze=function(t){function e(){var e=t.call(this)||this;return e.className="RadarCursor",e.radius=Object(a.c)(100),e.innerRadius=Object(a.c)(0),e.applyTheme(),e.mask=void 0,e}return r.c(e,t),e.prototype.fitsToBounds=function(t){var e=c.getDistance(t);return e<this.truePixelRadius+1&&e>this.pixelInnerRadius-1},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.triggerMoveReal=function(e){this.xAxis&&(!this.xAxis||this.xAxis.cursorTooltipEnabled&&!this.xAxis.tooltip.disabled)||this.updateLineX(this.point),this.yAxis&&(!this.yAxis||this.yAxis.cursorTooltipEnabled&&!this.yAxis.tooltip.disabled)||this.updateLineY(this.point),this.updateSelection(),t.prototype.triggerMoveReal.call(this,e)},e.prototype.updateLineX=function(t){var e=this.pixelRadius,i=this.startAngle,n=this.endAngle,r=this.pixelInnerRadius;if(e>0&&y.isNumber(i)&&y.isNumber(n)&&y.isNumber(r)){var o=c.fitAngleToRange(c.getAngle(t),i,n),a=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var s=this.xAxis.currentItemStartPoint,l=this.xAxis.currentItemEndPoint;if(s&&l){var u=c.fitAngleToRange(c.getAngle(s),i,n),d=c.fitAngleToRange(c.getAngle(l),i,n)-u;i<n?d<0&&(d+=360):d>0&&(d-=360),o-=d/2,a=h.moveTo({x:r*c.cos(o),y:r*c.sin(o)})+h.lineTo({x:e*c.cos(o),y:e*c.sin(o)})+h.arcTo(o,d,e)+h.lineTo({x:r*c.cos(o+d),y:r*c.sin(o+d)})+h.arcTo(o+d,-d,r)}}a||(a=h.moveTo({x:r*c.cos(o),y:r*c.sin(o)})+h.lineTo({x:e*c.cos(o),y:e*c.sin(o)})),this.lineX.path=a}}},e.prototype.updateLineY=function(t){if(this.lineY&&this.lineY.visible){var e=this.startAngle,i=this.endAngle,n=this.truePixelRadius,r=c.fitToRange(c.getDistance(t),0,this.truePixelRadius);if(y.isNumber(r)&&y.isNumber(e)){this.lineY.moveTo({x:0,y:0});var o=void 0,a=i-e;if(this.yAxis&&this.fullWidthLineY){var s=this.yAxis.currentItemStartPoint,l=this.yAxis.currentItemEndPoint;if(s&&l){var u=c.fitToRange(c.getDistance(s),0,n);r=c.fitToRange(c.getDistance(l),0,n),o=h.moveTo({x:r*c.cos(e),y:r*c.sin(e)})+h.arcTo(e,a,r),o+=h.moveTo({x:u*c.cos(i),y:u*c.sin(i)})+h.arcTo(i,-a,u)}}o||(o=h.moveTo({x:r*c.cos(e),y:r*c.sin(e)})+h.arcTo(e,i-e,r)),this.lineY.path=o}}},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point,i=this.pixelRadius,n=this.truePixelRadius,r=this.pixelInnerRadius,o=Math.min(this.startAngle,this.endAngle),a=Math.max(this.startAngle,this.endAngle),s=c.fitAngleToRange(c.getAngle(t),o,a),l=c.fitAngleToRange(c.getAngle(e),o,a),u=c.getDistance(t);if(u<n){var d=c.fitToRange(c.getDistance(e),0,n);this._prevAngle=l;var p=h.moveTo({x:0,y:0}),f=c.sin(s),g=c.cos(s),m=c.sin(l),y=c.cos(l),v=this.behavior;"zoomX"==v||"selectX"==v?p+=h.lineTo({x:i*g,y:i*f})+h.arcTo(s,l-s,i)+h.lineTo({x:r*y,y:r*m})+h.arcTo(l,s-l,r):"zoomY"==v||"selectY"==v?p=h.moveTo({x:d*c.cos(o),y:d*c.sin(o)})+h.arcTo(o,a-o,d)+h.lineTo({x:u*c.cos(a),y:u*c.sin(a)})+h.arcTo(a,o-a,u)+h.closePath():"zoomXY"==v&&(p=h.moveTo({x:d*c.cos(s),y:d*c.sin(s)})+h.arcTo(s,l-s,d)+h.lineTo({x:u*c.cos(l),y:u*c.sin(l)})+h.arcTo(l,s-l,u)+h.closePath()),this.selection.path=p}this.selection.moveTo({x:0,y:0})}}},e.prototype.getPositions=function(){if(this.chart){var t=this.pixelInnerRadius,e=this.truePixelRadius-t,i=this.startAngle,n=this.endAngle,r=(c.fitAngleToRange(c.getAngle(this.point),i,n)-i)/(n-i);this.xPosition=r,this.yPosition=c.fitToRange((c.getDistance(this.point)-t)/e,0,1)}},e.prototype.updatePoint=function(t){},e.prototype.handleXTooltipPosition=function(t){if(this.xAxis.cursorTooltipEnabled){var e=this.xAxis.tooltip;this.updateLineX(_.svgPointToSprite({x:e.pixelX,y:e.pixelY},this))}},e.prototype.handleYTooltipPosition=function(t){if(this.yAxis.cursorTooltipEnabled){var e=this.yAxis.tooltip;this.updateLineY(_.svgPointToSprite({x:e.pixelX,y:e.pixelY},this))}},e.prototype.updateLinePositions=function(t){},e.prototype.getRanges=function(){var t=this.downPoint;if(t){var e=this.upPoint;if(this.chart){var i=this.pixelRadius,n=this.startAngle,r=this.endAngle,o=c.fitAngleToRange(c.getAngle(t),this.startAngle,this.endAngle),a=c.fitAngleToRange(c.getAngle(e),this.startAngle,this.endAngle),s=c.fitToRange(c.getDistance(t),0,i),l=c.fitToRange(c.getDistance(e),0,i),h=0,u=1,d=0,p=1,f=this.behavior;if("zoomX"==f||"selectX"==f||"zoomXY"==f||"selectXY"==f){var g=r-n;h=c.round((o-n)/g,5),u=c.round((a-n)/g,5)}"zoomY"!=f&&"selectY"!=f&&"zoomXY"!=f&&"selectXY"!=f||(d=c.round(s/i,5),p=c.round(l/i,5)),this.xRange={start:Math.min(h,u),end:Math.max(h,u)},this.yRange={start:Math.min(d,p),end:Math.max(d,p)},"selectX"==this.behavior||"selectY"==this.behavior||"selectXY"==this.behavior||this.selection.hide()}}},e.prototype.updateSize=function(){},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return _.relativeRadiusToValue(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truePixelRadius",{get:function(){return _.relativeToValue(Object(a.c)(100),c.min(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){var t=this.innerRadius;return t instanceof a.a&&(t=Object(a.c)(100*t.value*this.chart.innerRadiusModifyer)),_.relativeRadiusToValue(t,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),e.prototype.fixPoint=function(t){return t},e}($e.a);l.c.registeredClasses.RadarCursor=Ze,window.am4charts=n}},["XFs4"]),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
|
||
*
|
||
* This sofware is provided under multiple licenses. Please see below for
|
||
* links to appropriate usage.
|
||
*
|
||
* Free amCharts linkware license. Details and conditions:
|
||
* https://github.com/amcharts/amcharts4/blob/master/LICENSE
|
||
*
|
||
* One of the amCharts commercial licenses. Details and pricing:
|
||
* https://www.amcharts.com/online-store/
|
||
* https://www.amcharts.com/online-store/licenses-explained/
|
||
*
|
||
* If in doubt, contact amCharts at contact@amcharts.com
|
||
*
|
||
* PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE.
|
||
* @hidden
|
||
*/
|
||
am4internal_webpackJsonp(["ab45"],{lhmh:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("aCit");window.am4themes_animated=function(t){Object(n.b)(t,"SpriteState")&&(t.transitionDuration=400),Object(n.b)(t,"Component")&&(t.rangeChangeDuration=500,t.interpolationDuration=500,t.sequencedInterpolation=!1,Object(n.b)(t,"SankeyDiagram")&&(t.sequencedInterpolation=!0),Object(n.b)(t,"FunnelSeries")&&(t.sequencedInterpolation=!0)),Object(n.b)(t,"Chart")&&(t.defaultState.transitionDuration=2e3,t.hiddenState.transitionDuration=1e3),Object(n.b)(t,"Tooltip")&&(t.animationDuration=400,t.defaultState.transitionDuration=400,t.hiddenState.transitionDuration=400),Object(n.b)(t,"Scrollbar")&&(t.animationDuration=500),Object(n.b)(t,"Series")&&(t.defaultState.transitionDuration=1e3,t.hiddenState.transitionDuration=700,t.hiddenState.properties.opacity=1,t.showOnInit=!0),Object(n.b)(t,"MapSeries")&&(t.hiddenState.properties.opacity=0),Object(n.b)(t,"PercentSeries")&&(t.hiddenState.properties.opacity=0),Object(n.b)(t,"FunnelSlice")&&(t.defaultState.transitionDuration=800,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),Object(n.b)(t,"Slice")&&(t.defaultState.transitionDuration=700,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),Object(n.b)(t,"Preloader")&&(t.hiddenState.transitionDuration=2e3),Object(n.b)(t,"Column")&&(t.defaultState.transitionDuration=700,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),Object(n.b)(t,"Column3D")&&(t.hiddenState.properties.opacity=0)}}},["lhmh"]),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
|
||
*
|
||
* This sofware is provided under multiple licenses. Please see below for
|
||
* links to appropriate usage.
|
||
*
|
||
* Free amCharts linkware license. Details and conditions:
|
||
* https://github.com/amcharts/amcharts4/blob/master/LICENSE
|
||
*
|
||
* One of the amCharts commercial licenses. Details and pricing:
|
||
* https://www.amcharts.com/online-store/
|
||
* https://www.amcharts.com/online-store/licenses-explained/
|
||
*
|
||
* If in doubt, contact amCharts at contact@amcharts.com
|
||
*
|
||
* PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE.
|
||
* @hidden
|
||
*/
|
||
am4internal_webpackJsonp(["fa15"],{"Z+ar":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("aCit"),r=i("8ZqG");window.am4themes_kelly=function(t){Object(n.b)(t,"ColorSet")&&(t.list=[Object(r.c)("#F3C300"),Object(r.c)("#875692"),Object(r.c)("#F38400"),Object(r.c)("#A1CAF1"),Object(r.c)("#BE0032"),Object(r.c)("#C2B280"),Object(r.c)("#848482"),Object(r.c)("#008856"),Object(r.c)("#E68FAC"),Object(r.c)("#0067A5"),Object(r.c)("#F99379"),Object(r.c)("#604E97"),Object(r.c)("#F6A600"),Object(r.c)("#B3446C"),Object(r.c)("#DCD300"),Object(r.c)("#882D17"),Object(r.c)("#8DB600"),Object(r.c)("#654522"),Object(r.c)("#E25822"),Object(r.c)("#2B3D26"),Object(r.c)("#F2F3F4"),Object(r.c)("#222222")],t.minLightness=.2,t.maxLightness=.7,t.reuse=!0)}}},["Z+ar"]),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
|
||
*
|
||
* This sofware is provided under multiple licenses. Please see below for
|
||
* links to appropriate usage.
|
||
*
|
||
* Free amCharts linkware license. Details and conditions:
|
||
* https://github.com/amcharts/amcharts4/blob/master/LICENSE
|
||
*
|
||
* One of the amCharts commercial licenses. Details and pricing:
|
||
* https://www.amcharts.com/online-store/
|
||
* https://www.amcharts.com/online-store/licenses-explained/
|
||
*
|
||
* If in doubt, contact amCharts at contact@amcharts.com
|
||
*
|
||
* PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE.
|
||
* @hidden
|
||
*/
|
||
am4internal_webpackJsonp(["cc1e"],{QJ7E:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};i.d(n,"geoArea",(function(){return ct})),i.d(n,"geoBounds",(function(){return ee})),i.d(n,"geoCentroid",(function(){return pe})),i.d(n,"geoCircle",(function(){return Pe})),i.d(n,"geoClipAntimeridian",(function(){return Be})),i.d(n,"geoClipCircle",(function(){return He})),i.d(n,"geoClipExtent",(function(){return $e})),i.d(n,"geoClipRectangle",(function(){return Ye})),i.d(n,"geoContains",(function(){return pi})),i.d(n,"geoDistance",(function(){return ri})),i.d(n,"geoGraticule",(function(){return mi})),i.d(n,"geoGraticule10",(function(){return yi})),i.d(n,"geoInterpolate",(function(){return _i})),i.d(n,"geoLength",(function(){return ei})),i.d(n,"geoPath",(function(){return wn})),i.d(n,"geoAlbers",(function(){return Vn})),i.d(n,"geoAlbersUsa",(function(){return zn})),i.d(n,"geoAzimuthalEqualArea",(function(){return Xn})),i.d(n,"geoAzimuthalEqualAreaRaw",(function(){return Wn})),i.d(n,"geoAzimuthalEquidistant",(function(){return Gn})),i.d(n,"geoAzimuthalEquidistantRaw",(function(){return Yn})),i.d(n,"geoConicConformal",(function(){return Jn})),i.d(n,"geoConicConformalRaw",(function(){return Zn})),i.d(n,"geoConicEqualArea",(function(){return Rn})),i.d(n,"geoConicEqualAreaRaw",(function(){return Fn})),i.d(n,"geoConicEquidistant",(function(){return ir})),i.d(n,"geoConicEquidistantRaw",(function(){return er})),i.d(n,"geoEqualEarth",(function(){return cr})),i.d(n,"geoEqualEarthRaw",(function(){return lr})),i.d(n,"geoEquirectangular",(function(){return tr})),i.d(n,"geoEquirectangularRaw",(function(){return Qn})),i.d(n,"geoGnomonic",(function(){return ur})),i.d(n,"geoGnomonicRaw",(function(){return hr})),i.d(n,"geoIdentity",(function(){return pr})),i.d(n,"geoProjection",(function(){return Ln})),i.d(n,"geoProjectionMutator",(function(){return jn})),i.d(n,"geoMercator",(function(){return qn})),i.d(n,"geoMercatorRaw",(function(){return Un})),i.d(n,"geoNaturalEarth1",(function(){return gr})),i.d(n,"geoNaturalEarth1Raw",(function(){return fr})),i.d(n,"geoOrthographic",(function(){return yr})),i.d(n,"geoOrthographicRaw",(function(){return mr})),i.d(n,"geoStereographic",(function(){return br})),i.d(n,"geoStereographicRaw",(function(){return vr})),i.d(n,"geoTransverseMercator",(function(){return wr})),i.d(n,"geoTransverseMercatorRaw",(function(){return xr})),i.d(n,"geoRotation",(function(){return we})),i.d(n,"geoStream",(function(){return et})),i.d(n,"geoTransform",(function(){return _n}));var r={};i.d(r,"normalizePoint",(function(){return to})),i.d(r,"normalizeMultiline",(function(){return eo})),i.d(r,"wrapAngleTo180",(function(){return io})),i.d(r,"geoToPoint",(function(){return no}));var o={};i.d(o,"Mercator",(function(){return Eo})),i.d(o,"Miller",(function(){return da})),i.d(o,"Eckert6",(function(){return pa})),i.d(o,"Orthographic",(function(){return fa})),i.d(o,"Stereographic",(function(){return ga})),i.d(o,"Albers",(function(){return ma})),i.d(o,"AlbersUsa",(function(){return ya})),i.d(o,"NaturalEarth1",(function(){return va})),i.d(o,"AzimuthalEqualArea",(function(){return ba})),i.d(o,"EqualEarth",(function(){return xa})),i.d(o,"Projection",(function(){return Ur}));var a={};i.d(a,"LegendDataItem",(function(){return s.b})),i.d(a,"Legend",(function(){return s.a})),i.d(a,"LegendSettings",(function(){return s.c})),i.d(a,"HeatLegend",(function(){return l.a})),i.d(a,"MapChartDataItem",(function(){return vo})),i.d(a,"MapChart",(function(){return bo})),i.d(a,"MapSeriesDataItem",(function(){return _r})),i.d(a,"MapSeries",(function(){return Sr})),i.d(a,"MapObject",(function(){return kr})),i.d(a,"MapPolygon",(function(){return Br})),i.d(a,"MapImage",(function(){return Cr})),i.d(a,"MapLine",(function(){return ho})),i.d(a,"MapLineObject",(function(){return ro})),i.d(a,"MapSpline",(function(){return wo})),i.d(a,"MapArc",(function(){return So})),i.d(a,"Graticule",(function(){return fo})),i.d(a,"MapPolygonSeriesDataItem",(function(){return Yr})),i.d(a,"MapPolygonSeries",(function(){return Gr})),i.d(a,"MapLineSeriesDataItem",(function(){return uo})),i.d(a,"MapLineSeries",(function(){return po})),i.d(a,"MapSplineSeriesDataItem",(function(){return Po})),i.d(a,"MapSplineSeries",(function(){return ko})),i.d(a,"MapImageSeriesDataItem",(function(){return oo})),i.d(a,"MapImageSeries",(function(){return ao})),i.d(a,"MapArcSeriesDataItem",(function(){return Co})),i.d(a,"MapArcSeries",(function(){return To})),i.d(a,"GraticuleSeriesDataItem",(function(){return go})),i.d(a,"GraticuleSeries",(function(){return mo})),i.d(a,"multiPolygonToGeo",(function(){return Er})),i.d(a,"multiLineToGeo",(function(){return Ir})),i.d(a,"multiPointToGeo",(function(){return Dr})),i.d(a,"pointToGeo",(function(){return jr})),i.d(a,"multiGeoPolygonToMultipolygon",(function(){return Rr})),i.d(a,"getBackground",(function(){return zr})),i.d(a,"multiGeoLineToMultiLine",(function(){return Fr})),i.d(a,"multiGeoToPoint",(function(){return Lr})),i.d(a,"getCircle",(function(){return Vr})),i.d(a,"ZoomControl",(function(){return Mo})),i.d(a,"SmallMap",(function(){return Zr})),i.d(a,"Projection",(function(){return Ur})),i.d(a,"projections",(function(){return o})),i.d(a,"geo",(function(){return r})),i.d(a,"d3geo",(function(){return n}));var s=i("uWmK"),l=i("2OXf"),c=i("m4/l"),h=i("2I/e"),u=i("hD5A"),d=i("MIZb"),p=i("aM7D"),f=i("aCit"),g=i("Mtpk"),m=i("Gg2j"),y=function(){return new v};function v(){this.reset()}v.prototype={constructor:v,reset:function(){this.s=this.t=0},add:function(t){x(b,t,this.t),x(this,b.s,this.s),this.s?this.t+=b.t:this.s=b.t},valueOf:function(){return this.s}};var b=new v;function x(t,e,i){var n=t.s=e+i,r=n-e,o=n-r;t.t=e-o+(i-r)}var w=1e-6,_=1e-12,S=Math.PI,P=S/2,k=S/4,C=2*S,T=180/S,A=S/180,O=Math.abs,M=Math.atan,E=Math.atan2,I=Math.cos,D=Math.ceil,L=Math.exp,j=(Math.floor,Math.log),N=Math.pow,F=Math.sin,R=Math.sign||function(t){return t>0?1:t<0?-1:0},V=Math.sqrt,z=Math.tan;function B(t){return t>1?0:t<-1?S:Math.acos(t)}function H(t){return t>1?P:t<-1?-P:Math.asin(t)}function W(t){return(t=F(t/2))*t}function X(){}function Y(t,e){t&&U.hasOwnProperty(t.type)&&U[t.type](t,e)}var G={Feature:function(t,e){Y(t.geometry,e)},FeatureCollection:function(t,e){for(var i=t.features,n=-1,r=i.length;++n<r;)Y(i[n].geometry,e)}},U={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)t=i[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){q(t.coordinates,e,0)},MultiLineString:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)q(i[n],e,0)},Polygon:function(t,e){$(t.coordinates,e)},MultiPolygon:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)$(i[n],e)},GeometryCollection:function(t,e){for(var i=t.geometries,n=-1,r=i.length;++n<r;)Y(i[n],e)}};function q(t,e,i){var n,r=-1,o=t.length-i;for(e.lineStart();++r<o;)n=t[r],e.point(n[0],n[1],n[2]);e.lineEnd()}function $(t,e){var i=-1,n=t.length;for(e.polygonStart();++i<n;)q(t[i],e,1);e.polygonEnd()}var K,Z,J,Q,tt,et=function(t,e){t&&G.hasOwnProperty(t.type)?G[t.type](t,e):Y(t,e)},it=y(),nt=y(),rt={point:X,lineStart:X,lineEnd:X,polygonStart:function(){it.reset(),rt.lineStart=ot,rt.lineEnd=at},polygonEnd:function(){var t=+it;nt.add(t<0?C+t:t),this.lineStart=this.lineEnd=this.point=X},sphere:function(){nt.add(C)}};function ot(){rt.point=st}function at(){lt(K,Z)}function st(t,e){rt.point=lt,K=t,Z=e,J=t*=A,Q=I(e=(e*=A)/2+k),tt=F(e)}function lt(t,e){e=(e*=A)/2+k;var i=(t*=A)-J,n=i>=0?1:-1,r=n*i,o=I(e),a=F(e),s=tt*a,l=Q*o+s*I(r),c=s*n*F(r);it.add(E(c,l)),J=t,Q=o,tt=a}var ct=function(t){return nt.reset(),et(t,rt),2*nt};function ht(t){return[E(t[1],t[0]),H(t[2])]}function ut(t){var e=t[0],i=t[1],n=I(i);return[n*I(e),n*F(e),F(i)]}function dt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function pt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ft(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function gt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function mt(t){var e=V(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var yt,vt,bt,xt,wt,_t,St,Pt,kt,Ct,Tt=y(),At={point:Ot,lineStart:Et,lineEnd:It,polygonStart:function(){At.point=Dt,At.lineStart=Lt,At.lineEnd=jt,Tt.reset(),rt.polygonStart()},polygonEnd:function(){rt.polygonEnd(),At.point=Ot,At.lineStart=Et,At.lineEnd=It,it<0?(yt=-(bt=180),vt=-(xt=90)):Tt>w?xt=90:Tt<-w&&(vt=-90),Ct[0]=yt,Ct[1]=bt},sphere:function(){yt=-(bt=180),vt=-(xt=90)}};function Ot(t,e){kt.push(Ct=[yt=t,bt=t]),e<vt&&(vt=e),e>xt&&(xt=e)}function Mt(t,e){var i=ut([t*A,e*A]);if(Pt){var n=pt(Pt,i),r=pt([n[1],-n[0],0],n);mt(r),r=ht(r);var o,a=t-wt,s=a>0?1:-1,l=r[0]*T*s,c=O(a)>180;c^(s*wt<l&&l<s*t)?(o=r[1]*T)>xt&&(xt=o):c^(s*wt<(l=(l+360)%360-180)&&l<s*t)?(o=-r[1]*T)<vt&&(vt=o):(e<vt&&(vt=e),e>xt&&(xt=e)),c?t<wt?Nt(yt,t)>Nt(yt,bt)&&(bt=t):Nt(t,bt)>Nt(yt,bt)&&(yt=t):bt>=yt?(t<yt&&(yt=t),t>bt&&(bt=t)):t>wt?Nt(yt,t)>Nt(yt,bt)&&(bt=t):Nt(t,bt)>Nt(yt,bt)&&(yt=t)}else kt.push(Ct=[yt=t,bt=t]);e<vt&&(vt=e),e>xt&&(xt=e),Pt=i,wt=t}function Et(){At.point=Mt}function It(){Ct[0]=yt,Ct[1]=bt,At.point=Ot,Pt=null}function Dt(t,e){if(Pt){var i=t-wt;Tt.add(O(i)>180?i+(i>0?360:-360):i)}else _t=t,St=e;rt.point(t,e),Mt(t,e)}function Lt(){rt.lineStart()}function jt(){Dt(_t,St),rt.lineEnd(),O(Tt)>w&&(yt=-(bt=180)),Ct[0]=yt,Ct[1]=bt,Pt=null}function Nt(t,e){return(e-=t)<0?e+360:e}function Ft(t,e){return t[0]-e[0]}function Rt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var Vt,zt,Bt,Ht,Wt,Xt,Yt,Gt,Ut,qt,$t,Kt,Zt,Jt,Qt,te,ee=function(t){var e,i,n,r,o,a,s;if(xt=bt=-(yt=vt=1/0),kt=[],et(t,At),i=kt.length){for(kt.sort(Ft),e=1,o=[n=kt[0]];e<i;++e)Rt(n,(r=kt[e])[0])||Rt(n,r[1])?(Nt(n[0],r[1])>Nt(n[0],n[1])&&(n[1]=r[1]),Nt(r[0],n[1])>Nt(n[0],n[1])&&(n[0]=r[0])):o.push(n=r);for(a=-1/0,e=0,n=o[i=o.length-1];e<=i;n=r,++e)r=o[e],(s=Nt(n[1],r[0]))>a&&(a=s,yt=r[0],bt=n[1])}return kt=Ct=null,yt===1/0||vt===1/0?[[NaN,NaN],[NaN,NaN]]:[[yt,vt],[bt,xt]]},ie={sphere:X,point:ne,lineStart:oe,lineEnd:le,polygonStart:function(){ie.lineStart=ce,ie.lineEnd=he},polygonEnd:function(){ie.lineStart=oe,ie.lineEnd=le}};function ne(t,e){t*=A;var i=I(e*=A);re(i*I(t),i*F(t),F(e))}function re(t,e,i){Bt+=(t-Bt)/++Vt,Ht+=(e-Ht)/Vt,Wt+=(i-Wt)/Vt}function oe(){ie.point=ae}function ae(t,e){t*=A;var i=I(e*=A);Jt=i*I(t),Qt=i*F(t),te=F(e),ie.point=se,re(Jt,Qt,te)}function se(t,e){t*=A;var i=I(e*=A),n=i*I(t),r=i*F(t),o=F(e),a=E(V((a=Qt*o-te*r)*a+(a=te*n-Jt*o)*a+(a=Jt*r-Qt*n)*a),Jt*n+Qt*r+te*o);zt+=a,Xt+=a*(Jt+(Jt=n)),Yt+=a*(Qt+(Qt=r)),Gt+=a*(te+(te=o)),re(Jt,Qt,te)}function le(){ie.point=ne}function ce(){ie.point=ue}function he(){de(Kt,Zt),ie.point=ne}function ue(t,e){Kt=t,Zt=e,t*=A,e*=A,ie.point=de;var i=I(e);Jt=i*I(t),Qt=i*F(t),te=F(e),re(Jt,Qt,te)}function de(t,e){t*=A;var i=I(e*=A),n=i*I(t),r=i*F(t),o=F(e),a=Qt*o-te*r,s=te*n-Jt*o,l=Jt*r-Qt*n,c=V(a*a+s*s+l*l),h=H(c),u=c&&-h/c;Ut+=u*a,qt+=u*s,$t+=u*l,zt+=h,Xt+=h*(Jt+(Jt=n)),Yt+=h*(Qt+(Qt=r)),Gt+=h*(te+(te=o)),re(Jt,Qt,te)}var pe=function(t){Vt=zt=Bt=Ht=Wt=Xt=Yt=Gt=Ut=qt=$t=0,et(t,ie);var e=Ut,i=qt,n=$t,r=e*e+i*i+n*n;return r<_&&(e=Xt,i=Yt,n=Gt,zt<w&&(e=Bt,i=Ht,n=Wt),(r=e*e+i*i+n*n)<_)?[NaN,NaN]:[E(i,e)*T,H(n/V(r))*T]},fe=function(t){return function(){return t}},ge=function(t,e){function i(i,n){return i=t(i,n),e(i[0],i[1])}return t.invert&&e.invert&&(i.invert=function(i,n){return(i=e.invert(i,n))&&t.invert(i[0],i[1])}),i};function me(t,e){return[O(t)>S?t+Math.round(-t/C)*C:t,e]}function ye(t,e,i){return(t%=C)?e||i?ge(be(t),xe(e,i)):be(t):e||i?xe(e,i):me}function ve(t){return function(e,i){return[(e+=t)>S?e-C:e<-S?e+C:e,i]}}function be(t){var e=ve(t);return e.invert=ve(-t),e}function xe(t,e){var i=I(t),n=F(t),r=I(e),o=F(e);function a(t,e){var a=I(e),s=I(t)*a,l=F(t)*a,c=F(e),h=c*i+s*n;return[E(l*r-h*o,s*i-c*n),H(h*r+l*o)]}return a.invert=function(t,e){var a=I(e),s=I(t)*a,l=F(t)*a,c=F(e),h=c*r-l*o;return[E(l*r+c*o,s*i+h*n),H(h*i-s*n)]},a}me.invert=me;var we=function(t){function e(e){return(e=t(e[0]*A,e[1]*A))[0]*=T,e[1]*=T,e}return t=ye(t[0]*A,t[1]*A,t.length>2?t[2]*A:0),e.invert=function(e){return(e=t.invert(e[0]*A,e[1]*A))[0]*=T,e[1]*=T,e},e};function _e(t,e,i,n,r,o){if(i){var a=I(e),s=F(e),l=n*i;null==r?(r=e+n*C,o=e-l/2):(r=Se(a,r),o=Se(a,o),(n>0?r<o:r>o)&&(r+=n*C));for(var c,h=r;n>0?h>o:h<o;h-=l)c=ht([a,-s*I(h),-s*F(h)]),t.point(c[0],c[1])}}function Se(t,e){(e=ut(e))[0]-=t,mt(e);var i=B(-e[1]);return((-e[2]<0?-i:i)+C-w)%C}var Pe=function(){var t,e,i=fe([0,0]),n=fe(90),r=fe(6),o={point:function(i,n){t.push(i=e(i,n)),i[0]*=T,i[1]*=T}};function a(){var a=i.apply(this,arguments),s=n.apply(this,arguments)*A,l=r.apply(this,arguments)*A;return t=[],e=ye(-a[0]*A,-a[1]*A,0).invert,_e(o,s,l,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(i="function"==typeof t?t:fe([+t[0],+t[1]]),a):i},a.radius=function(t){return arguments.length?(n="function"==typeof t?t:fe(+t),a):n},a.precision=function(t){return arguments.length?(r="function"==typeof t?t:fe(+t),a):r},a},ke=function(){var t,e=[];return{point:function(e,i){t.push([e,i])},lineStart:function(){e.push(t=[])},lineEnd:X,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var i=e;return e=[],t=null,i}}},Ce=function(t,e){return O(t[0]-e[0])<w&&O(t[1]-e[1])<w};function Te(t,e,i,n){this.x=t,this.z=e,this.o=i,this.e=n,this.v=!1,this.n=this.p=null}var Ae=function(t,e,i,n,r){var o,a,s=[],l=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,i,n=t[0],a=t[e];if(Ce(n,a)){for(r.lineStart(),o=0;o<e;++o)r.point((n=t[o])[0],n[1]);r.lineEnd()}else s.push(i=new Te(n,t,null,!0)),l.push(i.o=new Te(n,null,i,!1)),s.push(i=new Te(a,t,null,!1)),l.push(i.o=new Te(a,null,i,!0))}})),s.length){for(l.sort(e),Oe(s),Oe(l),o=0,a=l.length;o<a;++o)l[o].e=i=!i;for(var c,h,u=s[0];;){for(var d=u,p=!0;d.v;)if((d=d.n)===u)return;c=d.z,r.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(o=0,a=c.length;o<a;++o)r.point((h=c[o])[0],h[1]);else n(d.x,d.n.x,1,r);d=d.n}else{if(p)for(c=d.p.z,o=c.length-1;o>=0;--o)r.point((h=c[o])[0],h[1]);else n(d.x,d.p.x,-1,r);d=d.p}c=(d=d.o).z,p=!p}while(!d.v);r.lineEnd()}}};function Oe(t){if(e=t.length){for(var e,i,n=0,r=t[0];++n<e;)r.n=i=t[n],i.p=r,r=i;r.n=i=t[0],i.p=r}}var Me=y();function Ee(t){return O(t[0])<=S?t[0]:R(t[0])*((O(t[0])+S)%C-S)}var Ie=function(t,e){var i=Ee(e),n=e[1],r=F(n),o=[F(i),-I(i),0],a=0,s=0;Me.reset(),1===r?n=P+w:-1===r&&(n=-P-w);for(var l=0,c=t.length;l<c;++l)if(u=(h=t[l]).length)for(var h,u,d=h[u-1],p=Ee(d),f=d[1]/2+k,g=F(f),m=I(f),y=0;y<u;++y,p=b,g=_,m=T,d=v){var v=h[y],b=Ee(v),x=v[1]/2+k,_=F(x),T=I(x),A=b-p,O=A>=0?1:-1,M=O*A,D=M>S,L=g*_;if(Me.add(E(L*O*F(M),m*T+L*I(M))),a+=D?A+O*C:A,D^p>=i^b>=i){var j=pt(ut(d),ut(v));mt(j);var N=pt(o,j);mt(N);var R=(D^A>=0?-1:1)*H(N[2]);(n>R||n===R&&(j[0]||j[1]))&&(s+=D^A>=0?1:-1)}}return(a<-w||a<w&&Me<-w)^1&s},De=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Le=function(t){return 1===t.length&&(t=function(t){return function(e,i){return De(t(e),i)}}(t)),{left:function(e,i,n,r){for(null==n&&(n=0),null==r&&(r=e.length);n<r;){var o=n+r>>>1;t(e[o],i)<0?n=o+1:r=o}return n},right:function(e,i,n,r){for(null==n&&(n=0),null==r&&(r=e.length);n<r;){var o=n+r>>>1;t(e[o],i)>0?r=o:n=o+1}return n}}}(De);Le.right,Le.left;var je=Array.prototype,Ne=(je.slice,je.map,function(t,e,i){t=+t,e=+e,i=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+i;for(var n=-1,r=0|Math.max(0,Math.ceil((e-t)/i)),o=new Array(r);++n<r;)o[n]=t+n*i;return o});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Fe=function(t){for(var e,i,n,r=t.length,o=-1,a=0;++o<r;)a+=t[o].length;for(i=new Array(a);--r>=0;)for(e=(n=t[r]).length;--e>=0;)i[--a]=n[e];return i},Re=function(t,e,i,n){return function(r){var o,a,s,l=e(r),c=ke(),h=e(c),u=!1,d={point:p,lineStart:g,lineEnd:m,polygonStart:function(){d.point=y,d.lineStart=v,d.lineEnd=b,a=[],o=[]},polygonEnd:function(){d.point=p,d.lineStart=g,d.lineEnd=m,a=Fe(a);var t=Ie(o,n);a.length?(u||(r.polygonStart(),u=!0),Ae(a,ze,t,i,r)):t&&(u||(r.polygonStart(),u=!0),r.lineStart(),i(null,null,1,r),r.lineEnd()),u&&(r.polygonEnd(),u=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),i(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function p(e,i){t(e,i)&&r.point(e,i)}function f(t,e){l.point(t,e)}function g(){d.point=f,l.lineStart()}function m(){d.point=p,l.lineEnd()}function y(t,e){s.push([t,e]),h.point(t,e)}function v(){h.lineStart(),s=[]}function b(){y(s[0][0],s[0][1]),h.lineEnd();var t,e,i,n,l=h.clean(),d=c.result(),p=d.length;if(s.pop(),o.push(s),s=null,p)if(1&l){if((e=(i=d[0]).length-1)>0){for(u||(r.polygonStart(),u=!0),r.lineStart(),t=0;t<e;++t)r.point((n=i[t])[0],n[1]);r.lineEnd()}}else p>1&&2&l&&d.push(d.pop().concat(d.shift())),a.push(d.filter(Ve))}return d}};function Ve(t){return t.length>1}function ze(t,e){return((t=t.x)[0]<0?t[1]-P-w:P-t[1])-((e=e.x)[0]<0?e[1]-P-w:P-e[1])}var Be=Re((function(){return!0}),(function(t){var e,i=NaN,n=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?S:-S,l=O(o-i);O(l-S)<w?(t.point(i,n=(n+a)/2>0?P:-P),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(o,n),e=0):r!==s&&l>=S&&(O(i-r)<w&&(i-=r*w),O(o-s)<w&&(o-=s*w),n=function(t,e,i,n){var r,o,a=F(t-i);return O(a)>w?M((F(e)*(o=I(n))*F(i)-F(n)*(r=I(e))*F(t))/(r*o*a)):(e+n)/2}(i,n,o,a),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(i=o,n=a),r=s},lineEnd:function(){t.lineEnd(),i=n=NaN},clean:function(){return 2-e}}}),(function(t,e,i,n){var r;if(null==t)r=i*P,n.point(-S,r),n.point(0,r),n.point(S,r),n.point(S,0),n.point(S,-r),n.point(0,-r),n.point(-S,-r),n.point(-S,0),n.point(-S,r);else if(O(t[0]-e[0])>w){var o=t[0]<e[0]?S:-S;r=i*o/2,n.point(-o,r),n.point(0,r),n.point(o,r)}else n.point(e[0],e[1])}),[-S,-P]),He=function(t){var e=I(t),i=6*A,n=e>0,r=O(e)>w;function o(t,i){return I(t)*I(i)>e}function a(t,i,n){var r=[1,0,0],o=pt(ut(t),ut(i)),a=dt(o,o),s=o[0],l=a-s*s;if(!l)return!n&&t;var c=e*a/l,h=-e*s/l,u=pt(r,o),d=gt(r,c);ft(d,gt(o,h));var p=u,f=dt(d,p),g=dt(p,p),m=f*f-g*(dt(d,d)-1);if(!(m<0)){var y=V(m),v=gt(p,(-f-y)/g);if(ft(v,d),v=ht(v),!n)return v;var b,x=t[0],_=i[0],P=t[1],k=i[1];_<x&&(b=x,x=_,_=b);var C=_-x,T=O(C-S)<w;if(!T&&k<P&&(b=P,P=k,k=b),T||C<w?T?P+k>0^v[1]<(O(v[0]-x)<w?P:k):P<=v[1]&&v[1]<=k:C>S^(x<=v[0]&&v[0]<=_)){var A=gt(p,(-f+y)/g);return ft(A,d),[v,ht(A)]}}}function s(e,i){var r=n?t:S-t,o=0;return e<-r?o|=1:e>r&&(o|=2),i<-r?o|=4:i>r&&(o|=8),o}return Re(o,(function(t){var e,i,l,c,h;return{lineStart:function(){c=l=!1,h=1},point:function(u,d){var p,f=[u,d],g=o(u,d),m=n?g?0:s(u,d):g?s(u+(u<0?S:-S),d):0;if(!e&&(c=l=g)&&t.lineStart(),g!==l&&(!(p=a(e,f))||Ce(e,p)||Ce(f,p))&&(f[0]+=w,f[1]+=w,g=o(f[0],f[1])),g!==l)h=0,g?(t.lineStart(),p=a(f,e),t.point(p[0],p[1])):(p=a(e,f),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(r&&e&&n^g){var y;m&i||!(y=a(f,e,!0))||(h=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&Ce(e,f)||t.point(f[0],f[1]),e=f,l=g,i=m},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return h|(c&&l)<<1}}}),(function(e,n,r,o){_e(o,t,i,r,e,n)}),n?[0,-t]:[-S,t-S])},We=1e9,Xe=-We;function Ye(t,e,i,n){function r(r,o){return t<=r&&r<=i&&e<=o&&o<=n}function o(r,o,s,c){var h=0,u=0;if(null==r||(h=a(r,s))!==(u=a(o,s))||l(r,o)<0^s>0)do{c.point(0===h||3===h?t:i,h>1?n:e)}while((h=(h+s+4)%4)!==u);else c.point(o[0],o[1])}function a(n,r){return O(n[0]-t)<w?r>0?0:3:O(n[0]-i)<w?r>0?2:1:O(n[1]-e)<w?r>0?1:0:r>0?3:2}function s(t,e){return l(t.x,e.x)}function l(t,e){var i=a(t,1),n=a(e,1);return i!==n?i-n:0===i?e[1]-t[1]:1===i?t[0]-e[0]:2===i?t[1]-e[1]:e[0]-t[0]}return function(a){var l,c,h,u,d,p,f,g,m,y,v,b=a,x=ke(),w={point:_,lineStart:function(){w.point=S,c&&c.push(h=[]),y=!0,m=!1,f=g=NaN},lineEnd:function(){l&&(S(u,d),p&&m&&x.rejoin(),l.push(x.result())),w.point=_,m&&b.lineEnd()},polygonStart:function(){b=x,l=[],c=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,i=0,r=c.length;i<r;++i)for(var o,a,s=c[i],l=1,h=s.length,u=s[0],d=u[0],p=u[1];l<h;++l)o=d,a=p,d=(u=s[l])[0],p=u[1],a<=n?p>n&&(d-o)*(n-a)>(p-a)*(t-o)&&++e:p<=n&&(d-o)*(n-a)<(p-a)*(t-o)&&--e;return e}(),i=v&&e,r=(l=Fe(l)).length;(i||r)&&(a.polygonStart(),i&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&Ae(l,s,e,o,a),a.polygonEnd()),b=a,l=c=h=null}};function _(t,e){r(t,e)&&b.point(t,e)}function S(o,a){var s=r(o,a);if(c&&h.push([o,a]),y)u=o,d=a,p=s,y=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&m)b.point(o,a);else{var l=[f=Math.max(Xe,Math.min(We,f)),g=Math.max(Xe,Math.min(We,g))],x=[o=Math.max(Xe,Math.min(We,o)),a=Math.max(Xe,Math.min(We,a))];!function(t,e,i,n,r,o){var a,s=t[0],l=t[1],c=0,h=1,u=e[0]-s,d=e[1]-l;if(a=i-s,u||!(a>0)){if(a/=u,u<0){if(a<c)return;a<h&&(h=a)}else if(u>0){if(a>h)return;a>c&&(c=a)}if(a=r-s,u||!(a<0)){if(a/=u,u<0){if(a>h)return;a>c&&(c=a)}else if(u>0){if(a<c)return;a<h&&(h=a)}if(a=n-l,d||!(a>0)){if(a/=d,d<0){if(a<c)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>c&&(c=a)}if(a=o-l,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>c&&(c=a)}else if(d>0){if(a<c)return;a<h&&(h=a)}return c>0&&(t[0]=s+c*u,t[1]=l+c*d),h<1&&(e[0]=s+h*u,e[1]=l+h*d),!0}}}}}(l,x,t,e,i,n)?s&&(b.lineStart(),b.point(o,a),v=!1):(m||(b.lineStart(),b.point(l[0],l[1])),b.point(x[0],x[1]),s||b.lineEnd(),v=!1)}f=o,g=a,m=s}return w}}var Ge,Ue,qe,$e=function(){var t,e,i,n=0,r=0,o=960,a=500;return i={stream:function(i){return t&&e===i?t:t=Ye(n,r,o,a)(e=i)},extent:function(s){return arguments.length?(n=+s[0][0],r=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,i):[[n,r],[o,a]]}}},Ke=y(),Ze={sphere:X,point:X,lineStart:function(){Ze.point=Qe,Ze.lineEnd=Je},lineEnd:X,polygonStart:X,polygonEnd:X};function Je(){Ze.point=Ze.lineEnd=X}function Qe(t,e){Ge=t*=A,Ue=F(e*=A),qe=I(e),Ze.point=ti}function ti(t,e){t*=A;var i=F(e*=A),n=I(e),r=O(t-Ge),o=I(r),a=n*F(r),s=qe*i-Ue*n*o,l=Ue*i+qe*n*o;Ke.add(E(V(a*a+s*s),l)),Ge=t,Ue=i,qe=n}var ei=function(t){return Ke.reset(),et(t,Ze),+Ke},ii=[null,null],ni={type:"LineString",coordinates:ii},ri=function(t,e){return ii[0]=t,ii[1]=e,ei(ni)},oi={Feature:function(t,e){return si(t.geometry,e)},FeatureCollection:function(t,e){for(var i=t.features,n=-1,r=i.length;++n<r;)if(si(i[n].geometry,e))return!0;return!1}},ai={Sphere:function(){return!0},Point:function(t,e){return li(t.coordinates,e)},MultiPoint:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)if(li(i[n],e))return!0;return!1},LineString:function(t,e){return ci(t.coordinates,e)},MultiLineString:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)if(ci(i[n],e))return!0;return!1},Polygon:function(t,e){return hi(t.coordinates,e)},MultiPolygon:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)if(hi(i[n],e))return!0;return!1},GeometryCollection:function(t,e){for(var i=t.geometries,n=-1,r=i.length;++n<r;)if(si(i[n],e))return!0;return!1}};function si(t,e){return!(!t||!ai.hasOwnProperty(t.type))&&ai[t.type](t,e)}function li(t,e){return 0===ri(t,e)}function ci(t,e){for(var i,n,r,o=0,a=t.length;o<a;o++){if(0===(n=ri(t[o],e)))return!0;if(o>0&&(r=ri(t[o],t[o-1]))>0&&i<=r&&n<=r&&(i+n-r)*(1-Math.pow((i-n)/r,2))<_*r)return!0;i=n}return!1}function hi(t,e){return!!Ie(t.map(ui),di(e))}function ui(t){return(t=t.map(di)).pop(),t}function di(t){return[t[0]*A,t[1]*A]}var pi=function(t,e){return(t&&oi.hasOwnProperty(t.type)?oi[t.type]:si)(t,e)};function fi(t,e,i){var n=Ne(t,e-w,i).concat(e);return function(t){return n.map((function(e){return[t,e]}))}}function gi(t,e,i){var n=Ne(t,e-w,i).concat(e);return function(t){return n.map((function(e){return[e,t]}))}}function mi(){var t,e,i,n,r,o,a,s,l,c,h,u,d=10,p=d,f=90,g=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return Ne(D(n/f)*f,i,f).map(h).concat(Ne(D(s/g)*g,a,g).map(u)).concat(Ne(D(e/d)*d,t,d).filter((function(t){return O(t%f)>w})).map(l)).concat(Ne(D(o/p)*p,r,p).filter((function(t){return O(t%g)>w})).map(c))}return y.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[h(n).concat(u(a).slice(1),h(i).reverse().slice(1),u(s).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(n=+t[0][0],i=+t[1][0],s=+t[0][1],a=+t[1][1],n>i&&(t=n,n=i,i=t),s>a&&(t=s,s=a,a=t),y.precision(m)):[[n,s],[i,a]]},y.extentMinor=function(i){return arguments.length?(e=+i[0][0],t=+i[1][0],o=+i[0][1],r=+i[1][1],e>t&&(i=e,e=t,t=i),o>r&&(i=o,o=r,r=i),y.precision(m)):[[e,o],[t,r]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(f=+t[0],g=+t[1],y):[f,g]},y.stepMinor=function(t){return arguments.length?(d=+t[0],p=+t[1],y):[d,p]},y.precision=function(d){return arguments.length?(m=+d,l=fi(o,r,90),c=gi(e,t,m),h=fi(s,a,90),u=gi(n,i,m),y):m},y.extentMajor([[-180,-90+w],[180,90-w]]).extentMinor([[-180,-80-w],[180,80+w]])}function yi(){return mi()()}var vi,bi,xi,wi,_i=function(t,e){var i=t[0]*A,n=t[1]*A,r=e[0]*A,o=e[1]*A,a=I(n),s=F(n),l=I(o),c=F(o),h=a*I(i),u=a*F(i),d=l*I(r),p=l*F(r),f=2*H(V(W(o-n)+a*l*W(r-i))),g=F(f),m=f?function(t){var e=F(t*=f)/g,i=F(f-t)/g,n=i*h+e*d,r=i*u+e*p,o=i*s+e*c;return[E(r,n)*T,E(o,V(n*n+r*r))*T]}:function(){return[i*T,n*T]};return m.distance=f,m},Si=function(t){return t},Pi=y(),ki=y(),Ci={point:X,lineStart:X,lineEnd:X,polygonStart:function(){Ci.lineStart=Ti,Ci.lineEnd=Mi},polygonEnd:function(){Ci.lineStart=Ci.lineEnd=Ci.point=X,Pi.add(O(ki)),ki.reset()},result:function(){var t=Pi/2;return Pi.reset(),t}};function Ti(){Ci.point=Ai}function Ai(t,e){Ci.point=Oi,vi=xi=t,bi=wi=e}function Oi(t,e){ki.add(wi*t-xi*e),xi=t,wi=e}function Mi(){Oi(vi,bi)}var Ei,Ii,Di,Li,ji=Ci,Ni=1/0,Fi=Ni,Ri=-Ni,Vi=Ri,zi={point:function(t,e){t<Ni&&(Ni=t),t>Ri&&(Ri=t),e<Fi&&(Fi=e),e>Vi&&(Vi=e)},lineStart:X,lineEnd:X,polygonStart:X,polygonEnd:X,result:function(){var t=[[Ni,Fi],[Ri,Vi]];return Ri=Vi=-(Fi=Ni=1/0),t}},Bi=0,Hi=0,Wi=0,Xi=0,Yi=0,Gi=0,Ui=0,qi=0,$i=0,Ki={point:Zi,lineStart:Ji,lineEnd:en,polygonStart:function(){Ki.lineStart=nn,Ki.lineEnd=rn},polygonEnd:function(){Ki.point=Zi,Ki.lineStart=Ji,Ki.lineEnd=en},result:function(){var t=$i?[Ui/$i,qi/$i]:Gi?[Xi/Gi,Yi/Gi]:Wi?[Bi/Wi,Hi/Wi]:[NaN,NaN];return Bi=Hi=Wi=Xi=Yi=Gi=Ui=qi=$i=0,t}};function Zi(t,e){Bi+=t,Hi+=e,++Wi}function Ji(){Ki.point=Qi}function Qi(t,e){Ki.point=tn,Zi(Di=t,Li=e)}function tn(t,e){var i=t-Di,n=e-Li,r=V(i*i+n*n);Xi+=r*(Di+t)/2,Yi+=r*(Li+e)/2,Gi+=r,Zi(Di=t,Li=e)}function en(){Ki.point=Zi}function nn(){Ki.point=on}function rn(){an(Ei,Ii)}function on(t,e){Ki.point=an,Zi(Ei=Di=t,Ii=Li=e)}function an(t,e){var i=t-Di,n=e-Li,r=V(i*i+n*n);Xi+=r*(Di+t)/2,Yi+=r*(Li+e)/2,Gi+=r,Ui+=(r=Li*t-Di*e)*(Di+t),qi+=r*(Li+e),$i+=3*r,Zi(Di=t,Li=e)}var sn=Ki;function ln(t){this._context=t}ln.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,C)}},result:X};var cn,hn,un,dn,pn,fn=y(),gn={point:X,lineStart:function(){gn.point=mn},lineEnd:function(){cn&&yn(hn,un),gn.point=X},polygonStart:function(){cn=!0},polygonEnd:function(){cn=null},result:function(){var t=+fn;return fn.reset(),t}};function mn(t,e){gn.point=yn,hn=dn=t,un=pn=e}function yn(t,e){dn-=t,pn-=e,fn.add(V(dn*dn+pn*pn)),dn=t,pn=e}var vn=gn;function bn(){this._string=[]}function xn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}bn.prototype={_radius:4.5,_circle:xn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=xn(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var wn=function(t,e){var i,n,r=4.5;function o(t){return t&&("function"==typeof r&&n.pointRadius(+r.apply(this,arguments)),et(t,i(n))),n.result()}return o.area=function(t){return et(t,i(ji)),ji.result()},o.measure=function(t){return et(t,i(vn)),vn.result()},o.bounds=function(t){return et(t,i(zi)),zi.result()},o.centroid=function(t){return et(t,i(sn)),sn.result()},o.projection=function(e){return arguments.length?(i=null==e?(t=null,Si):(t=e).stream,o):t},o.context=function(t){return arguments.length?(n=null==t?(e=null,new bn):new ln(e=t),"function"!=typeof r&&n.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(n.pointRadius(+t),+t),o):r},o.projection(t).context(e)},_n=function(t){return{stream:Sn(t)}};function Sn(t){return function(e){var i=new Pn;for(var n in t)i[n]=t[n];return i.stream=e,i}}function Pn(){}function kn(t,e,i){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),et(i,t.stream(zi)),e(zi.result()),null!=n&&t.clipExtent(n),t}function Cn(t,e,i){return kn(t,(function(i){var n=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(n/(i[1][0]-i[0][0]),r/(i[1][1]-i[0][1])),a=+e[0][0]+(n-o*(i[1][0]+i[0][0]))/2,s=+e[0][1]+(r-o*(i[1][1]+i[0][1]))/2;t.scale(150*o).translate([a,s])}),i)}function Tn(t,e,i){return Cn(t,[[0,0],e],i)}function An(t,e,i){return kn(t,(function(i){var n=+e,r=n/(i[1][0]-i[0][0]),o=(n-r*(i[1][0]+i[0][0]))/2,a=-r*i[0][1];t.scale(150*r).translate([o,a])}),i)}function On(t,e,i){return kn(t,(function(i){var n=+e,r=n/(i[1][1]-i[0][1]),o=-r*i[0][0],a=(n-r*(i[1][1]+i[0][1]))/2;t.scale(150*r).translate([o,a])}),i)}Pn.prototype={constructor:Pn,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Mn=I(30*A),En=function(t,e){return+e?function(t,e){function i(n,r,o,a,s,l,c,h,u,d,p,f,g,m){var y=c-n,v=h-r,b=y*y+v*v;if(b>4*e&&g--){var x=a+d,_=s+p,S=l+f,P=V(x*x+_*_+S*S),k=H(S/=P),C=O(O(S)-1)<w||O(o-u)<w?(o+u)/2:E(_,x),T=t(C,k),A=T[0],M=T[1],I=A-n,D=M-r,L=v*I-y*D;(L*L/b>e||O((y*I+v*D)/b-.5)>.3||a*d+s*p+l*f<Mn)&&(i(n,r,o,a,s,l,A,M,C,x/=P,_/=P,S,g,m),m.point(A,M),i(A,M,C,x,_,S,c,h,u,d,p,f,g,m))}}return function(e){var n,r,o,a,s,l,c,h,u,d,p,f,g={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function m(i,n){i=t(i,n),e.point(i[0],i[1])}function y(){h=NaN,g.point=v,e.lineStart()}function v(n,r){var o=ut([n,r]),a=t(n,r);i(h,u,c,d,p,f,h=a[0],u=a[1],c=n,d=o[0],p=o[1],f=o[2],16,e),e.point(h,u)}function b(){g.point=m,e.lineEnd()}function x(){y(),g.point=w,g.lineEnd=_}function w(t,e){v(n=t,e),r=h,o=u,a=d,s=p,l=f,g.point=v}function _(){i(h,u,c,d,p,f,r,o,n,a,s,l,16,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return Sn({point:function(e,i){e=t(e,i),this.stream.point(e[0],e[1])}})}(t)},In=Sn({point:function(t,e){this.stream.point(t*A,e*A)}});function Dn(t,e,i,n){var r=I(n),o=F(n),a=r*t,s=o*t,l=r/t,c=o/t,h=(o*i-r*e)/t,u=(o*e+r*i)/t;function d(t,n){return[a*t-s*n+e,i-s*t-a*n]}return d.invert=function(t,e){return[l*t-c*e+h,u-c*t-l*e]},d}function Ln(t){return jn((function(){return t}))()}function jn(t){var e,i,n,r,o,a,s,l,c,h,u=150,d=480,p=250,f=0,g=0,m=0,y=0,v=0,b=0,x=null,w=Be,_=null,S=Si,P=.5;function k(t){return l(t[0]*A,t[1]*A)}function C(t){return(t=l.invert(t[0],t[1]))&&[t[0]*T,t[1]*T]}function O(){var t=Dn(u,0,0,b).apply(null,e(f,g)),n=(b?Dn:function(t,e,i){function n(n,r){return[e+t*n,i-t*r]}return n.invert=function(n,r){return[(n-e)/t,(i-r)/t]},n})(u,d-t[0],p-t[1],b);return i=ye(m,y,v),s=ge(e,n),l=ge(i,s),a=En(s,P),M()}function M(){return c=h=null,k}return k.stream=function(t){return c&&h===t?c:c=In(function(t){return Sn({point:function(e,i){var n=t(e,i);return this.stream.point(n[0],n[1])}})}(i)(w(a(S(h=t)))))},k.preclip=function(t){return arguments.length?(w=t,x=void 0,M()):w},k.postclip=function(t){return arguments.length?(S=t,_=n=r=o=null,M()):S},k.clipAngle=function(t){return arguments.length?(w=+t?He(x=t*A):(x=null,Be),M()):x*T},k.clipExtent=function(t){return arguments.length?(S=null==t?(_=n=r=o=null,Si):Ye(_=+t[0][0],n=+t[0][1],r=+t[1][0],o=+t[1][1]),M()):null==_?null:[[_,n],[r,o]]},k.scale=function(t){return arguments.length?(u=+t,O()):u},k.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],O()):[d,p]},k.center=function(t){return arguments.length?(f=t[0]%360*A,g=t[1]%360*A,O()):[f*T,g*T]},k.rotate=function(t){return arguments.length?(m=t[0]%360*A,y=t[1]%360*A,v=t.length>2?t[2]%360*A:0,O()):[m*T,y*T,v*T]},k.angle=function(t){return arguments.length?(b=t%360*A,O()):b*T},k.precision=function(t){return arguments.length?(a=En(s,P=t*t),M()):V(P)},k.fitExtent=function(t,e){return Cn(k,t,e)},k.fitSize=function(t,e){return Tn(k,t,e)},k.fitWidth=function(t,e){return An(k,t,e)},k.fitHeight=function(t,e){return On(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&C,O()}}function Nn(t){var e=0,i=S/3,n=jn(t),r=n(e,i);return r.parallels=function(t){return arguments.length?n(e=t[0]*A,i=t[1]*A):[e*T,i*T]},r}function Fn(t,e){var i=F(t),n=(i+F(e))/2;if(O(n)<w)return function(t){var e=I(t);function i(t,i){return[t*e,F(i)/e]}return i.invert=function(t,i){return[t/e,H(i*e)]},i}(t);var r=1+i*(2*n-i),o=V(r)/n;function a(t,e){var i=V(r-2*n*F(e))/n;return[i*F(t*=n),o-i*I(t)]}return a.invert=function(t,e){var i=o-e;return[E(t,O(i))/n*R(i),H((r-(t*t+i*i)*n*n)/(2*n))]},a}var Rn=function(){return Nn(Fn).scale(155.424).center([0,33.6442])},Vn=function(){return Rn().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},zn=function(){var t,e,i,n,r,o,a=Vn(),s=Rn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Rn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],a=t[1];return o=null,i.point(e,a),o||(n.point(e,a),o)||(r.point(e,a),o)}function u(){return t=e=null,h}return h.invert=function(t){var e=a.scale(),i=a.translate(),n=(t[0]-i[0])/e,r=(t[1]-i[1])/e;return(r>=.12&&r<.234&&n>=-.425&&n<-.214?s:r>=.166&&r<.234&&n>=-.214&&n<-.115?l:a).invert(t)},h.stream=function(i){return t&&e===i?t:t=function(t){var e=t.length;return{point:function(i,n){for(var r=-1;++r<e;)t[r].point(i,n)},sphere:function(){for(var i=-1;++i<e;)t[i].sphere()},lineStart:function(){for(var i=-1;++i<e;)t[i].lineStart()},lineEnd:function(){for(var i=-1;++i<e;)t[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<e;)t[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<e;)t[i].polygonEnd()}}}([a.stream(e=i),s.stream(i),l.stream(i)])},h.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),l.precision(t),u()):a.precision()},h.scale=function(t){return arguments.length?(a.scale(t),s.scale(.35*t),l.scale(t),h.translate(a.translate())):a.scale()},h.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],h=+t[1];return i=a.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(c),n=s.translate([o-.307*e,h+.201*e]).clipExtent([[o-.425*e+w,h+.12*e+w],[o-.214*e-w,h+.234*e-w]]).stream(c),r=l.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+w,h+.166*e+w],[o-.115*e-w,h+.234*e-w]]).stream(c),u()},h.fitExtent=function(t,e){return Cn(h,t,e)},h.fitSize=function(t,e){return Tn(h,t,e)},h.fitWidth=function(t,e){return An(h,t,e)},h.fitHeight=function(t,e){return On(h,t,e)},h.scale(1070)};function Bn(t){return function(e,i){var n=I(e),r=I(i),o=t(n*r);return[o*r*F(e),o*F(i)]}}function Hn(t){return function(e,i){var n=V(e*e+i*i),r=t(n),o=F(r),a=I(r);return[E(e*o,n*a),H(n&&i*o/n)]}}var Wn=Bn((function(t){return V(2/(1+t))}));Wn.invert=Hn((function(t){return 2*H(t/2)}));var Xn=function(){return Ln(Wn).scale(124.75).clipAngle(179.999)},Yn=Bn((function(t){return(t=B(t))&&t/F(t)}));Yn.invert=Hn((function(t){return t}));var Gn=function(){return Ln(Yn).scale(79.4188).clipAngle(179.999)};function Un(t,e){return[t,j(z((P+e)/2))]}Un.invert=function(t,e){return[t,2*M(L(e))-P]};var qn=function(){return $n(Un).scale(961/C)};function $n(t){var e,i,n,r=Ln(t),o=r.center,a=r.scale,s=r.translate,l=r.clipExtent,c=null;function h(){var o=S*a(),s=r(we(r.rotate()).invert([0,0]));return l(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===Un?[[Math.max(s[0]-o,c),e],[Math.min(s[0]+o,i),n]]:[[c,Math.max(s[1]-o,e)],[i,Math.min(s[1]+o,n)]])}return r.scale=function(t){return arguments.length?(a(t),h()):a()},r.translate=function(t){return arguments.length?(s(t),h()):s()},r.center=function(t){return arguments.length?(o(t),h()):o()},r.clipExtent=function(t){return arguments.length?(null==t?c=e=i=n=null:(c=+t[0][0],e=+t[0][1],i=+t[1][0],n=+t[1][1]),h()):null==c?null:[[c,e],[i,n]]},h()}function Kn(t){return z((P+t)/2)}function Zn(t,e){var i=I(t),n=t===e?F(t):j(i/I(e))/j(Kn(e)/Kn(t)),r=i*N(Kn(t),n)/n;if(!n)return Un;function o(t,e){r>0?e<-P+w&&(e=-P+w):e>P-w&&(e=P-w);var i=r/N(Kn(e),n);return[i*F(n*t),r-i*I(n*t)]}return o.invert=function(t,e){var i=r-e,o=R(n)*V(t*t+i*i);return[E(t,O(i))/n*R(i),2*M(N(r/o,1/n))-P]},o}var Jn=function(){return Nn(Zn).scale(109.5).parallels([30,30])};function Qn(t,e){return[t,e]}Qn.invert=Qn;var tr=function(){return Ln(Qn).scale(152.63)};function er(t,e){var i=I(t),n=t===e?F(t):(i-I(e))/(e-t),r=i/n+t;if(O(n)<w)return Qn;function o(t,e){var i=r-e,o=n*t;return[i*F(o),r-i*I(o)]}return o.invert=function(t,e){var i=r-e;return[E(t,O(i))/n*R(i),r-R(n)*V(t*t+i*i)]},o}var ir=function(){return Nn(er).scale(131.154).center([0,13.9389])},nr=1.340264,rr=-.081106,or=893e-6,ar=.003796,sr=V(3)/2;function lr(t,e){var i=H(sr*F(e)),n=i*i,r=n*n*n;return[t*I(i)/(sr*(nr+3*rr*n+r*(7*or+9*ar*n))),i*(nr+rr*n+r*(or+ar*n))]}lr.invert=function(t,e){for(var i,n=e,r=n*n,o=r*r*r,a=0;a<12&&(o=(r=(n-=i=(n*(nr+rr*r+o*(or+ar*r))-e)/(nr+3*rr*r+o*(7*or+9*ar*r)))*n)*r*r,!(O(i)<_));++a);return[sr*t*(nr+3*rr*r+o*(7*or+9*ar*r))/I(n),H(F(n)/sr)]};var cr=function(){return Ln(lr).scale(177.158)};function hr(t,e){var i=I(e),n=I(t)*i;return[i*F(t)/n,F(e)/n]}hr.invert=Hn(M);var ur=function(){return Ln(hr).scale(144.049).clipAngle(60)};function dr(t,e,i,n){return 1===t&&1===e&&0===i&&0===n?Si:Sn({point:function(r,o){this.stream.point(r*t+i,o*e+n)}})}var pr=function(){var t,e,i,n,r,o,a=1,s=0,l=0,c=1,h=1,u=Si,d=null,p=Si;function f(){return n=r=null,o}return o={stream:function(t){return n&&r===t?n:n=u(p(r=t))},postclip:function(n){return arguments.length?(p=n,d=t=e=i=null,f()):p},clipExtent:function(n){return arguments.length?(p=null==n?(d=t=e=i=null,Si):Ye(d=+n[0][0],t=+n[0][1],e=+n[1][0],i=+n[1][1]),f()):null==d?null:[[d,t],[e,i]]},scale:function(t){return arguments.length?(u=dr((a=+t)*c,a*h,s,l),f()):a},translate:function(t){return arguments.length?(u=dr(a*c,a*h,s=+t[0],l=+t[1]),f()):[s,l]},reflectX:function(t){return arguments.length?(u=dr(a*(c=t?-1:1),a*h,s,l),f()):c<0},reflectY:function(t){return arguments.length?(u=dr(a*c,a*(h=t?-1:1),s,l),f()):h<0},fitExtent:function(t,e){return Cn(o,t,e)},fitSize:function(t,e){return Tn(o,t,e)},fitWidth:function(t,e){return An(o,t,e)},fitHeight:function(t,e){return On(o,t,e)}}};function fr(t,e){var i=e*e,n=i*i;return[t*(.8707-.131979*i+n*(n*(.003971*i-.001529*n)-.013791)),e*(1.007226+i*(.015085+n*(.028874*i-.044475-.005916*n)))]}fr.invert=function(t,e){var i,n=e,r=25;do{var o=n*n,a=o*o;n-=i=(n*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(O(i)>w&&--r>0);return[t/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]};var gr=function(){return Ln(fr).scale(175.295)};function mr(t,e){return[I(e)*F(t),F(e)]}mr.invert=Hn(H);var yr=function(){return Ln(mr).scale(249.5).clipAngle(90+w)};function vr(t,e){var i=I(e),n=1+I(t)*i;return[i*F(t)/n,F(e)/n]}vr.invert=Hn((function(t){return 2*M(t)}));var br=function(){return Ln(vr).scale(250).clipAngle(142)};function xr(t,e){return[j(z((P+e)/2)),-t]}xr.invert=function(t,e){return[-e,2*M(L(t))-P]};var wr=function(){var t=$n(xr),e=t.center,i=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?i([t[0],t[1],t.length>2?t[2]+90:90]):[(t=i())[0],t[1],t[2]-90]},i([0,0,90]).scale(159.155)},_r=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeriesDataItem",e.values.value={},e.applyTheme(),e}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.properties.zoomLevel},set:function(t){this.setProperty("zoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){return this.properties.zoomGeoPoint},set:function(t){this.setProperty("zoomGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return this._east},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return this._west},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return this._south},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return this._north},enumerable:!0,configurable:!0}),e.prototype.updateExtremes=function(){var t=this.getFeature().geometry;if(t){var e=ee(t),i=e[0][0],n=e[0][1],r=e[1][1],o=e[1][0],a=!1;r!=this.north&&(this._north=m.round(r,6),a=!0),n!=this.south&&(this._south=m.round(n,6),a=!0),o!=this.east&&(this._east=m.round(o,6),a=!0),i!=this.west&&(this._west=m.round(i,6),a=!0),this._east<this._west&&(this._east=180,this._west=-180),a&&this.component.invalidateDataItems()}},e.prototype.getFeature=function(){return{}},e}(p.b),Sr=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeries",e.isMeasured=!1,e.nonScalingStroke=!0,e.dataFields.value="value",e.ignoreBounds=!1,e.tooltip&&(e.tooltip.showInViewport=!0),e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new _r},e.prototype.checkInclude=function(t,e,i){if(t){if(0==t.length)return!1;if(-1==t.indexOf(i))return!1}return!(e&&e.length>0&&-1!=e.indexOf(i))},Object.defineProperty(e.prototype,"useGeodata",{get:function(){return this.getPropertyValue("useGeodata")},set:function(t){this.setPropertyValue("useGeodata",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"include",{get:function(){return this.getPropertyValue("include")},set:function(t){this.setPropertyValue("include",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.processIncExc=function(){this.invalidateData()},Object.defineProperty(e.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)&&this.chart&&this.chart.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exclude",{get:function(){return this.getPropertyValue("exclude")},set:function(t){this.setPropertyValue("exclude",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.handleObjectAdded=function(t){var e=t.newValue;e.parent=this,e.series=this,e.strokeWidth=e.strokeWidth},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){if(t!=this._geodata){this._geodata=t;for(var e=this.data.length-1;e>=0;e--)1==this.data[e].madeFromGeoData&&this.data.splice(e,1);this.disposeData(),this.invalidateData()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",(function(){e.loadData("geodata")}),void 0,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.getFeatures=function(){},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,i,n;this.dataItems.each((function(r){(r.north>t||!g.isNumber(t))&&(t=r.north),(r.south<e||!g.isNumber(e))&&(e=r.south),(r.west<n||!g.isNumber(n))&&(n=r.west),(r.east>i||!g.isNumber(i))&&(i=r.east)})),this._mapObjects&&this._mapObjects.each((function(r){(r.north>t||!g.isNumber(t))&&(t=r.north),(r.south<e||!g.isNumber(e))&&(e=r.south),(r.west<n||!g.isNumber(n))&&(n=r.west),(r.east>i||!g.isNumber(i))&&(i=r.east)})),this.north==t&&this.east==i&&this.south==e&&this.west==n||(this._north=t,this._east=i,this._west=n,this._south=e,this.dispatch("geoBoundsChanged"),this.ignoreBounds||this.chart.updateExtremes())},Object.defineProperty(e.prototype,"north",{get:function(){return g.isNumber(this._northDefined)?this._northDefined:this._north},set:function(t){this._northDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return g.isNumber(this._southDefined)?this._southDefined:this._south},set:function(t){this._southDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return g.isNumber(this._westDefined)?this._westDefined:this._west},set:function(t){this._westDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return g.isNumber(this._eastDefined)?this._eastDefined:this._east},set:function(t){this._eastDefined=t},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(g.hasValue(e.geodata)&&g.isString(e.geodata)){var i=e.geodata;if(g.hasValue(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(t){throw Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect.")}}t.prototype.processConfig.call(this,e)},e.prototype.asIs=function(e){return"geodata"==e||t.prototype.asIs.call(this,e)},e.prototype.updateTooltipBounds=function(){this.tooltip&&this.topParent&&this.tooltip.setBounds({x:10,y:10,width:this.topParent.maxWidth-20,height:this.topParent.maxHeight-20})},e}(p.a);f.c.registeredClasses.MapSeries=Sr,f.c.registeredClasses.MapSeriesDataItem=_r;var Pr=i("C6dT"),kr=function(t){function e(){var e=t.call(this)||this;return e.className="MapObject",e.isMeasured=!1,e.layout="none",e.clickable=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.validate=function(){this.series&&(this.readerTitle=this.series.itemReaderText),t.prototype.validate.call(this)},e.prototype.updateExtremes=function(){var t=this.getFeature();if(t){var e=t.geometry;if(e){var i=ee(e),n=i[0][0],r=i[0][1],o=i[1][1],a=i[1][0],s=!1;o!=this.north&&(this._north=m.round(o,8),s=!0),r!=this.south&&(this._south=m.round(r),s=!0),a!=this.east&&(this._east=m.round(a),s=!0),n!=this.west&&(this._west=m.round(n),s=!0),s&&(this.dispatch("geoBoundsChanged"),this.series&&this.series.invalidateDataItems())}}},e.prototype.getFeature=function(){return{}},Object.defineProperty(e.prototype,"east",{get:function(){return g.isNumber(this._east)?this._east:this.dataItem?this.dataItem.east:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return g.isNumber(this._west)?this._west:this.dataItem?this.dataItem.west:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return g.isNumber(this._south)?this._south:this.dataItem?this.dataItem.south:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return g.isNumber(this._north)?this._north:this.dataItem?this.dataItem.north:void 0},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(e){var i=t.prototype.showTooltip.call(this,e);return i&&"always"==this.showTooltipOn&&!this.series.chart.events.has("mappositionchanged",this.handleTooltipMove,this)&&this.series.chart.events.on("mappositionchanged",this.handleTooltipMove,this),i},e.prototype.handleTooltipMove=function(t){this.showTooltip()},e}(Pr.a);f.c.registeredClasses.MapObject=kr;var Cr=function(t){function e(){var e=t.call(this)||this;return e.className="MapImage",e.applyTheme(),e}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"latitude",{get:function(){return this.getPropertyValue("latitude")},set:function(t){this.setPropertyValue("latitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.getPropertyValue("longitude")},set:function(t){this.setPropertyValue("longitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),e.prototype.validatePosition=function(){if(g.isNumber(this.latitude)&&g.isNumber(this.longitude)){var e=this.series.chart.projection.d3Projection([this.longitude,this.latitude]),i=this.series.chart.projection.d3Path({type:"Point",coordinates:[this.longitude,this.latitude]});this.__disabled=!i,this.moveTo({x:e[0],y:e[1]})}t.prototype.validatePosition.call(this)},e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:[this.longitude,this.latitude]}}},e}(kr);f.c.registeredClasses.MapImage=Cr;var Tr=i("R6wv"),Ar=i("U8r1"),Or=i.n(Ar),Mr=i("hJ5i");function Er(t){return Mr.map(t,(function(t){var e=t[0],i=t[1],n=[];return e&&n.push(Dr(e)),i&&n.push(Dr(i)),n}))}function Ir(t){return Mr.map(t,(function(t){return Dr(t)}))}function Dr(t){return Mr.map(t,(function(t){return jr(t)}))}function Lr(t){return Mr.map(t,Nr)}function jr(t){return{longitude:t[0],latitude:t[1]}}function Nr(t){return[t.longitude,t.latitude]}function Fr(t){return Mr.map(t,(function(t){return Mr.map(t,Nr)}))}function Rr(t){return Mr.map(t,(function(t){var e=t[0],i=t[1],n=[];return e&&n.push(Lr(e)),i&&n.push(Lr(i)),n}))}function Vr(t,e,i){return[Pe().center([t,e]).radius(i)().coordinates]}function zr(t,e,i,n){var r=[];-180==n&&(n=-179.9999),-90==i&&(i=-89.9999),90==t&&(t=89.9999),180==e&&(e=179.9999);for(var o=Math.min(90,(e-n)/Math.ceil((e-n)/90)),a=(t-i)/Math.ceil((t-i)/90),s=n;s<e;s+=o){var l=[];r.push([l]),s+o>e&&(o=e-s);for(var c=s;c<=s+o;c+=5)l.push([c,t]);for(var h=t;h>=i;h-=a)l.push([s+o,h]);for(c=s+o;c>=s;c-=5)l.push([c,i]);for(h=i;h<=t;h+=a)l.push([s,h])}return r}var Br=function(t){function e(){var e=t.call(this)||this;e.className="MapPolygon",e.polygon=e.createChild(Tr.a),e.polygon.shouldClone=!1,e.polygon.applyOnClones=!0;var i=new d.a;return e.fill=i.getFor("secondaryButton"),e.stroke=i.getFor("secondaryButtonStroke"),e.strokeOpacity=1,e.tooltipPosition="pointer",e.nonScalingStroke=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){var t=this.getPropertyValue("multiGeoPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiGeoPolygon),t},set:function(t){this.setPropertyValue("multiGeoPolygon",t,!0),this.multiPolygon=Rr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){var t=this.getPropertyValue("multiPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiPolygon),t},set:function(t){this.setPropertyValue("multiPolygon",t)&&(this.updateExtremes(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.validate=function(){if(this.series){var e=this.series.chart.projection;e.d3Projection.precision(.5);var i=e.d3Path;if(this.multiPolygon){if(this.series){var n={type:"MultiPolygon",coordinates:this.multiPolygon};this.polygon.path=i(n)}if(this.series.calculateVisualCenter){var r=0,o=this.multiPolygon[0];if(this.multiPolygon.length>1)for(var a=0;a<this.multiPolygon.length;a++){var s=this.multiPolygon[a],l=ct({type:"Polygon",coordinates:s});l>r&&(o=s,r=l)}var c=Or()(o);this._visualLongitude=c[0],this._visualLatitude=c[1]}else this._visualLongitude=this.longitude,this._visualLatitude=this.latitude}}t.prototype.validate.call(this)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLatitude",{get:function(){var t=this.getPropertyValue("visualLatitude");return g.isNumber(t)?t:this._adapterO?this._adapterO.apply("visualLatitude",this._visualLatitude):this._visualLatitude},set:function(t){this.setPropertyValue("visualLatitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLongitude",{get:function(){var t=this.getPropertyValue("visualLongitude");return g.isNumber(t)?t:this._adapterO?this._adapterO.apply("visualLongitude",this._visualLongitude):this._visualLongitude},set:function(t){this.setPropertyValue("visualLongitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){return this.polygon.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){return this.polygon.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.polygon.copyFrom(e.polygon)},e.prototype.updateExtremes=function(){t.prototype.updateExtremes.call(this)},Object.defineProperty(e.prototype,"boxArea",{get:function(){return(this.north-this.south)*(this.east-this.west)},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).x},e.prototype.getTooltipY=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).y},e}(kr);f.c.registeredClasses.MapPolygon=Br;var Hr=i("vMqJ"),Wr=i("v9UT"),Xr=i("Wglt"),Yr=function(t){function e(){var e=t.call(this)||this;return e.className="MapPolygonSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"mapPolygon",{get:function(){var t=this;if(!this._mapPolygon){var e=this.component.mapPolygons.create();this._mapPolygon=e,this.addSprite(e),this._disposers.push(new u.b((function(){t.component&&t.component.mapPolygons.removeValue(e)}))),this.mapObject=e}return this._mapPolygon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygon",{get:function(){return this._polygon},set:function(t){this._polygon=t,this.multiPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){return this._multiPolygon},set:function(t){this._multiPolygon=t,this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPolygon",{get:function(){return this._geoPolygon},set:function(t){this._geoPolygon=t,this.multiGeoPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){return this._multiGeoPolygon},set:function(t){this._multiGeoPolygon=t,this.multiPolygon=Rr(t)},enumerable:!0,configurable:!0}),e}(_r),Gr=function(t){function e(){var e=t.call(this)||this;return e.calculateVisualCenter=!1,e.className="MapPolygonSeries",e.dataFields.multiPolygon="multiPolygon",e.dataFields.polygon="polygon",e.dataFields.geoPolygon="geoPolygon",e.dataFields.multiGeoPolygon="multiGeoPolygon",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new Yr},e.prototype.processIncExc=function(){this.mapPolygons.clear(),t.prototype.processIncExc.call(this)},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this._dataSources.geodata?void 0:this.chart.geodata;if(this.geodata&&(e=this.geodata),e){var i=void 0;if("FeatureCollection"==e.type?i=e.features:"Feature"==e.type?i=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?i=[{geometry:e}]:console.log("nothing found in geoJSON"),i)for(var n=function(t,e){var n=i[t],o=n.geometry;if(o){var a=o.type,s=n.id;if(r.chart.geodataNames&&r.chart.geodataNames[s]&&(n.properties.name=r.chart.geodataNames[s]),"Polygon"==a||"MultiPolygon"==a){if(!r.checkInclude(r.include,r.exclude,s))return"continue";var l=o.coordinates;l&&"Polygon"==a&&(l=[l]);var c=Mr.find(r.data,(function(t,e){return t.id==s}));c?c.multiPolygon||(c.multiPolygon=l):(c={multiPolygon:l,id:s,madeFromGeoData:!0},r.data.push(c)),Wr.softCopyProperties(n.properties,c)}}},r=this,o=0,a=i.length;o<a;o++)n(o)}}t.prototype.validateData.call(this)},e.prototype.validate=function(){t.prototype.validate.call(this),this.dataItems.each((function(t){Wr.used(t.mapPolygon)})),this.mapPolygons.each((function(t){t.validate(),t.zIndex||t.propertyFields.zIndex||(t.zIndex=1e6-t.boxArea)}))},Object.defineProperty(e.prototype,"mapPolygons",{get:function(){if(!this._mapPolygons){var t=new Br,e=new Hr.e(t);this._disposers.push(new Hr.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapPolygons=e,this._mapObjects=e}return this._mapPolygons},enumerable:!0,configurable:!0}),e.prototype.getPolygonById=function(t){return Xr.find(this.mapPolygons.iterator(),(function(e){return e.dataItem.dataContext.id==t}))},e.prototype.copyFrom=function(e){this.mapPolygons.template.copyFrom(e.mapPolygons.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapPolygons.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e}(Sr);f.c.registeredClasses.MapPolygonSeries=Gr,f.c.registeredClasses.MapPolygonSeriesDataItem=Yr;var Ur=function(){function t(){this.d3Projection=tr()}return Object.defineProperty(t.prototype,"d3Projection",{get:function(){return this._d3Projection},set:function(t){this._d3Projection=t,t.precision(.1),this._d3Path=wn().projection(t),this.chart&&this.chart.invalidateProjection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"d3Path",{get:function(){return this._d3Path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.d3Projection.scale()/100},enumerable:!0,configurable:!0}),t.prototype.convert=function(t){var e=this.d3Projection([t.longitude,t.latitude]);if(e)return{x:e[0],y:e[1]}},t.prototype.invert=function(t){var e=this.d3Projection.invert([t.x,t.y]);if(e)return{longitude:e[0],latitude:e[1]}},t.prototype.project=function(t,e){return this.convert({longitude:t*m.DEGREES,latitude:e*m.DEGREES})},t.prototype.unproject=function(t,e){return this.invert({x:t,y:e})},t.prototype.rotate=function(t,e,i,n){var r=e*m.RADIANS,o=i*m.RADIANS;n*=m.RADIANS;var a=t.longitude*m.RADIANS+r,s=t.latitude*m.RADIANS,l=Math.cos(o),c=Math.sin(o),h=Math.cos(n),u=Math.sin(n),d=Math.cos(s),p=Math.cos(a)*d,f=Math.sin(a)*d,g=Math.sin(s),y=g*l+p*c;return{longitude:m.DEGREES*Math.atan2(f*h-y*u,p*l-g*c),latitude:m.DEGREES*Math.asin(y*h+f*u)}},t.prototype.unrotate=function(t,e,i,n){var r=e*m.RADIANS,o=i*m.RADIANS;n*=m.RADIANS;var a=t.longitude*m.RADIANS-r,s=t.latitude*m.RADIANS,l=Math.cos(o),c=Math.sin(o),h=Math.cos(n),u=Math.sin(n),d=Math.cos(s),p=Math.cos(a)*d,f=Math.sin(a)*d,g=Math.sin(s),y=g*h-f*u;return{longitude:m.DEGREES*Math.atan2(f*h+g*u,p*l+y*c),latitude:m.DEGREES*Math.asin(y*l-p*c)}},t.prototype.intermediatePoint=function(t,e,i){var n=_i([t.longitude,t.latitude],[e.longitude,e.latitude])(i);return{longitude:n[0],latitude:n[1]}},t.prototype.multiDistance=function(t){for(var e=0,i=0;i<t.length;i++){var n=t[i];if(n.length>1)for(var r=1;r<n.length;r++){var o=n[r-1],a=n[r];e+=this.distance(o,a)}}return e},t.prototype.distance=function(t,e){return ri([t.longitude,t.latitude],[e.longitude,e.latitude])},t.prototype.positionToPoint=function(t,e){if(t){var i=this.positionToGeoPoint(t,e),n=this.positionToGeoPoint(t,e-.01),r=this.positionToGeoPoint(t,e+.01);if(n&&r){var o=this.convert(i),a=this.convert(n),s=this.convert(r);return{x:o.x,y:o.y,angle:m.getAngle(a,s)}}}return{x:0,y:0,angle:0}},t.prototype.positionToGeoPoint=function(t,e){if(t){for(var i=this.multiDistance(t),n=0,r=0,o=0,a=void 0,s=void 0,l=0;l<t.length;l++){var c=t[l];if(c.length>1){for(var h=1;h<c.length;h++)if(a=c[h-1],s=c[h],r=n/i,o=(n+=this.distance(a,s))/i,r<=e&&o>e){l=t.length;break}}else 1==c.length&&(a=c[0],s=c[0],r=0,o=1)}if(a&&s){var u=(e-r)/(o-r);return this.intermediatePoint(a,s,u)}}return{longitude:0,latitude:0}},t}();f.c.registeredClasses.Projection=Ur;var qr=i("FzPm"),$r=i("GtDR"),Kr=i("8ZqG"),Zr=function(t){function e(){var e=t.call(this)||this;e._chart=new u.d,e.className="SmallMap",e.align="left",e.valign="bottom",e.percentHeight=20,e.percentWidth=20,e.margin(5,5,5,5);var i=new d.a;e.background.fillOpacity=.9,e.background.fill=i.getFor("background"),e.events.on("hit",e.moveToPosition,e,!1),e.events.on("maxsizechanged",e.updateMapSize,e,!1),e.seriesContainer=e.createChild(Pr.a),e.seriesContainer.shouldClone=!1;var n=e.createChild($r.a);return n.shouldClone=!1,n.stroke=i.getFor("alternativeBackground"),n.strokeWidth=1,n.strokeOpacity=.5,n.fill=Object(Kr.c)(),n.verticalCenter="middle",n.horizontalCenter="middle",n.isMeasured=!1,n.visible=!1,e.rectangle=n,e._disposers.push(e._chart),e.applyTheme(),e}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new Hr.b,this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue;if(this.chart.series.contains(e)){var i=e.clone();this._series.removeValue(e),this._series.push(i),e=i,this.chart.dataUsers.push(i)}e.chart=this.chart,e.parent=this.seriesContainer,e.interactionsEnabled=!1,e.events.on("inited",this.updateMapSize,this,!1),e.hidden=!1},e.prototype.handleSeriesRemoved=function(t){this.invalidate()},e.prototype.moveToPosition=function(t){var e=Wr.spritePointToSprite(t.spritePoint,this,this.seriesContainer),i=this.chart.seriesPointToGeo(e);this.chart.zoomToGeoPoint(i,this.chart.zoomLevel,!0)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this.chart!=t&&this._chart.set(t,new u.c([t.events.on("mappositionchanged",this.updateRectangle,this,!1),t.events.on("scaleratiochanged",this.updateMapSize,this,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateRectangle=function(){var t=this.chart,e=t.zoomLevel,i=this.rectangle;i.width=this.pixelWidth/e,i.height=this.pixelHeight/e;var n=Math.min(this.percentWidth,this.percentHeight)/100,r=t.seriesContainer;i.x=Math.ceil(-r.pixelX*n/e)+this.seriesContainer.pixelX,i.y=Math.ceil(-r.pixelY*n/e)+this.seriesContainer.pixelY,i.validate()},e.prototype.updateMapSize=function(){if(this.chart){var t=this.chart.scaleRatio*Math.min(this.percentWidth,this.percentHeight)/100;this.seriesContainer.scale=t;var e={width:0,height:0,x:0,y:0};try{e=this.seriesContainer.group.node.getBBox()}catch(t){}e.width>0&&(this.rectangle.visible=!0),this.seriesContainer.x=this.pixelWidth/2-e.x*t-e.width/2*t,this.seriesContainer.y=this.pixelHeight/2-e.y*t-e.height/2*t,this.updateRectangle(),this.afterDraw()}},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.rectangle.maskRectangle={x:-1,y:-1,width:Math.ceil(this.pixelWidth+2),height:Math.ceil(this.pixelHeight+2)}},e.prototype.processConfig=function(e){if(e&&g.hasValue(e.series)&&g.isArray(e.series))for(var i=0,n=e.series.length;i<n;i++){var r=e.series[i];g.hasValue(r)&&g.isString(r)&&this.map.hasKey(r)&&(e.series[i]=this.map.getKey(r))}t.prototype.processConfig.call(this,e)},e}(Pr.a);f.c.registeredClasses.SmallMap=Zr;var Jr=i("WYhe"),Qr=i("0FpR");function to(t){var e=io(t.longitude),i=Math.asin(Math.sin(t.latitude*m.RADIANS))*m.DEGREES,n=io(t.latitude);return Math.abs(n)>90&&(e=io(e+180)),t.longitude=e,t.latitude=i,t}function eo(t){return Mr.each(t,(function(t){Mr.each(t,(function(t){to(t)}))})),t}function io(t){return(t%=360)>180&&(t-=360),t<-180&&(t+=360),t}function no(t){return{x:t.longitude,y:t.latitude}}var ro=function(t){function e(){var e=t.call(this)||this;return e.adjustRotation=!0,e.className="MapLineObject",e.isMeasured=!1,e.layout="none",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.validatePosition=function(){var e=this.mapLine;if(e){var i=e.positionToPoint(this.position);if(this.x=i.x,this.y=i.y,this.adjustRotation&&(this.rotation=i.angle),this.mapLine.dataItem){var n=this.mapLine.dataItem.component;this.scale=1/n.scale}if(e.shortestDistance){var r=this.mapLine.series.chart.projection,o=r.positionToGeoPoint(e.multiGeoLine,this.position),a=r.d3Path({type:"Point",coordinates:[o.longitude,o.latitude]});this.__disabled=!a}}t.prototype.validatePosition.call(this)},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustRotation",{get:function(){return this.getPropertyValue("adjustRotation")},set:function(t){this.setPropertyValue("adjustRotation",t,!1,!0)},enumerable:!0,configurable:!0}),e}(Pr.a);f.c.registeredClasses.MapLineObject=ro;var oo=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:this.point}}},Object.defineProperty(e.prototype,"mapImage",{get:function(){var t=this;if(!this._mapImage){var e=this.component.mapImages.create();this.addSprite(e),this._mapImage=e,this._disposers.push(e),this._disposers.push(new u.b((function(){t.component&&t.component.mapImages.removeValue(e)}))),this.mapObject=e}return this._mapImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return this._point},set:function(t){this._point=t,this._geoPoint=jr(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPoint",{get:function(){return this._geoPoint},set:function(t){this._geoPoint=t,this.point=[t.longitude,t.latitude]},enumerable:!0,configurable:!0}),e}(_r),ao=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeries",e.dataFields.multiPoint="multiPoint",e.dataFields.point="point",e.dataFields.geoPoint="geoPoint",e.dataFields.multiGeoPoint="multiGeoPoint",e.ignoreBounds=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new oo},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&0==this._parseDataFrom&&this.mapImages.clear(),this.useGeodata&&(this.useGeodata||this.geodata)){var i=this.chart.geodata,n=void 0;if("FeatureCollection"==i.type?n=i.features:"Feature"==i.type?n=[i]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(i.type)?n=[{geometry:i}]:console.log("nothing found in geoJSON"),n)for(var r=function(t,e){var i=n[t],r=i.geometry;if(r){var a=r.type,s=i.id;if("Point"==a||"MultiPoint"==a){if(!o.checkInclude(o.include,o.exclude,s))return"continue";var l=r.coordinates;"Point"==a&&(l=[l]);var c=Mr.find(o.data,(function(t,e){return t.id==s}));c?c.multiPoint||(c.multiPoint=l):(c={multiPoint:l,id:s,madeFromGeoData:!0},o.data.push(c)),Wr.softCopyProperties(i.properties,c)}}},o=this,a=0,s=n.length;a<s;a++)r(a)}t.prototype.validateData.call(this),Xr.each(this.dataItems.iterator(),(function(t){var i=t.mapImage;i.isDisposed()||(e.mapImages.moveValue(i),g.isNumber(i.latitude)&&g.isNumber(i.latitude)&&(t.geoPoint={latitude:i.latitude,longitude:i.longitude}))}))},Object.defineProperty(e.prototype,"mapImages",{get:function(){if(!this._mapImages){var t=new Cr,e=new Hr.e(t);this._disposers.push(new Hr.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapImages=e,this._mapObjects=e}return this._mapImages},enumerable:!0,configurable:!0}),e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.mapImage.invalidate()},e.prototype.validate=function(){t.prototype.validate.call(this),Xr.each(this.mapImages.iterator(),(function(t){t.validatePosition()}))},e.prototype.copyFrom=function(e){this.mapImages.template.copyFrom(e.mapImages.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapImages.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e.prototype.getImageById=function(t){return Xr.find(this.mapImages.iterator(),(function(e){var i=e.dataItem.dataContext;if(e.id==t||i.id==t)return!0}))},e}(Sr);f.c.registeredClasses.MapImageSeries=ao,f.c.registeredClasses.MapImageSeriesDataItem=oo;var so=i("Rnbi"),lo=i("jfaP"),co=i("tjMS"),ho=function(t){function e(){var e=t.call(this)||this;e._imageListeners={},e.className="MapLine",e.createLine(),e.line.stroke=Object(Kr.c)(),e.line.parent=e,e.strokeOpacity=1;var i=new d.a;return e.stroke=i.getFor("grid"),e.shortestDistance=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createLine=function(){this.line=new lo.a},e.prototype.positionToPoint=function(t){return this.shortestDistance?this.series.chart.projection.positionToPoint(this.multiGeoLine,t):this.line?this.line.positionToPoint(t):{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){var t=this.getPropertyValue("multiGeoLine");return!t&&this.dataItem&&this.dataItem.multiGeoLine&&(t=this.dataItem.multiGeoLine),t},set:function(t){if(t&&t.length>0){this.setPropertyValue("multiGeoLine",eo(t),!0);var e=Fr(t);this.setPropertyValue("multiLine",e),this.updateExtremes()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){var t=this.getPropertyValue("multiLine");return!t&&this.dataItem&&this.dataItem.multiLine&&(t=this.dataItem.multiLine),t},set:function(t){this.setPropertyValue("multiLine",t),this.multiGeoLine=Ir(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imagesToConnect",{get:function(){return this.getPropertyValue("imagesToConnect")},set:function(t){var e=this;if(this.setPropertyValue("imagesToConnect",t,!0),this.handleImagesToConnect(),this.series){var i=this.series.chart;i&&i.series.each((function(t){t instanceof ao&&(t.isReady()||e._disposers.push(t.events.on("ready",e.handleImagesToConnect,e,!1)))}))}},enumerable:!0,configurable:!0}),e.prototype.handleImagesToConnect=function(){var t,e,i=this;if(this.imagesToConnect){var n=[],r=[n],o=function(t){if(g.isString(t)){var e=a.series.chart;e&&e.series.each((function(e){if(e instanceof ao){var i=e.getImageById(t);i&&(t=i)}}))}if(t instanceof Cr&&(n.push({longitude:t.longitude,latitude:t.latitude}),!a._imageListeners[t.uid])){var r=t.events.on("propertychanged",(function(t){"longitude"!=t.property&&"latitude"!=t.property||(i.handleImagesToConnect(),i.invalidate())}),a,!1);a._imageListeners[t.uid]=r,a._disposers.push(r)}},a=this;try{for(var s=Object(c.g)(this.imagesToConnect),l=s.next();!l.done;l=s.next())o(l.value)}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}this.multiGeoLine=r}},e.prototype.validate=function(){var e=this.series.chart;if(this.multiLine){if(this.shortestDistance)e.projection.d3Projection.precision(.1),this.line.path=e.projection.d3Path(this.getFeature());else{for(var i=[],n=0,r=this.multiLine.length;n<r;n++){for(var o=this.multiLine[n],a=[],s=0,l=o.length;s<l;s++){var c=o[s],h=this.series.chart.projection.convert({longitude:c[0],latitude:c[1]});a.push(h)}i.push(a)}this.line.segments=i}this._arrow&&this._arrow.validatePosition(),Xr.each(this.lineObjects.iterator(),(function(t){t.validatePosition()})),this.handleGlobalScale()}else this.imagesToConnect&&this.handleImagesToConnect();t.prototype.validate.call(this)},e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0&&this.multiLine[0]&&this.multiLine[0].length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return this.getPropertyValue("shortestDistance")},set:function(t){this.setPropertyValue("shortestDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineObjects",{get:function(){return this._lineObjects||(this._lineObjects=new Hr.e(new ro),this._lineObjects.events.on("inserted",this.handleLineObjectAdded,this,!1),this._disposers.push(new Hr.c(this._lineObjects)),this._disposers.push(this._lineObjects.template)),this._lineObjects},enumerable:!0,configurable:!0}),e.prototype.handleLineObjectAdded=function(t){var e=t.newValue;e.mapLine=this,e.shouldClone=!1,e.parent=this},Object.defineProperty(e.prototype,"arrow",{get:function(){if(!this._arrow){var t=this.createChild(ro);t.shouldClone=!1,t.width=8,t.height=10,t.mapLine=this,t.position=.5;var e=t.createChild(so.a);e.fillOpacity=1,e.width=Object(co.c)(100),e.height=Object(co.c)(100),e.rotation=90,e.horizontalCenter="middle",e.verticalCenter="middle",this._arrow=t}return this._arrow},set:function(t){this._arrow=t,t.mapLine=this,t.parent=this},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.line.copyFrom(e.line),this.lineObjects.copyFrom(e.lineObjects),e._arrow&&(this.arrow=e.arrow.clone())},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return t instanceof co.a||(t=Object(co.c)(50)),t instanceof co.a?this.positionToPoint(t.value).x:0},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");return t instanceof co.a||(t=Object(co.c)(50)),t instanceof co.a?this.positionToPoint(t.value).y:0},e}(kr);f.c.registeredClasses.MapLine=ho;var uo=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},Object.defineProperty(e.prototype,"mapLine",{get:function(){var t=this;if(!this._mapLine){var e=this.component.mapLines.create();this._mapLine=e,this.addSprite(e),this._disposers.push(e),this._disposers.push(new u.b((function(){t.component&&t.component.mapLines.removeValue(e)}))),this.mapObject=e}return this._mapLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t,this.multiLine=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){return this._multiLine},set:function(t){this._multiLine=t,this._multiGeoLine=Ir(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoLine",{get:function(){return this._geoLine},set:function(t){this._geoLine=t,this.multiLine=Fr([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this._multiGeoLine},set:function(t){this._multiGeoLine=t,this.multiLine=Fr(t)},enumerable:!0,configurable:!0}),e}(_r),po=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeries",e.dataFields.multiLine="multiLine",e.dataFields.line="line",e.dataFields.geoLine="geoLine",e.dataFields.multiGeoLine="multiGeoLine",e.ignoreBounds=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new uo},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this.chart.geodata;if(e){var i=void 0;if("FeatureCollection"==e.type?i=e.features:"Feature"==e.type?i=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?i=[{geometry:e}]:console.log("nothing found in geoJSON"),i)for(var n=function(t,e){var n=i[t],o=n.geometry;if(o){var a=o.type,s=n.id;if("LineString"==a||"MultiLineString"==a){if(!r.checkInclude(r.include,r.exclude,s))return"continue";var l=o.coordinates,c=Mr.find(r.data,(function(t,e){return t.id==s}));"LineString"==a&&(l=[l]),c?c.multiLine||(c.multiLine=l):(c={multiLine:l,id:s,madeFromGeoData:!0},r.data.push(c)),Wr.softCopyProperties(n.properties,c)}}},r=this,o=0,a=i.length;o<a;o++)n(o)}}t.prototype.validateData.call(this)},Object.defineProperty(e.prototype,"mapLines",{get:function(){if(!this._mapLines){var t=this.createLine(),e=new Hr.e(t);this._disposers.push(new Hr.c(e)),this._disposers.push(e.template),e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapLines=e,this._mapObjects=e}return this._mapLines},enumerable:!0,configurable:!0}),e.prototype.createLine=function(){return new ho},e.prototype.validate=function(){this.dataItems.each((function(t){Wr.used(t.mapLine)})),t.prototype.validate.call(this),this.mapLines.each((function(t){t.validate()}))},e.prototype.copyFrom=function(e){this.mapLines.template.copyFrom(e.mapLines.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapLines.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e.prototype.getLineById=function(t){return Xr.find(this.mapLines.iterator(),(function(e){return e.dataItem.dataContext.id==t}))},e}(Sr);f.c.registeredClasses.MapLineSeries=po,f.c.registeredClasses.MapLineSeriesDataItem=uo;var fo=function(t){function e(){var e=t.call(this)||this;return e.className="Graticule",e.applyTheme(),e.shortestDistance=!0,e}return Object(c.c)(e,t),e}(ho);f.c.registeredClasses.Graticule=fo;var go=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(uo),mo=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeries",e.longitudeStep=10,e.latitudeStep=10,e.north=90,e.south=-90,e.east=-180,e.west=180,e.fitExtent=!0,e.singleSprite=!0,e.events.disableType("geoBoundsChanged"),e.mapLines.template.line.strokeOpacity=.08,e.ignoreBounds=!1,e.hiddenInLegend=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new go},e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this.mapLines.clear();var i=mi();if(i){i.stepMinor([this.longitudeStep,this.latitudeStep]),i.stepMajor([360,360]);var n=this.chart;if(this.fitExtent?i.extent([[n.east,n.north],[n.west,n.south]]):i.extent([[this.east,this.north],[this.west,this.south]]),this.singleSprite)this.mapLines.create().multiLine=i().coordinates;else{var r=i.lines();Mr.each(r,(function(t){e.mapLines.create().multiLine=[t.coordinates]}))}}},e.prototype.createLine=function(){return new fo},Object.defineProperty(e.prototype,"latitudeStep",{get:function(){return this.getPropertyValue("latitudeStep")},set:function(t){this.setPropertyValue("latitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitudeStep",{get:function(){return this.getPropertyValue("longitudeStep")},set:function(t){this.setPropertyValue("longitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitExtent",{get:function(){return this.getPropertyValue("fitExtent")},set:function(t){this.setPropertyValue("fitExtent",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"singleSprite",{get:function(){return this.getPropertyValue("singleSprite")},set:function(t){this.setPropertyValue("singleSprite",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(po);f.c.registeredClasses.GraticuleSeries=mo,f.c.registeredClasses.GraticuleSeriesDataItem=go;var yo=i("zhwk"),vo=function(t){function e(){var e=t.call(this)||this;return e.className="MapChartDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(h.b),bo=function(t){function e(){var e=t.call(this)||this;e.scaleRatio=1,e.zoomDuration=1e3,e.zoomEasing=Qr.cubicOut,e.minZoomLevel=1,e.maxZoomLevel=32,e._prevZoomGeoPoint={latitude:0,longitude:0},e.className="MapChart",e.projection=new Ur,e.deltaLongitude=0,e.deltaLatitude=0,e.deltaGamma=0,e.maxPanOut=.7,e.homeZoomLevel=1,e.zoomStep=2,e.layout="absolute",e.centerMapOnZoomOut=!0,e.padding(0,0,0,0),Wr.used(e.backgroundSeries),e.minWidth=10,e.minHeight=10,e.events.once("inited",e.handleAllInited,e,!1);var i=e.seriesContainer;i.visible=!1,i.inert=!0,i.resizable=!0,i.events.on("transformed",e.handleMapTransform,e,!1),i.events.on("doublehit",e.handleDoubleHit,e,!1),i.events.on("dragged",e.handleDrag,e,!1),i.zIndex=0,i.dragWhileResize=!0,e.events.on("maxsizechanged",(function(t){0!=t.previousWidth&&0!=t.previousHeight||(e.updateExtremes(),e.updateCenterGeoPoint())}),void 0,!1);var n=e.chartContainer;n.parent=e,n.zIndex=-1,e._disposers.push(e.events.on("maxsizechanged",(function(){if(e.inited){e._mapAnimation&&e._mapAnimation.stop();var t=!0;e.series.each((function(e){e.updateTooltipBounds(),e.inited&&!e.dataInvalid||(t=!1)})),t&&e.updateScaleRatio(),e.zoomToGeoPoint(e._zoomGeoPointReal,e.zoomLevel,!0,0)}}),void 0,!1));var r=n.background;r.fillOpacity=0,r.events.on("down",(function(t){e.seriesContainer.dragStart(t.target.interactions.downPointers.getIndex(0))}),e),r.events.on("up",(function(t){e.seriesContainer.dragStop()}),e),r.events.on("doublehit",e.handleDoubleHit,e),r.focusable=!0,n.events.on("down",e.handleMapDown,e,!1),e.background.fillOpacity=0,e.background.readerTitle=e.language.translate("Use plus and minus keys on your keyboard to zoom in and out"),e._disposers.push(Object(yo.b)().body.events.on("keyup",(function(t){if(e.topParent.hasFocused&&(!e._zoomControl||!e._zoomControl.thumb.isFocused))switch(Jr.b.getEventKey(t.event)){case"up":e.pan({x:0,y:.1});break;case"down":e.pan({x:0,y:-.1});break;case"left":e.pan({x:.1,y:0});break;case"right":e.pan({x:-.1,y:0})}}),e)),e.mouseWheelBehavior="zoom";var o=Object(yo.b)();e._disposers.push(o.body.events.on("down",e.handlePanDown,e)),e._disposers.push(o.body.events.on("up",e.handlePanUp,e));var a=e.seriesContainer.createChild(qr.a);return a.radius=10,a.inert=!0,a.isMeasured=!1,a.events.on("transformed",e.handlePanMove,e,!1),a.interactionsEnabled=!1,a.opacity=0,a.x=0,a.y=0,e.panSprite=a,e.panBehavior="move",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.handlePanDown=function(t){var e=Wr.documentPointToSvg(t.pointer.point,this.htmlContainer);e.x>0&&e.y>0&&e.x<this.svgContainer.width&&e.y<this.svgContainer.height&&(this._downPointOrig=Wr.documentPointToSprite(t.pointer.point,this.seriesContainer),this.panSprite.moveTo(this._downPointOrig),this.panSprite.dragStart(t.pointer),this._downDeltaLongitude=this.deltaLongitude,this._downDeltaLatitude=this.deltaLatitude)},e.prototype.handlePanUp=function(t){this._downPointOrig&&this.panSprite.dragStop(t.pointer),this._downPointOrig=void 0},e.prototype.handlePanMove=function(){if(!this.seriesContainer.isResized){var t=this.projection.d3Projection,e=this.panBehavior;if("move"!=e&&"none"!=e&&this._downPointOrig&&t.rotate){var i=t.rotate(),n=i[0],r=i[1],o=i[2];t.rotate([0,0,0]);var a=this.projection.invert(this._downPointOrig),s={x:this.panSprite.pixelX,y:this.panSprite.pixelY},l=void 0;s&&(l=this.projection.invert(s)),t.rotate([n,r,o]),l&&("rotateLat"!=e&&"rotateLongLat"!=e||(this.deltaLatitude=this._downDeltaLatitude+l.latitude-a.latitude),"rotateLong"!=e&&"rotateLongLat"!=e||(this.deltaLongitude=this._downDeltaLongitude+l.longitude-a.longitude))}}},e.prototype.handleAllInited=function(){var t=this,e=!0;if(this.seriesContainer.visible=!0,this.series.each((function(t){t.inited&&!t.dataInvalid||(e=!1)})),e)this.updateCenterGeoPoint(),this.updateScaleRatio(),this.goHome(0);else{var i=f.c.events.once("exitframe",(function(){t.removeDispose(i),t.handleAllInited()}),this,!1);this.addDisposer(i)}},e.prototype.updateZoomGeoPoint=function(){var t=Wr.svgPointToSprite({x:this.innerWidth/2+this.pixelPaddingLeft,y:this.innerHeight/2+this.pixelPaddingTop},this.series.getIndex(0)),e=this.projection.invert(t);this._zoomGeoPointReal=e},e.prototype.updateCenterGeoPoint=function(){var t,e,i,n;if(this.backgroundSeries){var r=this.backgroundSeries.getFeatures();if(r.length>0){var o=this.projection.d3Path.bounds(r[0].geometry);t=o[0][0],i=o[0][1],e=o[1][0],n=o[1][1]}}else this.series.each((function(r){var o=r.group.node.getBBox();(t>o.x||!g.isNumber(t))&&(t=o.x),(e<o.x+o.width||!g.isNumber(e))&&(e=o.x+o.width),(i>o.y||!g.isNumber(i))&&(i=o.y),(n<o.y+o.height||!g.isNumber(n))&&(n=o.y+o.height)}));this.seriesMaxLeft=t,this.seriesMaxRight=e,this.seriesMaxTop=i,this.seriesMaxBottom=n,this.seriesWidth=e-t,this.seriesHeight=n-i,this.seriesWidth>0&&this.seriesHeight>0?(this.chartContainer.visible=!0,this._centerGeoPoint=this.projection.invert({x:t+(e-t)/2,y:i+(n-i)/2}),this._zoomGeoPointReal&&g.isNumber(this._zoomGeoPointReal.latitude)||(this._zoomGeoPointReal=this._centerGeoPoint)):this.chartContainer.visible=!1},e.prototype.handleDrag=function(){var t=this.zoomLevel*this.scaleRatio,e=this.seriesWidth*t,i=this.seriesHeight*t,n=this.seriesContainer,r=this.seriesMaxLeft*t,o=this.seriesMaxRight*t,a=this.seriesMaxTop*t,s=this.seriesMaxBottom*t,l=n.pixelX,c=n.pixelY,h=this.maxPanOut,u=Math.min(this.maxWidth*(1-h)-e-r,-r);l<u&&(l=u);var d=Math.max(this.maxWidth*h-r,this.maxWidth-o);l>d&&(l=d);var p=Math.min(this.maxHeight*(1-h)-i-a,-a);c<p&&(c=p);var f=Math.max(this.maxHeight*h-a,this.maxHeight-s);c>f&&(c=f),n.moveTo({x:l,y:c},void 0,void 0,!0),this._zoomGeoPointReal=this.zoomGeoPoint},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),g.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Map"))},e.prototype.handleMapDown=function(){this._mapAnimation&&this._mapAnimation.stop()},e.prototype.handleDoubleHit=function(t){var e=Wr.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),i=this.svgPointToGeo(e);this.zoomIn(i)},e.prototype.handleWheel=function(t){var e=this.seriesContainer.interactions.inertias.getKey("move");e&&e.done();var i=Wr.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),n=this.svgPointToGeo(i);t.shift.y<0?this.zoomIn(n,void 0,this.interactions.mouseOptions.sensitivity):this.zoomOut(n,void 0,this.interactions.mouseOptions.sensitivity)},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.chartContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):(this._mouseWheelDisposer&&this._mouseWheelDisposer.dispose(),this.chartContainer.wheelable=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panBehavior",{get:function(){return this.getPropertyValue("panBehavior")},set:function(t){if(this.setPropertyValue("panBehavior",t)){var e=this.seriesContainer;switch(this.panSprite.draggable=!1,e.draggable=!1,t){case"move":e.draggable=!0;break;default:this.panSprite.draggable=!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerMapOnZoomOut",{get:function(){return this.getPropertyValue("centerMapOnZoomOut")},set:function(t){this.setPropertyValue("centerMapOnZoomOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projection",{get:function(){return this.getPropertyValue("projection")},set:function(t){var e=this;this.setPropertyValue("projection",t)&&(this.invalidateProjection(),t.chart=this,this._backgroundSeries&&this._backgroundSeries.invalidate(),this.series.each((function(t){t.events.once("validated",(function(){e.updateCenterGeoPoint(),e.updateScaleRatio(),e.goHome(0)}))})))},enumerable:!0,configurable:!0}),e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,i,n;this.series.each((function(r){r.ignoreBounds||r instanceof mo&&r.fitExtent||((r.north>e||!g.isNumber(e))&&(e=r.north),(r.south<n||!g.isNumber(n))&&(n=r.south),(r.west<i||!g.isNumber(i))&&(i=r.west),(r.east>t||!g.isNumber(t))&&(t=r.east))}));var r=[],o=!1;this.series.each((function(t){t instanceof mo&&!t.fitExtent&&(r=t.getFeatures(),o=!0)})),o||this.series.each((function(t){t.ignoreBounds||t instanceof mo&&t.fitExtent||(r=r.concat(t.getFeatures()))}));var a=m.max(50,this.innerWidth),s=m.max(50,this.innerHeight),l=this.projection.d3Projection;if(r.length>0&&l&&(this.east!=t||this.west!=i||this.north!=e||this.south!=n)){if(this.east=t,this.west=i,this.north=e,this.south=n,l.rotate){var c=l.rotate(),h=c[0],u=c[1],d=c[2];this.deltaLongitude=h,this.deltaLatitude=u,this.deltaGamma=d}var p={type:"FeatureCollection",features:r},f=l.scale();if(l.fitSize([a,s],p),l.scale()!=f&&this.invalidateDataUsers(),this.series.each((function(t){t instanceof mo&&t.invalidateData()})),this._backgroundSeries){var y=this._backgroundSeries.mapPolygons.getIndex(0);y&&(y.multiPolygon=zr(this.north,this.east,this.south,this.west))}this._fitWidth=a,this._fitHeight=s}this._zoomGeoPointReal&&g.isNumber(this._zoomGeoPointReal.latitude)||this.goHome(0)},e.prototype.updateScaleRatio=function(){var t;this.updateCenterGeoPoint();var e=this.innerWidth/this.seriesWidth,i=this.innerHeight/this.seriesHeight;t=m.min(e,i),(g.isNaN(t)||t==1/0)&&(t=1),t!=this.scaleRatio&&(this.scaleRatio=t,Xr.each(this.series.iterator(),(function(e){e.scale=t,e.updateTooltipBounds()})),this.backgroundSeries.scale=t,this.dispatch("scaleratiochanged"))},e.prototype.svgPointToGeo=function(t){var e=this.series.getIndex(0);if(e){var i=Wr.svgPointToSprite(t,e);return this.seriesPointToGeo(i)}},e.prototype.geoPointToSVG=function(t){var e=this.series.getIndex(0);if(e){var i=this.geoPointToSeries(t);return Wr.spritePointToSvg(i,e)}},e.prototype.seriesPointToGeo=function(t){return this.projection.invert(t)},e.prototype.geoPointToSeries=function(t){return this.projection.convert(t)},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){t!=this._geodata&&(this._geodata=t,this.invalidateData(),this.dataUsers.each((function(t){for(var e=t.data.length-1;e>=0;e--)1==t.data[e].madeFromGeoData&&t.data.splice(e,1);t.disposeData(),t.invalidateData()})))},enumerable:!0,configurable:!0}),e.prototype.zoomToGeoPoint=function(t,e,i,n,r){var o=this;if(t||(t=this.zoomGeoPoint),t&&g.isNumber(t.longitude)&&g.isNumber(t.latitude)){this._zoomGeoPointReal=t,e=m.fitToRange(e,this.minZoomLevel,this.maxZoomLevel);var a=this.projection.convert(t);if(a){var s=this.geoPointToSVG(t),l=Wr.svgPointToSprite(s,this);i&&(l={x:this.innerWidth/2,y:this.innerHeight/2}),g.isNumber(n)||(n=this.zoomDuration);var c=l.x-a.x*e*this.scaleRatio,h=l.y-a.y*e*this.scaleRatio;return!r&&e<this.zoomLevel&&this.centerMapOnZoomOut&&e<1.5&&(c=this.innerWidth/2-(this.seriesMaxLeft+(this.seriesMaxRight-this.seriesMaxLeft)/2)*e*this.scaleRatio,h=this.innerHeight/2-(this.seriesMaxTop+(this.seriesMaxBottom-this.seriesMaxTop)/2)*e*this.scaleRatio),this._mapAnimation=this.seriesContainer.animate([{property:"scale",to:e},{property:"x",from:this.seriesContainer.pixelX,to:c},{property:"y",from:this.seriesContainer.pixelY,to:h}],n,this.zoomEasing),this._disposers.push(this._mapAnimation.events.on("animationended",(function(){o._zoomGeoPointReal=o.zoomGeoPoint}))),this.seriesContainer.validatePosition(),this._mapAnimation}}},e.prototype.zoomToMapObject=function(t,e,i,n){null==i&&(i=!0);var r=this.seriesContainer.interactions.inertias.getKey("move");if(r&&r.done(),t instanceof Cr)return g.isNaN(e)&&(e=5),this.zoomToGeoPoint({latitude:t.latitude,longitude:t.longitude},e,i,n,!0);var o=t.dataItem;if(o&&g.isNumber(o.zoomLevel)&&(e=o.zoomLevel),t instanceof Br){var a=t.dataItem,s=t.polygon.bbox;0!=s.width&&0!=s.height||(s=t.polygon.group.getBBox()),g.isNumber(e)||(e=Math.min(this.seriesWidth/s.width,this.seriesHeight/s.height));var l=void 0;if(a&&g.hasValue(a.zoomGeoPoint))l=a.zoomGeoPoint;else{var c={x:s.x+s.width/2,y:s.y+s.height/2},h=Wr.spritePointToSprite(c,t.polygon,t.series);l=this.seriesPointToGeo(h)}return this.zoomToGeoPoint(l,e,!0,n,!0)}},e.prototype.zoomToRectangle=function(t,e,i,n,r,o,a){g.isNaN(r)&&(r=1);var s=r*Math.min((this.south-this.north)/(i-t),(this.west-this.east)/(n-e));return this.zoomToGeoPoint({latitude:t+(i-t)/2,longitude:n+(e-n)/2},s,o,a,!0)},e.prototype.zoomIn=function(t,e,i){void 0===i&&(i=1);var n=1+(this.zoomStep-1)*i;return n<1&&(n=1),this.zoomToGeoPoint(t,this.zoomLevel*n,!1,e)},e.prototype.zoomOut=function(t,e,i){void 0===i&&(i=1);var n=1+(this.zoomStep-1)*i;return n<1&&(n=1),this.zoomToGeoPoint(t,this.zoomLevel/n,!1,e)},e.prototype.pan=function(t,e){var i=this.geoPointToSVG(this.zoomGeoPoint);i.x+=this.pixelWidth*t.x,i.y+=this.pixelHeight*t.y,this.zoomToGeoPoint(this.svgPointToGeo(i),this.zoomLevel,!0,e,!0)},Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){var t=Wr.spritePointToSvg({x:this.pixelWidth/2,y:this.pixelHeight/2},this);return this.svgPointToGeo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.seriesContainer.scale},set:function(t){this.seriesContainer.scale=t},enumerable:!0,configurable:!0}),e.prototype.handleMapTransform=function(){this.zoomLevel!=this._prevZoomLevel&&(this.dispatch("zoomlevelchanged"),this._prevZoomLevel=this.zoomLevel),!this.zoomGeoPoint||this._prevZoomGeoPoint.latitude==this.zoomGeoPoint.latitude&&this._prevZoomGeoPoint.longitude==this.zoomGeoPoint.longitude||this.dispatch("mappositionchanged")},Object.defineProperty(e.prototype,"smallMap",{get:function(){if(!this._smallMap){var t=new Zr;this.smallMap=t}return this._smallMap},set:function(t){this._smallMap&&this.removeDispose(this._smallMap),this._smallMap=t,this._smallMap.chart=this,t.parent=this.chartContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomControl",{get:function(){return this._zoomControl},set:function(t){this._zoomControl&&this.removeDispose(this._zoomControl),this._zoomControl=t,t.chart=this,t.parent=this.chartContainer,t.plusButton.exportable=!1,t.minusButton.exportable=!1},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new Sr},Object.defineProperty(e.prototype,"deltaLongitude",{get:function(){return this.getPropertyValue("deltaLongitude")},set:function(t){this.setPropertyValue("deltaLongitude",io(t))&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaLatitude",{get:function(){return this.getPropertyValue("deltaLatitude")},set:function(t){this.setPropertyValue("deltaLatitude",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaGamma",{get:function(){return this.getPropertyValue("deltaGamma")},set:function(t){this.setPropertyValue("deltaGamma",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),e.prototype.rotateMap=function(){this.projection.d3Projection&&this.projection.d3Projection.rotate&&(this.projection.d3Projection.rotate([this.deltaLongitude,this.deltaLatitude,this.deltaGamma]),this.invalidateProjection())},Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeGeoPoint",{get:function(){return this.getPropertyValue("homeGeoPoint")},set:function(t){this.setPropertyValue("homeGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeZoomLevel",{get:function(){return this.getPropertyValue("homeZoomLevel")},set:function(t){this.setPropertyValue("homeZoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomStep",{get:function(){return this.getPropertyValue("zoomStep")},set:function(t){this.setPropertyValue("zoomStep",t)},enumerable:!0,configurable:!0}),e.prototype.invalidateProjection=function(){this.invalidateDataUsers(),this.updateCenterGeoPoint()},Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",(function(){e.loadData("geodata")}),this,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(g.hasValue(e.geodata)&&g.isString(e.geodata)){var i=e.geodata;if(g.hasValue(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(t){throw Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect.")}}g.hasValue(e.projection)&&g.isString(e.projection)&&(e.projection=this.createClassInstance(e.projection)),g.hasValue(e.smallMap)&&!g.hasValue(e.smallMap.type)&&(e.smallMap.type="SmallMap"),g.hasValue(e.zoomControl)&&!g.hasValue(e.zoomControl.type)&&(e.zoomControl.type="ZoomControl"),t.prototype.processConfig.call(this,e)},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;i.scale=this.scaleRatio,i.events.on("validated",this.updateCenterGeoPoint,this,!1)},e.prototype.configOrder=function(e,i){return e==i?0:"smallMap"==e?1:"smallMap"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.asIs=function(e){return"projection"==e||"geodata"==e||t.prototype.asIs.call(this,e)},Object.defineProperty(e.prototype,"centerGeoPoint",{get:function(){return this._centerGeoPoint},enumerable:!0,configurable:!0}),e.prototype.goHome=function(t){var e=this.homeGeoPoint;e||(e=this.centerGeoPoint),e&&this.zoomToGeoPoint(e,this.homeZoomLevel,!0,t,!0)},e.prototype.setPaper=function(e){return this.svgContainer&&(this.svgContainer.hideOverflow=!0),t.prototype.setPaper.call(this,e)},Object.defineProperty(e.prototype,"backgroundSeries",{get:function(){var t=this;if(!this._backgroundSeries){var e=new Gr;e.parent=this.seriesContainer,e.chart=this,e.hiddenInLegend=!0,e.addDisposer(new u.b((function(){t._backgroundSeries=void 0}))),this._disposers.push(e);var i=(new d.a).getFor("background"),n=e.mapPolygons.template.polygon;n.stroke=i,n.fill=i,n.fillOpacity=0,n.strokeOpacity=0,e.mapPolygons.create(),this._backgroundSeries=e}return this._backgroundSeries},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e.parent=this},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.seriesContainer.interactions.isTouchProtected=!1,this.panSprite.interactions.isTouchProtected=!1},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.asFunction=function(e){return"zoomEasing"==e||t.prototype.asIs.call(this,e)},e}(h.a);f.c.registeredClasses.MapChart=bo;var xo=i("xgTw"),wo=function(t){function e(){var e=t.call(this)||this;return e.className="MapSpline",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createLine=function(){this.line=new xo.a,this.line.tensionX=.8,this.line.tensionY=.8},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(ho);f.c.registeredClasses.MapSpline=wo;var _o=i("MXvJ"),So=function(t){function e(){var e=t.call(this)||this;return e.className="MapArc",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createLine=function(){this.line=new _o.a},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(ho);f.c.registeredClasses.MapArc=So;var Po=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(uo),ko=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeries",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new Po},e.prototype.createLine=function(){return new wo},e}(po);f.c.registeredClasses.MapSplineSeries=ko,f.c.registeredClasses.MapSplineSeriesDataItem=Po;var Co=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(uo),To=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeries",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new Co},e.prototype.createLine=function(){return new So},e}(po);f.c.registeredClasses.MapArcSeries=To,f.c.registeredClasses.MapArcSeriesDataItem=Co;var Ao=i("aGXA"),Oo=i("CnhP"),Mo=function(t){function e(){var e=t.call(this)||this;e._chart=new u.d,e.className="ZoomControl",e.align="right",e.valign="bottom",e.layout="vertical",e.padding(5,5,5,5);var i=new d.a,n=e.createChild(Ao.a);n.shouldClone=!1,n.label.text="+",e.plusButton=n;var r=e.createChild(Pr.a);r.shouldClone=!1,r.background.fill=i.getFor("alternativeBackground"),r.background.fillOpacity=.05,r.background.events.on("hit",e.handleBackgroundClick,e,!1),r.events.on("sizechanged",e.updateThumbSize,e,!1),e.slider=r;var o=r.createChild(Ao.a);o.shouldClone=!1,o.padding(0,0,0,0),o.draggable=!0,o.events.on("drag",e.handleThumbDrag,e,!1),e.thumb=o;var a=e.createChild(Ao.a);return a.shouldClone=!1,a.label.text="-",e.minusButton=a,e.thumb.role="slider",e.thumb.readerLive="polite",e.thumb.readerTitle=e.language.translate("Use arrow keys to zoom in and out"),e.minusButton.readerTitle=e.language.translate("Press ENTER to zoom in"),e.plusButton.readerTitle=e.language.translate("Press ENTER to zoom out"),e.applyTheme(),e.events.on("propertychanged",(function(t){"layout"==t.property&&e.fixLayout()}),void 0,!1),e._disposers.push(e._chart),e.fixLayout(),e}return Object(c.c)(e,t),e.prototype.fixLayout=function(){var t=this.plusButton,e=this.minusButton,i=this.thumb,n=this.slider;t.x=void 0,t.y=void 0,e.x=void 0,e.y=void 0,i.x=void 0,i.y=void 0,n.x=void 0,n.y=void 0,t.padding(6,10,6,10),e.padding(6,10,6,10),e.label.align="center",e.label.valign="middle",t.label.align="center",t.label.valign="middle","vertical"==this.layout?(this.width=40,this.height=void 0,e.width=Object(co.c)(100),e.height=void 0,i.width=Object(co.c)(100),i.height=void 0,t.width=Object(co.c)(100),t.height=void 0,n.width=Object(co.c)(100),e.marginTop=1,t.marginBottom=2,n.height=0,e.toFront(),t.toBack(),i.minX=0,i.maxX=0,i.minY=0):"horizontal"==this.layout&&(this.height=40,this.width=void 0,e.height=Object(co.c)(100),e.width=void 0,t.height=Object(co.c)(100),t.width=void 0,i.height=Object(co.c)(100),i.width=void 0,i.minX=0,i.minY=0,i.maxY=0,n.height=Object(co.c)(100),n.width=0,e.toBack(),t.toFront())},e.prototype.handleBackgroundClick=function(t){var e=t.target,i=t.spritePoint.y,n=this.chart,r=Math.log(n.maxZoomLevel)/Math.LN2,o=Math.log(n.minZoomLevel)/Math.LN2,a=(e.pixelHeight-i)/e.pixelHeight*(o+(r-o)),s=Math.pow(2,a);n.zoomToGeoPoint(n.zoomGeoPoint,s)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){var e=this;this._chart.set(t,new u.c([t.events.on("maxsizechanged",this.updateThumbSize,this,!1),t.events.on("zoomlevelchanged",this.updateThumb,this,!1),this.minusButton.events.on("hit",(function(){t.zoomOut(t.zoomGeoPoint)}),t,!1),Object(yo.b)().body.events.on("keyup",(function(i){e.topParent.hasFocused&&(Jr.b.isKey(i.event,"enter")?e.minusButton.isFocused?t.zoomOut():e.plusButton.isFocused&&t.zoomIn():Jr.b.isKey(i.event,"plus")?t.zoomIn():Jr.b.isKey(i.event,"minus")&&t.zoomOut())}),t),this.plusButton.events.on("hit",(function(){t.zoomIn(t.zoomGeoPoint)}),t,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateThumbSize=function(){if(this.chart){var t=this.slider,e=this.thumb;"vertical"==this.layout?(e.minHeight=Math.min(this.slider.pixelHeight,20),e.height=t.pixelHeight/this.stepCount,e.maxY=t.pixelHeight-e.pixelHeight,e.pixelHeight<=1?e.visible=!1:e.visible=!0):(e.minWidth=Math.min(this.slider.pixelWidth,20),e.width=t.pixelWidth/this.stepCount,e.maxX=t.pixelWidth-e.pixelWidth,e.pixelWidth<=1?e.visible=!1:e.visible=!0)}},e.prototype.updateThumb=function(){var t=this.slider,e=this.chart,i=this.thumb;if(!i.isDown){var n=(Math.log(e.zoomLevel)-Math.log(this.chart.minZoomLevel))/Math.LN2;"vertical"==this.layout?i.y=t.pixelHeight-(t.pixelHeight-i.pixelHeight)*n/this.stepCount-i.pixelHeight:i.x=t.pixelWidth*n/this.stepCount}},e.prototype.handleThumbDrag=function(){var t,e=this.slider,i=this.chart,n=this.thumb;t=Math.log(this.chart.minZoomLevel)/Math.LN2+(t="vertical"==this.layout?this.stepCount*(e.pixelHeight-n.pixelY-n.pixelHeight)/(e.pixelHeight-n.pixelHeight):this.stepCount*n.pixelX/e.pixelWidth);var r=Math.pow(2,t);i.zoomToGeoPoint(void 0,r,!1,0)},Object.defineProperty(e.prototype,"stepCount",{get:function(){return Math.log(this.chart.maxZoomLevel)/Math.LN2-Math.log(this.chart.minZoomLevel)/Math.LN2},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new Oo.a},e}(Pr.a);f.c.registeredClasses.ZoomControl=Mo;var Eo=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=qn(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.Mercator=Eo;var Io=Math.abs,Do=Math.atan,Lo=Math.atan2,jo=(Math.ceil,Math.cos),No=Math.exp,Fo=(Math.floor,Math.log),Ro=(Math.max,Math.min,Math.pow,Math.round,Math.sign||function(t){return t>0?1:t<0?-1:0}),Vo=Math.sin,zo=Math.tan,Bo=1e-6,Ho=Math.PI,Wo=Ho/2,Xo=Ho/4,Yo=(Math.SQRT1_2,Ko(2)),Go=Ko(Ho),Uo=Ho/180;function qo(t){return t>1?Wo:t<-1?-Wo:Math.asin(t)}function $o(t){return t>1?0:t<-1?Ho:Math.acos(t)}function Ko(t){return t>0?Math.sqrt(t):0}function Zo(t){return(No(t)-No(-t))/2}function Jo(t){return(No(t)+No(-t))/2}function Qo(t,e){var i=jo(e),n=function(t){return t?t/Math.sin(t):1}($o(i*jo(t/=2)));return[2*i*Vo(t)*n,Vo(e)*n]}function ta(t,e){var i=zo(e/2),n=Ko(1-i*i),r=1+n*jo(t/=2),o=Vo(t)*n/r,a=i/r,s=o*o,l=a*a;return[4/3*o*(3+s-3*l),4/3*a*(3+3*s-l)]}Qo.invert=function(t,e){if(!(t*t+4*e*e>Ho*Ho+Bo)){var i=t,n=e,r=25;do{var o,a=Vo(i),s=Vo(i/2),l=jo(i/2),c=Vo(n),h=jo(n),u=Vo(2*n),d=c*c,p=h*h,f=s*s,g=1-p*l*l,m=g?$o(h*l)*Ko(o=1/g):o=0,y=2*m*h*s-t,v=m*c-e,b=o*(p*f+m*h*l*d),x=o*(.5*a*u-2*m*c*s),w=.25*o*(u*s-m*c*p*a),_=o*(d*l+m*f*h),S=x*w-_*b;if(!S)break;var P=(v*x-y*_)/S,k=(y*w-v*b)/S;i-=P,n-=k}while((Io(P)>Bo||Io(k)>Bo)&&--r>0);return[i,n]}},ta.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&Io(e)>1)return null;var i=1+t*t+e*e,n=Ko((i-Ko(i*i-4*e*e))/2),r=qo(n)/3,o=n?function(t){return Fo(t+Ko(t*t-1))}(Io(e/n))/3:function(t){return Fo(t+Ko(t*t+1))}(Io(t))/3,a=jo(r),s=Jo(o),l=s*s-a*a;return[2*Ro(t)*Lo(Zo(o)*a,.25-l),2*Ro(e)*Lo(s*Vo(r),.25+l)]};Ko(8),Fo(1+Yo);function ea(t,e){var i,n=t*Vo(e),r=30;do{e-=i=(e+Vo(e)-n)/(1+jo(e))}while(Io(i)>Bo&&--r>0);return e/2}function ia(t,e,i){function n(n,r){return[t*n*jo(r=ea(i,r)),e*Vo(r)]}return n.invert=function(n,r){return r=qo(r/e),[n/(t*jo(r)),qo((2*r+Vo(2*r))/i)]},n}ia(Yo/Wo,Yo,Ho);function na(t,e){return[t*jo(e),e]}function ra(t,e){var i=Ko(1-Vo(e));return[2/Go*t*i,Go*(1-i)]}na.invert=function(t,e){return[t/jo(e),e]},ia(1,4/Ho,Ho),ra.invert=function(t,e){var i=(i=e/Go-1)*i;return[i>0?t*Ko(Ho/i)/2:0,qo(1-i)]};Ko(3);function oa(t,e){for(var i=(1+Wo)*Vo(e),n=0,r=1/0;n<10&&Io(r)>Bo;n++)e-=r=(e+Vo(e)-i)/(1+jo(e));return i=Ko(2+Ho),[t*(1+jo(e))/i,2*e/i]}oa.invert=function(t,e){var i=1+Wo,n=Ko(i/2);return[2*t*n/(1+jo(e*=n)),qo((e+Vo(e))/i)]};jo(35*Uo);var aa=function(t,e,i,n,r,o,a,s){function l(l,c){if(!c)return[t*l/Ho,0];var h=c*c,u=t+h*(e+h*(i+h*n)),d=c*(r-1+h*(o-s+h*a)),p=(u*u+d*d)/(2*d),f=l*qo(u/p)/Ho;return[p*Vo(f),c*(1+h*s)+p*(1-jo(f))]}return arguments.length<8&&(s=0),l.invert=function(l,c){var h,u,d=Ho*l/t,p=c,f=50;do{var g=p*p,m=t+g*(e+g*(i+g*n)),y=p*(r-1+g*(o-s+g*a)),v=m*m+y*y,b=2*y,x=v/b,w=x*x,_=qo(m/x)/Ho,S=d*_,P=m*m,k=(2*e+g*(4*i+6*g*n))*p,C=r+g*(3*o+5*g*a),T=(2*(m*k+y*(C-1))*b-v*(2*(C-1)))/(b*b),A=jo(S),O=Vo(S),M=x*A,E=x*O,I=d/Ho*(1/Ko(1-P/w))*(k*x-m*T)/w,D=E-l,L=p*(1+g*s)+x-M-c,j=T*O+M*I,N=M*_,F=1+T-(T*A-E*I),R=E*_,V=j*R-F*N;if(!V)break;d-=h=(L*j-D*F)/V,p-=u=(D*R-L*N)/V}while((Io(h)>Bo||Io(u)>Bo)&&--f>0);return[d,p]},l};aa(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),aa(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),aa(5/6*Ho,-.62636,-.0344,0,1.3493,-.05524,0,.045),aa(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),qo(1-1/3),function(t){var e=jo(t);function i(t,i){return[t*e,Vo(i)/e]}i.invert=function(t,i){return[t/e,qo(i*e)]}}(0);function sa(t,e){return[t,1.25*Fo(zo(Xo+.4*e))]}sa.invert=function(t,e){return[t,2.5*Do(No(.8*e))-.625*Ho]};Ko(6),Ko(7);var la=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return la[t]}))})),Ko(3);var ca=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];ca.forEach((function(t){t[1]*=1.0144}));var ha=4*Ho+3*Ko(3),ua=2*Ko(2*Ho*Ko(3)/ha);ia(ua*Ko(3)/Ho,ua,ha/6);var da=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Ln(sa).scale(108.318),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.Miller=da;var pa=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Ln(oa).scale(173.044),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.Eckert6=pa;var fa=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=yr(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.Orthographic=fa;var ga=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=br(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.Stereographic=ga;var ma=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Vn(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.Albers=ma;var ya=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=zn(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.AlbersUsa=ya;var va=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=gr(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.NaturalEarth1=va;var ba=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Xn(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.AzimuthalEqualArea=ba;var xa=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=cr(),e}return Object(c.c)(e,t),e}(Ur);f.c.registeredClasses.EqualEarth=xa,window.am4maps=a},QaCB:function(t,e,i){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||r,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function r(t,e){return t<e?-1:t>e?1:0}t.exports=n,t.exports.default=n,n.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,i=this.compare,n=e[t];t>0;){var r=t-1>>1,o=e[r];if(i(n,o)>=0)break;e[t]=o,t=r}e[t]=n},_down:function(t){for(var e=this.data,i=this.compare,n=this.length>>1,r=e[t];t<n;){var o=1+(t<<1),a=o+1,s=e[o];if(a<this.length&&i(e[a],s)<0&&(o=a,s=e[a]),i(s,r)>=0)break;e[t]=s,t=o}e[t]=r}}},U8r1:function(t,e,i){"use strict";var n=i("QaCB");function r(t,e,i){var r,s,l,c;e=e||1;for(var h=0;h<t[0].length;h++){var u=t[0][h];(!h||u[0]<r)&&(r=u[0]),(!h||u[1]<s)&&(s=u[1]),(!h||u[0]>l)&&(l=u[0]),(!h||u[1]>c)&&(c=u[1])}var d=l-r,p=c-s,f=Math.min(d,p),g=f/2,m=new n(null,o);if(0===f)return[r,s];for(var y=r;y<l;y+=f)for(var v=s;v<c;v+=f)m.push(new a(y+g,v+g,g,t));var b=function(t){for(var e=0,i=0,n=0,r=t[0],o=0,s=r.length,l=s-1;o<s;l=o++){var c=r[o],h=r[l],u=c[0]*h[1]-h[0]*c[1];i+=(c[0]+h[0])*u,n+=(c[1]+h[1])*u,e+=3*u}return 0===e?new a(r[0][0],r[0][1],0,t):new a(i/e,n/e,0,t)}(t),x=new a(r+d/2,s+p/2,0,t);x.d>b.d&&(b=x);for(var w=m.length;m.length;){var _=m.pop();_.d>b.d&&(b=_,i&&console.log("found best %d after %d probes",Math.round(1e4*_.d)/1e4,w)),_.max-b.d<=e||(g=_.h/2,m.push(new a(_.x-g,_.y-g,g,t)),m.push(new a(_.x+g,_.y-g,g,t)),m.push(new a(_.x-g,_.y+g,g,t)),m.push(new a(_.x+g,_.y+g,g,t)),w+=4)}return i&&(console.log("num probes: "+w),console.log("best distance: "+b.d)),[b.x,b.y]}function o(t,e){return e.max-t.max}function a(t,e,i,n){this.x=t,this.y=e,this.h=i,this.d=function(t,e,i){for(var n=!1,r=1/0,o=0;o<i.length;o++)for(var a=i[o],l=0,c=a.length,h=c-1;l<c;h=l++){var u=a[l],d=a[h];u[1]>e!=d[1]>e&&t<(d[0]-u[0])*(e-u[1])/(d[1]-u[1])+u[0]&&(n=!n),r=Math.min(r,s(t,e,u,d))}return(n?1:-1)*Math.sqrt(r)}(t,e,n),this.max=this.d+this.h*Math.SQRT2}function s(t,e,i,n){var r=i[0],o=i[1],a=n[0]-r,s=n[1]-o;if(0!==a||0!==s){var l=((t-r)*a+(e-o)*s)/(a*a+s*s);l>1?(r=n[0],o=n[1]):l>0&&(r+=a*l,o+=s*l)}return(a=t-r)*a+(s=e-o)*s}t.exports=r,t.exports.default=r}},["QJ7E"]),am4internal_webpackJsonp(["fcaa"],{ATzU:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});window.am4geodata_worldLow={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:[[[179.2223,-8.554],[179.2023,-8.4653],[179.2312,-8.5048],[179.2223,-8.554]]]},properties:{name:"Tuvalu",id:"TV"},id:"TV"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[3.4624,-54.4471],[3.3461,-54.4511],[3.3669,-54.3997],[3.4814,-54.4001],[3.4624,-54.4471]]]},properties:{name:"Bouvet Island",id:"BV"},id:"BV"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.3345,36.1623],[-5.3382,36.1122],[-5.3562,36.1264],[-5.3551,36.1455],[-5.3345,36.1623]]]},properties:{name:"Gibraltar",id:"GI"},id:"GI"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[47.3029,-11.5752],[47.282,-11.5747],[47.2789,-11.5574],[47.2971,-11.5543],[47.3029,-11.5752]]]},properties:{name:"Glorioso Islands",id:"GO"},id:"GO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[42.7579,-17.075],[42.7415,-17.0741],[42.7379,-17.0519],[42.761,-17.0652],[42.7579,-17.075]]]},properties:{name:"Juan De Nova Island",id:"JU"},id:"JU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-160.0213,-.398],[-160.0453,-.3802],[-160.0178,-.3744],[-160.0213,-.398]]]},properties:{name:"Jarvis Island",id:"UM-DQ"},id:"UM-DQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-176.456,.2226],[-176.4615,.215],[-176.4675,.2195],[-176.456,.2226]]]},properties:{name:"Baker Island",id:"UM-FQ"},id:"UM-FQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-176.6311,.7952],[-176.6433,.7934],[-176.6429,.8081],[-176.6329,.8085],[-176.6311,.7952]]]},properties:{name:"Howland Island",id:"UM-HQ"},id:"UM-HQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-169.5237,16.7305],[-169.5388,16.7243],[-169.5388,16.7296],[-169.5237,16.7305]]]},properties:{name:"Johnston Atoll",id:"UM-JQ"},id:"UM-JQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-177.3881,28.1865],[-177.3879,28.2144],[-177.3646,28.2042],[-177.3881,28.1865]]]},properties:{name:"Midway Islands",id:"UM-MQ"},id:"UM-MQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[166.6588,19.2829],[166.6087,19.3073],[166.6277,19.3246],[166.6588,19.3117],[166.6588,19.2829]]]},properties:{name:"Wake Island",id:"UM-WQ"},id:"UM-WQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-68.2058,12.1446],[-68.2873,12.1717],[-68.3711,12.2574],[-68.3694,12.3018],[-68.2196,12.2312],[-68.2058,12.1446]]]},properties:{name:"Bonair, Saint Eustachius and Saba",id:"BQ"},id:"BQ"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[4.2263,51.3865],[3.9023,51.2076],[3.35,51.3776],[4.2263,51.3865]]],[[[4.2263,51.3865],[3.5871,51.454],[4.4829,52.3091],[4.7687,52.9412],[5.1203,52.3881],[5.5611,52.5948],[5.3755,53.0957],[6.0622,53.4071],[6.8164,53.4413],[7.1973,53.2823],[7.0352,52.3801],[6.7418,51.9109],[5.9486,51.7625],[6.1932,51.4888],[5.8949,50.9843],[5.9939,50.7504],[5.7972,50.7546],[5.6938,50.7748],[5.827,51.1257],[4.5033,51.4746],[4.2263,51.3865]]]]},properties:{name:"Netherlands",id:"NL"},id:"NL"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.2877,-22.4021],[30.4603,-22.3289],[29.6631,-22.1465],[29.3648,-22.194],[29.0372,-21.8113],[28.0455,-21.5729],[27.6696,-21.0642],[27.6997,-20.5307],[27.2807,-20.4788],[27.2217,-20.1458],[26.6784,-19.8928],[26.1683,-19.5381],[25.7613,-18.6495],[25.2242,-17.9153],[25.2588,-17.7936],[25.8634,-17.9521],[27.0206,-17.9583],[27.9323,-16.8961],[28.7606,-16.5321],[28.9129,-15.9879],[29.7297,-15.6448],[30.3959,-15.643],[30.4377,-15.9954],[31.2362,-16.0239],[31.9398,-16.4287],[32.2434,-16.4487],[32.9479,-16.7123],[32.9932,-18.3596],[32.7166,-19.0019],[33.0069,-19.8737],[32.4778,-20.7131],[32.3713,-21.335],[31.2877,-22.4021]]]},properties:{name:"Zimbabwe",id:"ZW"},id:"ZW"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[32.9199,-9.4072],[33.3509,-9.8622],[33.659,-10.5906],[33.2613,-10.8934],[33.3798,-11.1579],[33.2262,-11.5348],[33.2524,-12.1127],[33.398,-12.49],[33.0216,-12.6303],[32.9679,-13.2251],[32.6722,-13.6104],[32.9812,-14.0095],[33.2018,-14.0135],[31.729,-14.496],[30.2317,-14.9905],[30.3959,-15.643],[29.7297,-15.6448],[28.9129,-15.9879],[28.7606,-16.5321],[27.9323,-16.8961],[27.0206,-17.9583],[25.8634,-17.9521],[25.2588,-17.7936],[24.9325,-17.5433],[24.2751,-17.4812],[23.3807,-17.6405],[22.1507,-16.5974],[21.9798,-15.9555],[21.9789,-13.0009],[23.8432,-13.0009],[23.9915,-12.4221],[23.9666,-10.8716],[24.32,-11.0718],[24.5184,-11.4384],[25.1847,-11.2431],[25.3493,-11.6231],[26.0258,-11.8903],[26.5962,-11.972],[26.9496,-11.8988],[27.0459,-11.616],[27.5333,-12.1953],[28.3576,-12.482],[29.0141,-13.3689],[29.5543,-13.2491],[29.7954,-13.3929],[29.7954,-12.1553],[29.4274,-12.4314],[29.0643,-12.3489],[28.4823,-11.8122],[28.3572,-11.4828],[28.639,-10.6692],[28.6301,-9.8311],[28.4007,-9.2248],[28.9178,-8.7005],[28.9724,-8.4648],[30.7511,-8.1936],[31.0764,-8.6117],[31.3508,-8.6069],[31.9425,-9.0539],[32.4334,-9.1564],[32.9199,-9.4072]]]},properties:{name:"Zambia",id:"ZM"},id:"ZM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.2877,-22.4021],[31.5456,-23.4821],[31.7995,-23.8923],[31.986,-24.4605],[31.9482,-25.9577],[31.4151,-25.7464],[31.2074,-25.8432],[30.8034,-26.4136],[30.7941,-26.7643],[31.0636,-27.1123],[31.4697,-27.2956],[31.9584,-27.3058],[32.1129,-26.8393],[32.8862,-26.8495],[32.5346,-28.1998],[32.2856,-28.6215],[31.7782,-28.9371],[31.3352,-29.3779],[30.2885,-30.9701],[28.8561,-32.2943],[27.8604,-33.0538],[27.0774,-33.5212],[26.4293,-33.7596],[25.9894,-33.7112],[25.6383,-34.0112],[25.0031,-33.9735],[24.8273,-34.1688],[23.5858,-33.9851],[23.2684,-34.0814],[22.2456,-34.0694],[21.7889,-34.3726],[21.06,-34.3646],[20.53,-34.4631],[20.0204,-34.7858],[19.6351,-34.7534],[18.8086,-34.108],[18.3545,-33.9389],[18.4331,-33.7174],[17.8782,-32.9614],[18.2511,-32.652],[18.3105,-32.1225],[18.2107,-31.7425],[17.6776,-31.019],[17.1893,-30.0997],[16.95,-29.4036],[16.4475,-28.6175],[16.7556,-28.4524],[17.0561,-28.0311],[17.3855,-28.3534],[17.4481,-28.6983],[18.1028,-28.8719],[19.2458,-28.9016],[19.6715,-28.5039],[19.9805,-28.4515],[19.9805,-26.5312],[19.9805,-24.777],[20.3453,-25.03],[20.7932,-25.9155],[20.6268,-26.4438],[20.74,-26.849],[21.6464,-26.8544],[22.0907,-26.5801],[22.6403,-26.0714],[22.8786,-25.4579],[23.2662,-25.2666],[23.8938,-25.6008],[24.7483,-25.8174],[25.5837,-25.6062],[25.9122,-24.7477],[26.3974,-24.6136],[26.835,-24.2407],[27.1462,-23.5243],[27.8906,-23.0737],[28.2102,-22.6938],[28.8397,-22.4807],[29.3648,-22.194],[29.6631,-22.1465],[30.4603,-22.3289],[31.2877,-22.4021]],[[27.8303,-28.9091],[27.2945,-29.5195],[27.0517,-29.6642],[27.3886,-30.3158],[28.018,-30.6421],[28.3922,-30.1476],[29.098,-29.919],[29.3905,-29.2696],[29.3013,-29.0898],[28.6257,-28.5816],[27.8303,-28.9091]]]},properties:{name:"South Africa",id:"ZA"},id:"ZA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[53.0855,16.6484],[52.3278,16.2937],[52.2177,15.6554],[51.6038,15.3367],[50.5269,15.0384],[50.1669,14.8511],[49.3497,14.638],[48.6683,14.0503],[47.9901,14.0481],[47.4077,13.6614],[46.7889,13.4657],[45.6574,13.3387],[45.0386,12.8158],[44.6178,12.8171],[43.9298,12.6165],[43.4752,12.8389],[43.232,13.2672],[43.2826,13.6397],[43.089,14.0108],[43.0211,14.555],[42.7171,15.6545],[42.7992,16.3718],[43.1649,16.6892],[43.1911,17.3595],[43.418,17.5162],[43.9169,17.3249],[44.1557,17.3986],[45.1483,17.4274],[45.4066,17.32],[46.3104,17.2312],[46.6819,17.2685],[46.9758,16.9533],[47.4418,17.1118],[47.5795,17.4483],[48.172,18.1567],[49.0421,18.582],[51.9775,18.9961],[52.729,17.3005],[53.0855,16.6484]]]},properties:{name:"Yemen",id:"YE"},id:"YE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-172.3335,-13.4653],[-172.225,-13.8044],[-172.5357,-13.7915],[-172.7441,-13.5789],[-172.3335,-13.4653]]]},properties:{name:"Samoa",id:"WS"},id:"WS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-178.0467,-14.3184],[-178.1585,-14.3118],[-178.1423,-14.2425],[-178.0467,-14.3184]]]},properties:{name:"Wallis and Futuna",id:"WF"},id:"WF"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[34.2454,31.2085],[34.1983,31.3226],[34.4775,31.5849],[34.2454,31.2085]]],[[[35.4505,31.4793],[34.9507,31.6022],[34.9561,32.1611],[35.1931,32.5344],[35.5513,32.3955],[35.5589,31.7656],[35.4505,31.4793]]]]},properties:{name:"Palestinian Territories",id:"PS"},id:"PS"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[166.7458,-14.8267],[166.8102,-15.1574],[167.1316,-15.1352],[167.1995,-15.4859],[166.8257,-15.635],[166.6313,-15.406],[166.5274,-14.8502],[166.7458,-14.8267]]],[[[167.4125,-16.0958],[167.8365,-16.4495],[167.4494,-16.5552],[167.4125,-16.0958]]]]},properties:{name:"Vanuatu",id:"VU"},id:"VU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[107.9727,21.5081],[107.4099,21.2848],[107.3544,21.0553],[106.6757,20.9603],[106.7534,20.7348],[106.5181,20.2887],[105.9841,19.9389],[105.6219,18.9664],[105.8882,18.5025],[106.499,17.9463],[106.479,17.7195],[107.1804,16.8978],[108.0296,16.331],[108.8215,15.378],[109.0847,14.7161],[109.3035,13.8563],[109.272,13.2792],[109.4238,12.9561],[109.2187,12.6458],[109.1988,11.7247],[108.8206,11.3155],[108.2715,10.9342],[107.2616,10.3984],[106.8128,10.4334],[106.5723,9.6411],[105.5011,9.0933],[105.3223,8.8013],[104.8921,8.5833],[104.8184,8.8017],[104.8451,9.606],[105.028,10.0672],[104.6635,10.1698],[104.4265,10.4112],[104.8504,10.5347],[105.3866,10.9399],[106.1679,11.0123],[105.8558,11.2941],[105.8514,11.6351],[106.3401,11.6817],[106.4138,11.9484],[106.9305,12.0776],[107.5062,12.3644],[107.4756,13.0302],[107.6056,13.4377],[107.3313,14.1266],[107.5195,14.705],[107.6531,15.255],[107.1897,15.7473],[107.3966,16.0429],[106.6961,16.4588],[106.5021,16.9542],[105.6916,17.7377],[105.4581,18.1545],[105.0857,18.4501],[105.115,18.6787],[104.7163,18.8035],[103.8965,19.3401],[104.0319,19.6753],[104.5463,19.6105],[104.9281,20.018],[104.6187,20.3744],[104.5832,20.6465],[104.0518,20.9413],[103.635,20.6971],[103.1046,20.8915],[102.8511,21.2657],[102.9488,21.5698],[102.1276,22.379],[102.5173,22.7408],[103.0051,22.4532],[103.3008,22.7643],[104.3719,22.704],[104.7958,22.9112],[104.8646,23.1363],[105.2752,23.3454],[105.8429,22.9228],[106.5421,22.9081],[106.7804,22.779],[106.5363,22.3954],[106.7294,22.0004],[107.3513,21.6089],[107.9727,21.5081]]]},properties:{name:"Vietnam",id:"VN"},id:"VN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-64.7656,17.7945],[-64.6862,17.7062],[-64.889,17.7017],[-64.8848,17.7723],[-64.7656,17.7945]]]},properties:{name:"US Virgin Islands",id:"VI"},id:"VI"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-64.3952,18.4648],[-64.4261,18.5132],[-64.3246,18.5176],[-64.3952,18.4648]]]},properties:{name:"British Virgin Islands",id:"VG"},id:"VG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-60.0175,8.5491],[-59.8315,8.3059],[-60.0324,8.0537],[-60.5136,7.8131],[-60.7191,7.4989],[-60.3951,6.9453],[-61.1457,6.6945],[-61.1286,6.2142],[-61.3767,5.9071],[-60.7422,5.2022],[-60.6046,4.9944],[-61.0028,4.5354],[-62.1531,4.0982],[-62.7122,4.0179],[-62.9685,3.594],[-63.2948,3.9224],[-64.0214,3.9291],[-64.2556,4.1404],[-64.5679,3.8998],[-64.2212,3.5873],[-64.2188,3.2047],[-63.9242,2.4523],[-63.3893,2.4119],[-63.394,2.2223],[-64.0354,1.9045],[-64.1149,1.6191],[-65.1037,1.1082],[-65.3609,.8685],[-65.6814,.9834],[-66.06,.7854],[-66.4293,.8218],[-66.8761,1.2231],[-67.2108,2.3901],[-67.8347,2.8926],[-67.3111,3.416],[-67.6616,3.8643],[-67.8553,4.507],[-67.8249,5.2705],[-67.4394,6.0256],[-67.8591,6.2897],[-68.4717,6.1565],[-69.4392,6.1348],[-70.095,6.9378],[-70.6552,7.0829],[-71.0134,6.9946],[-72.0843,7.0967],[-72.443,7.4549],[-72.4166,8.3818],[-72.6654,8.6277],[-72.7963,9.1089],[-73.3563,9.2269],[-73.0065,9.7894],[-72.8693,10.4911],[-72.6902,10.8361],[-72.2485,11.1965],[-71.958,11.6666],[-71.3197,11.8619],[-71.8686,11.6275],[-71.9469,11.4144],[-71.5942,10.6572],[-72.1129,9.8155],[-71.6868,9.0725],[-71.2979,9.1257],[-71.0858,9.3481],[-71.0527,9.7059],[-71.3867,10.2639],[-71.5445,10.7788],[-71.4695,10.9643],[-70.2326,11.3732],[-70.2865,11.8859],[-70.004,12.1779],[-69.6316,11.4801],[-68.8279,11.4318],[-68.3987,11.161],[-68.234,10.5693],[-67.8715,10.4721],[-66.9891,10.6106],[-66.2471,10.6323],[-65.8518,10.2577],[-65.1292,10.0699],[-64.8504,10.0979],[-63.8734,10.6638],[-62.7024,10.7499],[-62.8429,10.4179],[-62.5151,10.176],[-60.7923,9.3606],[-61.0531,9.0951],[-61.3039,8.4102],[-60.801,8.5922],[-60.0175,8.5491]]]},properties:{name:"Venezuela",id:"VE"},id:"VE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.1745,13.1581],[-61.2773,13.2095],[-61.1821,13.356],[-61.1239,13.2939],[-61.1745,13.1581]]]},properties:{name:"Saint Vincent and the Grenadines",id:"VC"},id:"VC"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[12.4392,41.8983],[12.4307,41.8974],[12.4307,41.9054],[12.4383,41.9063],[12.4392,41.8983]]]},properties:{name:"Vatican City",id:"VA"},id:"VA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[70.9468,42.2485],[70.8421,42.0195],[70.1811,41.5716],[70.7826,41.2626],[71.4085,41.1361],[71.7924,41.4131],[72.6585,40.8698],[73.113,40.7859],[71.6926,40.1525],[70.9579,40.239],[70.3826,40.4534],[70.7511,40.7397],[70.4417,41.0234],[69.7128,40.6572],[69.2063,40.5666],[69.2281,40.1875],[68.6528,40.1827],[68.4632,39.5368],[67.7193,39.6216],[67.3495,39.242],[67.6767,39.0086],[68.1037,38.9619],[68.0478,38.6694],[68.2941,38.0329],[67.8143,37.4869],[67.7592,37.1722],[67.069,37.3346],[66.5221,37.3484],[66.5745,38.0107],[65.8572,38.2686],[65.613,38.2384],[64.1628,38.9535],[62.6505,39.8586],[61.903,41.0935],[60.455,41.2218],[60.0897,41.3994],[60.107,41.9076],[59.8584,42.2951],[59.4509,42.2996],[58.5889,42.7785],[58.2595,42.688],[57.8143,42.1899],[57.3819,42.1562],[56.9642,41.8566],[57.0179,41.2635],[55.9774,41.3221],[55.9766,42.929],[55.9757,44.9949],[58.5551,45.5555],[61.0081,44.3939],[61.1608,44.1688],[61.9904,43.4923],[63.2071,43.6281],[64.4434,43.5513],[64.9054,43.7147],[65.4963,43.3108],[65.803,42.8771],[66.1004,42.9907],[66.0094,42.0048],[66.4986,41.9951],[66.6686,41.2706],[66.8142,41.1423],[67.9359,41.1965],[68.2919,40.6563],[69.0652,41.367],[70.0954,41.8206],[70.4159,42.0785],[70.9468,42.2485]]]},properties:{name:"Uzbekistan",id:"UZ"},id:"UZ"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-166.1355,60.3835],[-165.7298,60.3143],[-165.5917,59.9132],[-166.1876,59.7738],[-167.1389,60.0086],[-166.1355,60.3835]]],[[[-171.4631,63.6401],[-170.4304,63.6989],[-169.7778,63.0937],[-171.4631,63.6401]]],[[[-141.0021,69.6509],[-141.0021,68.4819],[-141.0021,65.56],[-141.0021,63.2222],[-141.0021,60.3003],[-139.1852,60.0837],[-137.5932,59.2263],[-137.4385,58.9031],[-136.5787,59.1522],[-136.3219,59.6049],[-135.4759,59.7934],[-134.9439,59.2882],[-133.8208,58.7049],[-131.8661,56.7929],[-131.5752,56.5989],[-130.4772,56.2307],[-130.0251,55.8882],[-130.0366,55.2978],[-130.2142,55.026],[-130.5753,54.7696],[-131.0478,55.1576],[-130.9186,55.736],[-131.8439,56.1601],[-132.8143,57.0408],[-133.4659,57.1722],[-133.5543,57.6951],[-134.0634,58.2111],[-134.7761,58.4539],[-135.3025,58.2559],[-135.8618,58.5771],[-136.5827,58.2453],[-137.544,58.5811],[-138.3525,59.0873],[-140.2168,59.7266],[-140.8432,59.749],[-141.6702,59.9698],[-142.9457,60.097],[-143.8051,60.0129],[-144.9012,60.3351],[-145.8989,60.4783],[-146.8741,61.005],[-148.3445,60.8536],[-148.1976,60.1678],[-148.4306,59.9891],[-149.4323,60.0011],[-150.9608,59.244],[-151.7383,59.1886],[-151.7345,59.9882],[-151.4515,60.2026],[-151.3217,60.7428],[-150.4412,61.0236],[-150.6124,61.3013],[-151.7341,60.9106],[-151.7505,60.7548],[-153.1061,59.875],[-154.0883,59.3632],[-154.1298,59.12],[-153.327,58.8843],[-154.0199,58.493],[-154.2469,58.1594],[-155.0069,58.016],[-156.4784,57.328],[-156.4751,57.1051],[-157.5784,56.6344],[-158.4144,56.4358],[-158.2757,56.1963],[-159.5233,55.8101],[-159.9623,55.7948],[-161.0995,55.4057],[-161.7416,55.3911],[-162.0741,55.1394],[-162.8651,54.9545],[-162.9621,55.1838],[-162.1571,55.7195],[-161.2156,56.0214],[-160.8514,55.7719],[-160.3021,56.3141],[-159.2831,56.6886],[-158.321,57.2978],[-157.6077,57.6014],[-157.5235,58.4213],[-158.5032,58.8503],[-159.0827,58.4697],[-159.6702,58.9111],[-160.3631,59.0512],[-161.7554,58.6119],[-161.8286,59.5887],[-162.2425,60.1782],[-163.2193,59.8455],[-163.9069,59.8067],[-164.6622,60.3038],[-165.3538,60.5413],[-164.8051,60.892],[-165.566,61.1024],[-166.0789,61.8031],[-165.1944,62.4736],[-164.409,63.2151],[-163.3589,63.0458],[-161.974,63.453],[-161.0997,63.558],[-160.7786,63.819],[-160.932,64.5792],[-161.7594,64.8162],[-162.807,64.3743],[-163.7132,64.5883],[-164.8995,64.4607],[-166.1428,64.5827],[-167.4039,65.4221],[-168.0884,65.6578],[-164.6742,66.5549],[-163.7755,66.5312],[-163.6954,66.0838],[-161.8164,66.0536],[-161.557,66.2504],[-160.2317,66.4202],[-160.864,66.6708],[-161.8566,66.7003],[-161.9653,67.0497],[-163.0016,67.0272],[-163.7205,67.1955],[-164.1251,67.6067],[-166.3805,68.4251],[-166.2092,68.8854],[-164.3024,68.9364],[-163.1614,69.3879],[-162.9521,69.7581],[-161.881,70.3318],[-160.9963,70.3045],[-159.3144,70.8785],[-157.9985,70.8454],[-156.7833,71.319],[-155.1669,71.0993],[-154.1952,70.801],[-153.2329,70.9326],[-152.233,70.8103],[-151.9447,70.4521],[-149.2694,70.5007],[-147.7053,70.2173],[-145.8232,70.16],[-145.1973,70.0086],[-143.2184,70.1163],[-141.4078,69.6533],[-141.0021,69.6509]]],[[[-155.5813,19.0121],[-155.8814,19.0707],[-156.0487,19.7498],[-155.8316,20.2759],[-155.1989,19.9944],[-154.8043,19.5244],[-155.5813,19.0121]]],[[[-72.5098,40.9861],[-73.1943,40.6541],[-73.5738,40.9195],[-72.5098,40.9861]]],[[[-93.3778,48.6166],[-92.9963,48.6117],[-91.5183,48.0582],[-90.8403,48.2007],[-89.4556,47.996],[-88.3782,48.3032],[-84.8759,46.9001],[-84.5617,46.4575],[-84.1921,46.5494],[-83.9777,46.0851],[-83.5926,45.817],[-82.5511,45.3473],[-82.1378,43.5709],[-82.5453,42.6245],[-83.0731,42.3005],[-83.1419,41.976],[-82.439,41.675],[-81.2778,42.209],[-80.2475,42.3662],[-79.0368,42.8025],[-79.1719,43.4666],[-78.7205,43.625],[-76.82,43.6286],[-76.4646,44.0574],[-75.1793,44.8994],[-74.7088,45.0038],[-71.5175,45.0078],[-71.3272,45.2901],[-70.898,45.2626],[-70.2963,45.9062],[-70.0078,46.7088],[-69.243,47.4629],[-68.8288,47.2032],[-68.311,47.3546],[-67.8067,47.083],[-67.7845,45.7016],[-67.4328,45.603],[-67.4725,45.2759],[-67.1249,45.1693],[-67.1067,44.8852],[-67.9071,44.4538],[-68.2775,44.5075],[-69.7916,43.8053],[-70.1789,43.7662],[-70.829,42.8251],[-71.0463,42.3311],[-70.7382,42.229],[-70.4046,41.6271],[-70.6572,41.5343],[-71.4265,41.6333],[-71.5228,41.3789],[-72.8471,41.2657],[-73.5831,41.022],[-74.2267,40.6079],[-73.9575,40.3282],[-74.1761,39.7268],[-74.4289,39.3872],[-74.897,39.1453],[-75.3922,39.0929],[-75.036,38.5034],[-75.6592,37.9539],[-76.2948,38.4945],[-76.2635,37.3568],[-75.8905,36.6568],[-76.4788,36.0283],[-75.7722,35.9],[-75.7739,35.647],[-76.513,35.2705],[-76.7449,34.9412],[-77.7508,34.2851],[-78.0134,33.9118],[-78.5778,33.8732],[-78.9202,33.6588],[-79.276,33.1354],[-80.8492,32.114],[-81.5203,30.8747],[-81.2496,29.7938],[-80.9,29.0498],[-80.524,28.4861],[-80.6501,28.1811],[-80.2262,27.2072],[-80.0413,26.5685],[-80.1263,25.8334],[-80.3669,25.3313],[-80.7366,25.1565],[-81.0978,25.3194],[-81.365,25.8312],[-81.7154,25.983],[-81.8666,26.4349],[-82.4414,27.0599],[-82.6609,27.7186],[-82.8436,27.846],[-82.6607,28.4857],[-82.6516,28.8874],[-83.2906,29.452],[-83.6943,29.9261],[-84.0443,30.1036],[-84.3828,29.9074],[-85.3189,29.6802],[-85.3536,29.8759],[-86.2573,30.4929],[-87.7903,30.2918],[-88.9051,30.4152],[-89.5885,30.1658],[-90.2253,30.3793],[-90.4131,30.1405],[-89.5894,29.915],[-90.1014,29.1817],[-90.3793,29.2953],[-90.7511,29.1311],[-91.2902,29.2891],[-91.331,29.5137],[-91.8932,29.836],[-92.2608,29.5568],[-93.1756,29.7792],[-93.6947,29.7698],[-94.8884,29.3708],[-95.2734,28.9637],[-95.8534,28.6401],[-96.4487,28.5944],[-96.5616,28.3671],[-97.1564,28.1443],[-97.1715,27.8797],[-97.5546,26.9675],[-97.4024,26.3967],[-97.1462,25.9617],[-97.3582,25.8707],[-98.0828,26.0642],[-99.1078,26.4469],[-99.4436,27.0368],[-99.5053,27.5482],[-100.2961,28.3276],[-100.6587,29.0685],[-101.4404,29.7769],[-102.269,29.871],[-102.7342,29.6438],[-102.892,29.2163],[-103.2577,29.001],[-104.1107,29.3863],[-104.504,29.6775],[-104.9179,30.5835],[-106.2558,31.5445],[-106.4533,31.77],[-108.2118,31.7793],[-108.2145,31.3292],[-111.042,31.3243],[-112.939,31.916],[-114.836,32.5082],[-114.7248,32.7155],[-117.1282,32.5335],[-117.4674,33.2957],[-118.5063,34.0174],[-119.1437,34.112],[-119.6061,34.4178],[-120.4812,34.4715],[-120.6448,34.5798],[-120.6337,35.0766],[-120.8603,35.3655],[-121.8774,36.331],[-121.79,36.7323],[-122.3948,37.2077],[-122.4669,37.838],[-122.9681,38.0968],[-122.9865,38.277],[-123.7012,38.9073],[-123.8845,39.8608],[-124.324,40.2519],[-124.3717,40.4912],[-124.0685,41.3843],[-124.5397,42.8127],[-124.1486,43.6916],[-123.9293,45.5768],[-124.0716,46.7447],[-124.3761,47.6587],[-124.6211,47.9042],[-124.6327,48.3751],[-123.9757,48.1683],[-122.2421,48.0107],[-122.7888,48.993],[-120.1281,48.993],[-118.4226,48.993],[-115.8643,48.993],[-112.4532,48.993],[-109.895,48.993],[-106.4839,48.993],[-103.9256,48.993],[-102.2201,48.993],[-99.2354,48.993],[-97.5297,48.9932],[-95.162,48.9917],[-94.6209,48.7427],[-93.7078,48.5256],[-93.3778,48.6166]]],[[[-163.4761,54.9807],[-163.3581,54.7357],[-164.5907,54.4043],[-164.8877,54.6078],[-164.5297,54.8808],[-163.4761,54.9807]]],[[[-130.9792,55.4892],[-131.0827,55.2668],[-131.8111,55.223],[-131.6249,55.8316],[-130.9792,55.4892]]],[[[-133.566,56.3392],[-133.2029,56.3199],[-131.9764,55.2086],[-131.9809,54.8049],[-132.7823,55.0484],[-133.4471,55.797],[-133.566,56.3392]]],[[[-133.3663,57.0035],[-132.9541,56.8803],[-133.2127,56.4646],[-133.6029,56.4642],[-133.8661,57.0687],[-133.3663,57.0035]]],[[[-134.9698,57.3515],[-134.6207,56.7183],[-135.787,57.3173],[-134.9698,57.3515]]],[[[-152.898,57.8238],[-152.4121,57.4547],[-153.7933,56.9895],[-154.3391,56.9209],[-154.7059,57.3353],[-154.2813,57.638],[-153.8184,57.5956],[-152.898,57.8238]]],[[[-135.7304,58.2442],[-135.002,58.0511],[-135.0848,57.5111],[-136.0767,57.6747],[-136.5123,58.0959],[-135.7304,58.2442]]],[[[-134.6802,58.1616],[-133.9611,57.6143],[-133.9253,57.3369],[-134.4354,57.057],[-134.66,57.638],[-134.6802,58.1616]]]]},properties:{name:"United States",id:"US"},id:"US"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-53.3707,-33.7422],[-53.7853,-34.3806],[-54.1686,-34.6709],[-54.9023,-34.9328],[-55.6732,-34.7756],[-56.1179,-34.9079],[-56.8552,-34.6766],[-57.1706,-34.4525],[-57.8291,-34.4773],[-58.4002,-33.9123],[-58.3534,-33.2602],[-58.0824,-32.8935],[-58.2011,-32.4718],[-58.1889,-31.9241],[-57.8105,-30.8587],[-57.8724,-30.5911],[-57.609,-30.188],[-57.2144,-30.2834],[-56.8328,-30.1072],[-56.1761,-30.6283],[-55.8736,-31.0696],[-55.5573,-30.876],[-55.2546,-31.2258],[-54.5876,-31.4851],[-54.2205,-31.8553],[-53.7618,-32.0568],[-53.6017,-32.403],[-53.1254,-32.7368],[-53.5314,-33.171],[-53.3707,-33.7422]]]},properties:{name:"Uruguay",id:"UY"},id:"UY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[38.2142,47.0914],[37.5435,47.0745],[37.3398,46.9169],[36.2793,46.6586],[35.827,46.6244],[34.8495,46.1898],[35.0231,45.7011],[35.558,45.3109],[36.1705,45.453],[36.3934,45.0655],[35.5695,45.1192],[35.0879,44.8027],[34.7168,44.8071],[33.9098,44.3876],[33.4508,44.5537],[33.5551,45.0979],[32.508,45.4037],[33.6648,45.947],[33.2022,46.1756],[32.4769,46.0838],[32.0357,46.2609],[31.9744,46.7088],[30.7963,46.5521],[30.2193,45.8667],[29.6018,45.6825],[29.7061,45.2599],[29.2236,45.4028],[28.7606,45.2341],[28.2124,45.4503],[28.9475,46.05],[29.1464,46.5268],[29.838,46.3505],[29.8779,46.829],[29.5494,47.2467],[29.1597,47.4558],[29.1948,47.8824],[27.5493,48.4777],[26.6189,48.2597],[26.1625,47.9925],[24.8935,47.7177],[23.2027,48.0844],[22.8764,47.9472],[22.132,48.4053],[22.5386,49.0727],[22.6496,49.539],[23.7118,50.3773],[24.1056,50.8449],[23.6053,51.5179],[24.3617,51.8674],[25.9251,51.9136],[27.1422,51.752],[27.2701,51.6135],[28.5991,51.5427],[29.1357,51.6173],[29.3466,51.3825],[30.5331,51.5964],[30.9806,52.0461],[31.7636,52.1012],[32.508,52.3084],[33.7353,52.3448],[34.3976,51.7804],[34.2809,51.3117],[35.3121,51.0438],[35.4115,50.5398],[36.3059,50.2805],[37.4228,50.4115],[38.0469,49.9201],[38.2586,50.0524],[39.1748,49.8559],[39.7807,49.5721],[40.0701,49.2003],[39.6866,49.0079],[39.9609,48.238],[39.7359,47.8447],[38.9005,47.8553],[38.2875,47.5592],[38.2142,47.0914]]]},properties:{name:"Ukraine",id:"UA"},id:"UA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.9031,-1.0021],[32.1942,-1.0021],[30.8447,-1.0021],[30.51,-1.0674],[30.1016,-1.3688],[29.577,-1.3878],[29.5619,-.9772],[29.7177,.0983],[29.9343,.4991],[29.9427,.8192],[30.9424,1.683],[31.2527,2.0448],[31.1763,2.2703],[30.7284,2.4554],[30.8385,3.4905],[31.1523,3.7857],[31.4799,3.6805],[31.7982,3.8026],[32.0996,3.5291],[32.3358,3.7063],[32.8382,3.7986],[33.4894,3.7551],[33.9759,4.2203],[34.165,3.8128],[34.3928,3.6916],[34.4478,3.1634],[34.7425,2.818],[34.964,2.0625],[34.9654,1.6435],[34.7874,1.2307],[34.4815,1.042],[33.9431,.1738],[33.9031,-1.0021]]]},properties:{name:"Uganda",id:"UG"},id:"UG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.9031,-1.0021],[34.7709,-1.4416],[36.2633,-2.2747],[37.6438,-3.0453],[37.6087,-3.4604],[37.7974,-3.6743],[39.2219,-4.6922],[38.8192,-5.8778],[38.8738,-6.3315],[39.4722,-6.8788],[39.5193,-7.1243],[39.2884,-7.518],[39.4411,-8.0116],[39.304,-8.444],[39.7838,-9.9146],[40.4634,-10.4641],[39.9889,-10.821],[39.3217,-11.1224],[38.7948,-11.2289],[38.4917,-11.4131],[37.9204,-11.2946],[37.5417,-11.675],[36.9789,-11.5667],[36.5185,-11.7163],[35.7852,-11.4531],[35.6312,-11.5818],[34.9596,-11.5783],[34.608,-11.0807],[34.6617,-10.71],[34.5241,-10.03],[34.3208,-9.7317],[32.9199,-9.4072],[32.4334,-9.1564],[31.9425,-9.0539],[31.3508,-8.6069],[31.0764,-8.6117],[30.7511,-8.1936],[30.3134,-7.2037],[29.7097,-6.6169],[29.4802,-6.0252],[29.5943,-5.651],[29.3426,-4.9829],[29.4034,-4.4494],[29.7177,-4.456],[30.1469,-4.0854],[30.4252,-3.5891],[30.7901,-3.2744],[30.5149,-2.9175],[30.5535,-2.3999],[30.8287,-2.3387],[30.8128,-1.5632],[30.51,-1.0674],[30.8447,-1.0021],[32.1942,-1.0021],[33.9031,-1.0021]]]},properties:{name:"Tanzania",id:"TZ"},id:"TZ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[121.009,22.6205],[120.5815,22.3564],[120.3258,22.5424],[120.0723,23.1496],[120.1589,23.7089],[121.0405,25.0326],[121.5936,25.2754],[121.9291,24.9736],[121.2957,22.9667],[121.009,22.6205]]]},properties:{name:"Taiwan",id:"TW"},id:"TW"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[41.5101,41.5174],[42.4663,41.4398],[42.7876,41.5636],[43.4393,41.1073],[43.7225,40.7193],[43.5693,40.4823],[43.7917,40.0703],[44.2893,40.0406],[44.7683,39.7037],[44.8171,39.6504],[44.023,39.3774],[44.4309,38.3569],[44.2112,37.9081],[44.5614,37.7448],[44.7652,37.1424],[44.2818,36.9782],[44.1562,37.2831],[43.5161,37.2445],[42.7748,37.3719],[42.3588,37.1087],[42.2683,37.2765],[41.5154,37.0892],[40.7058,37.0976],[40.0164,36.8259],[39.3568,36.6817],[38.7669,36.6932],[38.1916,36.9014],[37.4365,36.6435],[36.6584,36.8024],[36.1275,35.8316],[35.8927,35.9164],[35.811,36.3097],[36.1883,36.659],[36.0489,36.9107],[35.5375,36.5969],[34.6014,36.7847],[33.6945,36.1819],[32.7947,36.0358],[32.3775,36.1836],[32.0219,36.5352],[31.3525,36.8011],[30.6441,36.8654],[30.4838,36.3106],[29.6893,36.1565],[29.1433,36.3971],[29.0381,36.6937],[28.4837,36.8037],[28.1339,37.0297],[27.3491,37.0195],[27.0779,37.6875],[27.2323,37.9787],[26.6828,38.1985],[26.7636,38.7098],[27.0135,38.8869],[26.6819,39.2922],[26.1133,39.4675],[26.1812,39.99],[26.7378,40.4002],[27.4756,40.3198],[28.2892,40.4033],[29.3648,40.8094],[29.3222,41.2276],[31.2549,41.1077],[31.4582,41.3199],[32.3065,41.7296],[33.3816,42.0177],[34.7505,41.9569],[35.2978,41.7287],[36.0516,41.6826],[36.5097,41.2626],[38.3811,40.9244],[39.4265,41.1064],[40.2654,40.9612],[40.9597,41.2116],[41.5101,41.5174]]],[[[28.0145,41.9689],[28.3465,41.4664],[29.0572,41.2298],[28.7802,40.9741],[28.172,41.0806],[27.4996,40.9732],[27.2581,40.6874],[26.1053,40.6114],[26.0391,40.7269],[26.6246,41.4016],[26.321,41.7167],[26.6153,41.9649],[27.2949,42.0794],[28.0145,41.9689]]]]},properties:{name:"Turkey",id:"TR"},id:"TR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[11.5043,33.182],[11.5048,32.4137],[10.8265,32.0807],[10.115,31.4637],[10.2162,30.7832],[9.8952,30.3873],[9.5188,30.2293],[9.0439,32.0723],[8.3332,32.5437],[8.2111,32.9268],[7.7628,33.2331],[7.5,33.8323],[7.5138,34.0805],[8.2457,34.7339],[8.3944,35.204],[8.2457,35.8707],[8.2306,36.5454],[8.5764,36.9374],[9.6879,37.3404],[10.1962,37.2059],[10.5713,36.8796],[11.1266,36.8739],[10.5256,36.3235],[10.5908,35.8871],[11.0045,35.6336],[11.1199,35.2404],[10.5349,34.5448],[10.0648,34.2119],[10.1589,33.8501],[10.7227,33.5145],[11.0844,33.5629],[11.2025,33.2491],[11.5043,33.182]]]},properties:{name:"Tunisia",id:"TN"},id:"TN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.0121,10.1343],[-61.5967,10.0646],[-61.4648,10.5391],[-61.0338,10.67],[-61.0121,10.1343]]]},properties:{name:"Trinidad and Tobago",id:"TT"},id:"TT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-175.162,-21.1695],[-175.1567,-21.2636],[-175.3354,-21.1579],[-175.2255,-21.1188],[-175.162,-21.1695]]]},properties:{name:"Tonga",id:"TO"},id:"TO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[125.0679,-9.512],[124.9223,-8.9424],[125.178,-8.6477],[125.8043,-8.4923],[126.6198,-8.4595],[126.9149,-8.7152],[126.3823,-8.9575],[125.4079,-9.2758],[125.0679,-9.512]]]},properties:{name:"Timor-Leste",id:"TL"},id:"TL"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[66.5221,37.3484],[65.7648,37.569],[65.5549,37.2512],[64.8162,37.1322],[64.5108,36.3408],[63.8623,36.0123],[63.1086,35.8187],[63.0566,35.4459],[62.6105,35.2333],[61.262,35.6194],[61.1195,36.6426],[60.3413,36.6377],[60.0626,36.9631],[59.5623,37.1788],[59.2409,37.5206],[58.8157,37.6835],[58.4357,37.6387],[57.4236,37.9477],[57.1937,38.2162],[56.4409,38.2495],[56.2287,38.0733],[55.5784,38.0999],[55.0755,37.9024],[54.7452,37.502],[53.9142,37.3435],[53.8237,37.9281],[53.8685,38.9491],[53.6177,39.2159],[53.125,39.432],[53.4721,39.6686],[53.4042,39.9603],[52.9874,39.9878],[52.7335,40.3988],[53.1454,40.825],[53.8698,40.6487],[54.7101,40.8911],[54.5921,41.1934],[54.0949,41.5192],[53.8463,42.0914],[52.9701,41.9764],[52.4938,41.7802],[53.2502,42.2059],[54.1211,42.3351],[54.9037,41.9192],[55.5451,41.2626],[55.9774,41.3221],[57.0179,41.2635],[56.9642,41.8566],[57.3819,42.1562],[57.8143,42.1899],[58.2595,42.688],[58.5889,42.7785],[59.4509,42.2996],[59.8584,42.2951],[60.107,41.9076],[60.0897,41.3994],[60.455,41.2218],[61.903,41.0935],[62.6505,39.8586],[64.1628,38.9535],[65.613,38.2384],[65.8572,38.2686],[66.5745,38.0107],[66.5221,37.3484]]]},properties:{name:"Turkmenistan",id:"TM"},id:"TM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-172.4791,-8.5807],[-172.4836,-8.5829],[-172.4987,-8.5478],[-172.4874,-8.5563],[-172.4791,-8.5807]]]},properties:{name:"Tokelau",id:"TK"},id:"TK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[70.9579,40.239],[70.4514,40.049],[69.9667,40.2022],[69.5304,40.0974],[69.229,39.761],[69.5987,39.5736],[70.6077,39.5643],[70.7333,39.4134],[71.4045,39.598],[71.8062,39.2758],[72.0428,39.3521],[73.2351,39.3743],[73.6315,39.4489],[73.8015,38.6068],[74.2773,38.6597],[74.7452,38.5101],[74.8912,37.2317],[74.2596,37.4154],[73.7496,37.2317],[73.4814,37.4718],[72.8955,37.2676],[71.8022,36.6941],[71.4329,37.1273],[71.5518,37.933],[71.2558,38.3068],[70.8789,38.4564],[70.2148,37.9246],[70.2512,37.664],[69.4922,37.553],[69.2649,37.1083],[68.9604,37.3249],[68.0677,36.9498],[67.7592,37.1722],[67.8143,37.4869],[68.2941,38.0329],[68.0478,38.6694],[68.1037,38.9619],[67.6767,39.0086],[67.3495,39.242],[67.7193,39.6216],[68.4632,39.5368],[68.6528,40.1827],[69.2281,40.1875],[69.2063,40.5666],[69.7128,40.6572],[70.4417,41.0234],[70.7511,40.7397],[70.3826,40.4534],[70.9579,40.239]]]},properties:{name:"Tajikistan",id:"TJ"},id:"TJ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[100.1225,20.3167],[100.5429,20.0885],[100.3977,19.7561],[100.6254,19.4999],[101.1546,19.5794],[101.2864,18.977],[101.0507,18.4071],[101.1133,18.0333],[100.9086,17.5837],[101.1053,17.4793],[102.1014,18.2104],[102.7175,17.8922],[103.0913,18.1381],[103.3669,18.4235],[103.9497,18.3192],[104.8162,17.3005],[104.7505,16.6475],[105.047,16.1601],[105.4062,15.9874],[105.6223,15.6998],[105.5131,15.3606],[105.4754,14.5301],[105.1833,14.3464],[104.7789,14.428],[103.1996,14.3326],[102.729,13.8421],[102.3198,13.5398],[102.4995,12.6698],[102.7557,12.4261],[102.7366,12.0896],[102.9341,11.7065],[102.7628,12.0124],[101.7236,12.6893],[101.4449,12.6187],[100.8634,12.7146],[100.9628,13.4319],[100.6561,13.5212],[100.0173,13.3534],[100.0901,13.0457],[99.964,12.6902],[99.9889,12.1708],[99.6271,11.4628],[99.4869,10.8898],[99.165,10.3198],[99.1606,9.7339],[99.3936,9.2136],[99.7239,9.3144],[99.9046,9.1129],[99.9605,8.6712],[100.2792,8.2686],[100.4537,7.4425],[100.5864,7.1762],[101.0178,6.861],[101.4977,6.8654],[102.1009,6.2422],[101.8737,5.8254],[101.5563,5.908],[101.2571,5.7894],[101.0533,6.2427],[100.3453,6.5498],[100.119,6.442],[99.6959,6.8765],[99.7203,7.106],[99.051,7.8877],[98.5791,8.3445],[98.2382,8.4231],[98.3714,9.2904],[98.7025,10.1902],[98.7571,10.6612],[99.1903,11.1051],[99.6147,11.7811],[99.4052,12.5477],[99.2196,12.7399],[99.1366,13.7165],[98.2462,14.8147],[98.1911,15.204],[98.5653,15.4037],[98.6892,16.3052],[98.4388,16.9755],[97.793,17.6813],[97.4849,18.4941],[97.7539,18.621],[97.8169,19.46],[98.1112,19.7623],[98.9169,19.7729],[99.0208,20.0419],[99.3382,20.0788],[99.8904,20.4246],[100.1225,20.3167]]]},properties:{name:"Thailand",id:"TH"},id:"TH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[.9007,10.9932],[.7799,10.3598],[1.3299,9.9971],[1.4244,9.2851],[1.6002,9.0498],[1.6224,6.2169],[1.1874,6.0895],[.7369,6.4526],[.5256,6.8508],[.6348,7.3537],[.5837,8.1456],[.688,8.3041],[.4153,8.6525],[.5291,9.3583],[.2619,9.4955],[.3627,10.2364],[-.0577,10.6305],[-.0686,11.1157],[.9007,10.9932]]]},properties:{name:"Togo",id:"TG"},id:"TG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.86,10.9195],[22.4938,10.9963],[21.7063,10.5746],[21.7258,10.3664],[21.2638,9.9745],[20.7733,9.4058],[20.3422,9.1271],[19.1455,9.0161],[19.1087,8.6561],[18.4553,8.032],[17.6496,7.9836],[16.7849,7.5508],[16.3787,7.6835],[15.8452,7.4753],[15.4803,7.5237],[15.443,7.8518],[15.1163,8.5571],[14.3324,9.2034],[13.9773,9.6917],[14.2432,9.9798],[15.5411,9.9603],[15.1323,10.6483],[15.0297,11.1135],[15.0812,11.8455],[14.7612,12.6556],[14.5162,12.9796],[14.0638,13.0786],[13.6062,13.7045],[13.4481,14.3805],[14.3679,15.7499],[15.4745,16.9085],[15.7351,19.9039],[15.949,20.3034],[15.5873,20.7335],[15.6072,20.9546],[15.182,21.5232],[15.1722,21.9223],[14.9791,22.996],[15.9841,23.4452],[17.7521,22.5721],[19.6684,21.6257],[21.5847,20.6794],[23.9804,19.4968],[23.9822,17.2663],[23.9835,15.7801],[23.105,15.7024],[22.9323,15.1622],[22.6709,14.7223],[22.3815,14.5505],[22.5098,14.1275],[22.1076,13.7302],[22.2283,13.3294],[21.8253,12.7905],[22.3522,12.6604],[22.5564,11.6697],[22.9226,11.3448],[22.86,10.9195]]]},properties:{name:"Chad",id:"TD"},id:"TD"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.6615,21.7651],[-71.8304,21.7904],[-71.8062,21.8521],[-71.6684,21.8335],[-71.6615,21.7651]]]},properties:{name:"Turks and Caicos Islands",id:"TC"},id:"TC"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[42.3588,37.1087],[41.7884,36.5973],[41.4169,36.5148],[41.2456,36.0735],[41.3543,35.6403],[41.1945,34.7689],[40.9872,34.4289],[40.6894,34.3322],[38.7735,33.372],[36.8182,32.3173],[36.3721,32.387],[35.7875,32.735],[35.8691,33.4319],[35.9424,33.6676],[36.5851,34.2212],[36.4329,34.6136],[35.9761,34.6291],[35.9433,35.2239],[35.7644,35.5715],[35.8927,35.9164],[36.1275,35.8316],[36.6584,36.8024],[37.4365,36.6435],[38.1916,36.9014],[38.7669,36.6932],[39.3568,36.6817],[40.0164,36.8259],[40.7058,37.0976],[41.5154,37.0892],[42.2683,37.2765],[42.3588,37.1087]]]},properties:{name:"Syria",id:"SY"},id:"SY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[55.5402,-4.6931],[55.3835,-4.6092],[55.4559,-4.5586],[55.5402,-4.6931]]]},properties:{name:"Seychelles",id:"SC"},id:"SC"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.123,18.0688],[-63.0111,18.0688],[-63.0231,18.0191],[-63.123,18.0688]]]},properties:{name:"Sint Maarten",id:"SX"},id:"SX"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.9482,-25.9577],[32.1129,-26.8393],[31.9584,-27.3058],[31.4697,-27.2956],[31.0636,-27.1123],[30.7941,-26.7643],[30.8034,-26.4136],[31.2074,-25.8432],[31.4151,-25.7464],[31.9482,-25.9577]]]},properties:{name:"eSwatini",id:"SZ"},id:"SZ"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[24.1557,65.8052],[23.1024,65.7353],[21.5656,65.4081],[21.1381,64.8087],[21.4653,64.3796],[20.7626,63.8678],[19.0345,63.2377],[18.4632,62.8959],[17.8955,62.8305],[17.4174,61.7407],[17.1307,61.5758],[17.251,60.7009],[17.9559,60.5897],[18.5573,60.2537],[18.9706,59.7572],[17.876,59.2709],[17.4569,58.8585],[16.6522,58.4344],[16.5279,57.0681],[15.9965,56.2227],[14.782,56.1619],[14.2152,55.8325],[14.3417,55.5278],[13.3212,55.3464],[12.5923,56.1377],[12.8835,56.6178],[12.4214,56.9063],[11.4493,58.1183],[11.147,58.9886],[11.3885,59.0365],[11.7982,59.29],[11.6806,59.5923],[12.4862,60.1067],[12.5888,60.4508],[12.294,61.0027],[12.8809,61.3523],[12.1555,61.7207],[12.3034,62.2856],[12.2181,63.0007],[11.9997,63.2917],[12.6625,63.9404],[13.9604,64.0141],[14.0776,64.464],[13.6501,64.5816],[14.4798,65.3014],[14.5432,66.1292],[15.423,66.4899],[16.4036,67.055],[16.1275,67.4259],[17.3247,68.1039],[17.9168,67.965],[18.3785,68.5624],[19.9698,68.3565],[20.6223,69.037],[21.9975,68.5207],[22.7823,68.3911],[23.639,67.9543],[23.4681,67.45],[23.9884,66.8106],[23.7012,66.4808],[24.1557,65.8052]]],[[[19.0767,57.836],[18.6998,57.2428],[18.1365,57.5566],[18.5374,57.8305],[19.0767,57.836]]]]},properties:{name:"Sweden",id:"SE"},id:"SE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[16.5163,46.4997],[15.6361,46.2005],[15.6246,45.8338],[15.3396,45.4672],[13.8787,45.4286],[13.5778,45.5169],[13.7198,45.5875],[13.3993,46.3177],[13.6998,46.5201],[14.5037,46.4171],[15.0009,46.6262],[15.9575,46.6777],[16.0929,46.8632],[16.5163,46.4997]]]},properties:{name:"Slovenia",id:"SI"},id:"SI"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.5386,49.0727],[22.132,48.4053],[21.4515,48.5522],[20.4901,48.5269],[19.8988,48.1314],[18.7917,48.0005],[18.7242,47.787],[17.7619,47.7701],[17.1475,48.0058],[16.9531,48.5988],[17.1884,48.861],[17.7583,48.888],[18.161,49.2574],[18.8321,49.5108],[19.4416,49.5976],[19.802,49.1923],[20.6161,49.3916],[21.6397,49.4121],[22.5386,49.0727]]]},properties:{name:"Slovakia",id:"SK"},id:"SK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-54.1559,5.3589],[-54.4522,5.0135],[-54.3508,4.0543],[-53.9904,3.5895],[-54.2032,3.1381],[-54.1954,2.818],[-54.6163,2.3266],[-55.0058,2.593],[-56.1295,2.2996],[-56.0198,1.8424],[-56.4828,1.9422],[-56.7043,2.0363],[-57.2097,2.8828],[-57.3036,3.3769],[-57.5497,3.3529],[-57.8327,3.6761],[-58.0544,4.1719],[-57.7111,4.9909],[-57.3309,5.0202],[-57.1948,5.5484],[-56.9698,5.9927],[-55.9395,5.7957],[-55.8283,5.9617],[-54.8338,5.9883],[-54.0543,5.8081],[-54.1559,5.3589]]]},properties:{name:"Suriname",id:"SR"},id:"SR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.6602,.1205],[6.5243,.3402],[6.6868,.4041],[6.7498,.2435],[6.6602,.1205]]]},properties:{name:"Sao Tome and Principe",id:"ST"},id:"ST"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.2419,46.1086],[20.775,45.7499],[20.7741,45.4845],[21.4919,45.1223],[21.3845,44.8701],[22.7051,44.2376],[22.421,44.0077],[22.5546,43.4546],[22.9767,43.1878],[22.4667,42.8425],[22.3442,42.3138],[21.5625,42.2476],[21.7529,42.6698],[21.3907,42.7515],[21.0569,43.0915],[20.3445,42.8278],[19.5517,43.2122],[19.1943,43.5331],[19.4882,43.7036],[19.1517,44.3024],[19.3568,44.8586],[19.007,44.8693],[19.0549,45.5271],[18.9054,45.9315],[19.5308,46.1552],[20.2419,46.1086]]]},properties:{name:"Serbia",id:"RS"},id:"RS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-56.2671,46.8384],[-56.3869,47.0679],[-56.2873,47.071],[-56.3148,46.9538],[-56.2671,46.8384]]]},properties:{name:"Saint Pierre and Miquelon",id:"PM"},id:"PM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[41.5328,-1.6955],[40.9788,-.8703],[40.9699,1.378],[40.9646,2.8145],[41.3419,3.2016],[41.8839,3.9779],[42.0241,4.1377],[42.7916,4.2922],[43.0158,4.5634],[43.5383,4.8404],[44.0283,4.9509],[44.9405,4.9119],[45.9348,5.9972],[47.9781,7.9969],[46.9784,7.9969],[44.023,8.9859],[43.4828,9.3796],[43.1818,9.8799],[42.8418,10.2031],[42.6594,10.6212],[42.9226,10.9994],[43.2462,11.4997],[43.853,10.7841],[44.3865,10.4303],[44.9427,10.4365],[45.8168,10.8361],[46.5652,10.7459],[47.405,11.1739],[48.0193,11.1392],[48.6745,11.3226],[48.9031,11.2546],[50.1101,11.5294],[50.7923,11.9835],[51.2549,11.8308],[51.0844,11.3354],[51.1408,10.6567],[50.8984,10.2532],[50.8247,9.428],[50.4297,8.8452],[50.103,8.1998],[49.3484,6.9906],[49.0492,6.1739],[48.6492,5.4943],[47.9754,4.4968],[46.879,3.2854],[46.0511,2.4753],[44.9201,1.81],[44.3328,1.3909],[43.4677,.6217],[41.9798,-.9728],[41.5328,-1.6955]]]},properties:{name:"Somalia",id:"SO"},id:"SO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[12.4853,43.9016],[12.397,43.9344],[12.441,43.9824],[12.5146,43.9531],[12.4853,43.9016]]]},properties:{name:"San Marino",id:"SM"},id:"SM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-89.3626,14.416],[-89.0572,14.329],[-88.4491,13.851],[-88.151,13.9872],[-87.7153,13.8128],[-87.8143,13.3991],[-87.9308,13.1807],[-88.5121,13.1838],[-89.2776,13.4781],[-89.8043,13.5602],[-90.0952,13.7364],[-89.8726,14.0454],[-89.3626,14.416]]]},properties:{name:"El Salvador",id:"SV"},id:"SV"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-10.2832,8.4852],[-10.6474,7.7594],[-11.2678,7.2325],[-11.5075,6.9067],[-11.7334,7.0887],[-12.4856,7.3861],[-12.5104,7.6658],[-12.8809,7.8566],[-13.2284,8.696],[-13.2928,9.0494],[-12.7559,9.3734],[-12.5016,9.8622],[-11.911,9.9931],[-11.2056,9.9776],[-10.6905,9.3144],[-10.5005,8.6876],[-10.2832,8.4852]]]},properties:{name:"Sierra Leone",id:"SL"},id:"SL"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[161.7152,-10.3873],[162.1054,-10.4539],[162.1236,-10.8245],[161.5381,-10.5666],[161.7152,-10.3873]]],[[[159.7505,-9.2727],[159.9707,-9.4334],[160.3547,-9.4214],[160.6254,-9.5888],[160.6494,-9.9288],[159.8535,-9.7916],[159.6218,-9.5319],[159.7505,-9.2727]]],[[[160.7493,-8.3139],[160.9979,-8.6122],[161.2584,-9.3171],[160.8736,-9.1568],[160.5904,-8.3729],[160.7493,-8.3139]]],[[[159.8793,-8.5341],[158.944,-8.0409],[159.1095,-7.9037],[159.8433,-8.3272],[159.8793,-8.5341]]]]},properties:{name:"Solomon Islands",id:"SB"},id:"SB"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.6923,-15.9977],[-5.775,-15.9568],[-5.7078,-15.9062],[-5.6923,-15.9977]]]},properties:{name:"Saint Helena",id:"SH"},id:"SH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-37.1034,-54.0658],[-36.3264,-54.2509],[-35.7986,-54.7636],[-36.0855,-54.8666],[-37.1034,-54.0658]]]},properties:{name:"South Georgia and South Sandwich Islands",id:"GS"},id:"GS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[103.9697,1.3314],[103.8201,1.2653],[103.6501,1.3257],[103.8179,1.4473],[103.9697,1.3314]]]},properties:{name:"Singapore",id:"SG"},id:"SG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-12.2807,14.8089],[-12.0193,14.2065],[-12.0543,13.633],[-11.6349,13.3698],[-11.3903,12.9419],[-11.3894,12.4043],[-12.2912,12.328],[-13.0828,12.6334],[-13.7294,12.6738],[-15.1962,12.68],[-15.5748,12.4904],[-16.7119,12.3551],[-16.7634,13.064],[-16.6488,13.1541],[-15.8343,13.1563],[-15.5096,13.5864],[-16.5623,13.5873],[-17.168,14.6407],[-17.1471,14.9221],[-16.5352,15.8383],[-16.4411,16.2045],[-16.1683,16.5472],[-15.6208,16.5068],[-15.1128,16.6448],[-14.3,16.5805],[-13.8685,16.1481],[-13.4095,16.0593],[-13.2579,15.7002],[-12.8584,15.2426],[-12.2807,14.8089]]]},properties:{name:"Senegal",id:"SN"},id:"SN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.078,9.4613],[34.0945,8.5824],[33.9533,8.4435],[33.2342,8.3964],[33.0127,7.9516],[33.2262,7.7608],[33.6661,7.6711],[34.0643,7.2259],[34.7106,6.6604],[35.0821,5.6731],[35.2681,5.4925],[33.9759,4.2203],[33.4894,3.7551],[32.8382,3.7986],[32.3358,3.7063],[32.0996,3.5291],[31.7982,3.8026],[31.4799,3.6805],[31.1523,3.7857],[30.8385,3.4905],[30.5083,3.8359],[30.1949,3.9819],[29.6768,4.5869],[29.1513,4.3881],[28.7269,4.5048],[28.192,4.3503],[27.7881,4.6446],[27.4032,5.1094],[27.0836,5.777],[26.5141,6.0691],[26.3619,6.6355],[25.8891,7.0647],[25.3809,7.3333],[25.2472,7.7244],[24.8535,8.1376],[24.2915,8.2912],[24.1473,8.6654],[24.5321,8.8869],[24.7852,9.7747],[25.067,10.2936],[25.7981,10.4206],[25.8913,10.2026],[26.5514,9.5257],[27.0743,9.614],[27.8857,9.5998],[28.0491,9.3286],[28.8445,9.3259],[28.9995,9.61],[29.4731,9.7685],[29.6054,10.065],[30.0031,10.2772],[30.7395,9.7427],[31.2247,9.7991],[31.6548,10.2213],[31.9331,10.6625],[32.4041,11.0576],[32.3353,11.7158],[32.0721,12.0066],[32.7366,12.0097],[33.1991,12.2174],[33.0731,11.5916],[33.172,10.8503],[33.892,10.1991],[34.078,9.4613]]]},properties:{name:"South Sudan",id:"SS"},id:"SS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[36.8714,21.9968],[36.9269,21.5867],[37.1507,21.1037],[37.2274,20.5568],[37.2483,19.5821],[37.4711,18.8203],[37.9217,18.5558],[38.6093,18.0049],[38.2537,17.5845],[37.7823,17.458],[37.4112,17.0616],[37.0091,17.059],[36.9136,16.2964],[36.4267,15.132],[36.5243,14.2567],[36.3907,13.6259],[36.2123,13.2712],[36.1075,12.7266],[35.5961,12.5375],[35.1123,11.8166],[34.9312,10.8649],[34.5716,10.88],[34.2756,10.528],[34.2915,10.1249],[34.078,9.4613],[33.892,10.1991],[33.172,10.8503],[33.0731,11.5916],[33.1991,12.2174],[32.7366,12.0097],[32.0721,12.0066],[32.3353,11.7158],[32.4041,11.0576],[31.9331,10.6625],[31.6548,10.2213],[31.2247,9.7991],[30.7395,9.7427],[30.0031,10.2772],[29.6054,10.065],[29.4731,9.7685],[28.9995,9.61],[28.8445,9.3259],[28.0491,9.3286],[27.8857,9.5998],[27.0743,9.614],[26.5514,9.5257],[25.8913,10.2026],[25.7981,10.4206],[25.067,10.2936],[24.7852,9.7747],[24.5321,8.8869],[24.1473,8.6654],[23.5374,8.8159],[23.6461,9.8231],[23.2559,10.4579],[22.86,10.9195],[22.9226,11.3448],[22.5564,11.6697],[22.3522,12.6604],[21.8253,12.7905],[22.2283,13.3294],[22.1076,13.7302],[22.5098,14.1275],[22.3815,14.5505],[22.6709,14.7223],[22.9323,15.1622],[23.105,15.7024],[23.9835,15.7801],[23.9822,17.2663],[23.9804,19.4968],[23.9804,19.9958],[24.9796,20.0024],[24.9805,21.9959],[27.2723,21.9955],[30.3285,21.9951],[32.6061,21.9959],[34.2467,21.9964],[36.8714,21.9968]]]},properties:{name:"Sudan",id:"SD"},id:"SD"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.5314,29.0964],[47.4334,28.9895],[47.6713,28.5331],[48.4424,28.5429],[48.9067,27.6289],[49.4052,27.1811],[49.9862,26.829],[50.214,26.3084],[50.0315,26.1108],[50.558,25.0868],[50.8043,24.7894],[51.2682,24.6074],[51.5683,24.286],[51.5927,24.0787],[52.555,22.933],[55.1043,22.6214],[55.186,22.704],[55.641,22.0017],[54.9774,19.9958],[53.667,19.559],[51.9775,18.9961],[49.0421,18.582],[48.172,18.1567],[47.5795,17.4483],[47.4418,17.1118],[46.9758,16.9533],[46.6819,17.2685],[46.3104,17.2312],[45.4066,17.32],[45.1483,17.4274],[44.1557,17.3986],[43.9169,17.3249],[43.418,17.5162],[43.1911,17.3595],[43.1649,16.6892],[42.7992,16.3718],[42.6989,16.7372],[42.3833,17.1225],[42.294,17.435],[41.7498,17.8855],[41.2296,18.6783],[41.1159,19.0822],[40.7591,19.7556],[40.0808,20.2661],[39.6138,20.5178],[39.0936,21.3101],[38.9879,21.8819],[39.0958,22.3928],[38.9413,22.882],[38.4641,23.712],[37.9195,24.1852],[37.5431,24.2918],[37.1808,24.82],[37.1489,25.291],[36.7627,25.7513],[36.2496,26.5947],[35.5815,27.4323],[35.1807,28.0347],[34.616,28.1483],[34.7798,28.5074],[34.9507,29.3535],[36.0156,29.1906],[36.4759,29.4951],[36.7551,29.8662],[37.4694,29.9949],[37.6336,30.3132],[37.9803,30.5],[36.9584,31.4917],[38.9622,31.9951],[39.1455,32.1247],[40.3693,31.9391],[42.0743,31.0802],[42.8578,30.4952],[44.7163,29.1937],[46.3565,29.0636],[46.5314,29.0964]]]},properties:{name:"Saudi Arabia",id:"SA"},id:"SA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-8.6834,27.6565],[-8.6834,27.2858],[-8.6821,25.9954],[-10.5624,25.9954],[-12.0164,25.9954],[-12.0235,23.4674],[-12.6203,23.2712],[-13.0316,23],[-13.0944,22.4958],[-13.0163,21.3341],[-15.0018,21.3314],[-16.9647,21.3292],[-17.0481,20.8063],[-16.9309,21.9001],[-16.5143,22.3333],[-16.2103,23.0981],[-15.5864,24.0729],[-15.0388,24.5488],[-14.856,24.8715],[-14.7949,25.4041],[-14.4138,26.2538],[-13.5758,26.7349],[-13.1774,27.652],[-8.6834,27.6565]]]},properties:{name:"Western Sahara",id:"EH"},id:"EH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[30.51,-1.0674],[30.8128,-1.5632],[30.8287,-2.3387],[30.5535,-2.3999],[29.9303,-2.3396],[29.8682,-2.7164],[29.3901,-2.8087],[29.0146,-2.7204],[28.8765,-2.4004],[29.1064,-2.2335],[29.1295,-1.8601],[29.577,-1.3878],[30.1016,-1.3688],[30.51,-1.0674]]]},properties:{name:"Rwanda",id:"RW"},id:"RW"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-178.8765,71.5769],[-177.5322,71.2631],[-177.8218,71.0675],[-179.5066,70.9235],[-180,70.993],[-180,71.1843],[-180,71.3998],[-180,71.5379],[-178.8765,71.5769]]],[[[178.8614,70.8265],[178.8911,71.2311],[180,71.5379],[180,70.993],[178.8614,70.8265]]],[[[60.4505,69.935],[59.5783,69.7385],[58.473,70.2668],[59.0052,70.4652],[60.4505,69.935]]],[[[169.201,69.5805],[167.789,69.8369],[168.358,70.0157],[169.375,69.8826],[169.201,69.5805]]],[[[50.265,69.1857],[49.6262,68.8596],[48.667,68.7331],[48.279,69.0403],[48.6315,69.436],[49.225,69.5113],[50.265,69.1857]]],[[[-179.7985,68.9404],[-178.8739,68.7542],[-177.4075,68.2451],[-175.3451,67.678],[-174.4476,67.1031],[-173.6797,67.1449],[-172.6405,66.9249],[-171.7956,66.9318],[-170.192,66.2014],[-170.6663,65.6214],[-172.2115,65.4252],[-172.2133,65.0482],[-172.9239,64.705],[-173.0092,64.2975],[-173.7298,64.3646],[-174.318,64.6376],[-175.3951,64.8025],[-175.8538,65.0109],[-176.0933,65.471],[-177.0563,65.6137],[-178.3103,65.4849],[-178.8794,65.9364],[-179.7283,65.8039],[-179.3521,65.5167],[-180,65.0672],[-180,65.312],[-180,65.5569],[-180,65.8014],[-180,66.0462],[-180,66.291],[-180,66.5359],[-180,66.7807],[-180,67.0252],[-180,67.2701],[-180,67.5149],[-180,67.7597],[-180,68.0045],[-180,68.2491],[-180,68.4939],[-180,68.7387],[-180,68.9835],[-179.7985,68.9404]]],[[[163.635,58.6033],[163.7611,59.015],[164.6156,58.8856],[163.635,58.6033]]],[[[21.2358,55.2641],[22.8311,54.8384],[22.7663,54.3568],[19.6045,54.4591],[19.9747,54.9212],[20.5202,54.9949],[20.8998,55.2867],[20.9579,55.279],[21.2358,55.2641]]],[[[142.761,54.3939],[142.9181,53.7942],[143.2235,53.2961],[143.3234,52.6136],[143.1556,52.0838],[143.4552,51.4715],[143.8161,50.2825],[144.272,49.3113],[143.105,49.1988],[142.5741,48.0719],[142.5568,47.7381],[143.0056,47.2228],[143.2821,46.5592],[142.5781,46.7008],[142.2088,46.0891],[141.8302,46.4508],[142.0388,47.1402],[141.9642,47.5872],[142.1817,48.0133],[141.8661,48.75],[142.1422,49.5692],[142.0712,50.5149],[142.2066,51.2225],[141.7223,51.7363],[141.8235,53.3394],[142.5262,53.4475],[142.761,54.3939]]],[[[148.5995,45.3176],[147.9137,44.9904],[147.7694,45.1906],[148.5995,45.3176]]],[[[96.5265,81.0755],[97.8316,80.7983],[97.1751,80.241],[94.565,80.1261],[93.8725,80.0102],[91.5239,80.3584],[93.2626,80.7912],[93.0651,80.9885],[95.8008,81.2804],[96.5265,81.0755]]],[[[54.719,81.1159],[57.694,80.7923],[55.7124,80.6372],[54.0665,80.8136],[54.719,81.1159]]],[[[62.168,80.8347],[61.0511,80.4186],[59.3044,80.5216],[59.5921,80.8165],[62.168,80.8347]]],[[[97.6744,80.1582],[100.0613,79.7772],[99.4394,78.8341],[97.5555,78.8266],[94.6524,79.1275],[93.0708,79.4953],[94.9871,80.0968],[97.6744,80.1582]]],[[[102.8848,79.254],[105.146,78.8188],[105.3125,78.4999],[103.7194,78.2582],[101.2043,78.192],[100.2841,78.6792],[101.5905,79.3504],[102.8848,79.254]]],[[[130.6871,42.3027],[130.5269,42.5353],[130.5771,42.8118],[131.0684,42.9024],[131.262,43.4333],[131.2553,44.0716],[131.0822,44.9101],[131.9775,45.2439],[132.9359,45.03],[133.1858,45.4947],[133.8614,46.2475],[134.1677,47.3022],[134.7523,47.7155],[134.5636,48.3219],[134.2933,48.3733],[133.4686,48.0972],[133.1441,48.1057],[132.5617,47.7683],[131.0027,47.6915],[130.712,48.1279],[130.8043,48.3414],[130.1962,48.8916],[129.5339,49.3235],[128.5267,49.5943],[127.9998,49.5685],[127.5027,49.8735],[127.5901,50.2091],[126.9247,51.1002],[126.313,52.3997],[125.649,53.0422],[124.8122,53.1339],[123.6079,53.5465],[122.338,53.485],[120.704,53.1718],[120.0945,52.7872],[120.6561,52.5666],[120.7497,52.0965],[120.067,51.6007],[119.1921,50.3797],[119.26,50.0664],[118.4517,49.8444],[117.8733,49.5135],[116.6832,49.8238],[116.1346,50.0109],[115.2743,49.9489],[114.743,50.2337],[114.2969,50.2743],[113.1641,49.7971],[113.0557,49.6162],[111.3366,49.3559],[110.8279,49.1661],[110.1997,49.1704],[109.2365,49.3348],[108.6137,49.3228],[108.034,49.594],[107.9479,49.9247],[107.2332,49.9893],[106.7112,50.3125],[106.218,50.3045],[105.3835,50.4736],[103.6328,50.1387],[102.6833,50.3871],[102.2883,50.585],[102.1116,51.3534],[101.3814,51.4526],[100.4687,51.7261],[98.8485,52.0701],[97.947,51.3483],[97.8254,50.9852],[98.2795,50.5333],[98.1032,50.0779],[97.2088,49.7308],[96.986,49.8828],[95.8518,50.0129],[95.5229,49.9112],[94.6147,50.0237],[94.2511,50.5564],[91.8044,50.6936],[89.644,49.903],[89.6542,49.7175],[88.8317,49.4485],[88.1925,49.4518],[87.8143,49.1624],[87.3229,49.0858],[86.6144,49.6098],[86.1807,49.4993],[85.21,49.6648],[84.9893,50.0615],[84.2578,50.2883],[83.9453,50.7746],[83.3571,50.9945],[82.4938,50.7275],[81.4657,50.7397],[80.8771,51.2815],[79.9862,50.7746],[79.4687,51.493],[78.4757,52.6385],[77.7042,53.3791],[76.5758,53.9424],[76.2664,54.312],[74.4518,53.6472],[73.2857,53.5984],[73.3993,53.8115],[72.9141,54.1073],[71.0933,54.2123],[71.1856,54.5994],[70.7382,55.3052],[70.1824,55.1625],[68.9773,55.3895],[68.2062,55.1609],[68.0739,54.9596],[66.2225,54.6673],[65.4767,54.6233],[65.1576,54.3643],[64.4611,54.3841],[63.0739,54.1053],[61.9287,53.9464],[61.3339,54.0492],[60.9797,53.6217],[61.1994,53.2872],[62.0148,53.1079],[61.974,52.9437],[61.0476,52.9725],[60.8021,52.7448],[60.9375,52.2805],[60.0657,51.9764],[60.4647,51.6513],[61.3632,51.442],[61.5851,51.2298],[61.3894,50.8609],[60.6379,50.6638],[59.9552,50.7992],[59.8122,50.5819],[58.8836,50.6945],[58.3594,51.0638],[57.8387,51.0917],[57.4423,50.8889],[57.0117,51.0651],[56.4915,51.0196],[55.7977,50.6021],[55.5424,50.6017],[54.727,50.9981],[54.4216,50.7804],[54.0416,51.1153],[53.3381,51.4824],[52.571,51.4817],[52.3309,51.6812],[51.6091,51.4839],[50.7941,51.7292],[50.2468,51.2895],[49.498,51.0835],[48.8086,50.6012],[48.8432,50.0131],[48.4344,49.8284],[47.706,50.378],[47.3264,50.2734],[46.8022,49.367],[47.0144,49.0984],[46.7028,48.8055],[46.661,48.4124],[47.0042,48.2846],[47.0934,47.9477],[48.1099,47.7452],[48.9595,46.7744],[48.6102,46.5663],[49.2321,46.3372],[48.1592,45.7371],[47.5244,45.6017],[46.7529,44.4205],[47.2301,44.1923],[47.5089,43.5096],[47.4632,43.0351],[48.5729,41.8446],[47.8609,41.2129],[47.2612,41.315],[46.7494,41.8126],[46.4298,41.8907],[45.6388,42.205],[45.7275,42.4749],[45.1602,42.6751],[44.5059,42.7488],[43.9573,42.5664],[43.7824,42.747],[42.4192,43.2242],[41.5807,43.2193],[40.6481,43.534],[39.9782,43.42],[38.7171,44.2882],[38.1814,44.4196],[37.8516,44.6988],[37.4112,44.7352],[36.9411,45.2896],[37.6474,45.3771],[37.9332,46.0016],[38.1836,46.0948],[37.9679,46.6182],[39.2933,47.1056],[38.2142,47.0914],[38.2875,47.5592],[38.9005,47.8553],[39.7359,47.8447],[39.9609,48.238],[39.6866,49.0079],[40.0701,49.2003],[39.7807,49.5721],[39.1748,49.8559],[38.2586,50.0524],[38.0469,49.9201],[37.4228,50.4115],[36.3059,50.2805],[35.4115,50.5398],[35.3121,51.0438],[34.2809,51.3117],[34.3976,51.7804],[33.7353,52.3448],[32.508,52.3084],[31.7636,52.1012],[31.5771,52.3122],[31.4178,53.196],[32.1422,53.0913],[32.7042,53.3363],[31.792,54.0558],[31.4036,54.1959],[31.1213,54.6484],[30.9069,55.5699],[30.2335,55.8452],[29.4824,55.6845],[29.375,55.9386],[28.7948,55.9426],[28.1481,56.143],[27.8063,56.867],[27.797,57.3169],[27.3517,57.5282],[27.753,57.8411],[27.4272,58.7331],[28.0127,59.4842],[28.014,59.7248],[28.9471,59.8289],[29.0692,60.1915],[28.6506,60.611],[27.7978,60.5362],[29.6902,61.5461],[31.2855,62.5679],[31.5341,62.8855],[31.1807,63.2082],[30.0555,63.689],[30.5038,64.0205],[30.1083,64.3661],[30.0728,64.7649],[29.604,64.9685],[29.9032,66.0911],[29.0869,66.9709],[29.9414,67.5475],[29.3439,68.062],[28.4708,68.4883],[28.9657,69.0219],[30.8696,69.7834],[31.9846,69.9536],[32.9417,69.7519],[32.3775,69.4791],[33.6843,69.3102],[35.858,69.1917],[40.3809,67.8318],[40.9663,67.7135],[41.1887,66.8262],[40.5216,66.4466],[39.2889,66.1321],[38.3975,66.0644],[35.5136,66.3958],[34.8247,66.6111],[32.4636,66.9163],[33.5667,66.321],[34.7865,65.8645],[34.4065,65.3957],[34.8034,64.986],[34.8695,64.5601],[35.6472,64.3783],[36.365,64.0028],[37.4423,63.8135],[38.0708,64.0259],[37.9537,64.3202],[37.1835,64.4085],[36.5283,64.8473],[36.883,65.1724],[38.0096,64.8788],[39.7581,64.577],[40.281,64.998],[39.8167,65.5979],[41.4759,66.1235],[42.2106,66.5197],[44.0971,66.2351],[44.4886,66.6719],[44.292,67.0996],[43.7824,67.2545],[44.2254,67.9956],[44.0483,68.5489],[45.8922,68.4797],[46.6903,67.8489],[45.5287,67.7577],[44.9396,67.4776],[45.9859,66.853],[46.6908,66.8255],[47.7091,67.045],[47.8746,67.5841],[48.8778,67.7315],[50.839,68.3498],[52.5502,68.5924],[53.8019,68.9959],[53.9679,68.2273],[54.5614,68.273],[56.0436,68.649],[57.1267,68.554],[58.9191,69.0039],[59.8975,68.422],[60.9335,68.9868],[60.1704,69.5909],[61.0161,69.8515],[63.3616,69.6753],[68.5041,68.3485],[69.1406,68.9506],[68.5427,68.9671],[68.006,69.48],[67.0645,69.6937],[66.9265,70.0142],[67.2847,70.7386],[66.6664,70.9006],[66.9176,71.2824],[68.2693,71.6828],[69.039,72.67],[69.6449,72.8975],[71.5003,72.9137],[72.8121,72.6915],[72.6243,72.0794],[71.9118,71.5478],[72.7317,70.823],[72.5297,70.1724],[72.5275,69.0805],[73.548,68.5744],[73.1521,67.8651],[72.5945,67.587],[71.5514,66.7605],[70.9393,66.5481],[69.877,66.8455],[69.1943,66.5787],[70.3396,66.3423],[71.9172,66.2467],[72.4174,66.5607],[73.7922,66.9953],[74.0745,67.4141],[74.7696,67.7663],[74.3914,68.4206],[74.5796,68.7511],[76.4591,68.9784],[77.2385,68.4697],[77.6509,68.9029],[76.001,69.2349],[74.8149,69.0907],[73.7757,69.1983],[73.56,69.7072],[74.3111,70.6536],[73.0864,71.4449],[73.6719,71.845],[75.7413,72.2962],[76.0325,71.9103],[78.4828,72.395],[79.422,72.3808],[80.7626,72.0892],[81.511,71.7463],[82.9861,71.7487],[82.1835,72.2376],[80.827,72.4882],[80.5096,73.0861],[80.5833,73.5684],[83.5449,73.6665],[86.5913,73.8943],[86.6513,74.6824],[87.6713,75.1296],[90.1851,75.591],[93.5498,75.854],[94.5756,76.1517],[96.879,75.9311],[100.3223,76.479],[100.9899,76.9904],[103.1312,77.6265],[104.0146,77.7304],[105.8944,77.4889],[104.9121,77.1748],[107.4299,76.9265],[108.0278,76.7185],[111.1151,76.723],[112.6194,76.3836],[113.8712,75.856],[113.6137,75.293],[111.8683,74.7401],[109.8402,74.3219],[108.1996,73.6941],[107.2709,73.621],[106.4782,73.1394],[107.7503,73.1731],[109.8553,73.4726],[110.2614,74.0174],[112.1471,73.7089],[114.0607,73.5846],[115.3378,73.7025],[118.4504,73.5897],[118.4304,73.2466],[119.7505,72.9792],[123.1605,72.955],[123.6222,73.1933],[123.3052,73.5329],[124.3883,73.7549],[125.617,73.5207],[127.7406,73.4817],[128.8885,73.1902],[129.4118,72.3156],[128.3589,72.0883],[129.7621,71.1195],[131.1572,70.7422],[131.562,70.9011],[132.5621,71.8952],[134.1029,71.3789],[135.8847,71.6306],[137.3153,71.3594],[138.1183,71.5663],[139.695,71.7003],[139.6014,72.496],[142.0614,72.7208],[145.4856,72.5422],[146.594,72.3025],[148.402,72.312],[149.5015,72.1644],[150.5997,71.5201],[151.5825,71.2871],[152.5089,70.8345],[153.7944,70.88],[155.8953,71.0955],[158.0371,71.0394],[159.3506,70.7908],[160.0062,70.3096],[159.8326,69.7849],[161.5367,69.3796],[162.3757,69.6491],[164.1597,69.7192],[164.5135,69.6091],[166.8204,69.4995],[167.6283,69.7403],[168.303,69.2716],[169.3106,69.0796],[169.6098,68.7862],[170.5375,68.8254],[170.9952,69.0454],[170.5824,69.5834],[170.4869,70.1076],[172.5595,69.9682],[173.2772,69.8238],[176.1075,69.8604],[176.9243,69.646],[178.8485,69.3872],[180,68.9835],[180,65.0672],[178.5196,64.6029],[177.4671,64.7368],[177.433,64.4445],[178.6501,63.9653],[178.7065,63.5216],[179.3324,63.1902],[179.5703,62.6875],[179.1206,62.3204],[177.3513,62.5874],[175.2681,62.1025],[174.5144,61.8237],[173.6235,61.7161],[172.8564,61.4693],[172.3926,61.0618],[170.6081,60.435],[169.9827,60.067],[169.2267,60.5959],[168.1374,60.5739],[166.9642,60.3069],[166.3521,60.4847],[165.0843,60.0985],[163.7802,60.041],[163.41,59.8349],[163.2728,59.3026],[162.1418,58.4475],[161.9602,58.0768],[162.4671,57.7661],[163.2138,57.6869],[162.7792,57.3577],[162.8027,56.8115],[163.2564,56.6881],[163.3354,56.2325],[162.5284,56.2606],[162.085,56.0897],[161.7294,55.358],[162.1058,54.7521],[161.7258,54.533],[160.7728,54.5414],[160.0746,54.1892],[159.8437,53.7837],[159.8975,53.3807],[158.6088,52.8735],[158.4637,52.3049],[158.1037,51.8095],[156.7476,50.9692],[156.5003,51.475],[156.3645,52.5093],[156.0986,53.0065],[155.6201,54.8646],[155.5549,55.3484],[155.9828,56.6952],[156.7285,57.1522],[157.4503,57.7994],[158.2102,58.0253],[159.0367,58.4239],[159.8473,59.1271],[161.7534,60.1522],[162.0037,60.4201],[162.9732,60.7828],[163.71,60.9168],[164.0052,61.3439],[164.2556,62.6966],[163.3318,62.5508],[163.0091,61.7915],[162.3926,61.6621],[160.7666,60.7533],[159.8832,61.2917],[160.3174,61.7933],[159.5525,61.7194],[159.0767,61.9223],[158.07,61.7536],[157.4694,61.7989],[156.6801,61.4806],[156.63,61.2724],[155.8532,60.7772],[154.9707,60.3766],[154.2929,59.8333],[154.5827,59.5401],[155.1669,59.3601],[154.011,59.0756],[153.3611,59.2147],[152.8822,58.9391],[151.99,59.1601],[151.4857,59.5241],[150.4572,59.5907],[149.6427,59.7705],[149.205,59.4882],[147.8746,59.3881],[147.5146,59.2687],[146.4444,59.4305],[145.9317,59.1983],[145.5544,59.4136],[143.192,59.3701],[142.0255,58.9997],[141.7547,58.7453],[140.6849,58.2122],[140.447,57.8136],[140.0022,57.6875],[138.6621,56.9655],[137.6913,56.1395],[136.175,55.3522],[135.2623,54.9434],[135.8514,54.5838],[136.7973,54.6209],[136.6828,53.9313],[137.1555,53.8217],[137.3282,53.5389],[138.2923,53.5924],[138.6608,53.7449],[138.6958,54.3199],[139.7075,54.2771],[140.3471,53.8126],[141.4022,53.184],[141.1696,52.3684],[141.4853,52.1786],[140.6876,51.2322],[140.4763,50.546],[140.5171,49.596],[140.1704,48.5238],[139.3728,47.8873],[139.0012,47.3835],[138.5866,47.0572],[138.3367,46.5432],[137.6855,45.8183],[136.8035,45.1711],[136.1421,44.4893],[135.8745,44.3734],[135.1309,43.5256],[133.7092,42.83],[133.1601,42.6969],[132.4813,42.9099],[132.3344,43.2388],[131.7946,43.2553],[131.1586,42.6258],[130.6871,42.3027]]],[[[67.7654,76.2376],[66.2824,75.9837],[61.3561,75.3149],[60.2224,74.7965],[58.5347,74.4988],[58.4415,74.1288],[56.9638,73.3665],[55.0067,73.4539],[53.7629,73.7662],[54.6427,73.9595],[57.0876,75.3837],[58.8814,75.8547],[62.9714,76.2367],[65.8629,76.6133],[67.5351,77.0077],[68.4859,76.9338],[68.9,76.5729],[67.7654,76.2376]]],[[[140.0488,75.829],[140.9442,75.7004],[142.4605,75.9035],[143.6856,75.8636],[145.2552,75.5857],[144.0199,75.0446],[141.9873,74.9913],[139.0993,74.6566],[138.0921,74.7974],[137.0064,75.235],[137.5013,75.9097],[138.8139,76.1996],[140.0488,75.829]]],[[[146.7951,75.3709],[150.1039,75.2193],[150.6463,74.9445],[149.5969,74.7725],[148.0926,74.8258],[146.1483,75.1984],[146.7951,75.3709]]],[[[113.3873,74.4005],[112.7823,74.0951],[111.6428,74.2729],[112.0845,74.549],[113.3873,74.4005]]],[[[142.1848,73.8958],[143.3438,73.5687],[143.1934,73.2206],[140.6627,73.4519],[141.0849,73.8658],[142.1848,73.8958]]],[[[55.32,73.3083],[56.4293,73.2011],[55.356,72.4651],[55.2978,71.9354],[57.1458,70.589],[54.6009,70.68],[53.7225,70.8145],[53.3638,71.5416],[51.8124,71.4912],[51.5825,72.0712],[52.6221,72.3009],[53.7531,73.2932],[55.32,73.3083]]]]},properties:{name:"Russia",id:"RU"},id:"RU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.2124,45.4503],[28.7606,45.2341],[29.2236,45.4028],[29.7061,45.2599],[29.5574,44.8435],[29.0483,44.7574],[28.6452,44.2958],[28.5853,43.7422],[27.0867,44.1675],[26.2158,44.0072],[25.4972,43.6708],[23.2244,43.8741],[22.7051,44.2376],[21.3845,44.8701],[21.4919,45.1223],[20.7741,45.4845],[20.775,45.7499],[20.2419,46.1086],[21.1519,46.3044],[22.2905,47.7279],[22.8764,47.9472],[23.2027,48.0844],[24.8935,47.7177],[26.1625,47.9925],[26.6189,48.2597],[26.9806,48.155],[27.3366,47.6396],[28.0717,46.9786],[28.2444,46.4513],[28.0997,45.9728],[28.2124,45.4503]]]},properties:{name:"Romania",id:"RO"},id:"RO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[55.7972,-21.3395],[55.3627,-21.2738],[55.3112,-20.904],[55.6618,-20.9062],[55.7972,-21.3395]]]},properties:{name:"Reunion",id:"RE"},id:"RE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[51.2682,24.6074],[50.8043,24.7894],[50.763,25.4445],[51.0032,25.9816],[51.2624,26.1534],[51.543,25.9022],[51.4853,25.5249],[51.602,25.148],[51.2682,24.6074]]]},properties:{name:"Qatar",id:"QA"},id:"QA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-149.3215,-17.6902],[-149.579,-17.7351],[-149.6114,-17.5318],[-149.3792,-17.5224],[-149.3215,-17.6902]]]},properties:{name:"French Polynesia",id:"PF"},id:"PF"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-58.1598,-20.1645],[-57.8303,-20.9981],[-57.9856,-22.0461],[-56.9374,-22.2712],[-56.5239,-22.1025],[-55.8492,-22.3076],[-55.6541,-22.8105],[-55.3662,-23.9913],[-54.6254,-23.8124],[-54.2418,-24.0472],[-54.4731,-25.2204],[-54.6158,-25.576],[-54.7552,-26.533],[-55.1358,-26.9312],[-55.4266,-27.0093],[-55.7147,-27.415],[-56.0673,-27.3076],[-56.3705,-27.5375],[-57.1118,-27.4701],[-58.6186,-27.1323],[-58.1914,-26.6302],[-58.2031,-26.3816],[-57.8906,-26.0065],[-57.5872,-25.4051],[-57.8216,-25.1365],[-58.3654,-24.9594],[-59.373,-24.4538],[-59.8924,-24.0934],[-61.0329,-23.7556],[-61.7984,-23.1821],[-62.3726,-22.439],[-62.6509,-22.2339],[-62.2767,-21.066],[-62.2763,-20.5627],[-61.917,-20.0553],[-61.7569,-19.6451],[-60.0073,-19.2976],[-59.0905,-19.286],[-58.1803,-19.8178],[-58.1598,-20.1645]]]},properties:{name:"Paraguay",id:"PY"},id:"PY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-7.4061,37.1793],[-7.8343,37.0057],[-8.5977,37.1211],[-8.8141,37.431],[-8.9147,38.5123],[-9.4742,38.7307],[-9.3748,39.3384],[-9.1482,39.5426],[-8.8867,40.1795],[-8.6557,41.0296],[-8.7771,41.9409],[-8.2131,42.1336],[-7.9208,41.8836],[-7.4037,41.8335],[-6.6182,41.9422],[-6.2125,41.5321],[-6.9285,41.0092],[-6.8102,40.3429],[-7.0146,40.2084],[-7.0368,39.7139],[-7.4452,39.5363],[-7.0461,38.9069],[-7.3431,38.4572],[-7.1855,38.0062],[-7.5036,37.5854],[-7.4061,37.1793]]]},properties:{name:"Portugal",id:"PT"},id:"PT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[130.5269,42.5353],[130.6871,42.3027],[130.4576,42.3018],[129.7563,41.7123],[129.7088,40.8574],[128.3043,40.0362],[127.5684,39.7818],[127.3943,39.2079],[127.7863,39.084],[128.3745,38.6233],[128.0389,38.3085],[127.1697,38.3045],[126.634,37.7816],[125.9419,37.8735],[125.4492,37.7301],[125.1931,38.0378],[124.691,38.1292],[125.0675,38.5567],[125.4097,39.2882],[125.3609,39.5266],[124.5574,39.7907],[124.3621,40.0042],[124.8895,40.4596],[125.989,40.9049],[126.9034,41.7811],[127.1795,41.5312],[128.1112,41.3891],[128.291,41.5627],[128.0451,41.9875],[128.9236,42.0381],[129.3137,42.4137],[129.7199,42.4749],[129.8983,42.9983],[130.2406,42.8917],[130.5269,42.5353]]]},properties:{name:"North Korea",id:"KP"},id:"KP"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-66.1295,18.4448],[-65.6288,18.3813],[-65.9708,17.9743],[-67.1968,17.9943],[-67.1587,18.4994],[-66.1295,18.4448]]]},properties:{name:"Puerto Rico",id:"PR"},id:"PR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.6045,54.4591],[22.7663,54.3568],[23.37,54.2005],[23.4845,53.9398],[23.8872,53.0276],[23.8445,52.6642],[23.1969,52.257],[23.6523,52.0403],[23.6053,51.5179],[24.1056,50.8449],[23.7118,50.3773],[22.6496,49.539],[22.5386,49.0727],[21.6397,49.4121],[20.6161,49.3916],[19.802,49.1923],[19.4416,49.5976],[18.8321,49.5108],[18.5622,49.8792],[17.8746,49.9722],[17.152,50.3784],[16.6792,50.0974],[16.0072,50.6117],[14.8096,50.8589],[15.0164,51.2527],[14.6018,51.8324],[14.7527,52.0818],[14.6196,52.5284],[14.1286,52.8782],[14.4145,53.2835],[14.2587,53.7296],[14.2139,53.8707],[14.2112,53.9504],[16.1865,54.2904],[16.5598,54.5539],[17.2621,54.7294],[18.3234,54.8382],[18.6697,54.4309],[19.6045,54.4591]]]},properties:{name:"Poland",id:"PL"},id:"PL"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[152.9656,-4.7565],[152.6807,-4.4986],[152.5985,-3.9948],[153.1241,-4.2523],[152.9656,-4.7565]]],[[[155.9575,-6.687],[155.7191,-6.8628],[155.344,-6.7217],[155.202,-6.3075],[154.782,-5.9706],[154.7412,-5.5453],[154.9969,-5.54],[155.467,-6.145],[155.8225,-6.3803],[155.9575,-6.687]]],[[[151.9158,-4.2967],[152.4054,-4.3406],[152.4001,-4.7312],[152.0135,-5.0038],[152.1431,-5.3571],[151.8652,-5.5649],[151.515,-5.5524],[151.2291,-5.92],[150.4283,-6.2764],[149.6524,-6.2906],[149.3825,-6.078],[149.1264,-6.1277],[148.4011,-5.7651],[148.3447,-5.5449],[148.999,-5.4845],[149.2454,-5.5729],[150.2987,-5.5356],[150.953,-5.4237],[151.3268,-4.9603],[151.6712,-4.8835],[151.5518,-4.3455],[151.9158,-4.2967]]],[[[140.9761,-9.1187],[140.9748,-6.3461],[140.9739,-4.0232],[140.9734,-2.6099],[141.1856,-2.6276],[142.2115,-3.0835],[142.9053,-3.3206],[143.509,-3.4311],[144.0159,-3.7835],[144.4775,-3.8253],[145.0879,-4.349],[145.3347,-4.3854],[145.767,-4.8231],[145.8527,-5.4712],[146.4036,-5.6164],[147.0344,-5.9191],[147.3766,-5.9506],[147.8018,-6.315],[147.8453,-6.6626],[147.1191,-6.7217],[146.9607,-6.929],[147.1902,-7.3782],[147.7242,-7.8762],[148.1268,-8.1035],[148.2471,-8.5545],[148.5831,-9.0516],[149.2476,-9.0712],[149.2032,-9.4068],[149.7612,-9.8058],[149.8744,-10.0131],[150.6672,-10.2573],[150.4825,-10.6368],[150.0169,-10.5773],[149.7541,-10.3531],[147.7685,-10.0699],[146.6965,-9.0255],[146.0334,-8.0764],[144.9738,-7.8021],[144.5099,-7.5673],[143.6137,-8.2003],[143.0948,-8.3112],[143.366,-8.9611],[142.6474,-9.3277],[142.2297,-9.1697],[141.1332,-9.2212],[140.9761,-9.1187]]]]},properties:{name:"Papua New Guinea",id:"PG"},id:"PG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[134.5956,7.3821],[134.5064,7.4372],[134.5561,7.5939],[134.6595,7.6631],[134.5956,7.3821]]]},properties:{name:"Palau",id:"PW"},id:"PW"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[126.0059,9.3211],[126.1932,9.2767],[126.3197,8.8448],[126.4355,7.8327],[126.5816,7.2476],[126.08,6.7332],[125.8243,7.3333],[125.4008,6.7957],[125.5886,6.4659],[125.6681,5.9785],[125.4559,5.6643],[124.6364,5.9981],[124.078,6.4042],[123.9853,6.9937],[124.2068,7.3963],[123.9684,7.6644],[123.493,7.8078],[123.3909,7.4074],[122.4978,7.6729],[122.176,7.0044],[122.0472,7.3635],[122.132,7.8105],[122.3371,8.0284],[122.911,8.1563],[123.0176,8.3982],[123.4344,8.7032],[124.2258,8.2712],[124.4513,8.6064],[124.731,8.5629],[124.869,8.9722],[125.5336,9.1408],[125.5211,9.7592],[126.0059,9.3211]]],[[[124.5938,9.7871],[124.3599,9.63],[123.9355,9.6238],[123.817,9.8173],[124.1726,10.1351],[124.577,10.0268],[124.5938,9.7871]]],[[[123.1308,9.064],[122.5626,9.4826],[122.4716,9.9616],[122.8556,10.0868],[122.8169,10.5036],[122.9834,10.8867],[123.2564,10.9941],[123.5676,10.7806],[123.1618,9.8644],[123.3083,9.357],[123.1308,9.064]]],[[[123.3705,9.4498],[123.386,9.9669],[123.7114,10.4738],[123.952,10.3167],[123.6435,10.0202],[123.3705,9.4498]]],[[[117.3109,8.4395],[117.35,8.7134],[117.8848,9.2407],[118.1148,9.3468],[119.0239,10.3535],[119.2241,10.4774],[119.2614,10.8449],[119.5268,10.9532],[119.6844,10.5515],[119.1917,10.061],[118.782,9.9163],[118.4348,9.2562],[117.9896,8.8772],[117.3109,8.4395]]],[[[124.5747,11.343],[124.9299,11.3727],[125.0133,10.7854],[125.2535,10.2639],[125.0266,10.0331],[124.7807,10.168],[124.7869,10.7815],[124.4456,10.9235],[124.5747,11.343]]],[[[122.4964,11.6151],[123.1583,11.5356],[123.0167,11.1166],[122.7699,10.8236],[122.1977,10.623],[121.9642,10.8716],[122.1036,11.643],[122.4964,11.6151]]],[[[125.2397,12.5277],[125.5358,12.1913],[125.4568,11.9524],[125.6281,11.1321],[125.2335,11.145],[124.8841,11.7753],[124.3848,12.2441],[124.2946,12.5695],[125.2397,12.5277]]],[[[120.7045,13.4794],[121.2029,13.4324],[121.5225,13.131],[121.5407,12.6383],[121.2367,12.2188],[120.922,12.5117],[120.7635,12.9698],[120.5082,13.2601],[120.7045,13.4794]]],[[[121.1017,18.6153],[121.8457,18.2952],[122.2998,18.4026],[122.1511,17.7563],[122.2368,17.435],[122.5191,17.1247],[122.1351,16.185],[121.5953,15.9333],[121.3925,15.3242],[121.6957,14.7374],[121.8004,14.1138],[122.4907,14.3224],[122.856,14.2509],[123.2315,13.7475],[123.4322,13.9664],[123.726,13.8843],[123.6079,13.5283],[124.1428,13.036],[124.0598,12.5672],[123.311,13.044],[123.1632,13.4417],[122.5954,13.9078],[122.4068,13.4927],[121.7778,13.9375],[121.2034,13.6401],[120.6166,14.1879],[120.922,14.4933],[120.8882,14.7157],[120.0821,14.8511],[119.8309,16.3266],[120.1598,16.0478],[120.3893,16.2218],[120.3054,16.5294],[120.4088,16.9555],[120.3582,17.6383],[120.5997,18.5078],[121.1017,18.6153]]]]},properties:{name:"Philippines",id:"PH"},id:"PH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-69.9658,-4.2359],[-70.7995,-4.1733],[-70.9737,-4.3504],[-71.8448,-4.5044],[-72.6987,-5.0673],[-72.8871,-5.1228],[-72.9799,-5.635],[-73.2355,-6.0984],[-73.1374,-6.466],[-73.758,-6.9059],[-73.7496,-7.3356],[-74.0021,-7.5562],[-73.5491,-8.3459],[-72.9741,-8.993],[-73.2093,-9.4116],[-72.379,-9.5102],[-72.1815,-10.0038],[-71.238,-9.9661],[-70.637,-9.4782],[-70.6423,-11.0101],[-70.2202,-11.0478],[-69.5785,-10.9519],[-68.6852,-12.502],[-68.9786,-12.8802],[-69.0741,-13.6828],[-68.8803,-14.199],[-69.235,-14.5972],[-69.3748,-14.963],[-69.1726,-15.2368],[-69.4185,-15.6035],[-69.2176,-16.149],[-68.9134,-16.2618],[-69.0208,-16.6422],[-69.6249,-17.2002],[-69.5108,-17.506],[-69.8522,-17.704],[-69.9263,-18.206],[-70.4184,-18.3454],[-71.337,-17.6827],[-71.5323,-17.2943],[-72.1114,-17.0026],[-72.4676,-16.7079],[-73.825,-16.153],[-74.1471,-15.9124],[-75.1043,-15.4117],[-75.5336,-14.899],[-75.934,-14.6336],[-76.2891,-14.1333],[-76.1839,-13.5154],[-76.8322,-12.3489],[-77.1527,-12.0603],[-77.2204,-11.6635],[-77.6332,-11.288],[-77.7362,-10.8365],[-78.1856,-10.089],[-78.7622,-8.6171],[-79.3772,-7.8354],[-79.7621,-7.0666],[-80.1103,-6.6497],[-80.8117,-6.2822],[-81.1805,-5.9426],[-80.8827,-5.7589],[-81.1084,-5.0278],[-81.3366,-4.6695],[-81.2833,-4.3224],[-80.7986,-3.7312],[-80.3247,-3.388],[-80.1793,-3.8776],[-80.51,-4.0694],[-80.4885,-4.3939],[-80.1396,-4.2962],[-79.6385,-4.4547],[-79.3308,-4.9279],[-79.0763,-4.9905],[-78.4198,-3.7769],[-78.3472,-3.4311],[-77.8607,-2.9819],[-76.679,-2.5628],[-76.0898,-2.1331],[-75.5706,-1.5312],[-75.2632,-.5555],[-75.2845,-.1063],[-74.8018,-.2],[-74.4178,-.5809],[-74.2465,-.9706],[-73.6643,-1.2489],[-73.4963,-1.6932],[-73.1969,-1.8304],[-73.1545,-2.2783],[-72.3957,-2.4288],[-71.7525,-2.1527],[-71.3969,-2.3342],[-70.9146,-2.2184],[-70.0741,-2.7502],[-70.7351,-3.7818],[-70.3396,-3.8142],[-69.9658,-4.2359]]]},properties:{name:"Peru",id:"PE"},id:"PE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-128.2901,-24.3974],[-128.3205,-24.3997],[-128.3503,-24.3402],[-128.3037,-24.3335],[-128.2901,-24.3974]]]},properties:{name:"Pitcairn Islands",id:"PN"},id:"PN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-77.3742,8.6583],[-77.2124,8.0338],[-77.3509,7.7057],[-77.7439,7.537],[-77.9011,7.2294],[-78.1701,7.5437],[-78.4215,8.0608],[-78.1139,8.3796],[-79.0865,8.997],[-79.4416,9.0059],[-79.7505,8.5953],[-80.3687,8.289],[-80.4581,8.0768],[-80.0752,7.6671],[-80.4388,7.2752],[-80.8456,7.2201],[-81.0352,7.7111],[-81.5041,7.7213],[-81.7276,8.1376],[-82.6796,8.3218],[-82.8793,8.0706],[-82.9976,8.3676],[-82.917,8.7404],[-82.9399,9.4493],[-82.5635,9.5767],[-82.2441,9.0316],[-81.3548,8.7804],[-80.8387,8.8874],[-80.1272,9.2101],[-79.5774,9.598],[-78.5043,9.4063],[-78.0828,9.2363],[-77.3742,8.6583]]]},properties:{name:"Panama",id:"PA"},id:"PA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[77.7992,35.496],[77.0486,35.1099],[76.5945,34.7357],[75.7093,34.5031],[74.3004,34.7654],[73.9613,34.6535],[74.1499,33.507],[73.9941,33.2424],[74.6578,32.5189],[75.3334,32.2792],[74.5099,31.7127],[74.6329,31.0345],[73.8991,30.4352],[73.809,30.0934],[73.3816,29.9345],[72.903,29.029],[72.342,28.752],[71.8701,27.9623],[70.7373,27.7293],[70.4035,28.0249],[70.1447,27.8491],[69.5681,27.1744],[69.47,26.8046],[70.1567,26.4713],[70.0777,26.0718],[70.2646,25.7064],[70.6521,25.4228],[71.048,24.6877],[71.044,24.4001],[70.5469,24.4183],[69.7163,24.1728],[69.5592,24.2731],[68.7282,24.2656],[68.7242,23.9646],[68.1649,23.8572],[67.6687,23.811],[67.3096,24.175],[67.1715,24.7561],[66.7032,24.8608],[66.6988,25.2261],[66.4284,25.5755],[65.6796,25.3553],[64.7767,25.3074],[64.6591,25.184],[63.7207,25.3859],[63.4912,25.2106],[62.5723,25.2546],[62.3153,25.1347],[61.5878,25.2022],[61.6686,25.769],[61.8697,26.2422],[62.4392,26.5609],[63.1681,26.6657],[63.1667,27.2525],[62.7632,27.2503],[62.7397,28.0023],[62.3531,28.4146],[61.8901,28.5465],[61.6229,28.7915],[61.3184,29.3725],[60.8434,29.8586],[62.4765,29.4085],[63.5676,29.4982],[64.0989,29.3921],[64.521,29.5643],[65.0954,29.5594],[66.1772,29.8355],[66.3974,30.9124],[66.9243,31.3057],[67.2874,31.2178],[67.5781,31.5063],[68.2138,31.8073],[68.869,31.6342],[69.2791,31.9369],[69.2414,32.4336],[69.5015,33.02],[69.9201,33.1123],[70.2841,33.3689],[69.8682,33.8976],[71.0516,34.0498],[70.9655,34.5306],[71.6206,35.1831],[71.4276,35.8338],[71.1852,36.042],[71.6206,36.4366],[72.623,36.8295],[73.7691,36.8885],[74.0017,36.8233],[74.5415,37.0221],[75.3467,36.9134],[75.8403,36.6497],[75.945,36.0176],[76.2518,35.8108],[77.4467,35.4756],[77.7992,35.496]]]},properties:{name:"Pakistan",id:"PK"},id:"PK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[56.388,24.9793],[56.6406,24.4702],[57.2199,23.9229],[58.5782,23.6437],[59.7998,22.2201],[59.3714,21.4988],[58.8956,21.1126],[58.4743,20.4068],[57.8618,20.2439],[57.7153,19.6069],[57.8116,19.017],[57.1764,18.9025],[56.6553,18.5873],[56.551,18.166],[56.2704,17.9508],[55.479,17.8433],[55.0644,17.039],[54.0683,17.0057],[53.6097,16.7598],[53.0855,16.6484],[52.729,17.3005],[51.9775,18.9961],[53.667,19.559],[54.9774,19.9958],[55.641,22.0017],[55.186,22.704],[55.1997,23.0346],[55.7608,24.2425],[55.7959,24.8679],[56.064,24.7388],[56.388,24.9793]]]},properties:{name:"Oman",id:"OM"},id:"OM"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[173.1152,-41.2791],[173.738,-40.9888],[174.3026,-41.0194],[174.0922,-41.505],[174.2831,-41.7407],[173.5449,-42.518],[173.2213,-42.9765],[172.7184,-43.2589],[172.9208,-43.8914],[172.3855,-43.8297],[171.4426,-44.136],[171.1133,-45.0393],[170.7005,-45.6843],[169.6866,-46.5516],[168.382,-46.6054],[168.1889,-46.3621],[167.682,-46.193],[166.7316,-46.1979],[166.7338,-45.5436],[167.1946,-44.9634],[167.7872,-44.595],[168.3665,-44.0818],[168.8064,-43.9922],[169.6613,-43.5913],[170.3027,-43.1075],[170.7417,-42.9273],[171.2571,-42.4652],[171.4861,-41.7949],[172.0108,-41.4447],[172.1396,-40.9471],[172.6407,-40.5183],[172.9887,-40.8481],[173.1152,-41.2791]]],[[[173.2693,-34.935],[173.8441,-35.0264],[174.3204,-35.2466],[174.5437,-35.5822],[174.391,-35.7739],[174.802,-36.3093],[174.7226,-36.8411],[175.2996,-36.9933],[175.4608,-36.4757],[175.8762,-36.9578],[176.1084,-37.6449],[177.3358,-37.9907],[178.0091,-37.5548],[178.536,-37.692],[178.2679,-38.5509],[177.9763,-38.7223],[177.9656,-39.1426],[177.4077,-39.0809],[176.954,-39.3677],[177.1098,-39.6731],[176.8421,-40.1578],[175.9828,-41.2134],[175.3098,-41.6107],[174.6356,-41.2893],[175.1625,-40.6217],[175.2543,-40.2892],[175.0093,-39.9523],[173.9342,-39.5093],[173.8441,-39.1395],[174.5974,-38.7849],[174.9281,-37.8043],[174.7292,-37.4487],[174.782,-36.9436],[174.4758,-36.9418],[174.4469,-36.4509],[173.9453,-36.1761],[173.1166,-35.2053],[173.2693,-34.935]]]]},properties:{name:"New Zealand",id:"NZ"},id:"NZ"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[20.898,80.2499],[22.4507,80.4022],[26.8608,80.16],[27.1986,79.9065],[25.641,79.403],[23.9475,79.1943],[20.8611,79.3978],[18.7251,79.7607],[18.3438,80.0595],[20.898,80.2499]]],[[[16.7867,79.9068],[18.5813,79.5716],[19.0896,79.157],[20.4581,79.1293],[21.3889,78.7404],[19.7687,78.6228],[18.4393,78.0251],[16.7005,76.5794],[14.3657,77.2345],[14.921,77.6889],[13.6807,78.028],[11.7738,78.7165],[10.866,79.7965],[12.7535,79.7758],[13.3838,79.4809],[15.8163,79.6819],[16.7867,79.9068]]],[[[21.6082,78.5957],[23.1166,77.9916],[24.2383,77.8986],[23.8414,77.4978],[22.057,77.5011],[21.6082,77.9161],[20.2282,78.4779],[21.6082,78.5957]]]]},properties:{name:"Svalbard and Jan Mayen",id:"SJ"},id:"SJ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[166.9584,-.5165],[166.9163,-.5467],[166.9136,-.4992],[166.9584,-.5165]]]},properties:{name:"Nauru",id:"NR"},id:"NR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[88.1099,27.8704],[87.9843,27.134],[88.1614,26.7247],[88.0549,26.43],[87.2874,26.3603],[87.0166,26.5556],[86.7014,26.4349],[86.3663,26.5743],[85.293,26.7412],[84.6853,27.0412],[84.6103,27.2987],[84.0909,27.4913],[83.2897,27.371],[82.7335,27.5189],[81.9877,27.9139],[81.8528,27.8669],[80.5868,28.6494],[80.0706,28.8301],[80.4017,29.7303],[81.0103,30.1645],[81.4169,30.3376],[82.0432,30.3269],[82.1591,30.1152],[82.8542,29.6833],[83.1556,29.6127],[83.5835,29.1834],[84.1016,29.2198],[84.2285,28.9118],[84.7141,28.5957],[85.1589,28.5922],[85.1225,28.3161],[85.6783,28.2775],[86.4089,27.9286],[86.5545,28.0853],[87.1413,27.8385],[88.1099,27.8704]]]},properties:{name:"Nepal",id:"NP"},id:"NP"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[30.8696,69.7834],[28.9657,69.0219],[29.1415,69.6715],[27.8897,70.0617],[26.5257,69.915],[26.0116,69.6526],[25.7484,68.9901],[24.9414,68.5933],[23.8539,68.8059],[22.4108,68.7198],[21.622,69.2707],[20.6223,69.037],[19.9698,68.3565],[18.3785,68.5624],[17.9168,67.965],[17.3247,68.1039],[16.1275,67.4259],[16.4036,67.055],[15.423,66.4899],[14.5432,66.1292],[14.4798,65.3014],[13.6501,64.5816],[14.0776,64.464],[13.9604,64.0141],[12.6625,63.9404],[11.9997,63.2917],[12.2181,63.0007],[12.3034,62.2856],[12.1555,61.7207],[12.8809,61.3523],[12.294,61.0027],[12.5888,60.4508],[12.4862,60.1067],[11.6806,59.5923],[11.7982,59.29],[11.3885,59.0365],[10.8345,59.1839],[9.6182,58.946],[8.1663,58.1452],[7.0051,58.0242],[5.7067,58.5236],[5.8452,59.3535],[5.1314,59.2265],[5.2441,60.5695],[5.0493,60.7076],[4.9276,61.7107],[5.5336,62.3109],[6.353,62.6112],[7.2838,62.6023],[7.0086,62.9576],[8.1006,63.091],[8.398,63.5351],[9.6968,63.6246],[9.7079,63.865],[11.3499,64.9059],[12.1595,65.1789],[12.2727,65.5682],[12.9763,66.0192],[13.1046,66.5394],[14.755,67.4991],[14.7989,67.8094],[16.0644,68.2],[16.6517,68.6257],[18.1015,69.1564],[18.2932,69.4751],[20.0688,69.8835],[21.163,69.8895],[21.4005,70.1744],[22.6847,70.3749],[23.0464,70.1019],[24.4198,70.702],[24.6582,71.001],[25.7684,70.8531],[27.5972,71.0913],[29.1024,70.8607],[30.9442,70.2745],[29.6014,69.9767],[29.7923,69.7279],[30.8696,69.7834]]]},properties:{name:"Norway",id:"NO"},id:"NO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-169.8034,-19.0832],[-169.9039,-19.1378],[-169.9483,-19.0729],[-169.834,-18.966],[-169.8034,-19.0832]]]},properties:{name:"Niue",id:"NU"},id:"NU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.1576,14.9931],[-83.2992,14.749],[-83.1878,14.3401],[-83.4124,13.9966],[-83.5673,13.3205],[-83.511,12.4119],[-83.7693,11.9316],[-83.6517,11.6422],[-83.8679,11.2999],[-83.6419,10.9173],[-84.1684,10.7806],[-84.3484,10.9799],[-84.9092,10.9453],[-85.6215,11.1845],[-85.7444,11.062],[-86.4688,11.7385],[-86.7556,12.1566],[-87.6676,12.9037],[-87.3373,12.9792],[-87.0592,12.9916],[-86.7108,13.3134],[-86.7336,13.7635],[-86.3317,13.7702],[-86.1512,13.9948],[-85.7868,13.8443],[-85.1796,14.3432],[-84.9851,14.7525],[-84.646,14.6611],[-83.8674,14.7947],[-83.1576,14.9931]]]},properties:{name:"Nicaragua",id:"NI"},id:"NI"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.6062,13.7045],[14.0638,13.0786],[14.1974,12.3839],[14.6271,12.1087],[14.5597,11.4921],[13.892,11.1401],[13.5352,10.6052],[13.2697,10.0362],[13.1756,9.5394],[12.9297,9.4263],[12.8067,8.8865],[12.4037,8.5957],[12.0162,7.5899],[11.7676,7.272],[11.5518,6.6972],[11.1532,6.438],[11.0325,6.6981],[10.6064,7.063],[10.1438,6.9964],[9.0603,6.0092],[8.801,5.1973],[8.556,4.7552],[8.2932,4.5576],[7.1546,4.5146],[6.7569,4.3437],[6.0764,4.2904],[5.5877,4.6473],[5.2326,5.4836],[4.8611,6.0265],[4.4314,6.3487],[4.126,6.4113],[2.7064,6.3692],[2.7748,6.7119],[2.686,7.874],[2.7748,9.0485],[3.0451,9.084],[3.3252,9.7783],[3.5573,9.9074],[3.5764,10.2683],[3.8343,10.6074],[3.7163,11.0797],[3.4877,11.3954],[3.5955,11.6963],[3.6466,12.5299],[3.948,12.775],[4.1477,13.4577],[4.8233,13.76],[5.4918,13.8727],[6.3863,13.6037],[6.8044,13.1074],[7.0565,13],[7.7885,13.3378],[8.0953,13.2912],[8.7504,12.9081],[9.616,12.8105],[10.1847,13.2699],[10.9588,13.3716],[11.412,13.3538],[12.4632,13.0937],[12.6549,13.3267],[13.3239,13.6707],[13.6062,13.7045]]]},properties:{name:"Nigeria",id:"NG"},id:"NG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[167.9394,-29.0175],[167.979,-29.0756],[167.9204,-29.0827],[167.9394,-29.0175]]]},properties:{name:"Norfolk Island",id:"NF"},id:"NF"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[14.9791,22.996],[15.1722,21.9223],[15.182,21.5232],[15.6072,20.9546],[15.5873,20.7335],[15.949,20.3034],[15.7351,19.9039],[15.4745,16.9085],[14.3679,15.7499],[13.4481,14.3805],[13.6062,13.7045],[13.3239,13.6707],[12.6549,13.3267],[12.4632,13.0937],[11.412,13.3538],[10.9588,13.3716],[10.1847,13.2699],[9.616,12.8105],[8.7504,12.9081],[8.0953,13.2912],[7.7885,13.3378],[7.0565,13],[6.8044,13.1074],[6.3863,13.6037],[5.4918,13.8727],[4.8233,13.76],[4.1477,13.4577],[3.948,12.775],[3.6466,12.5299],[3.5955,11.6963],[2.8782,12.3679],[2.3659,12.2219],[2.389,11.897],[2.0912,12.2778],[2.0739,12.7142],[1.5652,12.6356],[.9872,13.0418],[.9779,13.5518],[.6183,13.7036],[.1638,14.4973],[.2175,14.9114],[.9601,14.9869],[1.3002,15.2723],[3.5041,15.3562],[3.8769,15.7553],[4.1823,16.5818],[4.2347,16.9964],[4.2276,19.1426],[5.8367,19.4791],[7.4818,20.8729],[9.3785,21.9915],[11.9678,23.518],[13.4814,23.1802],[14.2307,22.6183],[14.9791,22.996]]]},properties:{name:"Niger",id:"NE"},id:"NE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[164.2023,-20.2462],[164.4358,-20.2821],[165.1918,-20.7691],[165.6627,-21.2671],[166.9425,-22.0901],[166.7742,-22.3759],[166.096,-21.9565],[165.2419,-21.5255],[164.4549,-20.829],[164.1699,-20.4801],[164.2023,-20.2462]]]},properties:{name:"New Caledonia",id:"NC"},id:"NC"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[23.3807,-17.6405],[24.2751,-17.4812],[24.9325,-17.5433],[25.2588,-17.7936],[24.359,-17.9783],[23.5804,-18.4528],[23.2986,-18.0276],[20.9739,-18.3188],[20.9779,-20.9684],[20.9708,-22],[19.9774,-22],[19.9805,-24.777],[19.9805,-26.5312],[19.9805,-28.4515],[19.6715,-28.5039],[19.2458,-28.9016],[18.1028,-28.8719],[17.4481,-28.6983],[17.3855,-28.3534],[17.0561,-28.0311],[16.7556,-28.4524],[16.4475,-28.6175],[15.7191,-27.9659],[15.3413,-27.3866],[14.9676,-26.3182],[14.8451,-25.7256],[14.8371,-25.0331],[14.5015,-24.2021],[14.474,-23.281],[14.5259,-22.7027],[14.3217,-22.19],[13.9733,-21.7678],[13.4504,-20.9169],[13.1685,-20.1845],[12.4583,-18.9269],[12.0956,-18.5412],[11.776,-18.0018],[11.7432,-17.2494],[12.5479,-17.2126],[13.101,-16.9676],[13.4038,-17.008],[13.9382,-17.3888],[16.9136,-17.3915],[18.3962,-17.3995],[18.8259,-17.7661],[19.6396,-17.8687],[20.3928,-17.8873],[20.625,-17.9965],[21.4169,-18.0005],[23.3807,-17.6405]]]},properties:{name:"Namibia",id:"NA"},id:"NA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[45.1802,-12.9765],[45.0692,-12.8957],[45.1349,-12.7093],[45.2233,-12.7519],[45.1802,-12.9765]]]},properties:{name:"Mayotte",id:"YT"},id:"YT"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[102.1009,6.2422],[102.9825,5.5249],[103.4157,4.8502],[103.4686,4.3934],[103.362,3.7693],[103.4397,2.933],[103.8121,2.5805],[104.2884,1.4806],[103.6945,1.4495],[102.7273,1.8557],[101.2953,2.8851],[101.2997,3.2535],[100.7155,3.9664],[100.6143,4.6522],[100.3524,5.5875],[100.3431,5.9843],[100.119,6.442],[100.3453,6.5498],[101.0533,6.2427],[101.2571,5.7894],[101.5563,5.908],[101.8737,5.8254],[102.1009,6.2422]]],[[[117.5746,4.1706],[117.1005,4.337],[115.8962,4.3486],[115.5686,3.9389],[115.4545,3.0342],[115.0861,2.8411],[115.1509,2.4931],[114.7865,2.2503],[114.8304,1.98],[114.5459,1.4673],[113.9022,1.4344],[113.6222,1.236],[112.476,1.5592],[112.1857,1.4393],[112.0783,1.1432],[111.7698,.9994],[110.9379,1.0172],[110.5056,.8618],[109.6542,1.6151],[109.6289,2.0275],[109.9845,1.7176],[110.3493,1.7198],[110.9402,1.5174],[111.1541,1.7389],[111.242,2.4358],[111.7276,2.854],[112.7375,3.0706],[113.0446,3.2051],[113.924,4.2434],[114.0638,4.5927],[114.6085,4.0241],[114.8402,4.3934],[114.7465,4.7179],[115.0266,4.8999],[115.1398,4.8999],[115.5198,5.049],[115.419,5.413],[115.7968,5.536],[116.1386,6.1295],[116.4946,6.5219],[117.294,6.6768],[117.6456,6.4735],[117.6172,5.9408],[118.0038,6.0531],[118.1157,5.8627],[118.5946,5.5919],[119.2236,5.4126],[119.1322,5.1005],[118.1854,4.8284],[118.4979,4.3623],[117.5746,4.1706]]]]},properties:{name:"Malaysia",id:"MY"},id:"MY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.9596,-11.5783],[34.6595,-11.5885],[34.3608,-12.2104],[34.5636,-13.3601],[35.2477,-13.8967],[35.8474,-14.6709],[35.7555,-16.0585],[35.3587,-16.1606],[35.1673,-16.5601],[35.2903,-17.0967],[34.3954,-16.1992],[34.248,-15.8876],[34.541,-15.2972],[34.5055,-14.5981],[34.3324,-14.4085],[33.6364,-14.5683],[33.2018,-14.0135],[32.9812,-14.0095],[32.6722,-13.6104],[32.9679,-13.2251],[33.0216,-12.6303],[33.398,-12.49],[33.2524,-12.1127],[33.2262,-11.5348],[33.3798,-11.1579],[33.2613,-10.8934],[33.659,-10.5906],[33.3509,-9.8622],[32.9199,-9.4072],[34.3208,-9.7317],[34.5241,-10.03],[34.6617,-10.71],[34.608,-11.0807],[34.9596,-11.5783]]]},properties:{name:"Malawi",id:"MW"},id:"MW"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[57.6514,-20.485],[57.3859,-20.2284],[57.5759,-19.9971],[57.7921,-20.2124],[57.6514,-20.485]]]},properties:{name:"Mauritius",id:"MU"},id:"MU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-60.8263,14.4946],[-61.0638,14.4671],[-61.2198,14.8044],[-60.9186,14.7352],[-60.8263,14.4946]]]},properties:{name:"Martinique",id:"MQ"},id:"MQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.1484,16.7403],[-62.1542,16.6812],[-62.2217,16.6994],[-62.223,16.7518],[-62.1484,16.7403]]]},properties:{name:"Montserrat",id:"MS"},id:"MS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-12.2807,14.8089],[-12.8584,15.2426],[-13.2579,15.7002],[-13.4095,16.0593],[-13.8685,16.1481],[-14.3,16.5805],[-15.1128,16.6448],[-15.6208,16.5068],[-16.1683,16.5472],[-16.4411,16.2045],[-16.5352,15.8383],[-16.5356,16.2866],[-16.0789,17.5459],[-16.0849,18.5212],[-16.2132,19.0032],[-16.5146,19.3619],[-16.2835,19.7871],[-16.2105,20.2279],[-16.4298,20.6523],[-17.0481,20.8063],[-16.9647,21.3292],[-15.0018,21.3314],[-13.0163,21.3341],[-13.0944,22.4958],[-13.0316,23],[-12.6203,23.2712],[-12.0235,23.4674],[-12.0164,25.9954],[-10.5624,25.9954],[-8.6821,25.9954],[-8.6834,27.2858],[-6.2387,25.848],[-4.8227,24.9958],[-6.594,24.9944],[-6.3113,22.5291],[-6.1404,21.0367],[-5.8556,18.5505],[-5.6286,16.5685],[-5.36,16.2831],[-5.5125,15.4965],[-7.3555,15.496],[-9.1768,15.496],[-9.9414,15.374],[-10.6965,15.4228],[-10.8956,15.1502],[-11.5026,15.6367],[-11.7603,15.4255],[-11.8728,14.9953],[-12.2807,14.8089]]]},properties:{name:"Mauritania",id:"MR"},id:"MR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[32.8862,-26.8495],[32.1129,-26.8393],[31.9482,-25.9577],[31.986,-24.4605],[31.7995,-23.8923],[31.5456,-23.4821],[31.2877,-22.4021],[32.3713,-21.335],[32.4778,-20.7131],[33.0069,-19.8737],[32.7166,-19.0019],[32.9932,-18.3596],[32.9479,-16.7123],[32.2434,-16.4487],[31.9398,-16.4287],[31.2362,-16.0239],[30.4377,-15.9954],[30.3959,-15.643],[30.2317,-14.9905],[31.729,-14.496],[33.2018,-14.0135],[33.6364,-14.5683],[34.3324,-14.4085],[34.5055,-14.5981],[34.541,-15.2972],[34.248,-15.8876],[34.3954,-16.1992],[35.2903,-17.0967],[35.1673,-16.5601],[35.3587,-16.1606],[35.7555,-16.0585],[35.8474,-14.6709],[35.2477,-13.8967],[34.5636,-13.3601],[34.3608,-12.2104],[34.6595,-11.5885],[34.9596,-11.5783],[35.6312,-11.5818],[35.7852,-11.4531],[36.5185,-11.7163],[36.9789,-11.5667],[37.5417,-11.675],[37.9204,-11.2946],[38.4917,-11.4131],[38.7948,-11.2289],[39.3217,-11.1224],[39.9889,-10.821],[40.4634,-10.4641],[40.5447,-11.0656],[40.403,-11.3319],[40.5806,-12.6356],[40.5451,-13.463],[40.6401,-14.3899],[40.835,-14.7916],[40.5589,-15.4734],[40.1087,-15.9795],[39.8446,-16.4358],[39.0842,-16.9729],[38.145,-17.2428],[37.2443,-17.7399],[36.5403,-18.5181],[35.6512,-19.1639],[34.9481,-19.8129],[34.7559,-19.8218],[34.6981,-20.4042],[34.9822,-20.8063],[35.2677,-21.6511],[35.3156,-22.3968],[35.5753,-22.9632],[35.3702,-23.7982],[35.4381,-24.171],[35.1558,-24.5413],[34.6072,-24.8214],[33.3474,-25.2608],[32.7921,-25.6443],[32.5905,-26.0039],[32.9337,-26.2525],[32.8862,-26.8495]]]},properties:{name:"Mozambique",id:"MZ"},id:"MZ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[145.7519,15.1334],[145.6845,15.1249],[145.7133,15.2155],[145.7821,15.1747],[145.7519,15.1334]]]},properties:{name:"Northern Mariana Islands",id:"MP"},id:"MP"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[116.6832,49.8238],[115.5575,47.945],[115.8984,47.6871],[116.7605,47.87],[117.3508,47.652],[117.7685,47.988],[118.4983,47.9841],[119.711,47.15],[119.8979,46.8579],[119.7066,46.6062],[118.3088,46.7172],[117.3335,46.3621],[116.5625,46.2897],[116.2407,45.7961],[115.6809,45.4583],[114.517,45.3646],[114.0305,44.9425],[113.5871,44.7459],[111.8981,45.0641],[111.4022,44.3672],[111.9331,43.7116],[111.0072,43.3414],[110.4004,42.7736],[109.4434,42.4558],[108.1712,42.4474],[106.7702,42.2889],[105.1971,41.738],[104.4984,41.6586],[104.4984,41.877],[103.7109,41.7514],[103.0726,42.0062],[101.9731,42.2157],[101.7139,42.4656],[99.984,42.6773],[99.4678,42.5681],[97.2057,42.7896],[96.3854,42.7204],[95.9126,43.2064],[95.3502,44.278],[94.7119,44.3508],[93.6563,44.9008],[92.7876,45.0357],[91.5842,45.0766],[90.8771,45.196],[90.6618,45.5253],[91.0019,46.0358],[91.0338,46.529],[90.87,46.9547],[90.4963,47.2854],[90.3134,47.676],[89.561,48.004],[89.0478,48.0027],[88.517,48.3844],[87.9798,48.5549],[87.8143,49.1624],[88.1925,49.4518],[88.8317,49.4485],[89.6542,49.7175],[89.644,49.903],[91.8044,50.6936],[94.2511,50.5564],[94.6147,50.0237],[95.5229,49.9112],[95.8518,50.0129],[96.986,49.8828],[97.2088,49.7308],[98.1032,50.0779],[98.2795,50.5333],[97.8254,50.9852],[97.947,51.3483],[98.8485,52.0701],[100.4687,51.7261],[101.3814,51.4526],[102.1116,51.3534],[102.2883,50.585],[102.6833,50.3871],[103.6328,50.1387],[105.3835,50.4736],[106.218,50.3045],[106.7112,50.3125],[107.2332,49.9893],[107.9479,49.9247],[108.034,49.594],[108.6137,49.3228],[109.2365,49.3348],[110.1997,49.1704],[110.8279,49.1661],[111.3366,49.3559],[113.0557,49.6162],[113.1641,49.7971],[114.2969,50.2743],[114.743,50.2337],[115.2743,49.9489],[116.1346,50.0109],[116.6832,49.8238]]]},properties:{name:"Mongolia",id:"MN"},id:"MN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.1943,43.5331],[19.5517,43.2122],[20.3445,42.8278],[20.0639,42.5473],[19.6546,42.6285],[19.2809,42.1726],[19.3426,41.869],[18.5174,42.4327],[18.4362,42.5597],[18.4437,42.9685],[18.9404,43.4967],[19.1943,43.5331]]]},properties:{name:"Montenegro",id:"ME"},id:"ME"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[101.139,21.5676],[100.7564,21.3128],[100.2495,20.7304],[100.1225,20.3167],[99.8904,20.4246],[99.3382,20.0788],[99.0208,20.0419],[98.9169,19.7729],[98.1112,19.7623],[97.8169,19.46],[97.7539,18.621],[97.4849,18.4941],[97.793,17.6813],[98.4388,16.9755],[98.6892,16.3052],[98.5653,15.4037],[98.1911,15.204],[98.2462,14.8147],[99.1366,13.7165],[99.2196,12.7399],[99.4052,12.5477],[99.6147,11.7811],[99.1903,11.1051],[98.7571,10.6612],[98.7025,10.1902],[98.465,10.6758],[98.6754,10.987],[98.7416,11.5916],[98.576,13.162],[98.2453,13.7333],[97.8121,14.859],[97.7104,15.8756],[97.5843,16.0194],[97.6194,16.5374],[97.3757,16.5228],[97.1782,17.0621],[96.6224,16.564],[95.7635,16.169],[95.3897,15.7229],[94.9427,15.8183],[94.5876,16.2888],[94.2143,16.1268],[94.589,17.5695],[94.4309,18.2016],[94.07,18.8936],[93.7056,19.0267],[93.9981,19.4409],[93.3625,20.0584],[93.002,20.0748],[92.7357,20.5626],[92.3242,20.7917],[92.1795,21.2933],[92.5937,21.4673],[92.575,21.9782],[92.9643,22.0039],[93.1618,22.3604],[93.0788,22.7182],[93.366,23.1323],[93.4149,23.6823],[93.3074,24.0219],[94.1277,23.8763],[94.2929,24.3219],[94.7075,25.0486],[94.6227,25.4099],[95.1323,26.0411],[95.1287,26.5973],[96.0613,27.217],[96.6659,27.3391],[97.3353,27.9379],[97.3224,28.218],[97.5377,28.5101],[98.0988,28.1421],[98.299,27.5499],[98.651,27.5726],[98.7318,26.5836],[98.6546,25.9177],[98.0109,25.2923],[97.8196,25.2519],[97.5315,24.4915],[97.686,23.898],[98.2124,24.1106],[98.7642,24.116],[98.8636,23.1913],[99.3408,23.0959],[99.3377,22.498],[99.193,22.126],[99.9179,22.0279],[100.2148,21.4628],[101.139,21.5676]]]},properties:{name:"Myanmar",id:"MM"},id:"MM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[14.5663,35.8529],[14.4363,35.8219],[14.3524,35.8725],[14.4482,35.9572],[14.5663,35.8529]]]},properties:{name:"Malta",id:"MT"},id:"MT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[4.2276,19.1426],[4.2347,16.9964],[4.1823,16.5818],[3.8769,15.7553],[3.5041,15.3562],[1.3002,15.2723],[.9601,14.9869],[.2175,14.9114],[-.2359,15.0592],[-.7604,15.0477],[-1.0496,14.8195],[-1.7678,14.4862],[-2.1132,14.1684],[-2.4572,14.274],[-3.1985,13.673],[-3.3017,13.2806],[-3.5758,13.194],[-4.0512,13.3822],[-4.3286,13.119],[-4.2272,12.7936],[-4.4807,12.6724],[-4.4287,12.3377],[-4.798,12.0319],[-5.2881,11.8277],[-5.2999,11.2058],[-5.4905,11.0425],[-5.5236,10.4259],[-6.0345,10.1946],[-6.2611,10.7242],[-6.6932,10.3495],[-7.1049,10.2035],[-7.6611,10.4272],[-7.9907,10.1627],[-8.2315,10.4379],[-8.4075,11.3865],[-8.8219,11.6732],[-9.043,12.4025],[-9.8207,12.0426],[-10.2748,12.2126],[-10.6774,11.8996],[-10.9333,12.205],[-11.3053,12.0155],[-11.3894,12.4043],[-11.3903,12.9419],[-11.6349,13.3698],[-12.0543,13.633],[-12.0193,14.2065],[-12.2807,14.8089],[-11.8728,14.9953],[-11.7603,15.4255],[-11.5026,15.6367],[-10.8956,15.1502],[-10.6965,15.4228],[-9.9414,15.374],[-9.1768,15.496],[-7.3555,15.496],[-5.5125,15.4965],[-5.36,16.2831],[-5.6286,16.5685],[-5.8556,18.5505],[-6.1404,21.0367],[-6.3113,22.5291],[-6.594,24.9944],[-4.8227,24.9958],[-3.2579,23.981],[-1.2931,22.6964],[1.1457,21.1024],[1.1657,20.8174],[1.6855,20.3784],[2.2195,20.2479],[2.4063,20.0637],[3.2036,19.7898],[3.2559,19.4107],[3.1059,19.1502],[3.4007,18.9886],[4.2276,19.1426]]]},properties:{name:"Mali",id:"ML"},id:"ML"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.3442,42.3138],[22.8369,41.9937],[23.0056,41.7172],[22.9159,41.3363],[22.7246,41.1783],[21.9296,41.1073],[21.5758,40.8689],[20.9641,40.8498],[20.4892,41.2724],[20.566,41.8739],[21.0596,42.1713],[21.5625,42.2476],[22.3442,42.3138]]]},properties:{name:"North Macedonia",id:"MK"},id:"MK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[171.1017,7.1384],[171.2269,7.0869],[171.2025,7.0736],[171.0955,7.1091],[171.1017,7.1384]]]},properties:{name:"Marshall Islands",id:"MH"},id:"MH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1462,25.9617],[-97.5071,25.0144],[-97.6676,24.3899],[-97.8578,22.6245],[-97.6376,21.6035],[-97.1214,20.615],[-96.456,19.8697],[-96.2895,19.3437],[-95.821,18.7546],[-95.1818,18.7005],[-94.798,18.5145],[-94.5461,18.1749],[-94.189,18.1953],[-93.5523,18.4306],[-92.8849,18.4688],[-92.7102,18.6117],[-91.9738,18.716],[-91.8031,18.4706],[-91.2753,18.6246],[-91.343,18.9007],[-90.7393,19.3521],[-90.5072,19.9119],[-90.4841,20.5564],[-90.3531,21.0096],[-89.8198,21.2746],[-88.8787,21.414],[-88.1317,21.616],[-86.8242,21.4215],[-86.8648,20.8849],[-87.4672,20.1023],[-87.4248,19.5834],[-87.7619,18.4461],[-88.1967,18.7196],[-88.2957,18.4723],[-88.523,18.4457],[-88.8064,17.9654],[-89.1615,17.8149],[-90.9892,17.8163],[-90.993,17.2525],[-91.4096,17.2561],[-90.7107,16.7083],[-90.417,16.3909],[-90.4472,16.0726],[-91.7365,16.07],[-92.1871,15.3207],[-92.0748,15.0743],[-92.2352,14.5452],[-92.809,15.1387],[-93.916,16.0536],[-94.3741,16.2848],[-94.6615,16.2018],[-94.9004,16.4176],[-95.4643,15.9745],[-96.5108,15.6518],[-97.1846,15.9093],[-97.7548,15.967],[-98.5203,16.3048],[-98.7622,16.5347],[-99.6906,16.7198],[-100.0244,16.9205],[-100.8478,17.2006],[-101.6002,17.6516],[-101.847,17.9223],[-102.6995,18.0626],[-103.4415,18.3254],[-103.9125,18.8283],[-104.9385,19.3095],[-105.4821,19.9762],[-105.6694,20.3855],[-105.237,21.1193],[-105.2086,21.4908],[-105.6492,21.988],[-105.7917,22.6276],[-106.4023,23.1958],[-106.9354,23.8812],[-107.9512,24.6149],[-108.3736,25.1942],[-109.385,25.7273],[-109.4256,26.0327],[-109.1997,26.3052],[-109.4829,26.7105],[-109.7548,26.703],[-109.9441,27.0794],[-110.4779,27.3227],[-110.5298,27.8642],[-111.1215,27.9672],[-111.6801,28.4706],[-112.1618,29.0188],[-112.2235,29.2696],[-112.7384,29.9856],[-113.1104,30.7934],[-113.0467,31.1792],[-114.1493,31.5072],[-114.8395,31.7984],[-114.8819,31.1565],[-114.6334,30.5067],[-114.6498,30.2381],[-114.3726,29.8302],[-113.7556,29.3677],[-113.4997,28.9269],[-112.8709,28.4244],[-112.7339,27.826],[-112.3291,27.5233],[-112.0091,26.9671],[-111.5696,26.7074],[-111.2917,25.7899],[-111.0345,25.5271],[-110.6774,24.7885],[-110.5471,24.2141],[-110.0229,24.1746],[-109.421,23.4803],[-109.458,23.2149],[-109.9234,22.8859],[-110.3627,23.6051],[-111.4194,24.329],[-112.0725,24.84],[-112.0557,25.488],[-112.3773,26.2138],[-113.0207,26.5831],[-113.2058,26.857],[-113.5986,26.7212],[-113.841,26.9667],[-114.4454,27.2183],[-114.9936,27.7359],[-114.3007,27.8731],[-114.0485,28.4262],[-114.1455,28.6055],[-114.9936,29.3845],[-115.6738,29.7565],[-116.0622,30.8041],[-116.6622,31.5649],[-117.1282,32.5335],[-114.7248,32.7155],[-114.836,32.5082],[-112.939,31.916],[-111.042,31.3243],[-108.2145,31.3292],[-108.2118,31.7793],[-106.4533,31.77],[-106.2558,31.5445],[-104.9179,30.5835],[-104.504,29.6775],[-104.1107,29.3863],[-103.2577,29.001],[-102.892,29.2163],[-102.7342,29.6438],[-102.269,29.871],[-101.4404,29.7769],[-100.6587,29.0685],[-100.2961,28.3276],[-99.5053,27.5482],[-99.4436,27.0368],[-99.1078,26.4469],[-98.0828,26.0642],[-97.3582,25.8707],[-97.1462,25.9617]]]},properties:{name:"Mexico",id:"MX"},id:"MX"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[73.5121,4.1644],[73.473,4.1706],[73.5041,4.2345],[73.5285,4.2434],[73.5121,4.1644]]]},properties:{name:"Maldives",id:"MV"},id:"MV"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[49.5383,-12.4323],[49.9374,-13.0724],[50.174,-14.0401],[50.2353,-14.7321],[50.4829,-15.3855],[50.2091,-15.9604],[49.8926,-15.4579],[49.6498,-15.5671],[49.8389,-16.4864],[49.4491,-17.2406],[49.478,-17.8984],[48.6071,-20.4574],[48.3509,-21.3488],[47.9084,-22.4661],[47.5581,-23.8745],[47.1773,-24.7872],[46.7285,-25.1498],[46.1586,-25.2306],[45.5078,-25.5631],[45.1154,-25.5431],[44.8131,-25.334],[44.3457,-25.2262],[44.0354,-24.9958],[43.6874,-24.3579],[43.7225,-23.5296],[43.398,-22.8864],[43.2666,-22.0492],[43.5019,-21.3563],[43.8556,-21.0767],[44.4047,-19.9221],[44.4487,-19.4285],[44.2387,-19.0752],[44.2329,-18.7405],[44.0399,-18.2886],[43.9795,-17.3915],[44.4216,-16.7026],[44.4762,-16.2174],[44.9094,-16.1743],[45.1669,-15.983],[45.5984,-15.9928],[45.7,-15.8139],[46.3317,-15.7136],[46.475,-15.5134],[47.8116,-14.5448],[47.9954,-13.9606],[48.7966,-13.2673],[48.8996,-12.4585],[49.2072,-12.0794],[49.5383,-12.4323]]]},properties:{name:"Madagascar",id:"MG"},id:"MG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.2124,45.4503],[28.0997,45.9728],[28.2444,46.4513],[28.0717,46.9786],[27.3366,47.6396],[26.9806,48.155],[26.6189,48.2597],[27.5493,48.4777],[29.1948,47.8824],[29.1597,47.4558],[29.5494,47.2467],[29.8779,46.829],[29.838,46.3505],[29.1464,46.5268],[28.9475,46.05],[28.2124,45.4503]]]},properties:{name:"Moldova",id:"MD"},id:"MD"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[7.4387,43.7507],[7.3779,43.7316],[7.4143,43.7711],[7.4387,43.7507]]]},properties:{name:"Monaco",id:"MC"},id:"MC"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.2197,35.1041],[-1.7955,34.7521],[-1.6792,33.3187],[-1.5099,32.8775],[-1.0656,32.4683],[-1.2753,32.0892],[-2.4485,32.13],[-2.9308,32.0426],[-3.0174,31.8344],[-3.8268,31.6617],[-3.8335,31.1978],[-4.3228,30.6989],[-4.9683,30.4654],[-5.4488,29.9567],[-6.5008,29.8093],[-6.6353,29.5687],[-7.095,29.6251],[-7.6851,29.3495],[-8.6599,28.7187],[-8.6834,27.6565],[-13.1774,27.652],[-12.949,27.9144],[-11.986,28.1292],[-11.4302,28.3822],[-11.0809,28.7138],[-10.4865,29.0649],[-9.6671,30.1094],[-9.6529,30.4477],[-9.8755,30.718],[-9.8087,31.4247],[-9.3475,32.0865],[-9.2458,32.5726],[-8.5962,33.1874],[-6.901,33.969],[-6.3532,34.776],[-5.9249,35.7859],[-5.3973,35.9297],[-5.1054,35.4676],[-4.3299,35.1613],[-3.6932,35.2799],[-2.84,35.1281],[-2.2197,35.1041]]]},properties:{name:"Morocco",id:"MA"},id:"MA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.0111,18.0688],[-63.123,18.0688],[-63.0631,18.1154],[-63.0111,18.0688]]]},properties:{name:"Saint Martin",id:"MF"},id:"MF"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[113.4788,22.1957],[113.4943,22.2414],[113.5467,22.2241],[113.4788,22.1957]]]},properties:{name:"Macau",id:"MO"},id:"MO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[27.3517,57.5282],[27.797,57.3169],[27.8063,56.867],[28.1481,56.143],[27.5768,55.7988],[26.5936,55.6676],[24.9032,56.3982],[24.1206,56.2642],[22.0845,56.4067],[21.0462,56.07],[21.0711,56.8237],[21.7285,57.571],[22.5546,57.7242],[23.6479,56.9711],[24.4034,57.3251],[24.3226,57.8706],[25.111,58.0635],[25.9912,57.8382],[26.5328,57.5311],[27.3517,57.5282]]]},properties:{name:"Latvia",id:"LV"},id:"LV"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.1164,50.1209],[6.4875,49.7985],[6.3441,49.4527],[5.7897,49.5383],[5.744,49.9196],[6.1164,50.1209]]]},properties:{name:"Luxembourg",id:"LU"},id:"LU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[26.5936,55.6676],[26.175,55.0033],[25.8594,54.9192],[25.5473,54.3317],[24.7683,53.9746],[23.4845,53.9398],[23.37,54.2005],[22.7663,54.3568],[22.8311,54.8384],[21.2358,55.2641],[21.0462,56.07],[22.0845,56.4067],[24.1206,56.2642],[24.9032,56.3982],[26.5936,55.6676]]]},properties:{name:"Lithuania",id:"LT"},id:"LT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[27.8303,-28.9091],[28.6257,-28.5816],[29.3013,-29.0898],[29.3905,-29.2696],[29.098,-29.919],[28.3922,-30.1476],[28.018,-30.6421],[27.3886,-30.3158],[27.0517,-29.6642],[27.2945,-29.5195],[27.8303,-28.9091]]]},properties:{name:"Lesotho",id:"LS"},id:"LS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[79.9822,9.8129],[80.253,9.7965],[80.7111,9.3663],[81.373,8.4315],[81.436,8.119],[81.8741,7.2885],[81.8612,6.9014],[81.6375,6.4251],[80.724,5.979],[80.0954,6.153],[79.8593,6.8295],[79.7923,7.5854],[79.929,8.8994],[80.1185,9.3268],[79.9822,9.8129]]]},properties:{name:"Sri Lanka",id:"LK"},id:"LK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.5801,47.0572],[9.4877,47.0621],[9.5277,47.2707],[9.5801,47.0572]]]},properties:{name:"Liechtenstein",id:"LI"},id:"LI"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-60.8953,13.8221],[-61.0636,13.9158],[-60.8867,14.0112],[-60.8953,13.8221]]]},properties:{name:"Saint Lucia",id:"LC"},id:"LC"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[25.1505,31.655],[24.8526,31.335],[24.9738,30.7766],[24.7115,30.1316],[24.9805,29.1817],[24.9805,27.8345],[24.9805,25.8134],[24.9805,24.2416],[24.9805,21.9959],[24.9796,20.0024],[23.9804,19.9958],[23.9804,19.4968],[21.5847,20.6794],[19.6684,21.6257],[17.7521,22.5721],[15.9841,23.4452],[14.9791,22.996],[14.2307,22.6183],[13.4814,23.1802],[11.9678,23.518],[11.5075,24.3144],[10.6863,24.5514],[10.2557,24.5909],[10.0009,25.3322],[9.4482,26.0673],[9.4913,26.3337],[9.8593,26.5521],[9.7474,27.3306],[9.9161,27.7856],[9.8424,28.9668],[9.6724,29.567],[9.3102,30.1152],[9.5188,30.2293],[9.8952,30.3873],[10.2162,30.7832],[10.115,31.4637],[10.8265,32.0807],[11.5048,32.4137],[11.5043,33.182],[12.2798,32.8584],[12.7535,32.8012],[13.2835,32.9148],[14.2369,32.6813],[14.5135,32.5109],[15.1767,32.391],[15.4963,31.6568],[16.123,31.2644],[17.3491,31.0815],[18.1902,30.7775],[18.9364,30.2905],[19.2915,30.2879],[19.7132,30.4885],[20.1509,31.0784],[19.9263,31.8175],[20.1216,32.2188],[20.621,32.5801],[21.6357,32.9374],[22.1875,32.9184],[23.0908,32.6187],[23.2866,32.2139],[24.1295,32.0093],[24.6839,32.0159],[25.1505,31.655]]]},properties:{name:"Libya",id:"LY"},id:"LY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-8.4863,7.5584],[-8.2966,7.0741],[-8.3325,6.8015],[-8.6035,6.5077],[-7.8886,6.2347],[-7.7965,5.975],[-7.4543,5.8414],[-7.4299,5.3247],[-7.5688,5.0805],[-7.5451,4.3512],[-8.2591,4.59],[-9.1322,5.0548],[-10.2763,6.0775],[-11.5075,6.9067],[-11.2678,7.2325],[-10.6474,7.7594],[-10.2832,8.4852],[-9.7683,8.5345],[-9.5182,8.3463],[-9.369,7.6396],[-9.4598,7.4425],[-9.1175,7.2157],[-8.8896,7.2627],[-8.7083,7.6591],[-8.4863,7.5584]]]},properties:{name:"Liberia",id:"LR"},id:"LR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.8691,33.4319],[35.411,33.0755],[35.1087,33.0835],[35.9761,34.6291],[36.4329,34.6136],[36.5851,34.2212],[35.9424,33.6676],[35.8691,33.4319]]]},properties:{name:"Lebanon",id:"LB"},id:"LB"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[102.1276,22.379],[102.9488,21.5698],[102.8511,21.2657],[103.1046,20.8915],[103.635,20.6971],[104.0518,20.9413],[104.5832,20.6465],[104.6187,20.3744],[104.9281,20.018],[104.5463,19.6105],[104.0319,19.6753],[103.8965,19.3401],[104.7163,18.8035],[105.115,18.6787],[105.0857,18.4501],[105.4581,18.1545],[105.6916,17.7377],[106.5021,16.9542],[106.6961,16.4588],[107.3966,16.0429],[107.1897,15.7473],[107.6531,15.255],[107.5195,14.705],[106.82,14.3148],[106.5012,14.5781],[105.9788,14.3432],[105.9046,13.9247],[105.1833,14.3464],[105.4754,14.5301],[105.5131,15.3606],[105.6223,15.6998],[105.4062,15.9874],[105.047,16.1601],[104.7505,16.6475],[104.8162,17.3005],[103.9497,18.3192],[103.3669,18.4235],[103.0913,18.1381],[102.7175,17.8922],[102.1014,18.2104],[101.1053,17.4793],[100.9086,17.5837],[101.1133,18.0333],[101.0507,18.4071],[101.2864,18.977],[101.1546,19.5794],[100.6254,19.4999],[100.3977,19.7561],[100.5429,20.0885],[100.1225,20.3167],[100.2495,20.7304],[100.7564,21.3128],[101.139,21.5676],[101.2242,21.2236],[101.705,21.1503],[101.744,21.778],[101.5243,22.2538],[101.6712,22.4625],[102.1276,22.379]]]},properties:{name:"Lao People's Democratic Republic",id:"LA"},id:"LA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[48.4424,28.5429],[47.6713,28.5331],[47.4334,28.9895],[46.5314,29.0964],[46.9056,29.5377],[47.1143,29.9611],[47.6727,30.0956],[47.9785,29.9829],[47.9696,29.6167],[48.1836,28.9793],[48.4424,28.5429]]]},properties:{name:"Kuwait",id:"KW"},id:"KW"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[21.5625,42.2476],[21.0596,42.1713],[20.566,41.8739],[20.4856,42.2232],[20.0639,42.5473],[20.3445,42.8278],[21.0569,43.0915],[21.3907,42.7515],[21.7529,42.6698],[21.5625,42.2476]]]},properties:{name:"Kosovo",id:"XK"},id:"XK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[128.3745,38.6233],[128.619,38.1763],[129.335,37.2747],[129.4735,36.742],[129.4034,36.0522],[129.5619,35.9475],[129.2143,35.1818],[128.5112,35.101],[128.4442,34.8706],[127.7148,34.9545],[127.0308,34.6069],[126.4817,34.4937],[126.2913,35.1542],[126.7174,35.769],[126.5483,36.4775],[126.2171,36.8708],[126.7463,37.1935],[126.634,37.7816],[127.1697,38.3045],[128.0389,38.3085],[128.3745,38.6233]]]},properties:{name:"South Korea",id:"KR"},id:"KR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.6307,17.2401],[-62.8389,17.3391],[-62.7945,17.4025],[-62.7137,17.3533],[-62.6307,17.2401]]]},properties:{name:"Saint Kitts and Nevis",id:"KN"},id:"KN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-157.3422,1.8557],[-157.2461,1.7318],[-157.4201,1.7873],[-157.3422,1.8557]]]},properties:{name:"Kiribati",id:"KI"},id:"KI"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[104.4265,10.4112],[104.2622,10.5413],[103.532,10.6048],[103.722,10.8902],[103.5325,11.1468],[103.153,10.9137],[103.1254,11.4606],[102.9341,11.7065],[102.7366,12.0896],[102.7557,12.4261],[102.4995,12.6698],[102.3198,13.5398],[102.729,13.8421],[103.1996,14.3326],[104.7789,14.428],[105.1833,14.3464],[105.9046,13.9247],[105.9788,14.3432],[106.5012,14.5781],[106.82,14.3148],[107.5195,14.705],[107.3313,14.1266],[107.6056,13.4377],[107.4756,13.0302],[107.5062,12.3644],[106.9305,12.0776],[106.4138,11.9484],[106.3401,11.6817],[105.8514,11.6351],[105.8558,11.2941],[106.1679,11.0123],[105.3866,10.9399],[104.8504,10.5347],[104.4265,10.4112]]]},properties:{name:"Cambodia",id:"KH"},id:"KH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[80.2095,42.1899],[80.2162,42.0323],[79.2938,41.7829],[78.3625,41.3718],[78.1232,41.0758],[76.8239,40.9821],[76.4804,40.4494],[75.8718,40.3034],[75.5837,40.6052],[75.0044,40.4494],[74.4118,40.1374],[73.9915,40.0433],[73.9147,39.6065],[73.6315,39.4489],[73.2351,39.3743],[72.0428,39.3521],[71.8062,39.2758],[71.4045,39.598],[70.7333,39.4134],[70.6077,39.5643],[69.5987,39.5736],[69.229,39.761],[69.5304,40.0974],[69.9667,40.2022],[70.4514,40.049],[70.9579,40.239],[71.6926,40.1525],[73.113,40.7859],[72.6585,40.8698],[71.7924,41.4131],[71.4085,41.1361],[70.7826,41.2626],[70.1811,41.5716],[70.8421,42.0195],[70.9468,42.2485],[71.2567,42.7337],[71.8168,42.822],[72.8551,42.561],[73.422,42.5934],[73.5565,43.0027],[74.209,43.2402],[75.0475,42.9046],[76.9442,42.9716],[79.1646,42.759],[79.49,42.4576],[80.2095,42.1899]]]},properties:{name:"Kyrgyzstan",id:"KG"},id:"KG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[41.8839,3.9779],[41.3419,3.2016],[40.9646,2.8145],[40.9699,1.378],[40.9788,-.8703],[41.5328,-1.6955],[40.9956,-1.9507],[40.6441,-2.5393],[40.2224,-2.6884],[40.1154,-3.2504],[39.4909,-4.4787],[39.2219,-4.6922],[37.7974,-3.6743],[37.6087,-3.4604],[37.6438,-3.0453],[36.2633,-2.2747],[34.7709,-1.4416],[33.9031,-1.0021],[33.9431,.1738],[34.4815,1.042],[34.7874,1.2307],[34.9654,1.6435],[34.964,2.0625],[34.7425,2.818],[34.4478,3.1634],[34.3928,3.6916],[34.165,3.8128],[33.9759,4.2203],[35.2681,5.4925],[35.7448,5.3442],[35.763,4.808],[36.0818,4.4498],[36.9056,4.4116],[38.0864,3.649],[39.4944,3.4559],[39.8424,3.8514],[40.7653,4.2731],[41.2207,3.9437],[41.8839,3.9779]]]},properties:{name:"Kenya",id:"KE"},id:"KE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[87.3229,49.0858],[86.7534,49.0088],[86.5496,48.5287],[85.7493,48.3849],[85.526,47.9157],[85.6565,47.2547],[84.786,46.8308],[83.1929,47.1864],[83.0043,47.0337],[82.3264,45.52],[82.4787,45.1236],[81.602,45.3109],[80.059,45.0064],[80.4554,44.7463],[80.3551,44.0973],[80.7857,43.1616],[80.1651,42.6653],[80.2095,42.1899],[79.49,42.4576],[79.1646,42.759],[76.9442,42.9716],[75.0475,42.9046],[74.209,43.2402],[73.5565,43.0027],[73.422,42.5934],[72.8551,42.561],[71.8168,42.822],[71.2567,42.7337],[70.9468,42.2485],[70.4159,42.0785],[70.0954,41.8206],[69.0652,41.367],[68.2919,40.6563],[67.9359,41.1965],[66.8142,41.1423],[66.6686,41.2706],[66.4986,41.9951],[66.0094,42.0048],[66.1004,42.9907],[65.803,42.8771],[65.4963,43.3108],[64.9054,43.7147],[64.4434,43.5513],[63.2071,43.6281],[61.9904,43.4923],[61.1608,44.1688],[61.0081,44.3939],[58.5551,45.5555],[55.9757,44.9949],[55.9766,42.929],[55.9774,41.3221],[55.5451,41.2626],[54.9037,41.9192],[54.1211,42.3351],[53.2502,42.2059],[52.4938,41.7802],[52.5968,42.7603],[51.8439,42.9104],[51.3019,43.4825],[50.8305,44.1928],[50.3311,44.3255],[50.4093,44.6242],[50.8603,44.6287],[51.4156,45.358],[52.5311,45.3988],[52.7739,45.5728],[53.1352,46.1916],[53.1703,46.6692],[52.9159,46.9542],[52.1888,46.8397],[51.1781,47.11],[50.4195,46.8796],[50,46.6342],[49.3475,46.5192],[49.2321,46.3372],[48.6102,46.5663],[48.9595,46.7744],[48.1099,47.7452],[47.0934,47.9477],[47.0042,48.2846],[46.661,48.4124],[46.7028,48.8055],[47.0144,49.0984],[46.8022,49.367],[47.3264,50.2734],[47.706,50.378],[48.4344,49.8284],[48.8432,50.0131],[48.8086,50.6012],[49.498,51.0835],[50.2468,51.2895],[50.7941,51.7292],[51.6091,51.4839],[52.3309,51.6812],[52.571,51.4817],[53.3381,51.4824],[54.0416,51.1153],[54.4216,50.7804],[54.727,50.9981],[55.5424,50.6017],[55.7977,50.6021],[56.4915,51.0196],[57.0117,51.0651],[57.4423,50.8889],[57.8387,51.0917],[58.3594,51.0638],[58.8836,50.6945],[59.8122,50.5819],[59.9552,50.7992],[60.6379,50.6638],[61.3894,50.8609],[61.5851,51.2298],[61.3632,51.442],[60.4647,51.6513],[60.0657,51.9764],[60.9375,52.2805],[60.8021,52.7448],[61.0476,52.9725],[61.974,52.9437],[62.0148,53.1079],[61.1994,53.2872],[60.9797,53.6217],[61.3339,54.0492],[61.9287,53.9464],[63.0739,54.1053],[64.4611,54.3841],[65.1576,54.3643],[65.4767,54.6233],[66.2225,54.6673],[68.0739,54.9596],[68.2062,55.1609],[68.9773,55.3895],[70.1824,55.1625],[70.7382,55.3052],[71.1856,54.5994],[71.0933,54.2123],[72.9141,54.1073],[73.3993,53.8115],[73.2857,53.5984],[74.4518,53.6472],[76.2664,54.312],[76.5758,53.9424],[77.7042,53.3791],[78.4757,52.6385],[79.4687,51.493],[79.9862,50.7746],[80.8771,51.2815],[81.4657,50.7397],[82.4938,50.7275],[83.3571,50.9945],[83.9453,50.7746],[84.2578,50.2883],[84.9893,50.0615],[85.21,49.6648],[86.1807,49.4993],[86.6144,49.6098],[87.3229,49.0858]]]},properties:{name:"Kazakhstan",id:"KZ"},id:"KZ"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[141.2296,41.3727],[141.4626,40.611],[141.7969,40.2914],[141.978,39.8444],[141.9007,39.1115],[141.6584,38.9748],[141.4675,38.404],[141.1084,38.3378],[140.9282,37.9494],[141.0365,37.4674],[140.9686,37.0022],[140.6272,36.5028],[140.6219,36.0593],[140.874,35.7251],[140.4572,35.5102],[140.4164,35.267],[139.7994,34.9567],[139.6502,35.409],[139.2494,35.2781],[138.9826,34.6984],[138.5773,35.0863],[138.1889,34.5963],[136.8848,34.8058],[136.5332,34.6784],[136.8537,34.3242],[136.3299,34.1768],[135.9162,33.5616],[135.4528,33.5536],[135.1753,33.898],[135.1003,34.2882],[135.3848,34.5004],[134.7399,34.7654],[134.2081,34.6975],[133.9684,34.5275],[133.1423,34.3024],[132.2381,34.227],[132.0903,33.8554],[131.7405,34.0521],[130.9188,33.9757],[131.0041,34.3925],[131.3543,34.4134],[132.923,35.5111],[133.3767,35.4588],[134.2139,35.5391],[135.1744,35.7473],[135.6805,35.5031],[136.0955,35.7677],[136.0063,35.9905],[136.6983,36.742],[137.3424,36.7705],[137.5142,36.9516],[138.3199,37.2183],[138.8849,37.8438],[139.4012,38.1425],[140.0479,39.4635],[139.9228,40.5986],[140.2814,40.8463],[141.1186,40.8822],[141.2296,41.3727]]],[[[143.8241,44.1169],[144.7985,43.9402],[145.1012,43.7644],[145.3476,43.1767],[144.6307,42.9468],[143.9693,42.8815],[143.4295,42.419],[143.2364,42.0004],[141.8515,42.5792],[140.9863,42.3422],[140.4803,42.5592],[140.3267,42.2934],[140.7337,42.1162],[140.3848,41.5192],[139.9951,41.5765],[140.1083,41.9129],[139.8211,42.3875],[139.8912,42.6494],[140.7808,43.2149],[141.2962,43.1998],[141.6446,44.0197],[141.7822,44.7166],[141.5829,45.156],[141.9376,45.5094],[142.7042,44.8191],[143.8241,44.1169]]],[[[131.1745,33.6024],[131.5829,33.6526],[131.8967,33.2548],[131.9766,32.8438],[131.7321,32.593],[131.3374,31.4047],[130.5886,31.1783],[130.2006,31.2919],[130.3218,31.6013],[130.1944,32.0909],[130.6405,32.6192],[129.5801,33.2362],[130.3649,33.6344],[130.4838,33.8345],[130.953,33.8718],[131.1745,33.6024]]],[[[134.3572,34.2562],[134.6373,34.2265],[134.739,33.8203],[134.3772,33.6082],[134.1815,33.2473],[133.6319,33.511],[133.2861,33.36],[132.9772,32.842],[132.4951,32.9166],[132.3659,33.5123],[132.7841,33.9926],[133.5822,34.017],[134.0758,34.3583],[134.3572,34.2562]]]]},properties:{name:"Japan",id:"JP"},id:"JP"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[39.1455,32.1247],[38.9622,31.9951],[36.9584,31.4917],[37.9803,30.5],[37.6336,30.3132],[37.4694,29.9949],[36.7551,29.8662],[36.4759,29.4951],[36.0156,29.1906],[34.9507,29.3535],[34.9734,29.555],[35.174,30.524],[35.4394,31.1326],[35.4505,31.4793],[35.5589,31.7656],[35.5513,32.3955],[35.7875,32.735],[36.3721,32.387],[36.8182,32.3173],[38.7735,33.372],[39.1455,32.1247]]]},properties:{name:"Jordan",id:"JO"},id:"JO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.0186,49.2312],[-2.2359,49.1763],[-2.2206,49.2665],[-2.0186,49.2312]]]},properties:{name:"Jersey",id:"JE"},id:"JE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-77.2614,18.4572],[-76.3499,18.1518],[-76.5246,17.8664],[-76.8533,17.9738],[-77.3615,17.8336],[-77.7681,17.8775],[-78.2167,18.4479],[-77.8735,18.522],[-77.2614,18.4572]]]},properties:{name:"Jamaica",id:"JM"},id:"JM"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[9.632,40.8822],[9.8051,40.4996],[9.5623,39.1661],[9.0563,39.2394],[8.8814,38.9127],[8.418,39.2056],[8.4712,40.2927],[8.1898,40.6518],[9.2831,41.2018],[9.632,40.8822]]],[[[15.5766,38.2202],[15.0994,37.4585],[15.2943,37.0133],[15.1127,36.6879],[14.5019,36.7989],[12.4356,37.8198],[13.3518,38.1807],[13.6816,38.0009],[14.5059,38.0453],[14.846,38.1718],[15.5766,38.2202]]],[[[13.6998,46.5201],[13.3993,46.3177],[13.7198,45.5875],[13.2062,45.7713],[12.2745,45.4459],[12.5235,44.9678],[12.2483,44.7223],[12.3961,44.2238],[13.564,43.5713],[14.0106,42.6898],[14.8659,42.0523],[15.1687,41.9338],[15.9641,41.9396],[16.0125,41.4353],[17.1032,41.062],[17.955,40.6554],[18.4859,40.105],[18.0779,39.9367],[17.8649,40.2803],[16.9283,40.4579],[16.5301,39.8595],[16.5976,39.6389],[17.1147,39.3805],[17.1746,38.9979],[16.5589,38.7147],[16.5456,38.4093],[16.0569,37.9419],[15.7244,37.9392],[15.9726,38.7125],[16.1967,38.7591],[16.0236,39.3535],[15.6929,39.99],[14.9507,40.239],[14.7656,40.6683],[14.1024,40.8272],[13.7331,41.2356],[13.0886,41.244],[12.6309,41.4695],[11.6375,42.2876],[10.7084,42.9361],[10.0475,44.0201],[8.766,44.4223],[8.0815,43.9189],[7.4929,43.7671],[7.6771,44.0831],[6.9673,44.2802],[7.0308,44.7166],[6.6277,45.1178],[7.1533,45.401],[7.021,45.9257],[7.9932,46.0158],[8.4584,46.2458],[8.9537,45.8298],[9.2512,46.2866],[9.9392,46.3616],[10.4528,46.865],[11.0249,46.7971],[11.2442,46.9755],[12.1542,46.9351],[12.3881,46.7025],[13.6998,46.5201]],[[12.4853,43.9016],[12.5146,43.9531],[12.441,43.9824],[12.397,43.9344],[12.4853,43.9016]]]]},properties:{name:"Italy",id:"IT"},id:"IT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.7875,32.735],[35.5513,32.3955],[35.1931,32.5344],[34.9561,32.1611],[34.9507,31.6022],[35.4505,31.4793],[35.4394,31.1326],[35.174,30.524],[34.9734,29.555],[34.9041,29.4773],[34.2454,31.2085],[34.4775,31.5849],[34.6786,31.8956],[35.1087,33.0835],[35.411,33.0755],[35.8691,33.4319],[35.7875,32.735]]]},properties:{name:"Israel",id:"IL"},id:"IL"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-15.5431,66.2285],[-14.6982,66.0203],[-14.7576,65.7557],[-13.6159,65.4872],[-13.853,64.8622],[-15.0215,64.296],[-16.0605,64.1113],[-16.6404,63.8654],[-17.8156,63.7129],[-18.6537,63.4066],[-20.1982,63.5558],[-21.8328,64.2054],[-21.9502,64.515],[-22.684,65.0264],[-22.0057,65.4934],[-22.9024,65.5804],[-24.2241,65.4872],[-23.7371,66.0695],[-22.4261,66.4302],[-21.3035,65.8765],[-21.23,65.4206],[-20.3567,65.7191],[-20.3567,66.0331],[-18.7775,66.1688],[-16.7485,66.1317],[-15.9854,66.5145],[-15.5431,66.2285]]]},properties:{name:"Iceland",id:"IS"},id:"IS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[44.7652,37.1424],[45.3618,36.0154],[45.7235,35.8365],[46.1337,35.1276],[45.6783,34.7982],[45.4377,34.4152],[45.3968,33.9708],[46.1457,33.2295],[46.1128,32.9579],[46.57,32.834],[47.3713,32.4239],[47.8298,31.7944],[47.6793,31.0025],[48.0105,30.9896],[48.0149,30.4654],[48.5467,29.9625],[47.9785,29.9829],[47.6727,30.0956],[47.1143,29.9611],[46.9056,29.5377],[46.5314,29.0964],[46.3565,29.0636],[44.7163,29.1937],[42.8578,30.4952],[42.0743,31.0802],[40.3693,31.9391],[39.1455,32.1247],[38.7735,33.372],[40.6894,34.3322],[40.9872,34.4289],[41.1945,34.7689],[41.3543,35.6403],[41.2456,36.0735],[41.4169,36.5148],[41.7884,36.5973],[42.3588,37.1087],[42.7748,37.3719],[43.5161,37.2445],[44.1562,37.2831],[44.2818,36.9782],[44.7652,37.1424]]]},properties:{name:"Iraq",id:"IQ"},id:"IQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.1146,38.8776],[46.4906,38.9065],[47.773,39.6486],[47.9958,39.6842],[48.2422,38.9788],[48.0233,38.819],[48.5929,38.4111],[48.8685,38.4355],[49.0811,37.6676],[49.47,37.4967],[50.1305,37.407],[50.5331,37.0137],[51.1186,36.7425],[52.1902,36.6217],[54.0172,36.9524],[53.9142,37.3435],[54.7452,37.502],[55.0755,37.9024],[55.5784,38.0999],[56.2287,38.0733],[56.4409,38.2495],[57.1937,38.2162],[57.4236,37.9477],[58.4357,37.6387],[58.8157,37.6835],[59.2409,37.5206],[59.5623,37.1788],[60.0626,36.9631],[60.3413,36.6377],[61.1195,36.6426],[61.262,35.6194],[61.08,34.8555],[60.4856,34.0947],[60.5109,33.6388],[60.9171,33.5052],[60.5606,33.1376],[60.8292,32.2494],[60.854,31.4833],[61.6602,31.3825],[61.7844,30.8321],[61.104,30.1285],[60.8434,29.8586],[61.3184,29.3725],[61.6229,28.7915],[61.8901,28.5465],[62.3531,28.4146],[62.7397,28.0023],[62.7632,27.2503],[63.1667,27.2525],[63.1681,26.6657],[62.4392,26.5609],[61.8697,26.2422],[61.6686,25.769],[61.5878,25.2022],[61.412,25.1023],[60.6641,25.2821],[59.4562,25.4814],[59.0461,25.4175],[58.7979,25.5546],[57.7961,25.6532],[57.3344,25.7917],[56.9824,26.9054],[56.3561,27.2001],[55.6503,26.9777],[54.8957,26.5565],[53.7056,26.7256],[53.4548,26.9431],[52.6918,27.3235],[52.476,27.6165],[51.6664,27.8451],[51.2788,28.1314],[51.0622,28.7262],[50.6752,29.1466],[50.6499,29.42],[49.9831,30.2093],[49.5548,30.0291],[48.9191,30.1209],[48.5467,29.9625],[48.0149,30.4654],[48.0105,30.9896],[47.6793,31.0025],[47.8298,31.7944],[47.3713,32.4239],[46.57,32.834],[46.1128,32.9579],[46.1457,33.2295],[45.3968,33.9708],[45.4377,34.4152],[45.6783,34.7982],[46.1337,35.1276],[45.7235,35.8365],[45.3618,36.0154],[44.7652,37.1424],[44.5614,37.7448],[44.2112,37.9081],[44.4309,38.3569],[44.023,39.3774],[44.8171,39.6504],[45.4798,39.0063],[46.1146,38.8776]]]},properties:{name:"Iran",id:"IR"},id:"IR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-6.218,54.0887],[-6.0274,52.927],[-6.5612,52.1888],[-7.5273,52.0989],[-8.8135,51.5849],[-10.3786,51.8688],[-9.9558,52.1367],[-9.2993,53.0975],[-9.7954,53.3951],[-9.996,54.276],[-8.6231,54.3468],[-8.764,54.6813],[-8.2746,55.1463],[-7.2468,55.3531],[-7.2186,55.0921],[-8.1183,54.4143],[-7.3553,54.1213],[-6.218,54.0887]]]},properties:{name:"Ireland",id:"IE"},id:"IE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[72.492,-7.3773],[72.4671,-7.3675],[72.4738,-7.3098],[72.4356,-7.2304],[72.4938,-7.2619],[72.492,-7.3773]]]},properties:{name:"British Indian Ocean Territory",id:"IO"},id:"IO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[78.7198,31.8876],[78.8445,31.3017],[79.1073,31.4025],[79.3386,31.1055],[79.3697,31.0798],[79.9165,30.8942],[79.9245,30.8889],[80.1913,30.5684],[80.6823,30.4148],[81.0103,30.1645],[80.4017,29.7303],[80.0706,28.8301],[80.5868,28.6494],[81.8528,27.8669],[81.9877,27.9139],[82.7335,27.5189],[83.2897,27.371],[84.0909,27.4913],[84.6103,27.2987],[84.6853,27.0412],[85.293,26.7412],[86.3663,26.5743],[86.7014,26.4349],[87.0166,26.5556],[87.2874,26.3603],[88.0549,26.43],[88.1614,26.7247],[87.9843,27.134],[88.1099,27.8704],[88.6213,28.0919],[88.8485,27.8686],[88.8912,27.316],[88.8579,26.9613],[89.7638,26.7016],[90.3458,26.8903],[90.7395,26.7718],[91.9984,26.8548],[92.0836,27.2907],[91.5949,27.5575],[91.6317,27.7599],[91.9775,27.7301],[92.6642,27.949],[92.702,28.147],[93.2067,28.5909],[93.9022,28.803],[94.6231,29.3126],[94.7696,29.1759],[95.4204,29.0543],[96.0352,29.4471],[96.4355,29.0507],[96.776,28.3671],[97.3224,28.218],[97.3353,27.9379],[96.6659,27.3391],[96.0613,27.217],[95.1287,26.5973],[95.1323,26.0411],[94.6227,25.4099],[94.7075,25.0486],[94.2929,24.3219],[94.1277,23.8763],[93.3074,24.0219],[93.4149,23.6823],[93.366,23.1323],[93.0788,22.7182],[93.1618,22.3604],[92.9643,22.0039],[92.575,21.9782],[92.4916,22.6853],[92.3615,22.929],[92.2461,23.6836],[91.938,23.5047],[91.6198,22.9796],[91.3152,23.1043],[91.1603,23.6605],[91.3672,24.0933],[91.8768,24.1954],[92.2514,24.895],[92.0499,25.1693],[90.4394,25.1578],[89.814,25.3052],[89.8229,25.9413],[89.2893,26.0376],[89.1082,26.2023],[88.4402,26.3696],[88.0846,25.8884],[88.4521,25.5746],[88.4561,25.1884],[88.1454,24.4857],[88.7336,24.2309],[88.5671,23.6743],[88.7407,23.4368],[89.0514,22.0932],[89.0518,21.6541],[88.2537,21.6222],[87.9483,21.8255],[87.1005,21.5006],[86.8595,21.2369],[86.9753,20.7002],[86.7503,20.3131],[86.2793,19.9194],[85.5748,19.693],[84.7709,19.1253],[84.1042,18.2926],[83.6541,18.0697],[83.1982,17.609],[82.3597,17.0963],[82.259,16.56],[81.7618,16.3297],[81.2385,16.264],[80.9788,15.7584],[80.6467,15.8951],[80.2934,15.7109],[80.0533,15.0739],[80.1656,14.5776],[80.1119,14.2123],[80.3422,13.3614],[80.229,12.6902],[79.8584,11.9888],[79.7541,11.5751],[79.8486,11.1969],[79.838,10.3225],[79.3905,10.306],[78.9964,9.6833],[78.9795,9.2687],[78.4215,9.1049],[78.1925,8.8909],[78.0602,8.3844],[77.5178,8.0782],[76.9669,8.4071],[76.5536,8.9029],[76.3246,9.452],[76.3463,9.9221],[75.9224,10.7841],[75.724,11.3616],[75.1966,12.0576],[74.7705,13.0773],[74.6711,13.6676],[74.3821,14.4946],[73.9493,15.0748],[73.932,15.397],[73.4761,16.0544],[73.3376,16.4597],[73.1561,17.6218],[72.8711,18.6832],[72.6678,19.8311],[72.8813,20.5631],[72.8138,21.117],[72.5431,21.6968],[72.5901,22.2783],[72.3326,22.2703],[72.037,21.8233],[72.2541,21.5312],[72.0153,21.1557],[71.0245,20.7388],[70.7191,20.7406],[70.1274,21.0948],[69.0088,22.1966],[70.1771,22.5726],[70.2512,22.9707],[69.6644,22.759],[69.2361,22.8487],[68.6408,23.19],[68.1649,23.8572],[68.7242,23.9646],[68.7282,24.2656],[69.5592,24.2731],[69.7163,24.1728],[70.5469,24.4183],[71.044,24.4001],[71.048,24.6877],[70.6521,25.4228],[70.2646,25.7064],[70.0777,26.0718],[70.1567,26.4713],[69.47,26.8046],[69.5681,27.1744],[70.1447,27.8491],[70.4035,28.0249],[70.7373,27.7293],[71.8701,27.9623],[72.342,28.752],[72.903,29.029],[73.3816,29.9345],[73.809,30.0934],[73.8991,30.4352],[74.6329,31.0345],[74.5099,31.7127],[75.3334,32.2792],[74.6578,32.5189],[73.9941,33.2424],[74.1499,33.507],[73.9613,34.6535],[74.3004,34.7654],[75.7093,34.5031],[76.5945,34.7357],[77.0486,35.1099],[77.7992,35.496],[77.8107,35.4845],[78.2821,34.654],[78.9364,34.3521],[78.7531,34.0876],[78.8019,33.4999],[79.1127,33.2264],[79.1353,33.1718],[79.2165,32.5641],[79.2192,32.5011],[78.3896,32.5197],[78.7198,31.8876]]]},properties:{name:"India",id:"IN"},id:"IN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-4.4121,54.1854],[-4.7457,54.1189],[-4.5086,54.3768],[-4.4121,54.1854]]]},properties:{name:"Isle of Man",id:"IM"},id:"IM"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[96.4924,5.2293],[97.4512,5.2359],[97.9084,4.8799],[98.2484,4.4147],[98.3074,4.0929],[99.7323,3.1829],[100.4572,2.2574],[100.6854,2.1202],[101.0462,2.2574],[101.4768,1.6932],[101.7849,1.6213],[102.1573,1.2591],[102.4694,.7792],[102.8493,.7153],[103.0664,.492],[103.4788,.4801],[103.7868,.0468],[103.4286,-.1916],[103.4313,-.5334],[103.7211,-.8867],[104.3608,-1.0385],[104.5685,-1.9218],[104.8451,-2.0932],[104.6684,-2.3857],[105.3968,-2.3804],[105.5819,-2.4918],[106.0445,-3.1062],[105.8438,-3.6135],[105.8873,-5.0096],[105.8163,-5.6767],[105.6183,-5.7997],[105.3493,-5.5493],[105.0812,-5.7455],[104.6396,-5.5205],[104.6014,-5.9044],[103.8312,-5.0797],[102.919,-4.4707],[102.5377,-4.152],[102.1276,-3.5993],[101.5785,-3.167],[100.8478,-2.1438],[100.8554,-1.9343],[100.4865,-1.2991],[100.3081,-.8268],[99.5978,.1023],[99.1593,.3518],[98.7962,1.4948],[98.5644,1.9023],[97.7006,2.3586],[97.591,2.8464],[97.3912,2.9752],[96.9691,3.5753],[96.4449,3.8163],[95.4949,4.7614],[95.2068,5.2839],[95.2277,5.5648],[95.629,5.6092],[96.1333,5.2941],[96.4924,5.2293]]],[[[120.0124,-9.3748],[120.5038,-9.674],[120.8327,-10.0375],[120.439,-10.2941],[120.1447,-10.2],[119.6009,-9.7734],[119.0856,-9.7068],[119.1855,-9.3846],[120.0124,-9.3748]]],[[[125.0679,-9.512],[124.4274,-10.1485],[123.8574,-10.3438],[123.5893,-9.9669],[123.7092,-9.6149],[124.0363,-9.3415],[124.4442,-9.1901],[124.9223,-8.9424],[125.0679,-9.512]]],[[[116.6406,-8.614],[116.3774,-8.9291],[116.0764,-8.7449],[116.0613,-8.4373],[116.4014,-8.2043],[116.7343,-8.3871],[116.6406,-8.614]]],[[[122.7828,-8.6117],[121.6513,-8.8989],[121.0351,-8.9353],[119.8078,-8.6974],[119.9183,-8.4453],[120.6103,-8.2407],[121.4444,-8.578],[121.9664,-8.4551],[122.263,-8.6251],[122.6034,-8.4027],[122.7828,-8.6117]]],[[[118.2426,-8.3179],[118.9879,-8.3379],[119.0061,-8.7498],[118.1898,-8.8403],[117.0614,-9.0991],[116.7884,-9.0064],[116.835,-8.5323],[117.1649,-8.3672],[117.567,-8.4266],[118.1174,-8.1221],[118.2426,-8.3179]]],[[[115.4479,-8.155],[115.7045,-8.4071],[115.2361,-8.7977],[114.4753,-8.1195],[115.4479,-8.155]]],[[[126.8009,-7.668],[126.4719,-7.9503],[125.8434,-7.8167],[126.6095,-7.5717],[126.8009,-7.668]]],[[[138.5351,-8.2735],[138.2963,-8.4053],[137.6851,-8.2624],[138.0074,-7.6414],[138.2954,-7.4385],[138.77,-7.3906],[138.9893,-7.696],[138.5351,-8.2735]]],[[[131.3255,-7.9996],[131.0866,-7.8651],[131.2602,-7.4705],[131.6912,-7.439],[131.3255,-7.9996]]],[[[113.8445,-7.1052],[113.4708,-7.2184],[112.7637,-7.1398],[112.868,-6.9001],[113.9746,-6.873],[113.8445,-7.1052]]],[[[134.537,-6.4424],[134.3559,-6.8149],[134.0589,-6.7691],[134.1681,-6.1761],[134.537,-6.4424]]],[[[107.3739,-6.0074],[107.6669,-6.2156],[108.295,-6.2649],[108.6776,-6.7905],[110.4261,-6.9471],[110.7369,-6.4722],[111.1546,-6.6693],[111.5403,-6.6484],[112.0872,-6.8934],[112.5391,-6.9263],[112.7943,-7.5526],[113.2484,-7.7182],[114.0705,-7.633],[114.4442,-7.8957],[114.387,-8.4053],[114.5836,-8.7698],[113.2533,-8.2868],[112.6789,-8.4093],[111.5101,-8.305],[110.6072,-8.1497],[110.0386,-7.8904],[109.2818,-7.7049],[108.7411,-7.6671],[108.4517,-7.7968],[107.9173,-7.724],[107.2852,-7.4718],[106.6313,-7.4155],[106.5199,-7.0537],[105.4838,-6.7816],[105.8682,-6.1166],[106.0751,-5.9142],[106.8253,-6.0984],[107.0463,-5.9044],[107.3739,-6.0074]]],[[[134.747,-5.7069],[134.7559,-6.1708],[134.4411,-6.335],[134.3413,-5.7127],[134.747,-5.7069]]],[[[122.6451,-5.2692],[122.3961,-5.0699],[122.369,-4.7672],[122.702,-4.6185],[122.6451,-5.2692]]],[[[126.8612,-3.0879],[127.2274,-3.3911],[127.2297,-3.6331],[126.6863,-3.8235],[126.2145,-3.6051],[126.0263,-3.1705],[126.8612,-3.0879]]],[[[129.7545,-2.866],[130.3791,-2.9894],[130.8598,-3.5705],[130.8052,-3.8577],[129.8442,-3.3272],[129.4678,-3.4533],[128.9675,-3.3259],[128.4193,-3.416],[128.0819,-3.1838],[128.1987,-2.866],[129.4274,-2.7905],[129.7545,-2.866]]],[[[108.2071,-2.9978],[107.6145,-3.2096],[107.6665,-2.5664],[108.0744,-2.597],[108.2071,-2.9978]]],[[[124.9694,-1.7057],[124.8344,-1.8943],[124.4176,-2.0053],[124.3808,-1.6875],[124.9694,-1.7057]]],[[[135.4741,-1.5916],[136.2016,-1.6551],[136.1927,-1.8593],[135.4741,-1.5916]]],[[[106.0458,-1.6693],[106.3658,-2.4647],[106.6788,-2.704],[106.547,-3.0555],[105.9988,-2.8247],[105.7857,-2.1815],[105.1332,-2.0426],[105.5855,-1.5268],[106.0458,-1.6693]]],[[[128.153,-1.6604],[127.5617,-1.7283],[127.6465,-1.3324],[128.153,-1.6604]]],[[[99.1637,-1.778],[98.8743,-1.6639],[98.6017,-1.1979],[98.869,-.9155],[99.2671,-1.6275],[99.1637,-1.778]]],[[[135.3831,-.6514],[135.8935,-.726],[135.8389,-1.1193],[135.3831,-.6514]]],[[[140.9734,-2.6099],[140.9739,-4.0232],[140.9748,-6.3461],[140.9761,-9.1187],[139.9347,-8.1013],[139.3856,-8.1892],[138.8561,-8.1452],[139.0878,-7.5872],[138.7478,-7.2517],[138.8645,-6.8584],[138.4388,-6.3435],[138.0611,-5.4654],[137.0894,-4.9243],[136.6189,-4.8187],[135.9797,-4.531],[135.1957,-4.4507],[134.1473,-3.7968],[133.9737,-3.8182],[133.6532,-3.3645],[133.2488,-4.0623],[132.9687,-4.0947],[132.7539,-3.7036],[132.7512,-3.2948],[132.3482,-2.9752],[133.1911,-2.4377],[133.6088,-2.5473],[133.9049,-2.391],[133.9218,-2.1021],[132.963,-2.2725],[132.3078,-2.2423],[132.0233,-1.9902],[131.9305,-1.5596],[131.2935,-1.3936],[131.2571,-.8556],[131.8044,-.7038],[132.1285,-.4539],[132.6252,-.3589],[133.4726,-.726],[133.9746,-.7442],[134.2596,-1.363],[134.106,-1.7212],[134.1557,-2.1953],[135.0373,-3.333],[135.4865,-3.345],[136.2433,-2.5832],[136.3898,-2.2734],[136.843,-2.1975],[137.1236,-1.8411],[137.8063,-1.4833],[138.6497,-1.7909],[139.7896,-2.3484],[140.6223,-2.4456],[140.9734,-2.6099]]],[[[97.4814,1.4651],[97.9319,.9741],[97.8764,.6283],[97.4054,.947],[97.2443,1.4238],[97.4814,1.4651]]],[[[124.889,.9954],[124.4274,.4707],[123.754,.3056],[123.2653,.3265],[123.0824,.4858],[121.8421,.4366],[121.4258,.4947],[120.3489,.4494],[120.1274,.1667],[120.012,-.307],[120.0972,-.6501],[120.5176,-1.0394],[120.6676,-1.3701],[121.0338,-1.4065],[121.5194,-.8556],[121.9695,-.9333],[122.2798,-.7571],[122.8888,-.7553],[122.5067,-1.3479],[121.7187,-1.8628],[121.349,-1.9458],[121.8484,-2.3316],[122.3992,-3.2007],[122.2527,-3.6206],[122.8773,-4.1089],[122.8973,-4.349],[122.207,-4.4964],[121.9172,-4.848],[121.4866,-4.5812],[121.618,-4.0929],[120.9144,-3.5558],[121.0542,-3.167],[121.052,-2.7515],[120.6538,-2.6676],[120.2539,-3.0529],[120.4368,-3.7072],[120.3627,-4.0858],[120.4199,-4.6176],[120.2792,-5.1463],[120.3116,-5.5418],[119.7172,-5.6932],[119.3763,-5.425],[119.6116,-4.4236],[119.6236,-4.0343],[119.4198,-3.4755],[118.9946,-3.5376],[118.8126,-3.1568],[118.7837,-2.7648],[119.0922,-2.4829],[119.3217,-1.9298],[119.3089,-1.4083],[119.7718,-.4836],[119.8091,.2386],[120.2694,.971],[120.5167,.8174],[120.9122,1.2888],[121.44,1.2142],[121.5918,1.0678],[122.4365,1.018],[122.8924,.8498],[123.2781,.9279],[123.8468,.8383],[124.2738,1.022],[124.9893,1.7012],[125.2339,1.5023],[124.889,.9954]]],[[[127.7326,.848],[128.1609,1.1579],[128.4242,1.5174],[128.6883,1.5725],[128.7025,1.1064],[128.299,.8769],[128.6914,.3602],[127.9829,.4721],[127.8875,.2985],[128.0464,-.706],[127.6918,-.2417],[127.7086,.2883],[127.5555,.4898],[127.4201,1.252],[127.6318,1.8437],[128.0109,1.7012],[128.0118,1.3319],[127.6527,1.0141],[127.7326,.848]]],[[[117.5746,4.1706],[117.6301,3.6361],[117.1662,3.5922],[117.6105,3.0644],[118.0664,2.3178],[117.8649,1.9684],[118.0806,1.7016],[118.9848,.9821],[118.5347,.8134],[118.196,.8742],[117.745,.7295],[117.5222,.2359],[117.4627,-.3238],[117.5626,-.7708],[116.5545,-1.474],[116.4236,-2.0528],[116.5656,-2.2996],[116.3308,-2.9024],[115.9561,-3.5949],[114.6937,-4.1697],[114.5361,-3.4946],[114.0825,-3.2788],[113.7957,-3.4564],[113.5258,-3.1838],[112.9714,-3.1869],[112.6003,-3.4005],[112.2851,-3.321],[111.8222,-3.5323],[111.8231,-3.0573],[111.3676,-2.9335],[111.0445,-3.0555],[110.5739,-2.8913],[110.2326,-2.925],[110.0191,-1.3989],[109.7874,-1.0114],[109.454,-.8689],[109.1606,-.4947],[109.2574,.0313],[108.9444,.3558],[108.9058,.7939],[109.0758,1.4957],[109.3785,1.9227],[109.6289,2.0275],[109.6542,1.6151],[110.5056,.8618],[110.9379,1.0172],[111.7698,.9994],[112.0783,1.1432],[112.1857,1.4393],[112.476,1.5592],[113.6222,1.236],[113.9022,1.4344],[114.5459,1.4673],[114.8304,1.98],[114.7865,2.2503],[115.1509,2.4931],[115.0861,2.8411],[115.4545,3.0342],[115.5686,3.9389],[115.8962,4.3486],[117.1005,4.337],[117.5746,4.1706]]]]},properties:{name:"Indonesia",id:"ID"},id:"ID"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.132,48.4053],[22.8764,47.9472],[22.2905,47.7279],[21.1519,46.3044],[20.2419,46.1086],[19.5308,46.1552],[18.9054,45.9315],[17.9639,45.7704],[17.3105,45.9963],[16.5163,46.4997],[16.0929,46.8632],[16.4533,47.0066],[16.4342,47.3675],[17.1475,48.0058],[17.7619,47.7701],[18.7242,47.787],[18.7917,48.0005],[19.8988,48.1314],[20.4901,48.5269],[21.4515,48.5522],[22.132,48.4053]]]},properties:{name:"Hungary",id:"HU"},id:"HU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.7791,19.7183],[-71.6571,19.1306],[-71.7683,18.0391],[-72.0599,18.2286],[-72.8767,18.1518],[-73.3851,18.2513],[-73.885,18.0418],[-74.419,18.3463],[-74.2276,18.6628],[-72.7894,18.4346],[-72.3478,18.6747],[-72.8112,19.0716],[-72.7033,19.4409],[-73.0527,19.6109],[-73.1177,19.9039],[-72.6369,19.9008],[-71.7791,19.7183]]]},properties:{name:"Haiti",id:"HT"},id:"HT"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[18.9054,45.9315],[19.0549,45.5271],[19.007,44.8693],[18.6625,45.0774],[17.8129,45.0779],[16.5305,45.2168],[16.2935,45.0086],[15.7879,45.1791],[15.7369,44.7658],[16.214,44.215],[17.6247,43.0426],[17.5852,42.9383],[16.903,43.3924],[15.9415,43.6565],[15.123,44.2567],[14.8548,45.081],[14.3861,45.342],[13.9657,44.8355],[13.6293,45.1081],[13.5778,45.5169],[13.8787,45.4286],[15.3396,45.4672],[15.6246,45.8338],[15.6361,46.2005],[16.5163,46.4997],[17.3105,45.9963],[17.9639,45.7704],[18.9054,45.9315]]],[[[17.6678,42.897],[18.4362,42.5597],[18.5174,42.4327],[17.6678,42.897]]]]},properties:{name:"Croatia",id:"HR"},id:"HR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.1576,14.9931],[-83.8674,14.7947],[-84.646,14.6611],[-84.9851,14.7525],[-85.1796,14.3432],[-85.7868,13.8443],[-86.1512,13.9948],[-86.3317,13.7702],[-86.7336,13.7635],[-86.7108,13.3134],[-87.0592,12.9916],[-87.3373,12.9792],[-87.4891,13.3529],[-87.8143,13.3991],[-87.7153,13.8128],[-88.151,13.9872],[-88.4491,13.851],[-89.0572,14.329],[-89.3626,14.416],[-89.2223,14.8661],[-88.9764,15.1427],[-88.2284,15.7291],[-87.6181,15.9097],[-86.9072,15.7624],[-86.3568,15.7832],[-85.7839,16.003],[-85.4836,15.8995],[-84.9738,15.9901],[-84.2614,15.8227],[-83.7604,15.2204],[-83.3691,15.2399],[-83.1576,14.9931]]]},properties:{name:"Honduras",id:"HN"},id:"HN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[73.7074,-53.1372],[73.465,-53.1843],[73.3363,-53.0298],[73.5858,-53.0271],[73.7074,-53.1372]]]},properties:{name:"Heard Island and McDonald Islands",id:"HM"},id:"HM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[114.0154,22.5117],[114.2658,22.541],[114.268,22.2956],[114.0154,22.5117]]]},properties:{name:"Hong Kong",id:"HK"},id:"HK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-57.1948,5.5484],[-57.3309,5.0202],[-57.7111,4.9909],[-58.0544,4.1719],[-57.8327,3.6761],[-57.5497,3.3529],[-57.3036,3.3769],[-57.2097,2.8828],[-56.7043,2.0363],[-56.4828,1.9422],[-56.8368,1.8814],[-57.1189,2.0141],[-57.5943,1.7043],[-58.3407,1.5876],[-58.5119,1.2848],[-58.8625,1.2036],[-59.2312,1.3758],[-59.7563,1.9005],[-59.7552,2.2743],[-59.9942,2.6902],[-59.8544,3.5873],[-59.5512,3.9335],[-59.8333,4.476],[-60.1112,4.511],[-59.9907,5.0828],[-60.142,5.239],[-60.7422,5.2022],[-61.3767,5.9071],[-61.1286,6.2142],[-61.1457,6.6945],[-60.3951,6.9453],[-60.7191,7.4989],[-60.5136,7.8131],[-60.0324,8.0537],[-59.8315,8.3059],[-60.0175,8.5491],[-59.2003,8.0746],[-58.6266,7.5459],[-58.4806,7.0381],[-57.9825,6.786],[-57.1902,6.0975],[-57.1948,5.5484]]]},properties:{name:"Guyana",id:"GY"},id:"GY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[144.7416,13.2593],[144.6493,13.4288],[144.7905,13.5269],[144.7416,13.2593]]]},properties:{name:"Guam",id:"GU"},id:"GU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-51.6526,4.0614],[-51.9906,3.7018],[-52.7006,2.3635],[-52.9648,2.1837],[-53.7678,2.3551],[-54.13,2.1211],[-54.6163,2.3266],[-54.1954,2.818],[-54.2032,3.1381],[-53.9904,3.5895],[-54.3508,4.0543],[-54.4522,5.0135],[-54.1559,5.3589],[-53.8472,5.7823],[-53.4544,5.5635],[-52.8993,5.425],[-52.2905,4.9421],[-51.9196,4.5244],[-51.6526,4.0614]]]},properties:{name:"French Guiana",id:"GF"},id:"GF"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-89.1615,17.8149],[-89.2374,15.8942],[-88.8941,15.8907],[-88.2284,15.7291],[-88.9764,15.1427],[-89.2223,14.8661],[-89.3626,14.416],[-89.8726,14.0454],[-90.0952,13.7364],[-90.607,13.9291],[-91.1461,13.9255],[-91.8191,14.2283],[-92.2352,14.5452],[-92.0748,15.0743],[-92.1871,15.3207],[-91.7365,16.07],[-90.4472,16.0726],[-90.417,16.3909],[-90.7107,16.7083],[-91.4096,17.2561],[-90.993,17.2525],[-90.9892,17.8163],[-89.1615,17.8149]]]},properties:{name:"Guatemala",id:"GT"},id:"GT"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-25.4324,70.9213],[-25.4022,70.6527],[-27.898,70.4541],[-27.7089,70.8971],[-25.4324,70.9213]]],[[[-52.7313,69.9447],[-52.0452,69.8071],[-52.1125,69.4891],[-53.5784,69.2567],[-53.7831,69.5064],[-54.804,69.6304],[-54.8304,70.1611],[-53.3751,70.2213],[-52.7313,69.9447]]],[[[-29.953,83.5649],[-25.9475,83.2897],[-24.4702,82.8773],[-21.5208,82.5954],[-25.1489,82.0011],[-21.3379,82.0687],[-21.1466,81.6952],[-17.2261,81.4304],[-15.5555,81.8337],[-12.1928,81.649],[-11.5288,81.424],[-14.5035,80.7633],[-16.7607,80.5733],[-16.8683,80.1982],[-19.4292,80.2577],[-20.1385,79.8033],[-19.2836,79.683],[-19.0749,79.1524],[-20.9557,78.5551],[-20.8625,77.9119],[-20.2319,77.3684],[-18.339,77.2152],[-18.5103,76.7782],[-20.9422,76.887],[-21.8772,76.5734],[-21.5692,76.2937],[-20.1037,76.2191],[-19.5091,75.7575],[-19.4261,75.2299],[-20.485,75.3143],[-19.2252,74.4795],[-19.3692,74.284],[-21.1295,74.1109],[-20.3673,73.8483],[-20.5096,73.493],[-22.1851,73.2699],[-22.0364,72.9184],[-22.2931,72.1196],[-24.0692,72.4987],[-24.6669,72.4374],[-22.0133,71.6888],[-21.7523,71.4784],[-21.5228,70.5262],[-23.3279,70.451],[-23.7917,70.5551],[-24.377,71.1463],[-25.7422,71.1836],[-26.7179,70.9506],[-27.6887,70.9934],[-28.5409,70.4769],[-28.0149,70.4024],[-26.7472,70.4756],[-23.1732,70.1145],[-23.0882,69.883],[-26.3414,68.7023],[-29.2496,68.2988],[-29.8686,68.3116],[-30.9786,68.0613],[-32.1373,68.3849],[-32.2747,67.9228],[-33.157,67.6267],[-34.1016,66.7258],[-34.6329,66.4349],[-36.3792,65.8307],[-37.7541,65.593],[-39.9609,65.5562],[-39.5779,65.3407],[-40.6554,64.9154],[-40.1822,64.48],[-40.6177,64.1317],[-40.5504,63.7254],[-42.1529,62.5686],[-42.3216,62.1526],[-42.1103,61.8572],[-42.4188,61.537],[-42.7171,60.7675],[-43.3201,59.9281],[-44.0654,59.9247],[-45.3793,60.2028],[-46.0467,60.6157],[-46.0116,61.0968],[-46.8746,60.8163],[-47.7963,60.829],[-48.922,61.2775],[-49.2891,61.59],[-49.5534,62.2328],[-50.3192,62.4731],[-50.3382,62.8287],[-51.4688,63.6423],[-51.4511,63.9047],[-52.0934,64.4158],[-52.259,65.1549],[-53.6346,66.4136],[-53.0382,66.8268],[-53.8845,67.1356],[-53.4189,67.5746],[-53.578,67.8369],[-53.0393,68.6108],[-51.2493,68.74],[-50.5,69.9358],[-52.2545,70.059],[-54.0143,70.4217],[-54.1659,70.8201],[-52.4052,70.6867],[-51.5246,70.4394],[-51.1302,70.9717],[-53.117,71.3128],[-53.4761,71.6402],[-54.6891,71.3672],[-55.5939,71.5536],[-55.3156,72.1107],[-55.6017,72.4536],[-54.7379,72.8724],[-56.104,73.5582],[-55.9295,73.8954],[-56.7063,74.2192],[-56.2556,74.5268],[-58.6035,75.3853],[-58.5163,75.6891],[-61.3747,76.1801],[-63.4388,76.3394],[-66.8262,75.9688],[-69.3728,76.3319],[-69.2521,76.6861],[-70.7928,76.869],[-70.8629,77.1755],[-69.3515,77.4671],[-72.8181,78.1945],[-72.3957,78.5043],[-68.9935,78.8574],[-67.4823,79.1169],[-65.9679,79.1324],[-64.7923,80.0007],[-66.8437,80.0761],[-66.996,80.413],[-62.9932,81.2069],[-61.436,81.1337],[-61.203,81.7469],[-58.7174,82.0932],[-54.7259,82.3513],[-52.7757,82.3218],[-50.8944,81.8952],[-48.8612,82.4054],[-45.2912,81.8288],[-44.239,82.3682],[-46.4782,82.9519],[-43.1945,83.255],[-32.9845,83.5995],[-29.953,83.5649]]]]},properties:{name:"Greenland",id:"GL"},id:"GL"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.7154,12.0128],[-61.715,12.185],[-61.6071,12.2232],[-61.6271,12.0541],[-61.7154,12.0128]]]},properties:{name:"Grenada",id:"GD"},id:"GD"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[23.8521,35.5355],[24.3129,35.3638],[24.7212,35.425],[25.4758,35.3061],[25.7448,35.1427],[24.7998,34.9345],[24.4638,35.1605],[23.5618,35.295],[23.8521,35.5355]]],[[[26.0391,40.7269],[25.1043,40.9945],[24.3839,40.9129],[23.8787,40.5444],[23.6643,40.2239],[23.3119,40.2164],[22.6296,40.4956],[22.5923,40.0371],[22.919,39.6291],[22.9656,39.0308],[23.2528,38.6614],[23.9671,38.2748],[23.5804,38.0107],[23.1938,37.9592],[23.1614,37.3338],[22.765,37.3932],[23.0735,36.7749],[22.6083,36.7798],[22.0805,37.0288],[21.5829,37.0807],[21.5714,37.541],[21.1448,37.9192],[21.4036,38.1967],[21.8248,38.3281],[22.7996,37.9814],[22.4219,38.4386],[21.4724,38.3214],[21.1133,38.3849],[20.7795,39.0086],[20.301,39.3273],[20.0013,39.7095],[20.6574,40.1174],[21.0312,40.6585],[20.9641,40.8498],[21.5758,40.8689],[21.9296,41.1073],[22.7246,41.1783],[22.9159,41.3363],[23.635,41.3869],[24.0558,41.5272],[25.2512,41.2436],[26.1355,41.3856],[26.321,41.7167],[26.6246,41.4016],[26.0391,40.7269]]],[[[23.4153,38.9588],[24.0989,38.6712],[23.7589,38.4013],[23.2519,38.8013],[23.4153,38.9588]]]]},properties:{name:"Greece",id:"GR"},id:"GR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.5907,1.0318],[9.3861,1.1392],[9.8069,1.9276],[9.8007,2.3044],[9.98,2.1677],[11.3286,2.1673],[11.3352,.9998],[9.5907,1.0318]]]},properties:{name:"Equatorial Guinea",id:"GQ"},id:"GQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-15.0431,10.9404],[-15.3931,11.2174],[-15.5018,11.7238],[-16.1384,11.9174],[-16.7119,12.3551],[-15.5748,12.4904],[-15.1962,12.68],[-13.7294,12.6738],[-13.7327,11.7358],[-14.6831,11.5085],[-15.0431,10.9404]]]},properties:{name:"Guinea-Bissau",id:"GW"},id:"GW"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-16.7634,13.064],[-16.8248,13.3409],[-16.5623,13.5873],[-15.5096,13.5864],[-15.8343,13.1563],[-16.6488,13.1541],[-16.7634,13.064]]]},properties:{name:"Gambia",id:"GM"},id:"GM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.3272,16.2302],[-61.5221,16.228],[-61.529,16.434],[-61.4065,16.4682],[-61.3272,16.2302]]]},properties:{name:"Guadeloupe",id:"GP"},id:"GP"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-11.3894,12.4043],[-11.3053,12.0155],[-10.9333,12.205],[-10.6774,11.8996],[-10.2748,12.2126],[-9.8207,12.0426],[-9.043,12.4025],[-8.8219,11.6732],[-8.4075,11.3865],[-8.2315,10.4379],[-7.9907,10.1627],[-8.1365,10.022],[-8.137,9.4955],[-7.8962,9.416],[-7.951,8.7866],[-7.8236,8.4674],[-8.232,7.5566],[-8.4863,7.5584],[-8.7083,7.6591],[-8.8896,7.2627],[-9.1175,7.2157],[-9.4598,7.4425],[-9.369,7.6396],[-9.5182,8.3463],[-9.7683,8.5345],[-10.2832,8.4852],[-10.5005,8.6876],[-10.6905,9.3144],[-11.2056,9.9776],[-11.911,9.9931],[-12.5016,9.8622],[-12.7559,9.3734],[-13.2928,9.0494],[-13.7005,9.8511],[-14.4269,10.2483],[-14.7758,10.9315],[-15.0431,10.9404],[-14.6831,11.5085],[-13.7327,11.7358],[-13.7294,12.6738],[-13.0828,12.6334],[-12.2912,12.328],[-11.3894,12.4043]]]},properties:{name:"Guinea",id:"GN"},id:"GN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-.0686,11.1157],[-.0577,10.6305],[.3627,10.2364],[.2619,9.4955],[.5291,9.3583],[.4153,8.6525],[.688,8.3041],[.5837,8.1456],[.6348,7.3537],[.5256,6.8508],[.7369,6.4526],[1.1874,6.0895],[.9499,5.8103],[.2597,5.7575],[-.7977,5.2266],[-1.6384,4.9807],[-2.0017,4.7623],[-3.1139,5.0885],[-3.0868,5.1285],[-3.0191,5.1307],[-2.7952,5.1844],[-3.2007,6.3483],[-3.2358,6.8073],[-2.9858,7.205],[-2.7899,7.9321],[-2.5058,8.2087],[-2.7466,9.1098],[-2.6958,9.4813],[-2.7865,10.4019],[-2.9148,10.5924],[-2.8298,10.9985],[-.7014,10.9888],[-.0686,11.1157]]]},properties:{name:"Ghana",id:"GH"},id:"GH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.5124,49.4946],[-2.5475,49.4287],[-2.646,49.4682],[-2.5124,49.4946]]]},properties:{name:"Guernsey",id:"GG"},id:"GG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.4298,41.8907],[46.1821,41.6573],[46.6189,41.3439],[46.4577,41.07],[45.281,41.4495],[45.0013,41.291],[43.4393,41.1073],[42.7876,41.5636],[42.4663,41.4398],[41.5101,41.5174],[41.7631,41.9702],[41.4888,42.6591],[40.8367,43.0635],[39.9782,43.42],[40.6481,43.534],[41.5807,43.2193],[42.4192,43.2242],[43.7824,42.747],[43.9573,42.5664],[44.5059,42.7488],[45.1602,42.6751],[45.7275,42.4749],[45.6388,42.205],[46.4298,41.8907]]]},properties:{name:"Georgia",id:"GE"},id:"GE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.2937,2.1615],[13.1627,1.6479],[13.2741,1.2409],[13.8512,1.4189],[14.181,1.3701],[14.4345,.8116],[14.0874,.5364],[13.8845,.1906],[13.8601,-.2035],[14.4806,-.6181],[14.3839,-1.8899],[14.0874,-2.4669],[13.7842,-2.1638],[13.465,-2.3955],[12.9918,-2.3134],[12.7934,-1.9316],[12.4321,-1.929],[12.4463,-2.3298],[11.5754,-2.3973],[11.5376,-2.8367],[11.934,-3.3188],[11.5043,-3.5203],[11.1301,-3.9163],[10.3476,-3.0129],[9.6245,-2.3671],[9.2658,-1.8251],[9.3306,-1.5348],[9.0647,-1.2982],[8.8215,-.7082],[9.2969,-.3514],[9.5907,1.0318],[11.3352,.9998],[11.3286,2.1673],[11.3485,2.2996],[13.2204,2.2565],[13.2937,2.1615]]]},properties:{name:"Gabon",id:"GA"},id:"GA"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[5.7897,49.5383],[6.3441,49.4527],[6.7356,49.1606],[7.4507,49.1522],[8.1348,48.9735],[7.5843,48.0644],[7.6154,47.5925],[7.0006,47.3227],[6.06,46.4282],[6.7583,46.4158],[7.021,45.9257],[7.1533,45.401],[6.6277,45.1178],[7.0308,44.7166],[6.9673,44.2802],[7.6771,44.0831],[7.4929,43.7671],[7.4387,43.7507],[7.4143,43.7711],[7.3779,43.7316],[6.4941,43.1692],[6.1159,43.0724],[5.4066,43.2286],[5.0599,43.4444],[4.7119,43.3733],[4.0527,43.5931],[3.2591,43.1931],[3.0518,42.9152],[3.2116,42.431],[2.0326,42.3537],[1.7059,42.5033],[1.4284,42.5961],[-.0411,42.6893],[-1.2855,43.0595],[-1.794,43.4075],[-1.4848,43.5638],[-1.2456,44.5599],[-1.066,45.8059],[-1.1464,46.3115],[-1.7867,46.5148],[-2.0188,47.0377],[-3.1587,47.6946],[-4.312,47.8229],[-4.6291,48.0857],[-4.3932,48.3676],[-4.7208,48.5398],[-3.2315,48.8408],[-2.6924,48.5367],[-2.4463,48.6483],[-1.4375,48.6415],[-1.8564,49.6837],[-1.2587,49.6802],[-1.1386,49.3879],[-.1636,49.2969],[.1869,49.703],[1.2456,49.9982],[1.5514,50.2938],[1.5794,50.7393],[1.9123,50.9905],[2.5249,51.0971],[2.8396,50.7118],[4.1744,50.2466],[4.8677,49.788],[5.7897,49.5383]]],[[[9.4802,42.8056],[9.5508,42.1296],[9.1863,41.3847],[8.8077,41.5885],[8.7132,42.5499],[9.4802,42.8056]]]]},properties:{name:"France",id:"FR"},id:"FR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[158.315,6.8135],[158.1836,6.8011],[158.1348,6.9449],[158.2946,6.9511],[158.315,6.8135]]]},properties:{name:"Federated States of Micronesia",id:"FM"},id:"FM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-6.6311,62.2279],[-7.0135,62.094],[-7.1722,62.2856],[-6.6311,62.2279]]]},properties:{name:"Faroe Islands",id:"FO"},id:"FO"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-58.8501,-51.2698],[-58.4737,-51.509],[-57.9765,-51.3843],[-57.8382,-51.7092],[-58.6834,-51.9361],[-59.0681,-52.1731],[-59.5708,-51.9254],[-59.0596,-51.6857],[-58.8501,-51.2698]]],[[[-60.2863,-51.462],[-59.268,-51.4274],[-59.9214,-51.9693],[-60.2863,-51.462]]]]},properties:{name:"Falkland Islands",id:"FK"},id:"FK"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[178.2804,-17.372],[178.5915,-17.6516],[178.6679,-18.0808],[177.8471,-18.2549],[177.3215,-18.0773],[177.2638,-17.8633],[177.6181,-17.4612],[178.2804,-17.372]]],[[[179.9991,-16.1686],[179.7483,-16.4464],[179.9281,-16.7443],[179.007,-16.9001],[178.805,-16.6315],[179.5517,-16.2498],[179.9991,-16.1686]]]]},properties:{name:"Fiji",id:"FJ"},id:"FJ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.9657,69.0219],[28.4708,68.4883],[29.3439,68.062],[29.9414,67.5475],[29.0869,66.9709],[29.9032,66.0911],[29.604,64.9685],[30.0728,64.7649],[30.1083,64.3661],[30.5038,64.0205],[30.0555,63.689],[31.1807,63.2082],[31.5341,62.8855],[31.2855,62.5679],[29.6902,61.5461],[27.7978,60.5362],[25.6565,60.3331],[23.7216,59.9656],[22.7934,60.0768],[22.5759,60.3591],[21.436,60.5964],[21.3605,60.9675],[21.606,61.5916],[21.2562,61.9897],[21.1035,62.6229],[22.2434,63.4379],[23.2488,63.8963],[24.5579,64.8009],[25.3729,65.0095],[25.348,65.4792],[24.1557,65.8052],[23.7012,66.4808],[23.9884,66.8106],[23.4681,67.45],[23.639,67.9543],[22.7823,68.3911],[21.9975,68.5207],[20.6223,69.037],[21.622,69.2707],[22.4108,68.7198],[23.8539,68.8059],[24.9414,68.5933],[25.7484,68.9901],[26.0116,69.6526],[26.5257,69.915],[27.8897,70.0617],[29.1415,69.6715],[28.9657,69.0219]]]},properties:{name:"Finland",id:"FI"},id:"FI"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[42.3784,12.4665],[41.7667,11.5889],[41.7982,10.9803],[42.5577,11.0806],[42.9226,10.9994],[42.6594,10.6212],[42.8418,10.2031],[43.1818,9.8799],[43.4828,9.3796],[44.023,8.9859],[46.9784,7.9969],[47.9781,7.9969],[45.9348,5.9972],[44.9405,4.9119],[44.0283,4.9509],[43.5383,4.8404],[43.0158,4.5634],[42.7916,4.2922],[42.0241,4.1377],[41.8839,3.9779],[41.2207,3.9437],[40.7653,4.2731],[39.8424,3.8514],[39.4944,3.4559],[38.0864,3.649],[36.9056,4.4116],[36.0818,4.4498],[35.763,4.808],[35.7448,5.3442],[35.2681,5.4925],[35.0821,5.6731],[34.7106,6.6604],[34.0643,7.2259],[33.6661,7.6711],[33.2262,7.7608],[33.0127,7.9516],[33.2342,8.3964],[33.9533,8.4435],[34.0945,8.5824],[34.078,9.4613],[34.2915,10.1249],[34.2756,10.528],[34.5716,10.88],[34.9312,10.8649],[35.1123,11.8166],[35.5961,12.5375],[36.1075,12.7266],[36.2123,13.2712],[36.3907,13.6259],[36.5243,14.2567],[37.0246,14.2718],[37.2572,14.4538],[37.571,14.1493],[37.8844,14.8524],[38.5045,14.4245],[39.074,14.6282],[40.2215,14.4311],[40.7697,14.1444],[41.3627,13.4998],[41.7649,13.1838],[42.3784,12.4665]]]},properties:{name:"Ethiopia",id:"ET"},id:"ET"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[28.0127,59.4842],[27.4272,58.7331],[27.753,57.8411],[27.3517,57.5282],[26.5328,57.5311],[25.9912,57.8382],[25.111,58.0635],[24.3226,57.8706],[24.529,58.3543],[23.7678,58.3609],[23.5094,58.6585],[23.4943,59.1957],[24.3803,59.4726],[25.5091,59.6389],[26.9749,59.4507],[28.0127,59.4842]]],[[[22.6172,58.6213],[23.2928,58.4834],[22.1875,58.1543],[22.0814,58.4781],[22.6172,58.6213]]]]},properties:{name:"Estonia",id:"EE"},id:"EE"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-1.794,43.4075],[-1.2855,43.0595],[-.0411,42.6893],[1.4284,42.5961],[1.4861,42.4345],[1.7059,42.5033],[2.0326,42.3537],[3.2116,42.431],[3.248,41.9445],[2.0827,41.2875],[1.0329,41.062],[-.3269,39.5199],[-.2049,39.0627],[.2015,38.7591],[-.3813,38.4355],[-.6468,38.1518],[-.8221,37.581],[-1.3275,37.561],[-1.7975,37.233],[-2.1116,36.7767],[-4.3668,36.7181],[-4.6742,36.5063],[-5.1716,36.4238],[-5.6254,36.026],[-6.0407,36.1885],[-6.4924,36.9547],[-6.8845,37.1944],[-7.4061,37.1793],[-7.5036,37.5854],[-7.1855,38.0062],[-7.3431,38.4572],[-7.0461,38.9069],[-7.4452,39.5363],[-7.0368,39.7139],[-7.0146,40.2084],[-6.8102,40.3429],[-6.9285,41.0092],[-6.2125,41.5321],[-6.6182,41.9422],[-7.4037,41.8335],[-7.9208,41.8836],[-8.2131,42.1336],[-8.7771,41.9409],[-8.691,42.2743],[-9.2352,42.977],[-8.8736,43.3343],[-7.6982,43.7644],[-7.2621,43.5948],[-5.6658,43.5824],[-4.523,43.416],[-3.6046,43.5194],[-3.0455,43.3716],[-2.3371,43.3281],[-1.794,43.4075]]],[[[3.1454,39.7902],[3.4619,39.6979],[3.0726,39.3011],[2.3713,39.6131],[2.785,39.8546],[3.1454,39.7902]]],[[[-16.3346,28.38],[-16.6579,28.0071],[-16.9054,28.3396],[-16.3346,28.38]]]]},properties:{name:"Spain",id:"ES"},id:"ES"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[38.6093,18.0049],[38.9116,17.427],[39.1424,16.7292],[39.2991,15.9213],[39.5064,15.532],[39.8637,15.4703],[40.2042,15.014],[41.1763,14.6202],[41.6584,13.9832],[42.2452,13.5877],[42.7961,12.8642],[43.1166,12.7084],[42.67,12.3764],[42.3784,12.4665],[41.7649,13.1838],[41.3627,13.4998],[40.7697,14.1444],[40.2215,14.4311],[39.074,14.6282],[38.5045,14.4245],[37.8844,14.8524],[37.571,14.1493],[37.2572,14.4538],[37.0246,14.2718],[36.5243,14.2567],[36.4267,15.132],[36.9136,16.2964],[37.0091,17.059],[37.4112,17.0616],[37.7823,17.458],[38.2537,17.5845],[38.6093,18.0049]]]},properties:{name:"Eritrea",id:"ER"},id:"ER"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-6.218,54.0887],[-7.3553,54.1213],[-8.1183,54.4143],[-7.2186,55.0921],[-6.1293,55.2175],[-5.4703,54.5002],[-5.6068,54.2727],[-6.218,54.0887]]],[[[-3.1097,58.5154],[-3.9901,57.959],[-3.4029,57.7082],[-2.0741,57.7024],[-1.778,57.4938],[-2.6527,56.3183],[-3.1783,56.0802],[-2.1471,55.9031],[-1.6555,55.5704],[-1.2917,54.7738],[-.6714,54.5039],[-.2055,54.0217],[.5589,52.967],[1.6566,52.7537],[1.5589,52.0869],[.9553,51.8077],[.6867,51.3865],[1.4151,51.3632],[.9601,50.9259],[.2051,50.763],[-1.5168,50.7475],[-2.5477,50.6163],[-3.4047,50.6323],[-3.7933,50.2293],[-4.1726,50.3908],[-5.3422,50.2461],[-4.583,50.7764],[-4.1881,51.1885],[-3.1359,51.2049],[-4.3863,51.7412],[-4.9023,51.6262],[-5.0881,51.9959],[-4.3832,52.1973],[-3.9804,52.5417],[-4.1111,53.2189],[-3.0646,53.4268],[-2.925,53.7327],[-3.958,54.7809],[-5.1354,54.8575],[-4.7212,55.421],[-5.2457,55.9293],[-5.6097,56.0553],[-5.392,56.5148],[-5.9368,56.6058],[-5.562,57.2328],[-5.8181,57.4361],[-5.3382,58.2386],[-4.7155,58.5101],[-3.1097,58.5154]]]]},properties:{name:"United Kingdom",id:"GB"},id:"GB"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.1983,31.3226],[34.2454,31.2085],[34.9041,29.4773],[34.7363,29.2705],[34.3999,28.016],[34.2201,27.7643],[33.7602,28.0475],[33.2475,28.5678],[33.0757,29.0729],[32.7215,29.5217],[32.6318,28.9921],[32.8982,28.5651],[33.5471,27.8984],[33.5498,27.6072],[33.8929,27.0497],[33.9591,26.6488],[34.565,25.6913],[35.194,24.4751],[35.6246,24.0658],[35.5229,23.4426],[35.6978,22.9463],[36.2296,22.6289],[36.8714,21.9968],[34.2467,21.9964],[32.6061,21.9959],[30.3285,21.9951],[27.2723,21.9955],[24.9805,21.9959],[24.9805,24.2416],[24.9805,25.8134],[24.9805,27.8345],[24.9805,29.1817],[24.7115,30.1316],[24.9738,30.7766],[24.8526,31.335],[25.1505,31.655],[25.3822,31.513],[25.8931,31.6209],[27.2479,31.3781],[27.9674,31.0975],[28.5147,31.0505],[29.0723,30.8303],[29.5916,31.0114],[30.3951,31.4575],[30.7005,31.4038],[31.1941,31.5876],[32.1018,31.0926],[33.1299,31.1681],[33.6665,31.1304],[34.1983,31.3226]]]},properties:{name:"Egypt",id:"EG"},id:"EG"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-91.2722,.0251],[-90.7997,-.7522],[-90.9055,-.9404],[-91.3692,-.287],[-91.2722,.0251]]],[[[-75.2845,-.1063],[-75.2632,-.5555],[-75.5706,-1.5312],[-76.0898,-2.1331],[-76.679,-2.5628],[-77.8607,-2.9819],[-78.3472,-3.4311],[-78.4198,-3.7769],[-79.0763,-4.9905],[-79.3308,-4.9279],[-79.6385,-4.4547],[-80.1396,-4.2962],[-80.4885,-4.3939],[-80.51,-4.0694],[-80.1793,-3.8776],[-80.3247,-3.388],[-79.9217,-3.0902],[-79.7299,-2.5793],[-80.4501,-2.6259],[-80.9628,-2.1891],[-80.7704,-2.0768],[-80.8015,-1.3834],[-80.9024,-1.0789],[-80.554,-.8481],[-80.4823,-.3682],[-80.1334,-.006],[-80.0251,.4104],[-80.0883,.7846],[-79.7412,.9799],[-78.8996,1.2063],[-78.8597,1.4553],[-78.3121,1.046],[-77.4676,.6363],[-77.4228,.425],[-76.4946,.2355],[-76.311,.4485],[-75.8798,.1511],[-75.2845,-.1063]]]]},properties:{name:"Ecuador",id:"EC"},id:"EC"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[8.5764,36.9374],[8.2306,36.5454],[8.2457,35.8707],[8.3944,35.204],[8.2457,34.7339],[7.5138,34.0805],[7.5,33.8323],[7.7628,33.2331],[8.2111,32.9268],[8.3332,32.5437],[9.0439,32.0723],[9.5188,30.2293],[9.3102,30.1152],[9.6724,29.567],[9.8424,28.9668],[9.9161,27.7856],[9.7474,27.3306],[9.8593,26.5521],[9.4913,26.3337],[9.4482,26.0673],[10.0009,25.3322],[10.2557,24.5909],[10.6863,24.5514],[11.5075,24.3144],[11.9678,23.518],[9.3785,21.9915],[7.4818,20.8729],[5.8367,19.4791],[4.2276,19.1426],[3.4007,18.9886],[3.1059,19.1502],[3.2559,19.4107],[3.2036,19.7898],[2.4063,20.0637],[2.2195,20.2479],[1.6855,20.3784],[1.1657,20.8174],[1.1457,21.1024],[-1.2931,22.6964],[-3.2579,23.981],[-4.8227,24.9958],[-6.2387,25.848],[-8.6834,27.2858],[-8.6834,27.6565],[-8.6599,28.7187],[-7.6851,29.3495],[-7.095,29.6251],[-6.6353,29.5687],[-6.5008,29.8093],[-5.4488,29.9567],[-4.9683,30.4654],[-4.3228,30.6989],[-3.8335,31.1978],[-3.8268,31.6617],[-3.0174,31.8344],[-2.9308,32.0426],[-2.4485,32.13],[-1.2753,32.0892],[-1.0656,32.4683],[-1.5099,32.8775],[-1.6792,33.3187],[-1.7955,34.7521],[-2.2197,35.1041],[-1.9132,35.0943],[-.9175,35.6683],[.0479,35.9004],[.5149,36.2618],[1.2571,36.5197],[2.5932,36.6009],[2.9727,36.7847],[3.7788,36.8961],[4.7581,36.8965],[5.1958,36.6768],[6.0649,36.8641],[6.4866,37.0856],[6.9274,36.9196],[7.6079,36.9999],[7.9106,36.8566],[8.5764,36.9374]]]},properties:{name:"Algeria",id:"DZ"},id:"DZ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.7683,18.0391],[-71.6571,19.1306],[-71.7791,19.7183],[-71.5578,19.8954],[-70.9542,19.9141],[-70.1294,19.6362],[-69.7394,19.2993],[-68.6848,18.9047],[-68.3594,18.538],[-68.6588,18.222],[-68.9349,18.408],[-69.7707,18.4435],[-70.1831,18.2517],[-71.0278,18.273],[-71.3958,17.6462],[-71.7683,18.0391]]]},properties:{name:"Dominican Republic",id:"DO"},id:"DO"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[9.7399,54.8255],[8.6701,54.9034],[8.6159,55.4181],[8.1321,55.5999],[8.1641,56.6069],[8.6186,57.1114],[9.5543,57.2325],[9.9623,57.581],[10.5371,57.4485],[10.2828,56.6204],[10.1829,55.8651],[9.5912,55.4932],[9.7399,54.8255]]],[[[12.5688,55.785],[11.6539,55.1869],[11.2864,55.2044],[10.9788,55.7215],[12.219,56.1186],[12.5688,55.785]]],[[[10.645,55.6099],[10.7852,55.1334],[9.9889,55.1631],[9.8606,55.5156],[10.645,55.6099]]]]},properties:{name:"Denmark",id:"DK"},id:"DK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.2817,15.2492],[-61.481,15.5253],[-61.3201,15.5853],[-61.2817,15.2492]]]},properties:{name:"Dominica",id:"DM"},id:"DM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.2462,11.4997],[42.9226,10.9994],[42.5577,11.0806],[41.7982,10.9803],[41.7667,11.5889],[42.3784,12.4665],[42.67,12.3764],[43.1166,12.7084],[43.41,12.1899],[43.2719,11.9698],[42.7992,11.7394],[43.2462,11.4997]]]},properties:{name:"Djibouti",id:"DJ"},id:"DJ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.7399,54.8255],[10.3604,54.4382],[11.3996,53.9446],[12.1111,54.1684],[12.5755,54.4673],[13.0287,54.4109],[13.8654,53.8534],[14.2587,53.7296],[14.4145,53.2835],[14.1286,52.8782],[14.6196,52.5284],[14.7527,52.0818],[14.6018,51.8324],[15.0164,51.2527],[14.8096,50.8589],[14.3692,50.8986],[12.4525,50.3498],[12.2763,50.0424],[12.6318,49.4613],[13.8148,48.7669],[13.4095,48.3942],[12.8143,48.1607],[12.686,47.6693],[11.717,47.5837],[11.2979,47.4247],[10.4306,47.541],[10.3129,47.3133],[9.5241,47.5242],[8.6177,47.7661],[7.6154,47.5925],[7.5843,48.0644],[8.1348,48.9735],[7.4507,49.1522],[6.7356,49.1606],[6.3441,49.4527],[6.4875,49.7985],[6.1164,50.1209],[6.3645,50.3163],[5.9939,50.7504],[5.8949,50.9843],[6.1932,51.4888],[5.9486,51.7625],[6.7418,51.9109],[7.0352,52.3801],[7.1973,53.2823],[7.2852,53.6814],[8.0091,53.6907],[8.5387,53.5569],[8.8978,53.8357],[8.9573,54.5383],[8.6701,54.9034],[9.7399,54.8255]]]},properties:{name:"Germany",id:"DE"},id:"DE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[14.8096,50.8589],[16.0072,50.6117],[16.6792,50.0974],[17.152,50.3784],[17.8746,49.9722],[18.5622,49.8792],[18.8321,49.5108],[18.161,49.2574],[17.7583,48.888],[17.1884,48.861],[16.9531,48.5988],[16.4777,48.8001],[16.0573,48.7549],[14.972,48.9839],[14.6915,48.5993],[14.0492,48.6024],[13.8148,48.7669],[12.6318,49.4613],[12.2763,50.0424],[12.4525,50.3498],[14.3692,50.8986],[14.8096,50.8589]]]},properties:{name:"Czechia",id:"CZ"},id:"CZ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.4633,35.5937],[33.9418,35.2918],[34.0501,34.9882],[32.9417,34.5758],[32.4489,34.7294],[32.3171,34.9532],[32.9417,35.3904],[33.4588,35.3358],[34.4633,35.5937]]]},properties:{name:"Cyprus",id:"CY"},id:"CY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-81.3696,19.349],[-81.1306,19.3468],[-81.3037,19.2718],[-81.3696,19.349]]]},properties:{name:"Cayman Islands",id:"KY"},id:"KY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[105.7253,-10.493],[105.6969,-10.564],[105.5842,-10.5125],[105.7053,-10.4308],[105.7253,-10.493]]]},properties:{name:"Christmas Island",id:"CX"},id:"CX"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-68.7511,12.0599],[-68.8033,12.0457],[-68.995,12.142],[-69.154,12.2982],[-69.0767,12.3422],[-69.0132,12.2312],[-68.8275,12.1584],[-68.7511,12.0599]]]},properties:{name:"Curaçao",id:"CW"},id:"CW"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-82.5617,21.5716],[-82.8531,21.4437],[-83.0826,21.7913],[-82.7146,21.8903],[-82.5617,21.5716]]],[[[-81.8375,23.1629],[-81.1785,23.0595],[-80.6501,23.103],[-80.0752,22.9423],[-79.183,22.3879],[-78.6865,22.367],[-77.8651,21.9005],[-77.4973,21.8717],[-76.6475,21.2844],[-75.7229,21.1108],[-75.6428,20.7335],[-74.8826,20.6505],[-74.2529,20.0797],[-75.1165,19.9012],[-76.1586,19.9896],[-77.7151,19.8555],[-77.2135,20.3003],[-77.2297,20.6438],[-77.9974,20.7153],[-78.4908,21.0536],[-78.6366,21.5157],[-79.2745,21.5627],[-80.2313,21.8721],[-80.4992,22.0634],[-80.9619,22.0528],[-81.8162,22.2001],[-81.9034,22.6791],[-82.7382,22.6893],[-83.3796,22.2228],[-84.3264,22.0745],[-84.3612,22.379],[-84.045,22.6662],[-83.2577,22.9676],[-82.1014,23.1905],[-81.8375,23.1629]]]]},properties:{name:"Cuba",id:"CU"},id:"CU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.6419,10.9173],[-83.4482,10.4658],[-82.7783,9.6695],[-82.5635,9.5767],[-82.9399,9.4493],[-82.917,8.7404],[-82.9976,8.3676],[-82.8793,8.0706],[-83.1625,8.5882],[-83.734,8.6144],[-83.6373,9.0352],[-83.8956,9.2762],[-84.6589,9.6469],[-85.1145,9.5816],[-85.6248,9.9025],[-85.8305,10.3979],[-85.6672,10.7451],[-85.7444,11.062],[-85.6215,11.1845],[-84.9092,10.9453],[-84.3484,10.9799],[-84.1684,10.7806],[-83.6419,10.9173]]]},properties:{name:"Costa Rica",id:"CR"},id:"CR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-23.4442,15.0078],[-23.7054,14.9611],[-23.7007,15.2714],[-23.4442,15.0078]]]},properties:{name:"Cape Verde",id:"CV"},id:"CV"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.4659,-11.9014],[43.2266,-11.7518],[43.3793,-11.6142],[43.4659,-11.9014]]]},properties:{name:"Comoros",id:"KM"},id:"KM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.3197,11.8619],[-71.958,11.6666],[-72.2485,11.1965],[-72.6902,10.8361],[-72.8693,10.4911],[-73.0065,9.7894],[-73.3563,9.2269],[-72.7963,9.1089],[-72.6654,8.6277],[-72.4166,8.3818],[-72.443,7.4549],[-72.0843,7.0967],[-71.0134,6.9946],[-70.6552,7.0829],[-70.095,6.9378],[-69.4392,6.1348],[-68.4717,6.1565],[-67.8591,6.2897],[-67.4394,6.0256],[-67.8249,5.2705],[-67.8553,4.507],[-67.6616,3.8643],[-67.3111,3.416],[-67.8347,2.8926],[-67.2108,2.3901],[-66.8761,1.2231],[-67.352,2.0861],[-67.8152,1.79],[-68.1765,1.7198],[-69.8486,1.7087],[-69.8522,1.0593],[-69.3615,1.0642],[-69.1633,.864],[-70.0539,.5786],[-70.0706,-.1387],[-69.6675,-.4823],[-69.4003,-1.1948],[-69.6691,-2.6676],[-69.9658,-4.2359],[-70.3396,-3.8142],[-70.7351,-3.7818],[-70.0741,-2.7502],[-70.9146,-2.2184],[-71.3969,-2.3342],[-71.7525,-2.1527],[-72.3957,-2.4288],[-73.1545,-2.2783],[-73.1969,-1.8304],[-73.4963,-1.6932],[-73.6643,-1.2489],[-74.2465,-.9706],[-74.4178,-.5809],[-74.8018,-.2],[-75.2845,-.1063],[-75.8798,.1511],[-76.311,.4485],[-76.4946,.2355],[-77.4228,.425],[-77.4676,.6363],[-78.3121,1.046],[-78.8597,1.4553],[-78.5769,1.774],[-78.6171,2.3067],[-78.1201,2.4882],[-77.67,2.8788],[-77.2428,3.5855],[-77.1666,3.8621],[-77.4272,4.0605],[-77.2863,4.7219],[-77.4017,5.4161],[-77.2492,5.7801],[-77.4694,6.177],[-77.36,6.5046],[-77.9011,7.2294],[-77.7439,7.537],[-77.3509,7.7057],[-77.2124,8.0338],[-77.3742,8.6583],[-76.8519,8.0906],[-76.8879,8.6197],[-76.2769,8.989],[-76.1355,9.2656],[-75.6394,9.4502],[-75.671,10.1964],[-75.4459,10.611],[-74.8446,11.1095],[-74.4542,10.9892],[-74.0592,11.3408],[-73.3134,11.2959],[-72.722,11.7123],[-72.275,11.8894],[-72.1358,12.1886],[-71.7145,12.4199],[-71.2622,12.3351],[-71.3197,11.8619]]]},properties:{name:"Colombia",id:"CO"},id:"CO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-159.7406,-21.2494],[-159.8395,-21.2383],[-159.832,-21.2005],[-159.7683,-21.1885],[-159.7406,-21.2494]]]},properties:{name:"Cook Islands",id:"CK"},id:"CK"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[18.6102,3.4785],[18.4908,2.9246],[18.0722,2.0133],[18.058,1.5347],[17.9026,1.1179],[17.8875,.2341],[17.7242,-.2777],[17.753,-.5489],[17.2789,-.9994],[16.8799,-1.2258],[16.5407,-1.8402],[16.2154,-2.178],[16.2171,-3.0302],[16.1466,-3.4639],[15.8722,-3.9345],[15.6001,-4.0308],[14.7794,-4.8458],[14.4105,-4.8311],[14.3581,-4.2993],[13.4149,-4.8373],[13.0726,-4.6349],[12.8809,-4.4454],[12.3846,-4.6189],[12.0184,-5.0042],[11.7773,-4.5657],[11.1301,-3.9163],[11.5043,-3.5203],[11.934,-3.3188],[11.5376,-2.8367],[11.5754,-2.3973],[12.4463,-2.3298],[12.4321,-1.929],[12.7934,-1.9316],[12.9918,-2.3134],[13.465,-2.3955],[13.7842,-2.1638],[14.0874,-2.4669],[14.3839,-1.8899],[14.4806,-.6181],[13.8601,-.2035],[13.8845,.1906],[14.0874,.5364],[14.4345,.8116],[14.181,1.3701],[13.8512,1.4189],[13.2741,1.2409],[13.1627,1.6479],[13.2937,2.1615],[14.4842,2.1549],[14.9023,2.0124],[15.7417,1.9152],[16.0596,1.6763],[16.1834,2.2703],[16.4684,2.8318],[16.6735,3.5354],[17.4379,3.6845],[18.161,3.4998],[18.6102,3.4785]]]},properties:{name:"Republic of Congo",id:"CG"},id:"CG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[27.4032,5.1094],[27.7881,4.6446],[28.192,4.3503],[28.7269,4.5048],[29.1513,4.3881],[29.6768,4.5869],[30.1949,3.9819],[30.5083,3.8359],[30.8385,3.4905],[30.7284,2.4554],[31.1763,2.2703],[31.2527,2.0448],[30.9424,1.683],[29.9427,.8192],[29.9343,.4991],[29.7177,.0983],[29.5619,-.9772],[29.577,-1.3878],[29.1295,-1.8601],[29.1064,-2.2335],[28.8765,-2.4004],[29.0146,-2.7204],[29.2245,-3.0533],[29.2232,-3.9109],[29.4034,-4.4494],[29.3426,-4.9829],[29.5943,-5.651],[29.4802,-6.0252],[29.7097,-6.6169],[30.3134,-7.2037],[30.7511,-8.1936],[28.9724,-8.4648],[28.9178,-8.7005],[28.4007,-9.2248],[28.6301,-9.8311],[28.639,-10.6692],[28.3572,-11.4828],[28.4823,-11.8122],[29.0643,-12.3489],[29.4274,-12.4314],[29.7954,-12.1553],[29.7954,-13.3929],[29.5543,-13.2491],[29.0141,-13.3689],[28.3576,-12.482],[27.5333,-12.1953],[27.0459,-11.616],[26.9496,-11.8988],[26.5962,-11.972],[26.0258,-11.8903],[25.3493,-11.6231],[25.1847,-11.2431],[24.5184,-11.4384],[24.32,-11.0718],[23.9666,-10.8716],[23.8339,-11.0136],[22.5613,-11.0558],[22.3069,-10.6914],[22.1977,-10.0406],[21.8133,-9.4689],[21.9056,-8.6934],[21.7511,-7.3054],[20.6077,-7.2778],[20.4821,-6.9161],[19.8753,-6.9862],[19.5277,-7.1447],[19.3408,-7.9668],[18.6532,-7.9361],[17.536,-8.076],[17.1551,-7.4612],[16.7094,-6.4717],[16.7179,-6.2414],[16.3152,-5.8658],[14.3985,-5.8925],[13.0682,-5.8649],[12.4117,-5.9866],[12.2137,-5.7589],[12.5035,-5.6958],[12.5222,-5.1489],[12.8298,-4.7366],[13.0726,-4.6349],[13.4149,-4.8373],[14.3581,-4.2993],[14.4105,-4.8311],[14.7794,-4.8458],[15.6001,-4.0308],[15.8722,-3.9345],[16.1466,-3.4639],[16.2171,-3.0302],[16.2154,-2.178],[16.5407,-1.8402],[16.8799,-1.2258],[17.2789,-.9994],[17.753,-.5489],[17.7242,-.2777],[17.8875,.2341],[17.9026,1.1179],[18.058,1.5347],[18.0722,2.0133],[18.4908,2.9246],[18.6102,3.4785],[18.5676,4.2576],[19.0687,4.8915],[19.5011,5.1276],[19.8065,5.0894],[20.2264,4.8297],[20.558,4.4627],[21.5376,4.2447],[22.4223,4.1351],[22.7557,4.6469],[23.4171,4.6633],[24.32,4.994],[24.7656,4.9301],[25.2495,5.0246],[25.5251,5.3123],[26.8222,5.0623],[27.1151,5.1977],[27.4032,5.1094]]]},properties:{name:"Democratic Republic of Congo",id:"CD"},id:"CD"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[15.4803,7.5237],[15.2459,7.2636],[14.7394,6.2799],[14.6169,5.8649],[14.7088,4.6655],[15.0226,4.3583],[15.1287,3.827],[15.775,3.127],[16.0636,2.9086],[16.1834,2.2703],[16.0596,1.6763],[15.7417,1.9152],[14.9023,2.0124],[14.4842,2.1549],[13.2937,2.1615],[13.2204,2.2565],[11.3485,2.2996],[11.3286,2.1673],[9.98,2.1677],[9.8007,2.3044],[9.8762,3.3099],[9.4252,3.9224],[8.9999,4.0916],[8.9027,4.4351],[8.556,4.7552],[8.801,5.1973],[9.0603,6.0092],[10.1438,6.9964],[10.6064,7.063],[11.0325,6.6981],[11.1532,6.438],[11.5518,6.6972],[11.7676,7.272],[12.0162,7.5899],[12.4037,8.5957],[12.8067,8.8865],[12.9297,9.4263],[13.1756,9.5394],[13.2697,10.0362],[13.5352,10.6052],[13.892,11.1401],[14.5597,11.4921],[14.6271,12.1087],[14.1974,12.3839],[14.0638,13.0786],[14.5162,12.9796],[14.7612,12.6556],[15.0812,11.8455],[15.0297,11.1135],[15.1323,10.6483],[15.5411,9.9603],[14.2432,9.9798],[13.9773,9.6917],[14.3324,9.2034],[15.1163,8.5571],[15.443,7.8518],[15.4803,7.5237]]]},properties:{name:"Cameroon",id:"CM"},id:"CM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.5236,10.4259],[-5.0999,10.2417],[-4.9698,9.9301],[-4.6258,9.7134],[-3.8776,9.895],[-3.2235,9.8954],[-2.6958,9.4813],[-2.7466,9.1098],[-2.5058,8.2087],[-2.7899,7.9321],[-2.9858,7.205],[-3.2358,6.8073],[-3.2007,6.3483],[-2.7952,5.1844],[-3.0191,5.1307],[-4.0372,5.2301],[-5.5646,5.0894],[-6.9229,4.6384],[-7.5451,4.3512],[-7.5688,5.0805],[-7.4299,5.3247],[-7.4543,5.8414],[-7.7965,5.975],[-7.8886,6.2347],[-8.6035,6.5077],[-8.3325,6.8015],[-8.2966,7.0741],[-8.4863,7.5584],[-8.232,7.5566],[-7.8236,8.4674],[-7.951,8.7866],[-7.8962,9.416],[-8.137,9.4955],[-8.1365,10.022],[-7.9907,10.1627],[-7.6611,10.4272],[-7.1049,10.2035],[-6.6932,10.3495],[-6.2611,10.7242],[-6.0345,10.1946],[-5.5236,10.4259]]]},properties:{name:"Côte d'Ivoire",id:"CI"},id:"CI"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[110.8887,19.9918],[111.0138,19.6553],[110.5722,19.1719],[110.4514,18.748],[109.5193,18.2184],[108.7016,18.5354],[108.6936,19.3384],[109.6511,19.9842],[110.5886,20.0726],[110.8887,19.9918]]],[[[130.5269,42.5353],[130.2406,42.8917],[129.8983,42.9983],[129.7199,42.4749],[129.3137,42.4137],[128.9236,42.0381],[128.0451,41.9875],[128.291,41.5627],[128.1112,41.3891],[127.1795,41.5312],[126.9034,41.7811],[125.989,40.9049],[124.8895,40.4596],[124.3621,40.0042],[124.1056,39.8409],[123.3483,39.7632],[122.3349,39.3663],[121.6499,38.8652],[121.7853,39.401],[121.5177,39.6389],[122.2749,40.5418],[121.859,40.8423],[121.1745,40.9013],[120.479,40.231],[119.5912,39.9026],[118.9125,39.1666],[118.2977,39.0671],[117.7845,39.1346],[117.5577,38.625],[118.0149,38.1834],[118.94,38.0426],[119.0891,37.7008],[118.9529,37.3311],[119.45,37.1247],[120.3702,37.7008],[120.7502,37.834],[121.6402,37.4603],[122.6025,37.4265],[122.5195,36.9467],[121.9327,36.9595],[120.9899,36.5978],[120.3933,36.054],[120.0546,35.8614],[119.2156,35.0118],[119.5827,34.5821],[120.2015,34.3255],[120.8709,33.0165],[120.8532,32.6613],[121.4009,32.3719],[121.3521,31.8588],[121.0556,31.7194],[121.6606,31.3199],[121.8781,30.9168],[120.9974,30.5582],[121.1594,30.3016],[121.9442,29.8941],[121.7174,29.2562],[121.602,28.3667],[121.0986,28.2903],[120.2788,27.0972],[119.6484,25.9186],[119.5392,25.5915],[119.0248,25.2235],[118.5605,24.5803],[118.0873,24.6269],[118.0562,24.246],[116.5381,23.1798],[116.4706,22.9459],[115.4985,22.719],[115.1957,22.8171],[114.854,22.6169],[114.2658,22.541],[114.0154,22.5117],[113.6195,22.8615],[113.5467,22.2241],[113.4943,22.2414],[113.4788,22.1957],[113.0083,22.1193],[112.5861,21.7767],[111.9438,21.8495],[111.6029,21.5592],[110.771,21.3865],[110.1935,21.0376],[110.5114,20.5182],[110.123,20.2639],[109.6626,20.9168],[109.9307,21.4806],[109.5441,21.5378],[109.1486,21.4255],[109.0305,21.6266],[108.3247,21.6937],[107.9727,21.5081],[107.3513,21.6089],[106.7294,22.0004],[106.5363,22.3954],[106.7804,22.779],[106.5421,22.9081],[105.8429,22.9228],[105.2752,23.3454],[104.8646,23.1363],[104.7958,22.9112],[104.3719,22.704],[103.3008,22.7643],[103.0051,22.4532],[102.5173,22.7408],[102.1276,22.379],[101.6712,22.4625],[101.5243,22.2538],[101.744,21.778],[101.705,21.1503],[101.2242,21.2236],[101.139,21.5676],[100.2148,21.4628],[99.9179,22.0279],[99.193,22.126],[99.3377,22.498],[99.3408,23.0959],[98.8636,23.1913],[98.7642,24.116],[98.2124,24.1106],[97.686,23.898],[97.5315,24.4915],[97.8196,25.2519],[98.0109,25.2923],[98.6546,25.9177],[98.7318,26.5836],[98.651,27.5726],[98.299,27.5499],[98.0988,28.1421],[97.5377,28.5101],[97.3224,28.218],[96.776,28.3671],[96.4355,29.0507],[96.0352,29.4471],[95.4204,29.0543],[94.7696,29.1759],[94.6231,29.3126],[93.9022,28.803],[93.2067,28.5909],[92.702,28.147],[92.6642,27.949],[91.9775,27.7301],[91.6317,27.7599],[91.6056,27.9516],[90.3529,28.0804],[89.9809,28.3112],[89.537,28.1075],[88.8912,27.316],[88.8485,27.8686],[88.6213,28.0919],[88.1099,27.8704],[87.1413,27.8385],[86.5545,28.0853],[86.4089,27.9286],[85.6783,28.2775],[85.1225,28.3161],[85.1589,28.5922],[84.7141,28.5957],[84.2285,28.9118],[84.1016,29.2198],[83.5835,29.1834],[83.1556,29.6127],[82.8542,29.6833],[82.1591,30.1152],[82.0432,30.3269],[81.4169,30.3376],[81.0103,30.1645],[80.6823,30.4148],[80.1913,30.5684],[79.9245,30.8889],[79.9165,30.8942],[79.3697,31.0798],[79.3386,31.1055],[79.1073,31.4025],[78.8445,31.3017],[78.7198,31.8876],[78.3896,32.5197],[79.2192,32.5011],[79.2165,32.5641],[79.1353,33.1718],[79.1127,33.2264],[78.8019,33.4999],[78.7531,34.0876],[78.9364,34.3521],[78.2821,34.654],[77.8107,35.4845],[77.7992,35.496],[77.4467,35.4756],[76.2518,35.8108],[75.945,36.0176],[75.8403,36.6497],[75.3467,36.9134],[74.5415,37.0221],[74.8912,37.2317],[74.7452,38.5101],[74.2773,38.6597],[73.8015,38.6068],[73.6315,39.4489],[73.9147,39.6065],[73.9915,40.0433],[74.4118,40.1374],[75.0044,40.4494],[75.5837,40.6052],[75.8718,40.3034],[76.4804,40.4494],[76.8239,40.9821],[78.1232,41.0758],[78.3625,41.3718],[79.2938,41.7829],[80.2162,42.0323],[80.2095,42.1899],[80.1651,42.6653],[80.7857,43.1616],[80.3551,44.0973],[80.4554,44.7463],[80.059,45.0064],[81.602,45.3109],[82.4787,45.1236],[82.3264,45.52],[83.0043,47.0337],[83.1929,47.1864],[84.786,46.8308],[85.6565,47.2547],[85.526,47.9157],[85.7493,48.3849],[86.5496,48.5287],[86.7534,49.0088],[87.3229,49.0858],[87.8143,49.1624],[87.9798,48.5549],[88.517,48.3844],[89.0478,48.0027],[89.561,48.004],[90.3134,47.676],[90.4963,47.2854],[90.87,46.9547],[91.0338,46.529],[91.0019,46.0358],[90.6618,45.5253],[90.8771,45.196],[91.5842,45.0766],[92.7876,45.0357],[93.6563,44.9008],[94.7119,44.3508],[95.3502,44.278],[95.9126,43.2064],[96.3854,42.7204],[97.2057,42.7896],[99.4678,42.5681],[99.984,42.6773],[101.7139,42.4656],[101.9731,42.2157],[103.0726,42.0062],[103.7109,41.7514],[104.4984,41.877],[104.4984,41.6586],[105.1971,41.738],[106.7702,42.2889],[108.1712,42.4474],[109.4434,42.4558],[110.4004,42.7736],[111.0072,43.3414],[111.9331,43.7116],[111.4022,44.3672],[111.8981,45.0641],[113.5871,44.7459],[114.0305,44.9425],[114.517,45.3646],[115.6809,45.4583],[116.2407,45.7961],[116.5625,46.2897],[117.3335,46.3621],[118.3088,46.7172],[119.7066,46.6062],[119.8979,46.8579],[119.711,47.15],[118.4983,47.9841],[117.7685,47.988],[117.3508,47.652],[116.7605,47.87],[115.8984,47.6871],[115.5575,47.945],[116.6832,49.8238],[117.8733,49.5135],[118.4517,49.8444],[119.26,50.0664],[119.1921,50.3797],[120.067,51.6007],[120.7497,52.0965],[120.6561,52.5666],[120.0945,52.7872],[120.704,53.1718],[122.338,53.485],[123.6079,53.5465],[124.8122,53.1339],[125.649,53.0422],[126.313,52.3997],[126.9247,51.1002],[127.5901,50.2091],[127.5027,49.8735],[127.9998,49.5685],[128.5267,49.5943],[129.5339,49.3235],[130.1962,48.8916],[130.8043,48.3414],[130.712,48.1279],[131.0027,47.6915],[132.5617,47.7683],[133.1441,48.1057],[133.4686,48.0972],[134.2933,48.3733],[134.5636,48.3219],[134.7523,47.7155],[134.1677,47.3022],[133.8614,46.2475],[133.1858,45.4947],[132.9359,45.03],[131.9775,45.2439],[131.0822,44.9101],[131.2553,44.0716],[131.262,43.4333],[131.0684,42.9024],[130.5771,42.8118],[130.5269,42.5353]]]]},properties:{name:"China",id:"CN"},id:"CN"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-67.0799,-55.1538],[-68.07,-55.2213],[-68.107,-54.9292],[-67.2452,-54.9776],[-67.0799,-55.1538]]],[[[-69.703,-54.919],[-68.9007,-55.0176],[-68.2826,-55.255],[-68.2932,-55.5214],[-69.4119,-55.4441],[-69.9798,-55.1476],[-69.703,-54.919]]],[[[-72.9233,-53.4817],[-72.2055,-53.8075],[-73.3048,-53.9438],[-73.6865,-53.4266],[-72.9233,-53.4817]]],[[[-68.6299,-52.6525],[-68.6532,-54.8538],[-69.4862,-54.8591],[-69.7235,-54.7122],[-70.4972,-54.8094],[-71.4409,-54.6198],[-70.8982,-54.338],[-70.8678,-53.8843],[-70.0903,-53.4182],[-70.3906,-53.0263],[-69.7636,-52.7315],[-68.6299,-52.6525]]],[[[-74.4762,-49.148],[-74.5699,-49.9909],[-75.3001,-49.8475],[-75.1842,-49.0836],[-74.7934,-48.705],[-74.4762,-49.148]]],[[[-74.5672,-48.5918],[-74.923,-48.6264],[-75.2129,-48.1417],[-74.7292,-48.1261],[-74.5672,-48.5918]]],[[[-72.9861,-44.7801],[-73.4451,-44.6411],[-73.2078,-44.3348],[-72.7641,-44.5488],[-72.9861,-44.7801]]],[[[-73.7354,-44.3948],[-73.9833,-44.4946],[-73.7271,-45.1192],[-74.0991,-45.3252],[-74.6178,-44.6478],[-74.5017,-44.4733],[-73.7354,-44.3948]]],[[[-73.7733,-43.3459],[-74.355,-43.2637],[-74.2094,-42.8789],[-74.0368,-41.7953],[-73.5278,-41.8961],[-73.4708,-42.4665],[-73.7893,-42.5859],[-73.4364,-42.9366],[-73.7733,-43.3459]]],[[[-67.1948,-22.8216],[-67.0088,-23.0014],[-67.3562,-24.0339],[-68.2502,-24.3921],[-68.562,-24.8378],[-68.3842,-25.0921],[-68.6002,-25.4859],[-68.4144,-26.1539],[-68.5811,-26.5183],[-68.3461,-27.0279],[-68.8463,-27.1536],[-69.1744,-27.9246],[-69.6569,-28.4138],[-69.8278,-29.1031],[-70.0269,-29.3242],[-69.9277,-29.7694],[-69.9563,-30.358],[-70.1614,-30.4401],[-70.5196,-31.1486],[-70.5853,-31.5694],[-70.1696,-32.4718],[-70.0198,-33.2717],[-69.7978,-33.3987],[-69.8524,-34.2243],[-70.2899,-34.733],[-70.4703,-35.3261],[-70.4048,-36.0616],[-71.0556,-36.5237],[-71.1677,-37.7621],[-71.0281,-38.0413],[-70.9517,-38.7383],[-71.4256,-38.9855],[-71.5394,-39.6025],[-71.7199,-39.6354],[-71.6952,-40.3354],[-71.932,-40.6918],[-71.9114,-41.6506],[-71.7501,-42.0466],[-72.1247,-42.2983],[-72.1464,-42.9899],[-71.7816,-43.167],[-71.905,-43.44],[-71.6801,-43.9296],[-71.82,-44.3832],[-71.2127,-44.4414],[-71.2611,-44.7632],[-71.5962,-44.9794],[-71.3537,-45.2306],[-71.7727,-45.7242],[-71.8757,-46.1606],[-71.6952,-46.5783],[-71.9403,-46.8313],[-71.905,-47.2015],[-72.346,-47.4927],[-72.518,-47.8762],[-72.3549,-48.3658],[-72.6143,-48.7929],[-73.5762,-49.583],[-73.5012,-50.1254],[-73.153,-50.7384],[-72.5098,-50.6075],[-72.2763,-50.9102],[-72.4077,-51.541],[-71.9187,-51.9898],[-69.9603,-52.0084],[-68.4433,-52.3569],[-69.241,-52.2055],[-69.5606,-52.4217],[-70.795,-52.7688],[-70.9959,-53.7791],[-71.2977,-53.8834],[-72.1744,-53.6322],[-71.8528,-53.2855],[-71.4003,-53.107],[-71.3878,-52.7644],[-72.4583,-53.2544],[-73.0527,-53.2433],[-74.0143,-52.6392],[-73.5183,-52.0408],[-73.9733,-51.7847],[-73.8958,-51.3315],[-74.8147,-51.0629],[-75.0948,-50.6812],[-74.3337,-49.9745],[-74.3411,-48.5958],[-74.5772,-48.2744],[-74.6549,-47.7022],[-74.1584,-47.1824],[-74.152,-46.9742],[-75.6567,-46.6102],[-74.9245,-46.1597],[-75.0666,-45.8751],[-74.1579,-45.7673],[-74.0377,-45.4175],[-73.5498,-45.4836],[-73.3625,-44.978],[-72.739,-44.7343],[-72.6638,-44.4365],[-73.2651,-44.1688],[-72.9965,-43.6317],[-72.7852,-42.3014],[-72.4993,-41.9809],[-72.6698,-41.6595],[-73.0149,-41.5441],[-73.5214,-41.7971],[-73.966,-41.1184],[-73.6694,-40.0824],[-73.4104,-39.7889],[-73.2264,-39.2243],[-73.5325,-38.3667],[-73.4648,-38.0405],[-73.6619,-37.6987],[-73.6017,-37.1886],[-73.216,-37.1669],[-73.1181,-36.6884],[-72.8747,-36.3905],[-72.6239,-35.5857],[-72.2237,-35.0961],[-72.0029,-34.1653],[-71.6644,-33.6526],[-71.743,-33.0951],[-71.4522,-32.6596],[-71.5259,-31.806],[-71.6619,-31.1695],[-71.6695,-30.3305],[-71.4005,-30.1432],[-71.3157,-29.6496],[-71.5192,-28.9265],[-71.1863,-28.3778],[-71.0527,-27.7275],[-70.6465,-26.3293],[-70.7138,-25.7842],[-70.4455,-25.1725],[-70.5742,-24.6442],[-70.4878,-23.7818],[-70.5633,-23.0569],[-70.3316,-22.8487],[-70.0875,-21.493],[-70.1971,-20.7256],[-70.1483,-19.8049],[-70.4184,-18.3454],[-69.9263,-18.206],[-69.8522,-17.704],[-69.5108,-17.506],[-69.3133,-17.9432],[-69.094,-18.0507],[-68.9684,-18.9682],[-68.4628,-19.4329],[-68.6983,-19.721],[-68.7451,-20.4588],[-68.4999,-20.6119],[-68.1969,-21.3004],[-67.9883,-22.0572],[-67.8795,-22.8229],[-67.1948,-22.8216]]]]},properties:{name:"Chile",id:"CL"},id:"CL"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.5241,47.5242],[9.5277,47.2707],[9.4877,47.0621],[9.5801,47.0572],[10.4528,46.865],[9.9392,46.3616],[9.2512,46.2866],[8.9537,45.8298],[8.4584,46.2458],[7.9932,46.0158],[7.021,45.9257],[6.7583,46.4158],[6.06,46.4282],[7.0006,47.3227],[7.6154,47.5925],[8.6177,47.7661],[9.5241,47.5242]]]},properties:{name:"Switzerland",id:"CH"},id:"CH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[96.8404,-12.182],[96.835,-12.1797],[96.8279,-12.1509],[96.8257,-12.126],[96.8328,-12.126],[96.8395,-12.1602],[96.8404,-12.182]]]},properties:{name:"Cocos (Keeling) Islands",id:"CC"},id:"CC"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-105.289,72.9199],[-106.9216,73.4799],[-105.5123,73.7657],[-104.583,73.3538],[-105.289,72.9199]]],[[[-79.5373,73.6546],[-77.2066,73.4996],[-76.2895,73.081],[-76.4005,72.8207],[-77.836,72.8968],[-79.5006,72.7559],[-80.8241,73.3807],[-80.849,73.7211],[-79.5373,73.6546]]],[[[-86.5894,71.0107],[-84.7896,71.0933],[-84.6995,71.6315],[-85.9115,71.9866],[-85.3411,72.4216],[-85.6445,72.7745],[-85.0184,73.3356],[-82.6596,73.7296],[-81.406,73.6346],[-80.2748,72.7455],[-80.9413,72.2101],[-78.453,72.4352],[-77.7532,72.7248],[-75.2943,72.4809],[-74.9032,72.1005],[-73.7136,71.7198],[-71.6406,71.5163],[-70.7926,71.1033],[-70.5609,70.7382],[-69.1686,70.7641],[-67.3637,70.0344],[-66.6852,69.2858],[-67.7517,69.0387],[-68.038,68.5507],[-67.033,68.3261],[-66.2252,67.9588],[-64.5275,67.8127],[-64.0079,67.3473],[-61.9684,67.019],[-61.2997,66.6488],[-61.9915,66.0354],[-62.6589,65.6399],[-63.3643,65.5433],[-63.4018,65.1185],[-64.6653,65.1689],[-65.4015,65.7639],[-65.3054,66.0085],[-66.4771,66.2797],[-67.1833,66.0345],[-68.2568,65.9386],[-67.3034,65.4829],[-66.8606,65.0917],[-65.2748,64.6316],[-64.6784,64.0281],[-64.5144,63.2639],[-65.0688,63.2635],[-65.2659,62.7151],[-65.9788,63.0007],[-67.676,63.0935],[-66.2813,62.3027],[-66.2567,61.8683],[-67.4401,62.1513],[-69.0823,62.4052],[-69.5452,62.7446],[-70.2362,62.7634],[-71.2538,63.0424],[-73.4437,64.4236],[-74.5124,64.6702],[-75.0675,64.4567],[-76.7239,64.242],[-77.7912,64.367],[-78.0957,64.9392],[-77.4474,65.1616],[-77.3267,65.4532],[-75.8283,65.227],[-73.5607,65.5429],[-74.434,66.139],[-73.0333,66.7283],[-72.2201,67.2543],[-73.3283,68.2668],[-74.648,68.7076],[-74.9172,68.9828],[-76.4034,68.6923],[-75.7873,69.3186],[-77.1289,69.6526],[-78.9797,70.5813],[-79.3475,70.3722],[-78.7778,70.0477],[-79.3033,69.8948],[-81.0982,70.0912],[-82.1387,69.8413],[-86.3219,70.1454],[-86.6244,70.4013],[-87.9006,70.2519],[-88.8483,70.5229],[-89.3655,71.0671],[-88.0387,70.9512],[-87.8724,71.2085],[-89.0794,71.2879],[-89.8458,71.4924],[-90.0251,71.9489],[-89.2631,73.0691],[-87.7197,73.7229],[-85.1105,73.8081],[-86.6293,72.8709],[-86.0361,71.7709],[-85.0233,71.3532],[-86.5894,71.0107]]],[[[-100.002,73.946],[-99.1579,73.7316],[-97.5819,73.8876],[-97.0017,73.6665],[-97.7959,73.2852],[-97.0519,72.6367],[-96.6133,71.8339],[-98.663,71.3021],[-99.167,71.3672],[-100.5944,72.1524],[-101.7239,72.3149],[-102.7137,72.783],[-100.4847,72.773],[-100.2828,73.1203],[-101.4509,73.4311],[-100.9151,73.8053],[-100.002,73.946]]],[[[-93.171,74.161],[-92.2228,73.9724],[-90.3547,73.8687],[-92.118,72.7539],[-93.3407,72.8018],[-94.0377,72.0288],[-95.1929,72.0275],[-95.5475,72.7816],[-95.633,73.6954],[-95.0397,74.0239],[-93.171,74.161]]],[[[-119.7363,74.1126],[-117.5149,74.2318],[-115.5107,73.6188],[-115.4468,73.4388],[-118.9615,72.6842],[-120.18,72.2126],[-120.6192,71.5057],[-123.2107,71.1235],[-124.0077,71.6775],[-125.7626,72.1375],[-124.9871,72.5881],[-124.8364,73.0762],[-123.7973,73.7682],[-124.6962,74.3481],[-121.3153,74.5299],[-119.7363,74.1126]]],[[[-93.5427,75.028],[-93.5472,74.691],[-94.6973,74.6422],[-96.5658,75.0988],[-95.6707,75.5287],[-94.4272,75.5935],[-93.5427,75.028]]],[[[-102.2275,76.0149],[-103.3148,75.7641],[-104.3506,76.1823],[-102.5841,76.2817],[-102.2275,76.0149]]],[[[-97.7009,76.4664],[-97.4097,75.5522],[-97.7994,75.1167],[-100.2344,75.0078],[-100.712,75.4064],[-102.5413,75.5136],[-101.4313,75.9919],[-102.1378,76.2848],[-100.388,76.6135],[-97.7009,76.4664]]],[[[-108.2924,76.0571],[-105.481,75.7457],[-105.8625,75.1915],[-107.1533,74.9272],[-108.8312,75.0648],[-110.9408,74.6387],[-112.5193,74.4169],[-113.5141,74.43],[-114.4518,75.0879],[-115.7289,74.9682],[-117.6001,75.2716],[-116.6098,76.0738],[-115.5806,76.4375],[-114.1939,76.4515],[-112.6975,76.2016],[-111.0527,75.5484],[-109.0865,75.5065],[-108.9449,75.6989],[-110.2701,76.4169],[-108.467,76.7376],[-108.2924,76.0571]]],[[[-94.2949,76.9125],[-92.7162,76.6029],[-91.3051,76.6808],[-90.2515,76.0536],[-88.2014,75.512],[-86.0687,75.5023],[-83.932,75.819],[-82.1538,75.831],[-79.6602,75.4494],[-79.508,74.8801],[-80.2777,74.5816],[-81.8089,74.4766],[-88.4231,74.4942],[-89.8444,74.5485],[-91.9616,74.7931],[-92.4281,75.3828],[-92.1851,75.8465],[-93.0917,76.3541],[-95.2739,76.2644],[-96.6397,76.703],[-95.6383,77.0639],[-94.2949,76.9125]]],[[[-115.5513,77.3633],[-116.2205,76.6111],[-119.3679,76.2218],[-119.9128,75.8589],[-121.9083,76.0347],[-121.6138,76.4415],[-119.0903,77.3051],[-115.5513,77.3633]]],[[[-95.4843,77.7921],[-93.301,77.7399],[-93.5196,77.4745],[-95.987,77.484],[-95.4843,77.7921]]],[[[-110.4581,78.1032],[-109.7718,77.9574],[-110.1984,77.5246],[-111.952,77.3442],[-113.1643,77.5302],[-113.1872,77.9124],[-110.4581,78.1032]]],[[[-109.816,78.6503],[-109.3905,78.3367],[-113.1499,78.4084],[-110.4077,78.7566],[-109.816,78.6503]]],[[[-96.2045,78.5314],[-94.8873,78.3452],[-95.087,77.9927],[-96.9895,77.8061],[-98.2548,78.4293],[-96.2045,78.5314]]],[[[-103.426,79.3157],[-99.6094,78.5831],[-99.1664,77.8569],[-100.5859,77.8917],[-101.0742,78.1938],[-102.7313,78.3711],[-103.5183,78.7691],[-105.5358,79.0325],[-105.3877,79.3235],[-103.426,79.3157]]],[[[-91.8857,81.1328],[-90.643,80.5937],[-87.6749,80.3722],[-87.1442,79.6626],[-85.5014,79.5303],[-85.2899,79.2083],[-87.0164,78.8987],[-88.7911,78.1925],[-90.6144,78.1498],[-92.6782,78.3891],[-95.1032,79.29],[-95.297,79.6531],[-96.7734,80.1358],[-95.6146,80.3962],[-96.1328,80.6913],[-95.2697,81.0007],[-91.8857,81.1328]]],[[[-69.4889,83.0169],[-63.641,82.8127],[-61.4771,82.4674],[-62.1766,82.0434],[-64.5741,81.7336],[-65.4839,81.2848],[-70.1434,80.3977],[-71.3878,79.7618],[-75.2595,79.4209],[-76.2558,79.0068],[-74.4332,78.724],[-75.866,78.0098],[-78.0127,77.9461],[-78.0762,77.5191],[-79.3408,77.1584],[-78.2888,76.978],[-78.2844,76.5711],[-80.6903,76.1765],[-81.1708,76.5128],[-83.8856,76.4531],[-85.1412,76.3046],[-89.5701,76.4919],[-89.4997,76.8268],[-88.3982,77.104],[-86.8737,77.2004],[-88.0946,77.7193],[-87.0179,77.8922],[-87.5517,78.1767],[-86.808,78.7744],[-84.3162,78.9753],[-85.0899,79.6122],[-86.4207,79.8453],[-86.3073,80.3194],[-83.7236,80.229],[-80.0511,80.5287],[-83.4013,80.714],[-85.3074,80.526],[-88.9214,80.8057],[-89.9474,81.1725],[-88.9784,81.5414],[-90.4903,81.8772],[-86.5807,82.1873],[-82.1225,82.6019],[-79.8864,82.9386],[-69.97,83.1161],[-69.4889,83.0169]]],[[[-61.1053,45.9448],[-60.8061,45.738],[-60.5049,46.204],[-59.8651,46.1597],[-60.3862,45.6545],[-61.2837,45.5737],[-61.4953,45.9413],[-60.8703,46.7966],[-60.3318,46.7678],[-60.5768,46.1721],[-61.1053,45.9448]]],[[[-63.8113,46.4686],[-63.1294,46.422],[-62.1635,46.4872],[-62.8784,46.0012],[-63.641,46.2307],[-63.8113,46.4686]]],[[[-74.7088,45.0038],[-73.558,45.425],[-73.1596,46.0101],[-71.901,46.632],[-71.2611,46.7562],[-70.5196,47.0323],[-68.987,48.2748],[-67.5608,48.8559],[-66.1781,49.2132],[-64.8364,49.1917],[-64.2618,48.9218],[-64.2538,48.5505],[-65.2595,48.0213],[-65.9266,48.1887],[-65.6665,47.696],[-65.2282,47.8114],[-64.7033,47.7248],[-64.9121,47.3688],[-65.3189,47.1012],[-64.9057,46.8881],[-64.5415,46.2404],[-63.2928,45.7522],[-62.4831,45.6217],[-61.9556,45.868],[-61.4924,45.6869],[-61.2837,45.2355],[-63.7611,44.4862],[-64.286,44.5501],[-64.8624,43.8678],[-65.7382,43.5607],[-66.1257,43.8137],[-66.0995,44.3677],[-65.6567,44.7605],[-64.4489,45.2559],[-64.8979,45.6261],[-65.8845,45.223],[-66.8726,45.0672],[-67.1249,45.1693],[-67.4725,45.2759],[-67.4328,45.603],[-67.7845,45.7016],[-67.8067,47.083],[-68.311,47.3546],[-68.8288,47.2032],[-69.243,47.4629],[-70.0078,46.7088],[-70.2963,45.9062],[-70.898,45.2626],[-71.3272,45.2901],[-71.5175,45.0078],[-74.7088,45.0038]]],[[[-61.8011,49.094],[-62.2195,49.0791],[-63.5658,49.3994],[-64.1315,49.9416],[-62.8584,49.7055],[-61.8171,49.2835],[-61.8011,49.094]]],[[[-127.1973,50.6403],[-125.4821,50.3167],[-124.6429,49.4287],[-123.9959,49.2241],[-123.497,48.582],[-123.5946,48.3334],[-124.6893,48.5975],[-125.8285,49.0918],[-125.8354,49.2767],[-126.5485,49.4189],[-126.683,49.8764],[-127.1143,49.8797],[-128.2675,50.6092],[-127.9182,50.8605],[-127.1973,50.6403]]],[[[-55.4588,51.5365],[-55.8714,50.9073],[-56.6939,50.0597],[-55.7648,49.9605],[-55.892,49.5803],[-54.9827,49.268],[-54.579,49.4908],[-53.9577,49.4418],[-53.5733,49.1413],[-53.853,48.8112],[-53.5312,48.2317],[-52.955,48.0293],[-53.1756,47.6529],[-52.6536,47.5495],[-53.0697,46.6812],[-53.6164,46.6803],[-54.1737,46.8805],[-53.8692,47.387],[-54.8566,47.3848],[-56.2211,47.6716],[-56.9525,47.5743],[-58.3332,47.6769],[-59.1169,47.5708],[-59.3624,47.8655],[-58.7105,48.325],[-58.7165,48.598],[-58.0158,49.5426],[-57.4656,50.4636],[-56.7503,51.2748],[-56.0256,51.5685],[-55.4588,51.5365]]],[[[-80.7318,52.7472],[-81.8391,52.9579],[-81.8473,53.1862],[-81.1357,53.2058],[-80.7318,52.7472]]],[[[-132.6556,54.1275],[-131.7026,53.9864],[-132.0113,53.2653],[-132.7475,53.3105],[-133.0522,53.7782],[-132.6556,54.1275]]],[[[-78.9356,56.2662],[-79.1755,55.8851],[-80.0009,55.9322],[-79.5963,56.2444],[-78.9356,56.2662]]],[[[-79.5452,62.4117],[-79.324,62.0261],[-79.7144,61.6126],[-80.2652,61.8182],[-80.0215,62.3431],[-79.5452,62.4117]]],[[[-82.0004,62.9543],[-82.1138,62.6522],[-83.0158,62.2099],[-83.699,62.1602],[-83.8994,62.4765],[-83.3765,62.905],[-82.0004,62.9543]]],[[[-84.9197,65.261],[-83.4071,65.1039],[-82.0501,64.6442],[-81.7161,64.0219],[-80.829,64.09],[-80.3021,63.7622],[-81.0463,63.4615],[-82.3782,63.7067],[-82.4672,63.9269],[-83.4943,64.0993],[-83.7283,63.8135],[-84.6329,63.3092],[-85.4954,63.1392],[-85.7142,63.6579],[-87.1888,63.6723],[-86.252,64.1368],[-86.3743,64.5659],[-85.9617,65.7042],[-85.241,65.7954],[-84.9197,65.261]]],[[[-75.6758,68.3225],[-75.1538,68.234],[-75.1274,67.5373],[-75.7801,67.2836],[-77.0048,67.2669],[-77.3058,67.7062],[-76.7403,68.2313],[-75.6758,68.3225]]],[[[-97.4394,69.6427],[-96.2999,69.3444],[-95.6856,68.7358],[-96.4016,68.4708],[-97.472,68.5438],[-99.254,68.8632],[-99.5641,69.0341],[-97.4394,69.6427]]],[[[-74.7088,45.0038],[-75.1793,44.8994],[-76.4646,44.0574],[-76.82,43.6286],[-78.7205,43.625],[-79.1719,43.4666],[-79.0368,42.8025],[-80.2475,42.3662],[-81.2778,42.209],[-82.439,41.675],[-83.1419,41.976],[-83.0731,42.3005],[-82.5453,42.6245],[-82.1378,43.5709],[-82.5511,45.3473],[-83.5926,45.817],[-83.9777,46.0851],[-84.1921,46.5494],[-84.5617,46.4575],[-84.8759,46.9001],[-88.3782,48.3032],[-89.4556,47.996],[-90.8403,48.2007],[-91.5183,48.0582],[-92.9963,48.6117],[-93.3778,48.6166],[-93.7078,48.5256],[-94.6209,48.7427],[-95.162,48.9917],[-97.5297,48.9932],[-99.2354,48.993],[-102.2201,48.993],[-103.9256,48.993],[-106.4839,48.993],[-109.895,48.993],[-112.4532,48.993],[-115.8643,48.993],[-118.4226,48.993],[-120.1281,48.993],[-122.7888,48.993],[-123.0491,48.993],[-123.3356,49.4591],[-123.859,49.4829],[-124.4833,49.8082],[-125.21,50.4763],[-126.4045,50.5298],[-126.6318,50.9151],[-127.0577,50.8676],[-127.7082,51.1512],[-127.6449,51.4784],[-128.3576,52.1589],[-128.1088,52.858],[-128.6524,53.2437],[-129.2842,53.3931],[-129.5637,53.2515],[-130.3351,53.724],[-130.0433,54.1335],[-130.4304,54.4209],[-129.6666,55.4366],[-130.0251,55.8882],[-130.4772,56.2307],[-131.5752,56.5989],[-131.8661,56.7929],[-133.8208,58.7049],[-134.9439,59.2882],[-135.4759,59.7934],[-136.3219,59.6049],[-136.5787,59.1522],[-137.4385,58.9031],[-137.5932,59.2263],[-139.1852,60.0837],[-141.0021,60.3003],[-141.0021,63.2222],[-141.0021,65.56],[-141.0021,68.4819],[-141.0021,69.6509],[-139.1815,69.5155],[-138.1283,69.1519],[-136.7174,68.8891],[-135.8763,68.9169],[-135.6914,69.3111],[-135.1409,69.4678],[-133.1632,69.4338],[-130.4985,70.1431],[-128.9715,69.7123],[-127.765,70.2219],[-127.1385,70.2392],[-126.6122,69.7303],[-125.9073,69.4185],[-124.7679,69.99],[-123.6091,69.3774],[-123.0258,69.81],[-120.9624,69.6604],[-120.2925,69.4205],[-118.8687,69.2571],[-118.0953,69.043],[-116.0651,68.8554],[-115.6312,68.9726],[-114.4138,68.6597],[-115.1332,67.8191],[-112.4352,67.6849],[-110.9901,67.7907],[-110.0426,67.9772],[-109.6305,67.7328],[-108.5929,67.591],[-107.6263,67.0031],[-108.2611,68.1498],[-108.3134,68.6108],[-106.1646,68.9198],[-105.4286,68.4584],[-104.1935,68.0311],[-103.4741,68.115],[-102.692,67.8116],[-101.555,67.6931],[-100.4561,67.8396],[-99.1468,67.7237],[-98.4171,67.8265],[-98.2184,68.3174],[-97.2659,68.453],[-96.0361,68.1578],[-96.3714,67.5539],[-95.7826,67.1937],[-95.2588,67.2625],[-95.6505,67.7375],[-93.6517,68.5431],[-93.6814,68.8874],[-94.2707,69.4551],[-96.0503,69.8311],[-96.4924,70.1249],[-96.2265,70.5418],[-96.549,70.8088],[-96.4056,71.2737],[-95.2013,71.9036],[-94.3084,71.7649],[-92.9488,71.2622],[-92.9814,70.8523],[-91.5641,70.1782],[-92.751,69.7139],[-90.8221,69.2904],[-90.4683,68.8638],[-89.0567,69.266],[-88.0413,68.8117],[-87.8103,68.4042],[-88.347,68.2883],[-88.1958,67.7659],[-87.2663,67.1839],[-86.5363,67.5162],[-85.9526,68.0724],[-85.7338,68.6301],[-84.8622,69.074],[-85.3869,69.2318],[-85.5074,69.8453],[-82.6183,69.691],[-82.6421,69.4584],[-81.3286,69.12],[-81.2815,68.6572],[-82.5526,68.4464],[-81.9764,67.862],[-81.2702,67.4598],[-81.4675,67.0699],[-82.6416,66.5876],[-84.4784,66.1794],[-85.6039,66.5683],[-86.6331,66.5314],[-86.0429,66.0225],[-87.2914,65.3549],[-87.9701,65.3489],[-89.7494,65.9359],[-89.9241,65.7804],[-88.974,65.3482],[-87.0275,65.1982],[-87.2805,64.8262],[-88.1057,64.1832],[-88.653,64.0094],[-90.1418,63.9819],[-90.0135,63.8044],[-91.3301,63.5067],[-90.7466,63.3516],[-90.8711,62.9459],[-91.4491,62.8041],[-92.3613,62.8194],[-93.4206,61.7059],[-93.9127,61.4815],[-94.6467,60.4164],[-94.7858,59.9534],[-94.7135,58.9034],[-94.2871,58.716],[-93.2782,58.7564],[-92.249,57.009],[-91.1113,57.2412],[-90.5922,57.2246],[-89.7909,56.9813],[-88.9484,56.8512],[-88.0751,56.4673],[-87.5608,56.0565],[-85.8305,55.6569],[-85.061,55.2856],[-83.9107,55.3147],[-82.5775,55.1487],[-82.2195,54.8136],[-82.4181,54.3559],[-82.1413,53.8177],[-82.2605,52.9612],[-81.5994,52.4325],[-81.6613,52.2938],[-80.6579,51.7582],[-80.368,51.3299],[-79.8362,51.1734],[-79.4975,51.5698],[-78.9777,51.7338],[-78.4917,52.2521],[-78.7238,52.6278],[-79.2418,54.0989],[-79.6655,54.6975],[-77.8911,55.2364],[-77.3249,55.5555],[-76.6504,56.1073],[-76.5729,57.1813],[-77.1569,58.0189],[-78.5152,58.6823],[-77.7606,59.3801],[-77.3118,60.0424],[-77.8715,60.7859],[-77.7362,61.4373],[-78.1372,62.1074],[-78.0682,62.3555],[-77.3724,62.5726],[-74.69,62.1835],[-73.6299,62.4543],[-72.0814,61.7283],[-71.4227,61.159],[-70.2792,61.0687],[-69.6405,60.6898],[-69.7559,60.3886],[-69.682,59.3417],[-69.1735,58.8967],[-68.6981,58.9045],[-67.5697,58.2135],[-66.608,58.5489],[-65.6061,59.1107],[-64.9312,60.2519],[-64.4995,60.2683],[-63.1854,58.8579],[-62.5939,58.4741],[-62.3056,57.9723],[-61.899,57.8613],[-61.851,57.3812],[-61.3337,57.0106],[-61.5146,56.3903],[-59.9303,55.2594],[-58.997,55.1494],[-58.7802,54.8384],[-58.1951,54.8659],[-57.4046,54.5705],[-58.1514,54.3504],[-57.4161,54.1628],[-57.1489,53.8476],[-56.4651,53.7651],[-55.7979,53.212],[-55.8336,52.3104],[-55.6951,52.1378],[-56.976,51.4577],[-58.5103,51.295],[-59.1655,50.7799],[-60.0801,50.2546],[-61.2897,50.202],[-62.7155,50.3016],[-64.868,50.2754],[-65.2686,50.32],[-66.4955,50.2119],[-66.9411,49.9938],[-67.3719,49.3486],[-68.2819,49.1972],[-68.9291,48.829],[-69.775,48.0981],[-69.9055,47.8322],[-70.7058,47.1398],[-71.2678,46.7958],[-71.8797,46.687],[-72.981,46.2098],[-73.974,45.3451],[-74.7088,45.0038]]],[[[-114.5215,72.593],[-113.5001,72.6944],[-112.7537,72.986],[-111.2698,72.7137],[-108.7549,72.551],[-107.72,73.329],[-106.4822,73.1962],[-105.415,72.7883],[-104.3495,71.434],[-104.5697,71.1039],[-103.9535,70.7626],[-100.9732,70.0295],[-100.9351,69.7152],[-102.2343,69.8422],[-102.9197,69.5648],[-101.9756,69.4069],[-101.857,69.0239],[-103.4681,68.8086],[-105.0195,69.0814],[-106.1408,69.1621],[-106.6591,69.4396],[-107.4399,69.0021],[-108.946,68.7598],[-111.3108,68.542],[-113.1277,68.4941],[-113.6941,69.195],[-116.5135,69.4247],[-117.1354,70.1001],[-114.5923,70.3125],[-112.6378,70.2253],[-112.1143,70.4468],[-113.7573,70.6907],[-115.991,70.5864],[-117.587,70.6296],[-118.2642,70.8882],[-117.8141,71.1585],[-118.8683,71.6868],[-118.9447,71.9855],[-118.2136,72.2629],[-118.3745,72.5339],[-117.5517,72.8311],[-114.6382,73.3727],[-114.1091,72.8611],[-114.5215,72.593]]]]},properties:{name:"Canada",id:"CA"},id:"CA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.86,10.9195],[23.2559,10.4579],[23.6461,9.8231],[23.5374,8.8159],[24.1473,8.6654],[24.2915,8.2912],[24.8535,8.1376],[25.2472,7.7244],[25.3809,7.3333],[25.8891,7.0647],[26.3619,6.6355],[26.5141,6.0691],[27.0836,5.777],[27.4032,5.1094],[27.1151,5.1977],[26.8222,5.0623],[25.5251,5.3123],[25.2495,5.0246],[24.7656,4.9301],[24.32,4.994],[23.4171,4.6633],[22.7557,4.6469],[22.4223,4.1351],[21.5376,4.2447],[20.558,4.4627],[20.2264,4.8297],[19.8065,5.0894],[19.5011,5.1276],[19.0687,4.8915],[18.5676,4.2576],[18.6102,3.4785],[18.161,3.4998],[17.4379,3.6845],[16.6735,3.5354],[16.4684,2.8318],[16.1834,2.2703],[16.0636,2.9086],[15.775,3.127],[15.1287,3.827],[15.0226,4.3583],[14.7088,4.6655],[14.6169,5.8649],[14.7394,6.2799],[15.2459,7.2636],[15.4803,7.5237],[15.8452,7.4753],[16.3787,7.6835],[16.7849,7.5508],[17.6496,7.9836],[18.4553,8.032],[19.1087,8.6561],[19.1455,9.0161],[20.3422,9.1271],[20.7733,9.4058],[21.2638,9.9745],[21.7258,10.3664],[21.7063,10.5746],[22.4938,10.9963],[22.86,10.9195]]]},properties:{name:"Central African Republic",id:"CF"},id:"CF"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[5.6938,50.7748],[5.7972,50.7546],[5.9939,50.7504],[6.3645,50.3163],[6.1164,50.1209],[5.744,49.9196],[5.7897,49.5383],[4.8677,49.788],[4.1744,50.2466],[2.8396,50.7118],[2.5249,51.0971],[3.35,51.3776],[3.9023,51.2076],[4.2263,51.3865],[4.5033,51.4746],[5.827,51.1257],[5.6938,50.7748]]]},properties:{name:"Belgium",id:"BE"},id:"BE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[25.2588,-17.7936],[25.2242,-17.9153],[25.7613,-18.6495],[26.1683,-19.5381],[26.6784,-19.8928],[27.2217,-20.1458],[27.2807,-20.4788],[27.6997,-20.5307],[27.6696,-21.0642],[28.0455,-21.5729],[29.0372,-21.8113],[29.3648,-22.194],[28.8397,-22.4807],[28.2102,-22.6938],[27.8906,-23.0737],[27.1462,-23.5243],[26.835,-24.2407],[26.3974,-24.6136],[25.9122,-24.7477],[25.5837,-25.6062],[24.7483,-25.8174],[23.8938,-25.6008],[23.2662,-25.2666],[22.8786,-25.4579],[22.6403,-26.0714],[22.0907,-26.5801],[21.6464,-26.8544],[20.74,-26.849],[20.6268,-26.4438],[20.7932,-25.9155],[20.3453,-25.03],[19.9805,-24.777],[19.9774,-22],[20.9708,-22],[20.9779,-20.9684],[20.9739,-18.3188],[23.2986,-18.0276],[23.5804,-18.4528],[24.359,-17.9783],[25.2588,-17.7936]]]},properties:{name:"Botswana",id:"BW"},id:"BW"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[91.6317,27.7599],[91.5949,27.5575],[92.0836,27.2907],[91.9984,26.8548],[90.7395,26.7718],[90.3458,26.8903],[89.7638,26.7016],[88.8579,26.9613],[88.8912,27.316],[89.537,28.1075],[89.9809,28.3112],[90.3529,28.0804],[91.6056,27.9516],[91.6317,27.7599]]]},properties:{name:"Bhutan",id:"BT"},id:"BT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[115.0266,4.8999],[114.7465,4.7179],[114.8402,4.3934],[114.6085,4.0241],[114.0638,4.5927],[114.2995,4.6074],[115.0266,4.8999],[115.1398,4.8999],[115.0266,4.8999]]]},properties:{name:"Brunei",id:"BN"},id:"BN"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-59.4933,13.0822],[-59.6114,13.1021],[-59.5916,13.3179],[-59.4276,13.1527],[-59.4933,13.0822]]]},properties:{name:"Barbados",id:"BB"},id:"BB"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-51.8326,-1.4336],[-51.5461,-.6497],[-51.1608,-.6665],[-51.2764,-1.0216],[-51.8326,-1.4336]]],[[[-49.6287,-.2293],[-49.1169,-.1636],[-48.3798,-.3527],[-48.5396,-.801],[-48.9289,-1.4824],[-49.5878,-1.7123],[-50.5076,-1.7878],[-50.7597,-1.2405],[-50.7713,-.6452],[-50.6454,-.2728],[-50.2481,-.1165],[-49.6287,-.2293]]],[[[-56.4828,1.9422],[-56.0198,1.8424],[-56.1295,2.2996],[-55.0058,2.593],[-54.6163,2.3266],[-54.13,2.1211],[-53.7678,2.3551],[-52.9648,2.1837],[-52.7006,2.3635],[-51.9906,3.7018],[-51.6526,4.0614],[-51.2198,4.0938],[-51.0525,3.2819],[-50.659,2.1309],[-50.459,1.8295],[-49.9572,1.6599],[-49.8988,1.1628],[-50.2945,.8356],[-50.8163,.1724],[-51.2829,-.085],[-51.7026,-.7624],[-51.9476,-1.5867],[-51.2973,-1.2236],[-50.9177,-1.1153],[-50.69,-1.7616],[-50.4033,-2.0155],[-49.9991,-1.8317],[-49.7195,-1.9263],[-49.3137,-1.7319],[-48.9913,-1.83],[-48.115,-.7375],[-47.3981,-.6266],[-46.8113,-.7797],[-46.6173,-.9706],[-46.2192,-1.0314],[-45.6448,-1.3479],[-45.0764,-1.4664],[-44.6513,-1.7456],[-44.3082,-2.5353],[-43.9329,-2.5832],[-42.9368,-2.4652],[-42.2496,-2.7919],[-41.8761,-2.7466],[-41.3181,-2.9361],[-40.4745,-2.7954],[-39.9647,-2.8616],[-38.4757,-3.7174],[-38.0489,-4.2163],[-37.1746,-4.9123],[-36.5907,-5.0975],[-35.9799,-5.0544],[-35.5493,-5.1294],[-35.2355,-5.5666],[-34.9882,-6.3936],[-34.8056,-7.2885],[-34.8347,-7.9717],[-35.1578,-8.9305],[-35.3409,-9.2305],[-36.3983,-10.4841],[-36.9378,-10.8206],[-37.4119,-11.497],[-37.6887,-12.0998],[-38.2397,-12.8443],[-38.788,-12.7826],[-38.8352,-13.147],[-39.0894,-13.5882],[-38.9422,-14.0308],[-39.0596,-14.6549],[-38.8805,-15.8645],[-39.2152,-17.3156],[-39.1539,-17.704],[-39.4869,-17.9903],[-39.7399,-18.6397],[-39.6999,-19.278],[-40.0013,-19.7419],[-40.396,-20.5693],[-40.7892,-20.9062],[-41.0471,-21.5059],[-41.1226,-22.0843],[-41.7054,-22.3098],[-41.9804,-22.5806],[-42.0424,-22.9472],[-42.9583,-22.9672],[-43.5327,-23.0462],[-43.8661,-22.9104],[-44.6373,-23.0555],[-45.4233,-23.6854],[-45.9721,-23.7955],[-46.8672,-24.2363],[-47.8766,-24.9976],[-48.5451,-25.8161],[-48.6776,-26.703],[-48.5542,-27.1962],[-48.6208,-28.0755],[-48.7997,-28.5753],[-49.2714,-28.871],[-49.7461,-29.3633],[-50.2994,-30.4259],[-51.1572,-30.3642],[-51.4637,-31.0527],[-51.9724,-31.3839],[-52.1935,-31.8854],[-52.1274,-32.1678],[-52.6523,-33.1377],[-53.3707,-33.7422],[-53.5314,-33.171],[-53.1254,-32.7368],[-53.6017,-32.403],[-53.7618,-32.0568],[-54.2205,-31.8553],[-54.5876,-31.4851],[-55.2546,-31.2258],[-55.5573,-30.876],[-55.8736,-31.0696],[-56.1761,-30.6283],[-56.8328,-30.1072],[-57.2144,-30.2834],[-57.609,-30.188],[-56.9387,-29.595],[-55.7255,-28.2043],[-55.1014,-27.8669],[-54.8291,-27.5508],[-54.3271,-27.4234],[-53.8381,-27.1212],[-53.6712,-26.2249],[-53.8912,-25.6687],[-54.1546,-25.5231],[-54.6158,-25.576],[-54.4731,-25.2204],[-54.2418,-24.0472],[-54.6254,-23.8124],[-55.3662,-23.9913],[-55.6541,-22.8105],[-55.8492,-22.3076],[-56.5239,-22.1025],[-56.9374,-22.2712],[-57.9856,-22.0461],[-57.8303,-20.9981],[-58.1598,-20.1645],[-58.1314,-19.7446],[-57.8005,-19.0809],[-57.5741,-18.2793],[-57.8325,-17.5122],[-58.396,-17.2343],[-58.538,-16.3284],[-60.1756,-16.2693],[-60.299,-14.6185],[-60.5065,-13.7897],[-61.0769,-13.4897],[-61.79,-13.5256],[-62.176,-13.1337],[-62.7654,-12.9974],[-63.0675,-12.6694],[-63.5858,-12.5189],[-64.4205,-12.4399],[-64.5135,-12.2508],[-64.9925,-11.9751],[-65.39,-11.2462],[-65.334,-10.8929],[-65.4368,-10.449],[-65.3132,-10.2533],[-65.3962,-9.7126],[-66.2635,-9.8262],[-66.7301,-9.9754],[-67.5824,-10.5058],[-68.0717,-10.7029],[-68.398,-11.0185],[-69.5785,-10.9519],[-70.2202,-11.0478],[-70.6423,-11.0101],[-70.637,-9.4782],[-71.238,-9.9661],[-72.1815,-10.0038],[-72.379,-9.5102],[-73.2093,-9.4116],[-72.9741,-8.993],[-73.5491,-8.3459],[-74.0021,-7.5562],[-73.7496,-7.3356],[-73.758,-6.9059],[-73.1374,-6.466],[-73.2355,-6.0984],[-72.9799,-5.635],[-72.8871,-5.1228],[-72.6987,-5.0673],[-71.8448,-4.5044],[-70.9737,-4.3504],[-70.7995,-4.1733],[-69.9658,-4.2359],[-69.6691,-2.6676],[-69.4003,-1.1948],[-69.6675,-.4823],[-70.0706,-.1387],[-70.0539,.5786],[-69.1633,.864],[-69.3615,1.0642],[-69.8522,1.0593],[-69.8486,1.7087],[-68.1765,1.7198],[-67.8152,1.79],[-67.352,2.0861],[-66.8761,1.2231],[-66.4293,.8218],[-66.06,.7854],[-65.6814,.9834],[-65.3609,.8685],[-65.1037,1.1082],[-64.1149,1.6191],[-64.0354,1.9045],[-63.394,2.2223],[-63.3893,2.4119],[-63.9242,2.4523],[-64.2188,3.2047],[-64.2212,3.5873],[-64.5679,3.8998],[-64.2556,4.1404],[-64.0214,3.9291],[-63.2948,3.9224],[-62.9685,3.594],[-62.7122,4.0179],[-62.1531,4.0982],[-61.0028,4.5354],[-60.6046,4.9944],[-60.7422,5.2022],[-60.142,5.239],[-59.9907,5.0828],[-60.1112,4.511],[-59.8333,4.476],[-59.5512,3.9335],[-59.8544,3.5873],[-59.9942,2.6902],[-59.7552,2.2743],[-59.7563,1.9005],[-59.2312,1.3758],[-58.8625,1.2036],[-58.5119,1.2848],[-58.3407,1.5876],[-57.5943,1.7043],[-57.1189,2.0141],[-56.8368,1.8814],[-56.4828,1.9422]]]]},properties:{name:"Brazil",id:"BR"},id:"BR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-58.1598,-20.1645],[-58.1803,-19.8178],[-59.0905,-19.286],[-60.0073,-19.2976],[-61.7569,-19.6451],[-61.917,-20.0553],[-62.2763,-20.5627],[-62.2767,-21.066],[-62.6509,-22.2339],[-62.8434,-21.9973],[-63.8186,-22.0053],[-63.9762,-22.0728],[-64.3739,-22.7612],[-64.6056,-22.229],[-65.0579,-22.103],[-65.771,-22.0994],[-66.0986,-21.8353],[-66.3652,-22.1136],[-66.7117,-22.2161],[-67.1948,-22.8216],[-67.8795,-22.8229],[-67.9883,-22.0572],[-68.1969,-21.3004],[-68.4999,-20.6119],[-68.7451,-20.4588],[-68.6983,-19.721],[-68.4628,-19.4329],[-68.9684,-18.9682],[-69.094,-18.0507],[-69.3133,-17.9432],[-69.5108,-17.506],[-69.6249,-17.2002],[-69.0208,-16.6422],[-68.9134,-16.2618],[-69.2176,-16.149],[-69.4185,-15.6035],[-69.1726,-15.2368],[-69.3748,-14.963],[-69.235,-14.5972],[-68.8803,-14.199],[-69.0741,-13.6828],[-68.9786,-12.8802],[-68.6852,-12.502],[-69.5785,-10.9519],[-68.398,-11.0185],[-68.0717,-10.7029],[-67.5824,-10.5058],[-66.7301,-9.9754],[-66.2635,-9.8262],[-65.3962,-9.7126],[-65.3132,-10.2533],[-65.4368,-10.449],[-65.334,-10.8929],[-65.39,-11.2462],[-64.9925,-11.9751],[-64.5135,-12.2508],[-64.4205,-12.4399],[-63.5858,-12.5189],[-63.0675,-12.6694],[-62.7654,-12.9974],[-62.176,-13.1337],[-61.79,-13.5256],[-61.0769,-13.4897],[-60.5065,-13.7897],[-60.299,-14.6185],[-60.1756,-16.2693],[-58.538,-16.3284],[-58.396,-17.2343],[-57.8325,-17.5122],[-57.5741,-18.2793],[-57.8005,-19.0809],[-58.1314,-19.7446],[-58.1598,-20.1645]]]},properties:{name:"Bolivia",id:"BO"},id:"BO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-64.7303,32.2934],[-64.8202,32.2596],[-64.6946,32.387],[-64.7303,32.2934]]]},properties:{name:"Bermuda",id:"BM"},id:"BM"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-88.8941,15.8907],[-89.2374,15.8942],[-89.1615,17.8149],[-88.8064,17.9654],[-88.523,18.4457],[-88.2957,18.4723],[-88.0973,18.1217],[-88.2717,17.6098],[-88.3134,16.6328],[-88.8941,15.8907]]]},properties:{name:"Belize",id:"BZ"},id:"BZ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.1481,56.143],[28.7948,55.9426],[29.375,55.9386],[29.4824,55.6845],[30.2335,55.8452],[30.9069,55.5699],[31.1213,54.6484],[31.4036,54.1959],[31.792,54.0558],[32.7042,53.3363],[32.1422,53.0913],[31.4178,53.196],[31.5771,52.3122],[31.7636,52.1012],[30.9806,52.0461],[30.5331,51.5964],[29.3466,51.3825],[29.1357,51.6173],[28.5991,51.5427],[27.2701,51.6135],[27.1422,51.752],[25.9251,51.9136],[24.3617,51.8674],[23.6053,51.5179],[23.6523,52.0403],[23.1969,52.257],[23.8445,52.6642],[23.8872,53.0276],[23.4845,53.9398],[24.7683,53.9746],[25.5473,54.3317],[25.8594,54.9192],[26.175,55.0033],[26.5936,55.6676],[27.5768,55.7988],[28.1481,56.143]]]},properties:{name:"Belarus",id:"BY"},id:"BY"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.832,17.8766],[-62.8655,17.9184],[-62.7996,17.9086],[-62.832,17.8766]]]},properties:{name:"Saint Barthelemy",id:"BL"},id:"BL"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-77.7439,24.7072],[-78.0449,24.2873],[-78.2988,24.7538],[-78.0333,25.1431],[-77.7439,24.7072]]],[[[-77.2257,25.904],[-77.4032,26.0247],[-77.2468,26.1565],[-77.2062,26.489],[-77.0384,26.3332],[-77.1673,26.2404],[-77.2257,25.904]]]]},properties:{name:"Bahamas",id:"BS"},id:"BS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[50.6072,25.8831],[50.4661,25.9657],[50.4523,26.1907],[50.6099,26.1246],[50.6072,25.8831]]]},properties:{name:"Bahrain",id:"BH"},id:"BH"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.007,44.8693],[19.3568,44.8586],[19.1517,44.3024],[19.4882,43.7036],[19.1943,43.5331],[18.9404,43.4967],[18.4437,42.9685],[18.4362,42.5597],[17.6678,42.897],[17.5852,42.9383],[17.6247,43.0426],[16.214,44.215],[15.7369,44.7658],[15.7879,45.1791],[16.2935,45.0086],[16.5305,45.2168],[17.8129,45.0779],[18.6625,45.0774],[19.007,44.8693]]]},properties:{name:"Bosnia and Herzegovina",id:"BA"},id:"BA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.5853,43.7422],[28.4655,43.3893],[27.9288,43.186],[27.8888,42.7497],[27.4849,42.4683],[28.0145,41.9689],[27.2949,42.0794],[26.6153,41.9649],[26.321,41.7167],[26.1355,41.3856],[25.2512,41.2436],[24.0558,41.5272],[23.635,41.3869],[22.9159,41.3363],[23.0056,41.7172],[22.8369,41.9937],[22.3442,42.3138],[22.4667,42.8425],[22.9767,43.1878],[22.5546,43.4546],[22.421,44.0077],[22.7051,44.2376],[23.2244,43.8741],[25.4972,43.6708],[26.2158,44.0072],[27.0867,44.1675],[28.5853,43.7422]]]},properties:{name:"Bulgaria",id:"BG"},id:"BG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[92.575,21.9782],[92.5937,21.4673],[92.1795,21.2933],[92.3242,20.7917],[92.0561,21.1747],[92.0082,21.6848],[91.693,22.5046],[91.4094,22.7972],[90.9455,22.597],[90.6334,23.0941],[90.435,22.7519],[90.5895,22.2583],[90.1589,21.8171],[89.8118,21.9835],[89.2343,21.7225],[89.0514,22.0932],[88.7407,23.4368],[88.5671,23.6743],[88.7336,24.2309],[88.1454,24.4857],[88.4561,25.1884],[88.4521,25.5746],[88.0846,25.8884],[88.4402,26.3696],[89.1082,26.2023],[89.2893,26.0376],[89.8229,25.9413],[89.814,25.3052],[90.4394,25.1578],[92.0499,25.1693],[92.2514,24.895],[91.8768,24.1954],[91.3672,24.0933],[91.1603,23.6605],[91.3152,23.1043],[91.6198,22.9796],[91.938,23.5047],[92.2461,23.6836],[92.3615,22.929],[92.4916,22.6853],[92.575,21.9782]]]},properties:{name:"Bangladesh",id:"BD"},id:"BD"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[.2175,14.9114],[.1638,14.4973],[.6183,13.7036],[.9779,13.5518],[.9872,13.0418],[1.5652,12.6356],[2.0739,12.7142],[2.0912,12.2778],[2.389,11.897],[1.9802,11.4184],[1.4267,11.4473],[.9007,10.9932],[-.0686,11.1157],[-.7014,10.9888],[-2.8298,10.9985],[-2.9148,10.5924],[-2.7865,10.4019],[-2.6958,9.4813],[-3.2235,9.8954],[-3.8776,9.895],[-4.6258,9.7134],[-4.9698,9.9301],[-5.0999,10.2417],[-5.5236,10.4259],[-5.4905,11.0425],[-5.2999,11.2058],[-5.2881,11.8277],[-4.798,12.0319],[-4.4287,12.3377],[-4.4807,12.6724],[-4.2272,12.7936],[-4.3286,13.119],[-4.0512,13.3822],[-3.5758,13.194],[-3.3017,13.2806],[-3.1985,13.673],[-2.4572,14.274],[-2.1132,14.1684],[-1.7678,14.4862],[-1.0496,14.8195],[-.7604,15.0477],[-.2359,15.0592],[.2175,14.9114]]]},properties:{name:"Burkina Faso",id:"BF"},id:"BF"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[3.5955,11.6963],[3.4877,11.3954],[3.7163,11.0797],[3.8343,10.6074],[3.5764,10.2683],[3.5573,9.9074],[3.3252,9.7783],[3.0451,9.084],[2.7748,9.0485],[2.686,7.874],[2.7748,6.7119],[2.7064,6.3692],[1.6224,6.2169],[1.6002,9.0498],[1.4244,9.2851],[1.3299,9.9971],[.7799,10.3598],[.9007,10.9932],[1.4267,11.4473],[1.9802,11.4184],[2.389,11.897],[2.3659,12.2219],[2.8782,12.3679],[3.5955,11.6963]]]},properties:{name:"Benin",id:"BJ"},id:"BJ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[30.5535,-2.3999],[30.5149,-2.9175],[30.7901,-3.2744],[30.4252,-3.5891],[30.1469,-4.0854],[29.7177,-4.456],[29.4034,-4.4494],[29.2232,-3.9109],[29.2245,-3.0533],[29.0146,-2.7204],[29.3901,-2.8087],[29.8682,-2.7164],[29.9303,-2.3396],[30.5535,-2.3999]]]},properties:{name:"Burundi",id:"BI"},id:"BI"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[48.5729,41.8446],[49.1064,41.3017],[49.2263,41.026],[49.7758,40.5839],[49.3244,39.6083],[49.363,39.3495],[49.0137,39.1342],[48.8685,38.4355],[48.5929,38.4111],[48.0233,38.819],[48.2422,38.9788],[47.9958,39.6842],[47.773,39.6486],[46.4906,38.9065],[46.5501,39.2012],[45.7897,39.8812],[45.9646,40.2337],[45.376,40.6381],[45.5877,40.8467],[45.0013,41.291],[45.281,41.4495],[46.4577,41.07],[46.6189,41.3439],[46.1821,41.6573],[46.4298,41.8907],[46.7494,41.8126],[47.2612,41.315],[47.8609,41.2129],[48.5729,41.8446]]],[[[46.1146,38.8776],[45.4798,39.0063],[44.8171,39.6504],[44.7683,39.7037],[45.0315,39.7649],[45.7662,39.3783],[46.1146,38.8776]]]]},properties:{name:"Azerbaijan",id:"AZ"},id:"AZ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[16.9531,48.5988],[17.1475,48.0058],[16.4342,47.3675],[16.4533,47.0066],[16.0929,46.8632],[15.9575,46.6777],[15.0009,46.6262],[14.5037,46.4171],[13.6998,46.5201],[12.3881,46.7025],[12.1542,46.9351],[11.2442,46.9755],[11.0249,46.7971],[10.4528,46.865],[9.5801,47.0572],[9.5277,47.2707],[9.5241,47.5242],[10.3129,47.3133],[10.4306,47.541],[11.2979,47.4247],[11.717,47.5837],[12.686,47.6693],[12.8143,48.1607],[13.4095,48.3942],[13.8148,48.7669],[14.0492,48.6024],[14.6915,48.5993],[14.972,48.9839],[16.0573,48.7549],[16.4777,48.8001],[16.9531,48.5988]]]},properties:{name:"Austria",id:"AT"},id:"AT"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[145.0431,-40.7868],[145.2832,-40.7699],[146.3175,-41.1637],[146.99,-40.9923],[147.4547,-41.0017],[147.9687,-40.7797],[148.2928,-40.9471],[148.3017,-42.0399],[147.9244,-42.5726],[147.9807,-43.1572],[147.4081,-42.894],[146.8741,-43.6126],[146.0431,-43.5474],[145.2681,-42.5442],[145.2384,-42.0195],[144.778,-41.4189],[144.6462,-40.9808],[145.0431,-40.7868]]],[[[137.5963,-35.7384],[137.4485,-36.0749],[136.7551,-36.0332],[136.6388,-35.7491],[137.334,-35.5924],[137.5963,-35.7384]]],[[[136.7147,-13.8039],[136.8945,-14.2931],[136.3632,-14.2288],[136.4249,-13.8648],[136.7147,-13.8039]]],[[[130.6188,-11.3763],[131.2682,-11.1899],[131.5385,-11.4367],[130.9508,-11.9263],[130.645,-11.7425],[130.6188,-11.3763]]],[[[143.1787,-11.9547],[143.1103,-12.3036],[143.4015,-12.6401],[143.5866,-13.4435],[143.5485,-13.7409],[143.7562,-14.349],[143.9617,-14.4627],[144.4731,-14.2319],[144.648,-14.4924],[145.2876,-14.943],[145.2717,-15.4765],[145.4581,-16.0563],[145.4261,-16.406],[145.902,-17.0701],[146.1257,-17.6352],[146.0325,-18.2731],[146.3334,-18.5536],[146.4813,-19.0787],[147.1387,-19.393],[147.4183,-19.3783],[147.9155,-19.8693],[148.7593,-20.2897],[148.6839,-20.5804],[149.205,-21.1251],[149.7039,-22.4408],[150.0763,-22.1647],[150.5415,-22.5593],[150.7639,-22.5761],[150.8429,-23.4582],[151.1537,-23.784],[151.9025,-24.2008],[152.1298,-24.5976],[152.4565,-24.8023],[152.9137,-25.4321],[153.1649,-25.9644],[153.0842,-26.3039],[153.117,-27.1944],[153.5755,-28.2407],[153.6044,-28.8546],[153.3483,-29.2905],[153.2724,-29.8924],[153.0304,-30.5635],[152.9439,-31.4349],[152.5595,-32.0457],[152.4703,-32.439],[151.8128,-32.9011],[151.4839,-33.3476],[151.2313,-34.0294],[150.9601,-34.2971],[150.6902,-35.1778],[150.1953,-35.8334],[149.9605,-36.8455],[149.9325,-37.5286],[149.2986,-37.8021],[148.2626,-37.8309],[147.3957,-38.2189],[146.8568,-38.6632],[145.9353,-38.9016],[145.791,-38.6668],[144.6653,-38.21],[143.5391,-38.8208],[142.6123,-38.4515],[141.725,-38.2713],[141.4244,-38.3636],[141.0112,-38.0769],[140.6272,-38.0285],[139.7843,-37.2459],[139.8575,-36.6622],[139.5486,-36.0967],[139.0376,-35.6892],[138.1845,-35.6128],[138.5112,-35.0242],[138.4899,-34.7636],[138.0895,-34.1697],[137.6918,-35.1432],[136.8834,-35.2399],[137.0144,-34.9159],[137.3908,-34.9132],[137.4938,-34.1613],[137.9319,-33.5789],[137.8524,-33.2007],[137.4423,-33.1936],[137.2372,-33.6295],[136.4307,-34.0299],[135.6476,-34.9394],[135.1855,-33.9069],[134.7909,-33.3285],[134.3013,-33.1652],[134.1002,-32.7488],[134.2343,-32.5486],[133.5511,-32.1829],[133.212,-32.1837],[132.7575,-31.956],[132.2146,-32.0071],[131.7214,-31.6964],[131.1435,-31.4957],[130.783,-31.604],[130.1296,-31.5792],[128.9462,-31.7026],[128.0677,-32.0666],[127.3198,-32.2641],[125.9171,-32.2969],[124.759,-32.8829],[124.126,-33.1292],[123.6506,-33.8364],[123.2076,-33.9882],[122.7774,-33.891],[122.1511,-33.9917],[121.4054,-33.8266],[119.854,-33.9748],[119.4505,-34.3681],[118.8951,-34.48],[118.1356,-34.9865],[117.5817,-35.0979],[116.5172,-34.9878],[115.9868,-34.7952],[115.7262,-34.5262],[115.0089,-34.2558],[115.1815,-33.6433],[115.5154,-33.5314],[115.6831,-33.1927],[115.6982,-31.6946],[115.1767,-30.8081],[114.9947,-30.2164],[114.9592,-29.4334],[114.5375,-28.5429],[114.165,-28.0808],[114.0283,-27.3471],[113.5818,-26.5583],[113.853,-26.3319],[113.5889,-26.0984],[113.5396,-25.6252],[114.2156,-26.2893],[114.2143,-25.8516],[113.671,-24.9772],[113.4175,-24.4356],[113.5529,-23.7329],[113.7571,-23.4182],[113.683,-22.6378],[113.9586,-21.9392],[114.1637,-22.3231],[114.3777,-22.3413],[114.8588,-21.7359],[115.4563,-21.4917],[116.0107,-21.0305],[116.7068,-20.6536],[117.4063,-20.7211],[118.1991,-20.3753],[118.7513,-20.2617],[119.1047,-19.9954],[119.5858,-20.0384],[120.8785,-19.6651],[121.4937,-19.1067],[121.8337,-18.4772],[122.2372,-17.9685],[122.1604,-17.3138],[122.7202,-16.7878],[122.9705,-16.4367],[123.5254,-17.4856],[123.778,-16.8677],[123.4903,-16.4908],[124.577,-16.1135],[124.3817,-15.758],[124.8389,-15.1609],[125.2432,-14.9448],[125.1789,-14.7148],[125.6814,-14.3881],[126.0209,-14.4946],[126.1115,-14.1142],[126.5696,-14.1608],[126.9034,-13.744],[127.6727,-14.195],[128.1996,-14.7517],[129.4589,-14.9332],[129.7536,-14.7894],[129.3785,-14.3926],[129.7097,-13.9802],[129.8389,-13.5731],[130.2597,-13.3024],[130.1682,-12.9574],[130.3999,-12.688],[130.898,-12.5238],[131.0458,-12.1895],[131.4382,-12.277],[132.3722,-12.2392],[132.5839,-12.1101],[132.6829,-11.5055],[133.0247,-11.4527],[133.1854,-11.7057],[133.904,-11.8322],[134.2369,-12.008],[134.7301,-11.9844],[135.2179,-12.2215],[135.7883,-11.9072],[136.0818,-12.4226],[136.5403,-11.9578],[136.9473,-12.3498],[136.5372,-12.7843],[136.5945,-13.0036],[135.9273,-13.3041],[135.9894,-13.8102],[135.8833,-14.1533],[135.4053,-14.7583],[135.5309,-15.0002],[136.2052,-15.4033],[136.7844,-15.8942],[137.0019,-15.8783],[137.7037,-16.2329],[138.2448,-16.7181],[139.0097,-16.8992],[139.2485,-17.3285],[140.0359,-17.7027],[140.5114,-17.6245],[140.8305,-17.4146],[141.2189,-16.6462],[141.412,-16.0696],[141.6255,-15.0566],[141.523,-14.4702],[141.5945,-14.1528],[141.4724,-13.7977],[141.6455,-13.2593],[141.6779,-12.4914],[141.9513,-11.8961],[142.1684,-10.9466],[142.4565,-10.7074],[142.8369,-11.3071],[142.8724,-11.8215],[143.1787,-11.9547]]]]},properties:{name:"Australia",id:"AU"},id:"AU"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[69.185,-49.1093],[69.9157,-49.3486],[69.6129,-49.6509],[68.8721,-49.4445],[69.185,-49.1093]]]},properties:{name:"French Southern and Antarctic Lands",id:"TF"},id:"TF"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-59.7339,-80.3442],[-60.5828,-80.9484],[-64.2683,-80.7486],[-65.9801,-80.3846],[-62.5189,-80.3736],[-61.3432,-79.8866],[-59.7064,-79.8755],[-59.7339,-80.3442]]],[[[-159.053,-79.8076],[-161.8655,-79.7037],[-164.2259,-79.3206],[-163.2562,-78.7223],[-161.6431,-78.9012],[-159.6842,-79.4023],[-159.053,-79.8076]]],[[[-70.334,-79.6797],[-71.7836,-79.4445],[-70.544,-78.8838],[-67.4785,-78.3627],[-66.7281,-78.3836],[-69.2509,-79.2101],[-70.334,-79.6797]]],[[[-45.2226,-78.8106],[-43.722,-78.8186],[-42.9654,-79.4769],[-43.5278,-80.1916],[-49.1875,-80.643],[-49.773,-80.7842],[-54.1626,-80.8703],[-53.4823,-80.1889],[-52.2971,-80.1414],[-50.3391,-79.4796],[-50.7331,-79.2829],[-50.2197,-78.6051],[-49.0811,-78.0476],[-46.8257,-77.7852],[-45.5302,-77.8815],[-43.8086,-78.2864],[-43.9473,-78.5975],[-45.2226,-78.8106]]],[[[-120.5562,-73.756],[-120.2726,-73.9891],[-121.0625,-74.3375],[-122.8591,-74.3428],[-122.6247,-73.9655],[-123.1121,-73.6823],[-120.5562,-73.756]]],[[[-126.3299,-73.2864],[-124.9933,-73.8297],[-124.8731,-74.2083],[-127.4143,-73.5163],[-126.3299,-73.2864]]],[[[-74.3544,-73.0986],[-74.5748,-73.6113],[-75.9009,-73.3325],[-75.3769,-72.8203],[-74.3544,-73.0986]]],[[[-91.1608,-73.1821],[-91.6699,-72.6236],[-90.8072,-72.6108],[-91.1608,-73.1821]]],[[[-98.0911,-71.9125],[-96.8695,-71.8508],[-95.6095,-72.0683],[-96.0518,-72.5775],[-98.4078,-72.5477],[-100.1951,-72.2725],[-102.2647,-72.1354],[-102.128,-71.9853],[-98.6155,-71.7638],[-98.0911,-71.9125]]],[[[-73.7067,-70.635],[-74.205,-70.924],[-76.1763,-71.1326],[-76.5004,-70.9413],[-75.0076,-70.6088],[-73.7067,-70.635]]],[[[-74.9871,-69.7277],[-74.8489,-70.1791],[-75.7267,-70.0961],[-74.9871,-69.7277]]],[[[-70.0511,-69.1892],[-69.417,-69.5834],[-68.3361,-70.8561],[-68.2411,-71.822],[-69.2092,-72.5344],[-72.3675,-72.6698],[-73.0864,-72.4079],[-71.1066,-72.047],[-72.4121,-71.6622],[-73.8994,-72.1522],[-75.3531,-71.8783],[-75.2925,-71.6151],[-74.1872,-71.383],[-72.6216,-71.3883],[-71.1941,-70.9848],[-71.0611,-70.5369],[-70.328,-70.3611],[-71.8537,-69.9692],[-71.869,-68.9411],[-70.417,-68.7889],[-70.0511,-69.1892]]],[[[-67.9885,-67.4745],[-68.5804,-67.7328],[-69.0825,-67.403],[-68.3359,-66.802],[-67.6878,-67.1473],[-67.9885,-67.4745]]],[[[-57.0206,-63.3729],[-58.2631,-63.7636],[-58.8954,-64.389],[-59.9632,-64.4312],[-61.0598,-64.9812],[-61.7361,-65.0335],[-62.1453,-65.3318],[-62.3051,-65.8405],[-61.8754,-66.296],[-63.7525,-66.2778],[-64.0778,-66.6542],[-64.6862,-66.8064],[-64.8193,-67.3076],[-65.4432,-67.3262],[-65.6394,-68.1306],[-64.8984,-68.6734],[-63.3436,-68.8106],[-63.4559,-69.0419],[-62.4505,-69.5843],[-61.9611,-70.1201],[-61.9611,-70.9005],[-61.0172,-71.1668],[-61.2136,-71.5641],[-60.7193,-72.0728],[-60.3846,-73.0072],[-61.4054,-73.467],[-60.8789,-73.6122],[-61.0107,-74.4782],[-62.2257,-74.5057],[-63.9247,-75.0047],[-63.3634,-75.4517],[-66.3705,-76.0132],[-69.3044,-76.3506],[-70.0954,-76.6546],[-71.7987,-76.7527],[-75.2683,-76.5814],[-77.19,-76.6298],[-76.2487,-77.2747],[-75.3869,-77.474],[-72.852,-77.5903],[-73.2515,-77.8944],[-74.812,-78.1776],[-80.6015,-77.7519],[-81.4411,-77.8855],[-77.4325,-78.4346],[-77.8691,-78.7454],[-80.2923,-78.8226],[-83.246,-78.3569],[-83.26,-78.7742],[-80.1512,-79.2683],[-76.499,-79.3255],[-76.5578,-79.9035],[-75.2366,-80.8028],[-73.0296,-80.9173],[-70.239,-80.8565],[-64.7501,-81.5219],[-64.1371,-81.8695],[-65.9133,-82.1833],[-62.7357,-82.5273],[-61.5898,-83.3414],[-59.5159,-83.4586],[-57.3535,-82.8403],[-53.9862,-82.2006],[-48.3607,-81.8921],[-43.6692,-82.2699],[-41.4338,-81.2977],[-38.7718,-80.8823],[-37.2093,-81.0638],[-35.3269,-80.6505],[-29.3291,-80.172],[-24.2403,-80.0619],[-25.2586,-79.7623],[-29.9494,-79.599],[-30.3161,-79.1631],[-32.9943,-79.2288],[-36.2391,-78.7742],[-36.181,-78.4684],[-34.0758,-77.4252],[-32.0634,-77.1598],[-28.9336,-76.3701],[-26.0594,-75.9573],[-24.2696,-75.7668],[-19.4931,-75.54],[-17.2989,-74.334],[-15.6725,-74.4072],[-15.7488,-73.9456],[-16.5188,-73.6441],[-15.5959,-73.0968],[-14.3211,-73.123],[-14.2978,-72.7328],[-13.2087,-72.7852],[-11.497,-72.4128],[-10.8254,-71.5534],[-9.8879,-71.0274],[-9.2307,-71.1739],[-8.6466,-71.6728],[-7.7137,-71.5463],[-7.8735,-70.9404],[-5.9364,-70.7127],[-5.5879,-70.8569],[-5.9499,-71.3417],[-2.8121,-71.3208],[-.8958,-71.3492],[-.5431,-71.7128],[.835,-71.2023],[2.6096,-70.9],[5.1132,-70.6559],[8.5232,-70.4739],[9.1415,-70.1836],[10.2175,-70.5081],[11.7014,-70.7664],[12.9292,-70.2133],[13.8228,-70.3434],[15.807,-70.3238],[18.1246,-70.5405],[19.1966,-70.2932],[19.2649,-70.9022],[21.0707,-70.8436],[21.705,-70.2586],[22.979,-70.8103],[23.8037,-70.4046],[24.7567,-70.892],[25.9743,-71.0372],[27.207,-70.9111],[30.0035,-70.2999],[31.3787,-70.2257],[32.6212,-70.0007],[32.9892,-69.6243],[32.5675,-69.0743],[33.1214,-68.689],[34.193,-68.7023],[35.2246,-69.6371],[37.5599,-69.7184],[38.8592,-70.006],[39.7053,-69.4258],[39.8637,-68.9669],[41.1328,-68.5749],[42.409,-68.3521],[42.8196,-68.123],[44.6999,-67.9042],[44.9893,-67.7692],[47.1174,-67.5726],[48.6479,-67.7941],[48.7136,-67.217],[49.2472,-66.9414],[50.6059,-67.15],[50.3325,-66.4447],[51.8843,-66.0199],[53.6719,-65.8587],[54.9481,-65.9164],[55.7102,-66.0798],[57.1853,-66.6133],[56.4533,-66.7798],[56.8919,-67.0563],[57.6274,-67.0142],[58.7376,-67.2295],[59.2507,-67.4851],[60.4821,-67.3853],[62.6878,-67.6476],[63.6989,-67.5082],[68.3279,-67.8895],[69.4163,-67.743],[69.9822,-68.4644],[69.5344,-68.7369],[69.6293,-69.2314],[68.9062,-69.3726],[69.0825,-69.8666],[68.1783,-69.8373],[67.2678,-70.2732],[67.9408,-70.4228],[69.2503,-70.4313],[68.8725,-71.0354],[68.0375,-71.391],[67.4321,-72.0031],[66.8919,-72.9486],[67.9714,-73.0857],[68.4197,-72.5149],[69.5548,-72.3746],[71.2766,-71.624],[71.9047,-70.7069],[72.7601,-70.3957],[72.8223,-70.0961],[73.9422,-69.7432],[75.4239,-69.8933],[75.8913,-69.5754],[77.8174,-69.069],[78.7265,-68.2779],[79.288,-68.1195],[82.017,-67.6902],[83.3043,-67.6032],[84.4851,-67.1145],[85.7107,-67.1611],[87.9803,-66.7882],[89.6986,-66.8229],[92.0734,-66.5077],[93.9644,-66.6897],[94.8397,-66.5015],[95.5411,-66.6311],[98.2577,-66.4673],[99.3701,-66.6484],[100.8891,-66.3581],[101.4746,-65.9511],[102.674,-65.8654],[103.9511,-65.9879],[108.1578,-66.6391],[109.4629,-66.9085],[110.6223,-66.5241],[110.9069,-66.0767],[113.0992,-65.8001],[113.7096,-65.9297],[114.3368,-66.3603],[115.3103,-66.561],[115.2739,-67.0279],[113.991,-67.2117],[114.0265,-67.4412],[116.7134,-67.047],[118.1388,-67.0825],[119.1331,-67.3706],[121.4875,-67.0905],[122.1826,-66.8593],[123.9693,-66.608],[124.5978,-66.7083],[125.8656,-66.3643],[126.6646,-66.4975],[127.5413,-67.051],[129.2369,-67.0417],[129.7412,-66.4686],[130.9517,-66.1912],[131.831,-66.2356],[133.4446,-66.0816],[134.9716,-66.3301],[135.352,-66.1273],[136.1941,-66.2924],[137.7539,-66.4065],[139.9001,-66.715],[141.9726,-66.8069],[142.8884,-67],[143.4481,-66.877],[144.6214,-67.1416],[143.9422,-67.7941],[145.9752,-67.6241],[146.8279,-67.9645],[147.0938,-68.3685],[148.4561,-68.467],[151.068,-68.3849],[151.562,-68.6939],[153.0819,-68.8568],[154.1997,-68.4178],[155.5202,-69.0246],[157.4813,-69.3087],[158.1578,-69.2088],[159.7838,-69.5217],[160.2095,-69.9749],[161.0369,-70.3172],[161.4244,-70.8268],[162.6749,-70.3047],[163.3487,-70.6208],[164.4034,-70.5103],[166.6269,-70.6643],[167.5692,-70.8103],[168.1725,-71.1832],[170.1625,-71.6307],[169.8287,-72.7288],[169.545,-73.0502],[167.6158,-73.337],[164.7758,-74.0286],[165.3027,-74.5936],[163.1672,-74.6021],[162.5337,-75.1671],[161.6797,-75.2177],[162.8156,-75.8463],[162.7628,-76.7456],[164.4296,-78.0422],[166.2087,-78.4515],[164.6347,-78.6033],[160.4829,-79.2017],[160.542,-80.425],[160.9078,-81.3901],[162.8214,-81.8664],[167.2328,-82.9521],[168.1099,-83.3618],[171.9172,-83.6441],[179.403,-84.2061],[180,-84.3517],[180,-89.9989],[-180,-89.9989],[-180,-89.583],[-180,-89.2931],[-180,-88.5869],[-180,-87.8811],[-180,-87.1753],[-180,-86.4695],[-180,-85.7633],[-180,-85.0575],[-180,-84.3517],[-171.7037,-84.5426],[-162.9335,-84.9012],[-157.1276,-85.1858],[-156.9864,-84.8111],[-163.5685,-84.5288],[-164.951,-83.8057],[-167.5528,-83.8111],[-169.1677,-83.4497],[-174.0661,-82.9002],[-171.8213,-82.8474],[-168.4178,-83.2287],[-163.111,-83.329],[-159.4445,-83.5434],[-157.6796,-83.1292],[-155.4594,-82.9805],[-153.0098,-82.4496],[-154.7175,-81.9409],[-153.9566,-81.7003],[-157.0326,-81.319],[-156.5283,-81.1623],[-148.1228,-80.9009],[-150.5755,-80.3536],[-148.3172,-80.0708],[-148.1765,-79.7761],[-152.0914,-79.2416],[-155.21,-78.9646],[-156.4693,-78.6353],[-154.7164,-78.3982],[-155.3416,-78.1918],[-157.2667,-78.1998],[-158.5003,-77.7786],[-158.2136,-77.1571],[-154.8149,-77.1269],[-153.4606,-77.4159],[-151.719,-77.4261],[-149.7177,-77.7976],[-145.967,-77.0688],[-145.7504,-76.7492],[-147.3404,-76.4384],[-146.383,-76.0998],[-143.5742,-75.5635],[-142.3298,-75.4907],[-141.5057,-75.6905],[-139.6911,-75.2129],[-137.6181,-75.0757],[-136.5494,-75.1396],[-135.362,-74.6904],[-133.4748,-74.852],[-132.0495,-74.7659],[-129.7907,-74.8915],[-127.8633,-74.7193],[-123.8894,-74.773],[-119.6771,-74.6544],[-118.3421,-74.3815],[-115.1052,-74.4551],[-114.7909,-73.9886],[-113.5085,-74.0889],[-113.9318,-74.982],[-111.6963,-74.7921],[-111.8064,-74.2696],[-110.307,-74.3668],[-110.3005,-74.7108],[-111.4631,-75.1334],[-109.2722,-75.1849],[-106.6189,-75.3438],[-104.9019,-75.1152],[-101.7081,-75.1272],[-101.0394,-75.4219],[-98.5578,-75.1898],[-101.2518,-74.4858],[-101.7154,-74.0237],[-102.7663,-73.8838],[-102.4108,-73.6166],[-100.9854,-73.7573],[-99.7812,-73.7201],[-100.0209,-73.4027],[-102.6751,-73.321],[-102.4092,-72.9876],[-98.0125,-73.0334],[-96.1521,-73.3095],[-94.2463,-73.313],[-92.241,-73.1785],[-90.9209,-73.3192],[-90.2954,-72.9779],[-88.1945,-72.8585],[-88.4193,-73.2291],[-87.0379,-73.3538],[-85.9808,-73.2087],[-84.9811,-73.5021],[-82.1835,-73.8568],[-81.3088,-73.7383],[-81.2624,-73.3148],[-80.4421,-72.9446],[-79.5217,-73.0897],[-78.4078,-73.5558],[-76.8506,-73.4604],[-77.1349,-73.8177],[-75.293,-73.6388],[-73.9961,-73.6996],[-72.9293,-73.4479],[-68.821,-73.1053],[-67.6671,-72.8345],[-66.8277,-72.0905],[-67.4603,-71.5268],[-67.8884,-70.4215],[-68.4033,-70.0198],[-68.7078,-69.4321],[-67.3717,-69.4125],[-66.9749,-69.1608],[-67.3906,-68.8612],[-66.7933,-68.2402],[-67.1498,-68.0245],[-66.705,-67.5273],[-67.5859,-67.435],[-67.4934,-67.1127],[-66.371,-66.6089],[-65.7664,-66.6249],[-65.6172,-66.1353],[-64.0658,-65.5538],[-64.0381,-65.1791],[-62.5761,-64.7557],[-61.6317,-64.6047],[-60.8643,-64.0734],[-59.5102,-63.8208],[-58.8721,-63.5518],[-57.3897,-63.2264],[-57.0206,-63.3729]]]]},properties:{name:"Antarctica",id:"AQ"},id:"AQ"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-170.7262,-14.3513],[-170.8205,-14.3122],[-170.6891,-14.2576],[-170.7262,-14.3513]]]},properties:{name:"American Samoa",id:"AS"},id:"AS"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.4906,38.9065],[46.1146,38.8776],[45.7662,39.3783],[45.0315,39.7649],[44.7683,39.7037],[44.2893,40.0406],[43.7917,40.0703],[43.5693,40.4823],[43.7225,40.7193],[43.4393,41.1073],[45.0013,41.291],[45.5877,40.8467],[45.376,40.6381],[45.9646,40.2337],[45.7897,39.8812],[46.5501,39.2012],[46.4906,38.9065]]]},properties:{name:"Armenia",id:"AM"},id:"AM"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-62.6509,-22.2339],[-62.3726,-22.439],[-61.7984,-23.1821],[-61.0329,-23.7556],[-59.8924,-24.0934],[-59.373,-24.4538],[-58.3654,-24.9594],[-57.8216,-25.1365],[-57.5872,-25.4051],[-57.8906,-26.0065],[-58.2031,-26.3816],[-58.1914,-26.6302],[-58.6186,-27.1323],[-57.1118,-27.4701],[-56.3705,-27.5375],[-56.0673,-27.3076],[-55.7147,-27.415],[-55.4266,-27.0093],[-55.1358,-26.9312],[-54.7552,-26.533],[-54.6158,-25.576],[-54.1546,-25.5231],[-53.8912,-25.6687],[-53.6712,-26.2249],[-53.8381,-27.1212],[-54.3271,-27.4234],[-54.8291,-27.5508],[-55.1014,-27.8669],[-55.7255,-28.2043],[-56.9387,-29.595],[-57.609,-30.188],[-57.8724,-30.5911],[-57.8105,-30.8587],[-58.1889,-31.9241],[-58.2011,-32.4718],[-58.1709,-32.9592],[-58.4244,-33.1115],[-58.5471,-33.6637],[-58.2835,-34.6837],[-57.3036,-35.1884],[-57.1589,-35.5058],[-57.354,-35.7202],[-57.265,-36.1441],[-56.6981,-36.4265],[-56.6721,-36.8513],[-57.3957,-37.7448],[-57.5471,-38.0857],[-58.1792,-38.436],[-59.8282,-38.8381],[-61.1122,-38.993],[-62.067,-38.9189],[-62.3382,-39.1506],[-62.0537,-39.3739],[-62.2869,-39.8955],[-62.395,-40.8907],[-62.959,-41.1095],[-63.7731,-41.1499],[-64.8531,-40.8139],[-65.1334,-40.8805],[-65.059,-41.9698],[-64.4205,-42.4337],[-63.596,-42.4066],[-63.6925,-42.8052],[-64.1306,-42.8616],[-64.6504,-42.5313],[-65.0269,-42.759],[-64.4323,-43.0591],[-64.9856,-43.2935],[-65.2837,-43.6299],[-65.3613,-44.4773],[-65.6476,-44.6615],[-65.6388,-45.0078],[-66.1901,-44.9647],[-66.9414,-45.2573],[-67.5566,-45.9701],[-67.5633,-46.3452],[-66.7769,-47.0057],[-65.9985,-47.0936],[-65.7382,-47.3449],[-65.8101,-47.941],[-67.033,-48.6277],[-67.6849,-49.2465],[-67.7834,-49.8591],[-68.9396,-50.3824],[-69.2352,-50.9506],[-69.0325,-51.6364],[-68.4433,-52.3569],[-69.9603,-52.0084],[-71.9187,-51.9898],[-72.4077,-51.541],[-72.2763,-50.9102],[-72.5098,-50.6075],[-73.153,-50.7384],[-73.5012,-50.1254],[-73.5762,-49.583],[-72.6143,-48.7929],[-72.3549,-48.3658],[-72.518,-47.8762],[-72.346,-47.4927],[-71.905,-47.2015],[-71.9403,-46.8313],[-71.6952,-46.5783],[-71.8757,-46.1606],[-71.7727,-45.7242],[-71.3537,-45.2306],[-71.5962,-44.9794],[-71.2611,-44.7632],[-71.2127,-44.4414],[-71.82,-44.3832],[-71.6801,-43.9296],[-71.905,-43.44],[-71.7816,-43.167],[-72.1464,-42.9899],[-72.1247,-42.2983],[-71.7501,-42.0466],[-71.9114,-41.6506],[-71.932,-40.6918],[-71.6952,-40.3354],[-71.7199,-39.6354],[-71.5394,-39.6025],[-71.4256,-38.9855],[-70.9517,-38.7383],[-71.0281,-38.0413],[-71.1677,-37.7621],[-71.0556,-36.5237],[-70.4048,-36.0616],[-70.4703,-35.3261],[-70.2899,-34.733],[-69.8524,-34.2243],[-69.7978,-33.3987],[-70.0198,-33.2717],[-70.1696,-32.4718],[-70.5853,-31.5694],[-70.5196,-31.1486],[-70.1614,-30.4401],[-69.9563,-30.358],[-69.9277,-29.7694],[-70.0269,-29.3242],[-69.8278,-29.1031],[-69.6569,-28.4138],[-69.1744,-27.9246],[-68.8463,-27.1536],[-68.3461,-27.0279],[-68.5811,-26.5183],[-68.4144,-26.1539],[-68.6002,-25.4859],[-68.3842,-25.0921],[-68.562,-24.8378],[-68.2502,-24.3921],[-67.3562,-24.0339],[-67.0088,-23.0014],[-67.1948,-22.8216],[-66.7117,-22.2161],[-66.3652,-22.1136],[-66.0986,-21.8353],[-65.771,-22.0994],[-65.0579,-22.103],[-64.6056,-22.229],[-64.3739,-22.7612],[-63.9762,-22.0728],[-63.8186,-22.0053],[-62.8434,-21.9973],[-62.6509,-22.2339]]],[[[-68.6532,-54.8538],[-68.6299,-52.6525],[-68.2782,-52.9841],[-68.0085,-53.5638],[-67.2943,-54.0499],[-65.346,-54.8777],[-66.5112,-55.0322],[-66.9305,-54.9248],[-68.6532,-54.8538]]]]},properties:{name:"Argentina",id:"AR"},id:"AR"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[56.2979,25.6505],[56.388,24.9793],[56.064,24.7388],[55.7959,24.8679],[55.7608,24.2425],[55.1997,23.0346],[55.186,22.704],[55.1043,22.6214],[52.555,22.933],[51.5927,24.0787],[51.5683,24.286],[51.9061,23.9855],[52.6483,24.1546],[53.8934,24.0769],[54.3972,24.278],[54.747,24.8102],[55.941,25.7939],[56.0804,26.0624],[56.2979,25.6505]]]},properties:{name:"United Arab Emirates",id:"AE"},id:"AE"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[1.7059,42.5033],[1.4861,42.4345],[1.4284,42.5961],[1.7059,42.5033]]]},properties:{name:"Andorra",id:"AD"},id:"AD"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.9893,60.3511],[20.2588,60.2612],[19.7461,60.099],[19.6871,60.2677],[19.9893,60.3511]]]},properties:{name:"Aland Islands",id:"AX"},id:"AX"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.0639,42.5473],[20.4856,42.2232],[20.566,41.8739],[20.4892,41.2724],[20.9641,40.8498],[21.0312,40.6585],[20.6574,40.1174],[20.0013,39.7095],[19.8517,40.0437],[19.3981,40.2847],[19.4407,41.4247],[19.3426,41.869],[19.2809,42.1726],[19.6546,42.6285],[20.0639,42.5473]]]},properties:{name:"Albania",id:"AL"},id:"AL"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.0012,18.222],[-63.1534,18.2002],[-63.026,18.2699],[-63.0012,18.222]]]},properties:{name:"Anguilla",id:"AI"},id:"AI"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[12.2137,-5.7589],[12.0184,-5.0042],[12.3846,-4.6189],[12.8809,-4.4454],[13.0726,-4.6349],[12.8298,-4.7366],[12.5222,-5.1489],[12.5035,-5.6958],[12.2137,-5.7589]]],[[[23.9666,-10.8716],[23.9915,-12.4221],[23.8432,-13.0009],[21.9789,-13.0009],[21.9798,-15.9555],[22.1507,-16.5974],[23.3807,-17.6405],[21.4169,-18.0005],[20.625,-17.9965],[20.3928,-17.8873],[19.6396,-17.8687],[18.8259,-17.7661],[18.3962,-17.3995],[16.9136,-17.3915],[13.9382,-17.3888],[13.4038,-17.008],[13.101,-16.9676],[12.5479,-17.2126],[11.7432,-17.2494],[11.8191,-16.7043],[11.7507,-15.8321],[11.9678,-15.6341],[12.2803,-14.6376],[12.5506,-13.4377],[12.9834,-12.7759],[13.4171,-12.5202],[13.7855,-11.8127],[13.8477,-11.0545],[13.2093,-9.7033],[12.9985,-9.0481],[13.3589,-8.6872],[13.3785,-8.3698],[12.8622,-7.2317],[12.8236,-6.9547],[12.5213,-6.5903],[12.3025,-6.0927],[13.0682,-5.8649],[14.3985,-5.8925],[16.3152,-5.8658],[16.7179,-6.2414],[16.7094,-6.4717],[17.1551,-7.4612],[17.536,-8.076],[18.6532,-7.9361],[19.3408,-7.9668],[19.5277,-7.1447],[19.8753,-6.9862],[20.4821,-6.9161],[20.6077,-7.2778],[21.7511,-7.3054],[21.9056,-8.6934],[21.8133,-9.4689],[22.1977,-10.0406],[22.3069,-10.6914],[22.5613,-11.0558],[23.8339,-11.0136],[23.9666,-10.8716]]]]},properties:{name:"Angola",id:"AO"},id:"AO"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[74.8912,37.2317],[74.5415,37.0221],[74.0017,36.8233],[73.7691,36.8885],[72.623,36.8295],[71.6206,36.4366],[71.1852,36.042],[71.4276,35.8338],[71.6206,35.1831],[70.9655,34.5306],[71.0516,34.0498],[69.8682,33.8976],[70.2841,33.3689],[69.9201,33.1123],[69.5015,33.02],[69.2414,32.4336],[69.2791,31.9369],[68.869,31.6342],[68.2138,31.8073],[67.5781,31.5063],[67.2874,31.2178],[66.9243,31.3057],[66.3974,30.9124],[66.1772,29.8355],[65.0954,29.5594],[64.521,29.5643],[64.0989,29.3921],[63.5676,29.4982],[62.4765,29.4085],[60.8434,29.8586],[61.104,30.1285],[61.7844,30.8321],[61.6602,31.3825],[60.854,31.4833],[60.8292,32.2494],[60.5606,33.1376],[60.9171,33.5052],[60.5109,33.6388],[60.4856,34.0947],[61.08,34.8555],[61.262,35.6194],[62.6105,35.2333],[63.0566,35.4459],[63.1086,35.8187],[63.8623,36.0123],[64.5108,36.3408],[64.8162,37.1322],[65.5549,37.2512],[65.7648,37.569],[66.5221,37.3484],[67.069,37.3346],[67.7592,37.1722],[68.0677,36.9498],[68.9604,37.3249],[69.2649,37.1083],[69.4922,37.553],[70.2512,37.664],[70.2148,37.9246],[70.8789,38.4564],[71.2558,38.3068],[71.5518,37.933],[71.4329,37.1273],[71.8022,36.6941],[72.8955,37.2676],[73.4814,37.4718],[73.7496,37.2317],[74.2596,37.4154],[74.8912,37.2317]]]},properties:{name:"Afghanistan",id:"AF"},id:"AF"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.7161,17.0368],[-61.8597,17.0133],[-61.8173,17.1691],[-61.7161,17.0368]]]},properties:{name:"Antigua and Barbuda",id:"AG"},id:"AG"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-69.8992,12.4518],[-69.9421,12.4385],[-70.0661,12.5468],[-69.9732,12.5677],[-69.8992,12.4518]]]},properties:{name:"Aruba",id:"AW"},id:"AW"}]}}},["ATzU"]),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
|
||
*
|
||
* This sofware is provided under multiple licenses. Please see below for
|
||
* links to appropriate usage.
|
||
*
|
||
* Free amCharts linkware license. Details and conditions:
|
||
* https://github.com/amcharts/amcharts4/blob/master/LICENSE
|
||
*
|
||
* One of the amCharts commercial licenses. Details and pricing:
|
||
* https://www.amcharts.com/online-store/
|
||
* https://www.amcharts.com/online-store/licenses-explained/
|
||
*
|
||
* If in doubt, contact amCharts at contact@amcharts.com
|
||
*
|
||
* PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE.
|
||
* @hidden
|
||
*/
|
||
am4internal_webpackJsonp(["5a29"],{h34k:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});window.am4geodata_data_countries2={AD:{country:"Andorra",continent_code:"EU",continent:"Europe",maps:["andorraLow","andorraHigh"]},AE:{country:"United Arab Emirates",continent_code:"AS",continent:"Asia",maps:["uaeLow","uaeHigh"]},AF:{country:"Afghanistan",continent_code:"AS",continent:"Asia",maps:[]},AG:{country:"Antigua and Barbuda",continent_code:"NA",continent:"North America",maps:["antiguaBarbudaLow","antiguaBarbudaHigh"]},AI:{country:"Anguilla",continent_code:"NA",continent:"North America",maps:["anguillaLow","anguillaHigh"]},AL:{country:"Albania",continent_code:"EU",continent:"Europe",maps:["albaniaLow","albaniaHigh"]},AM:{country:"Armenia",continent_code:"EU",continent:"Europe",maps:["armeniaLow","armeniaHigh"]},AO:{country:"Angola",continent_code:"AF",continent:"Africa",maps:["angolaLow","angolaHigh"]},AQ:{country:"Antarctica",continent_code:"AN",continent:"Antarctica",maps:[]},AR:{country:"Argentina",continent_code:"SA",continent:"South America",maps:["argentinaLow","argentinaHigh"]},AS:{country:"American Samoa",continent_code:"OC",continent:"Oceania",maps:["americanSamoaLow","americanSamoaHigh"]},AT:{country:"Austria",continent_code:"EU",continent:"Europe",maps:["austriaLow","austriaHigh"]},AU:{country:"Australia",continent_code:"OC",continent:"Oceania",maps:["australiaLow","australiaHigh"]},AW:{country:"Aruba",continent_code:"NA",continent:"North America",maps:["arubaLow","arubaHigh"]},AX:{country:"Aland Islands",continent_code:"EU",continent:"Europe",maps:[]},AZ:{country:"Azerbaijan",continent_code:"EU",continent:"Europe",maps:["azerbaijanLow","azerbaijanHigh"]},BA:{country:"Bosnia and Herzegovina",continent_code:"EU",continent:"Europe",maps:["bosniaHerzegovinaLow","bosniaHerzegovinaHigh","bosniaHerzegovinaCantonsLow","bosniaHerzegovinaCantonsHigh"]},BB:{country:"Barbados",continent_code:"NA",continent:"North America",maps:["barbadosLow","barbadosHigh"]},BD:{country:"Bangladesh",continent_code:"AS",continent:"Asia",maps:["bangladeshLow","bangladeshHigh"]},BE:{country:"Belgium",continent_code:"EU",continent:"Europe",maps:["belgiumLow","belgiumHigh"]},BF:{country:"Burkina Faso",continent_code:"AF",continent:"Africa",maps:["burkinaFasoLow","burkinaFasoHigh"]},BG:{country:"Bulgaria",continent_code:"EU",continent:"Europe",maps:["bulgariaLow","bulgariaHigh"]},BH:{country:"Bahrain",continent_code:"AS",continent:"Asia",maps:["bahrainLow","bahrainHigh"]},BI:{country:"Burundi",continent_code:"AF",continent:"Africa",maps:["burundiLow","burundiHigh"]},BJ:{country:"Benin",continent_code:"AF",continent:"Africa",maps:["beninLow","beninHigh"]},BL:{country:"Saint Barthelemy",continent_code:"NA",continent:"North America",maps:[]},BM:{country:"Bermuda",continent_code:"NA",continent:"North America",maps:["bermudaLow","bermudaHigh"]},BN:{country:"Brunei Darussalam",continent_code:"AS",continent:"Asia",maps:["bruneiDarussalamLow","bruneiDarussalamHigh"]},BO:{country:"Bolivia, Plurinational State of",continent_code:"SA",continent:"South America",maps:["boliviaLow","boliviaHigh"]},BQ:{country:"Bonaire, Sint Eustatius and Saba",continent_code:"NA",continent:"North America",maps:["bonaireSintEustatiusSabaLow","bonaireSintEustatiusSabaHigh"]},BR:{country:"Brazil",continent_code:"SA",continent:"South America",maps:["brazilLow","brazilHigh"]},BS:{country:"Bahamas",continent_code:"NA",continent:"North America",maps:["bahamasLow","bahamasHigh"]},BT:{country:"Bhutan",continent_code:"AS",continent:"Asia",maps:["bhutanLow","bhutanHigh"]},BV:{country:"Bouvet Island",continent_code:"AN",continent:"Antarctica",maps:[]},BW:{country:"Botswana",continent_code:"AF",continent:"Africa",maps:["botswanaLow","botswanaHigh"]},BY:{country:"Belarus",continent_code:"EU",continent:"Europe",maps:["belarusLow","belarusHigh"]},BZ:{country:"Belize",continent_code:"NA",continent:"North America",maps:["belizeLow","belizeHigh"]},CA:{country:"Canada",continent_code:"NA",continent:"North America",maps:["canadaLow","canadaHigh"]},CC:{country:"Cocos (Keeling) Islands",continent_code:"AS",continent:"Asia",maps:["cocosKeelingLow","cocosKeelingHigh"]},CD:{country:"Congo, the Democratic Republic of the",continent_code:"AF",continent:"Africa",maps:["congoDRLow","congoDRHigh"]},CF:{country:"Central African Republic",continent_code:"AF",continent:"Africa",maps:["centralAfricanRepublicLow","centralAfricanRepublicHigh"]},CG:{country:"Congo",continent_code:"AF",continent:"Africa",maps:["congoLow","congoHigh"]},CH:{country:"Switzerland",continent_code:"EU",continent:"Europe",maps:["switzerlandLow","switzerlandHigh"]},CI:{country:"Cote d'Ivoire",continent_code:"AF",continent:"Africa",maps:[]},CK:{country:"Cook Islands",continent_code:"OC",continent:"Oceania",maps:[]},CL:{country:"Chile",continent_code:"SA",continent:"South America",maps:["chileLow","chileHigh"]},CM:{country:"Cameroon",continent_code:"AF",continent:"Africa",maps:["cameroonLow","cameroonHigh"]},CN:{country:"China",continent_code:"AS",continent:"Asia",maps:["chinaLow","chinaHigh"]},CO:{country:"Colombia",continent_code:"SA",continent:"South America",maps:["colombiaLow","colombiaHigh","colombiaMuniLow","colombiaMuniHigh"]},CR:{country:"Costa Rica",continent_code:"NA",continent:"North America",maps:["costaRicaLow","costaRicaHigh"]},CU:{country:"Cuba",continent_code:"NA",continent:"North America",maps:[]},CV:{country:"Cape Verde",continent_code:"AF",continent:"Africa",maps:["capeVerdeLow","capeVerdeHigh"]},CW:{country:"Curacao",continent_code:"NA",continent:"North America",maps:["curacaoLow","curacaoHigh"]},CX:{country:"Christmas Island",continent_code:"AS",continent:"Asia",maps:[]},CY:{country:"Cyprus",continent_code:"EU",continent:"Europe",maps:["cyprusLow","cyprusHigh","cyprusNorthCyprusLow","cyprusNorthCyprusHigh"]},CZ:{country:"Czech Republic",continent_code:"EU",continent:"Europe",maps:["czechiaLow","czechiaHigh"]},DE:{country:"Germany",continent_code:"EU",continent:"Europe",maps:["germanyLow","germanyHigh"]},DJ:{country:"Djibouti",continent_code:"AF",continent:"Africa",maps:["djiboutiLow","djiboutiHigh"]},DK:{country:"Denmark",continent_code:"EU",continent:"Europe",maps:["denmarkLow","denmarkHigh"]},DM:{country:"Dominica",continent_code:"NA",continent:"North America",maps:["dominicaLow","dominicaHigh"]},DO:{country:"Dominican Republic",continent_code:"NA",continent:"North America",maps:["dominicanRepublicLow","dominicanRepublicHigh","dominicanRepublicMuniLow","dominicanRepublicMuniHigh"]},DZ:{country:"Algeria",continent_code:"AF",continent:"Africa",maps:["algeriaLow","algeriaHigh"]},EC:{country:"Ecuador",continent_code:"SA",continent:"South America",maps:["ecuadorLow","ecuadorHigh"]},EE:{country:"Estonia",continent_code:"EU",continent:"Europe",maps:["estoniaLow","estoniaHigh"]},EG:{country:"Egypt",continent_code:"AF",continent:"Africa",maps:["egyptLow","egyptHigh"]},EH:{country:"Western Sahara",continent_code:"AF",continent:"Africa",maps:[]},ER:{country:"Eritrea",continent_code:"AF",continent:"Africa",maps:["eritreaLow","eritreaHigh"]},ES:{country:"Spain",continent_code:"EU",continent:"Europe",maps:["spainLow","spainHigh","spainProvincesLow","spainProvincesHigh"]},ET:{country:"Ethiopia",continent_code:"AF",continent:"Africa",maps:["ethiopiaLow","ethiopiaHigh"]},FI:{country:"Finland",continent_code:"EU",continent:"Europe",maps:["finlandLow","finlandHigh"]},FJ:{country:"Fiji",continent_code:"OC",continent:"Oceania",maps:["fijiEastLow","fijiEastHigh","fijiWestLow","fijiWestHigh"]},FK:{country:"Falkland Islands (Malvinas)",continent_code:"SA",continent:"South America",maps:[]},FM:{country:"Micronesia, Federated States of",continent_code:"OC",continent:"Oceania",maps:[]},FO:{country:"Faroe Islands",continent_code:"EU",continent:"Europe",maps:["faroeIslandsLow","faroeIslandsHigh"]},FR:{country:"France",continent_code:"EU",continent:"Europe",maps:["franceLow","franceHigh","franceDepartmentsLow","franceDepartmentsHigh"]},GA:{country:"Gabon",continent_code:"AF",continent:"Africa",maps:["gabonLow","gabonHigh"]},GB:{country:"United Kingdom",continent_code:"EU",continent:"Europe",maps:["ukLow","ukHigh","ukCountiesLow","ukCountiesHigh","ukCountriesLow","ukCountriesHigh"]},"GB-CHA":{country:"Channel Islands",continent_code:"EU",continent:"Europe",maps:["channelIslandsLow","channelIslandsHigh"]},GD:{country:"Grenada",continent_code:"NA",continent:"North America",maps:[]},GE:{country:"Georgia",continent_code:"EU",continent:"Europe",maps:["georgiaLow","georgiaHigh","georgiaSouthOssetiaLow","georgiaSouthOssetiaHigh"]},GF:{country:"French Guiana",continent_code:"SA",continent:"South America",maps:["frenchGuianaLow","frenchGuianaHigh"]},GG:{country:"Guernsey",continent_code:"EU",continent:"Europe",maps:[]},GH:{country:"Ghana",continent_code:"AF",continent:"Africa",maps:["ghanaLow","ghanaHigh"]},GI:{country:"Gibraltar",continent_code:"EU",continent:"Europe",maps:[]},GL:{country:"Greenland",continent_code:"NA",continent:"North America",maps:["greenlandLow","greenlandHigh"]},GM:{country:"Gambia",continent_code:"AF",continent:"Africa",maps:["gambiaLow","gambiaHigh"]},GN:{country:"Guinea",continent_code:"AF",continent:"Africa",maps:["guineaLow","guineaHigh"]},GP:{country:"Guadeloupe",continent_code:"NA",continent:"North America",maps:[]},GQ:{country:"Equatorial Guinea",continent_code:"AF",continent:"Africa",maps:["equatorialGuineaLow","equatorialGuineaHigh"]},GR:{country:"Greece",continent_code:"EU",continent:"Europe",maps:["greeceLow","greeceHigh"]},GS:{country:"South Georgia and the South Sandwich Islands",continent_code:"AN",continent:"Antarctica",maps:[]},GT:{country:"Guatemala",continent_code:"NA",continent:"North America",maps:[]},GU:{country:"Guam",continent_code:"OC",continent:"Oceania",maps:[]},GW:{country:"Guinea-Bissau",continent_code:"AF",continent:"Africa",maps:["guineaBissauLow","guineaBissauHigh"]},GY:{country:"Guyana",continent_code:"SA",continent:"South America",maps:["guyanaLow","guyanaHigh"]},HK:{country:"Hong Kong",continent_code:"AS",continent:"Asia",maps:["hongKongLow","hongKongHigh"]},HM:{country:"Heard Island and McDonald Islands",continent_code:"AN",continent:"Antarctica",maps:[]},HN:{country:"Honduras",continent_code:"NA",continent:"North America",maps:["hondurasLow","hondurasHigh"]},HR:{country:"Croatia",continent_code:"EU",continent:"Europe",maps:["croatiaLow","croatiaHigh"]},HT:{country:"Haiti",continent_code:"NA",continent:"North America",maps:[]},HU:{country:"Hungary",continent_code:"EU",continent:"Europe",maps:["hungaryLow","hungaryHigh"]},ID:{country:"Indonesia",continent_code:"AS",continent:"Asia",maps:["indonesiaLow","indonesiaHigh"]},IE:{country:"Ireland",continent_code:"EU",continent:"Europe",maps:["irelandLow","irelandHigh"]},IL:{country:"Israel",continent_code:"AS",continent:"Asia",maps:["israelLow","israelHigh","israelPalestineLow","israelPalestineHigh"]},IM:{country:"Isle of Man",continent_code:"EU",continent:"Europe",maps:[]},IN:{country:"India",continent_code:"AS",continent:"Asia",maps:["india2020Low","india2020High","india2019Low","india2019High","indiaLow","indiaHigh"]},IO:{country:"British Indian Ocean Territory",continent_code:"AS",continent:"Asia",maps:["britishIndianOceanTerritoryLow","britishIndianOceanTerritoryHigh"]},IQ:{country:"Iraq",continent_code:"AS",continent:"Asia",maps:["iraqLow","iraqHigh"]},IR:{country:"Iran, Islamic Republic of",continent_code:"AS",continent:"Asia",maps:["iranLow","iranHigh"]},IS:{country:"Iceland",continent_code:"EU",continent:"Europe",maps:["icelandLow","icelandHigh"]},IT:{country:"Italy",continent_code:"EU",continent:"Europe",maps:["italyLow","italyHigh"]},JE:{country:"Jersey",continent_code:"EU",continent:"Europe",maps:[]},JM:{country:"Jamaica",continent_code:"NA",continent:"North America",maps:[]},JO:{country:"Jordan",continent_code:"AS",continent:"Asia",maps:[]},JP:{country:"Japan",continent_code:"AS",continent:"Asia",maps:["japanLow","japanHigh"]},KE:{country:"Kenya",continent_code:"AF",continent:"Africa",maps:["kenyaLow","kenyaHigh"]},KG:{country:"Kyrgyzstan",continent_code:"AS",continent:"Asia",maps:["kyrgyzstanLow","kyrgyzstanHigh"]},KH:{country:"Cambodia",continent_code:"AS",continent:"Asia",maps:["cambodiaLow","cambodiaHigh"]},KI:{country:"Kiribati",continent_code:"OC",continent:"Oceania",maps:[]},KM:{country:"Comoros",continent_code:"AF",continent:"Africa",maps:["comorosLow","comorosHigh"]},KN:{country:"Saint Kitts and Nevis",continent_code:"NA",continent:"North America",maps:[]},KP:{country:"Korea, Democratic People's Republic of",continent_code:"AS",continent:"Asia",maps:["northKoreaLow","northKoreaHigh"]},KR:{country:"Korea, Republic of",continent_code:"AS",continent:"Asia",maps:["southKoreaLow","southKoreaHigh"]},KT:{country:"Saint Kitts and Nevis",continent_code:"AS",continent:"Asia",maps:["stKittsNevisLow","stKittsNevisHigh"]},KW:{country:"Kuwait",continent_code:"AS",continent:"Asia",maps:["kuwaitLow","kuwaitHigh"]},KY:{country:"Cayman Islands",continent_code:"NA",continent:"North America",maps:["caymanIslandsLow","caymanIslandsHigh"]},KZ:{country:"Kazakhstan",continent_code:"EU",continent:"Europe",maps:["kazakhstanLow","kazakhstanHigh"]},LA:{country:"Lao People's Democratic Republic",continent_code:"AS",continent:"Asia",maps:["laosLow","laosHigh"]},LB:{country:"Lebanon",continent_code:"AS",continent:"Asia",maps:[]},LC:{country:"Saint Lucia",continent_code:"NA",continent:"North America",maps:["saintLuciaLow","saintLuciaHigh"]},LI:{country:"Liechtenstein",continent_code:"EU",continent:"Europe",maps:["liechtensteinLow","liechtensteinHigh"]},LK:{country:"Sri Lanka",continent_code:"AS",continent:"Asia",maps:["sriLankaLow","sriLankaHigh"]},LR:{country:"Liberia",continent_code:"AF",continent:"Africa",maps:[]},LS:{country:"Lesotho",continent_code:"AF",continent:"Africa",maps:[]},LT:{country:"Lithuania",continent_code:"EU",continent:"Europe",maps:["lithuaniaLow","lithuaniaHigh"]},LU:{country:"Luxembourg",continent_code:"EU",continent:"Europe",maps:["luxembourgLow","luxembourgHigh"]},LV:{country:"Latvia",continent_code:"EU",continent:"Europe",maps:["latviaLow","latviaHigh"]},LY:{country:"Libya",continent_code:"AF",continent:"Africa",maps:["libyaLow","libyaHigh"]},MA:{country:"Morocco",continent_code:"AF",continent:"Africa",maps:["moroccoLow","moroccoHigh"]},MC:{country:"Monaco",continent_code:"EU",continent:"Europe",maps:[]},MD:{country:"Moldova, Republic of",continent_code:"EU",continent:"Europe",maps:["moldovaLow","moldovaHigh"]},ME:{country:"Montenegro",continent_code:"EU",continent:"Europe",maps:["montenegroLow","montenegroHigh"]},MF:{country:"Saint Martin (French Part)",continent_code:"NA",continent:"North America",maps:[]},MG:{country:"Madagascar",continent_code:"AF",continent:"Africa",maps:["madagascarProvinceLow","madagascarProvinceHigh","madagascarRegionLow","madagascarRegionHigh"]},MH:{country:"Marshall Islands",continent_code:"OC",continent:"Oceania",maps:[]},MK:{country:"North Macedonia",continent_code:"EU",continent:"Europe",maps:["northMacedoniaLow","northMacedoniaHigh"]},ML:{country:"Mali",continent_code:"AF",continent:"Africa",maps:["maliLow","maliHigh"]},MM:{country:"Myanmar",continent_code:"AS",continent:"Asia",maps:["myanmarLow","myanmarHigh"]},MN:{country:"Mongolia",continent_code:"AS",continent:"Asia",maps:["mongoliaLow","mongoliaHigh"]},MO:{country:"Macao",continent_code:"AS",continent:"Asia",maps:[]},MP:{country:"Northern Mariana Islands",continent_code:"OC",continent:"Oceania",maps:[]},MQ:{country:"Martinique",continent_code:"NA",continent:"North America",maps:[]},MR:{country:"Mauritania",continent_code:"AF",continent:"Africa",maps:["mauritaniaLow","mauritaniaHigh"]},MS:{country:"Montserrat",continent_code:"NA",continent:"North America",maps:[]},MT:{country:"Malta",continent_code:"EU",continent:"Europe",maps:["maltaLow","maltaHigh"]},MU:{country:"Mauritius",continent_code:"AF",continent:"Africa",maps:[]},MV:{country:"Maldives",continent_code:"AS",continent:"Asia",maps:["maldivesLow","maldivesHigh","maldivesIslandsLow","maldivesIslandsHigh"]},MW:{country:"Malawi",continent_code:"AF",continent:"Africa",maps:["malawiLow","malawiHigh"]},MX:{country:"Mexico",continent_code:"NA",continent:"North America",maps:["mexicoLow","mexicoHigh"]},MY:{country:"Malaysia",continent_code:"AS",continent:"Asia",maps:["malaysiaLow","malaysiaHigh"]},MZ:{country:"Mozambique",continent_code:"AF",continent:"Africa",maps:["mozambiqueLow","mozambiqueHigh"]},NA:{country:"Namibia",continent_code:"AF",continent:"Africa",maps:["namibiaLow","namibiaHigh"]},NC:{country:"New Caledonia",continent_code:"OC",continent:"Oceania",maps:[]},NE:{country:"Niger",continent_code:"AF",continent:"Africa",maps:["nigerLow","nigerHigh"]},NF:{country:"Norfolk Island",continent_code:"OC",continent:"Oceania",maps:[]},NG:{country:"Nigeria",continent_code:"AF",continent:"Africa",maps:["nigeriaLow","nigeriaHigh"]},NI:{country:"Nicaragua",continent_code:"NA",continent:"North America",maps:["nicaraguaLow","nicaraguaHigh"]},NL:{country:"Netherlands",continent_code:"EU",continent:"Europe",maps:["netherlandsLow","netherlandsHigh"]},NO:{country:"Norway",continent_code:"EU",continent:"Europe",maps:["norwayLow","norwayHigh"]},NP:{country:"Nepal",continent_code:"AS",continent:"Asia",maps:["nepalLow","nepalHigh"]},NR:{country:"Nauru",continent_code:"OC",continent:"Oceania",maps:[]},NU:{country:"Niue",continent_code:"OC",continent:"Oceania",maps:[]},NZ:{country:"New Zealand",continent_code:"OC",continent:"Oceania",maps:["newZealandLow","newZealandHigh"]},OM:{country:"Oman",continent_code:"AS",continent:"Asia",maps:["omanLow","omanHigh"]},PA:{country:"Panama",continent_code:"NA",continent:"North America",maps:["panamaLow","panamaHigh"]},PE:{country:"Peru",continent_code:"SA",continent:"South America",maps:["peruLow","peruHigh"]},PF:{country:"French Polynesia",continent_code:"OC",continent:"Oceania",maps:[]},PG:{country:"Papua New Guinea",continent_code:"OC",continent:"Oceania",maps:[]},PH:{country:"Philippines",continent_code:"AS",continent:"Asia",maps:["philippinesLow","philippinesHigh"]},PK:{country:"Pakistan",continent_code:"AS",continent:"Asia",maps:["pakistanLow","pakistanHigh"]},PL:{country:"Poland",continent_code:"EU",continent:"Europe",maps:["polandLow","polandHigh"]},PM:{country:"Saint Pierre and Miquelon",continent_code:"NA",continent:"North America",maps:["stPierreMiquelonLow","stPierreMiquelonHigh"]},PN:{country:"Pitcairn",continent_code:"OC",continent:"Oceania",maps:[]},PR:{country:"Puerto Rico",continent_code:"NA",continent:"North America",maps:["puertoRicoLow","puertoRicoHigh"]},PS:{country:"Palestinian, State of",continent_code:"AS",continent:"Asia",maps:["palestineLow","palestineHigh"]},PT:{country:"Portugal",continent_code:"EU",continent:"Europe",maps:["portugalLow","portugalHigh","portugalRegionsLow","portugalRegionsHigh"]},PW:{country:"Palau",continent_code:"OC",continent:"Oceania",maps:[]},PY:{country:"Paraguay",continent_code:"SA",continent:"South America",maps:["paraguayLow","paraguayHigh"]},QA:{country:"Qatar",continent_code:"AS",continent:"Asia",maps:["qatarLow","qatarHigh"]},RE:{country:"Reunion",continent_code:"AF",continent:"Africa",maps:[]},RO:{country:"Romania",continent_code:"EU",continent:"Europe",maps:["romaniaLow","romaniaHigh"]},RS:{country:"Serbia",continent_code:"EU",continent:"Europe",maps:["serbiaLow","serbiaHigh","serbiaNoKosovoLow","serbiaNoKosovoHigh"]},RU:{country:"Russian Federation",continent_code:"EU",continent:"Europe",maps:["russiaLow","russiaHigh","russiaCrimeaLow","russiaCrimeaHigh"]},RW:{country:"Rwanda",continent_code:"AF",continent:"Africa",maps:["rwandaLow","rwandaHigh"]},SA:{country:"Saudi Arabia",continent_code:"AS",continent:"Asia",maps:["saudiArabiaLow","saudiArabiaHigh"]},SB:{country:"Solomon Islands",continent_code:"OC",continent:"Oceania",maps:["solomonIslandsLow","solomonIslandsHigh"]},SC:{country:"Seychelles",continent_code:"AF",continent:"Africa",maps:["seychellesLow","seychellesHigh"]},SD:{country:"Sudan",continent_code:"AF",continent:"Africa",maps:["sudanLow","sudanHigh"]},SE:{country:"Sweden",continent_code:"EU",continent:"Europe",maps:["swedenLow","swedenHigh"]},SG:{country:"Singapore",continent_code:"AS",continent:"Asia",maps:["singaporeLow","singaporeHigh"]},SH:{country:"Saint Helena, Ascension and Tristan da Cunha",continent_code:"AF",continent:"Africa",maps:["saintHelenaLow","saintHelenaHigh"]},SI:{country:"Slovenia",continent_code:"EU",continent:"Europe",maps:["sloveniaLow","sloveniaHigh","sloveniaRegionsLow","sloveniaRegionsHigh"]},SJ:{country:"Svalbard and Jan Mayen",continent_code:"EU",continent:"Europe",maps:["svalbardLow","svalbardHigh"]},SK:{country:"Slovakia",continent_code:"EU",continent:"Europe",maps:["slovakiaLow","slovakiaHigh"]},SL:{country:"Sierra Leone",continent_code:"AF",continent:"Africa",maps:["sierraLeoneLow","sierraLeoneHigh"]},SM:{country:"San Marino",continent_code:"EU",continent:"Europe",maps:["sanMarinoLow","sanMarinoHigh"]},SN:{country:"Senegal",continent_code:"AF",continent:"Africa",maps:["senegalLow","senegalHigh"]},SO:{country:"Somalia",continent_code:"AF",continent:"Africa",maps:["somaliaLow","somaliaHigh"]},SR:{country:"Suriname",continent_code:"SA",continent:"South America",maps:["surinameLow","surinameHigh"]},SS:{country:"South Sudan",continent_code:"AF",continent:"Africa",maps:["southSudanLow","southSudanHigh","southSudan2015Low","southSudan2015High"]},ST:{country:"Sao Tome and Principe",continent_code:"AF",continent:"Africa",maps:["saoTomePrincipeLow","saoTomePrincipeHigh"]},SV:{country:"El Salvador",continent_code:"NA",continent:"North America",maps:["elSalvadorLow","elSalvadorHigh"]},SX:{country:"Sint Maarten (Dutch Part)",continent_code:"NA",continent:"North America",maps:[]},SY:{country:"Syrian Arab Republic",continent_code:"AS",continent:"Asia",maps:["syriaLow","syriaHigh"]},SZ:{country:"Swaziland",continent_code:"AF",continent:"Africa",maps:["eswatiniLow","eswatiniHigh"]},TC:{country:"Turks and Caicos Islands",continent_code:"NA",continent:"North America",maps:[]},TD:{country:"Chad",continent_code:"AF",continent:"Africa",maps:["chadLow","chadHigh"]},TF:{country:"French Southern Territories",continent_code:"AN",continent:"Antarctica",maps:[]},TG:{country:"Togo",continent_code:"AF",continent:"Africa",maps:["togoLow","togoHigh"]},TH:{country:"Thailand",continent_code:"AS",continent:"Asia",maps:["thailandLow","thailandHigh"]},TJ:{country:"Tajikistan",continent_code:"AS",continent:"Asia",maps:["tajikistanLow","tajikistanHigh"]},TK:{country:"Tokelau",continent_code:"OC",continent:"Oceania",maps:[]},TL:{country:"Timor-Leste",continent_code:"AS",continent:"Asia",maps:["timorLesteLow","timorLesteHigh"]},TM:{country:"Turkmenistan",continent_code:"AS",continent:"Asia",maps:["turkmenistanLow","turkmenistanHigh"]},TN:{country:"Tunisia",continent_code:"AF",continent:"Africa",maps:["tunisiaLow","tunisiaHigh"]},TO:{country:"Tonga",continent_code:"OC",continent:"Oceania",maps:[]},TR:{country:"Turkey",continent_code:"EU",continent:"Europe",maps:["turkeyLow","turkeyHigh"]},TT:{country:"Trinidad and Tobago",continent_code:"NA",continent:"North America",maps:[]},TV:{country:"Tuvalu",continent_code:"OC",continent:"Oceania",maps:[]},TW:{country:"Taiwan",continent_code:"AS",continent:"Asia",maps:[]},TZ:{country:"Tanzania, United Republic of",continent_code:"AF",continent:"Africa",maps:["tanzaniaLow","tanzaniaHigh"]},UA:{country:"Ukraine",continent_code:"EU",continent:"Europe",maps:["ukraineLow","ukraineHigh"]},UG:{country:"Uganda",continent_code:"AF",continent:"Africa",maps:[]},UM:{country:"United States Minor Outlying Islands",continent_code:"OC",continent:"Oceania",maps:[]},US:{country:"United States",continent_code:"NA",continent:"North America",maps:["usaLow","usaHigh","usaTerritoriesLow","usaTerritoriesHigh","usaTerritories2Low","usaTerritories2High"]},UY:{country:"Uruguay",continent_code:"SA",continent:"South America",maps:[]},UZ:{country:"Uzbekistan",continent_code:"AS",continent:"Asia",maps:["uzbekistanLow","uzbekistanHigh"]},VA:{country:"Holy See (Vatican City State)",continent_code:"EU",continent:"Europe",maps:["vaticanLow","vaticanHigh"]},VC:{country:"Saint Vincent and the Grenadines",continent_code:"NA",continent:"North America",maps:["saintVincentLow","saintVincentHigh"]},VE:{country:"Venezuela, Bolivarian Republic of",continent_code:"SA",continent:"South America",maps:["venezuelaLow","venezuelaHigh"]},VG:{country:"Virgin Islands, British",continent_code:"NA",continent:"North America",maps:[]},VI:{country:"Virgin Islands, U.S.",continent_code:"NA",continent:"North America",maps:[]},VN:{country:"Viet Nam",continent_code:"AS",continent:"Asia",maps:["vietnamLow","vietnamHigh"]},VU:{country:"Vanuatu",continent_code:"OC",continent:"Oceania",maps:[]},WF:{country:"Wallis and Futuna",continent_code:"OC",continent:"Oceania",maps:[]},WS:{country:"Samoa",continent_code:"OC",continent:"Oceania",maps:["samoaLow","samoaHigh"]},YE:{country:"Yemen",continent_code:"AS",continent:"Asia",maps:["yemenLow","yemenHigh"]},YT:{country:"Mayotte",continent_code:"AF",continent:"Africa",maps:[]},ZA:{country:"South Africa",continent_code:"AF",continent:"Africa",maps:["southAfricaLow","southAfricaHigh"]},ZM:{country:"Zambia",continent_code:"AF",continent:"Africa",maps:["zambiaLow","zambiaHigh"]},ZW:{country:"Zimbabwe",continent_code:"AF",continent:"Africa",maps:["zimbabweLow","zimbabweHigh"]},XK:{country:"Kosovo",continent_code:"EU",continent:"Europe",maps:["kosovoLow","kosovoHigh"]}}}},["h34k"]),am4internal_webpackJsonp(["8593"],{d66p:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("aCit"),r=i("8ZqG");window.am4themes_material=function(t){Object(n.b)(t,"ColorSet")&&(t.list=[Object(r.c)("#F44336"),Object(r.c)("#E91E63"),Object(r.c)("#9C27B0"),Object(r.c)("#673AB7"),Object(r.c)("#3F51B5"),Object(r.c)("#2196F3"),Object(r.c)("#03A9F4"),Object(r.c)("#00BCD4"),Object(r.c)("#009688"),Object(r.c)("#4CAF50"),Object(r.c)("#8BC34A"),Object(r.c)("#CDDC39"),Object(r.c)("#FFEB3B"),Object(r.c)("#FFC107"),Object(r.c)("#FF9800"),Object(r.c)("#FF5722"),Object(r.c)("#795548"),Object(r.c)("#9E9E9E"),Object(r.c)("#607D8B")],t.minLightness=.2,t.maxLightness=.7,t.reuse=!0),Object(n.b)(t,"ResizeButton")&&(t.background.cornerRadiusTopLeft=20,t.background.cornerRadiusTopRight=20,t.background.cornerRadiusBottomLeft=20,t.background.cornerRadiusBottomRight=20),Object(n.b)(t,"Tooltip")&&(t.animationDuration=800)}}},["d66p"]),
|
||
/* @license
|
||
morris.js v0.5.0
|
||
Copyright 2014 Olly Smith All rights reserved.
|
||
Licensed under the BSD-2-Clause License.
|
||
*/
|
||
function(){var t,e,i,n,r=[].slice,o=function(t,e){return function(){return t.apply(e,arguments)}},a={}.hasOwnProperty,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e=window.Morris={},t=jQuery,e.EventEmitter=function(){function t(){}return t.prototype.on=function(t,e){return null==this.handlers&&(this.handlers={}),null==this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this},t.prototype.fire=function(){var t,e,i,n,o,a,s;if(i=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],null!=this.handlers&&null!=this.handlers[i]){for(s=[],n=0,o=(a=this.handlers[i]).length;o>n;n++)e=a[n],s.push(e.apply(null,t));return s}},t}(),e.commas=function(t){var e,i,n,r;return null!=t?(n=0>t?"-":"",e=Math.abs(t),n+=(i=Math.floor(e).toFixed(0)).replace(/(?=(?:\d{3})+$)(?!^)/g,","),(r=e.toString()).length>i.length&&(n+=r.slice(i.length)),n):"-"},e.pad2=function(t){return(10>t?"0":"")+t},e.Grid=function(i){function n(e){this.resizeHandler=o(this.resizeHandler,this);var i=this;if(this.el="string"==typeof e.element?t(document.getElementById(e.element)):t(e.element),null==this.el||0===this.el.length)throw new Error("Graph container element not found");"static"===this.el.css("position")&&this.el.css("position","relative"),this.options=t.extend({},this.gridDefaults,this.defaults||{},e),"string"==typeof this.options.units&&(this.options.postUnits=e.units),this.raphael=new Raphael(this.el[0]),this.elementWidth=null,this.elementHeight=null,this.dirty=!1,this.selectFrom=null,this.init&&this.init(),this.setData(this.options.data),this.el.bind("mousemove",(function(t){var e,n,r,o;return n=i.el.offset(),o=t.pageX-n.left,i.selectFrom?(e=i.data[i.hitTest(Math.min(o,i.selectFrom))]._x,r=i.data[i.hitTest(Math.max(o,i.selectFrom))]._x-e,i.selectionRect.attr({x:e,width:r})):i.fire("hovermove",o,t.pageY-n.top)})),this.el.bind("mouseleave",(function(){return i.selectFrom&&(i.selectionRect.hide(),i.selectFrom=null),i.fire("hoverout")})),this.el.bind("touchstart touchmove touchend",(function(t){var e,n;return n=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],e=i.el.offset(),i.fire("hovermove",n.pageX-e.left,n.pageY-e.top)})),this.el.bind("click",(function(t){var e;return e=i.el.offset(),i.fire("gridclick",t.pageX-e.left,t.pageY-e.top)})),this.options.rangeSelect&&(this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:!1}).toBack().hide(),this.el.bind("mousedown",(function(t){var e;return e=i.el.offset(),i.startRange(t.pageX-e.left)})),this.el.bind("mouseup",(function(t){var e;return e=i.el.offset(),i.endRange(t.pageX-e.left),i.fire("hovermove",t.pageX-e.left,t.pageY-e.top)}))),this.options.resize&&t(window).bind("resize",(function(){return null!=i.timeoutId&&window.clearTimeout(i.timeoutId),i.timeoutId=window.setTimeout(i.resizeHandler,100)})),this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),this.postInit&&this.postInit()}return s(n,i),n.prototype.gridDefaults={dateFormat:null,axes:!0,grid:!0,gridLineColor:"#aaa",gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:!1,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:!0,postUnits:"",preUnits:"",ymax:"auto",ymin:"auto 0",goals:[],goalStrokeWidth:1,goalLineColors:["#666633","#999966","#cc6666","#663333"],events:[],eventStrokeWidth:1,eventLineColors:["#005a04","#ccffbb","#3a5f0b","#005502"],rangeSelect:null,rangeSelectColor:"#eef",resize:!1},n.prototype.setData=function(t,i){var n,r,o,a,s,l,c,h,u,d,p,f,g,m,y;return null==i&&(i=!0),this.options.data=t,null==t||0===t.length?(this.data=[],this.raphael.clear(),void(null!=this.hover&&this.hover.hide())):(f=this.cumulative?0:null,g=this.cumulative?0:null,this.options.goals.length>0&&(s=Math.min.apply(Math,this.options.goals),a=Math.max.apply(Math,this.options.goals),g=null!=g?Math.min(g,s):s,f=null!=f?Math.max(f,a):a),this.data=function(){var i,n,a;for(a=[],o=i=0,n=t.length;n>i;o=++i)c=t[o],(l={src:c}).label=c[this.options.xkey],this.options.parseTime?(l.x=e.parseDate(l.label),this.options.dateFormat?l.label=this.options.dateFormat(l.x):"number"==typeof l.label&&(l.label=new Date(l.label).toString())):(l.x=o,this.options.xLabelFormat&&(l.label=this.options.xLabelFormat(l))),u=0,l.y=function(){var t,e,i,n;for(i=this.options.ykeys,n=[],r=t=0,e=i.length;e>t;r=++t)p=i[r],"string"==typeof(m=c[p])&&(m=parseFloat(m)),null!=m&&"number"!=typeof m&&(m=null),null!=m&&(this.cumulative?u+=m:null!=f?(f=Math.max(m,f),g=Math.min(m,g)):f=g=m),this.cumulative&&null!=u&&(f=Math.max(u,f),g=Math.min(u,g)),n.push(m);return n}.call(this),a.push(l);return a}.call(this),this.options.parseTime&&(this.data=this.data.sort((function(t,e){return(t.x>e.x)-(e.x>t.x)}))),this.xmin=this.data[0].x,this.xmax=this.data[this.data.length-1].x,this.events=[],this.options.events.length>0&&(this.events=this.options.parseTime?function(){var t,i,r,o;for(o=[],t=0,i=(r=this.options.events).length;i>t;t++)n=r[t],o.push(e.parseDate(n));return o}.call(this):this.options.events,this.xmax=Math.max(this.xmax,Math.max.apply(Math,this.events)),this.xmin=Math.min(this.xmin,Math.min.apply(Math,this.events))),this.xmin===this.xmax&&(this.xmin-=1,this.xmax+=1),this.ymin=this.yboundary("min",g),this.ymax=this.yboundary("max",f),this.ymin===this.ymax&&(g&&(this.ymin-=1),this.ymax+=1),(!0===(y=this.options.axes)||"both"===y||"y"===y||!0===this.options.grid)&&(this.options.ymax===this.gridDefaults.ymax&&this.options.ymin===this.gridDefaults.ymin?(this.grid=this.autoGridLines(this.ymin,this.ymax,this.options.numLines),this.ymin=Math.min(this.ymin,this.grid[0]),this.ymax=Math.max(this.ymax,this.grid[this.grid.length-1])):(h=(this.ymax-this.ymin)/(this.options.numLines-1),this.grid=function(){var t,e,i;for(i=[],d=t=this.ymin,e=this.ymax;h>0?e>=t:t>=e;d=t+=h)i.push(d);return i}.call(this))),this.dirty=!0,i?this.redraw():void 0)},n.prototype.yboundary=function(t,e){var i,n;return"string"==typeof(i=this.options["y"+t])?"auto"===i.slice(0,4)?i.length>5?(n=parseInt(i.slice(5),10),null==e?n:Math[t](e,n)):null!=e?e:0:parseInt(i,10):i},n.prototype.autoGridLines=function(t,e,i){var n,r,o,a,s,l,c,h,u;return s=e-t,u=Math.floor(Math.log(s)/Math.log(10)),c=Math.pow(10,u),r=Math.floor(t/c)*c,n=Math.ceil(e/c)*c,l=(n-r)/(i-1),1===c&&l>1&&Math.ceil(l)!==l&&(l=Math.ceil(l),n=r+l*(i-1)),0>r&&n>0&&(r=Math.floor(t/l)*l,n=Math.ceil(e/l)*l),1>l?(a=Math.floor(Math.log(l)/Math.log(10)),o=function(){var t,e;for(e=[],h=t=r;l>0?n>=t:t>=n;h=t+=l)e.push(parseFloat(h.toFixed(1-a)));return e}()):o=function(){var t,e;for(e=[],h=t=r;l>0?n>=t:t>=n;h=t+=l)e.push(h);return e}(),o},n.prototype._calc=function(){var t,e,i,n,r,o,a,s;return r=this.el.width(),i=this.el.height(),(this.elementWidth!==r||this.elementHeight!==i||this.dirty)&&(this.elementWidth=r,this.elementHeight=i,this.dirty=!1,this.left=this.options.padding,this.right=this.elementWidth-this.options.padding,this.top=this.options.padding,this.bottom=this.elementHeight-this.options.padding,(!0===(a=this.options.axes)||"both"===a||"y"===a)&&(o=function(){var t,i,n,r;for(r=[],t=0,i=(n=this.grid).length;i>t;t++)e=n[t],r.push(this.measureText(this.yAxisFormat(e)).width);return r}.call(this),this.left+=Math.max.apply(Math,o)),(!0===(s=this.options.axes)||"both"===s||"x"===s)&&(t=function(){var t,e,i;for(i=[],n=t=0,e=this.data.length;e>=0?e>t:t>e;n=e>=0?++t:--t)i.push(this.measureText(this.data[n].text,-this.options.xLabelAngle).height);return i}.call(this),this.bottom-=Math.max.apply(Math,t)),this.width=Math.max(1,this.right-this.left),this.height=Math.max(1,this.bottom-this.top),this.dx=this.width/(this.xmax-this.xmin),this.dy=this.height/(this.ymax-this.ymin),this.calc)?this.calc():void 0},n.prototype.transY=function(t){return this.bottom-(t-this.ymin)*this.dy},n.prototype.transX=function(t){return 1===this.data.length?(this.left+this.right)/2:this.left+(t-this.xmin)*this.dx},n.prototype.redraw=function(){return this.raphael.clear(),this._calc(),this.drawGrid(),this.drawGoals(),this.drawEvents(),this.draw?this.draw():void 0},n.prototype.measureText=function(t,e){var i,n;return null==e&&(e=0),i=(n=this.raphael.text(100,100,t).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).rotate(e)).getBBox(),n.remove(),i},n.prototype.yAxisFormat=function(t){return this.yLabelFormat(t)},n.prototype.yLabelFormat=function(t){return"function"==typeof this.options.yLabelFormat?this.options.yLabelFormat(t):""+this.options.preUnits+e.commas(t)+this.options.postUnits},n.prototype.drawGrid=function(){var t,e,i,n,r,o,a,s;if(!1!==this.options.grid||!0===(r=this.options.axes)||"both"===r||"y"===r){for(s=[],i=0,n=(o=this.grid).length;n>i;i++)t=o[i],e=this.transY(t),(!0===(a=this.options.axes)||"both"===a||"y"===a)&&this.drawYAxisLabel(this.left-this.options.padding/2,e,this.yAxisFormat(t)),this.options.grid?s.push(this.drawGridLine("M"+this.left+","+e+"H"+(this.left+this.width))):s.push(void 0);return s}},n.prototype.drawGoals=function(){var t,e,i,n,r,o,a;for(a=[],i=n=0,r=(o=this.options.goals).length;r>n;i=++n)e=o[i],t=this.options.goalLineColors[i%this.options.goalLineColors.length],a.push(this.drawGoal(e,t));return a},n.prototype.drawEvents=function(){var t,e,i,n,r,o,a;for(a=[],i=n=0,r=(o=this.events).length;r>n;i=++n)e=o[i],t=this.options.eventLineColors[i%this.options.eventLineColors.length],a.push(this.drawEvent(e,t));return a},n.prototype.drawGoal=function(t,e){return this.raphael.path("M"+this.left+","+this.transY(t)+"H"+this.right).attr("stroke",e).attr("stroke-width",this.options.goalStrokeWidth)},n.prototype.drawEvent=function(t,e){return this.raphael.path("M"+this.transX(t)+","+this.bottom+"V"+this.top).attr("stroke",e).attr("stroke-width",this.options.eventStrokeWidth)},n.prototype.drawYAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor).attr("text-anchor","end")},n.prototype.drawGridLine=function(t){return this.raphael.path(t).attr("stroke",this.options.gridLineColor).attr("stroke-width",this.options.gridStrokeWidth)},n.prototype.startRange=function(t){return this.hover.hide(),this.selectFrom=t,this.selectionRect.attr({x:t,width:0}).show()},n.prototype.endRange=function(t){var e,i;return this.selectFrom?(i=Math.min(this.selectFrom,t),e=Math.max(this.selectFrom,t),this.options.rangeSelect.call(this.el,{start:this.data[this.hitTest(i)].x,end:this.data[this.hitTest(e)].x}),this.selectFrom=null):void 0},n.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},n}(e.EventEmitter),e.parseDate=function(t){var e,i,n,r,o,a,s,l,c,h,u;return"number"==typeof t?t:(i=t.match(/^(\d+) Q(\d)$/),r=t.match(/^(\d+)-(\d+)$/),o=t.match(/^(\d+)-(\d+)-(\d+)$/),s=t.match(/^(\d+) W(\d+)$/),l=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+)(Z|([+-])(\d\d):?(\d\d))?$/),c=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+):(\d+(\.\d+)?)(Z|([+-])(\d\d):?(\d\d))?$/),i?new Date(parseInt(i[1],10),3*parseInt(i[2],10)-1,1).getTime():r?new Date(parseInt(r[1],10),parseInt(r[2],10)-1,1).getTime():o?new Date(parseInt(o[1],10),parseInt(o[2],10)-1,parseInt(o[3],10)).getTime():s?(4!==(h=new Date(parseInt(s[1],10),0,1)).getDay()&&h.setMonth(0,1+(4-h.getDay()+7)%7),h.getTime()+6048e5*parseInt(s[2],10)):l?l[6]?(a=0,"Z"!==l[6]&&(a=60*parseInt(l[8],10)+parseInt(l[9],10),"+"===l[7]&&(a=0-a)),Date.UTC(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10)+a)):new Date(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10)).getTime():c?(u=parseFloat(c[6]),e=Math.floor(u),n=Math.round(1e3*(u-e)),c[8]?(a=0,"Z"!==c[8]&&(a=60*parseInt(c[10],10)+parseInt(c[11],10),"+"===c[9]&&(a=0-a)),Date.UTC(parseInt(c[1],10),parseInt(c[2],10)-1,parseInt(c[3],10),parseInt(c[4],10),parseInt(c[5],10)+a,e,n)):new Date(parseInt(c[1],10),parseInt(c[2],10)-1,parseInt(c[3],10),parseInt(c[4],10),parseInt(c[5],10),e,n).getTime()):new Date(parseInt(t,10),0,1).getTime())},e.Hover=function(){function i(i){null==i&&(i={}),this.options=t.extend({},e.Hover.defaults,i),this.el=t("<div class='"+this.options.class+"'></div>"),this.el.hide(),this.options.parent.append(this.el)}return i.defaults={class:"morris-hover morris-default-style"},i.prototype.update=function(t,e,i){return t?(this.html(t),this.show(),this.moveTo(e,i)):this.hide()},i.prototype.html=function(t){return this.el.html(t)},i.prototype.moveTo=function(t,e){var i,n,r,o,a,s;return a=this.options.parent.innerWidth(),o=this.options.parent.innerHeight(),n=this.el.outerWidth(),i=this.el.outerHeight(),r=Math.min(Math.max(0,t-n/2),a-n),null!=e?0>(s=e-i-10)&&((s=e+10)+i>o&&(s=o/2-i/2)):s=o/2-i/2,this.el.css({left:r+"px",top:parseInt(s)+"px"})},i.prototype.show=function(){return this.el.show()},i.prototype.hide=function(){return this.el.hide()},i}(),e.Line=function(t){function i(t){return this.hilight=o(this.hilight,this),this.onHoverOut=o(this.onHoverOut,this),this.onHoverMove=o(this.onHoverMove,this),this.onGridClick=o(this.onGridClick,this),this instanceof e.Line?void i.__super__.constructor.call(this,t):new e.Line(t)}return s(i,t),i.prototype.init=function(){return"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},i.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:!0,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:!1},i.prototype.calc=function(){return this.calcPoints(),this.generatePaths()},i.prototype.calcPoints=function(){var t,e,i,n,r,o;for(o=[],i=0,n=(r=this.data).length;n>i;i++)(t=r[i])._x=this.transX(t.x),t._y=function(){var i,n,r,o;for(o=[],i=0,n=(r=t.y).length;n>i;i++)null!=(e=r[i])?o.push(this.transY(e)):o.push(e);return o}.call(this),o.push(t._ymax=Math.min.apply(Math,[this.bottom].concat(function(){var i,n,r,o;for(o=[],i=0,n=(r=t._y).length;n>i;i++)null!=(e=r[i])&&o.push(e);return o}())));return o},i.prototype.hitTest=function(t){var e,i,n,r;if(0===this.data.length)return null;for(e=i=0,n=(r=this.data.slice(1)).length;n>i&&!(t<(r[e]._x+this.data[e]._x)/2);e=++i);return e},i.prototype.onGridClick=function(t,e){var i;return i=this.hitTest(t),this.fire("click",i,this.data[i].src,t,e)},i.prototype.onHoverMove=function(t){var e;return e=this.hitTest(t),this.displayHoverForRow(e)},i.prototype.onHoverOut=function(){return!1!==this.options.hideHover?this.displayHoverForRow(null):void 0},i.prototype.displayHoverForRow=function(t){var e;return null!=t?((e=this.hover).update.apply(e,this.hoverContentForRow(t)),this.hilight(t)):(this.hover.hide(),this.hilight())},i.prototype.hoverContentForRow=function(t){var e,i,n,r,o,a,s;for(e="<div class='morris-hover-row-label'>"+(n=this.data[t]).label+"</div>",i=o=0,a=(s=n.y).length;a>o;i=++o)r=s[i],e+="<div class='morris-hover-point' style='color: "+this.colorFor(n,i,"label")+"'>\n "+this.options.labels[i]+":\n "+this.yLabelFormat(r)+"\n</div>";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,n.src)),[e,n._x,n._ymax]},i.prototype.generatePaths=function(){var t,i,n,r;return this.paths=function(){var o,a,s,c;for(c=[],i=o=0,a=this.options.ykeys.length;a>=0?a>o:o>a;i=a>=0?++o:--o)r="boolean"==typeof this.options.smooth?this.options.smooth:(s=this.options.ykeys[i],l.call(this.options.smooth,s)>=0),(t=function(){var t,e,r,o;for(o=[],t=0,e=(r=this.data).length;e>t;t++)void 0!==(n=r[t])._y[i]&&o.push({x:n._x,y:n._y[i]});return o}.call(this)).length>1?c.push(e.Line.createPath(t,r,this.bottom)):c.push(null);return c}.call(this)},i.prototype.draw=function(){var t;return(!0===(t=this.options.axes)||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries(),!1===this.options.hideHover?this.displayHoverForRow(this.data.length-1):void 0},i.prototype.drawXAxis=function(){var t,i,n,r,o,a,s,l,c,h,u=this;for(s=this.bottom+this.options.padding/2,o=null,r=null,t=function(t,e){var i,n,a,l,c;return c=(i=u.drawXAxisLabel(u.transX(e),s,t)).getBBox(),i.transform("r"+-u.options.xLabelAngle),n=i.getBBox(),i.transform("t0,"+n.height/2+"..."),0!==u.options.xLabelAngle&&(l=-.5*c.width*Math.cos(u.options.xLabelAngle*Math.PI/180),i.transform("t"+l+",0...")),n=i.getBBox(),(null==o||o>=n.x+n.width||null!=r&&r>=n.x)&&n.x>=0&&n.x+n.width<u.el.width()?(0!==u.options.xLabelAngle&&(a=1.25*u.options.gridTextSize/Math.sin(u.options.xLabelAngle*Math.PI/180),r=n.x-a),o=n.x-u.options.xLabelMargin):i.remove()},(n=this.options.parseTime?1===this.data.length&&"auto"===this.options.xLabels?[[this.data[0].label,this.data[0].x]]:e.labelSeries(this.xmin,this.xmax,this.width,this.options.xLabels,this.options.xLabelFormat):function(){var t,e,i,n;for(n=[],t=0,e=(i=this.data).length;e>t;t++)a=i[t],n.push([a.label,a.x]);return n}.call(this)).reverse(),h=[],l=0,c=n.length;c>l;l++)i=n[l],h.push(t(i[0],i[1]));return h},i.prototype.drawSeries=function(){var t,e,i,n,r,o;for(this.seriesPoints=[],t=e=n=this.options.ykeys.length-1;0>=n?0>=e:e>=0;t=0>=n?++e:--e)this._drawLineFor(t);for(o=[],t=i=r=this.options.ykeys.length-1;0>=r?0>=i:i>=0;t=0>=r?++i:--i)o.push(this._drawPointFor(t));return o},i.prototype._drawPointFor=function(t){var e,i,n,r,o,a;for(this.seriesPoints[t]=[],a=[],n=0,r=(o=this.data).length;r>n;n++)e=null,null!=(i=o[n])._y[t]&&(e=this.drawLinePoint(i._x,i._y[t],this.colorFor(i,t,"point"),t)),a.push(this.seriesPoints[t].push(e));return a},i.prototype._drawLineFor=function(t){var e;return null!==(e=this.paths[t])?this.drawLinePath(e,this.colorFor(null,t,"line"),t):void 0},i.createPath=function(t,i,n){var r,o,a,s,l,c,h,u,d,p;for(h="",i&&(a=e.Line.gradients(t)),u={y:null},s=d=0,p=t.length;p>d;s=++d)null!=(r=t[s]).y&&(null!=u.y?i?(o=a[s],c=a[s-1],l=(r.x-u.x)/4,h+="C"+(u.x+l)+","+Math.min(n,u.y+l*c)+","+(r.x-l)+","+Math.min(n,r.y-l*o)+","+r.x+","+r.y):h+="L"+r.x+","+r.y:i&&null==a[s]||(h+="M"+r.x+","+r.y)),u=r;return h},i.gradients=function(t){var e,i,n,r,o,a,s,l;for(i=function(t,e){return(t.y-e.y)/(t.x-e.x)},l=[],n=a=0,s=t.length;s>a;n=++a)null!=(e=t[n]).y?(r=t[n+1]||{y:null},null!=(o=t[n-1]||{y:null}).y&&null!=r.y?l.push(i(o,r)):null!=o.y?l.push(i(o,e)):null!=r.y?l.push(i(e,r)):l.push(null)):l.push(null);return l},i.prototype.hilight=function(t){var e,i,n,r,o;if(null!==this.prevHilight&&this.prevHilight!==t)for(e=i=0,r=this.seriesPoints.length-1;r>=0?r>=i:i>=r;e=r>=0?++i:--i)this.seriesPoints[e][this.prevHilight]&&this.seriesPoints[e][this.prevHilight].animate(this.pointShrinkSeries(e));if(null!==t&&this.prevHilight!==t)for(e=n=0,o=this.seriesPoints.length-1;o>=0?o>=n:n>=o;e=o>=0?++n:--n)this.seriesPoints[e][t]&&this.seriesPoints[e][t].animate(this.pointGrowSeries(e));return this.prevHilight=t},i.prototype.colorFor=function(t,e,i){return"function"==typeof this.options.lineColors?this.options.lineColors.call(this,t,e,i):"point"===i&&this.options.pointFillColors[e%this.options.pointFillColors.length]||this.options.lineColors[e%this.options.lineColors.length]},i.prototype.drawXAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},i.prototype.drawLinePath=function(t,e,i){return this.raphael.path(t).attr("stroke",e).attr("stroke-width",this.lineWidthForSeries(i))},i.prototype.drawLinePoint=function(t,e,i,n){return this.raphael.circle(t,e,this.pointSizeForSeries(n)).attr("fill",i).attr("stroke-width",this.pointStrokeWidthForSeries(n)).attr("stroke",this.pointStrokeColorForSeries(n))},i.prototype.pointStrokeWidthForSeries=function(t){return this.options.pointStrokeWidths[t%this.options.pointStrokeWidths.length]},i.prototype.pointStrokeColorForSeries=function(t){return this.options.pointStrokeColors[t%this.options.pointStrokeColors.length]},i.prototype.lineWidthForSeries=function(t){return this.options.lineWidth instanceof Array?this.options.lineWidth[t%this.options.lineWidth.length]:this.options.lineWidth},i.prototype.pointSizeForSeries=function(t){return this.options.pointSize instanceof Array?this.options.pointSize[t%this.options.pointSize.length]:this.options.pointSize},i.prototype.pointGrowSeries=function(t){return Raphael.animation({r:this.pointSizeForSeries(t)+3},25,"linear")},i.prototype.pointShrinkSeries=function(t){return Raphael.animation({r:this.pointSizeForSeries(t)},25,"linear")},i}(e.Grid),e.labelSeries=function(i,n,r,o,a){var s,l,c,h,u,d,p,f,g,m,y;if(c=200*(n-i)/r,l=new Date(i),void 0===(p=e.LABEL_SPECS[o]))for(g=0,m=(y=e.AUTO_LABEL_ORDER).length;m>g;g++)if(h=y[g],c>=(d=e.LABEL_SPECS[h]).span){p=d;break}for(void 0===p&&(p=e.LABEL_SPECS.second),a&&(p=t.extend({},p,{fmt:a})),s=p.start(l),u=[];(f=s.getTime())<=n;)f>=i&&u.push([p.fmt(s),f]),p.incr(s);return u},i=function(t){return{span:60*t*1e3,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours())},fmt:function(t){return e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())},incr:function(e){return e.setUTCMinutes(e.getUTCMinutes()+t)}}},n=function(t){return{span:1e3*t,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes())},fmt:function(t){return e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())+":"+e.pad2(t.getSeconds())},incr:function(e){return e.setUTCSeconds(e.getUTCSeconds()+t)}}},e.LABEL_SPECS={decade:{span:1728e8,start:function(t){return new Date(t.getFullYear()-t.getFullYear()%10,0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+10)}},year:{span:1728e7,start:function(t){return new Date(t.getFullYear(),0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+1)}},month:{span:24192e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)},incr:function(t){return t.setMonth(t.getMonth()+1)}},week:{span:6048e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+7)}},day:{span:864e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+1)}},hour:i(60),"30min":i(30),"15min":i(15),"10min":i(10),"5min":i(5),minute:i(1),"30sec":n(30),"15sec":n(15),"10sec":n(10),"5sec":n(5),second:n(1)},e.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"],e.Area=function(i){function n(i){var o;return this instanceof e.Area?(o=t.extend({},r,i),this.cumulative=!o.behaveLikeLine,"auto"===o.fillOpacity&&(o.fillOpacity=o.behaveLikeLine?.8:1),void n.__super__.constructor.call(this,o)):new e.Area(i)}var r;return s(n,i),r={fillOpacity:"auto",behaveLikeLine:!1},n.prototype.calcPoints=function(){var t,e,i,n,r,o,a;for(a=[],n=0,r=(o=this.data).length;r>n;n++)(t=o[n])._x=this.transX(t.x),e=0,t._y=function(){var n,r,o,a;for(a=[],n=0,r=(o=t.y).length;r>n;n++)i=o[n],this.options.behaveLikeLine?a.push(this.transY(i)):(e+=i||0,a.push(this.transY(e)));return a}.call(this),a.push(t._ymax=Math.max.apply(Math,t._y));return a},n.prototype.drawSeries=function(){var t,e,i,n,r,o,a,s;for(this.seriesPoints=[],s=[],i=0,n=(e=this.options.behaveLikeLine?function(){o=[];for(var t=0,e=this.options.ykeys.length-1;e>=0?e>=t:t>=e;e>=0?t++:t--)o.push(t);return o}.apply(this):function(){a=[];for(var t=r=this.options.ykeys.length-1;0>=r?0>=t:t>=0;0>=r?t++:t--)a.push(t);return a}.apply(this)).length;n>i;i++)t=e[i],this._drawFillFor(t),this._drawLineFor(t),s.push(this._drawPointFor(t));return s},n.prototype._drawFillFor=function(t){var e;return null!==(e=this.paths[t])?(e+="L"+this.transX(this.xmax)+","+this.bottom+"L"+this.transX(this.xmin)+","+this.bottom+"Z",this.drawFilledPath(e,this.fillForSeries(t))):void 0},n.prototype.fillForSeries=function(t){var e;return e=Raphael.rgb2hsl(this.colorFor(this.data[t],t,"line")),Raphael.hsl(e.h,this.options.behaveLikeLine?.9*e.s:.75*e.s,Math.min(.98,this.options.behaveLikeLine?1.2*e.l:1.25*e.l))},n.prototype.drawFilledPath=function(t,e){return this.raphael.path(t).attr("fill",e).attr("fill-opacity",this.options.fillOpacity).attr("stroke","none")},n}(e.Line),e.Bar=function(i){function n(i){return this.onHoverOut=o(this.onHoverOut,this),this.onHoverMove=o(this.onHoverMove,this),this.onGridClick=o(this.onGridClick,this),this instanceof e.Bar?void n.__super__.constructor.call(this,t.extend({},i,{parseTime:!1})):new e.Bar(i)}return s(n,i),n.prototype.init=function(){return this.cumulative=this.options.stacked,"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},n.prototype.defaults={barSizeRatio:.75,barGap:3,barColors:["#0b62a4","#7a92a3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],barOpacity:1,barRadius:[0,0,0,0],xLabelMargin:50},n.prototype.calc=function(){var t;return this.calcBars(),!1===this.options.hideHover?(t=this.hover).update.apply(t,this.hoverContentForRow(this.data.length-1)):void 0},n.prototype.calcBars=function(){var t,e,i,n,r,o,a;for(a=[],t=n=0,r=(o=this.data).length;r>n;t=++n)(e=o[t])._x=this.left+this.width*(t+.5)/this.data.length,a.push(e._y=function(){var t,n,r,o;for(o=[],t=0,n=(r=e.y).length;n>t;t++)null!=(i=r[t])?o.push(this.transY(i)):o.push(null);return o}.call(this));return a},n.prototype.draw=function(){var t;return(!0===(t=this.options.axes)||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries()},n.prototype.drawXAxis=function(){var t,e,i,n,r,o,a,s,l,c,h,u,d;for(c=this.bottom+(this.options.xAxisLabelTopPadding||this.options.padding/2),a=null,o=null,d=[],t=h=0,u=this.data.length;u>=0?u>h:h>u;t=u>=0?++h:--h)s=this.data[this.data.length-1-t],l=(e=this.drawXAxisLabel(s._x,c,s.label)).getBBox(),e.transform("r"+-this.options.xLabelAngle),i=e.getBBox(),e.transform("t0,"+i.height/2+"..."),0!==this.options.xLabelAngle&&(r=-.5*l.width*Math.cos(this.options.xLabelAngle*Math.PI/180),e.transform("t"+r+",0...")),(null==a||a>=i.x+i.width||null!=o&&o>=i.x)&&i.x>=0&&i.x+i.width<this.el.width()?(0!==this.options.xLabelAngle&&(n=1.25*this.options.gridTextSize/Math.sin(this.options.xLabelAngle*Math.PI/180),o=i.x-n),d.push(a=i.x-this.options.xLabelMargin)):d.push(e.remove());return d},n.prototype.drawSeries=function(){var t,e,i,n,r,o,a,s,l,c,h,u,d,p,f;return i=this.width/this.options.data.length,s=this.options.stacked?1:this.options.ykeys.length,t=(i*this.options.barSizeRatio-this.options.barGap*(s-1))/s,this.options.barSize&&(t=Math.min(t,this.options.barSize)),u=i-t*s-this.options.barGap*(s-1),a=u/2,f=this.ymin<=0&&this.ymax>=0?this.transY(0):null,this.bars=function(){var s,u,g,m;for(g=this.data,m=[],n=s=0,u=g.length;u>s;n=++s)l=g[n],r=0,m.push(function(){var s,u,g,m;for(g=l._y,m=[],c=s=0,u=g.length;u>s;c=++s)null!==(p=g[c])?(f?(d=Math.min(p,f),e=Math.max(p,f)):(d=p,e=this.bottom),o=this.left+n*i+a,this.options.stacked||(o+=c*(t+this.options.barGap)),h=e-d,this.options.verticalGridCondition&&this.options.verticalGridCondition(l.x)&&this.drawBar(this.left+n*i,this.top,i,Math.abs(this.top-this.bottom),this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius),this.options.stacked&&(d-=r),this.drawBar(o,d,t,h,this.colorFor(l,c,"bar"),this.options.barOpacity,this.options.barRadius),m.push(r+=h)):m.push(null);return m}.call(this));return m}.call(this)},n.prototype.colorFor=function(t,e,i){var n,r;return"function"==typeof this.options.barColors?(n={x:t.x,y:t.y[e],label:t.label},r={index:e,key:this.options.ykeys[e],label:this.options.labels[e]},this.options.barColors.call(this,n,r,i)):this.options.barColors[e%this.options.barColors.length]},n.prototype.hitTest=function(t){return 0===this.data.length?null:(t=Math.max(Math.min(t,this.right),this.left),Math.min(this.data.length-1,Math.floor((t-this.left)/(this.width/this.data.length))))},n.prototype.onGridClick=function(t,e){var i;return i=this.hitTest(t),this.fire("click",i,this.data[i].src,t,e)},n.prototype.onHoverMove=function(t){var e,i;return e=this.hitTest(t),(i=this.hover).update.apply(i,this.hoverContentForRow(e))},n.prototype.onHoverOut=function(){return!1!==this.options.hideHover?this.hover.hide():void 0},n.prototype.hoverContentForRow=function(t){var e,i,n,r,o,a,s;for(e="<div class='morris-hover-row-label'>"+(n=this.data[t]).label+"</div>",i=o=0,a=(s=n.y).length;a>o;i=++o)r=s[i],e+="<div class='morris-hover-point' style='color: "+this.colorFor(n,i,"label")+"'>\n "+this.options.labels[i]+":\n "+this.yLabelFormat(r)+"\n</div>";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,n.src)),[e,this.left+(t+.5)*this.width/this.data.length]},n.prototype.drawXAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},n.prototype.drawBar=function(t,e,i,n,r,o,a){var s;return(0===(s=Math.max.apply(Math,a))||s>n?this.raphael.rect(t,e,i,n):this.raphael.path(this.roundedRect(t,e,i,n,a))).attr("fill",r).attr("fill-opacity",o).attr("stroke","none")},n.prototype.roundedRect=function(t,e,i,n,r){return null==r&&(r=[0,0,0,0]),["M",t,r[0]+e,"Q",t,e,t+r[0],e,"L",t+i-r[1],e,"Q",t+i,e,t+i,e+r[1],"L",t+i,e+n-r[2],"Q",t+i,e+n,t+i-r[2],e+n,"L",t+r[3],e+n,"Q",t,e+n,t,e+n-r[3],"Z"]},n}(e.Grid),e.Donut=function(i){function n(i){this.resizeHandler=o(this.resizeHandler,this),this.select=o(this.select,this),this.click=o(this.click,this);var n=this;if(!(this instanceof e.Donut))return new e.Donut(i);if(this.options=t.extend({},this.defaults,i),this.el="string"==typeof i.element?t(document.getElementById(i.element)):t(i.element),null===this.el||0===this.el.length)throw new Error("Graph placeholder not found.");void 0!==i.data&&0!==i.data.length&&(this.raphael=new Raphael(this.el[0]),this.options.resize&&t(window).bind("resize",(function(){return null!=n.timeoutId&&window.clearTimeout(n.timeoutId),n.timeoutId=window.setTimeout(n.resizeHandler,100)})),this.setData(i.data))}return s(n,i),n.prototype.defaults={colors:["#0B62A4","#3980B5","#679DC6","#95BBD7","#B0CCE1","#095791","#095085","#083E67","#052C48","#042135"],backgroundColor:"#FFFFFF",labelColor:"#000000",formatter:e.commas,resize:!1},n.prototype.redraw=function(){var t,i,n,r,o,a,s,l,c,h,u,d,p,f,g,m,y,v,b,x,w,_;for(this.raphael.clear(),i=this.el.width()/2,n=this.el.height()/2,d=(Math.min(i,n)-10)/3,u=0,p=0,m=(b=this.values).length;m>p;p++)u+=b[p];for(l=5/(2*d),t=1.9999*Math.PI-l*this.data.length,a=0,o=0,this.segments=[],r=f=0,y=(x=this.values).length;y>f;r=++f)c=a+l+t*(x[r]/u),(h=new e.DonutSegment(i,n,2*d,d,a,c,this.data[r].color||this.options.colors[o%this.options.colors.length],this.options.backgroundColor,o,this.raphael)).render(),this.segments.push(h),h.on("hover",this.select),h.on("click",this.click),a=c,o+=1;for(this.text1=this.drawEmptyDonutLabel(i,n-10,this.options.labelColor,15,800),this.text2=this.drawEmptyDonutLabel(i,n+10,this.options.labelColor,14),s=Math.max.apply(Math,this.values),o=0,_=[],g=0,v=(w=this.values).length;v>g;g++){if(w[g]===s){this.select(o);break}_.push(o+=1)}return _},n.prototype.setData=function(t){var e;return this.data=t,this.values=function(){var t,i,n,r;for(r=[],t=0,i=(n=this.data).length;i>t;t++)e=n[t],r.push(parseFloat(e.value));return r}.call(this),this.redraw()},n.prototype.click=function(t){return this.fire("click",t,this.data[t])},n.prototype.select=function(t){var e,i,n,r;for(i=0,n=(r=this.segments).length;n>i;i++)r[i].deselect();return this.segments[t].select(),e=this.data[t],this.setLabels(e.label,this.options.formatter(e.value,e))},n.prototype.setLabels=function(t,e){var i,n,r,o,a,s,l,c;return o=1.8*(i=2*(Math.min(this.el.width()/2,this.el.height()/2)-10)/3),r=i/2,n=i/3,this.text1.attr({text:t,transform:""}),a=this.text1.getBBox(),s=Math.min(o/a.width,r/a.height),this.text1.attr({transform:"S"+s+","+s+","+(a.x+a.width/2)+","+(a.y+a.height)}),this.text2.attr({text:e,transform:""}),l=this.text2.getBBox(),c=Math.min(o/l.width,n/l.height),this.text2.attr({transform:"S"+c+","+c+","+(l.x+l.width/2)+","+l.y})},n.prototype.drawEmptyDonutLabel=function(t,e,i,n,r){var o;return o=this.raphael.text(t,e,"").attr("font-size",n).attr("fill",i),null!=r&&o.attr("font-weight",r),o},n.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},n}(e.EventEmitter),e.DonutSegment=function(t){function e(t,e,i,n,r,a,s,l,c,h){this.cx=t,this.cy=e,this.inner=i,this.outer=n,this.color=s,this.backgroundColor=l,this.index=c,this.raphael=h,this.deselect=o(this.deselect,this),this.select=o(this.select,this),this.sin_p0=Math.sin(r),this.cos_p0=Math.cos(r),this.sin_p1=Math.sin(a),this.cos_p1=Math.cos(a),this.is_long=a-r>Math.PI?1:0,this.path=this.calcSegment(this.inner+3,this.inner+this.outer-5),this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer),this.hilight=this.calcArc(this.inner)}return s(e,t),e.prototype.calcArcPoints=function(t){return[this.cx+t*this.sin_p0,this.cy+t*this.cos_p0,this.cx+t*this.sin_p1,this.cy+t*this.cos_p1]},e.prototype.calcSegment=function(t,e){var i,n,r,o,a,s,l,c,h,u;return i=(h=this.calcArcPoints(t))[0],r=h[1],n=h[2],o=h[3],a=(u=this.calcArcPoints(e))[0],l=u[1],s=u[2],c=u[3],"M"+i+","+r+"A"+t+","+t+",0,"+this.is_long+",0,"+n+","+o+"L"+s+","+c+"A"+e+","+e+",0,"+this.is_long+",1,"+a+","+l+"Z"},e.prototype.calcArc=function(t){var e,i,n,r,o;return e=(o=this.calcArcPoints(t))[0],n=o[1],i=o[2],r=o[3],"M"+e+","+n+"A"+t+","+t+",0,"+this.is_long+",0,"+i+","+r},e.prototype.render=function(){var t=this;return this.arc=this.drawDonutArc(this.hilight,this.color),this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,(function(){return t.fire("hover",t.index)}),(function(){return t.fire("click",t.index)}))},e.prototype.drawDonutArc=function(t,e){return this.raphael.path(t).attr({stroke:e,"stroke-width":2,opacity:0})},e.prototype.drawDonutSegment=function(t,e,i,n,r){return this.raphael.path(t).attr({fill:e,stroke:i,"stroke-width":3}).hover(n).click(r)},e.prototype.select=function(){return this.selected?void 0:(this.seg.animate({path:this.selectedPath},150,"<>"),this.arc.animate({opacity:1},150,"<>"),this.selected=!0)},e.prototype.deselect=function(){return this.selected?(this.seg.animate({path:this.path},150,"<>"),this.arc.animate({opacity:0},150,"<>"),this.selected=!1):void 0},e}(e.EventEmitter)}.call(this),function(t){var e,i,n="0.4.2",r="hasOwnProperty",o=/[\.\/]/,a=function(){},s=function(t,e){return t-e},l={n:{}},c=function(t,n){t=String(t);var r,o=i,a=Array.prototype.slice.call(arguments,2),l=c.listeners(t),h=0,u=[],d={},p=[],f=e;e=t,i=0;for(var g=0,m=l.length;m>g;g++)"zIndex"in l[g]&&(u.push(l[g].zIndex),l[g].zIndex<0&&(d[l[g].zIndex]=l[g]));for(u.sort(s);u[h]<0;)if(r=d[u[h++]],p.push(r.apply(n,a)),i)return i=o,p;for(g=0;m>g;g++)if("zIndex"in(r=l[g]))if(r.zIndex==u[h]){if(p.push(r.apply(n,a)),i)break;do{if((r=d[u[++h]])&&p.push(r.apply(n,a)),i)break}while(r)}else d[r.zIndex]=r;else if(p.push(r.apply(n,a)),i)break;return i=o,e=f,p.length?p:null};c._events=l,c.listeners=function(t){var e,i,n,r,a,s,c,h,u=t.split(o),d=l,p=[d],f=[];for(r=0,a=u.length;a>r;r++){for(h=[],s=0,c=p.length;c>s;s++)for(i=[(d=p[s].n)[u[r]],d["*"]],n=2;n--;)(e=i[n])&&(h.push(e),f=f.concat(e.f||[]));p=h}return f},c.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var i=t.split(o),n=l,r=0,s=i.length;s>r;r++)n=(n=n.n).hasOwnProperty(i[r])&&n[i[r]]||(n[i[r]]={n:{}});for(n.f=n.f||[],r=0,s=n.f.length;s>r;r++)if(n.f[r]==e)return a;return n.f.push(e),function(t){+t==+t&&(e.zIndex=+t)}},c.f=function(t){var e=[].slice.call(arguments,1);return function(){c.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},c.stop=function(){i=1},c.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},c.nts=function(){return e.split(o)},c.off=c.unbind=function(t,e){if(t){var i,n,a,s,h,u,d,p=t.split(o),f=[l];for(s=0,h=p.length;h>s;s++)for(u=0;u<f.length;u+=a.length-2){if(a=[u,1],i=f[u].n,"*"!=p[s])i[p[s]]&&a.push(i[p[s]]);else for(n in i)i[r](n)&&a.push(i[n]);f.splice.apply(f,a)}for(s=0,h=f.length;h>s;s++)for(i=f[s];i.n;){if(e){if(i.f){for(u=0,d=i.f.length;d>u;u++)if(i.f[u]==e){i.f.splice(u,1);break}!i.f.length&&delete i.f}for(n in i.n)if(i.n[r](n)&&i.n[n].f){var g=i.n[n].f;for(u=0,d=g.length;d>u;u++)if(g[u]==e){g.splice(u,1);break}!g.length&&delete i.n[n].f}}else for(n in delete i.f,i.n)i.n[r](n)&&i.n[n].f&&delete i.n[n].f;i=i.n}}else c._events=l={n:{}}},c.once=function(t,e){var i=function(){return c.unbind(t,i),e.apply(this,arguments)};return c.on(t,i)},c.version=n,c.toString=function(){return"You are running Eve "+n},"undefined"!=typeof module&&module.exports?module.exports=c:"undefined"!=typeof define?define("eve",[],(function(){return c})):t.eve=c}(this),function(t,e){"function"==typeof define&&define.amd?define(["eve"],(function(i){return e(t,i)})):e(t,t.eve)}(this,(function(t,e){function i(t){if(i.is(t,"function"))return b?t():e.on("raphael.DOMload",t);if(i.is(t,G))return i._engine.create[A](i,t.splice(0,3+i.is(t[0],X))).add(t);var n=Array.prototype.slice.call(arguments,0);if(i.is(n[n.length-1],"function")){var r=n.pop();return b?r.call(i._engine.create[A](i,n)):e.on("raphael.DOMload",(function(){r.call(i._engine.create[A](i,n))}))}return i._engine.create[A](i,arguments)}function n(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[P](i)&&(e[i]=n(t[i]));return e}function r(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}function o(t,e,i){return function n(){var o=Array.prototype.slice.call(arguments,0),a=o.join("␀"),s=n.cache=n.cache||{},l=n.count=n.count||[];return s[P](a)?(r(l,a),i?i(s[a]):s[a]):(l.length>=1e3&&delete s[l.shift()],l.push(a),s[a]=t[A](e,o),i?i(s[a]):s[a])}}function a(){return this.hex}function s(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var o=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?o[3]={x:+t[0],y:+t[1]}:r-2==n&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?o[3]=o[2]:n||(o[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i}function l(t,e,i,n,r){return t*(t*(-3*e+9*i-9*n+3*r)+6*e-12*i+6*n)-3*e+3*i}function c(t,e,i,n,r,o,a,s,c){null==c&&(c=1);for(var h=(c=c>1?1:0>c?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;12>f;f++){var g=h*u[f]+h,m=l(g,t,i,r,a),y=l(g,e,n,o,s),v=m*m+y*y;p+=d[f]*R.sqrt(v)}return h*p}function h(t,e,i,n,r,o,a,s){if(!(V(t,i)<z(r,a)||z(t,i)>V(r,a)||V(e,n)<z(o,s)||z(e,n)>V(o,s))){var l=(t-i)*(o-s)-(e-n)*(r-a);if(l){var c=((t*n-e*i)*(r-a)-(t-i)*(r*s-o*a))/l,h=((t*n-e*i)*(o-s)-(e-n)*(r*s-o*a))/l,u=+c.toFixed(2),d=+h.toFixed(2);if(!(u<+z(t,i).toFixed(2)||u>+V(t,i).toFixed(2)||u<+z(r,a).toFixed(2)||u>+V(r,a).toFixed(2)||d<+z(e,n).toFixed(2)||d>+V(e,n).toFixed(2)||d<+z(o,s).toFixed(2)||d>+V(o,s).toFixed(2)))return{x:c,y:h}}}}function u(t,e,n){var r=i.bezierBBox(t),o=i.bezierBBox(e);if(!i.isBBoxIntersect(r,o))return n?0:[];for(var a=c.apply(0,t),s=c.apply(0,e),l=V(~~(a/5),1),u=V(~~(s/5),1),d=[],p=[],f={},g=n?0:[],m=0;l+1>m;m++){var y=i.findDotsAtSegment.apply(i,t.concat(m/l));d.push({x:y.x,y:y.y,t:m/l})}for(m=0;u+1>m;m++)y=i.findDotsAtSegment.apply(i,e.concat(m/u)),p.push({x:y.x,y:y.y,t:m/u});for(m=0;l>m;m++)for(var v=0;u>v;v++){var b=d[m],x=d[m+1],w=p[v],_=p[v+1],S=B(x.x-b.x)<.001?"y":"x",P=B(_.x-w.x)<.001?"y":"x",k=h(b.x,b.y,x.x,x.y,w.x,w.y,_.x,_.y);if(k){if(f[k.x.toFixed(4)]==k.y.toFixed(4))continue;f[k.x.toFixed(4)]=k.y.toFixed(4);var C=b.t+B((k[S]-b[S])/(x[S]-b[S]))*(x.t-b.t),T=w.t+B((k[P]-w[P])/(_[P]-w[P]))*(_.t-w.t);C>=0&&1.001>=C&&T>=0&&1.001>=T&&(n?g++:g.push({x:k.x,y:k.y,t1:z(C,1),t2:z(T,1)}))}}return g}function d(t,e,n){t=i._path2curve(t),e=i._path2curve(e);for(var r,o,a,s,l,c,h,d,p,f,g=n?0:[],m=0,y=t.length;y>m;m++){var v=t[m];if("M"==v[0])r=l=v[1],o=c=v[2];else{"C"==v[0]?(p=[r,o].concat(v.slice(1)),r=p[6],o=p[7]):(p=[r,o,r,o,l,c,l,c],r=l,o=c);for(var b=0,x=e.length;x>b;b++){var w=e[b];if("M"==w[0])a=h=w[1],s=d=w[2];else{"C"==w[0]?(f=[a,s].concat(w.slice(1)),a=f[6],s=f[7]):(f=[a,s,a,s,h,d,h,d],a=h,s=d);var _=u(p,f,n);if(n)g+=_;else{for(var S=0,P=_.length;P>S;S++)_[S].segment1=m,_[S].segment2=b,_[S].bez1=p,_[S].bez2=f;g=g.concat(_)}}}}}return g}function p(t,e,i,n,r,o){null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+r,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function f(){return this.x+I+this.y+I+this.width+" × "+this.height}function g(t,e,i,n,r,o){function a(t){return((c*t+l)*t+s)*t}var s=3*e,l=3*(n-e)-s,c=1-s-l,h=3*i,u=3*(r-i)-h,d=1-h-u;return function(t,e){var i=function(t,e){var i,n,r,o,h,u;for(r=t,u=0;8>u;u++){if(o=a(r)-t,B(o)<e)return r;if(B(h=(3*c*r+2*l)*r+s)<1e-6)break;r-=o/h}if(n=1,(i=0)>(r=t))return i;if(r>n)return n;for(;n>i;){if(o=a(r),B(o-t)<e)return r;t>o?i=r:n=r,r=(n-i)/2+i}return r}(t,e);return((d*i+u)*i+h)*i}(t,1/(200*o))}function m(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[P](r)&&(n[J(r)]=t[r],i.push(J(r)));i.sort(ht)}this.anim=n,this.top=i[i.length-1],this.percents=i}function y(t,n,r,o,a,s){r=J(r);var l,c,h,u,d,f,m=t.ms,y={},v={},b={};if(o)for(_=0,S=oe.length;S>_;_++){var x=oe[_];if(x.el.id==n.id&&x.anim==t){x.percent!=r?(oe.splice(_,1),h=1):c=x,n.attr(x.totalOrigin);break}}else o=+v;for(var _=0,S=t.percents.length;S>_;_++){if(t.percents[_]==r||t.percents[_]>o*t.top){r=t.percents[_],d=t.percents[_-1]||0,m=m/t.top*(r-d),u=t.percents[_+1],l=t.anim[r];break}o&&n.attr(t.anim[t.percents[_]])}if(l){if(c)c.initstatus=o,c.start=new Date-c.ms*o;else{for(var k in l)if(l[P](k)&&(it[P](k)||n.paper.customAttributes[P](k)))switch(y[k]=n.attr(k),null==y[k]&&(y[k]=et[k]),v[k]=l[k],it[k]){case X:b[k]=(v[k]-y[k])/m;break;case"colour":y[k]=i.getRGB(y[k]);var C=i.getRGB(v[k]);b[k]={r:(C.r-y[k].r)/m,g:(C.g-y[k].g)/m,b:(C.b-y[k].b)/m};break;case"path":var T=Lt(y[k],v[k]),A=T[1];for(y[k]=T[0],b[k]=[],_=0,S=y[k].length;S>_;_++){b[k][_]=[0];for(var M=1,E=y[k][_].length;E>M;M++)b[k][_][M]=(A[_][M]-y[k][_][M])/m}break;case"transform":var I=n._,j=Vt(I[k],v[k]);if(j)for(y[k]=j.from,v[k]=j.to,b[k]=[],b[k].real=!0,_=0,S=y[k].length;S>_;_++)for(b[k][_]=[y[k][_][0]],M=1,E=y[k][_].length;E>M;M++)b[k][_][M]=(v[k][_][M]-y[k][_][M])/m;else{var N=n.matrix||new p,F={_:{transform:I.transform},getBBox:function(){return n.getBBox(1)}};y[k]=[N.a,N.b,N.c,N.d,N.e,N.f],Ft(F,v[k]),v[k]=F._.transform,b[k]=[(F.matrix.a-N.a)/m,(F.matrix.b-N.b)/m,(F.matrix.c-N.c)/m,(F.matrix.d-N.d)/m,(F.matrix.e-N.e)/m,(F.matrix.f-N.f)/m]}break;case"csv":var R=D(l[k])[L](w),V=D(y[k])[L](w);if("clip-rect"==k)for(y[k]=V,b[k]=[],_=V.length;_--;)b[k][_]=(R[_]-y[k][_])/m;v[k]=R;break;default:for(R=[][O](l[k]),V=[][O](y[k]),b[k]=[],_=n.paper.customAttributes[k].length;_--;)b[k][_]=((R[_]||0)-(V[_]||0))/m}var z=l.easing,B=i.easing_formulas[z];if(!B)if((B=D(z).match(K))&&5==B.length){var H=B;B=function(t){return g(t,+H[1],+H[2],+H[3],+H[4],m)}}else B=ut;if(x={anim:t,percent:r,timestamp:f=l.start||t.start||+new Date,start:f+(t.del||0),status:0,initstatus:o||0,stop:!1,ms:m,easing:B,from:y,diff:b,to:v,el:n,callback:l.callback,prev:d,next:u,repeat:s||t.times,origin:n.attr(),totalOrigin:a},oe.push(x),o&&!c&&!h&&(x.stop=!0,x.start=new Date-m*o,1==oe.length))return se();h&&(x.start=new Date-x.ms*o),1==oe.length&&ae(se)}e("raphael.anim.start."+n.id,n,t)}}function v(t){for(var e=0;e<oe.length;e++)oe[e].el.paper==t&&oe.splice(e--,1)}i.version="2.1.2",i.eve=e;var b,x,w=/[, ]+/,_={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},S=/\{(\d+)\}/g,P="hasOwnProperty",k={doc:document,win:t},C={was:Object.prototype[P].call(k.win,"Raphael"),is:k.win.Raphael},T=function(){this.ca=this.customAttributes={}},A="apply",O="concat",M="ontouchstart"in k.win||k.win.DocumentTouch&&k.doc instanceof DocumentTouch,E="",I=" ",D=String,L="split",j="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[L](I),N={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},F=D.prototype.toLowerCase,R=Math,V=R.max,z=R.min,B=R.abs,H=R.pow,W=R.PI,X="number",Y="string",G="array",U=Object.prototype.toString,q=(i._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),$={NaN:1,Infinity:1,"-Infinity":1},K=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Z=R.round,J=parseFloat,Q=parseInt,tt=D.prototype.toUpperCase,et=i._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},it=i._availableAnimAttrs={blur:X,"clip-rect":"csv",cx:X,cy:X,fill:"colour","fill-opacity":X,"font-size":X,height:X,opacity:X,path:"path",r:X,rx:X,ry:X,stroke:"colour","stroke-opacity":X,"stroke-width":X,transform:"transform",width:X,x:X,y:X},nt=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,rt={hs:1,rg:1},ot=/,?([achlmqrstvxz]),?/gi,at=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,st=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,lt=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,ct=(i._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),ht=function(t,e){return J(t)-J(e)},ut=function(t){return t},dt=i._rectPath=function(t,e,i,n,r){return r?[["M",t+r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},pt=function(t,e,i,n){return null==n&&(n=i),[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]]},ft=i._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return pt(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return pt(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return dt(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return dt(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return dt(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return dt(e.x,e.y,e.width,e.height)}},gt=i.mapPath=function(t,e){if(!e)return t;var i,n,r,o,a,s,l;for(r=0,a=(t=Lt(t)).length;a>r;r++)for(o=1,s=(l=t[r]).length;s>o;o+=2)i=e.x(l[o],l[o+1]),n=e.y(l[o],l[o+1]),l[o]=i,l[o+1]=n;return t};if(i._g=k,i.type=k.win.SVGAngle||k.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==i.type){var mt,yt=k.doc.createElement("div");if(yt.innerHTML='<v:shape adj="1"/>',(mt=yt.firstChild).style.behavior="url(#default#VML)",!mt||"object"!=typeof mt.adj)return i.type=E;yt=null}i.svg=!(i.vml="VML"==i.type),i._Paper=T,i.fn=x=T.prototype=i.prototype,i._id=0,i._oid=0,i.is=function(t,e){return"finite"==(e=F.call(e))?!$[P](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||U.call(t).slice(8,-1).toLowerCase()==e},i.angle=function(t,e,n,r,o,a){if(null==o){var s=t-n,l=e-r;return s||l?(180+180*R.atan2(-l,-s)/W+360)%360:0}return i.angle(t,e,o,a)-i.angle(n,r,o,a)},i.rad=function(t){return t%360*W/180},i.deg=function(t){return 180*t/W%360},i.snapTo=function(t,e,n){if(n=i.is(n,"finite")?n:10,i.is(t,G)){for(var r=t.length;r--;)if(B(t[r]-e)<=n)return t[r]}else{var o=e%(t=+t);if(n>o)return e-o;if(o>t-n)return e-o+t}return e},i.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,(function(t){var e=0|16*R.random();return("x"==t?e:8|3&e).toString(16)})),i.setWindow=function(t){e("raphael.setWindow",i,k.win,t),k.win=t,k.doc=k.win.document,i._engine.initWin&&i._engine.initWin(k.win)};var vt=function(t){if(i.vml){var e,n=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write("<body>"),r.close(),e=r.body}catch(t){e=createPopup().document.body}var a=e.createTextRange();vt=o((function(t){try{e.style.color=D(t).replace(n,E);var i=a.queryCommandValue("ForeColor");return"#"+("000000"+(i=(255&i)<<16|65280&i|(16711680&i)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var s=k.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",k.doc.body.appendChild(s),vt=o((function(t){return s.style.color=t,k.doc.defaultView.getComputedStyle(s,E).getPropertyValue("color")}))}return vt(t)},bt=function(){return"hsb("+[this.h,this.s,this.b]+")"},xt=function(){return"hsl("+[this.h,this.s,this.l]+")"},wt=function(){return this.hex},_t=function(t,e,n){if(null==e&&i.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),null==e&&i.is(t,Y)){var r=i.getRGB(t);t=r.r,e=r.g,n=r.b}return(t>1||e>1||n>1)&&(t/=255,e/=255,n/=255),[t,e,n]},St=function(t,e,n,r){var o={r:t*=255,g:e*=255,b:n*=255,hex:i.rgb(t,e,n),toString:wt};return i.is(r,"finite")&&(o.opacity=r),o};i.color=function(t){var e;return i.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=i.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):i.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=i.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(i.is(t,"string")&&(t=i.getRGB(t)),i.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=i.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=i.rgb2hsb(t),t.v=e.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=wt,t},i.hsb2rgb=function(t,e,i,n){var r,o,a,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=(t=t.h).o),s=(l=i*e)*(1-B((t=(t*=360)%360/60)%2-1)),r=o=a=i-l,St(r+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],n)},i.hsl2rgb=function(t,e,i,n){var r,o,a,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),s=(l=2*e*(.5>i?i:1-i))*(1-B((t=(t*=360)%360/60)%2-1)),r=o=a=i-l/2,St(r+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],n)},i.rgb2hsb=function(t,e,i){var n,r;return t=(i=_t(t,e,i))[0],e=i[1],i=i[2],{h:((0==(r=(n=V(t,e,i))-z(t,e,i))?null:n==t?(e-i)/r:n==e?(i-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/n,b:n,toString:bt}},i.rgb2hsl=function(t,e,i){var n,r,o,a;return t=(i=_t(t,e,i))[0],e=i[1],i=i[2],n=((r=V(t,e,i))+(o=z(t,e,i)))/2,{h:((0==(a=r-o)?null:r==t?(e-i)/a:r==e?(i-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:.5>n?a/(2*n):a/(2-2*n),l:n,toString:xt}},i._path2string=function(){return this.join(",").replace(ot,"$1")},i._preload=function(t,e){var i=k.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,k.doc.body.removeChild(this)},i.onerror=function(){k.doc.body.removeChild(this)},k.doc.body.appendChild(i),i.src=t},i.getRGB=o((function(t){if(!t||(t=D(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:a};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:a};!rt[P](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=vt(t));var e,n,r,o,s,l,c=t.match(q);return c?(c[2]&&(r=Q(c[2].substring(5),16),n=Q(c[2].substring(3,5),16),e=Q(c[2].substring(1,3),16)),c[3]&&(r=Q((s=c[3].charAt(3))+s,16),n=Q((s=c[3].charAt(2))+s,16),e=Q((s=c[3].charAt(1))+s,16)),c[4]&&(l=c[4][L](nt),e=J(l[0]),"%"==l[0].slice(-1)&&(e*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&&(o=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100)),c[5]?(l=c[5][L](nt),e=J(l[0]),"%"==l[0].slice(-1)&&(e*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(e/=360),"hsba"==c[1].toLowerCase().slice(0,4)&&(o=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),i.hsb2rgb(e,n,r,o)):c[6]?(l=c[6][L](nt),e=J(l[0]),"%"==l[0].slice(-1)&&(e*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(e/=360),"hsla"==c[1].toLowerCase().slice(0,4)&&(o=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),i.hsl2rgb(e,n,r,o)):((c={r:e,g:n,b:r,toString:a}).hex="#"+(16777216|r|n<<8|e<<16).toString(16).slice(1),i.is(o,"finite")&&(c.opacity=o),c)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:a}}),i),i.hsb=o((function(t,e,n){return i.hsb2rgb(t,e,n).hex})),i.hsl=o((function(t,e,n){return i.hsl2rgb(t,e,n).hex})),i.rgb=o((function(t,e,i){return"#"+(16777216|i|e<<8|t<<16).toString(16).slice(1)})),i.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},i.getColor.reset=function(){delete this.start},i.parsePathString=function(t){if(!t)return null;var e=Pt(t);if(e.arr)return Ct(e.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return i.is(t,G)&&i.is(t[0],G)&&(r=Ct(t)),r.length||D(t).replace(at,(function(t,e,i){var o=[],a=e.toLowerCase();if(i.replace(lt,(function(t,e){e&&o.push(+e)})),"m"==a&&o.length>2&&(r.push([e][O](o.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][O](o));else for(;o.length>=n[a]&&(r.push([e][O](o.splice(0,n[a]))),n[a]););})),r.toString=i._path2string,e.arr=Ct(r),r},i.parseTransformString=o((function(t){if(!t)return null;var e=[];return i.is(t,G)&&i.is(t[0],G)&&(e=Ct(t)),e.length||D(t).replace(st,(function(t,i,n){var r=[];F.call(i),n.replace(lt,(function(t,e){e&&r.push(+e)})),e.push([i][O](r))})),e.toString=i._path2string,e}));var Pt=function(t){var e=Pt.ps=Pt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var i in e)e[P](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])})),e[t]};i.findDotsAtSegment=function(t,e,i,n,r,o,a,s,l){var c=1-l,h=H(c,3),u=H(c,2),d=l*l,p=d*l,f=h*t+3*u*l*i+3*c*l*l*r+p*a,g=h*e+3*u*l*n+3*c*l*l*o+p*s,m=t+2*l*(i-t)+d*(r-2*i+t),y=e+2*l*(n-e)+d*(o-2*n+e),v=i+2*l*(r-i)+d*(a-2*r+i),b=n+2*l*(o-n)+d*(s-2*o+n),x=c*t+l*i,w=c*e+l*n,_=c*r+l*a,S=c*o+l*s,P=90-180*R.atan2(m-v,y-b)/W;return(m>v||b>y)&&(P+=180),{x:f,y:g,m:{x:m,y:y},n:{x:v,y:b},start:{x:x,y:w},end:{x:_,y:S},alpha:P}},i.bezierBBox=function(t,e,n,r,o,a,s,l){i.is(t,"array")||(t=[t,e,n,r,o,a,s,l]);var c=Dt.apply(null,t);return{x:c.min.x,y:c.min.y,x2:c.max.x,y2:c.max.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y}},i.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},i.isBBoxIntersect=function(t,e){var n=i.isPointInsideBBox;return n(e,t.x,t.y)||n(e,t.x2,t.y)||n(e,t.x,t.y2)||n(e,t.x2,t.y2)||n(t,e.x,e.y)||n(t,e.x2,e.y)||n(t,e.x,e.y2)||n(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},i.pathIntersection=function(t,e){return d(t,e)},i.pathIntersectionNumber=function(t,e){return d(t,e,1)},i.isPointInsidePath=function(t,e,n){var r=i.pathBBox(t);return i.isPointInsideBBox(r,e,n)&&1==d(t,[["M",e,n],["H",r.x2+10]],1)%2},i._removedFactory=function(t){return function(){e("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var kt=i.pathBBox=function(t){var e=Pt(t);if(e.bbox)return n(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,r=0,o=0,a=[],s=[],l=0,c=(t=Lt(t)).length;c>l;l++)if("M"==(i=t[l])[0])r=i[1],o=i[2],a.push(r),s.push(o);else{var h=Dt(r,o,i[1],i[2],i[3],i[4],i[5],i[6]);a=a[O](h.min.x,h.max.x),s=s[O](h.min.y,h.max.y),r=i[5],o=i[6]}var u=z[A](0,a),d=z[A](0,s),p=V[A](0,a),f=V[A](0,s),g=p-u,m=f-d,y={x:u,y:d,x2:p,y2:f,width:g,height:m,cx:u+g/2,cy:d+m/2};return e.bbox=n(y),y},Ct=function(t){var e=n(t);return e.toString=i._path2string,e},Tt=i._pathToRelative=function(t){var e=Pt(t);if(e.rel)return Ct(e.rel);i.is(t,G)&&i.is(t&&t[0],G)||(t=i.parsePathString(t));var n=[],r=0,o=0,a=0,s=0,l=0;"M"==t[0][0]&&(a=r=t[0][1],s=o=t[0][2],l++,n.push(["M",r,o]));for(var c=l,h=t.length;h>c;c++){var u=n[c]=[],d=t[c];if(d[0]!=F.call(d[0]))switch(u[0]=F.call(d[0]),u[0]){case"a":u[1]=d[1],u[2]=d[2],u[3]=d[3],u[4]=d[4],u[5]=d[5],u[6]=+(d[6]-r).toFixed(3),u[7]=+(d[7]-o).toFixed(3);break;case"v":u[1]=+(d[1]-o).toFixed(3);break;case"m":a=d[1],s=d[2];default:for(var p=1,f=d.length;f>p;p++)u[p]=+(d[p]-(p%2?r:o)).toFixed(3)}else{u=n[c]=[],"m"==d[0]&&(a=d[1]+r,s=d[2]+o);for(var g=0,m=d.length;m>g;g++)n[c][g]=d[g]}var y=n[c].length;switch(n[c][0]){case"z":r=a,o=s;break;case"h":r+=+n[c][y-1];break;case"v":o+=+n[c][y-1];break;default:r+=+n[c][y-2],o+=+n[c][y-1]}}return n.toString=i._path2string,e.rel=Ct(n),n},At=i._pathToAbsolute=function(t){var e=Pt(t);if(e.abs)return Ct(e.abs);if(i.is(t,G)&&i.is(t&&t[0],G)||(t=i.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],r=0,o=0,a=0,l=0,c=0;"M"==t[0][0]&&(a=r=+t[0][1],l=o=+t[0][2],c++,n[0]=["M",r,o]);for(var h,u,d=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),p=c,f=t.length;f>p;p++){if(n.push(h=[]),(u=t[p])[0]!=tt.call(u[0]))switch(h[0]=tt.call(u[0]),h[0]){case"A":h[1]=u[1],h[2]=u[2],h[3]=u[3],h[4]=u[4],h[5]=u[5],h[6]=+(u[6]+r),h[7]=+(u[7]+o);break;case"V":h[1]=+u[1]+o;break;case"H":h[1]=+u[1]+r;break;case"R":for(var g=[r,o][O](u.slice(1)),m=2,y=g.length;y>m;m++)g[m]=+g[m]+r,g[++m]=+g[m]+o;n.pop(),n=n[O](s(g,d));break;case"M":a=+u[1]+r,l=+u[2]+o;default:for(m=1,y=u.length;y>m;m++)h[m]=+u[m]+(m%2?r:o)}else if("R"==u[0])g=[r,o][O](u.slice(1)),n.pop(),n=n[O](s(g,d)),h=["R"][O](u.slice(-2));else for(var v=0,b=u.length;b>v;v++)h[v]=u[v];switch(h[0]){case"Z":r=a,o=l;break;case"H":r=h[1];break;case"V":o=h[1];break;case"M":a=h[h.length-2],l=h[h.length-1];default:r=h[h.length-2],o=h[h.length-1]}}return n.toString=i._path2string,e.abs=Ct(n),n},Ot=function(t,e,i,n){return[t,e,i,n,i,n]},Mt=function(t,e,i,n,r,o){var a=1/3,s=2/3;return[a*t+s*i,a*e+s*n,a*r+s*i,a*o+s*n,r,o]},Et=function(t,e,i,n,r,a,s,l,c,h){var u,d=120*W/180,p=W/180*(+r||0),f=[],g=o((function(t,e,i){return{x:t*R.cos(i)-e*R.sin(i),y:t*R.sin(i)+e*R.cos(i)}}));if(h)P=h[0],k=h[1],_=h[2],S=h[3];else{t=(u=g(t,e,-p)).x,e=u.y,l=(u=g(l,c,-p)).x,c=u.y;var m=(R.cos(W/180*r),R.sin(W/180*r),(t-l)/2),y=(e-c)/2,v=m*m/(i*i)+y*y/(n*n);v>1&&(i*=v=R.sqrt(v),n*=v);var b=i*i,x=n*n,w=(a==s?-1:1)*R.sqrt(B((b*x-b*y*y-x*m*m)/(b*y*y+x*m*m))),_=w*i*y/n+(t+l)/2,S=w*-n*m/i+(e+c)/2,P=R.asin(((e-S)/n).toFixed(9)),k=R.asin(((c-S)/n).toFixed(9));0>(P=_>t?W-P:P)&&(P=2*W+P),0>(k=_>l?W-k:k)&&(k=2*W+k),s&&P>k&&(P-=2*W),!s&&k>P&&(k-=2*W)}var C=k-P;if(B(C)>d){var T=k,A=l,M=c;k=P+d*(s&&k>P?1:-1),l=_+i*R.cos(k),c=S+n*R.sin(k),f=Et(l,c,i,n,r,0,s,A,M,[k,T,_,S])}C=k-P;var E=R.cos(P),I=R.sin(P),D=R.cos(k),j=R.sin(k),N=R.tan(C/4),F=4/3*i*N,V=4/3*n*N,z=[t,e],H=[t+F*I,e-V*E],X=[l+F*j,c-V*D],Y=[l,c];if(H[0]=2*z[0]-H[0],H[1]=2*z[1]-H[1],h)return[H,X,Y][O](f);for(var G=[],U=0,q=(f=[H,X,Y][O](f).join()[L](",")).length;q>U;U++)G[U]=U%2?g(f[U-1],f[U],p).y:g(f[U],f[U+1],p).x;return G},It=function(t,e,i,n,r,o,a,s,l){var c=1-l;return{x:H(c,3)*t+3*H(c,2)*l*i+3*c*l*l*r+H(l,3)*a,y:H(c,3)*e+3*H(c,2)*l*n+3*c*l*l*o+H(l,3)*s}},Dt=o((function(t,e,i,n,r,o,a,s){var l,c=r-2*i+t-(a-2*r+i),h=2*(i-t)-2*(r-i),u=t-i,d=(-h+R.sqrt(h*h-4*c*u))/2/c,p=(-h-R.sqrt(h*h-4*c*u))/2/c,f=[e,s],g=[t,a];return B(d)>"1e12"&&(d=.5),B(p)>"1e12"&&(p=.5),d>0&&1>d&&(l=It(t,e,i,n,r,o,a,s,d),g.push(l.x),f.push(l.y)),p>0&&1>p&&(l=It(t,e,i,n,r,o,a,s,p),g.push(l.x),f.push(l.y)),c=o-2*n+e-(s-2*o+n),u=e-n,d=(-(h=2*(n-e)-2*(o-n))+R.sqrt(h*h-4*c*u))/2/c,p=(-h-R.sqrt(h*h-4*c*u))/2/c,B(d)>"1e12"&&(d=.5),B(p)>"1e12"&&(p=.5),d>0&&1>d&&(l=It(t,e,i,n,r,o,a,s,d),g.push(l.x),f.push(l.y)),p>0&&1>p&&(l=It(t,e,i,n,r,o,a,s,p),g.push(l.x),f.push(l.y)),{min:{x:z[A](0,g),y:z[A](0,f)},max:{x:V[A](0,g),y:V[A](0,f)}}})),Lt=i._path2curve=o((function(t,e){var i=!e&&Pt(t);if(!e&&i.curve)return Ct(i.curve);for(var n=At(t),r=e&&At(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(t,e,i){var n,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][O](Et[A](0,[e.x,e.y][O](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][O](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][O](Mt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][O](Mt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][O](Ot(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][O](Ot(e.x,e.y,t[1],e.y));break;case"V":t=["C"][O](Ot(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][O](Ot(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)t.splice(e++,0,["C"][O](i.splice(0,6)));t.splice(e,1),u=V(n.length,r&&r.length||0)}},c=function(t,e,i,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],u=V(n.length,r&&r.length||0))},h=0,u=V(n.length,r&&r.length||0);u>h;h++){n[h]=s(n[h],o),l(n,h),r&&(r[h]=s(r[h],a)),r&&l(r,h),c(n,r,o,a,h),c(r,n,a,o,h);var d=n[h],p=r&&r[h],f=d.length,g=r&&p.length;o.x=d[f-2],o.y=d[f-1],o.bx=J(d[f-4])||o.x,o.by=J(d[f-3])||o.y,a.bx=r&&(J(p[g-4])||a.x),a.by=r&&(J(p[g-3])||a.y),a.x=r&&p[g-2],a.y=r&&p[g-1]}return r||(i.curve=Ct(n)),r?[n,r]:n}),null,Ct),jt=(i._parseDots=o((function(t){for(var e=[],n=0,r=t.length;r>n;n++){var o={},a=t[n].match(/^([^:]*):?([\d\.]*)/);if(o.color=i.getRGB(a[1]),o.color.error)return null;o.color=o.color.hex,a[2]&&(o.offset=a[2]+"%"),e.push(o)}for(n=1,r=e.length-1;r>n;n++)if(!e[n].offset){for(var s=J(e[n-1].offset||0),l=0,c=n+1;r>c;c++)if(e[c].offset){l=e[c].offset;break}l||(l=100,c=r);for(var h=((l=J(l))-s)/(c-n+1);c>n;n++)s+=h,e[n].offset=s+"%"}return e})),i._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Nt=(i._tofront=function(t,e){e.top!==t&&(jt(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},i._toback=function(t,e){e.bottom!==t&&(jt(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},i._insertafter=function(t,e,i){jt(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},i._insertbefore=function(t,e,i){jt(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},i.toMatrix=function(t,e){var i=kt(t),n={_:{transform:E},getBBox:function(){return i}};return Ft(n,e),n.matrix}),Ft=(i.transformPath=function(t,e){return gt(t,Nt(t,e))},i._extractTransform=function(t,e){if(null==e)return t._.transform;e=D(e).replace(/\.{3}|\u2026/g,t._.transform||E);var n,r,o=i.parseTransformString(e),a=0,s=1,l=1,c=t._,h=new p;if(c.transform=o||[],o)for(var u=0,d=o.length;d>u;u++){var f,g,m,y,v,b=o[u],x=b.length,w=D(b[0]).toLowerCase(),_=b[0]!=w,S=_?h.invert():0;"t"==w&&3==x?_?(f=S.x(0,0),g=S.y(0,0),m=S.x(b[1],b[2]),y=S.y(b[1],b[2]),h.translate(m-f,y-g)):h.translate(b[1],b[2]):"r"==w?2==x?(v=v||t.getBBox(1),h.rotate(b[1],v.x+v.width/2,v.y+v.height/2),a+=b[1]):4==x&&(_?(m=S.x(b[2],b[3]),y=S.y(b[2],b[3]),h.rotate(b[1],m,y)):h.rotate(b[1],b[2],b[3]),a+=b[1]):"s"==w?2==x||3==x?(v=v||t.getBBox(1),h.scale(b[1],b[x-1],v.x+v.width/2,v.y+v.height/2),s*=b[1],l*=b[x-1]):5==x&&(_?(m=S.x(b[3],b[4]),y=S.y(b[3],b[4]),h.scale(b[1],b[2],m,y)):h.scale(b[1],b[2],b[3],b[4]),s*=b[1],l*=b[2]):"m"==w&&7==x&&h.add(b[1],b[2],b[3],b[4],b[5],b[6]),c.dirtyT=1,t.matrix=h}t.matrix=h,c.sx=s,c.sy=l,c.deg=a,c.dx=n=h.e,c.dy=r=h.f,1==s&&1==l&&!a&&c.bbox?(c.bbox.x+=+n,c.bbox.y+=+r):c.dirtyT=1}),Rt=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Vt=i._equaliseTransform=function(t,e){e=D(e).replace(/\.{3}|\u2026/g,t),t=i.parseTransformString(t)||[],e=i.parseTransformString(e)||[];for(var n,r,o,a,s=V(t.length,e.length),l=[],c=[],h=0;s>h;h++){if(o=t[h]||Rt(e[h]),a=e[h]||Rt(o),o[0]!=a[0]||"r"==o[0].toLowerCase()&&(o[2]!=a[2]||o[3]!=a[3])||"s"==o[0].toLowerCase()&&(o[3]!=a[3]||o[4]!=a[4]))return;for(l[h]=[],c[h]=[],n=0,r=V(o.length,a.length);r>n;n++)n in o&&(l[h][n]=o[n]),n in a&&(c[h][n]=a[n])}return{from:l,to:c}};i._getContainer=function(t,e,n,r){var o;return null!=(o=null!=r||i.is(t,"object")?t:k.doc.getElementById(t))?o.tagName?null==e?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:e,height:n}:{container:1,x:t,y:e,width:n,height:r}:void 0},i.pathToRelative=Tt,i._engine={},i.path2curve=Lt,i.matrix=function(t,e,i,n,r,o){return new p(t,e,i,n,r,o)},function(t){function e(t){return t[0]*t[0]+t[1]*t[1]}function n(t){var i=R.sqrt(e(t));t[0]&&(t[0]/=i),t[1]&&(t[1]/=i)}t.add=function(t,e,i,n,r,o){var a,s,l,c,h=[[],[],[]],u=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],d=[[t,i,r],[e,n,o],[0,0,1]];for(t&&t instanceof p&&(d=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),a=0;3>a;a++)for(s=0;3>s;s++){for(c=0,l=0;3>l;l++)c+=u[a][l]*d[l][s];h[a][s]=c}this.a=h[0][0],this.b=h[1][0],this.c=h[0][1],this.d=h[1][1],this.e=h[0][2],this.f=h[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new p(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new p(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,n){null==e&&(e=t),(i||n)&&this.add(1,0,0,1,i,n),this.add(t,0,0,e,0,0),(i||n)&&this.add(1,0,0,1,-i,-n)},t.rotate=function(t,e,n){t=i.rad(t),e=e||0,n=n||0;var r=+R.cos(t).toFixed(9),o=+R.sin(t).toFixed(9);this.add(r,o,-o,r,e,n),this.add(1,0,0,1,-e,-n)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[D.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return i.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=R.sqrt(e(r[0])),n(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=R.sqrt(e(r[1])),n(r[1]),t.shear/=t.scaley;var o=-r[0][1],a=r[1][1];return 0>a?(t.rotate=i.deg(R.acos(a)),0>o&&(t.rotate=360-t.rotate)):t.rotate=i.deg(R.asin(o)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[L]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:E)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:E)+(e.rotate?"r"+[e.rotate,0,0]:E)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(p.prototype);var zt=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);x.safari="Apple Computer, Inc."==navigator.vendor&&(zt&&zt[1]<4||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&zt&&zt[1]<8?function(){var t=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout((function(){t.remove()}))}:function(){};for(var Bt=function(){this.returnValue=!1},Ht=function(){return this.originalEvent.preventDefault()},Wt=function(){this.cancelBubble=!0},Xt=function(){return this.originalEvent.stopPropagation()},Yt=function(t){var e=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,i=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},Gt=k.doc.addEventListener?function(t,e,i,n){var r=function(t){var e=Yt(t);return i.call(n,t,e.x,e.y)};return t.addEventListener(e,r,!1),M&&N[e]&&t.addEventListener(N[e],(function(e){for(var r=Yt(e),o=e,a=0,s=e.targetTouches&&e.targetTouches.length;s>a;a++)if(e.targetTouches[a].target==t){(e=e.targetTouches[a]).originalEvent=o,e.preventDefault=Ht,e.stopPropagation=Xt;break}return i.call(n,e,r.x,r.y)}),!1),function(){return t.removeEventListener(e,r,!1),M&&N[e]&&t.removeEventListener(N[e],r,!1),!0}}:k.doc.attachEvent?function(t,e,i,n){var r=function(t){t=t||k.win.event;var e=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,r=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,o=t.clientX+r,a=t.clientY+e;return t.preventDefault=t.preventDefault||Bt,t.stopPropagation=t.stopPropagation||Wt,i.call(n,t,o,a)};return t.attachEvent("on"+e,r),function(){return t.detachEvent("on"+e,r),!0}}:void 0,Ut=[],qt=function(t){for(var i,n=t.clientX,r=t.clientY,o=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,a=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,s=Ut.length;s--;){if(i=Ut[s],M&&t.touches){for(var l,c=t.touches.length;c--;)if((l=t.touches[c]).identifier==i.el._drag.id){n=l.clientX,r=l.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var h,u=i.el.node,d=u.nextSibling,p=u.parentNode,f=u.style.display;k.win.opera&&p.removeChild(u),u.style.display="none",h=i.el.paper.getElementByPoint(n,r),u.style.display=f,k.win.opera&&(d?p.insertBefore(u,d):p.appendChild(u)),h&&e("raphael.drag.over."+i.el.id,i.el,h),n+=a,r+=o,e("raphael.drag.move."+i.el.id,i.move_scope||i.el,n-i.el._drag.x,r-i.el._drag.y,n,r,t)}},$t=function(t){i.unmousemove(qt).unmouseup($t);for(var n,r=Ut.length;r--;)(n=Ut[r]).el._drag={},e("raphael.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,t);Ut=[]},Kt=i.el={},Zt=j.length;Zt--;)!function(t){i[t]=Kt[t]=function(e,n){return i.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Gt(this.shape||this.node||k.doc,t,e,n||this)})),this},i["un"+t]=Kt["un"+t]=function(e){for(var n=this.events||[],r=n.length;r--;)n[r].name!=t||!i.is(e,"undefined")&&n[r].f!=e||(n[r].unbind(),n.splice(r,1),!n.length&&delete this.events);return this}}(j[Zt]);Kt.data=function(t,n){var r=ct[this.id]=ct[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(i.is(t,"object")){for(var o in t)t[P](o)&&this.data(o,t[o]);return this}return e("raphael.data.get."+this.id,this,r[t],t),r[t]}return r[t]=n,e("raphael.data.set."+this.id,this,n,t),this},Kt.removeData=function(t){return null==t?ct[this.id]={}:ct[this.id]&&delete ct[this.id][t],this},Kt.getData=function(){return n(ct[this.id]||{})},Kt.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},Kt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Jt=[];Kt.drag=function(t,n,r,o,a,s){function l(l){(l.originalEvent||l).preventDefault();var c=l.clientX,h=l.clientY,u=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,d=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;if(this._drag.id=l.identifier,M&&l.touches)for(var p,f=l.touches.length;f--;)if(p=l.touches[f],this._drag.id=p.identifier,p.identifier==this._drag.id){c=p.clientX,h=p.clientY;break}this._drag.x=c+d,this._drag.y=h+u,!Ut.length&&i.mousemove(qt).mouseup($t),Ut.push({el:this,move_scope:o,start_scope:a,end_scope:s}),n&&e.on("raphael.drag.start."+this.id,n),t&&e.on("raphael.drag.move."+this.id,t),r&&e.on("raphael.drag.end."+this.id,r),e("raphael.drag.start."+this.id,a||o||this,l.clientX+d,l.clientY+u,l)}return this._drag={},Jt.push({el:this,start:l}),this.mousedown(l),this},Kt.onDragOver=function(t){t?e.on("raphael.drag.over."+this.id,t):e.unbind("raphael.drag.over."+this.id)},Kt.undrag=function(){for(var t=Jt.length;t--;)Jt[t].el==this&&(this.unmousedown(Jt[t].start),Jt.splice(t,1),e.unbind("raphael.drag.*."+this.id));!Jt.length&&i.unmousemove(qt).unmouseup($t),Ut=[]},x.circle=function(t,e,n){var r=i._engine.circle(this,t||0,e||0,n||0);return this.__set__&&this.__set__.push(r),r},x.rect=function(t,e,n,r,o){var a=i._engine.rect(this,t||0,e||0,n||0,r||0,o||0);return this.__set__&&this.__set__.push(a),a},x.ellipse=function(t,e,n,r){var o=i._engine.ellipse(this,t||0,e||0,n||0,r||0);return this.__set__&&this.__set__.push(o),o},x.path=function(t){t&&!i.is(t,Y)&&!i.is(t[0],G)&&(t+=E);var e=i._engine.path(i.format[A](i,arguments),this);return this.__set__&&this.__set__.push(e),e},x.image=function(t,e,n,r,o){var a=i._engine.image(this,t||"about:blank",e||0,n||0,r||0,o||0);return this.__set__&&this.__set__.push(a),a},x.text=function(t,e,n){var r=i._engine.text(this,t||0,e||0,D(n));return this.__set__&&this.__set__.push(r),r},x.set=function(t){!i.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new ce(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},x.setStart=function(t){this.__set__=t||this.set()},x.setFinish=function(){var t=this.__set__;return delete this.__set__,t},x.setSize=function(t,e){return i._engine.setSize.call(this,t,e)},x.setViewBox=function(t,e,n,r,o){return i._engine.setViewBox.call(this,t,e,n,r,o)},x.top=x.bottom=null,x.raphael=i;x.getElementByPoint=function(t,e){var i=this,n=i.canvas,r=k.doc.elementFromPoint(t,e);if(k.win.opera&&"svg"==r.tagName){var o=function(t){var e=t.getBoundingClientRect(),i=t.ownerDocument,n=i.body,r=i.documentElement,o=r.clientTop||n.clientTop||0,a=r.clientLeft||n.clientLeft||0;return{y:e.top+(k.win.pageYOffset||r.scrollTop||n.scrollTop)-o,x:e.left+(k.win.pageXOffset||r.scrollLeft||n.scrollLeft)-a}}(n),a=n.createSVGRect();a.x=t-o.x,a.y=e-o.y,a.width=a.height=1;var s=n.getIntersectionList(a,null);s.length&&(r=s[s.length-1])}if(!r)return null;for(;r.parentNode&&r!=n.parentNode&&!r.raphael;)r=r.parentNode;return r==i.canvas.parentNode&&(r=n),r&&r.raphael?i.getById(r.raphaelid):null},x.getElementsByBBox=function(t){var e=this.set();return this.forEach((function(n){i.isBBoxIntersect(n.getBBox(),t)&&e.push(n)})),e},x.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},x.forEach=function(t,e){for(var i=this.bottom;i;){if(!1===t.call(e,i))return this;i=i.next}return this},x.getElementsByPoint=function(t,e){var i=this.set();return this.forEach((function(n){n.isPointInside(t,e)&&i.push(n)})),i},Kt.isPointInside=function(t,e){var n=this.realPath=ft[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=i.transformPath(n,this.attr("transform"))),i.isPointInsidePath(n,t,e)},Kt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?((e.dirty||!e.bboxwt)&&(this.realPath=ft[this.type](this),e.bboxwt=kt(this.realPath),e.bboxwt.toString=f,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&((e.dirty||!this.realPath)&&(e.bboxwt=0,this.realPath=ft[this.type](this)),e.bbox=kt(gt(this.realPath,this.matrix)),e.bbox.toString=f,e.dirty=e.dirtyT=0),e.bbox)},Kt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},Kt.glow=function(t){if("text"==this.type)return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:t.opacity||.5,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,r=n.set(),o=this.realPath||ft[this.type](this);o=this.matrix?gt(o,this.matrix):o;for(var a=1;i+1>a;a++)r.push(n.path(o).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*a).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var Qt=function(t,e,n,r,o,a,s,l,h){return null==h?c(t,e,n,r,o,a,s,l):i.findDotsAtSegment(t,e,n,r,o,a,s,l,function(t,e,i,n,r,o,a,s,l){if(!(0>l||c(t,e,i,n,r,o,a,s)<l)){var h,u=.5,d=1-u;for(h=c(t,e,i,n,r,o,a,s,d);B(h-l)>.01;)h=c(t,e,i,n,r,o,a,s,d+=(l>h?1:-1)*(u/=2));return d}}(t,e,n,r,o,a,s,l,h))},te=function(t,e){return function(n,r,o){for(var a,s,l,c,h,u="",d={},p=0,f=0,g=(n=Lt(n)).length;g>f;f++){if("M"==(l=n[f])[0])a=+l[1],s=+l[2];else{if(p+(c=Qt(a,s,l[1],l[2],l[3],l[4],l[5],l[6]))>r){if(e&&!d.start){if(u+=["C"+(h=Qt(a,s,l[1],l[2],l[3],l[4],l[5],l[6],r-p)).start.x,h.start.y,h.m.x,h.m.y,h.x,h.y],o)return u;d.start=u,u=["M"+h.x,h.y+"C"+h.n.x,h.n.y,h.end.x,h.end.y,l[5],l[6]].join(),p+=c,a=+l[5],s=+l[6];continue}if(!t&&!e)return{x:(h=Qt(a,s,l[1],l[2],l[3],l[4],l[5],l[6],r-p)).x,y:h.y,alpha:h.alpha}}p+=c,a=+l[5],s=+l[6]}u+=l.shift()+l}return d.end=u,(h=t?p:e?d:i.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(h={x:h.x,y:h.y,alpha:h.alpha}),h}},ee=te(1),ie=te(),ne=te(0,1);i.getTotalLength=ee,i.getPointAtLength=ie,i.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return ne(t,e).end;var n=ne(t,i,1);return e?ne(n,e).end:n},Kt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Kt.getPointAtLength=function(t){var e=this.getPath();if(e)return ie(e,t)},Kt.getPath=function(){var t,e=i._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return e&&(t=e(this)),t},Kt.getSubpath=function(t,e){var n=this.getPath();if(n)return i.getSubpath(n,t,e)};var re=i.easing_formulas={linear:function(t){return t},"<":function(t){return H(t,1.7)},">":function(t){return H(t,.48)},"<>":function(t){var e=.48-t/1.04,i=R.sqrt(.1734+e*e),n=i-e,r=-i-e,o=H(B(n),1/3)*(0>n?-1:1)+H(B(r),1/3)*(0>r?-1:1)+.5;return 3*(1-o)*o*o+o*o*o},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:H(2,-10*t)*R.sin(2*(t-.075)*W/.3)+1},bounce:function(t){var e,i=7.5625,n=2.75;return 1/n>t?e=i*t*t:2/n>t?e=i*(t-=1.5/n)*t+.75:2.5/n>t?e=i*(t-=2.25/n)*t+.9375:e=i*(t-=2.625/n)*t+.984375,e}};re.easeIn=re["ease-in"]=re["<"],re.easeOut=re["ease-out"]=re[">"],re.easeInOut=re["ease-in-out"]=re["<>"],re["back-in"]=re.backIn,re["back-out"]=re.backOut;var oe=[],ae=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var t=+new Date,n=0;n<oe.length;n++){var r=oe[n];if(!r.el.removed&&!r.paused){var o,a,s=t-r.start,l=r.ms,c=r.easing,h=r.from,u=r.diff,d=r.to,p=(r.t,r.el),f={},g={};if(r.initstatus?(s=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*l,r.status=r.initstatus,delete r.initstatus,r.stop&&oe.splice(n--,1)):r.status=(r.prev+(r.percent-r.prev)*(s/l))/r.anim.top,!(0>s))if(l>s){var m=c(s/l);for(var v in h)if(h[P](v)){switch(it[v]){case X:o=+h[v]+m*l*u[v];break;case"colour":o="rgb("+[le(Z(h[v].r+m*l*u[v].r)),le(Z(h[v].g+m*l*u[v].g)),le(Z(h[v].b+m*l*u[v].b))].join(",")+")";break;case"path":o=[];for(var b=0,x=h[v].length;x>b;b++){o[b]=[h[v][b][0]];for(var w=1,_=h[v][b].length;_>w;w++)o[b][w]=+h[v][b][w]+m*l*u[v][b][w];o[b]=o[b].join(I)}o=o.join(I);break;case"transform":if(u[v].real)for(o=[],b=0,x=h[v].length;x>b;b++)for(o[b]=[h[v][b][0]],w=1,_=h[v][b].length;_>w;w++)o[b][w]=h[v][b][w]+m*l*u[v][b][w];else{var S=function(t){return+h[v][t]+m*l*u[v][t]};o=[["m",S(0),S(1),S(2),S(3),S(4),S(5)]]}break;case"csv":if("clip-rect"==v)for(o=[],b=4;b--;)o[b]=+h[v][b]+m*l*u[v][b];break;default:var k=[][O](h[v]);for(o=[],b=p.paper.customAttributes[v].length;b--;)o[b]=+k[b]+m*l*u[v][b]}f[v]=o}p.attr(f),function(t,i,n){setTimeout((function(){e("raphael.anim.frame."+t,i,n)}))}(p.id,p,r.anim)}else{if(function(t,n,r){setTimeout((function(){e("raphael.anim.frame."+n.id,n,r),e("raphael.anim.finish."+n.id,n,r),i.is(t,"function")&&t.call(n)}))}(r.callback,p,r.anim),p.attr(d),oe.splice(n--,1),r.repeat>1&&!r.next){for(a in d)d[P](a)&&(g[a]=r.totalOrigin[a]);r.el.attr(g),y(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&y(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}i.svg&&p&&p.paper&&p.paper.safari(),oe.length&&ae(se)},le=function(t){return t>255?255:0>t?0:t};Kt.animateWith=function(t,e,n,r,o,a){var s=this;if(s.removed)return a&&a.call(s),s;var l=n instanceof m?n:i.animation(n,r,o,a);y(l,s,l.percents[0],null,s.attr());for(var c=0,h=oe.length;h>c;c++)if(oe[c].anim==e&&oe[c].el==t){oe[h-1].start=oe[c].start;break}return s},Kt.onAnimation=function(t){return t?e.on("raphael.anim.frame."+this.id,t):e.unbind("raphael.anim.frame."+this.id),this},m.prototype.delay=function(t){var e=new m(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},m.prototype.repeat=function(t){var e=new m(this.anim,this.ms);return e.del=this.del,e.times=R.floor(V(t,0))||1,e},i.animation=function(t,e,n,r){if(t instanceof m)return t;(i.is(n,"function")||!n)&&(r=r||n||null,n=null),t=Object(t),e=+e||0;var o,a,s={};for(a in t)t[P](a)&&J(a)!=a&&J(a)+"%"!=a&&(o=!0,s[a]=t[a]);return o?(n&&(s.easing=n),r&&(s.callback=r),new m({100:s},e)):new m(t,e)},Kt.animate=function(t,e,n,r){var o=this;if(o.removed)return r&&r.call(o),o;var a=t instanceof m?t:i.animation(t,e,n,r);return y(a,o,a.percents[0],null,o.attr()),o},Kt.setTime=function(t,e){return t&&null!=e&&this.status(t,z(e,t.ms)/t.ms),this},Kt.status=function(t,e){var i,n,r=[],o=0;if(null!=e)return y(t,this,-1,z(e,1)),this;for(i=oe.length;i>o;o++)if((n=oe[o]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;r.push({anim:n.anim,status:n.status})}return t?0:r},Kt.pause=function(t){for(var i=0;i<oe.length;i++)oe[i].el.id!=this.id||t&&oe[i].anim!=t||!1!==e("raphael.anim.pause."+this.id,this,oe[i].anim)&&(oe[i].paused=!0);return this},Kt.resume=function(t){for(var i=0;i<oe.length;i++)if(oe[i].el.id==this.id&&(!t||oe[i].anim==t)){var n=oe[i];!1!==e("raphael.anim.resume."+this.id,this,n.anim)&&(delete n.paused,this.status(n.anim,n.status))}return this},Kt.stop=function(t){for(var i=0;i<oe.length;i++)oe[i].el.id!=this.id||t&&oe[i].anim!=t||!1!==e("raphael.anim.stop."+this.id,this,oe[i].anim)&&oe.splice(i--,1);return this},e.on("raphael.remove",v),e.on("raphael.clear",v),Kt.toString=function(){return"Raphaël’s object"};var ce=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;i>e;e++)!t[e]||t[e].constructor!=Kt.constructor&&t[e].constructor!=ce||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},he=ce.prototype;for(var ue in he.push=function(){for(var t,e,i=0,n=arguments.length;n>i;i++)!(t=arguments[i])||t.constructor!=Kt.constructor&&t.constructor!=ce||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},he.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},he.forEach=function(t,e){for(var i=0,n=this.items.length;n>i;i++)if(!1===t.call(e,this.items[i],i))return this;return this},Kt)Kt[P](ue)&&(he[ue]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t][A](i,e)}))}}(ue));return he.attr=function(t,e){if(t&&i.is(t,G)&&i.is(t[0],"object"))for(var n=0,r=t.length;r>n;n++)this.items[n].attr(t[n]);else for(var o=0,a=this.items.length;a>o;o++)this.items[o].attr(t,e);return this},he.clear=function(){for(;this.length;)this.pop()},he.splice=function(t,e){t=0>t?V(this.length+t,0):t,e=V(0,z(this.length-t,e));var i,n=[],r=[],o=[];for(i=2;i<arguments.length;i++)o.push(arguments[i]);for(i=0;e>i;i++)r.push(this[t+i]);for(;i<this.length-t;i++)n.push(this[t+i]);var a=o.length;for(i=0;i<a+n.length;i++)this.items[t+i]=this[t+i]=a>i?o[i]:n[i-a];for(i=this.items.length=this.length-=e-a;this[i];)delete this[i++];return new ce(r)},he.exclude=function(t){for(var e=0,i=this.length;i>e;e++)if(this[e]==t)return this.splice(e,1),!0},he.animate=function(t,e,n,r){(i.is(n,"function")||!n)&&(r=n||null);var o,a,s=this.items.length,l=s,c=this;if(!s)return this;r&&(a=function(){!--s&&r.call(c)}),n=i.is(n,Y)?n:a;var h=i.animation(t,e,n,a);for(o=this.items[--l].animate(h);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(o,h,h),this.items[l]&&!this.items[l].removed||s--;return this},he.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},he.getBBox=function(){for(var t=[],e=[],i=[],n=[],r=this.items.length;r--;)if(!this.items[r].removed){var o=this.items[r].getBBox();t.push(o.x),e.push(o.y),i.push(o.x+o.width),n.push(o.y+o.height)}return{x:t=z[A](0,t),y:e=z[A](0,e),x2:i=V[A](0,i),y2:n=V[A](0,n),width:i-t,height:n-e}},he.clone=function(t){t=this.paper.set();for(var e=0,i=this.items.length;i>e;e++)t.push(this.items[e].clone());return t},he.toString=function(){return"Raphaël‘s set"},he.glow=function(t){var e=this.paper.set();return this.forEach((function(i){var n=i.glow(t);null!=n&&n.forEach((function(t){e.push(t)}))})),e},he.isPointInside=function(t,e){var i=!1;return this.forEach((function(n){return n.isPointInside(t,e)?(console.log("runned"),i=!0,!1):void 0})),i},i.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},i=t.face["font-family"];for(var n in t.face)t.face[P](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg)for(var r in e.face["units-per-em"]=Q(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[P](r)){var o=t.glyphs[r];if(e.glyphs[r]={w:o.w,k:{},d:o.d&&"M"+o.d.replace(/[mlcxtrv]/g,(function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"}))+"z"},o.k)for(var a in o.k)o[P](a)&&(e.glyphs[r].k[a]=o.k[a])}return t},x.getFont=function(t,e,n,r){if(r=r||"normal",n=n||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,i.fonts){var o,a=i.fonts[t];if(!a){var s=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,E)+"(\\s|$)","i");for(var l in i.fonts)if(i.fonts[P](l)&&s.test(l)){a=i.fonts[l];break}}if(a)for(var c=0,h=a.length;h>c&&((o=a[c]).face["font-weight"]!=e||o.face["font-style"]!=n&&o.face["font-style"]||o.face["font-stretch"]!=r);c++);return o}},x.print=function(t,e,n,r,o,a,s,l){a=a||"middle",s=V(z(s||0,1),-1),l=V(z(l||1,3),1);var c,h=D(n)[L](E),u=0,d=0,p=E;if(i.is(r,"string")&&(r=this.getFont(r)),r){c=(o||16)/r.face["units-per-em"];for(var f=r.face.bbox[L](w),g=+f[0],m=f[3]-f[1],y=0,v=+f[1]+("baseline"==a?m+ +r.face.descent:m/2),b=0,x=h.length;x>b;b++){if("\n"==h[b])u=0,S=0,d=0,y+=m*l;else{var _=d&&r.glyphs[h[b-1]]||{},S=r.glyphs[h[b]];u+=d?(_.w||r.w)+(_.k&&_.k[h[b]]||0)+r.w*s:0,d=1}S&&S.d&&(p+=i.transformPath(S.d,["t",u*c,y*c,"s",c,c,g,v,"t",(t-g)/c,(e-v)/c]))}}return this.path(p).attr({fill:"#000",stroke:"none"})},x.add=function(t){if(i.is(t,"array"))for(var e,n=this.set(),r=0,o=t.length;o>r;r++)e=t[r]||{},_[P](e.type)&&n.push(this[e.type]().attr(e));return n},i.format=function(t,e){var n=i.is(e,G)?[0][O](e):arguments;return t&&i.is(t,Y)&&n.length-1&&(t=t.replace(S,(function(t,e){return null==n[++e]?E:n[e]}))),t||E},i.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(t,i,n){var r=n;return i.replace(e,(function(t,e,i,n,o){e=e||n,r&&(e in r&&(r=r[e]),"function"==typeof r&&o&&(r=r()))})),r=(null==r||r==n?t:r)+""};return function(e,n){return String(e).replace(t,(function(t,e){return i(t,e,n)}))}}(),i.ninja=function(){return C.was?k.win.Raphael=C.is:delete Raphael,i},i.st=he,function(t,e,n){null==t.readyState&&t.addEventListener&&(t.addEventListener(e,n=function(){t.removeEventListener(e,n,!1),t.readyState="complete"},!1),t.readyState="loading"),function e(){/in/.test(t.readyState)?setTimeout(e,9):i.eve("raphael.DOMload")}()}(document,"DOMContentLoaded"),e.on("raphael.DOMload",(function(){b=!0})),function(){if(i.svg){var t="hasOwnProperty",e=String,n=parseFloat,r=parseInt,o=Math,a=o.max,s=o.abs,l=o.pow,c=/[, ]+/,h=i.eve,u="",d=" ",p="http://www.w3.org/1999/xlink",f={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};i.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var m=function(n,r){if(r)for(var o in"string"==typeof n&&(n=m(n)),r)r[t](o)&&("xlink:"==o.substring(0,6)?n.setAttributeNS(p,o.substring(6),e(r[o])):n.setAttribute(o,e(r[o])));else(n=i._g.doc.createElementNS("http://www.w3.org/2000/svg",n)).style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},y=function(t,r){var c="linear",h=t.id+r,d=.5,p=.5,f=t.node,g=t.paper,y=f.style,v=i._g.doc.getElementById(h);if(!v){if(r=(r=e(r).replace(i._radial_gradient,(function(t,e,i){if(c="radial",e&&i){d=n(e);var r=2*((p=n(i))>.5)-1;l(d-.5,2)+l(p-.5,2)>.25&&(p=o.sqrt(.25-l(d-.5,2))*r+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*r)}return u}))).split(/\s*\-\s*/),"linear"==c){var b=r.shift();if(b=-n(b),isNaN(b))return null;var x=[0,0,o.cos(i.rad(b)),o.sin(i.rad(b))],w=1/(a(s(x[2]),s(x[3]))||1);x[2]*=w,x[3]*=w,x[2]<0&&(x[0]=-x[2],x[2]=0),x[3]<0&&(x[1]=-x[3],x[3]=0)}var _=i._parseDots(r);if(!_)return null;if(h=h.replace(/[\(\)\s,\xb0#]/g,"_"),t.gradient&&h!=t.gradient.id&&(g.defs.removeChild(t.gradient),delete t.gradient),!t.gradient){v=m(c+"Gradient",{id:h}),t.gradient=v,m(v,"radial"==c?{fx:d,fy:p}:{x1:x[0],y1:x[1],x2:x[2],y2:x[3],gradientTransform:t.matrix.invert()}),g.defs.appendChild(v);for(var S=0,P=_.length;P>S;S++)v.appendChild(m("stop",{offset:_[S].offset?_[S].offset:S?"100%":"0%","stop-color":_[S].color||"#fff"}))}}return m(f,{fill:"url(#"+h+")",opacity:1,"fill-opacity":1}),y.fill=u,y.opacity=1,y.fillOpacity=1,1},v=function(t){var e=t.getBBox(1);m(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},b=function(n,r,o){if("path"==n.type){for(var a,s,l,c,h,d=e(r).toLowerCase().split("-"),p=n.paper,y=o?"end":"start",v=n.node,b=n.attrs,x=b["stroke-width"],w=d.length,_="classic",S=3,P=3,k=5;w--;)switch(d[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":_=d[w];break;case"wide":P=5;break;case"narrow":P=2;break;case"long":S=5;break;case"short":S=2}if("open"==_?(S+=2,P+=2,k+=2,l=1,c=o?4:1,h={fill:"none",stroke:b.stroke}):(c=l=S/2,h={fill:b.stroke,stroke:"none"}),n._.arrows?o?(n._.arrows.endPath&&g[n._.arrows.endPath]--,n._.arrows.endMarker&&g[n._.arrows.endMarker]--):(n._.arrows.startPath&&g[n._.arrows.startPath]--,n._.arrows.startMarker&&g[n._.arrows.startMarker]--):n._.arrows={},"none"!=_){var C="raphael-marker-"+_,T="raphael-marker-"+y+_+S+P;i._g.doc.getElementById(C)?g[C]++:(p.defs.appendChild(m(m("path"),{"stroke-linecap":"round",d:f[_],id:C})),g[C]=1);var A,O=i._g.doc.getElementById(T);O?(g[T]++,A=O.getElementsByTagName("use")[0]):(O=m(m("marker"),{id:T,markerHeight:P,markerWidth:S,orient:"auto",refX:c,refY:P/2}),A=m(m("use"),{"xlink:href":"#"+C,transform:(o?"rotate(180 "+S/2+" "+P/2+") ":u)+"scale("+S/k+","+P/k+")","stroke-width":(1/((S/k+P/k)/2)).toFixed(4)}),O.appendChild(A),p.defs.appendChild(O),g[T]=1),m(A,h);var M=l*("diamond"!=_&&"oval"!=_);o?(a=n._.arrows.startdx*x||0,s=i.getTotalLength(b.path)-M*x):(a=M*x,s=i.getTotalLength(b.path)-(n._.arrows.enddx*x||0)),(h={})["marker-"+y]="url(#"+T+")",(s||a)&&(h.d=i.getSubpath(b.path,a,s)),m(v,h),n._.arrows[y+"Path"]=C,n._.arrows[y+"Marker"]=T,n._.arrows[y+"dx"]=M,n._.arrows[y+"Type"]=_,n._.arrows[y+"String"]=r}else o?(a=n._.arrows.startdx*x||0,s=i.getTotalLength(b.path)-a):(a=0,s=i.getTotalLength(b.path)-(n._.arrows.enddx*x||0)),n._.arrows[y+"Path"]&&m(v,{d:i.getSubpath(b.path,a,s)}),delete n._.arrows[y+"Path"],delete n._.arrows[y+"Marker"],delete n._.arrows[y+"dx"],delete n._.arrows[y+"Type"],delete n._.arrows[y+"String"];for(h in g)if(g[t](h)&&!g[h]){var E=i._g.doc.getElementById(h);E&&E.parentNode.removeChild(E)}}},x={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},w=function(t,i,n){if(i=x[e(i).toLowerCase()]){for(var r=t.attrs["stroke-width"]||"1",o={round:r,square:r,butt:0}[t.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,a=[],s=i.length;s--;)a[s]=i[s]*r+(s%2?1:-1)*o;m(t.node,{"stroke-dasharray":a.join(",")})}},_=function(n,o){var l=n.node,h=n.attrs,d=l.style.visibility;for(var f in l.style.visibility="hidden",o)if(o[t](f)){if(!i._availableAttrs[t](f))continue;var g=o[f];switch(h[f]=g,f){case"blur":n.blur(g);break;case"href":case"title":var x=m("title"),_=i._g.doc.createTextNode(g);x.appendChild(_),l.appendChild(x);break;case"target":var P=l.parentNode;if("a"!=P.tagName.toLowerCase()){x=m("a");P.insertBefore(x,l),x.appendChild(l),P=x}"target"==f?P.setAttributeNS(p,"show","blank"==g?"new":g):P.setAttributeNS(p,f,g);break;case"cursor":l.style.cursor=g;break;case"transform":n.transform(g);break;case"arrow-start":b(n,g);break;case"arrow-end":b(n,g,1);break;case"clip-rect":var k=e(g).split(c);if(4==k.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var C=m("clipPath"),T=m("rect");C.id=i.createUUID(),m(T,{x:k[0],y:k[1],width:k[2],height:k[3]}),C.appendChild(T),n.paper.defs.appendChild(C),m(l,{"clip-path":"url(#"+C.id+")"}),n.clip=T}if(!g){var A=l.getAttribute("clip-path");if(A){var O=i._g.doc.getElementById(A.replace(/(^url\(#|\)$)/g,u));O&&O.parentNode.removeChild(O),m(l,{"clip-path":u}),delete n.clip}}break;case"path":"path"==n.type&&(m(l,{d:g?h.path=i._pathToAbsolute(g):"M0,0"}),n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1)));break;case"width":if(l.setAttribute(f,g),n._.dirty=1,!h.fx)break;f="x",g=h.x;case"x":h.fx&&(g=-h.x-(h.width||0));case"rx":if("rx"==f&&"rect"==n.type)break;case"cx":l.setAttribute(f,g),n.pattern&&v(n),n._.dirty=1;break;case"height":if(l.setAttribute(f,g),n._.dirty=1,!h.fy)break;f="y",g=h.y;case"y":h.fy&&(g=-h.y-(h.height||0));case"ry":if("ry"==f&&"rect"==n.type)break;case"cy":l.setAttribute(f,g),n.pattern&&v(n),n._.dirty=1;break;case"r":"rect"==n.type?m(l,{rx:g,ry:g}):l.setAttribute(f,g),n._.dirty=1;break;case"src":"image"==n.type&&l.setAttributeNS(p,"href",g);break;case"stroke-width":(1!=n._.sx||1!=n._.sy)&&(g/=a(s(n._.sx),s(n._.sy))||1),n.paper._vbSize&&(g*=n.paper._vbSize),l.setAttribute(f,g),h["stroke-dasharray"]&&w(n,h["stroke-dasharray"],o),n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1));break;case"stroke-dasharray":w(n,g,o);break;case"fill":var M=e(g).match(i._ISURL);if(M){C=m("pattern");var E=m("image");C.id=i.createUUID(),m(C,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),m(E,{x:0,y:0,"xlink:href":M[1]}),C.appendChild(E),function(t){i._preload(M[1],(function(){var e=this.offsetWidth,i=this.offsetHeight;m(t,{width:e,height:i}),m(E,{width:e,height:i}),n.paper.safari()}))}(C),n.paper.defs.appendChild(C),m(l,{fill:"url(#"+C.id+")"}),n.pattern=C,n.pattern&&v(n);break}var I=i.getRGB(g);if(I.error){if(("circle"==n.type||"ellipse"==n.type||"r"!=e(g).charAt())&&y(n,g)){if("opacity"in h||"fill-opacity"in h){var D=i._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u));if(D){var L=D.getElementsByTagName("stop");m(L[L.length-1],{"stop-opacity":("opacity"in h?h.opacity:1)*("fill-opacity"in h?h["fill-opacity"]:1)})}}h.gradient=g,h.fill="none";break}}else delete o.gradient,delete h.gradient,!i.is(h.opacity,"undefined")&&i.is(o.opacity,"undefined")&&m(l,{opacity:h.opacity}),!i.is(h["fill-opacity"],"undefined")&&i.is(o["fill-opacity"],"undefined")&&m(l,{"fill-opacity":h["fill-opacity"]});I[t]("opacity")&&m(l,{"fill-opacity":I.opacity>1?I.opacity/100:I.opacity});case"stroke":I=i.getRGB(g),l.setAttribute(f,I.hex),"stroke"==f&&I[t]("opacity")&&m(l,{"stroke-opacity":I.opacity>1?I.opacity/100:I.opacity}),"stroke"==f&&n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=e(g).charAt())&&y(n,g);break;case"opacity":h.gradient&&!h[t]("stroke-opacity")&&m(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(h.gradient){(D=i._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u)))&&(L=D.getElementsByTagName("stop"),m(L[L.length-1],{"stop-opacity":g}));break}default:"font-size"==f&&(g=r(g,10)+"px");var j=f.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()}));l.style[j]=g,n._.dirty=1,l.setAttribute(f,g)}}S(n,o),l.style.visibility=d},S=function(n,o){if("text"==n.type&&(o[t]("text")||o[t]("font")||o[t]("font-size")||o[t]("x")||o[t]("y"))){var a=n.attrs,s=n.node,l=s.firstChild?r(i._g.doc.defaultView.getComputedStyle(s.firstChild,u).getPropertyValue("font-size"),10):10;if(o[t]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var c,h=e(o.text).split("\n"),d=[],p=0,f=h.length;f>p;p++)c=m("tspan"),p&&m(c,{dy:1.2*l,x:a.x}),c.appendChild(i._g.doc.createTextNode(h[p])),s.appendChild(c),d[p]=c}else for(p=0,f=(d=s.getElementsByTagName("tspan")).length;f>p;p++)p?m(d[p],{dy:1.2*l,x:a.x}):m(d[0],{dy:0});m(s,{x:a.x,y:a.y}),n._.dirty=1;var g=n._getBBox(),y=a.y-(g.y+g.height/2);y&&i.is(y,"finite")&&m(d[0],{dy:y})}},P=function(t,e){this[0]=this.node=t,t.raphael=!0,this.id=i._oid++,t.raphaelid=this.id,this.matrix=i.matrix(),this.realPath=null,this.paper=e,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!e.bottom&&(e.bottom=this),this.prev=e.top,e.top&&(e.top.next=this),e.top=this,this.next=null},k=i.el;P.prototype=k,k.constructor=P,i._engine.path=function(t,e){var i=m("path");e.canvas&&e.canvas.appendChild(i);var n=new P(i,e);return n.type="path",_(n,{fill:"none",stroke:"#000",path:t}),n},k.rotate=function(t,i,r){if(this.removed)return this;if((t=e(t).split(c)).length-1&&(i=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(i=r),null==i||null==r){var o=this.getBBox(1);i=o.x+o.width/2,r=o.y+o.height/2}return this.transform(this._.transform.concat([["r",t,i,r]])),this},k.scale=function(t,i,r,o){if(this.removed)return this;if((t=e(t).split(c)).length-1&&(i=n(t[1]),r=n(t[2]),o=n(t[3])),t=n(t[0]),null==i&&(i=t),null==o&&(r=o),null==r||null==o)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",t,i,r,o]])),this},k.translate=function(t,i){return this.removed||((t=e(t).split(c)).length-1&&(i=n(t[1])),t=n(t[0])||0,i=+i||0,this.transform(this._.transform.concat([["t",t,i]]))),this},k.transform=function(e){var n=this._;if(null==e)return n.transform;if(i._extractTransform(this,e),this.clip&&m(this.clip,{transform:this.matrix.invert()}),this.pattern&&v(this),this.node&&m(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var r=this.attrs[t]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return this},k.hide=function(){return!this.removed&&this.paper.safari(this.node.style.display="none"),this},k.show=function(){return!this.removed&&this.paper.safari(this.node.style.display=""),this},k.remove=function(){if(!this.removed&&this.node.parentNode){var t=this.paper;for(var e in t.__set__&&t.__set__.exclude(this),h.unbind("raphael.*.*."+this.id),this.gradient&&t.defs.removeChild(this.gradient),i._tear(this,t),"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.removeChild(this.node.parentNode):this.node.parentNode.removeChild(this.node),this)this[e]="function"==typeof this[e]?i._removedFactory(e):null;this.removed=!0}},k._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e={};try{e=this.node.getBBox()}catch(t){}finally{e=e||{}}return t&&this.hide(),e},k.attr=function(e,n){if(this.removed)return this;if(null==e){var r={};for(var o in this.attrs)this.attrs[t](o)&&(r[o]=this.attrs[o]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&i.is(e,"string")){if("fill"==e&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==e)return this._.transform;for(var a=e.split(c),s={},l=0,u=a.length;u>l;l++)s[e=a[l]]=e in this.attrs?this.attrs[e]:i.is(this.paper.customAttributes[e],"function")?this.paper.customAttributes[e].def:i._availableAttrs[e];return u-1?s:s[a[0]]}if(null==n&&i.is(e,"array")){for(s={},l=0,u=e.length;u>l;l++)s[e[l]]=this.attr(e[l]);return s}if(null!=n){var d={};d[e]=n}else null!=e&&i.is(e,"object")&&(d=e);for(var p in d)h("raphael.attr."+p+"."+this.id,this,d[p]);for(p in this.paper.customAttributes)if(this.paper.customAttributes[t](p)&&d[t](p)&&i.is(this.paper.customAttributes[p],"function")){var f=this.paper.customAttributes[p].apply(this,[].concat(d[p]));for(var g in this.attrs[p]=d[p],f)f[t](g)&&(d[g]=f[g])}return _(this,d),this},k.toFront=function(){if(this.removed)return this;"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.appendChild(this.node.parentNode):this.node.parentNode.appendChild(this.node);var t=this.paper;return t.top!=this&&i._tofront(this,t),this},k.toBack=function(){if(this.removed)return this;var t=this.node.parentNode;return"a"==t.tagName.toLowerCase()?t.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild):t.firstChild!=this.node&&t.insertBefore(this.node,this.node.parentNode.firstChild),i._toback(this,this.paper),this.paper,this},k.insertAfter=function(t){if(this.removed)return this;var e=t.node||t[t.length-1].node;return e.nextSibling?e.parentNode.insertBefore(this.node,e.nextSibling):e.parentNode.appendChild(this.node),i._insertafter(this,t,this.paper),this},k.insertBefore=function(t){if(this.removed)return this;var e=t.node||t[0].node;return e.parentNode.insertBefore(this.node,e),i._insertbefore(this,t,this.paper),this},k.blur=function(t){var e=this;if(0!=+t){var n=m("filter"),r=m("feGaussianBlur");e.attrs.blur=t,n.id=i.createUUID(),m(r,{stdDeviation:+t||1.5}),n.appendChild(r),e.paper.defs.appendChild(n),e._blur=n,m(e.node,{filter:"url(#"+n.id+")"})}else e._blur&&(e._blur.parentNode.removeChild(e._blur),delete e._blur,delete e.attrs.blur),e.node.removeAttribute("filter");return e},i._engine.circle=function(t,e,i,n){var r=m("circle");t.canvas&&t.canvas.appendChild(r);var o=new P(r,t);return o.attrs={cx:e,cy:i,r:n,fill:"none",stroke:"#000"},o.type="circle",m(r,o.attrs),o},i._engine.rect=function(t,e,i,n,r,o){var a=m("rect");t.canvas&&t.canvas.appendChild(a);var s=new P(a,t);return s.attrs={x:e,y:i,width:n,height:r,r:o||0,rx:o||0,ry:o||0,fill:"none",stroke:"#000"},s.type="rect",m(a,s.attrs),s},i._engine.ellipse=function(t,e,i,n,r){var o=m("ellipse");t.canvas&&t.canvas.appendChild(o);var a=new P(o,t);return a.attrs={cx:e,cy:i,rx:n,ry:r,fill:"none",stroke:"#000"},a.type="ellipse",m(o,a.attrs),a},i._engine.image=function(t,e,i,n,r,o){var a=m("image");m(a,{x:i,y:n,width:r,height:o,preserveAspectRatio:"none"}),a.setAttributeNS(p,"href",e),t.canvas&&t.canvas.appendChild(a);var s=new P(a,t);return s.attrs={x:i,y:n,width:r,height:o,src:e},s.type="image",s},i._engine.text=function(t,e,n,r){var o=m("text");t.canvas&&t.canvas.appendChild(o);var a=new P(o,t);return a.attrs={x:e,y:n,"text-anchor":"middle",text:r,font:i._availableAttrs.font,stroke:"none",fill:"#000"},a.type="text",_(a,a.attrs),a},i._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},i._engine.create=function(){var t=i._getContainer.apply(0,arguments),e=t&&t.container,n=t.x,r=t.y,o=t.width,a=t.height;if(!e)throw new Error("SVG container not found.");var s,l=m("svg"),c="overflow:hidden;";return n=n||0,r=r||0,m(l,{height:a=a||342,version:1.1,width:o=o||512,xmlns:"http://www.w3.org/2000/svg"}),1==e?(l.style.cssText=c+"position:absolute;left:"+n+"px;top:"+r+"px",i._g.doc.body.appendChild(l),s=1):(l.style.cssText=c+"position:relative",e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)),(e=new i._Paper).width=o,e.height=a,e.canvas=l,e.clear(),e._left=e._top=0,s&&(e.renderfix=function(){}),e.renderfix(),e},i._engine.setViewBox=function(t,e,i,n,r){h("raphael.setViewBox",this,this._viewBox,[t,e,i,n,r]);var o,s,l=a(i/this.width,n/this.height),c=this.top,u=r?"meet":"xMinYMin";for(null==t?(this._vbSize&&(l=1),delete this._vbSize,o="0 0 "+this.width+d+this.height):(this._vbSize=l,o=t+d+e+d+i+d+n),m(this.canvas,{viewBox:o,preserveAspectRatio:u});l&&c;)s="stroke-width"in c.attrs?c.attrs["stroke-width"]:1,c.attr({"stroke-width":s}),c._.dirty=1,c._.dirtyT=1,c=c.prev;return this._viewBox=[t,e,i,n,!!r],this},i.prototype.renderfix=function(){var t,e=this.canvas,i=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(i){t=e.createSVGMatrix()}var n=-t.e%1,r=-t.f%1;(n||r)&&(n&&(this._left=(this._left+n)%1,i.left=this._left+"px"),r&&(this._top=(this._top+r)%1,i.top=this._top+"px"))},i.prototype.clear=function(){i.eve("raphael.clear",this);for(var t=this.canvas;t.firstChild;)t.removeChild(t.firstChild);this.bottom=this.top=null,(this.desc=m("desc")).appendChild(i._g.doc.createTextNode("Created with Raphaël "+i.version)),t.appendChild(this.desc),t.appendChild(this.defs=m("defs"))},i.prototype.remove=function(){for(var t in h("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?i._removedFactory(t):null};var C=i.st;for(var T in k)k[t](T)&&!C[t](T)&&(C[T]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(T))}}(),function(){if(i.vml){var t="hasOwnProperty",e=String,n=parseFloat,r=Math,o=r.round,a=r.max,s=r.min,l=r.abs,c="fill",h=/[, ]+/,u=i.eve,d=" ",p="",f={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},g=/([clmz]),?([^clmz]*)/gi,m=/ progid:\S+Blur\([^\)]+\)/g,y=/-?[^,\s-]+/g,v="position:absolute;left:0;top:0;width:1px;height:1px",b=21600,x={path:1,rect:1,image:1},w={circle:1,ellipse:1},_=function(t){var n=/[ahqstv]/gi,r=i._pathToAbsolute;if(e(t).match(n)&&(r=i._path2curve),n=/[clmz]/g,r==i._pathToAbsolute&&!e(t).match(n)){var a=e(t).replace(g,(function(t,e,i){var n=[],r="m"==e.toLowerCase(),a=f[e];return i.replace(y,(function(t){r&&2==n.length&&(a+=n+f["m"==e?"l":"L"],n=[]),n.push(o(t*b))})),a+n}));return a}var s,l,c=r(t);a=[];for(var h=0,u=c.length;u>h;h++){s=c[h],"z"==(l=c[h][0].toLowerCase())&&(l="x");for(var m=1,v=s.length;v>m;m++)l+=o(s[m]*b)+(m!=v-1?",":p);a.push(l)}return a.join(d)},S=function(t,e,n){var r=i.matrix();return r.rotate(-t,.5,.5),{dx:r.x(e,n),dy:r.y(e,n)}},P=function(t,e,i,n,r,o){var a=t._,s=t.matrix,h=a.fillpos,u=t.node,p=u.style,f=1,g="",m=b/e,y=b/i;if(p.visibility="hidden",e&&i){if(u.coordsize=l(m)+d+l(y),p.rotation=o*(0>e*i?-1:1),o){var v=S(o,n,r);n=v.dx,r=v.dy}if(0>e&&(g+="x"),0>i&&(g+=" y")&&(f=-1),p.flip=g,u.coordorigin=n*-m+d+r*-y,h||a.fillsize){var x=u.getElementsByTagName(c);x=x&&x[0],u.removeChild(x),h&&(v=S(o,s.x(h[0],h[1]),s.y(h[0],h[1])),x.position=v.dx*f+d+v.dy*f),a.fillsize&&(x.size=a.fillsize[0]*l(e)+d+a.fillsize[1]*l(i)),u.appendChild(x)}p.visibility="visible"}};i.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var k,C=function(t,i,n){for(var r=e(i).toLowerCase().split("-"),o=n?"end":"start",a=r.length,s="classic",l="medium",c="medium";a--;)switch(r[a]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=r[a];break;case"wide":case"narrow":c=r[a];break;case"long":case"short":l=r[a]}var h=t.node.getElementsByTagName("stroke")[0];h[o+"arrow"]=s,h[o+"arrowlength"]=l,h[o+"arrowwidth"]=c},T=function(r,l){r.attrs=r.attrs||{};var u=r.node,f=r.attrs,g=u.style,m=x[r.type]&&(l.x!=f.x||l.y!=f.y||l.width!=f.width||l.height!=f.height||l.cx!=f.cx||l.cy!=f.cy||l.rx!=f.rx||l.ry!=f.ry||l.r!=f.r),y=w[r.type]&&(f.cx!=l.cx||f.cy!=l.cy||f.r!=l.r||f.rx!=l.rx||f.ry!=l.ry),v=r;for(var S in l)l[t](S)&&(f[S]=l[S]);if(m&&(f.path=i._getPath[r.type](r),r._.dirty=1),l.href&&(u.href=l.href),l.title&&(u.title=l.title),l.target&&(u.target=l.target),l.cursor&&(g.cursor=l.cursor),"blur"in l&&r.blur(l.blur),(l.path&&"path"==r.type||m)&&(u.path=_(~e(f.path).toLowerCase().indexOf("r")?i._pathToAbsolute(f.path):f.path),"image"==r.type&&(r._.fillpos=[f.x,f.y],r._.fillsize=[f.width,f.height],P(r,1,1,0,0,0))),"transform"in l&&r.transform(l.transform),y){var T=+f.cx,O=+f.cy,M=+f.rx||+f.r||0,E=+f.ry||+f.r||0;u.path=i.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",o((T-M)*b),o((O-E)*b),o((T+M)*b),o((O+E)*b),o(T*b)),r._.dirty=1}if("clip-rect"in l){var I=e(l["clip-rect"]).split(h);if(4==I.length){I[2]=+I[2]+ +I[0],I[3]=+I[3]+ +I[1];var D=u.clipRect||i._g.doc.createElement("div"),L=D.style;L.clip=i.format("rect({1}px {2}px {3}px {0}px)",I),u.clipRect||(L.position="absolute",L.top=0,L.left=0,L.width=r.paper.width+"px",L.height=r.paper.height+"px",u.parentNode.insertBefore(D,u),D.appendChild(u),u.clipRect=D)}l["clip-rect"]||u.clipRect&&(u.clipRect.style.clip="auto")}if(r.textpath){var j=r.textpath.style;l.font&&(j.font=l.font),l["font-family"]&&(j.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,p)+'"'),l["font-size"]&&(j.fontSize=l["font-size"]),l["font-weight"]&&(j.fontWeight=l["font-weight"]),l["font-style"]&&(j.fontStyle=l["font-style"])}if("arrow-start"in l&&C(v,l["arrow-start"]),"arrow-end"in l&&C(v,l["arrow-end"],1),null!=l.opacity||null!=l["stroke-width"]||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var N=u.getElementsByTagName(c);if(!(N=N&&N[0])&&(N=k(c)),"image"==r.type&&l.src&&(N.src=l.src),l.fill&&(N.on=!0),(null==N.on||"none"==l.fill||null===l.fill)&&(N.on=!1),N.on&&l.fill){var F=e(l.fill).match(i._ISURL);if(F){N.parentNode==u&&u.removeChild(N),N.rotate=!0,N.src=F[1],N.type="tile";var R=r.getBBox(1);N.position=R.x+d+R.y,r._.fillpos=[R.x,R.y],i._preload(F[1],(function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]}))}else N.color=i.getRGB(l.fill).hex,N.src=p,N.type="solid",i.getRGB(l.fill).error&&(v.type in{circle:1,ellipse:1}||"r"!=e(l.fill).charAt())&&A(v,l.fill,N)&&(f.fill="none",f.gradient=l.fill,N.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var V=((+f["fill-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+i.getRGB(l.fill).o+1||2)-1);V=s(a(V,0),1),N.opacity=V,N.src&&(N.color="none")}u.appendChild(N);var z=u.getElementsByTagName("stroke")&&u.getElementsByTagName("stroke")[0],B=!1;!z&&(B=z=k("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(z.on=!0),("none"==l.stroke||null===l.stroke||null==z.on||0==l.stroke||0==l["stroke-width"])&&(z.on=!1);var H=i.getRGB(l.stroke);z.on&&l.stroke&&(z.color=H.hex),V=((+f["stroke-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+H.o+1||2)-1);var W=.75*(n(l["stroke-width"])||1);if(V=s(a(V,0),1),null==l["stroke-width"]&&(W=f["stroke-width"]),l["stroke-width"]&&(z.weight=W),W&&1>W&&(V*=W)&&(z.weight=1),z.opacity=V,l["stroke-linejoin"]&&(z.joinstyle=l["stroke-linejoin"]||"miter"),z.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(z.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),l["stroke-dasharray"]){var X={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};z.dashstyle=X[t](l["stroke-dasharray"])?X[l["stroke-dasharray"]]:p}B&&u.appendChild(z)}if("text"==v.type){v.paper.canvas.style.display=p;var Y=v.paper.span,G=f.font&&f.font.match(/\d+(?:\.\d*)?(?=px)/);g=Y.style,f.font&&(g.font=f.font),f["font-family"]&&(g.fontFamily=f["font-family"]),f["font-weight"]&&(g.fontWeight=f["font-weight"]),f["font-style"]&&(g.fontStyle=f["font-style"]),G=n(f["font-size"]||G&&G[0])||10,g.fontSize=100*G+"px",v.textpath.string&&(Y.innerHTML=e(v.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var U=Y.getBoundingClientRect();v.W=f.w=(U.right-U.left)/100,v.H=f.h=(U.bottom-U.top)/100,v.X=f.x,v.Y=f.y+v.H/2,("x"in l||"y"in l)&&(v.path.v=i.format("m{0},{1}l{2},{1}",o(f.x*b),o(f.y*b),o(f.x*b)+1));for(var q=["x","y","text","font","font-family","font-weight","font-style","font-size"],$=0,K=q.length;K>$;$++)if(q[$]in l){v._.dirty=1;break}switch(f["text-anchor"]){case"start":v.textpath.style["v-text-align"]="left",v.bbx=v.W/2;break;case"end":v.textpath.style["v-text-align"]="right",v.bbx=-v.W/2;break;default:v.textpath.style["v-text-align"]="center",v.bbx=0}v.textpath.style["v-text-kern"]=!0}},A=function(t,o,a){t.attrs=t.attrs||{};var s=(t.attrs,Math.pow),l="linear",c=".5 .5";if(t.attrs.gradient=o,o=(o=e(o).replace(i._radial_gradient,(function(t,e,i){return l="radial",e&&i&&(e=n(e),i=n(i),s(e-.5,2)+s(i-.5,2)>.25&&(i=r.sqrt(.25-s(e-.5,2))*(2*(i>.5)-1)+.5),c=e+d+i),p}))).split(/\s*\-\s*/),"linear"==l){var h=o.shift();if(h=-n(h),isNaN(h))return null}var u=i._parseDots(o);if(!u)return null;if(t=t.shape||t.node,u.length){t.removeChild(a),a.on=!0,a.method="none",a.color=u[0].color,a.color2=u[u.length-1].color;for(var f=[],g=0,m=u.length;m>g;g++)u[g].offset&&f.push(u[g].offset+d+u[g].color);a.colors=f.length?f.join():"0% "+a.color,"radial"==l?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=c,a.angle=0):(a.type="gradient",a.angle=(270-h)%360),t.appendChild(a)}return 1},O=function(t,e){this[0]=this.node=t,t.raphael=!0,this.id=i._oid++,t.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=e,this.matrix=i.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!e.bottom&&(e.bottom=this),this.prev=e.top,e.top&&(e.top.next=this),e.top=this,this.next=null},M=i.el;O.prototype=M,M.constructor=O,M.transform=function(t){if(null==t)return this._.transform;var n,r=this.paper._viewBoxShift,o=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:p;r&&(n=t=e(t).replace(/\.{3}|\u2026/g,this._.transform||p)),i._extractTransform(this,o+t);var a,s=this.matrix.clone(),l=this.skew,c=this.node,h=~e(this.attrs.fill).indexOf("-"),u=!e(this.attrs.fill).indexOf("url(");if(s.translate(1,1),u||h||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",a=s.split(),h&&a.noRotation||!a.isSimple){c.style.filter=s.toFilter();var f=this.getBBox(),g=this.getBBox(1),m=f.x-g.x,y=f.y-g.y;c.coordorigin=m*-b+d+y*-b,P(this,1,1,m,y,0)}else c.style.filter=p,P(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate);else c.style.filter=p,l.matrix=e(s),l.offset=s.offset();return n&&(this._.transform=n),this},M.rotate=function(t,i,r){if(this.removed)return this;if(null!=t){if((t=e(t).split(h)).length-1&&(i=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(i=r),null==i||null==r){var o=this.getBBox(1);i=o.x+o.width/2,r=o.y+o.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,i,r]])),this}},M.translate=function(t,i){return this.removed||((t=e(t).split(h)).length-1&&(i=n(t[1])),t=n(t[0])||0,i=+i||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=i),this.transform(this._.transform.concat([["t",t,i]]))),this},M.scale=function(t,i,r,o){if(this.removed)return this;if((t=e(t).split(h)).length-1&&(i=n(t[1]),r=n(t[2]),o=n(t[3]),isNaN(r)&&(r=null),isNaN(o)&&(o=null)),t=n(t[0]),null==i&&(i=t),null==o&&(r=o),null==r||null==o)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",t,i,r,o]])),this._.dirtyT=1,this},M.hide=function(){return!this.removed&&(this.node.style.display="none"),this},M.show=function(){return!this.removed&&(this.node.style.display=p),this},M._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},M.remove=function(){if(!this.removed&&this.node.parentNode){for(var t in this.paper.__set__&&this.paper.__set__.exclude(this),i.eve.unbind("raphael.*.*."+this.id),i._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[t]="function"==typeof this[t]?i._removedFactory(t):null;this.removed=!0}},M.attr=function(e,n){if(this.removed)return this;if(null==e){var r={};for(var o in this.attrs)this.attrs[t](o)&&(r[o]=this.attrs[o]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&i.is(e,"string")){if(e==c&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var a=e.split(h),s={},l=0,d=a.length;d>l;l++)s[e=a[l]]=e in this.attrs?this.attrs[e]:i.is(this.paper.customAttributes[e],"function")?this.paper.customAttributes[e].def:i._availableAttrs[e];return d-1?s:s[a[0]]}if(this.attrs&&null==n&&i.is(e,"array")){for(s={},l=0,d=e.length;d>l;l++)s[e[l]]=this.attr(e[l]);return s}var p;for(var f in null!=n&&((p={})[e]=n),null==n&&i.is(e,"object")&&(p=e),p)u("raphael.attr."+f+"."+this.id,this,p[f]);if(p){for(f in this.paper.customAttributes)if(this.paper.customAttributes[t](f)&&p[t](f)&&i.is(this.paper.customAttributes[f],"function")){var g=this.paper.customAttributes[f].apply(this,[].concat(p[f]));for(var m in this.attrs[f]=p[f],g)g[t](m)&&(p[m]=g[m])}p.text&&"text"==this.type&&(this.textpath.string=p.text),T(this,p)}return this},M.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&i._tofront(this,this.paper),this},M.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),i._toback(this,this.paper)),this},M.insertAfter=function(t){return this.removed||(t.constructor==i.st.constructor&&(t=t[t.length-1]),t.node.nextSibling?t.node.parentNode.insertBefore(this.node,t.node.nextSibling):t.node.parentNode.appendChild(this.node),i._insertafter(this,t,this.paper)),this},M.insertBefore=function(t){return this.removed||(t.constructor==i.st.constructor&&(t=t[0]),t.node.parentNode.insertBefore(this.node,t.node),i._insertbefore(this,t,this.paper)),this},M.blur=function(t){var e=this.node.runtimeStyle,n=e.filter;return n=n.replace(m,p),0!=+t?(this.attrs.blur=t,e.filter=n+d+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+t||1.5)+")",e.margin=i.format("-{0}px 0 0 -{0}px",o(+t||1.5))):(e.filter=n,e.margin=0,delete this.attrs.blur),this},i._engine.path=function(t,e){var i=k("shape");i.style.cssText=v,i.coordsize=b+d+b,i.coordorigin=e.coordorigin;var n=new O(i,e),r={fill:"none",stroke:"#000"};t&&(r.path=t),n.type="path",n.path=[],n.Path=p,T(n,r),e.canvas.appendChild(i);var o=k("skew");return o.on=!0,i.appendChild(o),n.skew=o,n.transform(p),n},i._engine.rect=function(t,e,n,r,o,a){var s=i._rectPath(e,n,r,o,a),l=t.path(s),c=l.attrs;return l.X=c.x=e,l.Y=c.y=n,l.W=c.width=r,l.H=c.height=o,c.r=a,c.path=s,l.type="rect",l},i._engine.ellipse=function(t,e,i,n,r){var o=t.path();return o.attrs,o.X=e-n,o.Y=i-r,o.W=2*n,o.H=2*r,o.type="ellipse",T(o,{cx:e,cy:i,rx:n,ry:r}),o},i._engine.circle=function(t,e,i,n){var r=t.path();return r.attrs,r.X=e-n,r.Y=i-n,r.W=r.H=2*n,r.type="circle",T(r,{cx:e,cy:i,r:n}),r},i._engine.image=function(t,e,n,r,o,a){var s=i._rectPath(n,r,o,a),l=t.path(s).attr({stroke:"none"}),h=l.attrs,u=l.node,d=u.getElementsByTagName(c)[0];return h.src=e,l.X=h.x=n,l.Y=h.y=r,l.W=h.width=o,l.H=h.height=a,h.path=s,l.type="image",d.parentNode==u&&u.removeChild(d),d.rotate=!0,d.src=e,d.type="tile",l._.fillpos=[n,r],l._.fillsize=[o,a],u.appendChild(d),P(l,1,1,0,0,0),l},i._engine.text=function(t,n,r,a){var s=k("shape"),l=k("path"),c=k("textpath");n=n||0,r=r||0,a=a||"",l.v=i.format("m{0},{1}l{2},{1}",o(n*b),o(r*b),o(n*b)+1),l.textpathok=!0,c.string=e(a),c.on=!0,s.style.cssText=v,s.coordsize=b+d+b,s.coordorigin="0 0";var h=new O(s,t),u={fill:"#000",stroke:"none",font:i._availableAttrs.font,text:a};h.shape=s,h.path=l,h.textpath=c,h.type="text",h.attrs.text=e(a),h.attrs.x=n,h.attrs.y=r,h.attrs.w=1,h.attrs.h=1,T(h,u),s.appendChild(c),s.appendChild(l),t.canvas.appendChild(s);var f=k("skew");return f.on=!0,s.appendChild(f),h.skew=f,h.transform(p),h},i._engine.setSize=function(t,e){var n=this.canvas.style;return this.width=t,this.height=e,t==+t&&(t+="px"),e==+e&&(e+="px"),n.width=t,n.height=e,n.clip="rect(0 "+t+" "+e+" 0)",this._viewBox&&i._engine.setViewBox.apply(this,this._viewBox),this},i._engine.setViewBox=function(t,e,n,r,o){i.eve("raphael.setViewBox",this,this._viewBox,[t,e,n,r,o]);var s,l,c=this.width,h=this.height,u=1/a(n/c,r/h);return o&&(c>n*(s=h/r)&&(t-=(c-n*s)/2/s),h>r*(l=c/n)&&(e-=(h-r*l)/2/l)),this._viewBox=[t,e,n,r,!!o],this._viewBoxShift={dx:-t,dy:-e,scale:u},this.forEach((function(t){t.transform("...")})),this},i._engine.initWin=function(t){var e=t.document;e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),k=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(t){k=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},i._engine.initWin(i._g.win),i._engine.create=function(){var t=i._getContainer.apply(0,arguments),e=t.container,n=t.height,r=t.width,o=t.x,a=t.y;if(!e)throw new Error("VML container not found.");var s=new i._Paper,l=s.canvas=i._g.doc.createElement("div"),c=l.style;return o=o||0,a=a||0,r=r||512,n=n||342,s.width=r,s.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),s.coordsize=1e3*b+d+1e3*b,s.coordorigin="0 0",s.span=i._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),c.cssText=i.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==e?(i._g.doc.body.appendChild(l),c.left=o+"px",c.top=a+"px",c.position="absolute"):e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l),s.renderfix=function(){},s},i.prototype.clear=function(){i.eve("raphael.clear",this),this.canvas.innerHTML=p,this.span=i._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},i.prototype.remove=function(){for(var t in i.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?i._removedFactory(t):null;return!0};var E=i.st;for(var I in M)M[t](I)&&!E[t](I)&&(E[I]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(I))}}(),C.was?k.win.Raphael=i:Raphael=i,i})),function(t,e){"object"==typeof module&&module.exports?(e.default=e,module.exports=t.document?e(t):e):"function"==typeof define&&define.amd?define("highcharts/highcharts",(function(){return e(t)})):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e(t))}("undefined"!=typeof window?window:this,(function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}var i={};return e(i,"parts/Globals.js",[],(function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,n=e.navigator&&e.navigator.userAgent||"",r=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(n)&&!e.opera,a=-1!==n.indexOf("Firefox"),s=-1!==n.indexOf("Chrome"),l=a&&4>parseInt(n.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.0.0",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:!!e.TouchEvent,isMS:o,isWebKit:-1!==n.indexOf("AppleWebKit"),isFirefox:a,isChrome:s,isSafari:!s&&-1!==n.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:r,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}})),e(i,"parts/Utilities.js",[i["parts/Globals.js"]],(function(t){function e(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function n(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&n(t))}function o(t){return r(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!r(t,!0)||o(t)||!e||!e.name||"Object"===e.name)}function s(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function c(t,e,n){var r;return i(e)?l(n)?t.setAttribute(e,n):t&&t.getAttribute&&((r=t.getAttribute(e))||"class"!==e||(r=t.getAttribute(e+"Name"))):g(e,(function(e,i){t.setAttribute(i,e)})),r}function h(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function u(){for(var t=arguments,e=t.length,i=0;i<e;i++){var n=t[i];if(null!=n)return n}}function d(t,e){var i=function(){};return h(i.prototype=new t,e),i}function p(t,e){return parseFloat(t.toPrecision(e||14))}function f(i,n,r,o){i=+i||0,n=+n;var a=t.defaultOptions.lang,l=(i.toString().split(".")[1]||"").split("e")[0].length,c=i.toString().split("e");if(-1===n)n=Math.min(l,20);else if(s(n)){if(n&&c[1]&&0>c[1]){var h=n+ +c[1];0<=h?(c[0]=(+c[0]).toExponential(h).split("e")[0],n=h):(c[0]=c[0].split(".")[0]||0,i=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)}}else n=2;var d=(Math.abs(c[1]?c[0]:i)+Math.pow(10,-Math.max(n,l)-1)).toFixed(n);return h=3<(l=String(e(d))).length?l.length%3:0,r=u(r,a.decimalPoint),o=u(o,a.thousandsSep),i=(0>i?"-":"")+(h?l.substr(0,h)+o:""),i+=l.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+o),n&&(i+=r+d.slice(-n)),c[1]&&0!=+i&&(i+="e"+c[1]),i}function g(t,e,i){for(var n in t)Object.hasOwnProperty.call(t,n)&&e.call(i||t[n],t[n],n,t)}t.timers=[];var m=t.charts,y=t.doc,v=t.win;return t.error=function(e,i,n,r){var o=s(e),a=o?"Highcharts error #"+e+": www.highcharts.com/errors/"+e+"/":e.toString(),l=function(){if(i)throw Error(a);v.console&&console.log(a)};if(void 0!==r){var c="";o&&(a+="?"),t.objectEach(r,(function(t,e){c+="\n"+e+": "+t,o&&(a+=encodeURI(e)+"="+encodeURI(t))})),a+=c}n?t.fireEvent(n,"displayError",{code:e,message:a,params:r},l):l()},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t=this.paths[0],e=this.paths[1],i=[],n=this.now,r=t.length;if(1===n)i=this.toD;else if(r===e.length&&1>n)for(;r--;){var o=parseFloat(t[r]);i[r]=isNaN(o)||"A"===e[r-4]||"A"===e[r-5]?e[r]:n*parseFloat(""+(e[r]-o))+o}else i=e;this.elem.attr("d",i,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},run:function(e,i,n){var r=this,o=r.options,a=function(t){return!a.stopped&&r.step(t)},s=v.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&s(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=n,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&s(l)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))},step:function(t){var e=+new Date,i=this.options,n=this.elem,r=i.complete,o=i.duration,a=i.curAnim;if(n.attr&&!n.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var s=a[this.prop]=!0;g(a,(function(t){!0!==t&&(s=!1)})),s&&r&&r.call(n),t=!1}else this.pos=i.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},initPath:function(t,e,i){function n(t){for(l=t.length;l--;){var e="M"===t[l]||"L"===t[l],i=/[a-zA-Z]/.test(t[l+3]);e&&i&&t.splice(l+1,0,t[l+1],t[l+2],t[l+1],t[l+2])}}function r(t,e){for(;t.length<y;){t[0]=e[y-t.length];var i=t.slice(0,d);[].splice.apply(t,[0,0].concat(i)),p&&(i=t.slice(t.length-d),[].splice.apply(t,[t.length,0].concat(i)),l--)}t[0]="M"}function o(t,e){for(var i=(y-t.length)/d;0<i&&i--;)(a=t.slice().splice(t.length/f-d,d*f))[0]=e[y-d-i*d],u&&(a[d-6]=a[d-2],a[d-5]=a[d-1]),[].splice.apply(t,[t.length/f,0].concat(a)),p&&i--}e=e||"";var a,l,c=t.startX,h=t.endX,u=-1<e.indexOf("C"),d=u?7:3;e=e.split(" "),i=i.slice();var p=t.isArea,f=p?2:1;if(u&&(n(e),n(i)),c&&h){for(l=0;l<c.length;l++){if(c[l]===h[0]){var g=l;break}if(c[0]===h[h.length-c.length+l]){g=l;var m=!0;break}if(c[c.length-1]===h[h.length-c.length+l]){g=c.length-l;break}}void 0===g&&(e=[])}if(e.length&&s(g)){var y=i.length+g*f*d;m?(r(e,i),o(i,e)):(r(i,e),o(e,i))}return[e,i]},fillSetter:function(){t.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)}},t.merge=function(){var t,e=arguments,i={},n=function(t,e){return"object"!=typeof t&&(t={}),g(e,(function(i,s){!r(i,!0)||a(i)||o(i)?t[s]=e[s]:t[s]=n(t[s]||{},i)})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var s=e.length;for(t=0;t<s;t++)i=n(i,e[t]);return i},t.clearTimeout=function(t){l(t)&&clearTimeout(t)},t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),h(e.style,i)},t.createElement=function(e,i,n,r,o){e=y.createElement(e);var a=t.css;return i&&h(e,i),o&&a(e,{padding:"0",border:"none",margin:"0"}),n&&a(e,n),r&&r.appendChild(e),e},t.datePropsToTimestamps=function(e){g(e,(function(i,o){r(i)&&"function"==typeof i.getTime?e[o]=i.getTime():(r(i)||n(i))&&t.datePropsToTimestamps(i)}))},t.formatSingle=function(e,i,n){var r=/\.([0-9])/,o=t.defaultOptions.lang,a=n&&n.time||t.time;return n=n&&n.numberFormatter||f,/f$/.test(e)?(r=(r=e.match(r))?r[1]:-1,null!==i&&(i=n(i,r,o.decimalPoint,-1<e.indexOf(",")?o.thousandsSep:""))):i=a.dateFormat(e,i),i},t.format=function(e,i,n){for(var r,o,a,s,l,c="{",h=!1,u=[];e&&-1!==(c=e.indexOf(c));){if(r=e.slice(0,c),h){for(s=(o=(r=r.split(":")).shift().split(".")).length,l=i,a=0;a<s;a++)l&&(l=l[o[a]]);r.length&&(l=t.formatSingle(r.join(":"),l,n)),u.push(l)}else u.push(r);e=e.slice(c+1),c=(h=!h)?"}":"{"}return u.push(e),u.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(t,e,i,n,r){var o=t,a=t/(i=u(i,1));for(e||(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===i?e=e.filter((function(t){return 0==t%1})):.1>=i&&(e=[1/i]))),n=0;n<e.length&&(o=e[n],!(r&&o*i>=t||!r&&a<=(e[n]+(e[n+1]||e[n]))/2));n++);return p(o*i,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,n,r=t.length;for(n=0;n<r;n++)t[n].safeI=n;for(t.sort((function(t,n){return 0===(i=e(t,n))?t.safeI-n.safeI:i})),n=0;n<r;n++)delete t[n].safeI},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(i,n,r){return"width"===n?(n=Math.min(i.offsetWidth,i.scrollWidth),(r=i.getBoundingClientRect&&i.getBoundingClientRect().width)<n&&r>=n-1&&(n=Math.floor(r)),Math.max(0,n-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===n?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(v.getComputedStyle||t.error(27,!0),(i=v.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(n),u(r,"opacity"!==n)&&(i=e(i))),i)},t.inArray=function(t,e,i){return e.indexOf(t,i)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(e(t[i],i))return t[i]},t.keys=Object.keys,t.stop=function(e,i){for(var n=t.timers.length;n--;)t.timers[n].elem!==e||i&&i!==t.timers[n].prop||(t.timers[n].stopped=!0)},g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(e,i){t[i]=function(t){return Array.prototype[e].apply(t,[].slice.call(arguments,1))}})),t.addEvent=function(e,i,n,r){void 0===r&&(r={});var o=e.addEventListener||t.addEventListenerPolyfill,a="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{};return t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),o&&o.call(e,i,n,!1),a[i]||(a[i]=[]),a[i].push({fn:n,order:"number"==typeof r.order?r.order:1/0}),a[i].sort((function(t,e){return t.order-e.order})),function(){t.removeEvent(e,i,n)}},t.removeEvent=function(e,i,n){function r(i,n){var r=e.removeEventListener||t.removeEventListenerPolyfill;r&&r.call(e,i,n,!1)}function o(t){var n;if(e.nodeName){if(i){var o={};o[i]=!0}else o=t;g(o,(function(e,i){if(t[i])for(n=t[i].length;n--;)r(i,t[i][n].fn)}))}}var a;["protoEvents","hcEvents"].forEach((function(t,s){var l=(s=s?e:e.prototype)&&s[t];l&&(i?(a=l[i]||[],n?(l[i]=a.filter((function(t){return n!==t.fn})),r(i,n)):(o(l),l[i]=[])):(o(l),s[t]={}))}))},t.fireEvent=function(t,e,i,n){var r;if(i=i||{},y.createEvent&&(t.dispatchEvent||t.fireEvent)){var o=y.createEvent("Events");o.initEvent(e,!0,!0),h(o,i),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(e,o)}else i.target||h(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e}),function(e,n){void 0===e&&(e=[]),void 0===n&&(n=[]);var o=0,a=0,s=e.length+n.length;for(r=0;r<s;r++)!1===(e[o]?n[a]?e[o].order<=n[a].order?e[o++]:n[a++]:e[o++]:n[a++]).fn.call(t,i)&&i.preventDefault()}(t.protoEvents&&t.protoEvents[e],t.hcEvents&&t.hcEvents[e]);n&&!i.defaultPrevented&&n.call(t,i)},t.animate=function(e,i,n){var o,a,l,c="";if(!r(n)){var h=arguments;n={duration:h[2],easing:h[3],complete:h[4]}}s(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=t.merge(i),g(i,(function(r,s){t.stop(e,s),l=new t.Fx(e,n,s),a=null,"d"===s?(l.paths=l.initPath(e,e.d,i.d),l.toD=i.d,o=0,a=1):e.attr?o=e.attr(s):(o=parseFloat(t.getStyle(e,s))||0,"opacity"!==s&&(c="px")),a||(a=r),a&&a.match&&a.match("px")&&(a=a.replace(/px/g,"")),l.run(o,a,c)}))},t.seriesType=function(e,i,n,r,o){var a=t.getOptions(),s=t.seriesTypes;return a.plotOptions[e]=t.merge(a.plotOptions[i],n),s[e]=d(s[i]||function(){},r),s[e].prototype.type=e,o&&(s[e].prototype.pointClass=d(t.Point,o)),s[e]},t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+t+"-"+e++}}(),t.isFunction=function(t){return"function"==typeof t},v.jQuery&&(v.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):m[c(this[0],"data-highcharts-chart")]}),{animObject:function(e){return r(e)?t.merge(e):{duration:e?500:0}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:c,clamp:function(t,e,i){return t>e?t<i?t:i:e},correctFloat:p,defined:l,destroyObjectProperties:function(t,e){g(t,(function(i,n){i&&i!==e&&i.destroy&&i.destroy(),delete t[n]}))},discardElement:function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},extend:h,extendClass:d,isArray:n,isClass:a,isDOMElement:o,isNumber:s,isObject:r,isString:i,numberFormat:f,objectEach:g,offset:function(t){var e=y.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0}).top+(v.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(v.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:u,pInt:e,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},setAnimation:function(t,e){e.renderer.globalAnimation=u(t,e.options.chart.animation,!0)},splat:function(t){return n(t)?t:[t]},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},wrap:function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){n.apply(r,arguments.length?arguments:e)},t.unshift(n),t=i.apply(this,t),r.proceed=null,t}}}})),e(i,"parts/Color.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isNumber,n=e.pInt,r=t.merge;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(e){var i,n;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=e.stops.map((function(e){return new t.Color(e[1])}));else{if(e&&e.charAt&&"#"===e.charAt()){var r=e.length;e=parseInt(e.substr(1),16),7===r?i=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===r&&(i=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!i)for(n=this.parsers.length;n--&&!i;){var o=this.parsers[n];(r=o.regex.exec(e))&&(i=o.parse(r))}}this.rgba=i||[]},get:function(t){var e=this.input,n=this.rgba;if(this.stops){var o=r(e);o.stops=[].concat(o.stops),this.stops.forEach((function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]}))}else o=n&&i(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?n[3]:"rgba("+n.join(",")+")":e;return o},brighten:function(t){var e,r=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(e=0;3>e;e++)r[e]+=n(255*t),0>r[e]&&(r[e]=0),255<r[e]&&(r[e]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var i=this.rgba,n=t.rgba;return n.length&&i&&i.length?e=((t=1!==n[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(n[0]+(i[0]-n[0])*(1-e))+","+Math.round(n[1]+(i[1]-n[1])*(1-e))+","+Math.round(n[2]+(i[2]-n[2])*(1-e))+(t?","+(n[3]+(i[3]-n[3])*(1-e)):"")+")":e=t.input||"none",e}},t.color=function(e){return new t.Color(e)}})),e(i,"parts/SvgRenderer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.animObject,n=e.attr,r=e.defined,o=e.destroyObjectProperties,a=e.erase,s=e.extend,l=e.isArray,c=e.isNumber,h=e.isObject,u=e.isString,d=e.objectEach,p=e.pick,f=e.pInt,g=e.splat,m=t.addEvent,y=t.animate,v=t.charts,b=t.color,x=t.css,w=t.createElement,_=t.deg2rad,S=t.doc,P=t.hasTouch,k=t.isFirefox,C=t.isMS,T=t.isWebKit,A=t.merge,O=t.noop,M=t.removeEvent,E=t.stop,I=t.svg,D=t.SVG_NS,L=t.symbolSizes,j=t.win,N=t.SVGElement=function(){return this};s(N.prototype,{opacity:1,SVG_NS:D,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(e,i){this.element="span"===i?w(i):S.createElementNS(this.SVG_NS,i),this.renderer=e,t.fireEvent(this,"afterInit")},animate:function(t,e,n){var r=i(p(e,this.renderer.globalAnimation,!0));return p(S.hidden,S.msHidden,S.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),y(this,t,r)):(this.attr(t,void 0,n),d(t,(function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1})}),this)),this},complexColor:function(e,i,n){var o,a,s,c,h,u,p,f,g,m,y,v,b=this.renderer,x=[];t.fireEvent(this.renderer,"complexColor",{args:arguments},(function(){e.radialGradient?a="radialGradient":e.linearGradient&&(a="linearGradient"),a&&(s=e[a],h=b.gradients,p=e.stops,m=n.radialReference,l(s)&&(e[a]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===a&&m&&!r(s.gradientUnits)&&(c=s,s=A(s,b.getRadialAttr(m,c),{gradientUnits:"userSpaceOnUse"})),d(s,(function(t,e){"id"!==e&&x.push(e,t)})),d(p,(function(t){x.push(t)})),x=x.join(","),h[x]?y=h[x].attr("id"):(s.id=y=t.uniqueKey(),h[x]=u=b.createElement(a).attr(s).add(b.defs),u.radAttr=c,u.stops=[],p.forEach((function(e){0===e[1].indexOf("rgba")?(o=t.color(e[1]),f=o.get("rgb"),g=o.get("a")):(f=e[1],g=1),e=b.createElement("stop").attr({offset:e[0],"stop-color":f,"stop-opacity":g}).add(u),u.stops.push(e)}))),v="url("+b.url+"#"+y+")",n.setAttribute(i,v),n.gradient=x,e.toString=function(){return v})}))},applyTextOutline:function(e){var i,r=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(r.style.fill)));var o=(e=e.split(" "))[e.length-1];if((i=e[0])&&"none"!==i&&t.svg){this.fakeTS=!0,e=[].slice.call(r.getElementsByTagName("tspan")),this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*e+i})),this.removeTextOutline(e);var a=r.firstChild;e.forEach((function(t,e){0===e&&(t.setAttribute("x",r.getAttribute("x")),e=r.getAttribute("y"),t.setAttribute("y",e||0),null===e&&r.setAttribute("y",0)),t=t.cloneNode(1),n(t,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":i,"stroke-linejoin":"round"}),r.insertBefore(t,a)}))}},removeTextOutline:function(t){for(var e,i=t.length;i--;)"highcharts-text-outline"===(e=t[i]).getAttribute("class")&&a(t,this.element.removeChild(e))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY rounded".split(" "),attr:function(e,i,n,r){var o,a,s,l=this.element,c=this,h=this.symbolCustomAttribs;if("string"==typeof e&&void 0!==i){var u=e;(e={})[u]=i}return"string"==typeof e?c=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(d(e,(function(i,n){a=!1,r||E(this,n),this.symbolName&&-1!==t.inArray(n,h)&&(o||(this.symbolAttr(e),o=!0),a=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),a||((s=this[n+"Setter"]||this._defaultSetter).call(this,i,n,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,i,s))}),this),this.afterSetters()),n&&n.call(this),c},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,i){for(var n=this.shadows,r=n.length;r--;)i.call(n[r],"height"===t?Math.max(e-(n[r].cutHeight||0),0):"d"===t?this.d:e,t,n[r])},addClass:function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce((function(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},hasClass:function(t){return-1!==(this.attr("class")||"").split(" ").indexOf(t)},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(u(t)?new RegExp(" ?"+t+" ?"):t,""))},symbolAttr:function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(i){e[i]=p(t[i],e[i])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),r(t.strokeWidth)&&(t.strokeWidth=e),t},css:function(t){var e=this.styles,i={},r=this.element,o="",a=!e,l=["textOutline","textOverflow","width"];if(t&&t.color&&(t.fill=t.color),e&&d(t,(function(t,n){t!==e[n]&&(i[n]=t,a=!0)})),a){if(e&&(t=s(e,i)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===r.nodeName.toLowerCase()&&t.width)var c=this.textWidth=f(t.width);if(this.styles=t,c&&!I&&this.renderer.forExport&&delete t.width,r.namespaceURI===this.SVG_NS){var h=function(t,e){return"-"+e.toLowerCase()};d(t,(function(t,e){-1===l.indexOf(e)&&(o+=e.replace(/([A-Z])/g,h)+":"+t+";")})),o&&n(r,"style",o)}else x(r,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},getStyle:function(t){return j.getComputedStyle(this.element||this,"").getPropertyValue(t)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=f(t);else if(""!==t){var i=S.createElementNS(D,"rect");n(i,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)}return e},on:function(t,e){var i=this,n=i.element;return P&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(-1===j.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,o=this.inverted,a=this.rotation,s=this.matrix,l=this.element;o&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],r(s)&&t.push("matrix("+s.join(",")+")"),o?t.push("rotate(90) scale(-1,1)"):a&&t.push("rotate("+a+" "+p(this.rotationOriginX,l.getAttribute("x"),0)+" "+p(this.rotationOriginY,l.getAttribute("y")||0)+")"),(r(i)||r(n))&&t.push("scale("+p(i,1)+" "+p(n,1)+")"),t.length&&l.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n,r,o,s={},l=this.renderer,c=l.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||u(i))&&(this.alignTo=n=i||"renderer",a(c,this),c.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=p(i,l[n],l),n=t.align,l=t.verticalAlign,c=(i.x||0)+(t.x||0);var h=(i.y||0)+(t.y||0);return"right"===n?r=1:"center"===n&&(r=2),r&&(c+=(i.width-(t.width||0))/r),s[e?"translateX":"x"]=Math.round(c),"bottom"===l?o=1:"middle"===l&&(o=2),o&&(h+=(i.height-(t.height||0))/o),s[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this},getBBox:function(t,e){var i,n,o=this.renderer,a=this.element,l=this.styles,c=this.textStr,h=o.cache,u=o.cacheKeys,d=a.namespaceURI===this.SVG_NS;e=p(e,this.rotation,0);var f=o.styledMode?a&&N.prototype.getStyle.call(a,"font-size"):l&&l.fontSize;if(r(c)){var g=c.toString();-1===g.indexOf("<")&&(g=g.replace(/[0-9]/g,"0")),g+=["",e,f,this.textWidth,l&&l.textOverflow].join()}if(g&&!t&&(i=h[g]),!i){if(d||o.forExport){try{(n=this.fakeTS&&function(t){[].forEach.call(a.querySelectorAll(".highcharts-text-outline"),(function(e){e.style.display=t}))})&&n("none"),i=a.getBBox?s({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight},n&&n("")}catch(t){}(!i||0>i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(o.isSVG&&(t=i.width,o=i.height,d&&(i.height=o={"11px,17":14,"13px,20":16}[l&&l.fontSize+","+Math.round(o)]||o),e&&(l=e*_,i.width=Math.abs(o*Math.sin(l))+Math.abs(t*Math.cos(l)),i.height=Math.abs(o*Math.cos(l))+Math.abs(t*Math.sin(l)))),g&&0<i.height){for(;250<u.length;)delete h[u.shift()];h[g]||u.push(g),h[g]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var n=this.zIndexSetter();return n||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t=this,e=t.element||{},i=t.renderer,n=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup,r=e.ownerSVGElement,o=t.clipPath;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,E(t),o&&r&&([].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(o.element.id)&&t.removeAttribute("clip-path")})),t.clipPath=o.destroy()),t.stops){for(r=0;r<t.stops.length;r++)t.stops[r]=t.stops[r].destroy();t.stops=null}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)e=n.parentGroup,t.safeRemoveChild(n.div),delete n.div,n=e;t.alignTo&&a(i.alignedObjects,t),d(t,(function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]}))},shadow:function(t,e,i){var r,o=[],a=this.element;if(t){if(!this.shadows){var s=p(t.width,3),l=(t.opacity||.15)/s,c=this.parentInverted?"(-1,-1)":"("+p(t.offsetX,1)+", "+p(t.offsetY,1)+")";for(r=1;r<=s;r++){var h=a.cloneNode(0),u=2*s+1-2*r;n(h,{stroke:t.color||"#000000","stroke-opacity":l*r,"stroke-width":u,transform:"translate"+c,fill:"none"}),h.setAttribute("class",(h.getAttribute("class")||"")+" highcharts-shadow"),i&&(n(h,"height",Math.max(n(h,"height")-u,0)),h.cutHeight=u),e?e.element.appendChild(h):a.parentNode&&a.parentNode.insertBefore(h,a),o.push(h)}this.shadows=o}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=p(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(e=(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",")).length;e--;)t[e]=f(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=S.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(S.createTextNode(String(p(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},setTextPath:function(e,i){var n=this.element,o={textAnchor:"text-anchor"},a=!1,s=this.textPathWrapper,l=!s,h=(i=A(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i)).attributes;if(e&&i&&i.enabled){s&&null===s.element.parentNode?(l=!0,s=s.destroy()):s&&this.removeTextOutline.call(s.parentGroup,[].slice.call(n.getElementsByTagName("tspan"))),this.options&&this.options.padding&&(h.dx=-this.options.padding),s||(this.textPathWrapper=s=this.renderer.createElement("textPath"),a=!0);var u=s.element;if((i=e.element.getAttribute("id"))||e.element.setAttribute("id",i=t.uniqueKey()),l)for(e=n.getElementsByTagName("tspan");e.length;)e[0].setAttribute("y",0),c(h.dx)&&e[0].setAttribute("x",-h.dx),u.appendChild(e[0]);a&&s.add({element:this.text?this.text.element:n}),u.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),r(h.dy)&&(u.parentNode.setAttribute("dy",h.dy),delete h.dy),r(h.dx)&&(u.parentNode.setAttribute("dx",h.dx),delete h.dx),d(h,(function(t,e){u.setAttribute(o[e]||e,t)})),n.removeAttribute("transform"),this.removeTextOutline.call(s,[].slice.call(n.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=O}else s&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(n,e),this.updateTransform(),this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},destroyTextPath:function(t,e){var i=t.getElementsByTagName("text")[0];if(i){if(i.removeAttribute("dx"),i.removeAttribute("dy"),e.element.setAttribute("id",""),i.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)i.appendChild(t[0]);i.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper=this.textPathWrapper.destroy()},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i=this.renderer,n=this.parentGroup,o=(n||i).element||i.box,a=this.element,s=!1;i=o===i.box;var l,c=this.added;if(r(t)?(a.setAttribute("data-z-index",t),t=+t,this[e]===t&&(c=!1)):r(this[e])&&a.removeAttribute("data-z-index"),this[e]=t,c){for((t=this.zIndex)&&n&&(n.handleZ=!0),l=(e=o.childNodes).length-1;0<=l&&!s;l--){c=(n=e[l]).getAttribute("data-z-index");var h=!r(c);n!==a&&(0>t&&h&&!i&&!l?(o.insertBefore(a,e[l]),s=!0):(f(c)<=t||h&&(!r(t)||0<=t))&&(o.insertBefore(a,e[l+1]||null),s=!0))}s||(o.insertBefore(a,e[i?3:0]||null),s=!0)}return s},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),N.prototype.yGetter=N.prototype.xGetter,N.prototype.translateXSetter=N.prototype.translateYSetter=N.prototype.rotationSetter=N.prototype.verticalAlignSetter=N.prototype.rotationOriginXSetter=N.prototype.rotationOriginYSetter=N.prototype.scaleXSetter=N.prototype.scaleYSetter=N.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},N.prototype["stroke-widthSetter"]=N.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(N.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},e=t.SVGRenderer=function(){this.init.apply(this,arguments)},s(e.prototype,{Element:N,SVG_NS:D,init:function(t,e,i,r,o,a,s){var l,c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});s||c.css(this.getStyle(r)),r=c.element,t.appendChild(r),n(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&n(r,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=r,this.boxWrapper=c,this.alignedObjects=[],this.url=(k||T)&&S.getElementsByTagName("base").length?j.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(S.createTextNode("Created with Highcharts 8.0.0")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=o,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),k&&t.getBoundingClientRect&&((e=function(){x(t,{left:0,top:0}),l=t.getBoundingClientRect(),x(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=m(j,"resize",e))},definition:function(t){var e=this;return function t(i,n){var r;return g(i).forEach((function(i){var o=e.createElement(i.tagName),a={};d(i,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(a[e]=t)})),o.attr(a),o.add(n||e.defs),i.textContent&&o.element.appendChild(S.createTextNode(i.textContent)),t(i.children||[],o),r=o})),r}(t)},getStyle:function(t){return this.style=s({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),o(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:O,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},truncate:function(t,e,i,n,r,o,a){var s,l,c=this,h=t.rotation,u=n?1:0,d=(i||n).length,p=d,f=[],g=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(S.createTextNode(t))},m=function(o,s){if(void 0===f[s=s||o])if(e.getSubStringLength)try{f[s]=r+e.getSubStringLength(0,n?s+1:s)}catch(t){}else c.getSpanWidth&&(g(a(i||n,o)),f[s]=r+c.getSpanWidth(t,e));return f[s]};t.rotation=0;var y=m(e.textContent.length);if(l=r+y>o){for(;u<=d;)p=Math.ceil((u+d)/2),n&&(s=a(n,p)),y=m(p,s&&s.length-1),u===d?u=d+1:y>o?d=p-1:u=p;0===d?g(""):i&&d===i.length-1||g(s||a(i||n,p))}return n&&n.splice(0,p),t.actualWidth=y,t.rotation=h,l},escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},buildText:function(t){var e,i,r=t.element,o=this,a=o.forExport,s=p(t.textStr,"").toString(),l=-1!==s.indexOf("<"),c=r.childNodes,h=n(r,"x"),u=t.styles,g=t.textWidth,m=u&&u.lineHeight,y=u&&u.textOutline,v=u&&"ellipsis"===u.textOverflow,b=u&&"nowrap"===u.whiteSpace,w=u&&u.fontSize,_=c.length;u=g&&!t.added&&this.box;var P=function(t){var e;return o.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:w||o.style.fontSize||12),m?f(m):o.fontMetrics(e,t.getAttribute("style")?t:r).h},k=function(t,e){return d(o.escapes,(function(i,n){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),n))})),t},C=function(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))},T=/<br.*?>/g,A=[s,v,b,m,y,w,g].join();if(A!==t.textCache){for(t.textCache=A;_--;)r.removeChild(c[_]);l||y||v||g||-1!==s.indexOf(" ")&&(!b||T.test(s))?(u&&u.appendChild(r),l?s=(s=o.styledMode?s.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):s.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">')).replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(T):s=[s],(s=s.filter((function(t){return""!==t}))).forEach((function(s,l){var c=0,u=0,d=(s=s.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");d.forEach((function(s){if(""!==s||1===d.length){var p,f,m={},y=S.createElementNS(o.SVG_NS,"tspan");if((p=C(s,"class"))&&n(y,"class",p),(p=C(s,"style"))&&(p=p.replace(/(;| |^)color([ :])/,"$1fill$2"),n(y,"style",p)),(f=C(s,"href"))&&!a&&(n(y,"onclick",'location.href="'+f+'"'),n(y,"class","highcharts-anchor"),o.styledMode||x(y,{cursor:"pointer"}))," "!==(s=k(s.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(y.appendChild(S.createTextNode(s)),c?m.dx=0:l&&null!==h&&(m.x=h),n(y,m),r.appendChild(y),!c&&i&&(!I&&a&&x(y,{display:"block"}),n(y,"dy",P(y))),g){var _=s.replace(/([^\^])-/g,"$1- ").split(" ");m=!b&&(1<d.length||l||1<_.length),f=0;var T=P(y);if(v)e=o.truncate(t,y,s,void 0,0,Math.max(0,g-parseInt(w||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(m)for(;_.length;)_.length&&!b&&0<f&&(y=S.createElementNS(D,"tspan"),n(y,{dy:T,x:h}),p&&n(y,"style",p),y.appendChild(S.createTextNode(_.join(" ").replace(/- /g,"-"))),r.appendChild(y)),o.truncate(t,y,null,_,0===f?u:0,g,(function(t,e){return _.slice(0,e).join(" ").replace(/- /g,"-")})),u=t.actualWidth,f++}c++}}})),i=i||r.childNodes.length})),v&&e&&t.attr("title",k(t.textStr,["<",">"])),u&&u.removeChild(r),y&&t.applyTextOutline&&t.applyTextOutline(y)):r.appendChild(S.createTextNode(k(s)))}},getContrast:function(t){return(t=b(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,i,n,r,o,a,l,c,h){var u=this.label(t,e,i,c,null,null,h,null,"button"),d=0,p=this.styledMode;if(u.attr(A({padding:8,r:2},r)),!p){var f=(r=A({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},r)).style;delete r.style;var g=(o=A(r,{fill:"#e6e6e6"},o)).style;delete o.style;var y=(a=A(r,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a)).style;delete a.style;var v=(l=A(r,{style:{color:"#cccccc"}},l)).style;delete l.style}return m(u.element,C?"mouseover":"mouseenter",(function(){3!==d&&u.setState(1)})),m(u.element,C?"mouseout":"mouseleave",(function(){3!==d&&u.setState(d)})),u.setState=function(t){1!==t&&(u.state=d=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),p||u.attr([r,o,a,l][t||0]).css([f,g,y,v][t||0])},p||u.attr(r).css(s({cursor:"default"},f)),u.on("click",(function(t){3!==d&&n.call(u,t)}))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e=this.styledMode?{}:{fill:"none"};return l(t)?e.d=t:h(t)&&s(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=h(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,n,r,o){return h(t)?(e=(n=t).y,i=n.r,t=n.x):n={innerR:n,start:r,end:o},(t=this.symbol("arc",t,e,i,i,n)).r=i,t},rect:function(t,e,i,r,o,a){o=h(t)?t.r:o;var s=this.createElement("rect");return t=h(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(r,0)},this.styledMode||(void 0!==a&&(t.strokeWidth=a,t=s.crisp(t)),t.fill="none"),o&&(t.r=o),s.rSetter=function(t,e,i){s.r=t,n(i,{rx:t,ry:t})},s.rGetter=function(){return s.r},s.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,r=n.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:p(i,!0)?void 0:0});r--;)n[r].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,n,r,o){var a={preserveAspectRatio:"none"},l=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},c=function(e){l(h.element,t),o.call(h,e)};1<arguments.length&&s(a,{x:e,y:i,width:n,height:r});var h=this.createElement("image").attr(a);return o?(l(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a=new j.Image,m(a,"load",c),a.src=t,a.complete&&c({})):l(h.element,t),h},symbol:function(t,e,i,n,o,a){var l=this,c=/^url\((.*?)\)$/,h=c.test(t),u=!h&&(this.symbols[t]?t:"circle"),d=u&&this.symbols[u],f=r(e)&&d&&d.call(this.symbols,Math.round(e),Math.round(i),n,o,a);if(d){var g=this.path(f);l.styledMode||g.attr("fill","none"),s(g,{symbolName:u,x:e,y:i,width:n,height:o}),a&&s(g,a)}else if(h){var m=t.match(c)[1];(g=this.image(m)).imgwidth=p(L[m]&&L[m].width,a&&a.width),g.imgheight=p(L[m]&&L[m].height,a&&a.height);var y=function(){g.attr({width:g.width,height:g.height})};["width","height"].forEach((function(t){g[t+"Setter"]=function(t,e){var i={},n=this["img"+e],o="width"===e?"translateX":"translateY";this[e]=t,r(n)&&(a&&"within"===a.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(i[o]=((this[e]||0)-n)/2,this.attr(i)))}})),r(e)&&g.attr({x:e,y:i}),g.isImg=!0,r(g.imgwidth)&&r(g.imgheight)?y():(g.attr({width:0,height:0}),w("img",{onload:function(){var t=v[l.chartIndex];0===this.width&&(x(this,{position:"absolute",top:"-999em"}),S.body.appendChild(this)),L[m]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&y(),this.parentNode&&this.parentNode.removeChild(this),l.imgCount--,!l.imgCount&&t&&t.onload&&t.onload()},src:m}),this.imgCount++)}return g},symbols:{circle:function(t,e,i,n){return this.arc(t+i/2,e+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,o){var a=o.start,s=o.r||i,l=o.r||n||i,c=o.end-.001;i=o.innerR,n=p(o.open,.001>Math.abs(o.end-o.start-2*Math.PI));var h=Math.cos(a),u=Math.sin(a),d=Math.cos(c);return c=Math.sin(c),s=["M",t+s*h,e+l*u,"A",s,l,0,a=p(o.longArc,.001>o.end-a-Math.PI?0:1),p(o.clockwise,1),t+s*d,e+l*c],r(i)&&s.push(n?"M":"L",t+i*d,e+i*c,"A",i,i,0,a,r(o.clockwise)?1-o.clockwise:0,t+i*h,e+i*u),s.push(n?"":"Z"),s},callout:function(t,e,i,n,r){var o=Math.min(r&&r.r||0,i,n),a=o+6,s=r&&r.anchorX;r=r&&r.anchorY;var l=["M",t+o,e,"L",t+i-o,e,"C",t+i,e,t+i,e,t+i,e+o,"L",t+i,e+n-o,"C",t+i,e+n,t+i,e+n,t+i-o,e+n,"L",t+o,e+n,"C",t,e+n,t,e+n,t,e+n-o,"L",t,e+o,"C",t,e,t,e,t+o,e];return s&&s>i?r>e+a&&r<e+n-a?l.splice(13,3,"L",t+i,r-6,t+i+6,r,t+i,r+6,t+i,e+n-o):l.splice(13,3,"L",t+i,n/2,s,r,t+i,n/2,t+i,e+n-o):s&&0>s?r>e+a&&r<e+n-a?l.splice(33,3,"L",t,r+6,t-6,r,t,r-6,t,e+o):l.splice(33,3,"L",t,n/2,s,r,t,n/2,t,e+o):r&&r>n&&s>t+a&&s<t+i-a?l.splice(23,3,"L",s+6,e+n,s,e+n+6,s-6,e+n,t+o,e+n):r&&0>r&&s>t+a&&s<t+i-a&&l.splice(3,3,"L",s-6,e,s,e-6,s+6,e,i-o,e),l}},clipRect:function(e,i,n,r){var o=t.uniqueKey()+"-",a=this.createElement("clipPath").attr({id:o}).add(this.defs);return(e=this.rect(e,i,n,r,0).add(a)).id=o,e.clipPath=a,e.count=0,e},text:function(t,e,i,n){var o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),r(t)&&(o.text=t),t=this.createElement("text").attr(o),n||(t.xSetter=function(t,e,i){var n,r=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(n=0;n<r.length;n++){var a=r[n];a.getAttribute(e)===o&&a.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){return t=!this.styledMode&&/px/.test(t)||!j.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&N.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?f(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*_),4)),{x:-t/3*Math.sin(e*_),y:n}},label:function(t,e,i,n,o,a,l,h,u){var d,p,f,g,m,y,v,b,x,w=this,_=w.styledMode,S=w.g("button"!==u&&"label"),P=S.text=w.text("",0,0,l).attr({zIndex:1}),k=0,C=3,T=0,O={},E=/^url\((.*?)\)$/.test(n),I=_||E,D=function(){return _?d.strokeWidth()%2/2:(b?parseInt(b,10):0)%2/2};u&&S.addClass("highcharts-"+u);var L=function(){var t=P.element.style,e={};p=(void 0===f||void 0===g||v)&&r(P.textStr)&&P.getBBox(),S.width=(f||p.width||0)+2*C+T,S.height=(g||p.height||0)+2*C,x=C+Math.min(w.fontMetrics(t&&t.fontSize,P).b,p?p.height:1/0),I&&(d||(S.box=d=w.symbols[n]||E?w.symbol(n):w.rect(),d.addClass(("button"===u?"":"highcharts-label-box")+(u?" highcharts-"+u+"-box":"")),d.add(S),t=D(),e.x=t,e.y=(h?-x:0)+t),e.width=Math.round(S.width),e.height=Math.round(S.height),d.attr(s(e,O)),O={})},j=function(){var t=T+C,e=h?0:x;r(f)&&p&&("center"===v||"right"===v)&&(t+={center:.5,right:1}[v]*(f-p.width)),t===P.x&&e===P.y||(P.attr("x",t),P.hasBoxWidthChanged&&(p=P.getBBox(!0),L()),void 0!==e&&P.attr("y",e)),P.x=t,P.y=e},F=function(t,e){d?d.attr(t,e):O[t]=e};S.onAdd=function(){P.add(S),S.attr({text:t||0===t?t:"",x:e,y:i}),d&&r(o)&&S.attr({anchorX:o,anchorY:a})},S.widthSetter=function(t){f=c(t)?t:null},S.heightSetter=function(t){g=t},S["text-alignSetter"]=function(t){v=t},S.paddingSetter=function(t){r(t)&&t!==C&&(C=S.padding=t,j())},S.paddingLeftSetter=function(t){r(t)&&t!==T&&(T=t,j())},S.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==k&&(k=t,p&&S.attr({x:m}))},S.textSetter=function(t){void 0!==t&&P.attr({text:t}),L(),j()},S["stroke-widthSetter"]=function(t,e){t&&(I=!0),b=this["stroke-width"]=t,F(e,t)},_?S.rSetter=function(t,e){F(e,t)}:S.strokeSetter=S.fillSetter=S.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(I=!0),S[e]=t),F(e,t)},S.anchorXSetter=function(t,e){o=S.anchorX=t,F(e,Math.round(t)-D()-m)},S.anchorYSetter=function(t,e){a=S.anchorY=t,F(e,t-y)},S.xSetter=function(t){S.x=t,k&&(t-=k*((f||p.width)+2*C),S["forceAnimate:x"]=!0),m=Math.round(t),S.attr("translateX",m)},S.ySetter=function(t){y=S.y=Math.round(t),S.attr("translateY",y)};var R=S.css;return l={css:function(t){if(t){var e={};t=A(t),S.textProps.forEach((function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])})),P.css(e),"width"in e&&L(),"fontSize"in e&&(L(),j())}return R.call(S,t)},getBBox:function(){return{width:p.width+2*C,height:p.height+2*C,x:p.x-C,y:p.y-C}},destroy:function(){M(S.element,"mouseenter"),M(S.element,"mouseleave"),P&&(P=P.destroy()),d&&(d=d.destroy()),N.prototype.destroy.call(S),S=w=L=j=F=null}},_||(l.shadow=function(t){return t&&(L(),d&&d.shadow(t)),S}),s(S,l)}}),t.Renderer=e})),e(i,"parts/Html.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,n=e.defined,r=e.extend,o=e.pick,a=e.pInt,s=t.createElement,l=t.css,c=t.isFirefox,h=t.isMS,u=t.isWebKit,d=t.SVGElement;e=t.SVGRenderer;var p=t.win;r(d.prototype,{htmlCss:function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=o(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var n=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=r(this.styles,t),l(this.element,t),n&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,r=this.translateY||0,o=this.x||0,s=this.y||0,c=this.textAlign||"left",h={left:0,center:.5,right:1}[c],u=this.styles,d=u&&u.whiteSpace;if(l(e,{marginLeft:i,marginTop:r}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:i+1,marginTop:r+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(i){t.invertChild(i,e)})),"SPAN"===e.tagName){u=this.rotation;var p,f=this.textWidth&&a(this.textWidth),g=[u,c,e.innerHTML,this.textWidth,this.textAlign].join();(p=f!==this.oldTextWidth)&&!(p=f>this.oldTextWidth)&&((p=this.textPxLength)||(l(e,{width:"",whiteSpace:d||"nowrap"}),p=e.offsetWidth),p=p>f),p&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(l(e,{width:f+"px",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(d=t.fontMetrics(e.style.fontSize,e).b,!n(u)||u===(this.oldRotation||0)&&c===this.oldAlign||this.setSpanRotation(u,h,d),this.getSpanCorrection(!n(u)&&this.textPxLength||e.offsetWidth,d,h,u,c)),l(e,{left:o+(this.xCorr||0)+"px",top:s+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=u,this.oldAlign=c}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},r=this.renderer.getTransformKey();n[r]=n.transform="rotate("+t+"deg)",n[r+(c?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",l(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),r(e.prototype,{getTransformKey:function(){return h&&!/Edge/.test(p.navigator.userAgent)?"-ms-transform":u?"-webkit-transform":c?"MozTransform":p.opera?"-o-transform":""},html:function(t,e,n){var a=this.createElement("span"),l=a.element,c=a.renderer,h=c.isSVG,u=function(t,e){["opacity","visibility"].forEach((function(i){t[i+"Setter"]=function(n,r,o){var a=t.div?t.div.style:e;d.prototype[i+"Setter"].call(this,n,r,o),a&&(a[r]=n)}})),t.addedSetters=!0};return a.textSetter=function(t){t!==l.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,l.innerHTML=o(t,""),a.doTransform=!0},h&&u(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),a[e]=t,a.doTransform=!0},a.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},a.attr({text:t,x:Math.round(e),y:Math.round(n)}).css({position:"absolute"}),c.styledMode||a.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),l.style.whiteSpace="nowrap",a.css=a.htmlCss,h&&(a.add=function(t){var e=c.box.parentNode,n=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function l(e,i){t[i]=e,"translateX"===i?h.left=e+"px":h.top=e+"px",t.doTransform=!0}var c=i(t.element,"class"),h=(o=t.div=t.div||s("div",c?{className:c}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},o||e)).style;r(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return n[0].div&&a.on.apply({element:n[0].div},arguments),t},translateXSetter:l,translateYSetter:l}),t.addedSetters||u(t)}))}}else o=e;return o.appendChild(l),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}})})),e(i,"parts/Time.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,n=e.extend,r=e.isObject,o=e.objectEach,a=e.pad,s=e.pick,l=e.splat,c=t.merge,h=t.timeUnits,u=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},update:function(t){var e=s(t&&t.useUTC,!0),i=this;this.options=t=c(!0,this.options||{},t),this.Date=t.Date||u.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone))||this.timezoneOffset?(this.get=function(t,e){var n=e.getTime(),r=n-i.getTimezoneOffset(e);return e.setTime(r),t=e["getUTC"+t](),e.setTime(n),t},this.set=function(t,e,n){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==e.getTimezoneOffset()%60)e["set"+t](n);else{var r=i.getTimezoneOffset(e);r=e.getTime()-r,e.setTime(r),e["setUTC"+t](n),t=i.getTimezoneOffset(e),r=e.getTime()+t,e.setTime(r)}}):e?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,i){return e["setUTC"+t](i)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,i){return e["set"+t](i)})},makeTime:function(e,i,n,r,o,a){if(this.useUTC){var l=this.Date.UTC.apply(0,arguments),c=this.getTimezoneOffset(l);l+=c;var h=this.getTimezoneOffset(l);c!==h?l+=h-c:c-36e5!==this.getTimezoneOffset(l-36e5)||t.isSafari||(l-=36e5)}else l=new this.Date(e,i,s(n,1),s(r,0),s(o,0),s(a,0)).getTime();return l},timezoneOffsetFunction:function(){var e=this,i=this.options,n=u.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(i.timezone){if(n)return function(t){return 6e4*-n.tz(t,i.timezone).utcOffset()};t.error(25)}return this.useUTC&&i.getTimezoneOffset?function(t){return 6e4*i.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,r,l){if(!i(r)||isNaN(r))return t.defaultOptions.lang.invalidDate||"";e=s(e,"%Y-%m-%d %H:%M:%S");var c=this,h=new this.Date(r),u=this.get("Hours",h),d=this.get("Day",h),p=this.get("Date",h),f=this.get("Month",h),g=this.get("FullYear",h),m=t.defaultOptions.lang,y=m.weekdays,v=m.shortWeekdays;return h=n({a:v?v[d]:y[d].substr(0,3),A:y[d],d:a(p),e:a(p,2," "),w:d,b:m.shortMonths[f],B:m.months[f],m:a(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:a(u),k:u,I:a(u%12||12),l:u%12||12,M:a(c.get("Minutes",h)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:a(h.getSeconds()),L:a(Math.floor(r%1e3),3)},t.dateFormats),o(h,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(c,r):t)})),l?e.substr(0,1).toUpperCase()+e.substr(1):e},resolveDTLFormat:function(t){return r(t,!0)?t:{main:(t=l(t))[0],from:t[1],to:t[2]}},getTimeTicks:function(t,e,r,o){var a,l=this,c=[],u={},d=new l.Date(e),p=t.unitRange,f=t.count||1;if(o=s(o,1),i(e)){if(l.set("Milliseconds",d,p>=h.second?0:f*Math.floor(l.get("Milliseconds",d)/f)),p>=h.second&&l.set("Seconds",d,p>=h.minute?0:f*Math.floor(l.get("Seconds",d)/f)),p>=h.minute&&l.set("Minutes",d,p>=h.hour?0:f*Math.floor(l.get("Minutes",d)/f)),p>=h.hour&&l.set("Hours",d,p>=h.day?0:f*Math.floor(l.get("Hours",d)/f)),p>=h.day&&l.set("Date",d,p>=h.month?1:Math.max(1,f*Math.floor(l.get("Date",d)/f))),p>=h.month){l.set("Month",d,p>=h.year?0:f*Math.floor(l.get("Month",d)/f));var g=l.get("FullYear",d)}p>=h.year&&l.set("FullYear",d,g-g%f),p===h.week&&(g=l.get("Day",d),l.set("Date",d,l.get("Date",d)-g+o+(g<o?-7:0))),g=l.get("FullYear",d),o=l.get("Month",d);var m=l.get("Date",d),y=l.get("Hours",d);for(e=d.getTime(),l.variableTimezone&&(a=r-e>4*h.month||l.getTimezoneOffset(e)!==l.getTimezoneOffset(r)),e=d.getTime(),d=1;e<r;)c.push(e),e=p===h.year?l.makeTime(g+d*f,0):p===h.month?l.makeTime(g,o+d*f):!a||p!==h.day&&p!==h.week?a&&p===h.hour&&1<f?l.makeTime(g,o,m,y+d*f):e+p*f:l.makeTime(g,o,m+d*f*(p===h.day?1:7)),d++;c.push(e),p<=h.hour&&1e4>c.length&&c.forEach((function(t){0==t%18e5&&"000000000"===l.dateFormat("%H%M%S%L",t)&&(u[t]="day")}))}return c.info=n(t,{higherRanks:u,totalRange:p*f}),c}}})),e(i,"parts/Options.js",[i["parts/Globals.js"]],(function(t){var e=t.color,i=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=i(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(i(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(i(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,n){return t.time.dateFormat(e,i,n)}})),e(i,"parts/Tick.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.correctFloat,r=e.defined,o=e.destroyObjectProperties,a=e.extend,s=e.isNumber,l=e.objectEach,c=e.pick,h=t.fireEvent,u=t.merge,d=t.deg2rad;t.Tick=function(t,e,i,n,r){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,i||n||this.addLabel()},t.Tick.prototype={addLabel:function(){var t=this,e=t.axis,i=e.options,o=e.chart,s=e.categories,l=e.names,h=t.pos,u=c(t.options&&t.options.labels,i.labels),d=e.tickPositions,p=h===d[0],f=h===d[d.length-1];l=this.parameters.category||(s?c(s[h],l[h],h):h);var g,m,y=t.label;if(s=(!u.step||1===u.step)&&1===e.tickInterval,d=d.info,e.isDatetimeAxis&&d)var v=o.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&d.higherRanks[h]||d.unitName]),b=v.main;t.isFirst=p,t.isLast=f,t.formatCtx={axis:e,chart:o,isFirst:p,isLast:f,dateTimeLabelFormat:b,tickPositionInfo:d,value:e.isLog?n(e.lin2log(l)):l,pos:h},i=e.labelFormatter.call(t.formatCtx,this.formatCtx),(m=v&&v.list)&&(t.shortenLabel=function(){for(g=0;g<m.length;g++)if(y.attr({text:e.labelFormatter.call(a(t.formatCtx,{dateTimeLabelFormat:m[g]}))}),y.getBBox().width<e.getSlotWidth(t)-2*c(u.padding,5))return;y.attr({text:""})}),s&&e._addedPlotLB&&e.isXAxis&&t.moveLabel(i,u),r(y)||t.movedLabel?y&&y.textStr!==i&&!s&&(!y.textWidth||u.style&&u.style.width||y.styles.width||y.css({width:null}),y.attr({text:i}),y.textPxLength=y.getBBox().width):(t.label=y=t.createLabel({x:0,y:0},i,u),t.rotation=0)},moveLabel:function(t,e){var i=this,n=i.label,r=!1,o=i.axis,a=o.reversed,s=o.chart.inverted;if(n&&n.textStr===t?(i.movedLabel=n,r=!0,delete i.label):l(o.ticks,(function(e){r||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,r=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),!r&&(i.labelPos||n)){var c=i.labelPos||n.xy;n=s?c.x:a?0:o.width+o.left,o=s?a?o.width+o.left:0:c.y,i.movedLabel=i.createLabel({x:n,y:o},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},createLabel:function(t,e,i){var n=this.axis,o=n.chart;return(t=r(e)&&i.enabled?o.renderer.text(e,t.x,t.y,i.useHTML).add(n.labelGroup):null)&&(o.styledMode||t.css(u(i.style)),t.textPxLength=t.getBBox().width),t},replaceMovedLabel:function(){var t=this.label,e=this.axis,i=e.reversed,n=this.axis.chart.inverted;if(t&&!this.isNew){var r=n?t.xy.x:i?e.left:e.width+e.left;i=n?i?e.width+e.top:e.top:t.xy.y,t.animate({x:r,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e=this.axis,i=e.options.labels,n=t.x,r=e.chart.chartWidth,o=e.chart.spacing,a=c(e.labelLeft,Math.min(e.pos,o[3]));o=c(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-o[1]));var s,l=this.label,h=this.rotation,u={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],p=l.getBBox().width,f=e.getSlotWidth(this),g=f,m=1,y={};h||"justify"!==c(i.overflow,"justify")?0>h&&n-u*p<a?s=Math.round(n/Math.cos(h*d)-a):0<h&&n+u*p>o&&(s=Math.round((r-n)/Math.cos(h*d))):(r=n+(1-u)*p,n-u*p<a?g=t.x+g*(1-u)-a:r>o&&(g=o-t.x+g*u,m=-1),(g=Math.min(f,g))<f&&"center"===e.labelAlign&&(t.x+=m*(f-g-u*(f-Math.min(p,g)))),(p>g||e.autoRotation&&(l.styles||{}).width)&&(s=g)),s&&(this.shortenLabel?this.shortenLabel():(y.width=Math.floor(s),(i.style||{}).textOverflow||(y.textOverflow="ellipsis"),l.css(y)))},getPosition:function(t,e,r,o){var a=this.axis,s=a.chart,l=o&&s.oldChartHeight||s.chartHeight;return(t={x:t?n(a.translate(e+r,null,null,o)+a.transB):a.left+a.offset+(a.opposite?(o&&s.oldChartWidth||s.chartWidth)-a.right-a.left:0),y:t?l-a.bottom+a.offset-(a.opposite?a.height:0):n(l-a.translate(e+r,null,null,o)-a.transB)}).y=i(t.y,-1e5,1e5),h(this,"afterGetPosition",{pos:t}),t},getLabelPosition:function(t,e,i,n,o,a,s,l){var c=this.axis,u=c.transA,p=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,f=c.staggerLines,g=c.tickRotCorr||{x:0,y:0},m=o.y,y=n||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),v={};return r(m)||(m=0===c.side?i.rotation?-8:-i.getBBox().height:2===c.side?g.y+8:Math.cos(i.rotation*d)*(g.y-i.getBBox(!1,0).height/2)),t=t+o.x+y+g.x-(a&&n?a*u*(p?-1:1):0),e=e+m-(a&&!n?a*u*(p?1:-1):0),f&&(i=s/(l||1)%f,c.opposite&&(i=f-i-1),e+=c.labelOffset/f*i),v.x=t,v.y=Math.round(e),h(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:a,index:s}),v},getMarkPath:function(t,e,i,n,r,o){return o.crispLine(["M",t,e,"L",t+(r?0:-i),e+(r?i:0)],n)},renderGridLine:function(t,e,i){var n=this.axis,r=n.options,o=this.gridLine,a={},s=this.pos,l=this.type,h=c(this.tickmarkOffset,n.tickmarkOffset),u=n.chart.renderer,d=l?l+"Grid":"grid",p=r[d+"LineWidth"],f=r[d+"LineColor"];r=r[d+"LineDashStyle"],o||(n.chart.styledMode||(a.stroke=f,a["stroke-width"]=p,r&&(a.dashstyle=r)),l||(a.zIndex=1),t&&(e=0),this.gridLine=o=u.path().attr(a).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(n.gridGroup)),o&&(i=n.getPlotLinePath({value:s+h,lineWidth:o.strokeWidth()*i,force:"pass",old:t}))&&o[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},renderMark:function(t,e,i){var n=this.axis,r=n.options,o=n.chart.renderer,a=this.type,s=a?a+"Tick":"tick",l=n.tickSize(s),h=this.mark,u=!h,d=t.x;t=t.y;var p=c(r[s+"Width"],!a&&n.isXAxis?1:0);r=r[s+"Color"],l&&(n.opposite&&(l[0]=-l[0]),u&&(this.mark=h=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||h.attr({stroke:r,"stroke-width":p})),h[u?"attr":"animate"]({d:this.getMarkPath(d,t,l[0],h.strokeWidth()*i,n.horiz,o),opacity:e}))},renderLabel:function(t,e,i,n){var r=this.axis,o=r.horiz,a=r.options,l=this.label,h=a.labels,u=h.step;r=c(this.tickmarkOffset,r.tickmarkOffset);var d=!0,p=t.x;t=t.y,l&&s(p)&&(l.xy=t=this.getLabelPosition(p,t,l,o,h,r,n,u),this.isFirst&&!this.isLast&&!c(a.showFirstLabel,1)||this.isLast&&!this.isFirst&&!c(a.showLastLabel,1)?d=!1:!o||h.step||h.rotation||e||0===i||this.handleOverflow(t),u&&n%u&&(d=!1),d&&s(t.y)?(t.opacity=i,l[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(l.attr("y",-9999),this.isNewLabel=!0))},render:function(e,i,n){var r=this.axis,o=r.horiz,a=this.pos,s=c(this.tickmarkOffset,r.tickmarkOffset);s=(a=this.getPosition(o,a,s,i)).x;var l=a.y;r=o&&s===r.pos+r.len||!o&&l===r.pos?-1:1,n=c(n,1),this.isActive=!0,this.renderGridLine(i,n,r),this.renderMark(a,n,r),this.renderLabel(a,i,n,e),this.isNew=!1,t.fireEvent(this,"afterRender")},destroy:function(){o(this,this.axis)}}})),e(i,"parts/Axis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.animObject,n=e.arrayMax,r=e.arrayMin,o=e.clamp,a=e.correctFloat,s=e.defined,l=e.destroyObjectProperties,c=e.extend,h=e.isArray,u=e.isNumber,d=e.isString,p=e.objectEach,f=e.pick,g=e.relativeLength,m=e.splat,y=e.syncTimeout,v=t.addEvent,b=t.color,x=t.defaultOptions,w=t.deg2rad,_=t.fireEvent,S=t.format,P=t.getMagnitude,k=t.merge,C=t.normalizeTickInterval,T=t.removeEvent,A=t.seriesTypes,O=t.Tick;return c((e=function(){this.init.apply(this,arguments)}).prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(e,i){var n=i.isX,r=this;r.chart=e,r.horiz=e.inverted&&!r.isZAxis?!n:n,r.isXAxis=n,r.coll=r.coll||(n?"xAxis":"yAxis"),_(this,"init",{userOptions:i}),r.opposite=i.opposite,r.side=i.side||(r.horiz?r.opposite?0:2:r.opposite?1:3),r.setOptions(i);var o=this.options,a=o.type;r.labelFormatter=o.labels.formatter||r.defaultLabelFormatter,r.userOptions=i,r.minPixelPadding=0,r.reversed=o.reversed,r.visible=!1!==o.visible,r.zoomEnabled=!1!==o.zoomEnabled,r.hasNames="category"===a||!0===o.categories,r.categories=o.categories||r.hasNames,r.names||(r.names=[],r.names.keys={}),r.plotLinesAndBandsGroups={},r.isLog="logarithmic"===a,r.isDatetimeAxis="datetime"===a,r.positiveValuesOnly=r.isLog&&!r.allowNegativeLog,r.isLinked=s(o.linkedTo),r.ticks={},r.labelEdge=[],r.minorTicks={},r.plotLinesAndBands=[],r.alternateBands={},r.len=0,r.minRange=r.userMinRange=o.minRange||o.maxZoom,r.range=o.range,r.offset=o.offset||0,r.stacks={},r.oldStacks={},r.stacksTouched=0,r.max=null,r.min=null,r.crosshair=f(o.crosshair,m(e.options.tooltip.crosshairs)[n?0:1],!1),i=r.options.events,-1===e.axes.indexOf(r)&&(n?e.axes.splice(e.xAxis.length,0,r):e.axes.push(r),e[r.coll].push(r)),r.series=r.series||[],e.inverted&&!r.isZAxis&&n&&void 0===r.reversed&&(r.reversed=!0),p(i,(function(e,i){t.isFunction(e)&&v(r,i,e)})),r.lin2log=o.linearToLogConverter||r.lin2log,r.isLog&&(r.val2lin=r.log2lin,r.lin2val=r.lin2log),_(this,"afterInit")},setOptions:function(t){this.options=k(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],k(x[this.coll],t)),_(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var t=this.axis,e=this.value,i=t.chart.time,n=t.categories,r=this.dateTimeLabelFormat,o=x.lang,a=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var s=a&&a.length,l=t.options.labels.format;t=t.isLog?Math.abs(e):t.tickInterval;var c=this.chart,h=c.numberFormatter;if(l)var u=S(l,this,c);else if(n)u=e;else if(r)u=i.dateFormat(r,e);else if(s&&1e3<=t)for(;s--&&void 0===u;)t>=(i=Math.pow(o,s+1))&&0==10*e%i&&null!==a[s]&&0!==e&&(u=h(e/i,-1)+a[s]);return void 0===u&&(u=1e4<=Math.abs(e)?h(e,-1):h(e,-1,void 0,"")),u},getSeriesExtremes:function(){var t,e=this,i=e.chart;_(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),e.series.forEach((function(n){if(n.visible||!i.options.chart.ignoreHiddenSeries){var r=n.options,o=r.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((r=n.xData).length){var a=(t=n.getXExtremes(r)).min,l=t.max;u(a)||a instanceof Date||(r=r.filter(u),a=(t=n.getXExtremes(r)).min,l=t.max),r.length&&(e.dataMin=Math.min(f(e.dataMin,a),a),e.dataMax=Math.max(f(e.dataMax,l),l))}}else n.getExtremes(),l=n.dataMax,a=n.dataMin,s(a)&&s(l)&&(e.dataMin=Math.min(f(e.dataMin,a),a),e.dataMax=Math.max(f(e.dataMax,l),l)),s(o)&&(e.threshold=o),(!r.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),_(this,"afterGetSeriesExtremes")},translate:function(t,e,i,n,r,o){var a=this.linkedParent||this,s=1,l=0,c=n?a.oldTransA:a.transA;n=n?a.oldMin:a.min;var h=a.minPixelPadding;return r=(a.isOrdinal||a.isBroken||a.isLog&&r)&&a.lin2val,c||(c=a.transA),i&&(s*=-1,l=a.len),a.reversed&&(l-=(s*=-1)*(a.sector||a.len)),e?(t=(t*s+l-h)/c+n,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=u(n)?s*(t-n)*c+l+s*h+(u(o)?c*o:0):void 0),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t){var e,i,n,r,a,s=this,l=s.chart,c=s.left,h=s.top,d=t.old,p=t.value,g=t.translatedValue,m=t.lineWidth,y=t.force,v=d&&l.oldChartHeight||l.chartHeight,b=d&&l.oldChartWidth||l.chartWidth,x=s.transB,w=function(t,e,i){return("pass"!==y&&t<e||t>i)&&(y?t=o(t,e,i):a=!0),t};return t={value:p,lineWidth:m,old:d,force:y,acrossPanes:t.acrossPanes,translatedValue:g},_(this,"getPlotLinePath",t,(function(t){g=f(g,s.translate(p,null,null,d)),g=o(g,-1e5,1e5),e=n=Math.round(g+x),i=r=Math.round(v-g-x),u(g)?s.horiz?(i=h,r=v-s.bottom,e=n=w(e,c,c+s.width)):(e=c,n=b-s.right,i=r=w(i,h,h+s.height)):(a=!0,y=!1),t.path=a&&!y?null:l.renderer.crispLine(["M",e,i,"L",n,r],m||1)})),t.path},getLinearTickPositions:function(t,e,i){var n=a(Math.floor(e/t)*t);i=a(Math.ceil(i/t)*t);var r,o=[];if(a(n+t)===n&&(r=20),this.single)return[e];for(e=n;e<=i&&(o.push(e),(e=a(e+t,r))!==s);)var s=e;return o},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?f(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,n=t.minorTickInterval,r=[],o=t.pointRangePadding||0,a=t.min-o,s=(o=t.max+o)-a;if(s&&s/n<t.len/3)if(t.isLog)this.paddedTicks.forEach((function(e,i,o){i&&r.push.apply(r,t.getLogTickPositions(n,o[i-1],o[i],!0))}));else if(t.isDatetimeAxis&&"auto"===this.getMinorTickInterval())r=r.concat(t.getTimeTicks(t.normalizeTimeTickInterval(n),a,o,e.startOfWeek));else for(e=a+(i[0]-a)%n;e<=o&&e!==r[0];e+=n)r.push(e);return 0!==r.length&&t.trimTicks(r),r},adjustForMinRange:function(){var t,e,i,o,a=this.options,l=this.min,c=this.max;if(this.isXAxis&&void 0===this.minRange&&!this.isLog&&(s(a.min)||s(a.max)?this.minRange=null:(this.series.forEach((function(n){for(o=n.xData,e=n.xIncrement?1:o.length-1;0<e;e--)i=o[e]-o[e-1],(void 0===t||i<t)&&(t=i)})),this.minRange=Math.min(5*t,this.dataMax-this.dataMin))),c-l<this.minRange){var h=this.dataMax-this.dataMin>=this.minRange,u=this.minRange,d=(u-c+l)/2;d=[l-d,f(a.min,l-d)],h&&(d[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),c=[(l=n(d))+u,f(a.max,l+u)],h&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(c=r(c))-l<u&&(d[0]=c-u,d[1]=f(a.min,c-u),l=n(d))}this.min=l,this.max=c},getClosest:function(){var t;return this.categories?t=1:this.series.forEach((function(e){var i=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&s(i)&&n&&(t=s(t)?Math.min(t,i):i)})),t},nameToX:function(t){var e=h(this.categories),i=e?this.categories:this.names,n=t.options.x;if(t.series.requireSorting=!1,s(n)||(n=!1===this.options.uniqueNames?t.series.autoIncrement():e?i.indexOf(t.name):f(i.keys[t.name],-1)),-1===n){if(!e)var r=i.length}else r=n;return void 0!==r&&(this.names[r]=t.name,this.names.keys[t.name]=r),r},updateNames:function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(i,n){if(i&&i.options&&void 0!==i.name){var r=t.nameToX(i);void 0!==r&&r!==i.x&&(i.x=r,e.xData[n]=r)}}))})))},setAxisTranslation:function(t){var e=this,i=e.max-e.min,n=e.axisPointRange||0,r=0,o=0,a=e.linkedParent,s=!!e.categories,l=e.transA,c=e.isXAxis;if(c||s||n){var h=e.getClosest();a?(r=a.minPointOffset,o=a.pointRangePadding):e.series.forEach((function(t){var i=s?1:c?f(t.options.pointRange,h,0):e.axisPointRange||0,a=t.options.pointPlacement;n=Math.max(n,i),e.single&&!s||(t=A.xrange&&t instanceof A.xrange?!c:c,r=Math.max(r,t&&d(a)?0:i/2),o=Math.max(o,t&&"on"===a?0:i))})),a=e.ordinalSlope&&h?e.ordinalSlope/h:1,e.minPointOffset=r*=a,e.pointRangePadding=o*=a,e.pointRange=Math.min(n,e.single&&s?1:i),c&&(e.closestPointRange=h)}t&&(e.oldTransA=l),e.translationSlope=e.transA=l=e.staticScale||e.len/(i+o||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=l*r,_(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var i=this,n=i.chart,r=i.options,o=i.isLog,l=i.isDatetimeAxis,c=i.isXAxis,h=i.isLinked,d=r.maxPadding,p=r.minPadding,g=r.tickInterval,m=r.tickPixelInterval,y=i.categories,v=u(i.threshold)?i.threshold:null,b=i.softThreshold;l||y||h||this.getTickAmount();var x=f(i.userMin,r.min),w=f(i.userMax,r.max);if(h){i.linkedParent=n[i.coll][r.linkedTo];var S=i.linkedParent.getExtremes();i.min=f(S.min,S.dataMin),i.max=f(S.max,S.dataMax),r.type!==i.linkedParent.options.type&&t.error(11,1,n)}else{if(!b&&s(v))if(i.dataMin>=v)S=v,p=0;else if(i.dataMax<=v){var k=v;d=0}i.min=f(x,S,i.dataMin),i.max=f(w,k,i.dataMax)}o&&(i.positiveValuesOnly&&!e&&0>=Math.min(i.min,f(i.dataMin,i.min))&&t.error(10,1,n),i.min=a(i.log2lin(i.min),16),i.max=a(i.log2lin(i.max),16)),i.range&&s(i.max)&&(i.userMin=i.min=x=Math.max(i.dataMin,i.minFromRange()),i.userMax=w=i.max,i.range=null),_(i,"foundExtremes"),i.beforePadding&&i.beforePadding(),i.adjustForMinRange(),!(y||i.axisPointRange||i.usePercentage||h)&&s(i.min)&&s(i.max)&&(n=i.max-i.min)&&(!s(x)&&p&&(i.min-=n*p),!s(w)&&d&&(i.max+=n*d)),u(i.userMin)||(u(r.softMin)&&r.softMin<i.min&&(i.min=x=r.softMin),u(r.floor)&&(i.min=Math.max(i.min,r.floor))),u(i.userMax)||(u(r.softMax)&&r.softMax>i.max&&(i.max=w=r.softMax),u(r.ceiling)&&(i.max=Math.min(i.max,r.ceiling))),b&&s(i.dataMin)&&(v=v||0,!s(x)&&i.min<v&&i.dataMin>=v?i.min=i.options.minRange?Math.min(v,i.max-i.minRange):v:!s(w)&&i.max>v&&i.dataMax<=v&&(i.max=i.options.minRange?Math.max(v,i.min+i.minRange):v)),i.tickInterval=i.min===i.max||void 0===i.min||void 0===i.max?1:h&&!g&&m===i.linkedParent.options.tickPixelInterval?g=i.linkedParent.tickInterval:f(g,this.tickAmount?(i.max-i.min)/Math.max(this.tickAmount-1,1):void 0,y?1:(i.max-i.min)*m/Math.max(i.len,m)),c&&!e&&i.series.forEach((function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)})),i.setAxisTranslation(!0),i.beforeSetTickPositions&&i.beforeSetTickPositions(),i.postProcessTickInterval&&(i.tickInterval=i.postProcessTickInterval(i.tickInterval)),i.pointRange&&!g&&(i.tickInterval=Math.max(i.pointRange,i.tickInterval)),e=f(r.minTickInterval,i.isDatetimeAxis&&i.closestPointRange),!g&&i.tickInterval<e&&(i.tickInterval=e),l||o||g||(i.tickInterval=C(i.tickInterval,null,P(i.tickInterval),f(r.allowDecimals,!(.5<i.tickInterval&&5>i.tickInterval&&1e3<i.max&&9999>i.max)),!!this.tickAmount)),this.tickAmount||(i.tickInterval=i.unsquish()),this.setTickPositions()},setTickPositions:function(){var e=this.options,i=e.tickPositions,n=this.getMinorTickInterval(),r=e.tickPositioner,o=e.startOnTick,a=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&s(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=n=i&&i.slice(),!n&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(n=[this.min,this.max],t.error(19,!1,this.chart)):n=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),n.length>this.len&&((n=[n[0],n.pop()])[0]===n[1]&&(n.length=1)),this.tickPositions=n,r&&(r=r.apply(this,[this.min,this.max])))&&(this.tickPositions=n=r),this.paddedTicks=n.slice(0),this.trimTicks(n,o,a),this.isLinked||(this.single&&2>n.length&&!this.categories&&(this.min-=.5,this.max+=.5),i||r||this.adjustTickAmount()),_(this,"afterSetTickPositions")},trimTicks:function(t,e,i){var n=t[0],r=t[t.length-1],o=this.minPointOffset||0;if(_(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-o>t[0];)t.shift();if(i)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&s(n)&&!this.options.tickPositions&&t.push((r+n)/2)}},alignToOthers:function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||!1===i.startOnTick||!1===i.endOnTick||this.isLog||this.chart[this.coll].forEach((function(i){var n=i.options;n=[i.horiz?n.left:n.top,n.width,n.height,n.pane].join(),i.series.length&&(e[n]?t=!0:e[n]=1)})),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!s(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t,e=this.options,i=this.tickInterval,n=this.tickPositions,r=this.tickAmount,o=this.finalTickAmt,l=n&&n.length,c=f(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(l<r){for(t=this.min;n.length<r;)n.length%2||t===c?n.push(a(n[n.length-1]+i)):n.unshift(a(n[0]-i));this.transA*=(l-1)/(r-1),this.min=e.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=e.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else l>r&&(this.tickInterval*=2,this.setTickPositions());if(s(o)){for(i=e=n.length;i--;)(3===o&&1==i%2||2>=o&&0<i&&i<e-1)&&n.splice(i,1);this.finalTickAmt=void 0}}},setScale:function(){var t,e=this.series.some((function(t){return t.isDirtyData||t.isDirty||t.xAxis&&t.xAxis.isDirty}));this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(t=this.len!==this.oldAxisLength)||e||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=t||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks(),_(this,"afterSetScale")},setExtremes:function(t,e,i,n,r){var o=this,a=o.chart;i=f(i,!0),o.series.forEach((function(t){delete t.kdTree})),r=c(r,{min:t,max:e}),_(o,"setExtremes",r,(function(){o.userMin=t,o.userMax=e,o.eventArgs=r,i&&a.redraw(n)}))},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,r=this.options,o=Math.min(i,f(r.min,i)),a=Math.max(n,f(r.max,n));return _(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,r=t.newMax;e===this.min&&r===this.max||(this.allowZoomOutside||(s(i)&&(e<o&&(e=o),e>a&&(e=a)),s(n)&&(r<o&&(r=o),r>a&&(r=a))),this.displayBtn=void 0!==e||void 0!==r,this.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},setAxisSize:function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],n=this.horiz,r=this.width=Math.round(g(f(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),o=this.height=Math.round(g(f(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),a=this.top=Math.round(g(f(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(g(f(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-r-e,this.len=Math.max(n?r:o,0),this.pos=n?e:a},getExtremes:function(){var t=this.isLog;return{min:t?a(this.lin2log(this.min)):this.min,max:t?a(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=e?this.lin2log(this.min):this.min;return e=e?this.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){var e=(f(t,0)-90*this.side+720)%360;return _(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},tickSize:function(t){var e=this.options,i=e[t+"Length"],n=f(e[t+"Width"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(n&&i){"inside"===e[t+"Position"]&&(i=-i);var r=[i,n]}return _(this,"afterTickSize",t={tickSize:r}),t.tickSize},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,n=this.options.labels,r=this.horiz,o=this.tickInterval,l=o,c=this.len/(((this.categories?1:0)+this.max-this.min)/o),h=n.rotation,u=this.labelMetrics(),d=Number.MAX_VALUE,p=this.max-this.min,g=function(t){var e=t/(c||1);return(e=1<e?Math.ceil(e):1)*o>p&&1/0!==t&&1/0!==c&&p&&(e=Math.ceil(p/o)),a(e*o)};return r?(i=!n.staggerLines&&!n.step&&(s(h)?[h]:c<f(n.autoRotationLimit,80)&&n.autoRotation))&&i.forEach((function(i){if(i===h||i&&-90<=i&&90>=i){var n=(e=g(Math.abs(u.h/Math.sin(w*i))))+Math.abs(i/360);n<d&&(d=n,t=i,l=e)}})):n.step||(l=g(u.h)),this.autoRotation=i,this.labelRotation=f(t,h),l},getSlotWidth:function(t){var e=this.chart,i=this.horiz,n=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];return t&&t.slotWidth||i&&2>(n.step||0)&&!n.rotation&&(this.staggerLines||1)*this.len/r||!i&&(n.style&&parseInt(n.style.width,10)||o&&o-e.spacing[3]||.33*e.chartWidth)},renderUnsquish:function(){var t=this.chart,e=t.renderer,i=this.tickPositions,n=this.ticks,r=this.options.labels,o=r&&r.style||{},a=this.horiz,s=this.getSlotWidth(),l=Math.max(1,Math.round(s-2*(r.padding||5))),c={},h=this.labelMetrics(),u=r.style&&r.style.textOverflow,p=0;if(d(r.rotation)||(c.rotation=r.rotation||0),i.forEach((function(t){(t=n[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>p&&(p=t.label.textPxLength)})),this.maxLabelLength=p,this.autoRotation)p>l&&p>h.h?c.rotation=this.labelRotation:this.labelRotation=0;else if(s){var f=l;if(!u){var g="clip";for(l=i.length;!a&&l--;){var m=i[l];(m=n[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>s&&m.css({width:s+"px"}),m.getBBox().height>this.len/i.length-(h.h-h.f)&&(m.specificTextOverflow="ellipsis"))}}}c.rotation&&(f=p>.5*t.chartHeight?.33*t.chartHeight:p,u||(g="ellipsis")),(this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation))&&(c.align=this.labelAlign),i.forEach((function(t){var e=(t=n[t])&&t.label,i=o.width,r={};e&&(e.attr(c),t.shortenLabel?t.shortenLabel():f&&!i&&"nowrap"!==o.whiteSpace&&(f<e.textPxLength||"SPAN"===e.element.tagName)?(r.width=f,u||(r.textOverflow=e.specificTextOverflow||g),e.css(r)):e.styles&&e.styles.width&&!r.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=c.rotation)}),this),this.tickRotCorr=e.rotCorr(h.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&s(this.min)&&s(this.max)},addTitle:function(t){var e,i=this.chart.renderer,n=this.horiz,r=this.opposite,o=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(k(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||o.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](t)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new O(this,t)},getOffset:function(){var t,e=this,i=e.chart,n=i.renderer,r=e.options,o=e.tickPositions,a=e.ticks,l=e.horiz,c=e.side,h=i.inverted&&!e.isZAxis?[1,0,3,2][c]:c,u=0,d=0,g=r.title,m=r.labels,y=0,v=i.axisOffset;i=i.clipOffset;var b=[-1,1,1,-1][c],x=r.className,w=e.axisParent,S=e.hasData();if(e.showAxis=t=S||f(r.showEmpty,!0),e.staggerLines=e.horiz&&m.staggerLines,e.axisGroup||(e.gridGroup=n.g("grid").attr({zIndex:r.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(x||"")).add(w),e.axisGroup=n.g("axis").attr({zIndex:r.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(x||"")).add(w),e.labelGroup=n.g("axis-labels").attr({zIndex:m.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels "+(x||"")).add(w)),S||e.isLinked?(o.forEach((function(t,i){e.generateTick(t,i)})),e.renderUnsquish(),e.reserveSpaceDefault=0===c||2===c||{1:"left",3:"right"}[c]===e.labelAlign,f(m.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&o.forEach((function(t){y=Math.max(a[t].getLabelSize(),y)})),e.staggerLines&&(y*=e.staggerLines),e.labelOffset=y*(e.opposite?-1:1)):p(a,(function(t,e){t.destroy(),delete a[e]})),g&&g.text&&!1!==g.enabled&&(e.addTitle(t),t&&!1!==g.reserveSpace)){e.titleOffset=u=e.axisTitle.getBBox()[l?"height":"width"];var P=g.offset;d=s(P)?0:f(g.margin,l?5:10)}e.renderLine(),e.offset=b*f(r.offset,v[c]?v[c]+(r.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},n=0===c?-e.labelMetrics().h:2===c?e.tickRotCorr.y:0,d=Math.abs(y)+d,y&&(d=d-n+b*(l?f(m.y,e.tickRotCorr.y+8*b):m.x)),e.axisTitleMargin=f(P,d),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,o)),l=this.tickSize("tick"),v[c]=Math.max(v[c],e.axisTitleMargin+u+b*e.offset,d,o&&o.length&&l?l[0]+b*e.offset:0),r=r.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[h]=Math.max(i[h],r),_(this,"afterGetOffset")},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,r=this.horiz,o=this.left+(i?this.width:0)+n;return n=e.chartHeight-this.bottom-(i?this.height:0)+n,i&&(t*=-1),e.renderer.crispLine(["M",r?this.left:o,r?n:this.top,"L",r?e.chartWidth-this.right:o,r?n:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,n=this.len,r=this.options.title,o=t?e:i,a=this.opposite,s=this.offset,l=r.x||0,c=r.y||0,h=this.axisTitle,u=this.chart.renderer.fontMetrics(r.style&&r.style.fontSize,h);return h=Math.max(h.getBBox(null,0).height-u.h-1,0),n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[r.align],e=(t?i+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+[-h,h,u.f,-h][this.side],t={x:t?n+l:e+(a?this.width:0)+s+l,y:t?e+c-(a?this.height:0)+s:n+c},_(this,"afterGetTitlePosition",{titlePosition:t}),t},renderMinorTick:function(t){var e=this.chart.hasRendered&&u(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new O(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,n=this.ticks,r=this.chart.hasRendered&&u(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(n[t]||(n[t]=new O(this,t)),r&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},render:function(){var e,n,r=this,o=r.chart,a=r.options,s=r.isLog,l=r.isLinked,c=r.tickPositions,h=r.axisTitle,d=r.ticks,f=r.minorTicks,g=r.alternateBands,m=a.stackLabels,v=a.alternateGridColor,b=r.tickmarkOffset,x=r.axisLine,w=r.showAxis,S=i(o.renderer.globalAnimation);r.labelEdge.length=0,r.overlap=!1,[d,f,g].forEach((function(t){p(t,(function(t){t.isActive=!1}))})),(r.hasData()||l)&&(r.minorTickInterval&&!r.categories&&r.getMinorTickPositions().forEach((function(t){r.renderMinorTick(t)})),c.length&&(c.forEach((function(t,e){r.renderTick(t,e)})),b&&(0===r.min||r.single)&&(d[-1]||(d[-1]=new O(r,-1,null,!0)),d[-1].render(-1))),v&&c.forEach((function(i,a){n=void 0!==c[a+1]?c[a+1]+b:r.max-b,0==a%2&&i<r.max&&n<=r.max+(o.polar?-b:b)&&(g[i]||(g[i]=new t.PlotLineOrBand(r)),e=i+b,g[i].options={from:s?r.lin2log(e):e,to:s?r.lin2log(n):n,color:v},g[i].render(),g[i].isActive=!0)})),r._addedPlotLB||((a.plotLines||[]).concat(a.plotBands||[]).forEach((function(t){r.addPlotBandOrLine(t)})),r._addedPlotLB=!0)),[d,f,g].forEach((function(t){var e,i=[],n=S.duration;p(t,(function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))})),y((function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])}),t!==g&&o.hasRendered&&n?n:0)})),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[w?"show":"hide"](w)),h&&w&&(a=r.getTitlePosition(),u(a.y)?(h[h.isNew?"attr":"animate"](a),h.isNew=!1):(h.attr("y",-9999),h.isNew=!0)),m&&m.enabled&&r.renderStackTotals(),r.isDirty=!1,_(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(t){var e,i=this,n=i.stacks,r=i.plotLinesAndBands;if(_(this,"destroy",{keepEvents:t}),t||T(i),p(n,(function(t,e){l(t),n[e]=null})),[i.ticks,i.minorTicks,i.alternateBands].forEach((function(t){l(t)})),r)for(t=r.length;t--;)r[t].destroy();for(e in"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){i[t]&&(i[t]=i[t].destroy())})),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();p(i,(function(t,e){-1===i.keepProps.indexOf(e)&&delete i[e]}))},drawCrosshair:function(t,e){var i,n=this.crosshair,r=f(n.snap,!0),o=this.cross;if(_(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(s(e)||!r)){if(r?s(e)&&(i=f("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):i=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),s(i)){var a={value:e&&(this.isXAxis?e.x:f(e.stackY,e.y)),translatedValue:i};this.chart.polar&&c(a,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),a=this.getPlotLinePath(a)||null}if(!s(a))return void this.hideCrosshair();r=this.categories&&!this.isRadial,o||(this.cross=o=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+n.className).attr({zIndex:f(n.zIndex,2)}).add(),this.chart.styledMode||(o.attr({stroke:n.color||(r?b("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":f(n.width,1)}).css({"pointer-events":"none"}),n.dashStyle&&o.attr({dashstyle:n.dashStyle}))),o.show().attr({d:a}),r&&!n.width&&o.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();_(this,"afterDrawCrosshair",{e:t,point:e})},hideCrosshair:function(){this.cross&&this.cross.hide(),_(this,"afterHideCrosshair")}}),t.Axis=e})),e(i,"parts/DateTimeAxis.js",[i["parts/Globals.js"]],(function(t){var e=t.Axis,i=t.getMagnitude,n=t.normalizeTickInterval,r=t.timeUnits;e.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},e.prototype.normalizeTimeTickInterval=function(t,e){var o=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=o[o.length-1];var a,s=r[e[0]],l=e[1];for(a=0;a<o.length&&(e=o[a],s=r[e[0]],l=e[1],!(o[a+1]&&t<=(s*l[l.length-1]+r[o[a+1][0]])/2));a++);return s===r.year&&t<5*s&&(l=[1,2,5]),{unitRange:s,count:t=n(t/s,l,"year"===e[0]?Math.max(i(t/s),1):1),unitName:e[0]}}})),e(i,"parts/LogarithmicAxis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick;e=t.Axis;var n=t.getMagnitude,r=t.normalizeTickInterval;e.prototype.getLogTickPositions=function(t,e,o,a){var s=this.options,l=this.len,c=[];if(a||(this._minorAutoInterval=null),.5<=t)t=Math.round(t),c=this.getLinearTickPositions(t,e,o);else if(.08<=t){var h,u;for(l=Math.floor(e),s=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];l<o+1&&!u;l++){var d=s.length;for(h=0;h<d&&!u;h++){var p=this.log2lin(this.lin2log(l)*s[h]);p>e&&(!a||f<=o)&&void 0!==f&&c.push(f),f>o&&(u=!0);var f=p}}}else e=this.lin2log(e),o=this.lin2log(o),t=a?this.getMinorTickInterval():s.tickInterval,t=i("auto"===t?null:t,this._minorAutoInterval,s.tickPixelInterval/(a?5:1)*(o-e)/((a?l/this.tickPositions.length:l)||1)),t=r(t,null,n(t)),c=this.getLinearTickPositions(t,e,o).map(this.log2lin),a||(this._minorAutoInterval=t/5);return a||(this.tickInterval=t),c},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}})),e(i,"parts/PlotLineOrBand.js",[i["parts/Globals.js"],i["parts/Axis.js"],i["parts/Utilities.js"]],(function(t,e,i){var n=i.arrayMax,r=i.arrayMin,o=i.defined,a=i.destroyObjectProperties,s=i.erase,l=i.extend,c=i.objectEach,h=i.pick,u=t.merge;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){t.fireEvent(this,"render");var e=this,i=e.axis,n=i.horiz,r=e.options,a=r.label,s=e.label,l=r.to,d=r.from,p=r.value,f=o(d)&&o(l),g=o(p),m=e.svgElem,y=!m,v=[],b=r.color,x=h(r.zIndex,0),w=r.events;v={class:"highcharts-plot-"+(f?"band ":"line ")+(r.className||"")};var _={},S=i.chart.renderer,P=f?"bands":"lines";if(i.isLog&&(d=i.log2lin(d),l=i.log2lin(l),p=i.log2lin(p)),i.chart.styledMode||(g?(v.stroke=b||"#999999",v["stroke-width"]=h(r.width,1),r.dashStyle&&(v.dashstyle=r.dashStyle)):f&&(v.fill=b||"#e6ebf5",r.borderWidth&&(v.stroke=r.borderColor,v["stroke-width"]=r.borderWidth))),_.zIndex=x,P+="-"+x,(b=i.plotLinesAndBandsGroups[P])||(i.plotLinesAndBandsGroups[P]=b=S.g("plot-"+P).attr(_).add()),y&&(e.svgElem=m=S.path().attr(v).add(b)),g)v=i.getPlotLinePath({value:p,lineWidth:m.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!f)return;v=i.getPlotBandPath(d,l,r)}return(y||!m.d)&&v&&v.length?(m.attr({d:v}),w&&c(w,(function(t,i){m.on(i,(function(t){w[i].apply(e,[t])}))}))):m&&(v?(m.show(!0),m.animate({d:v})):m.d&&(m.hide(),s&&(e.label=s=s.destroy()))),a&&(o(a.text)||o(a.formatter))&&v&&v.length&&0<i.width&&0<i.height&&!v.isFlat?(a=u({align:n&&f&&"center",x:n?!f&&4:10,verticalAlign:!n&&f&&"middle",y:n?f?16:10:f?6:-4,rotation:n&&!f&&90},a),this.renderLabel(a,v,f,x)):s&&s.hide(),e},renderLabel:function(t,e,i,o){var a=this.label,s=this.axis.chart.renderer;a||((a={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=o,o=this.getLabelText(t),this.label=a=s.text(o,0,0,t.useHTML).attr(a).add(),this.axis.chart.styledMode||a.css(t.style)),s=e.xBounds||[e[1],e[4],i?e[6]:e[1]],e=e.yBounds||[e[2],e[5],i?e[7]:e[2]],i=r(s),o=r(e),a.align(t,!1,{x:i,y:o,width:n(s)-i,height:n(e)-o}),a.show(!0)},getLabelText:function(t){return o(t.formatter)?t.formatter.call(this):t.text},destroy:function(){s(this.axis.plotLinesAndBands,this),delete this.axis,a(this)}},l(e.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:this.options.acrossPanes}),n=this.getPlotLinePath({value:t,force:!0,acrossPanes:this.options.acrossPanes}),r=[],o=this.horiz,a=1;if(t=t<this.min&&e<this.min||t>this.max&&e>this.max,n&&i){if(t){var s=n.toString()===i.toString();a=0}for(t=0;t<n.length;t+=6)o&&i[t+1]===n[t+1]?(i[t+1]+=a,i[t+4]+=a):o||i[t+2]!==n[t+2]||(i[t+2]+=a,i[t+5]+=a),r.push("M",n[t+1],n[t+2],"L",n[t+4],n[t+5],i[t+4],i[t+5],i[t+1],i[t+2],"z"),r.isFlat=s}return r},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var n=new t.PlotLineOrBand(this,e).render(),r=this.userOptions;if(n){if(i){var o=r[i]||[];o.push(e),r[i]=o}this.plotLinesAndBands.push(n)}return n},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,r=e.length;r--;)e[r].id===t&&e[r].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach((function(e){for(r=e.length;r--;)e[r].id===t&&s(e,e[r])}))},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})})),e(i,"parts/Tooltip.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.defined,r=e.discardElement,o=e.extend,a=e.isNumber,s=e.isString,l=e.pick,c=e.splat,h=e.syncTimeout,u=t.doc,d=t.format,p=t.merge,f=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=l(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},cleanSplit:function(t){this.chart.series.forEach((function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)}))},applyFilter:function(){var t=this.chart;t.renderer.definition({tagName:"filter",id:"drop-shadow-"+t.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},getLabel:function(){var e,i=this,r=this.chart.renderer,o=this.chart.styledMode,a=this.options,s="tooltip"+(n(a.className)?" "+a.className:"");if(!this.label){if(this.outside&&(this.container=e=t.doc.createElement("div"),e.className="highcharts-tooltip-container",t.css(e,{position:"absolute",top:"1px",pointerEvents:a.style&&a.style.pointerEvents,zIndex:3}),t.doc.body.appendChild(e),this.renderer=r=new t.Renderer(e,0,0,{},void 0,void 0,r.styledMode)),this.split?this.label=r.g(s):(this.label=r.label("",0,0,a.shape||"callout",null,null,a.useHTML,null,s).attr({padding:a.padding,r:a.borderRadius}),o||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).shadow(a.shadow)),o&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),i.outside&&!i.split){var l={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(t,n){l[n].call(this.label,i.distance),e.style.left=t+"px"},this.label.ySetter=function(t,n){l[n].call(this.label,i.distance),e.style.top=t+"px"}}this.label.attr({zIndex:8}).add()}return this.label},update:function(t){this.destroy(),p(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,p(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),r(this.container)),t.clearTimeout(this.hideTimer),t.clearTimeout(this.tooltipTimeout)},move:function(e,i,n,r){var a=this,s=a.now,l=!1!==a.options.animation&&!a.isHidden&&(1<Math.abs(e-s.x)||1<Math.abs(i-s.y)),c=a.followPointer||1<a.len;o(s,{x:l?(2*s.x+e)/3:e,y:l?(s.y+i)/2:i,anchorX:c?void 0:l?(2*s.anchorX+n)/3:n,anchorY:c?void 0:l?(s.anchorY+r)/2:r}),a.getLabel().attr(s),l&&(t.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){a&&a.move(e,i,n,r)}),32))},hide:function(e){var i=this;t.clearTimeout(this.hideTimer),e=l(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=h((function(){i.getLabel()[e?"fadeOut":"hide"](),i.isHidden=!0}),e))},getAnchor:function(t,e){var i,n,r=this.chart,o=r.pointer,a=r.inverted,s=r.plotTop,l=r.plotLeft,h=0,u=0;return t=c(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),t=[e.chartX-r.plotLeft,e.chartY-s]):t[0].tooltipPos?t=t[0].tooltipPos:(t.forEach((function(t){i=t.series.yAxis,n=t.series.xAxis,h+=t.plotX+(!a&&n?n.left-l:0),u+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!a&&i?i.top-s:0)})),h/=t.length,u/=t.length,t=[a?r.plotWidth-u:h,this.shared&&!a&&1<t.length&&e?e.chartY-s:a?r.plotHeight-h:u]),t.map(Math.round)},getPosition:function(t,e,i){var n,r=this.chart,o=this.distance,a={},s=r.inverted&&i.h||0,c=this.outside,h=c?u.documentElement.clientWidth-2*o:r.chartWidth,d=c?Math.max(u.body.scrollHeight,u.documentElement.scrollHeight,u.body.offsetHeight,u.documentElement.offsetHeight,u.documentElement.clientHeight):r.chartHeight,p=r.pointer.getChartPosition(),f=r.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},y=function(n){var a="x"===n;return[n,a?h:d,a?t:e].concat(c?[a?g(t):m(e),a?p.left-o+g(i.plotX+r.plotLeft):p.top-o+m(i.plotY+r.plotTop),0,a?h:d]:[a?t:e,a?i.plotX+r.plotLeft:i.plotY+r.plotTop,a?r.plotLeft:r.plotTop,a?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},v=y("y"),b=y("x"),x=!this.followPointer&&l(i.ttBelow,!r.inverted==!!i.negative),w=function(t,e,i,n,r,l,c){var h="y"===t?m(o):g(o),u=(i-n)/2,d=n<r-o,p=r+o+n<e,f=r-h-i+u;if(r=r+h-u,x&&p)a[t]=r;else if(!x&&d)a[t]=f;else if(d)a[t]=Math.min(c-n,0>f-s?f:f-s);else{if(!p)return!1;a[t]=Math.max(l,r+s+i>e?r:r+s)}},_=function(t,e,i,n,r){var s;return r<o||r>e-o?s=!1:a[t]=r<i/2?1:r>e-n/2?e-n-2:r-i/2,s},S=function(t){var e=v;v=b,b=e,n=t},P=function(){!1!==w.apply(0,v)?!1!==_.apply(0,b)||n||(S(!0),P()):n?a.x=a.y=0:(S(!0),P())};return(r.inverted||1<this.len)&&S(),P(),a},defaultFormatter:function(t){var e=this.points||c(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},refresh:function(e,i){var n=this.chart,r=this.options,o=e,a={},s=[],h=r.formatter||this.defaultFormatter;a=this.shared;var u=n.styledMode;if(r.enabled){t.clearTimeout(this.hideTimer),this.followPointer=c(o)[0].series.tooltipOptions.followPointer;var d=this.getAnchor(o,i);i=d[0];var p=d[1];!a||o.series&&o.series.noSharedTooltip?a=o.getLabelConfig():(n.pointer.applyInactiveState(o),o.forEach((function(t){t.setState("hover"),s.push(t.getLabelConfig())})),(a={x:o[0].category,y:o[0].y}).points=s,o=o[0]),this.len=s.length,n=h.call(a,this),h=o.series,this.distance=l(h.tooltipOptions.distance,16),!1===n?this.hide():(this.split?this.renderSplit(n,c(e)):(e=this.getLabel(),r.style.width&&!u||e.css({width:this.chart.spacingBox.width}),e.attr({text:n&&n.join?n.join(""):n}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+l(o.colorIndex,h.colorIndex)),u||e.attr({stroke:r.borderColor||o.color||h.color||"#666666"}),this.updatePosition({plotX:i,plotY:p,negative:o.negative,ttBelow:o.ttBelow,h:d[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),t.fireEvent(this,"refresh")}},renderSplit:function(e,n){function r(t,e,n,r,o){return void 0===o&&(o=!0),n?(e=M?0:D,t=i(t-r/2,A.left,A.right-r)):(e-=E,t=i(t=o?t-r-k:t+k,o?t:A.left,A.right)),{x:t,y:e}}var a=this,c=a.chart,h=a.chart,u=h.chartWidth,d=h.chartHeight,p=h.plotHeight,f=h.plotLeft,g=h.plotTop,m=h.plotWidth,y=h.pointer,v=h.renderer,b=h.scrollablePixelsX;b=void 0===b?0:b;var x=h.scrollablePixelsY,w=void 0===x?0:x,_=(x=void 0===(x=h.scrollingContainer)?{scrollLeft:0,scrollTop:0}:x).scrollLeft,S=x.scrollTop,P=h.styledMode,k=a.distance,C=a.options,T=a.options.positioner,A={left:b?f:0,right:b?f+m-b:u,top:w?g:0,bottom:w?g+p-w:d},O=a.getLabel(),M=!(!c.xAxis[0]||!c.xAxis[0].opposite),E=g,I=0,D=p-w;s(e)&&(e=[!1,e]),e=e.slice(0,n.length+1).reduce((function(t,e,o){if(!1!==e&&""!==e){var s=(o=n[o-1]||{isHeader:!0,plotX:n[0].plotX,plotY:p,series:{}}).isHeader,c=s?a:o.series,h=c.tt,u=o.isHeader,d=o.series,m="highcharts-color-"+l(o.colorIndex,d.colorIndex,"none");h||(h={padding:C.padding,r:C.borderRadius},P||(h.fill=C.backgroundColor,h["stroke-width"]=C.borderWidth),h=v.label(null,null,null,C[u?"headerShape":"shape"]||"callout",null,null,C.useHTML).addClass(u?"highcharts-tooltip-header ":"highcharts-tooltip-box "+m).attr(h).add(O)),h.isActive=!0,h.attr({text:e}),P||h.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||o.color||d.color||"#333333"}),e=c.tt=h,c=(u=e.getBBox()).width+e.strokeWidth(),s&&(I=u.height,D+=I,M&&(E-=I)),d=void 0===(d=o.plotX)?0:d,m=void 0===(m=o.plotY)?0:m;var y=o.series;o.isHeader?(d=f+d-_,m=g+(p-w)/2):(h=y.xAxis,y=y.yAxis,d=h.pos+i(d,-k,h.len+k)-_,m=y.pos+i(m,0,y.len)-S),d=i(d,A.left-k,A.right+k),m=i(m,A.top,A.bottom),u=u.height+1,h=T?T.call(a,c,u,o):r(d,m,s,c),t.push({align:T?0:void 0,anchorX:d,anchorY:m,boxWidth:c,point:o,rank:l(h.rank,s?1:0),size:u,target:h.y,tt:e,x:h.x})}return t}),[]),!T&&e.some((function(t){return 0>t.x}))&&(e=e.map((function(t){var e=r(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return o(t,{target:e.y,x:e.x})}))),a.cleanSplit(),t.distribute(e,D,void 0),e.forEach((function(t){var e=t.pos;t.tt.attr({visibility:void 0===e?"hidden":"inherit",x:t.x,y:e+E,anchorX:t.anchorX,anchorY:t.anchorY})})),e=a.container,c=a.renderer,a.outside&&e&&c&&(h=O.getBBox(),c.setSize(h.width+h.x,h.height+h.y,!1),y=y.getChartPosition(),e.style.left=y.left+"px",e.style.top=y.top+"px")},updatePosition:function(e){var i=this.chart,n=i.pointer,r=this.getLabel(),o=e.plotX+i.plotLeft,a=e.plotY+i.plotTop;if(n=n.getChartPosition(),e=(this.options.positioner||this.getPosition).call(this,r.width,r.height,e),this.outside){var s=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(r.width+s,r.height+s,!1),(i=i.containerScaling)&&(t.css(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),o*=i.scaleX,a*=i.scaleY),o+=n.left-e.x,a+=n.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),o,a)},getDateFormat:function(t,e,i,n){var r=this.chart.time,o=r.dateFormat("%m-%d %H:%M:%S.%L",e),a={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond";for(l in f){if(t===f.week&&+r.dateFormat("%w",e)===i&&"00:00:00.000"===o.substr(6)){var l="week";break}if(f[l]>t){l=s;break}if(a[l]&&o.substr(a[l])!=="01-01 00:00:00.000".substr(a[l]))break;"week"!==l&&(s=l)}if(l)var c=r.resolveDTLFormat(n[l]).main;return c},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(e,i){var n=i?"footer":"header",r=e.series,o=r.tooltipOptions,s=o.xDateFormat,l=r.xAxis,c=l&&"datetime"===l.options.type&&a(e.key),h=o[n+"Format"];return i={isFooter:i,labelConfig:e},t.fireEvent(this,"headerFormatter",i,(function(t){c&&!s&&(s=this.getXDateFormat(e,o,l)),c&&s&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach((function(t){h=h.replace("{point."+t+"}","{point."+t+":"+s+"}")})),r.chart.styledMode&&(h=this.styledModeFormat(h)),t.text=d(h,{point:e,series:r},this.chart)})),i.text},bodyFormatter:function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},styledModeFormat:function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}})),e(i,"parts/Pointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,n=e.defined,r=e.extend,o=e.isNumber,a=e.isObject,s=e.objectEach,l=e.offset,c=e.pick,h=e.splat,u=t.addEvent,d=t.charts,p=t.color,f=t.css,g=t.find,m=t.fireEvent,y=t.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},y&&(t.tooltip=new y(t,e.tooltip),this.followTouchMove=c(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=this.chart,i=e.options.chart,n=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(n=c(i.pinchType,n)),this.zoomX=t=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},getChartPosition:function(){var t=this.chart;return t=t.scrollingContainer||t.container,this.chartPosition||(this.chartPosition=l(t))},normalize:function(t,e){var i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t;e||(e=this.getChartPosition());var n=i.pageX-e.left;return e=i.pageY-e.top,(i=this.chart.containerScaling)&&(n/=i.scaleX,e/=i.scaleY),r(t,{chartX:Math.round(n),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},findNearestKDPoint:function(t,e,i){var n;return t.forEach((function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,r),(r=a(t,!0))&&!(r=!a(n,!0))){r=n.distX-t.distX;var o=n.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(n.series.group&&n.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==s?s:n.series.index>t.series.index?-1:1)}r&&(n=t)})),n},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=t.series,n=i.xAxis;i=i.yAxis;var r=c(t.clientX,t.plotX),o=t.shapeArgs;return n&&i?e?{chartX:n.len+n.pos-r,chartY:i.len+i.pos-t.plotY}:{chartX:r+n.pos,chartY:t.plotY+i.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},getHoverData:function(t,e,i,n,r,o){var s,l=[];n=!(!n||!t);var h=e&&!e.stickyTracking?[e]:i.filter((function(t){return t.visible&&!(!r&&t.directTouch)&&c(t.options.enableMouseTracking,!0)&&t.stickyTracking}));return e=(s=n||!o?t:this.findNearestKDPoint(h,r,o))&&s.series,s&&(r&&!e.noSharedTooltip?(h=i.filter((function(t){return t.visible&&!(!r&&t.directTouch)&&c(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=g(t.points,(function(t){return t.x===s.x&&!t.isNull}));a(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),l.push(e))})):l.push(s)),{hoverPoint:s,hoverSeries:e,hoverPoints:l}},runPointActions:function(e,i){var n=this.chart,r=n.tooltip&&n.tooltip.options.enabled?n.tooltip:void 0,o=!!r&&r.shared,a=i||n.hoverPoint,s=a&&a.series||n.hoverSeries;a=(s=this.getHoverData(a,s,n.series,(!e||"touchmove"!==e.type)&&(!!i||s&&s.directTouch&&this.isDirectTouch),o,e)).hoverPoint;var l=s.hoverPoints;if(i=(s=s.hoverSeries)&&s.tooltipOptions.followPointer,o=o&&s&&!s.noSharedTooltip,a&&(a!==n.hoverPoint||r&&r.isHidden)){if((n.hoverPoints||[]).forEach((function(t){-1===l.indexOf(t)&&t.setState()})),n.hoverSeries!==s&&s.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach((function(t){t.setState("hover")})),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!a.series)return;a.firePointEvent("mouseOver"),n.hoverPoints=l,n.hoverPoint=a,r&&r.refresh(o?l:a,e)}else i&&r&&!r.isHidden&&(a=r.getAnchor([{}],e),r.updatePosition({plotX:a[0],plotY:a[1]}));this.unDocMouseMove||(this.unDocMouseMove=u(n.container.ownerDocument,"mousemove",(function(e){var i=d[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)}))),n.axes.forEach((function(i){var n=c(i.crosshair.snap,!0),r=n?t.find(l,(function(t){return t.series[i.coll]===i})):void 0;r||!n?i.drawCrosshair(e,r):i.hideCrosshair()}))},applyInactiveState:function(t){var e,i=[];(t||[]).forEach((function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},reset:function(t,e){var i=this.chart,n=i.hoverSeries,r=i.hoverPoint,o=i.hoverPoints,a=i.tooltip,s=a&&a.shared?o:r;t&&s&&h(s).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?a&&s&&h(s).length&&(a.refresh(s),a.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):r&&(r.setState(r.state,!0),i.axes.forEach((function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)})))):(r&&r.onMouseOut(),o&&o.forEach((function(t){t.setState()})),n&&n.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;n.series.forEach((function(r){i=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))})),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e=this.chart,i=e.options.chart,n=t.chartX,r=t.chartY,o=this.zoomHor,s=this.zoomVert,l=e.plotLeft,c=e.plotTop,h=e.plotWidth,u=e.plotHeight,d=this.selectionMarker,f=this.mouseDownX,g=this.mouseDownY,m=a(i.panning)?i.panning&&i.panning.enabled:i.panning,y=i.panKey&&t[i.panKey+"Key"];if((!d||!d.touch)&&(n<l?n=l:n>l+h&&(n=l+h),r<c?r=c:r>c+u&&(r=c+u),this.hasDragged=Math.sqrt(Math.pow(f-n,2)+Math.pow(g-r,2)),10<this.hasDragged)){var v=e.isInsidePlot(f-l,g-c);e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&v&&!y&&!d&&(this.selectionMarker=d=e.renderer.rect(l,c,o?1:h,s?1:u,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||d.attr({fill:i.selectionMarkerFill||p("#335cad").setOpacity(.25).get()})),d&&o&&(n-=f,d.attr({width:Math.abs(n),x:(0<n?0:n)+f})),d&&s&&(n=r-g,d.attr({height:Math.abs(n),y:(0<n?0:n)+g})),v&&!d&&m&&e.pan(t,i.panning)}},drop:function(t){var e=this,i=this.chart,a=this.hasPinched;if(this.selectionMarker){var s,l={originalEvent:t,xAxis:[],yAxis:[]},c=this.selectionMarker,h=c.attr?c.attr("x"):c.x,u=c.attr?c.attr("y"):c.y,d=c.attr?c.attr("width"):c.width,p=c.attr?c.attr("height"):c.height;(this.hasDragged||a)&&(i.axes.forEach((function(i){if(i.zoomEnabled&&n(i.min)&&(a||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var r=i.horiz,o="touchend"===t.type?i.minPixelPadding:0,c=i.toValue((r?h:u)+o);r=i.toValue((r?h+d:u+p)-o),l[i.coll].push({axis:i,min:Math.min(c,r),max:Math.max(c,r)}),s=!0}})),s&&m(i,"selection",l,(function(t){i.zoom(r(t,a?{animation:!1}:null))}))),o(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}i&&o(i.index)&&(f(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){2!==(t=this.normalize(t)).button&&(this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t))},onDocumentMouseUp:function(e){d[t.hoverChartIndex]&&d[t.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(e){var i=d[t.hoverChartIndex];i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0)},onContainerMouseMove:function(e){var i=this.chart;n(t.hoverChartIndex)&&d[t.hoverChartIndex]&&d[t.hoverChartIndex].mouseIsDown||(t.hoverChartIndex=i.index),(e=this.normalize(e)).preventDefault||(e.returnValue=!1),"mousedown"===i.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)||i.openMenu||this.runPointActions(e)},inClass:function(t,e){for(var n;t;){if(n=i(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries;t=t.relatedTarget||t.toElement,this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,o=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(m(i.series,"click",r(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(r(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-o)&&m(e,"click",t)))},setDOMEvents:function(){var e=this,i=e.chart.container,n=i.ownerDocument;i.onmousedown=function(t){e.onContainerMouseDown(t)},i.onmousemove=function(t){e.onContainerMouseMove(t)},i.onclick=function(t){e.onContainerClick(t)},this.unbindContainerMouseLeave=u(i,"mouseleave",e.onContainerMouseLeave),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=u(n,"mouseup",e.onDocumentMouseUp)),t.hasTouch&&(u(i,"touchstart",(function(t){e.onContainerTouchStart(t)})),u(i,"touchmove",(function(t){e.onContainerTouchMove(t)})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=u(n,"touchend",e.onDocumentTouchEnd)))},destroy:function(){var e=this;e.unDocMouseMove&&e.unDocMouseMove(),this.unbindContainerMouseLeave(),t.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),s(e,(function(t,i){e[i]=null}))}}})),e(i,"parts/TouchPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.extend,n=e.pick,r=t.charts,o=t.noop;i(t.Pointer.prototype,{pinchTranslate:function(t,e,i,n,r,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,n,r,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,n,r,o)},pinchTranslateDirection:function(t,e,i,n,r,o,a,s){var l,c,h=this.chart,u=t?"x":"y",d=t?"X":"Y",p="chart"+d,f=t?"width":"height",g=h["plot"+(t?"Left":"Top")],m=s||1,y=h.inverted,v=h.bounds[t?"h":"v"],b=1===e.length,x=e[0][p],w=i[0][p],_=!b&&e[1][p],S=!b&&i[1][p];if((i=function(){!b&&20<Math.abs(x-_)&&(m=s||Math.abs(w-S)/Math.abs(x-_)),c=(g-w)/m+x,l=h["plot"+(t?"Width":"Height")]/m})(),(e=c)<v.min){e=v.min;var P=!0}else e+l>v.max&&(e=v.max-l,P=!0);P?(w-=.8*(w-a[u][0]),b||(S-=.8*(S-a[u][1])),i()):a[u]=[w,S],y||(o[u]=c-g,o[f]=l),o=y?1/m:m,r[f]=l,r[u]=e,n[y?t?"scaleY":"scaleX":"scale"+d]=m,n["translate"+d]=o*g+(w-o*x)},pinch:function(t){var e=this,r=e.chart,a=e.pinchDown,s=t.touches,l=s.length,c=e.lastValidTouch,h=e.hasZoom,u=e.selectionMarker,d={},p=1===l&&(e.inClass(t.target,"highcharts-tracker")&&r.runTrackerClick||e.runChartClick),f={};1<l&&(e.initiated=!0),h&&e.initiated&&!p&&t.preventDefault(),[].map.call(s,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(s,(function(t,e){a[e]={chartX:t.chartX,chartY:t.chartY}})),c.x=[a[0].chartX,a[1]&&a[1].chartX],c.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach((function(t){if(t.zoomEnabled){var e=r.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,o=t.toPixels(Math.min(n(t.options.min,t.dataMin),t.dataMin)),a=t.toPixels(Math.max(n(t.options.max,t.dataMax),t.dataMax)),s=Math.max(o,a);e.min=Math.min(t.pos,Math.min(o,a)-i),e.max=Math.max(t.pos+t.len,s+i)}})),e.res=!0):e.followTouchMove&&1===l?this.runPointActions(e.normalize(t)):a.length&&(u||(e.selectionMarker=u=i({destroy:o,touch:!0},r.plotBox)),e.pinchTranslate(a,s,d,u,f,c),e.hasPinched=h,e.scaleGroups(d,f),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(e,i){var r=this.chart;if(r.index!==t.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),t.hoverChartIndex=r.index,1===e.touches.length)if(e=this.normalize(e),r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop)&&!r.openMenu){if(i&&this.runPointActions(e),"touchmove"===e.type)var o=!!(i=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2));n(o,!0)&&this.pinch(e)}else i&&this.reset();else 2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(e){r[t.hoverChartIndex]&&r[t.hoverChartIndex].pointer.drop(e)}})})),e(i,"parts/MSPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.extend,n=e.objectEach;e=e.wrap;var r=t.addEvent,o=t.charts,a=t.css,s=t.doc,l=t.noop,c=t.Pointer,h=t.removeEvent,u=t.win;if(!t.hasTouch&&(u.PointerEvent||u.MSPointerEvent)){var d={},p=!!u.PointerEvent,f=function(){var t=[];return t.item=function(t){return this[t]},n(d,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t},g=function(e,i,n,r){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!o[t.hoverChartIndex]||(r(e),(r=o[t.hoverChartIndex].pointer)[i]({type:n,target:e.currentTarget,preventDefault:l,touches:f()}))};i(c.prototype,{onContainerPointerDown:function(t){g(t,"onContainerTouchStart","touchstart",(function(t){d[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},onContainerPointerMove:function(t){g(t,"onContainerTouchMove","touchmove",(function(t){d[t.pointerId]={pageX:t.pageX,pageY:t.pageY},d[t.pointerId].target||(d[t.pointerId].target=t.currentTarget)}))},onDocumentPointerUp:function(t){g(t,"onDocumentTouchEnd","touchend",(function(t){delete d[t.pointerId]}))},batchMSEvents:function(t){t(this.chart.container,p?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,p?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(s,p?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),e(c.prototype,"init",(function(t,e,i){t.call(this,e,i),this.hasZoom&&a(e.container,{"-ms-touch-action":"none","touch-action":"none"})})),e(c.prototype,"setDOMEvents",(function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(r)})),e(c.prototype,"destroy",(function(t){this.batchMSEvents(h),t.call(this)}))}})),e(i,"parts/Legend.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,n=e.discardElement,r=e.isNumber,o=e.pick,a=e.relativeLength,s=e.setAnimation,l=e.syncTimeout;e=e.wrap;var c=t.addEvent,h=t.css,u=t.fireEvent,d=t.isFirefox,p=t.marginNames,f=t.merge,g=t.stableSort,m=t.win;t.Legend=function(t,e){this.init(t,e)},t.Legend.prototype={init:function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),c(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=c(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},setOptions:function(t){var e=o(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=f(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=o(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted},update:function(t,e){var i=this.chart;this.setOptions(f(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,o(e,!0)&&i.redraw(),u(this,"afterUpdate")},colorizeItem:function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,n=t.legendItem,r=t.legendLine,o=t.legendSymbol,a=this.itemHiddenStyle.color;i=e?i.itemStyle.color:a;var s=e&&t.color||a,l=t.options&&t.options.marker,c={fill:s};n&&n.css({fill:i,color:i}),r&&r.attr({stroke:s}),o&&(l&&o.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=a)),o.attr(c))}u(this,"afterColorizeItem",{item:t,visible:e})},positionItems:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},positionItem:function(t){var e=this.options,n=e.symbolPadding;e=!e.rtl;var r=t._legendItemPos,o=r[0];r=r[1];var a=t.checkbox;(t=t.legendGroup)&&t.element&&t[i(t.translateY)?"animate":"attr"]({translateX:e?o:this.legendWidth-o-2*n-4,translateY:r}),a&&(a.x=o,a.y=r)},destroyItem:function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&n(t.checkbox)},destroy:function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},positionCheckboxes:function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var n=t.translateY;this.allItems.forEach((function(r){var o=r.checkbox;if(o){var a=n+i+o.y+(this.scrollOffset||0)+3;h(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>n-6&&a<n+e-6?"":"none"})}}),this)}},renderTitle:function(){var t=this.options,e=this.padding,i=t.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},setText:function(e){var i=this.options;e.legendItem.attr({text:i.labelFormat?t.format(i.labelFormat,e,this.chart):i.labelFormatter.call(e)})},renderItem:function(t){var e=this.chart,i=e.renderer,n=this.options,r=this.symbolWidth,a=n.symbolPadding,s=this.itemStyle,l=this.itemHiddenStyle,c="horizontal"===n.layout?o(n.itemDistance,20):0,h=!n.rtl,u=t.legendItem,d=!t.series,p=!d&&t.series.drawLegendSymbol?t.series:t,g=p.options;c=r+a+c+((g=this.createCheckboxForItem&&g&&g.showCheckbox)?20:0);var m=n.useHTML,y=t.options.className;u||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+t.colorIndex+(y?" "+y:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=u=i.text("",h?r+a:-a,this.baseline||0,m),e.styledMode||u.css(f(t.visible?s:l)),u.attr({align:h?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:s.fontSize,u),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,u.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,p.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,u,m)),g&&!t.checkbox&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&s.width||u.css({width:(n.itemWidth||this.widthOption||e.spacingBox.width)-c}),this.setText(t),e=u.getBBox(),t.itemWidth=t.checkboxOffset=n.itemWidth||t.legendItemWidth||e.width+c,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},layoutItem:function(t){var e=this.options,i=this.padding,n="horizontal"===e.layout,r=t.itemHeight,a=this.itemMarginBottom,s=this.itemMarginTop,l=n?o(e.itemDistance,20):0,c=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>c?this.maxItemWidth:t.itemWidth,n&&this.itemX-i+e>c&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=s+this.itemY+a,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=e:(this.itemY+=s+r+a,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(t.checkbox?0:l):e)+i,this.offsetWidth)},getAllItems:function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&o(n.showInLegend,!i(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),u(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var n=this.chart,r=this.options,a=this.getAlignment();a&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(s,l){s.test(a)&&!i(t[l])&&(n[p[l]]=Math.max(n[p[l]],n.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*r[l%2?"x":"y"]+o(r.margin,12)+e[l]+(n.titleOffset[l]||0)))}))},proximatePositions:function(){var e=this.chart,i=[],n="left"===this.options.align;this.allItems.forEach((function(o){var a=n;if(o.yAxis&&o.points){o.xAxis.options.reversed&&(a=!a);var s=t.find(a?o.points:o.points.slice(0).reverse(),(function(t){return r(t.plotY)}));a=this.itemMarginTop+o.legendItem.getBBox().height+this.itemMarginBottom;var l=o.yAxis.top-e.plotTop;o.visible?(s=s?s.plotY:o.yAxis.height,s+=l-.3*a):s=l+o.yAxis.height,i.push({target:s,size:a,item:o})}}),this),t.distribute(i,e.plotHeight),i.forEach((function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos}))},render:function(){var t,e=this.chart,i=e.renderer,n=this.group,r=this.box,o=this.options,s=this.padding;this.itemX=s,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=a(o.width,e.spacingBox.width-s);var l=e.spacingBox.width-2*s-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(l/=2),this.maxLegendWidth=this.widthOption||l,n||(this.group=n=i.g("legend").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),l=this.getAllItems(),g(l,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),o.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),l=(this.widthOption||this.offsetWidth)+s;var c=this.lastItemY+this.lastLineHeight+this.titleHeight;c=this.handleOverflow(c),c+=s,r||(this.box=r=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(n),r.isNew=!0),e.styledMode||r.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<l&&0<c&&(r[r.isNew?"attr":"animate"](r.crisp.call({},{x:0,y:0,width:l,height:c},r.strokeWidth())),r.isNew=!1),r[t?"show":"hide"](),e.styledMode&&"none"===n.getStyle("display")&&(l=c=0),this.legendWidth=l,this.legendHeight=c,t&&(r=(i=e.spacingBox).y,/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?r+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(r-=e.titleOffset[2]),r!==i.y&&(i=f(i,{y:r})),n.align(f(o,{width:l,height:c,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,i)),this.proximate||this.positionItems(),u(this,"afterRender")},handleOverflow:function(t){var e=this,i=this.chart,n=i.renderer,r=this.options,a=r.y,s=this.padding;a=i.spacingBox.height+("top"===r.verticalAlign?-a:a)-s;var l,c,h=r.maxHeight,u=this.clipRect,d=r.navigation,p=o(d.animation,!0),f=d.arrowSize||12,g=this.nav,m=this.pages,y=this.allItems,v=function(t){"number"==typeof t?u.attr({height:t}):u&&(e.clipRect=u.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+s+"px,9999px,"+(s+t)+"px,0)":"auto")},b=function(t){return e[t]=n.circle(0,0,1.3*f).translate(f/2,f/2).add(g),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]};return"horizontal"!==r.layout||"middle"===r.verticalAlign||r.floating||(a/=2),h&&(a=Math.min(a,h)),m.length=0,t>a&&!1!==d.enabled?(this.clipHeight=l=Math.max(a-20-this.titleHeight-s,0),this.currentPage=o(this.currentPage,1),this.fullHeight=t,y.forEach((function(t,e){var i=t._legendItemPos[1],n=Math.round(t.legendItem.getBBox().height),r=m.length;(!r||i-m[r-1]>l&&(c||i)!==m[r-1])&&(m.push(c||i),r++),t.pageIx=r-1,c&&(y[e-1].pageIx=r-1),e===y.length-1&&i+n-m[r-1]>l&&i!==c&&(m.push(i),t.pageIx=r),i!==c&&(c=i)})),u||(u=e.clipRect=n.clipRect(0,s,9999,0),e.contentGroup.clip(u)),v(l),g||(this.nav=g=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,f,f).add(g),b("upTracker").on("click",(function(){e.scroll(-1,p)})),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(d.style),this.pager.add(g),this.down=n.symbol("triangle-down",0,0,f,f).add(g),b("downTracker").on("click",(function(){e.scroll(1,p)}))),e.scroll(0),t=a):g&&(v(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(e,i){var n=this,r=this.chart,a=this.pages,c=a.length,h=this.currentPage+e;e=this.clipHeight;var d=this.options.navigation,p=this.pager,f=this.padding;h>c&&(h=c),0<h&&(void 0!==i&&s(i,r),this.nav.attr({translateX:f,translateY:e+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),p.attr({text:h+"/"+c}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:h===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),r.styledMode||(this.up.attr({fill:1===h?d.inactiveColor:d.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===c?d.inactiveColor:d.activeColor}),this.downTracker.css({cursor:h===c?"default":"pointer"})),this.scrollOffset=-a[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),i=t.animObject(o(i,r.renderer.globalAnimation,!0)),l((function(){u(n,"afterScroll",{currentPage:h})}),i.duration||0))}},t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,n=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(n?(t.symbolWidth-i)/2:0,t.baseline-i+1,n?i:t.symbolWidth,i,o(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,i=e.marker,n=t.symbolWidth,r=t.symbolHeight,a=r/2,s=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={};this.chart.styledMode||(c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle)),this.legendLine=s.path(["M",0,t,"L",n,t]).addClass("highcharts-graph").attr(c).add(l),i&&!1!==i.enabled&&n&&(e=Math.min(o(i.radius,a),a),0===this.symbol.indexOf("url")&&(i=f(i,{width:r,height:r}),e=0),this.legendSymbol=i=s.symbol(this.symbol,n/2-e,t-e,2*e,2*e,i).addClass("highcharts-point").add(l),i.isMarker=!0)}},(/Trident\/7\.0/.test(m.navigator&&m.navigator.userAgent)||d)&&e(t.Legend.prototype,"positionItem",(function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),i.bubbleLegend||setTimeout(n)}))})),e(i,"parts/Chart.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.animObject,n=e.attr,r=e.defined,o=e.discardElement,a=e.erase,s=e.extend,l=e.isArray,c=e.isNumber,h=e.isObject,u=e.isString,d=e.numberFormat,p=e.objectEach,f=e.pick,g=e.pInt,m=e.relativeLength,y=e.setAnimation,v=e.splat,b=e.syncTimeout,x=t.addEvent,w=t.animate,_=t.doc,S=t.Axis,P=t.createElement,k=t.defaultOptions,C=t.charts,T=t.css,A=t.find,O=t.fireEvent,M=t.Legend,E=t.marginNames,I=t.merge,D=t.Pointer,L=t.removeEvent,j=t.seriesTypes,N=t.win,F=t.Chart=function(){this.getArgs.apply(this,arguments)};t.chart=function(t,e,i){return new F(t,e,i)},s(F.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(u(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(e,i){var n,r=e.series,o=e.plotOptions||{};O(this,"init",{args:arguments},(function(){e.series=null,n=I(k,e),p(n.plotOptions,(function(t,e){h(t)&&(t.tooltip=o[e]&&I(o[e].tooltip)||void 0)})),n.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,n.series=e.series=r,this.userOptions=e;var a=n.chart,s=a.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=i,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new t.Time(e.time):t.time,this.numberFormatter=a.numberFormatter||d,this.styledMode=a.styledMode,this.hasCartesianSeries=a.showAxes;var l=this;l.index=C.length,C.push(l),t.chartCount++,s&&p(s,(function(e,i){t.isFunction(e)&&x(l,i,e)})),l.xAxis=[],l.yAxis=[],l.pointCount=l.colorCounter=l.symbolCounter=0,O(l,"afterInit"),l.firstRender()}))},initSeries:function(e){var i=this.options.chart;i=e.type||i.type||i.defaultSeriesType;var n=j[i];return n||t.error(17,!0,this,{missingModuleFor:i}),(i=new n).init(this,e),i},setSeriesData:function(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))},getSeriesOrderByLinks:function(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))},orderSeries:function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},isInsidePlot:function(t,e,i){var n=i?e:t;return t=i?t:e,0<=n&&n<=this.plotWidth&&0<=t&&t<=this.plotHeight},redraw:function(t){O(this,"beforeRedraw");var e=this.axes,i=this.series,n=this.pointer,r=this.legend,o=this.userOptions.legend,a=this.isDirtyLegend,l=this.hasCartesianSeries,c=this.isDirtyBox,h=this.renderer,u=h.isHidden(),d=[];for(this.setResponsive&&this.setResponsive(!1),y(t,this),u&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var p=i[t];if(p.options.stacking){var f=!0;if(p.isDirty){var g=!0;break}}}if(g)for(t=i.length;t--;)(p=i[t]).options.stacking&&(p.isDirty=!0);i.forEach((function(t){t.isDirty&&("point"===t.options.legendType?(t.updateTotals&&t.updateTotals(),a=!0):o&&(o.labelFormatter||o.labelFormat)&&(a=!0)),t.isDirtyData&&O(t,"updatedData")})),a&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),f&&this.getStacks(),l&&e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),l&&(e.forEach((function(t){t.isDirty&&(c=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,d.push((function(){O(t,"afterSetExtremes",s(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(c||f)&&t.redraw()}))),c&&this.drawChartBox(),O(this,"predraw"),i.forEach((function(t){(c||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),n&&n.reset(!0),h.draw(),O(this,"redraw"),O(this,"render"),u&&this.temporaryDisplay(!0),d.forEach((function(t){t.call()}))},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,n=this.series,r=A(this.axes,e)||A(this.series,e);for(i=0;!r&&i<n.length;i++)r=A(n[i].points||[],e);return r},getAxes:function(){var t=this,e=this.options,i=e.xAxis=v(e.xAxis||{});e=e.yAxis=v(e.yAxis||{}),O(this,"getAxes"),i.forEach((function(t,e){t.index=e,t.isX=!0})),e.forEach((function(t,e){t.index=e})),i.concat(e).forEach((function(e){new S(t,e)})),O(this,"afterGetAxes")},getSelectedPoints:function(){var t=[];return this.series.forEach((function(e){t=t.concat((e[e.hasGroupedData?"points":"data"]||[]).filter((function(t){return f(t.selectedStaging,t.selected)})))})),t},getSelectedSeries:function(){return this.series.filter((function(t){return t.selected}))},setTitle:function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},applyDescription:function(t,e){var i=this,n="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};n=this.options[t]=I(!this.styledMode&&{style:n},this.options[t],e);var r=this[t];r&&e&&(this[t]=r=r.destroy()),n&&!r&&((r=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||r.css(n.style),this[t]=r)},layOutTitles:function(t){var e=[0,0,0],i=this.renderer,n=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var r=this[t],o=this.options[t],a=o.verticalAlign||"top";if(t="title"===t?-3:"top"===a?e[0]+2:0,r){if(!this.styledMode)var l=o.style.fontSize;l=i.fontMetrics(l,r).b,r.css({width:(o.width||n.width+(o.widthAdjust||0))+"px"});var c=Math.round(r.getBBox(o.useHTML).height);r.align(s({y:"bottom"===a?l:t+l,height:c},o),!1,"spacingBox"),o.floating||("top"===a?e[0]=Math.ceil(e[0]+c):"bottom"===a&&(e[2]=Math.ceil(e[2]+c)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,O(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&f(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=this.options.chart,i=e.width;e=e.height;var n=this.renderTo;r(i)||(this.containerWidth=t.getStyle(n,"width")),r(e)||(this.containerHeight=t.getStyle(n,"height")),this.chartWidth=Math.max(0,i||this.containerWidth||600),this.chartHeight=Math.max(0,m(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(e){var i=this.renderTo;if(e)for(;i&&i.style;)i.hcOrigStyle&&(t.css(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(_.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(_.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,_.body.appendChild(i)),("none"===t.getStyle(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),t.css(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==_.body););},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var e,i,r=this.options,o=r.chart,a=this.renderTo,l=t.uniqueKey();a||(this.renderTo=a=o.renderTo),u(a)&&(this.renderTo=a=_.getElementById(a)),a||t.error(13,!0,this);var h=g(n(a,"data-highcharts-chart"));c(h)&&C[h]&&C[h].hasRendered&&C[h].destroy(),n(a,"data-highcharts-chart",this.index),a.innerHTML="",o.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize(),h=this.chartWidth;var d=this.chartHeight;if(T(a,{overflow:"hidden"}),this.styledMode||(e=s({position:"relative",overflow:"hidden",width:h+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},o.style)),this.container=a=P("div",{id:l},e,a),this._cursor=a.style.cursor,this.renderer=new(t[o.renderer]||t.Renderer)(a,h,d,null,o.forExport,r.exporting&&r.exporting.allowHTML,this.styledMode),this.setClassName(o.className),this.styledMode)for(i in r.defs)this.renderer.definition(r.defs[i]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,O(this,"afterGetContainer")},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!r(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+e[0])),n[2]&&!r(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),O(this,"getMargins"),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,n=t.margin,o=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?o(t.axes):i&&i.length&&o(i),E.forEach((function(i,o){r(n[o])||(t[i]+=e[o])})),t.setChartSize()},reflow:function(e){var i=this,n=i.options.chart,o=i.renderTo,a=r(n.width)&&r(n.height),s=n.width||t.getStyle(o,"width");n=n.height||t.getStyle(o,"height"),o=e?e.target:N,a||i.isPrinting||!s||!n||o!==N&&o!==_||(s===i.containerWidth&&n===i.containerHeight||(t.clearTimeout(i.reflowTimeout),i.reflowTimeout=b((function(){i.container&&i.setSize(void 0,void 0,!1)}),e?100:0)),i.containerWidth=s,i.containerHeight=n)},setReflow:function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=x(N,"resize",(function(t){e.options&&e.reflow(t)})),x(this,"destroy",this.unbindReflow))},setSize:function(t,e,n){var r=this,o=r.renderer;if(r.isResizing+=1,y(n,r),r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==t&&(r.options.chart.width=t),void 0!==e&&(r.options.chart.height=e),r.getChartSize(),!r.styledMode){var a=o.globalAnimation;(a?w:T)(r.container,{width:r.chartWidth+"px",height:r.chartHeight+"px"},a)}r.setChartSize(!0),o.setSize(r.chartWidth,r.chartHeight,n),r.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(n),r.oldChartHeight=null,O(r,"resize"),b((function(){r&&O(r,"endResize",null,(function(){--r.isResizing}))}),i(a).duration||0)},setChartSize:function(t){var e,i,n,r,o=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,h=this.spacing,u=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(s-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(l-i-this.marginBottom)),this.plotSizeX=o?r:n,this.plotSizeY=o?n:r,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:h[3],y:h[0],width:s-h[3]-h[1],height:l-h[0]-h[2]},this.plotBox=a.plotBox={x:e,y:i,width:n,height:r},s=2*Math.floor(this.plotBorderWidth/2),o=Math.ceil(Math.max(s,u[3])/2),a=Math.ceil(Math.max(s,u[0])/2),this.clipBox={x:o,y:a,width:Math.floor(this.plotSizeX-Math.max(s,u[1])/2-o),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(s,u[2])/2-a))},t||this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),O(this,"afterSetChartSize",{skipAxes:t})},resetMargins:function(){O(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(i){var n=e[i],r=h(n)?n:[n,n,n,n];["Top","Right","Bottom","Left"].forEach((function(n,o){t[i][o]=f(e[i+n],r[o])}))})),E.forEach((function(e,i){t[e]=f(t.margin[i],t.spacing[i])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,n=this.chartWidth,r=this.chartHeight,o=this.chartBackground,a=this.plotBackground,s=this.plotBorder,l=this.styledMode,c=this.plotBGImage,h=e.backgroundColor,u=e.plotBackgroundColor,d=e.plotBackgroundImage,p=this.plotLeft,f=this.plotTop,g=this.plotWidth,m=this.plotHeight,y=this.plotBox,v=this.clipRect,b=this.clipBox,x="animate";if(o||(this.chartBackground=o=i.rect().addClass("highcharts-background").add(),x="attr"),l)var w=t=o.strokeWidth();else t=(w=e.borderWidth||0)+(e.shadow?8:0),h={fill:h||"none"},(w||o["stroke-width"])&&(h.stroke=e.borderColor,h["stroke-width"]=w),o.attr(h).shadow(e.shadow);o[x]({x:t/2,y:t/2,width:n-t-w%2,height:r-t-w%2,r:e.borderRadius}),x="animate",a||(x="attr",this.plotBackground=a=i.rect().addClass("highcharts-plot-background").add()),a[x](y),l||(a.attr({fill:u||"none"}).shadow(e.plotShadow),d&&(c?(d!==c.attr("href")&&c.attr("href",d),c.animate(y)):this.plotBGImage=i.image(d,p,f,g,m).add())),v?v.animate({width:b.width,height:b.height}):this.clipRect=i.clipRect(b),x="animate",s||(x="attr",this.plotBorder=s=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l||s.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),s[x](s.crisp({x:p,y:f,width:g,height:m},-s.strokeWidth())),this.isDirtyBox=!1,O(this,"afterDrawChartBox")},propFromSeries:function(){var t,e,i,n=this,r=n.options.chart,o=n.options.series;["inverted","angular","polar"].forEach((function(a){for(t=j[r.type||r.defaultSeriesType],i=r[a]||t&&t.prototype[a],e=o&&o.length;!i&&e--;)(t=j[o[e].type])&&t.prototype[a]&&(i=!0);n[a]=i}))},linkSeries:function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var i=e.options.linkedTo;u(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=f(e.options.visible,i.options.visible,e.visible))})),O(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach((function(t){t.translate(),t.render()}))},renderLabels:function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(i){var n=s(e.style,i.style),r=g(n.left)+t.plotLeft,o=g(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(i.html,r,o).attr({zIndex:2}).css(n).add()}))},render:function(){var t=this.axes,e=this.colorAxis,i=this.renderer,n=this.options,r=0,o=function(t){t.forEach((function(t){t.visible&&t.render()}))};this.setTitle(),this.legend=new M(this,n.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),n=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return r=21,!0}));var a=this.plotHeight=Math.max(this.plotHeight-r,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var s=1.1<n/this.plotWidth,l=1.05<a/this.plotHeight;(s||l)&&(t.forEach((function(t){(t.horiz&&s||!t.horiz&&l)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?o(t):e&&e.length&&o(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=I(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){t.href&&(N.location.href=t.href)})).attr({align:t.position.align,zIndex:8}),e.styledMode||this.credits.css(t.style),this.credits.add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},updateContainerScaling:function(){var t=this.container;if(t.offsetWidth&&t.offsetHeight&&t.getBoundingClientRect){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth;t=e.height/t.offsetHeight,1!==i||1!==t?this.containerScaling={scaleX:i,scaleY:t}:delete this.containerScaling}},destroy:function(){var e,i=this,n=i.axes,r=i.series,s=i.container,l=s&&s.parentNode;for(O(i,"destroy"),i.renderer.forExport?a(C,i):C[i.index]=void 0,t.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),L(i),e=n.length;e--;)n[e]=n[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=r.length;e--;)r[e]=r[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())})),s&&(s.innerHTML="",L(s),l&&o(s)),p(i,(function(t,e){delete i[e]}))},firstRender:function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(l(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),O(t,"beforeRender"),D&&(t.pointer=new D(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),O(this,"load"),O(this,"render"),r(this.index)&&this.setReflow(this.options.chart.reflow),this.onload=null}})})),e(i,"parts/ScrollablePlotArea.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick,n=t.addEvent;e=t.Chart,n(e,"afterSetChartSize",(function(e){var i=this.options.chart.scrollablePlotArea,n=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(n){if(this.scrollablePixelsX=n=Math.max(0,n-this.chartWidth)){this.plotWidth+=n,this.inverted?(this.clipBox.height+=n,this.plotBox.height+=n):(this.clipBox.width+=n,this.plotBox.width+=n);var r={1:{name:"right",value:n}}}}else i&&(this.scrollablePixelsY=n=Math.max(0,i-this.chartHeight))&&(this.plotHeight+=n,this.inverted?(this.clipBox.width+=n,this.plotBox.width+=n):(this.clipBox.height+=n,this.plotBox.height+=n),r={2:{name:"bottom",value:n}});r&&!e.skipAxes&&this.axes.forEach((function(e){r[e.side]?e.getPlotLinePath=function(){var i=r[e.side].name,n=this[i];this[i]=n-r[e.side].value;var o=t.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[i]=n,o}:(e.setAxisSize(),e.setAxisTranslation())}))}})),n(e,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),e.prototype.setUpScrolling=function(){var e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingContainer=t.createElement("div",{className:"highcharts-scrolling"},e,this.renderTo),this.innerContainer=t.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},e.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,n=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),n.push(t,t+"-labels"),n.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},e.prototype.applyFixed=function(){var e,r=!this.fixedDiv,o=this.options.chart.scrollablePlotArea;r?(this.fixedDiv=t.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new t.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":i(o.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),n(this,"afterShowResetZoom",this.moveFixedElements),n(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),e=this.chartWidth+(this.scrollablePixelsX||0);var a=this.chartHeight+(this.scrollablePixelsY||0);t.stop(this.container),this.container.style.width=e+"px",this.container.style.height=a+"px",this.renderer.boxWrapper.attr({width:e,height:a,viewBox:[0,0,e,a].join(" ")}),this.chartBackground.attr({width:e,height:a}),this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+"px"),r&&(o.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*o.scrollPositionX),o.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*o.scrollPositionY)),a=this.axisOffset,r=this.plotTop-a[0]-1,o=this.plotLeft-a[3]-1,e=this.plotTop+this.plotHeight+a[2]+1,a=this.plotLeft+this.plotWidth+a[1]+1;var s=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);r=this.scrollablePixelsX?["M",0,r,"L",this.plotLeft-1,r,"L",this.plotLeft-1,e,"L",0,e,"Z","M",s,r,"L",this.chartWidth,r,"L",this.chartWidth,e,"L",s,e,"Z"]:this.scrollablePixelsY?["M",o,0,"L",o,this.plotTop-1,"L",a,this.plotTop-1,"L",a,0,"Z","M",o,l,"L",o,this.chartHeight,"L",a,this.chartHeight,"L",a,l,"Z"]:["M",0,0],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:r})}})),e(i,"parts/Point.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i,n=e.animObject,r=e.defined,o=e.erase,a=e.extend,s=e.isArray,l=e.isNumber,c=e.isObject,h=e.syncTimeout,u=e.pick,d=t.fireEvent,p=t.format,f=t.uniqueKey,g=t.removeEvent;t.Point=i=function(){},t.Point.prototype={init:function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=r(this.id)?this.id:f(),this.resolveColor(),t.chart.pointCount++,d(this,"afterInit"),this},resolveColor:function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;i||this.options.color||(this.color=t.color),t.options.colorByPoint?(i||(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length),i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=u(this.colorIndex,i)},applyOptions:function(t,e){var n=this.series,r=n.options.pointValKey||n.pointValKey;return t=i.prototype.optionsToObject.call(this,t),a(this,t),this.options=this.options?a(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=this[r]),this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!l(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===e&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n&&(this.x=void 0===e?n.autoIncrement(this):e),this},setNestedProperty:function(t,e,i){return i.split(".").reduce((function(t,i,n,r){return t[i]=r.length-1===n?e:c(t[i],!0)?t[i]:{},t[i]}),t),t},optionsToObject:function(e){var i={},n=this.series,r=n.options.keys,o=r||n.pointArrayMap||["y"],a=o.length,c=0,h=0;if(l(e)||null===e)i[o[0]]=e;else if(s(e))for(!r&&e.length>a&&("string"===(n=typeof e[0])?i.name=e[0]:"number"===n&&(i.x=e[0]),c++);h<a;)r&&void 0===e[c]||(0<o[h].indexOf(".")?t.Point.prototype.setNestedProperty(i,e[c],o[h]):i[o[h]]=e[c]),c++,h++;else"object"==typeof e&&(i=e,e.dataLabels&&(n._hasPointLabels=!0),e.marker&&(n._hasPointMarkers=!0));return i},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,n=0;for(i=e[n];this[t]>=i.value;)i=e[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},hasNewShapeType:function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},destroy:function(){function t(){for(a in s&&(e.setState(),o(s,e),s.length||(r.hoverPoints=null)),e===r.hoverPoint&&e.onMouseOut(),(e.graphic||e.dataLabel||e.dataLabels)&&(g(e),e.destroyElements()),e)e[a]=null}var e=this,i=e.series,r=i.chart;i=i.options.dataSorting;var a,s=r.hoverPoints,l=n(e.series.chart.renderer.globalAnimation);i&&i.enabled?(this.animateBeforeDestroy(),h(t,l.duration)):t(),r.pointCount--,e.legendItem&&r.legend.destroyItem(e)},animateBeforeDestroy:function(){var t,e=this,i={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach((function(n){t="dataLabel"===n,e[n]=e[n].animate(t?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:i)})),n.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.animate(a({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))}))}))},destroyElements:function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},getGraphicalProps:function(t){var e,i=this,n=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","shadowGroup"),t.dataLabel&&n.push("dataLabel","dataLabelUpper","connector"),e=n.length;e--;){var o=n[e];i[o]&&r.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var n=e+"s";t[e]&&i[n]&&r.plural.push(n)})),r},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,n=u(i.valueDecimals,""),r=i.valuePrefix||"",o=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(r||o)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+n+"f}")})),p(t,{point:this,series:this.series},e.chart)},firePointEvent:function(t,e,i){var n=this,r=this.series.options;(r.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),d(this,t,e,i)},visible:!0}})),e(i,"parts/Series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.animObject,n=e.arrayMax,r=e.arrayMin,o=e.clamp,a=e.correctFloat,s=e.defined,l=e.erase,c=e.extend,h=e.isArray,u=e.isNumber,d=e.isString,p=e.objectEach,f=e.pick,g=e.splat,m=e.syncTimeout,y=t.addEvent,v=t.defaultOptions,b=t.defaultPlotOptions,x=t.fireEvent,w=t.merge,_=t.removeEvent,S=t.SVGElement,P=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){var t=this.series.chart.numberFormatter;return null===this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,eventsToUnbind:[],isCartesian:!0,parallelArrays:["x","y"],pointClass:t.Point,requireSorting:!0,sorted:!0,init:function(e,i){x(this,"init",{options:i});var n,r=this,o=e.series;this.eventOptions=this.eventOptions||{},r.chart=e,r.options=i=r.setOptions(i),r.linkedSeries=[],r.bindAxes(),c(r,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected});var a=i.events;p(a,(function(e,i){t.isFunction(e)&&r.eventOptions[i]!==e&&(t.isFunction(r.eventOptions[i])&&_(r,i,r.eventOptions[i]),r.eventOptions[i]=e,y(r,i,e))})),(a&&a.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),r.getColor(),r.getSymbol(),r.parallelArrays.forEach((function(t){r[t+"Data"]||(r[t+"Data"]=[])})),r.isCartesian&&(e.hasCartesianSeries=!0),o.length&&(n=o[o.length-1]),r._i=f(n&&n._i,-1)+1,e.orderSeries(this.insert(o)),i.dataSorting&&i.dataSorting.enabled?r.setDataSortingOptions():r.points||r.data||r.setData(i.data,!1),x(this,"afterInit")},insert:function(t){var e,i=this.options.index;if(u(i)){for(e=t.length;e--;)if(i>=f(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return f(e,t.length-1)},bindAxes:function(){var e,i=this,n=i.options,r=i.chart;x(this,"bindAxes",null,(function(){(i.axisTypes||[]).forEach((function(o){r[o].forEach((function(t){e=t.options,(n[o]===e.index||void 0!==n[o]&&n[o]===e.id||void 0===n[o]&&0===e.index)&&(i.insert(t.series),i[o]=t,t.isDirty=!0)})),i[o]||i.optionalAxis===o||t.error(18,!0,r)}))}))},updateParallelArrays:function(t,e){var i=t.series,n=arguments,r=u(e)?function(n){var r="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=r}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};i.parallelArrays.forEach(r)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,r=this.chart.time;return i=f(i,e.pointStart,0),this.pointInterval=t=f(this.pointInterval,e.pointInterval,1),n&&(e=new r.Date(i),"day"===n?r.set("Date",e,r.get("Date",e)+t):"month"===n?r.set("Month",e,r.get("Month",e)+t):"year"===n&&r.set("FullYear",e,r.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},setDataSortingOptions:function(){var t=this.options;c(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),s(t.pointRange)||(t.pointRange=1)},setOptions:function(t){var e=this.chart,i=e.options,n=i.plotOptions,r=e.userOptions||{};t=w(t),e=e.styledMode;var o={plotOptions:n,userOptions:t};x(this,"setOptions",o);var a=o.plotOptions[this.type],l=r.plotOptions||{};return this.userOptions=o.userOptions,r=w(a,n.series,r.plotOptions&&r.plotOptions[this.type],t),this.tooltipOptions=w(v.tooltip,v.plotOptions.series&&v.plotOptions.series.tooltip,v.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=f(t.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||r.stickyTracking),null===a.marker&&delete r.marker,this.zoneAxis=r.zoneAxis,i=this.zones=(r.zones||[]).slice(),!r.negativeColor&&!r.negativeFillColor||r.zones||(n={value:r[this.zoneAxis+"Threshold"]||r.threshold||0,className:"highcharts-negative"},e||(n.color=r.negativeColor,n.fillColor=r.negativeFillColor),i.push(n)),i.length&&s(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),x(this,"afterSetOptions",{options:r}),r},getName:function(){return f(this.options.name,"Series "+(this.index+1))},getCyclic:function(t,e,i){var n=this.chart,r=this.userOptions,o=t+"Index",a=t+"Counter",l=i?i.length:f(n.options.chart[t+"Count"],n[t+"Count"]);if(!e){var c=f(r[o],r["_"+o]);s(c)||(n.series.length||(n[a]=0),r["_"+o]=c=n[a]%l,n[a]+=1),i&&(e=i[c])}void 0!==c&&(this[o]=c),this[t]=e},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||b[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(e,i){var n,r=e.id,o=e.x,a=this.points,s=this.options.dataSorting;if(r)var l=this.chart.get(r);else if(this.linkedParent||this.enabledDataSorting){var c=s&&s.matchByName?"name":"index";if(!(l=t.find(a,(function(t){return!t.touched&&t[c]===e[c]}))))return}if(l){var h=l&&l.index;void 0!==h&&(n=!0)}return void 0===h&&u(o)&&(h=this.xData.indexOf(o,i)),-1!==h&&void 0!==h&&this.cropped&&(h=h>=this.cropStart?h-this.cropStart:h),!n&&a[h]&&a[h].touched&&(h=void 0),h},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,updateData:function(t,e){var i,r,o,a=this.options,l=a.dataSorting,c=this.points,h=[],d=this.requireSorting,p=t.length===c.length,f=!0;if(this.xIncrement=null,t.forEach((function(t,e){var n=s(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},r=n.x;n.id||u(r)?(-1===(r=this.findPointIndex(n,o))||void 0===r?h.push(t):c[r]&&t!==a.data[r]?(c[r].update(t,!1,null,!1),c[r].touched=!0,d&&(o=r+1)):c[r]&&(c[r].touched=!0),(!p||e!==r||l&&l.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)}),this),i)for(t=c.length;t--;)(r=c[t])&&!r.touched&&r.remove&&r.remove(!1,e);else!p||l&&l.enabled?f=!1:(t.forEach((function(t,e){c[e].update&&t!==c[e].y&&c[e].update(t,!1,null,!1)})),h.length=0);return c.forEach((function(t){t&&(t.touched=!1)})),!!f&&(h.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=n(this.xData),this.autoIncrement()),!0)},setData:function(e,i,n,r){var o,a=this,s=a.points,l=s&&s.length||0,c=a.options,p=a.chart,g=c.dataSorting,m=null,y=a.xAxis;m=c.turboThreshold;var v,b=this.xData,x=this.yData,w=(o=a.pointArrayMap)&&o.length,_=c.keys,S=0,P=1;if(o=(e=e||[]).length,i=f(i,!0),g&&g.enabled&&(e=this.sortData(e)),!1!==r&&o&&l&&!a.cropped&&!a.hasGroupedData&&a.visible&&!a.isSeriesBoosting&&(v=this.updateData(e,n)),!v){if(a.xIncrement=null,a.colorCounter=0,this.parallelArrays.forEach((function(t){a[t+"Data"].length=0})),m&&o>m)if(m=a.getFirstValidPoint(e),u(m))for(n=0;n<o;n++)b[n]=this.autoIncrement(),x[n]=e[n];else if(h(m))if(w)for(n=0;n<o;n++)r=e[n],b[n]=r[0],x[n]=r.slice(1,w+1);else for(_&&(S=0<=(S=_.indexOf("x"))?S:0,P=0<=(P=_.indexOf("y"))?P:1),n=0;n<o;n++)r=e[n],b[n]=r[S],x[n]=r[P];else t.error(12,!1,p);else for(n=0;n<o;n++)void 0!==e[n]&&(r={series:a},a.pointClass.prototype.applyOptions.apply(r,[e[n]]),a.updateParallelArrays(r,n));for(x&&d(x[0])&&t.error(14,!0,p),a.data=[],a.options.data=a.userOptions.data=e,n=l;n--;)s[n]&&s[n].destroy&&s[n].destroy();y&&(y.minRange=y.userMinRange),a.isDirty=p.isDirtyBox=!0,a.isDirtyData=!!s,n=!1}"point"===c.legendType&&(this.processData(),this.generatePoints()),i&&p.redraw(n)},sortData:function(t){var e=this,i=e.options.dataSorting.sortKey||"y",n=function(t,e){return s(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(i,r){t[r]=n(e,i),t[r].index=r}),this),t.concat().sort((function(t,e){return u(e[i])?e[i]-t[i]:-1})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var i=e.options,r=i.data;i.dataSorting&&i.dataSorting.enabled||!r||(r.forEach((function(i,o){r[o]=n(e,i),t[o]&&(r[o].x=t[o].x,r[o].index=o)})),e.setData(r,!1))})),t},processData:function(e){var i=this.xData,n=this.yData,r=i.length,o=0,a=this.xAxis,s=this.options,l=s.cropThreshold,c=this.getExtremesFromAll||s.getExtremesFromAll,h=this.isCartesian;s=a&&a.val2lin;var u=a&&a.isLog,d=this.requireSorting;if(h&&!this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!e)return!1;if(a)var p=(e=a.getExtremes()).min,f=e.max;if(h&&this.sorted&&!c&&(!l||r>l||this.forceCrop))if(i[r-1]<p||i[0]>f)i=[],n=[];else if(this.yData&&(i[0]<p||i[r-1]>f)){i=(o=this.cropData(this.xData,this.yData,p,f)).xData,n=o.yData,o=o.start;var g=!0}for(l=i.length||1;--l;)if(0<(r=u?s(i[l])-s(i[l-1]):i[l]-i[l-1])&&(void 0===m||r<m))var m=r;else 0>r&&d&&(t.error(15,!1,this.chart),d=!1);this.cropped=g,this.cropStart=o,this.processedXData=i,this.processedYData=n,this.closestPointRange=this.basePointRange=m},cropData:function(t,e,i,n,r){var o,a=t.length,s=0,l=a;for(r=f(r,this.cropShoulder),o=0;o<a;o++)if(t[o]>=i){s=Math.max(0,o-r);break}for(i=o;i<a;i++)if(t[i]>n){l=i+r;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},generatePoints:function(){var t,e=this.options,i=e.data,n=this.data,r=this.processedXData,o=this.processedYData,a=this.pointClass,s=r.length,l=this.cropStart||0,h=this.hasGroupedData;e=e.keys;var u,d=[];for(n||h||((n=[]).length=i.length,n=this.data=n),e&&h&&(this.options.keys=!1),u=0;u<s;u++){var p=l+u;if(h){var f=(new a).init(this,[r[u]].concat(g(o[u])));f.dataGroup=this.groupMap[u],f.dataGroup.options&&(f.options=f.dataGroup.options,c(f,f.dataGroup.options),delete f.dataLabels)}else(f=n[p])||void 0===i[p]||(n[p]=f=(new a).init(this,i[p],r[u]));f&&(f.index=p,d[u]=f)}if(this.options.keys=e,n&&(s!==(t=n.length)||h))for(u=0;u<t;u++)u!==l||h||(u+=s),n[u]&&(n[u].destroyElements(),n[u].plotX=void 0);this.data=n,this.points=d,x(this,"afterGeneratePoints")},getXExtremes:function(t){return{min:r(t),max:n(t)}},getExtremes:function(t){var e,i=this.xAxis,o=this.yAxis,a=this.processedXData||this.xData,s=[],l=0,c=0,d=0,p=this.requireSorting?this.cropShoulder:0,f=!!o&&o.positiveValuesOnly;for(o=(t=t||this.stackedYData||this.processedYData||[]).length,i&&(c=(d=i.getExtremes()).min,d=d.max),e=0;e<o;e++){var g=a[e],m=t[e],y=(u(m)||h(m))&&(m.length||0<m||!f);if(g=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i||(a[e+p]||g)>=c&&(a[e-p]||g)<=d,y&&g)if(y=m.length)for(;y--;)u(m[y])&&(s[l++]=m[y]);else s[l++]=m}this.dataMin=r(s),this.dataMax=n(s),x(this,"afterGetExtremes")},getFirstValidPoint:function(t){for(var e=null,i=t.length,n=0;null===e&&n<i;)e=t[n],n++;return e},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,n=i.stacking,r=this.xAxis,l=r.categories,c=this.enabledDataSorting,d=this.yAxis,p=this.points,g=p.length,m=!!this.modifyValue,y=this.pointPlacementToXValue(),v=u(y),b=i.threshold,w=i.startFromThreshold?b:0,_=this.zoneAxis||"y",S=Number.MAX_VALUE;for(t=0;t<g;t++){var P=p[t],k=P.x,C=P.y,T=P.low,A=n&&d.stacks[(this.negStacks&&C<(w?0:b)?"-":"")+this.stackKey];if(d.positiveValuesOnly&&null!==C&&0>=C&&(P.isNull=!0),P.plotX=e=a(o(r.translate(k,0,0,0,1,y,"flags"===this.type),-1e5,1e5)),n&&this.visible&&A&&A[k]){var O=this.getStackIndicator(O,k,this.index);if(!P.isNull)var M=A[k],E=M.points[O.key]}if(h(E)&&(T=E[0],C=E[1],T===w&&O.key===A[k].base&&(T=f(u(b)&&b,d.min)),d.positiveValuesOnly&&0>=T&&(T=null),P.total=P.stackTotal=M.total,P.percentage=M.total&&P.y/M.total*100,P.stackY=C,this.irregularWidths||M.setOffset(this.pointXOffset||0,this.barW||0)),P.yBottom=s(T)?o(d.translate(T,0,1,0,1),-1e5,1e5):null,m&&(C=this.modifyValue(C,P)),P.plotY=C="number"==typeof C&&1/0!==C?o(d.translate(C,0,1,0,1),-1e5,1e5):void 0,P.isInside=void 0!==C&&0<=C&&C<=d.len&&0<=e&&e<=r.len,P.clientX=v?a(r.translate(k,0,0,0,1,y)):e,P.negative=P[_]<(i[_+"Threshold"]||b||0),P.category=l&&void 0!==l[P.x]?l[P.x]:P.x,!P.isNull&&!1!==P.visible){void 0!==I&&(S=Math.min(S,Math.abs(e-I)));var I=e}P.zone=this.zones.length&&P.getZone(),!P.graphic&&this.group&&c&&(P.isNew=!0)}this.closestPointRangePx=S,x(this,"afterTranslate")},getValidPoints:function(t,e,i){var n=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,n.inverted))&&(!1!==t.visible&&(i||!t.isNull))}))},getClipBox:function(t,e){var i=this.options,n=this.chart,r=n.inverted,o=this.xAxis,a=o&&this.yAxis;return t&&!1===i.clip&&a?t=r?{y:-n.chartWidth+a.len+a.pos,height:n.chartWidth,width:n.chartHeight,x:-n.chartHeight+o.len+o.pos}:{y:-a.pos,height:n.chartHeight,width:n.chartWidth,x:-o.pos}:(t=this.clipBox||n.clipBox,e&&(t.width=n.plotSizeX,t.x=0)),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,r=e.inverted,o=this.clipBox,a=this.getClipBox(t),s=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,a.height,i.xAxis,i.yAxis].join(),l=e[s],c=e[s+"m"];l||(t&&(a.width=0,r&&(a.x=e.plotSizeX+(!1!==i.clip?0:e.plotTop)),e[s+"m"]=c=n.clipRect(r?e.plotSizeX+99:-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[s]=l=n.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(c),this.sharedClipKey=s),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&s&&e[s]&&(o||(e[s]=e[s].destroy()),e[s+"m"]&&(e[s+"m"]=e[s+"m"].destroy())))},animate:function(t){var e=this.chart,n=i(this.options.animation);if(t)this.setClip(n);else{var r=this.sharedClipKey;t=e[r];var o=this.getClipBox(n,!0);t&&t.animate(o,n),e[r+"m"]&&e[r+"m"].animate({width:o.width+99,x:o.x-(e.inverted?0:99)},n),this.animate=null}},afterAnimate:function(){this.setClip(),x(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i=this.points,n=this.chart,r=this.options.marker,o=this[this.specialGroup]||this.markerGroup,a=this.xAxis,s=f(r.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=r.enabledThreshold*r.radius);if(!1!==r.enabled||this._hasPointMarkers)for(t=0;t<i.length;t++){var l=i[t],c=(e=l.graphic)?"animate":"attr",h=l.marker||{},u=!!l.marker;if((s&&void 0===h.enabled||h.enabled)&&!l.isNull&&!1!==l.visible){var d=f(h.symbol,this.symbol),p=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=a.reversed?-p.width:a.width);var g=!1!==l.isInside;e?e[g?"show":"hide"](g).animate(p):g&&(0<p.width||l.hasImage)&&(l.graphic=e=n.renderer.symbol(d,p.x,p.y,p.width,p.height,u?h:r).add(o),this.enabledDataSorting&&n.hasRendered&&(e.attr({x:l.startXPos}),c="animate")),e&&"animate"===c&&e[g?"show":"hide"](g).animate(p),e&&!n.styledMode&&e[c](this.pointAttribs(l,l.selected&&"select")),e&&e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())}},markerAttribs:function(t,e){var i=this.options.marker,n=t.marker||{},r=n.symbol||i.symbol,o=f(n.radius,i.radius);return e&&(i=i.states[e],e=n.states&&n.states[e],o=f(e&&e.radius,i&&i.radius,o+(i&&i.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(o=0),t={x:Math.floor(t.plotX)-o,y:t.plotY-o},o&&(t.width=t.height=2*o),t},pointAttribs:function(t,e){var i=this.options.marker,n=t&&t.options,r=n&&n.marker||{},o=this.color,a=n&&n.color,s=t&&t.color;n=f(r.lineWidth,i.lineWidth);var l=t&&t.zone&&t.zone.color;return t=1,o=a||l||s||o,a=r.fillColor||i.fillColor||o,o=r.lineColor||i.lineColor||o,e=e||"normal",i=i.states[e],e=r.states&&r.states[e]||{},n=f(e.lineWidth,i.lineWidth,n+f(e.lineWidthPlus,i.lineWidthPlus,0)),a=e.fillColor||i.fillColor||a,{stroke:o=e.lineColor||i.lineColor||o,"stroke-width":n,fill:a,opacity:t=f(e.opacity,i.opacity,t)}},destroy:function(e){var i,n,r,o=this,a=o.chart,s=/AppleWebKit\/533/.test(P.navigator.userAgent),c=o.data||[];for(x(o,"destroy"),this.removeEvents(e),(o.axisTypes||[]).forEach((function(t){(r=o[t])&&r.series&&(l(r.series,o),r.isDirty=r.forceRedraw=!0)})),o.legendItem&&o.chart.legend.destroyItem(o),i=c.length;i--;)(n=c[i])&&n.destroy&&n.destroy();o.points=null,t.clearTimeout(o.animationTimeout),p(o,(function(t,e){t instanceof S&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()})),a.hoverSeries===o&&(a.hoverSeries=null),l(a.series,o),a.orderSeries(),p(o,(function(t,i){e&&"hcEvents"===i||delete o[i]}))},getGraphPath:function(t,e,i){var n,r,o=this,a=o.options,l=a.step,c=[],h=[];return(n=(t=t||o.points).reversed)&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&n&&(l=4-l),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!i))).forEach((function(n,u){var d=n.plotX,p=n.plotY,f=t[u-1];(n.leftCliff||f&&f.rightCliff)&&!i&&(r=!0),n.isNull&&!s(e)&&0<u?r=!a.connectNulls:n.isNull&&!e?r=!0:(0===u||r?u=["M",n.plotX,n.plotY]:o.getPointSpline?u=o.getPointSpline(t,n,u):l?(u=1===l?["L",f.plotX,p]:2===l?["L",(f.plotX+d)/2,f.plotY,"L",(f.plotX+d)/2,p]:["L",d,f.plotY]).push("L",d,p):u=["L",d,p],h.push(n.x),l&&(h.push(n.x),2===l&&h.push(n.x)),c.push.apply(c,u),r=!1)})),c.xMap=h,o.graphPath=c},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode,r=[["graph","highcharts-graph"]];n||r[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(r=t.getZonesGraphs(r)).forEach((function(r,o){var a=r[0],s=t[a],l=s?"animate":"attr";s?(s.endX=t.preventGraphAnimation?null:i.xMap,s.animate({d:i})):i.length&&(t[a]=s=t.chart.renderer.path(i).addClass(r[1]).attr({zIndex:1}).add(t.group)),s&&!n&&(a={stroke:r[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},r[3]?a.dashstyle=r[3]:"square"!==e.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),s[l](a).shadow(2>o&&e.shadow)),s&&(s.startX=i.xMap,s.isArea=i.isArea)}))},getZonesGraphs:function(t){return this.zones.forEach((function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)}),this),t},applyZones:function(){var t,e,i,n,r,a,s=this,l=this.chart,c=l.renderer,h=this.zones,u=this.clips||[],d=this.graph,p=this.area,g=Math.max(l.chartWidth,l.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],y=l.inverted,v=!1;if(h.length&&(d||p)&&m&&void 0!==m.min){var b=m.reversed,x=m.horiz;d&&!this.showLine&&d.hide(),p&&p.hide();var w=m.getExtremes();h.forEach((function(h,_){t=b?x?l.plotWidth:0:x?0:m.toPixels(w.min)||0,t=o(f(e,t),0,g),e=o(Math.round(m.toPixels(f(h.value,w.max),!0)||0),0,g),v&&(t=e=m.toPixels(w.max)),n=Math.abs(t-e),r=Math.min(t,e),a=Math.max(t,e),m.isXAxis?(i={x:y?a:r,y:0,width:n,height:g},x||(i.x=l.plotHeight-i.x)):(i={x:0,y:y?a:r,width:g,height:n},x&&(i.y=l.plotWidth-i.y)),y&&c.isVML&&(i=m.isXAxis?{x:0,y:b?r:a,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),u[_]?u[_].animate(i):u[_]=c.clipRect(i),d&&s["zone-graph-"+_].clip(u[_]),p&&s["zone-area-"+_].clip(u[_]),v=h.value>w.max,s.resetZones&&0===e&&(e=void 0)})),this.clips=u}else s.visible&&(d&&d.show(!0),p&&p.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach((function(e){i[e]&&(n.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))}))}var i=this,n=i.chart;i.xAxis&&(i.eventsToUnbind.push(y(n,"resize",e)),e(),i.invertGroups=e)},plotGroup:function(t,e,i,n,r){var o=this[t],a=!o;return a&&(this[t]=o=this.chart.renderer.g().attr({zIndex:n||.1}).add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(s(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr({visibility:i})[a?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0):_(this)},render:function(){var t=this,e=t.chart,n=t.options,r=!!t.animate&&e.renderer.isSVG&&i(n.animation).duration,o=t.visible?"inherit":"hidden",a=n.zIndex,s=t.hasRendered,l=e.seriesGroup,c=e.inverted;x(this,"render");var h=t.plotGroup("group","series",o,a,l);t.markerGroup=t.plotGroup("markerGroup","markers",o,a,l),r&&t.animate(!0),h.inverted=!(!t.isCartesian&&!t.invertable)&&c,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(c),!1===n.clip||t.sharedClipKey||s||h.clip(e.clipRect),r&&t.animate(),s||(t.animationTimeout=m((function(){t.afterAnimate()}),r||0)),t.isDirty=!1,t.hasRendered=!0,x(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,r=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:f(n&&n.left,t.plotLeft),translateY:f(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},buildKDTree:function(t){function e(t,n,r){var o;if(o=t&&t.length){var a=i.kdAxisArray[n%r];return t.sort((function(t,e){return t[a]-e[a]})),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),n+1,r),right:e(t.slice(o+1),n+1,r)}}}this.buildingKdTree=!0;var i=this,n=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,m((function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),n,n),i.buildingKdTree=!1}),i.options.kdNow||t&&"touchstart"===t.type?0:1)},searchKDTree:function(t,e,i){var n=this,r=this.kdAxisArray[0],o=this.kdAxisArray[1],a=e?"distX":"dist";if(e=-1<n.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,l,c){var h=i.point,u=n.kdAxisArray[l%c],d=h,p=s(e[r])&&s(h[r])?Math.pow(e[r]-h[r],2):null,f=s(e[o])&&s(h[o])?Math.pow(e[o]-h[o],2):null;return f=(p||0)+(f||0),h.dist=s(f)?Math.sqrt(f):Number.MAX_VALUE,h.distX=s(p)?Math.sqrt(p):Number.MAX_VALUE,p=0>(u=e[u]-h[u])?"right":"left",i[f=0>u?"left":"right"]&&(d=(f=t(e,i[f],l+1,c))[a]<d[a]?f:h),i[p]&&Math.sqrt(u*u)<d[a]&&(d=(e=t(e,i[p],l+1,c))[a]<d[a]?e:d),d}(t,this.kdTree,e,e)},pointPlacementToXValue:function(){var t=this.xAxis,e=this.options.pointPlacement;return"between"===e&&(e=t.reversed?-.5:.5),u(e)&&(e*=f(this.options.pointRange||t.pointRange)),e}})})),e(i,"parts/Stacking.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.correctFloat,n=e.defined,r=e.destroyObjectProperties,o=e.objectEach,a=e.pick;e=t.Axis;var s=t.Chart,l=t.format,c=t.Series;t.StackItem=function(t,e,i,n,r){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=n,this.total=null,this.points={},this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?i?"right":"left":"center")},t.StackItem.prototype={destroy:function(){r(this,this.axis)},render:function(t){var e=this.axis.chart,i=this.options,n=i.format;n=n?l(n,this,e):i.formatter.call(this),this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=e.renderer.label(n,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),n={text:n,align:this.textAlign,rotation:i.rotation,padding:a(i.padding,0),visibility:"hidden"},this.label.attr(n),e.styledMode||this.label.css(i.style),this.label.added||this.label.add(t)),this.label.labelrank=e.plotHeight},setOffset:function(t,e,i,r,o){var s=this.axis,l=s.chart;if(r=s.translate(s.usePercentage?100:r||this.total,0,0,0,1),i=s.translate(i||0),i=n(r)&&Math.abs(r-i),t=a(o,l.xAxis[0].translate(this.x))+t,s=n(r)&&this.getStackBox(l,this,t,r,e,i,s),e=this.label,t=this.isNegative,o="justify"===a(this.options.overflow,"justify"),e&&s){i=e.getBBox();var h=l.inverted?t?i.width:0:i.width/2,u=l.inverted?i.height/2:t?-4:i.height+4;this.alignOptions.x=a(this.options.x,0),e.align(this.alignOptions,null,s),r=e.alignAttr,e.show(),r.y-=u,o&&(r.x-=h,c.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,r,i,s),r.x+=h),r.x=e.alignAttr.x,e.attr({x:r.x,y:r.y}),a(!o&&this.options.crop,!0)&&((l=l.isInsidePlot(e.x+(l.inverted?0:-i.width/2),e.y)&&l.isInsidePlot(e.x+(l.inverted?t?-i.width:i.width:i.width/2),e.y+i.height))||e.hide())}},getStackBox:function(t,e,i,n,r,o,a){var s=e.axis.reversed,l=t.inverted;return t=a.height+a.pos-(l?t.plotLeft:t.plotTop),e=e.isNegative&&!s||!e.isNegative&&s,{x:l?e?n:n-o:i,y:l?t-i-r:e?t-n-o:t-n,width:l?o:r,height:l?r:o}}},s.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)})),t.series.forEach((function(i){var n=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,a(i.options.stack,""),e?n.top:n.left,e?n.height:n.width].join())}))},e.prototype.buildStacks=function(){var e,i=this.series,n=a(this.options.reversedStacks,!0),r=i.length;if(!this.isXAxis){for(this.usePercentage=!1,e=r;e--;){i[n?e:r-e-1].setStackedPoints()}for(e=0;e<r;e++)i[e].modifyStacks();t.fireEvent(this,"afterBuildStacks")}},e.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,n=this.stackTotalGroup;n||(this.stackTotalGroup=n=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),n.translate(t.plotLeft,t.plotTop),o(i,(function(t){o(t,(function(t){t.render(n)}))}))},e.prototype.resetStacks=function(){var t=this,e=t.stacks;t.isXAxis||o(e,(function(e){o(e,(function(i,n){i.touched<t.stacksTouched?(i.destroy(),delete e[n]):(i.total=null,i.cumulative=null)}))}))},e.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;o(t,(function(t){o(t,(function(t){t.cumulative=t.total}))}))}},c.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,r=this.processedYData,o=[],s=r.length,l=this.options,c=l.threshold,h=a(l.startFromThreshold&&c,0),u=l.stack;l=l.stacking;var d,p,f=this.stackKey,g="-"+f,m=this.negStacks,y=this.yAxis,v=y.stacks,b=y.oldStacks;for(y.stacksTouched+=1,p=0;p<s;p++){var x=e[p],w=r[p],_=this.getStackIndicator(_,x,this.index),S=_.key,P=(d=m&&w<(h?0:c))?g:f;v[P]||(v[P]={}),v[P][x]||(b[P]&&b[P][x]?(v[P][x]=b[P][x],v[P][x].total=null):v[P][x]=new t.StackItem(y,y.options.stackLabels,d,x,u)),P=v[P][x],null!==w?(P.points[S]=P.points[this.index]=[a(P.cumulative,h)],n(P.cumulative)||(P.base=S),P.touched=y.stacksTouched,0<_.index&&!1===this.singleStacks&&(P.points[S][0]=P.points[this.index+","+x+",0"][0])):P.points[S]=P.points[this.index]=null,"percent"===l?(d=d?f:g,m&&v[d]&&v[d][x]?(d=v[d][x],P.total=d.total=Math.max(d.total,P.total)+Math.abs(w)||0):P.total=i(P.total+(Math.abs(w)||0))):P.total=i(P.total+(w||0)),P.cumulative=a(P.cumulative,h)+(w||0),null!==w&&(P.points[S].push(P.cumulative),o[p]=P.cumulative)}"percent"===l&&(y.usePercentage=!0),this.stackedYData=o,y.oldStacks={}}},c.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,n=e.yAxis.stacks,r=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[i,"-"+i].forEach((function(i){for(var a,s,l=r.length;l--;)a=r[l],t=e.getStackIndicator(t,a,e.index,i),(s=(a=n[i]&&n[i][a])&&a.points[t.key])&&e[o+"Stacker"](s,a,l)}))},c.prototype.percentStacker=function(t,e,n){e=e.total?100/e.total:0,t[0]=i(t[0]*e),t[1]=i(t[1]*e),this.stackedYData[n]=t[1]},c.prototype.getStackIndicator=function(t,e,i,r){return!n(t)||t.x!==e||r&&t.key!==r?t={x:e,index:0,key:r}:t.index++,t.key=[i,e,t.index].join(),t}})),e(i,"parts/Dynamics.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,n=e.erase,r=e.extend,o=e.isArray,a=e.isNumber,s=e.isObject,l=e.isString,c=e.objectEach,h=e.pick,u=e.relativeLength,d=e.setAnimation,p=e.splat,f=t.addEvent,g=t.animate,m=t.Axis;e=t.Chart;var y=t.createElement,v=t.css,b=t.fireEvent,x=t.merge,w=t.Point,_=t.Series,S=t.seriesTypes;t.cleanRecursively=function(e,i){var n={};return c(e,(function(r,o){s(e[o],!0)&&!e.nodeType&&i[o]?(r=t.cleanRecursively(e[o],i[o]),Object.keys(r).length&&(n[o]=r)):(s(e[o])||e[o]!==i[o])&&(n[o]=e[o])})),n},r(e.prototype,{addSeries:function(t,e,i){var n,r=this;return t&&(e=h(e,!0),b(r,"addSeries",{options:t},(function(){n=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),n.enabledDataSorting&&n.setData(t.data,!1),b(r,"afterAddSeries",{series:n}),e&&r.redraw(i)}))),n},addAxis:function(t,e,i,n){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:n})},addColorAxis:function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},createAxis:function(e,i){var n=this.options,r="colorAxis"===e,o=i.redraw,a=i.animation;i=x(i.axis,{index:this[e].length,isX:"xAxis"===e});var s=r?new t.ColorAxis(this,i):new m(this,i);return n[e]=p(n[e]||{}),n[e].push(i),r&&(this.isDirtyLegend=!0,this.axes.forEach((function(t){t.series=[]})),this.series.forEach((function(t){t.bindAxes(),t.isDirtyData=!0}))),h(o,!0)&&this.redraw(a),s},showLoading:function(t){var e=this,i=e.options,n=e.loadingDiv,o=i.loading,a=function(){n&&v(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};n||(e.loadingDiv=n=y("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container),e.loadingSpan=y("span",{className:"highcharts-loading-inner"},null,n),f(e,"redraw",a)),n.className="highcharts-loading",e.loadingSpan.innerHTML=h(t,i.lang.loading,""),e.styledMode||(v(n,r(o.style,{zIndex:10})),v(e.loadingSpan,o.labelStyle),e.loadingShown||(v(n,{opacity:0,display:""}),g(n,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,a()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){v(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],update:function(e,n,r,o){var s,d,f,g=this,m={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},y=e.isResponsiveOptions,v=[];if(b(g,"update",{options:e}),y||g.setResponsive(!1,!0),e=t.cleanRecursively(e,g.options),x(!0,g.userOptions,e),s=e.chart){if(x(!0,g.options.chart,s),"className"in s&&g.setClassName(s.className),"reflow"in s&&g.setReflow(s.reflow),"inverted"in s||"polar"in s||"type"in s){g.propFromSeries();var w=!0}"alignTicks"in s&&(w=!0),c(s,(function(t,e){-1!==g.propsRequireUpdateSeries.indexOf("chart."+e)&&(d=!0),-1!==g.propsRequireDirtyBox.indexOf(e)&&(g.isDirtyBox=!0),y||-1===g.propsRequireReflow.indexOf(e)||(f=!0)})),!g.styledMode&&"style"in s&&g.renderer.setStyle(s.style)}!g.styledMode&&e.colors&&(this.options.colors=e.colors),e.plotOptions&&x(!0,this.options.plotOptions,e.plotOptions),e.time&&this.time===t.time&&(this.time=new t.Time(e.time)),c(e,(function(t,e){g[e]&&"function"==typeof g[e].update?g[e].update(t,!1):"function"==typeof g[m[e]]&&g[m[e]](t),"chart"!==e&&-1!==g.propsRequireUpdateSeries.indexOf(e)&&(d=!0)})),this.collectionsWithUpdate.forEach((function(t){if(e[t]){if("series"===t){var n=[];g[t].forEach((function(t,e){t.options.isInternal||n.push(h(t.options.index,e))}))}p(e[t]).forEach((function(e,o){(o=i(e.id)&&g.get(e.id)||g[t][n?n[o]:o])&&o.coll===t&&(o.update(e,!1),r&&(o.touched=!0)),!o&&r&&g.collectionsWithInit[t]&&(g.collectionsWithInit[t][0].apply(g,[e].concat(g.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)})),r&&g[t].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:v.push(t)}))}})),v.forEach((function(t){t.remove&&t.remove(!1)})),w&&g.axes.forEach((function(t){t.update({},!1)})),d&&g.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),e.loading&&x(!0,g.options.loading,e.loading),w=s&&s.width,s=s&&s.height,l(s)&&(s=u(s,w||g.chartWidth)),f||a(w)&&w!==g.chartWidth||a(s)&&s!==g.chartHeight?g.setSize(w,s,o):h(n,!0)&&g.redraw(o),b(g,"afterUpdate",{options:e,redraw:n,animation:o})},setSubtitle:function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},setCaption:function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}}),e.prototype.collectionsWithInit={xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],series:[e.prototype.addSeries]},r(w.prototype,{update:function(t,e,i,n){function r(){a.applyOptions(t),null===a.y&&c&&(a.graphic=c.destroy()),s(t,!0)&&(c&&c.element&&t&&t.marker&&void 0!==t.marker.symbol&&(a.graphic=c.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),o=a.index,l.updateParallelArrays(a,o),d.data[o]=s(d.data[o],!0)||s(t,!0)?a.options:h(t,d.data[o]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(u.isDirtyBox=!0),"point"===d.legendType&&(u.isDirtyLegend=!0),e&&u.redraw(i)}var o,a=this,l=a.series,c=a.graphic,u=l.chart,d=l.options;e=h(e,!0),!1===n?r():a.firePointEvent("update",{options:t},r)},remove:function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}}),r(_.prototype,{addPoint:function(t,e,i,n,r){var o=this.options,a=this.data,s=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var c,u=o.data,d=this.xData;e=h(e,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[t]);var f=p.x,g=d.length;if(this.requireSorting&&f<d[g-1])for(c=!0;g&&d[g-1]>f;)g--;this.updateParallelArrays(p,"splice",g,0,0),this.updateParallelArrays(p,g),l&&p.name&&(l[f]=p.name),u.splice(g,0,t),c&&(this.data.splice(g,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),i&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(p,"shift"),u.shift())),!1!==r&&b(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&s.redraw(n)},removePoint:function(t,e,i){var n=this,r=n.data,o=r[t],a=n.points,s=n.chart,l=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&s.redraw()};d(i,s),e=h(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e,i,n){function r(){o.destroy(n),o.remove=null,a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),h(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==i?b(o,"remove",null,r):r()},update:function(e,i){e=t.cleanRecursively(e,this.userOptions),b(this,"update",{options:e});var n,o=this,a=o.chart,s=o.userOptions,l=o.initialType||o.type,c=e.type||s.type||a.options.chart.type,u=!(this.hasDerivedData||e.dataGrouping||c&&c!==this.type||void 0!==e.pointStart||e.pointInterval||e.pointIntervalUnit||e.keys),d=S[l].prototype,p=["group","markerGroup","dataLabelsGroup","transformGroup"],f=["eventOptions","navigatorSeries","baseSeries"],g=o.finishedAnimating&&{animation:!1},m={};for(n in u&&(f.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&f.push("area","graph"),o.parallelArrays.forEach((function(t){f.push(t+"Data")})),e.data&&(e.dataSorting&&r(o.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=x(s,g,{index:void 0===s.index?o.index:s.index,pointStart:h(s.pointStart,o.xData[0])},!u&&{data:o.options.data},e),u&&e.data&&(e.data=o.options.data),(f=p.concat(f)).forEach((function(t){f[t]=o[t],delete o[t]})),o.remove(!1,null,!1,!0),d)o[n]=void 0;if(S[c||l]?r(o,S[c||l].prototype):t.error(17,!0,a,{missingModuleFor:c||l}),f.forEach((function(t){o[t]=f[t]})),o.init(a,e),u&&this.points){var y=o.options;!1===y.visible?(m.graphic=1,m.dataLabel=1):o._hasPointLabels||(c=y.marker,d=y.dataLabels,c&&(!1===c.enabled||"symbol"in c)&&(m.graphic=1),d&&!1===d.enabled&&(m.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(m).length&&t.destroyElements(m),!1===y.showInLegend&&t.legendItem&&a.legend.destroyItem(t))}),this)}e.zIndex!==s.zIndex&&p.forEach((function(t){o[t]&&o[t].attr({zIndex:e.zIndex})})),o.initialType=l,a.linkSeries(),b(this,"afterUpdate"),h(i,!0)&&a.redraw(!!u&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),r(m.prototype,{update:function(t,e){var i=this.chart,n=t&&t.events||{};t=x(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),c(i.options[this.coll].events,(function(t,e){void 0===n[e]&&(n[e]=void 0)})),this.destroy(!0),this.init(i,r(t,{events:n})),i.isDirtyBox=!0,h(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,r=this.series,a=r.length;a--;)r[a]&&r[a].remove(!1);n(e.axes,this),n(e[i],this),o(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,h(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})})),e(i,"parts/AreaSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.objectEach,n=e.pick,r=t.color,o=t.Series;(e=t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,r=[],o=[],a=this.xAxis,s=this.yAxis,l=s.stacks[this.stackKey],c={},h=this.index,u=s.series,d=u.length,p=n(s.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,c[t[e].x]=t[e];i(l,(function(t,e){null!==t.total&&o.push(e)})),o.sort((function(t,e){return t-e}));var f=u.map((function(t){return t.visible}));o.forEach((function(t,i){var n,u,g=0;if(c[t]&&!c[t].isNull)r.push(c[t]),[-1,1].forEach((function(r){var a=1===r?"rightNull":"leftNull",s=0,g=l[o[i+r]];if(g)for(e=h;0<=e&&e<d;)(n=g.points[e])||(e===h?c[t][a]=!0:f[e]&&(u=l[t].points[e])&&(s-=u[1]-u[0])),e+=p;c[t][1===r?"rightCliff":"leftCliff"]=s}));else{for(e=h;0<=e&&e<d;){if(n=l[t].points[e]){g=n[1];break}e+=p}g=s.translate(g,0,1,0,1),r.push({isNull:!0,plotX:a.translate(t,0,0,0,1),x:t,plotY:g,yBottom:g})}}))}return r},getGraphPath:function(t){var e,i=o.prototype.getGraphPath,r=this.options,a=r.stacking,s=this.yAxis,l=[],c=[],h=this.index,u=s.stacks[this.stackKey],d=r.threshold,p=Math.round(s.getThreshold(r.threshold));r=n(r.connectNulls,"percent"===a);var f=function(e,i,n){var r=t[e];e=a&&u[r.x].points[h];var o=r[n+"Null"]||0;if(n=r[n+"Cliff"]||0,r=!0,n||o){var f=(o?e[0]:e[1])+n,g=e[0]+n;r=!!o}else!a&&t[i]&&t[i].isNull&&(f=g=d);void 0!==f&&(c.push({plotX:m,plotY:null===f?p:s.getThreshold(f),isNull:r,isCliff:!0}),l.push({plotX:m,plotY:null===g?p:s.getThreshold(g),doCurve:!1}))};for(t=t||this.points,a&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){a||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=n(t[e].rectPlotX,t[e].plotX),y=n(t[e].yBottom,p);g&&!r||(r||f(e,e-1,"left"),g&&!a&&r||(c.push(t[e]),l.push({x:e,plotX:m,plotY:y})),r||f(e,e+1,"right"))}return e=i.call(this,c,!0,!0),l.reversed=!0,(g=i.call(this,l,!0,!0)).length&&(g[0]="L"),g=e.concat(g),i=i.call(this,c,!1,r),g.xMap=e.xMap,this.areaPath=g,i},drawGraph:function(){this.areaPath=[],o.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,a=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach((function(e,n){a.push(["zone-area-"+n,"highcharts-area highcharts-zone-area-"+n+" "+e.className,e.color||t.color,e.fillColor||i.fillColor])})),a.forEach((function(o){var a=o[0],s=t[a],l=s?"animate":"attr",c={};s?(s.endX=t.preventGraphAnimation?null:e.xMap,s.animate({d:e})):(c.zIndex=0,(s=t[a]=t.chart.renderer.path(e).addClass(o[1]).add(t.group)).isArea=!0),t.chart.styledMode||(c.fill=n(o[3],r(o[2]).setOpacity(n(i.fillOpacity,.75)).get())),s[l](c),s.startX=e.xMap,s.shiftUnit=i.step?2:1}))},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})})),e(i,"parts/SplineSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick;(t=t.seriesType)("spline","line",{},{getPointSpline:function(t,e,n){var r=e.plotX,o=e.plotY,a=t[n-1];if(n=t[n+1],a&&!a.isNull&&!1!==a.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){t=a.plotY;var s=n.plotX;n=n.plotY;var l=0,c=(1.5*r+a.plotX)/2.5,h=(1.5*o+t)/2.5,u=(1.5*o+n)/2.5;(s=(1.5*r+s)/2.5)!==c&&(l=(u-h)*(s-r)/(s-c)+o-u),u+=l,(h+=l)>t&&h>o?u=2*o-(h=Math.max(t,o)):h<t&&h<o&&(u=2*o-(h=Math.min(t,o))),u>n&&u>o?h=2*o-(u=Math.max(n,o)):u<n&&u<o&&(h=2*o-(u=Math.min(n,o))),e.rightContX=s,e.rightContY=u}return e=["C",i(a.rightContX,a.plotX),i(a.rightContY,a.plotY),i(c,r),i(h,o),r,o],a.rightContX=a.rightContY=null,e}})})),e(i,"parts/AreaSplineSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.seriesTypes.area.prototype;(0,t.seriesType)("areaspline","spline",t.defaultPlotOptions.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,drawGraph:e.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})})),e(i,"parts/ColumnSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.animObject,n=e.clamp,r=e.defined,o=e.extend,a=e.isNumber,s=e.pick,l=t.color,c=t.merge,h=t.Series;e=t.seriesType;var u=t.svg;e("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){h.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)}))},getColumnMetrics:function(){var t=this,e=t.options,i=t.xAxis,n=t.yAxis,r=i.options.reversedStacks;r=i.reversed&&!r||!i.reversed&&r;var o,a={},l=0;!1===e.grouping?l=1:t.chart.series.forEach((function(e){var i=e.yAxis,r=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&n.len===i.len&&n.pos===i.pos){if(r.stacking){o=e.stackKey,void 0===a[o]&&(a[o]=l++);var s=a[o]}else!1!==r.grouping&&(s=l++);e.columnIndex=s}}));var c=Math.min(Math.abs(i.transA)*(i.ordinalSlope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),h=c*e.groupPadding,u=(c-2*h)/(l||1);return e=Math.min(e.maxPointWidth||i.len,s(e.pointWidth,u*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(u-e)/2+(h+((t.columnIndex||0)+(r?1:0))*u-c/2)*(r?-1:1)},t.columnMetrics},crispCol:function(t,e,i,n){var r=this.chart,o=this.borderWidth,a=-(o%2?.5:0);return o=o%2?.5:1,r.inverted&&r.renderer.isVML&&(o+=1),this.options.crisp&&(i=Math.round(t+i)+a,i-=t=Math.round(t)+a),n=Math.round(e+n)+o,a=.5>=Math.abs(e)&&.5<n,n-=e=Math.round(e)+o,a&&n&&(--e,n+=1),{x:t,y:e,width:i,height:n}},translate:function(){var t=this,e=t.chart,i=t.options,o=t.dense=2>t.closestPointRange*t.xAxis.transA;o=t.borderWidth=s(i.borderWidth,o?0:1);var a=t.yAxis,l=i.threshold,c=t.translatedThreshold=a.getThreshold(l),u=s(i.minPointLength,5),d=t.getColumnMetrics(),p=d.width,f=t.barW=Math.max(p,1+2*o),g=t.pointXOffset=d.offset,m=t.dataMin,y=t.dataMax;e.inverted&&(c-=.5),i.pointPadding&&(f=Math.ceil(f)),h.prototype.translate.apply(t),t.points.forEach((function(i){var o=s(i.yBottom,c),h=999+Math.abs(o),d=p;h=n(i.plotY,-h,a.len+h);var v=i.plotX+g,b=f,x=Math.min(h,o),w=Math.max(h,o)-x;if(u&&Math.abs(w)<u){w=u;var _=!a.reversed&&!i.negative||a.reversed&&i.negative;i.y===l&&t.dataMax<=l&&a.min<l&&m!==y&&(_=!_),x=Math.abs(x-c)>u?o-u:c-(_?u:0)}r(i.options.pointWidth)&&(d=b=Math.ceil(i.options.pointWidth),v-=Math.round((d-p)/2)),i.barX=v,i.pointWidth=d,i.tooltipPos=e.inverted?[a.len+a.pos-e.plotLeft-h,t.xAxis.len-v-b/2,w]:[v+b/2,h+a.pos-e.plotTop,w],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[v,c,b,0]:[v,x,b,w])}))},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,n=this.pointAttrToOptions||{},r=n.stroke||"borderColor",o=n["stroke-width"]||"borderWidth",a=t&&t.color||this.color,h=t&&t[r]||i[r]||this.color||a,u=t&&t[o]||i[o]||this[o]||0;n=t&&t.options.dashStyle||i.dashStyle;var d=s(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var p=t.getZone();a=t.options.color||p&&(p.color||t.nonZonedColor)||this.color,p&&(h=p.borderColor||h,n=p.dashStyle||n,u=p.borderWidth||u)}return e&&t&&(e=(t=c(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&l(a).brighten(t.brightness).get()||a,h=t[r]||h,u=t[o]||u,n=t.dashStyle||n,d=s(t.opacity,d)),r={fill:a,stroke:h,"stroke-width":u,opacity:d},n&&(r.dashstyle=n),r},drawPoints:function(){var t,e=this,i=this.chart,n=e.options,r=i.renderer,o=n.animationLimit||250;e.points.forEach((function(s){var l=s.graphic,h=!!l,u=l&&i.pointCount<o?"animate":"attr";a(s.plotY)&&null!==s.y?(t=s.shapeArgs,l&&s.hasNewShapeType()&&(l=l.destroy()),e.enabledDataSorting&&(s.startXPos=e.xAxis.reversed?-(t?t.width:0):e.xAxis.width),l||(s.graphic=l=r[s.shapeType](t).add(s.group||e.group))&&e.enabledDataSorting&&i.hasRendered&&i.pointCount<o&&(l.attr({x:s.startXPos}),h=!0,u="animate"),l&&h&&l[u](c(t)),n.borderRadius&&l[u]({r:n.borderRadius}),i.styledMode||l[u](e.pointAttribs(s,s.selected&&"select")).shadow(!1!==s.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),l.addClass(s.getClassName(),!0)):l&&(s.graphic=l.destroy())}))},animate:function(t){var e=this,r=this.yAxis,a=e.options,s=this.chart.inverted,l={},c=s?"translateX":"translateY";if(u)if(t)l.scaleY=.001,t=n(r.toPixels(a.threshold),r.pos,r.pos+r.len),s?l.translateX=t-r.len:l.translateY=t,e.clipBox&&e.setClip(),e.group.attr(l);else{var h=e.group.attr(c);e.group.animate({scaleY:1},o(i(e.options.animation),{step:function(t,i){l[c]=h+i.pos*(r.pos-h),e.group.attr(l)}})),e.animate=null}},remove:function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),h.prototype.remove.apply(t,arguments)}})})),e(i,"parts/BarSeries.js",[i["parts/Globals.js"]],(function(t){(t=t.seriesType)("bar","column",null,{inverted:!0})})),e(i,"parts/ScatterSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.Series;(0,t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(n,r){["x","y"].forEach((function(o,a){var s="plot"+o.toUpperCase();if(e[o]&&!n.isNull){var l=t[o+"Axis"],c=e[o]*l.transA;if(l&&!l.isLog){var h=Math.max(0,n[s]-c);l=Math.min(l.len,n[s]+c),a=1e4*Math.sin(r+a*i),n[s]=h+(l-h)*(a-Math.floor(a)),"x"===o&&(n.clientX=n.plotX)}}}))}))}}),t.addEvent(e,"afterTranslate",(function(){this.applyJitter&&this.applyJitter()}))})),e(i,"mixins/centered-series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isNumber,n=e.pick,r=e.relativeLength,o=t.deg2rad;t.CenteredSeriesMixin={getCenter:function(){var t=this.options,e=this.chart,i=2*(t.slicedOffset||0),o=e.plotWidth-2*i;e=e.plotHeight-2*i;var a=t.center;a=[n(a[0],"50%"),n(a[1],"50%"),t.size||"100%",t.innerSize||0];var s,l=Math.min(o,e);for(s=0;4>s;++s){var c=a[s];t=2>s||2===s&&/%$/.test(c),a[s]=r(c,[o,e,l,a[2]][s])+(t?i:0)}return a[3]>a[2]&&(a[3]=a[2]),a},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:o*(t+-90),end:o*(e+-90)}}}})),e(i,"parts/PieSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.defined,r=e.isNumber,o=e.pick,a=e.relativeLength,s=e.setAnimation,l=t.addEvent,c=(e=t.CenteredSeriesMixin).getStartAndEndRadians,h=t.merge,u=t.noop,d=t.Point,p=t.Series,f=t.seriesType,g=t.fireEvent;f("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(i.forEach((function(t){var i=t.graphic,r=t.shapeArgs;i&&r&&(i.attr({r:o(t.startR,e.center&&e.center[3]/2),start:n,end:n}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))})),e.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,n=i.length,r=this.options.ignoreHiddenPoint;for(t=0;t<n;t++){var o=i[t];e+=r&&!o.visible||o.isNull?0:o.y}for(this.total=e,t=0;t<n;t++)(o=i[t]).percentage=0<e&&(o.visible||!r)?o.y/e*100:0,o.total=e},generatePoints:function(){p.prototype.generatePoints.call(this),this.updateTotals()},getX:function(t,e,n){var r=this.center,o=this.radii?this.radii[n.index]:r[2]/2;return t=Math.asin(i((t-r[1])/(o+n.labelDistance),-1,1)),r[0]+(e?-1:1)*Math.cos(t)*(o+n.labelDistance)+(0<n.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},translate:function(t){this.generatePoints();var e=0,i=this.options,n=i.slicedOffset,r=n+(i.borderWidth||0),s=c(i.startAngle,i.endAngle),l=this.startAngleRad=s.start;s=(this.endAngleRad=s.end)-l;var h=this.points,u=i.dataLabels.distance;i=i.ignoreHiddenPoint;var d,p=h.length;for(t||(this.center=t=this.getCenter()),d=0;d<p;d++){var f=h[d],m=l+e*s;i&&!f.visible||(e+=f.percentage/100);var y=l+e*s;f.shapeType="arc",f.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*m)/1e3,end:Math.round(1e3*y)/1e3},f.labelDistance=o(f.options.dataLabels&&f.options.dataLabels.distance,u),f.labelDistance=a(f.labelDistance,f.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,f.labelDistance),(y=(y+m)/2)>1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(y)*n),translateY:Math.round(Math.sin(y)*n)};var v=Math.cos(y)*t[2]/2,b=Math.sin(y)*t[2]/2;f.tooltipPos=[t[0]+.7*v,t[1]+.7*b],f.half=y<-Math.PI/2||y>Math.PI/2?1:0,f.angle=y,m=Math.min(r,f.labelDistance/5),f.labelPosition={natural:{x:t[0]+v+Math.cos(y)*f.labelDistance,y:t[1]+b+Math.sin(y)*f.labelDistance},final:{},alignment:0>f.labelDistance?"center":f.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(y)*m,y:t[1]+b+Math.sin(y)*m},touchingSliceAt:{x:t[0]+v,y:t[1]+b}}}}g(this,"afterTranslate")},drawEmpty:function(){var t=this.options;if(0===this.total){var e=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(e,i,0).addClass("highcharts-graph").add(this.group)),this.graph.animate({"stroke-width":t.borderWidth,cx:e,cy:i,r:this.center[2]/2,fill:t.fillColor||"none",stroke:t.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,n,r=this,o=r.chart,a=o.renderer,s=r.options.shadow;this.drawEmpty(),!s||r.shadowGroup||o.styledMode||(r.shadowGroup=a.g("shadow").attr({zIndex:-1}).add(r.group)),r.points.forEach((function(l){var c={};if(e=l.graphic,!l.isNull&&e){if(n=l.shapeArgs,t=l.getTranslate(),!o.styledMode){var u=l.shadowGroup;s&&!u&&(u=l.shadowGroup=a.g("shadow").add(r.shadowGroup)),u&&u.attr(t),i=r.pointAttribs(l,l.selected&&"select")}l.delayedRendering?(e.setRadialReference(r.center).attr(n).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(s,u),l.delayedRendering=!1):(e.setRadialReference(r.center),o.styledMode||h(!0,c,i),h(!0,c,n,t),e.animate(c)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName())}else e&&(l.graphic=e.destroy())}))},drawPoints:function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},searchPoint:u,sortByAngle:function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:e.getCenter,getSymbol:u,drawGraph:null},{init:function(){d.prototype.init.apply(this,arguments);var t=this;t.name=o(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return l(t,"select",e),l(t,"unselect",e),t},isValid:function(){return r(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,n=i.series,r=n.chart,a=n.options.ignoreHiddenPoint;e=o(e,a),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,n.options.data[n.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](!0)})),i.legendItem&&r.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),a&&(n.isDirty=!0),e&&r.redraw())},slice:function(t,e,i){var r=this.series;s(i,r.chart),o(e,!0),this.sliced=this.options.sliced=n(t)?t:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var n=e.breakAt;return e=e.touchingSliceAt,["M",t.x,t.y].concat(i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-e.x,2*n.y-e.y,n.x,n.y]:["L",n.x,n.y]).concat(["L",e.x,e.y])},straight:function(t,e){return e=e.touchingSliceAt,["M",t.x,t.y,"L",e.x,e.y]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var n=this.series,r=n.center[0],o=n.chart.plotWidth,s=n.chart.plotLeft;n=t.alignment;var l=this.shapeArgs.r;return i=a(i.crookDistance,1),r=["L",i="left"===n?r+l+(o+s-r-l)*(1-i):s+(r-l)*i,t.y],("left"===n?i>t.x||i<e.x:i<t.x||i>e.x)&&(r=[]),["M",t.x,t.y].concat(r).concat(["L",e.x,e.y])}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,n=this.connectorShapes;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})})),e(i,"parts/DataLabels.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.animObject,n=e.arrayMax,r=e.clamp,o=e.defined,a=e.extend,s=e.isArray,l=e.objectEach,c=e.pick,h=e.relativeLength,u=e.splat,d=t.format,p=t.merge;e=t.noop;var f=t.Series,g=t.seriesTypes,m=t.stableSort;t.distribute=function(e,i,n){function o(t,e){return t.target-e.target}var a,s=!0,l=e,h=[],u=0,d=l.reducedLen||i;for(a=e.length;a--;)u+=e[a].size;if(u>d){for(m(e,(function(t,e){return(e.rank||0)-(t.rank||0)})),u=a=0;u<=d;)u+=e[a].size,a++;h=e.splice(a-1,e.length)}for(m(e,o),e=e.map((function(t){return{size:t.size,targets:[t.target],align:c(t.align,.5)}}));s;){for(a=e.length;a--;)s=e[a],u=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=r(u-s.size*s.align,0,i-s.size);for(a=e.length,s=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>i&&(e[a-1].pos=i-e[a-1].size),e.splice(a,1),s=!0)}l.push.apply(l,h),a=0,e.some((function(e){var r=0;if(e.targets.some((function(){if(l[a].pos=e.pos+r,Math.abs(l[a].pos-l[a].target)>n)return l.slice(0,a+1).forEach((function(t){delete t.pos})),l.reducedLen=(l.reducedLen||i)-.1*i,l.reducedLen>.1*i&&t.distribute(l,i,n),!0;r+=l[a].size,a++})))return!0})),m(l,o)},f.prototype.drawDataLabels=function(){function e(t,e){var i,n=[];if(s(t)&&!s(e))n=t.map((function(t){return p(t,e)}));else if(s(e)&&!s(t))n=e.map((function(e){return p(t,e)}));else if(s(t)||s(e))for(i=Math.max(t.length,e.length);i--;)n[i]=p(t[i],e[i]);else n=p(t,e);return n}var n=this,r=n.chart,a=n.options,h=a.dataLabels,f=n.points,g=n.hasRendered||0,m=i(a.animation).duration,y=Math.min(m,200),v=!r.renderer.forExport&&c(h.defer,0<y),b=r.renderer;if(h=e(e(r.options.plotOptions&&r.options.plotOptions.series&&r.options.plotOptions.series.dataLabels,r.options.plotOptions&&r.options.plotOptions[n.type]&&r.options.plotOptions[n.type].dataLabels),h),t.fireEvent(this,"drawDataLabels"),s(h)||h.enabled||n._hasPointLabels){var x=n.plotGroup("dataLabelsGroup","data-labels",v&&!g?"hidden":"inherit",h.zIndex||6);v&&(x.attr({opacity:+g}),g||setTimeout((function(){var t=n.dataLabelsGroup;t&&(n.visible&&x.show(!0),t[a.animation?"animate":"attr"]({opacity:1},{duration:y}))}),m-y)),f.forEach((function(t){u(e(h,t.dlOptions||t.options&&t.options.dataLabels)).forEach((function(e,i){var s=e.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(t,e),h=t.dataLabels?t.dataLabels[i]:t.dataLabel,u=t.connectors?t.connectors[i]:t.connector,p=c(e.distance,t.labelDistance),f=!h;if(s){var g=t.getLabelConfig(),m=c(e[t.formatPrefix+"Format"],e.format);g=o(m)?d(m,g,r):(e[t.formatPrefix+"Formatter"]||e.formatter).call(g,e),m=e.style;var y=e.rotation;r.styledMode||(m.color=c(e.color,m.color,n.color,"#000000"),"contrast"===m.color?(t.contrastColor=b.getContrast(t.color||n.color),m.color=!o(p)&&e.inside||0>p||a.stacking?t.contrastColor:"#000000"):delete t.contrastColor,a.cursor&&(m.cursor=a.cursor));var v={r:e.borderRadius||0,rotation:y,padding:e.padding,zIndex:1};r.styledMode||(v.fill=e.backgroundColor,v.stroke=e.borderColor,v["stroke-width"]=e.borderWidth),l(v,(function(t,e){void 0===t&&delete v[e]}))}!h||s&&o(g)?s&&o(g)&&(h?v.text=g:(t.dataLabels=t.dataLabels||[],h=t.dataLabels[i]=y?b.text(g,0,-9999).addClass("highcharts-data-label"):b.label(g,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),i||(t.dataLabel=h),h.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),h.options=e,h.attr(v),r.styledMode||h.css(m).shadow(e.shadow),h.added||h.add(x),e.textPath&&!e.useHTML&&(h.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(h)||t.graphic,e.textPath),t.dataLabelPath&&!e.textPath.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),n.alignDataLabel(t,h,e,null,f)):(t.dataLabel=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[i]),i||delete t.dataLabel,u&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[i])))}))}))}t.fireEvent(this,"afterDrawDataLabels")},f.prototype.alignDataLabel=function(t,e,i,n,r){var o=this,s=this.chart,l=this.isCartesian&&s.inverted,h=this.enabledDataSorting,u=c(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),d=c(t.plotY,-9999),p=e.getBBox(),f=i.rotation,g=i.align,m=s.isInsidePlot(u,Math.round(d),l),y="justify"===c(i.overflow,h?"none":"justify"),v=this.visible&&(t.series.forceDL||h&&!y||m||n&&s.isInsidePlot(u,l?n.x+1:n.y+n.height-1,l)),b=function(i){h&&o.xAxis&&!y&&o.setDataLabelStartPos(t,e,r,m,i)};if(v){var x=s.renderer.fontMetrics(s.styledMode?void 0:i.style.fontSize,e).b;n=a({x:l?this.yAxis.len-d:u,y:Math.round(l?this.xAxis.len-u:d),width:0,height:0},n),a(i,{width:p.width,height:p.height}),f?(y=!1,u=s.renderer.rotCorr(x,f),b(u={x:n.x+i.x+n.width/2+u.x,y:n.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height}),e[r?"attr":"animate"](u).attr({align:g}),b=180<(b=(f+720)%360)&&360>b,"left"===g?u.y-=b?p.height:0:"center"===g?(u.x-=p.width/2,u.y-=p.height/2):"right"===g&&(u.x-=p.width,u.y-=b?0:p.height),e.placed=!0,e.alignAttr=u):(b(n),e.align(i,null,n),u=e.alignAttr),y&&0<=n.height?this.justifyDataLabel(e,i,u,p,n,r):c(i.crop,!0)&&(v=s.isInsidePlot(u.x,u.y)&&s.isInsidePlot(u.x+p.width,u.y+p.height)),i.shape&&!f&&e[r?"attr":"animate"]({anchorX:l?s.plotWidth-t.plotY:t.plotX,anchorY:l?s.plotHeight-t.plotX:t.plotY})}r&&h&&(e.placed=!1),v||h&&!y||(e.hide(!0),e.placed=!1)},f.prototype.setDataLabelStartPos=function(t,e,i,n,r){var o=this.chart,a=o.inverted,s=this.xAxis,l=s.reversed,c=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,s=a?r.x:l?-c-t:s.width-c+t,r=a?l?this.yAxis.height-c+t:-c-t:r.y,e.startXPos=s,e.startYPos=r,n?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},f.prototype.justifyDataLabel=function(t,e,i,n,r,o){var a=this.chart,s=e.align,l=e.verticalAlign,c=t.box?0:t.padding||0,h=i.x+c;if(0>h){"right"===s?(e.align="left",e.inside=!0):e.x=-h;var u=!0}return(h=i.x+n.width-c)>a.plotWidth&&("left"===s?(e.align="right",e.inside=!0):e.x=a.plotWidth-h,u=!0),0>(h=i.y+c)&&("bottom"===l?(e.verticalAlign="top",e.inside=!0):e.y=-h,u=!0),(h=i.y+n.height-c)>a.plotHeight&&("top"===l?(e.verticalAlign="bottom",e.inside=!0):e.y=a.plotHeight-h,u=!0),u&&(t.placed=!o,t.align(e,null,r)),u},g.pie&&(g.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,n){return t.getX(i<e.top+2||i>e.bottom-2?n:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,n){return t=t.getBBox().width,e?t+n:i-t-n},alignToConnectors:function(t,e,i,n){var r,o=0;return t.forEach((function(t){(r=t.dataLabel.getBBox().width)>o&&(o=r)})),e?o+n:i-o-n}},g.pie.prototype.drawDataLabels=function(){var e,i,r,a,s,l,h,u,d,g,m,y,v=this,b=v.data,x=v.chart,w=v.options.dataLabels,_=w.connectorPadding,S=x.plotWidth,P=x.plotHeight,k=x.plotLeft,C=Math.round(x.chartWidth/3),T=v.center,A=T[2]/2,O=T[1],M=[[],[]],E=[0,0,0,0],I=v.dataLabelPositioners;v.visible&&(w.enabled||v._hasPointLabels)&&(b.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),f.prototype.drawDataLabels.apply(v),b.forEach((function(t){t.dataLabel&&(t.visible?(M[t.half].push(t),t.dataLabel._pos=null,!o(w.style.width)&&!o(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>C&&(t.dataLabel.css({width:.7*C}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),M.forEach((function(i,n){var r,p=i.length,f=[];if(p){if(v.sortByAngle(i,n-.5),0<v.maxLabelDistance){var y=Math.max(0,O-A-v.maxLabelDistance),b=Math.min(O+A+v.maxLabelDistance,x.plotHeight);i.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,O-A-t.labelDistance),t.bottom=Math.min(O+A+t.labelDistance,x.plotHeight),r=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+r/2,size:r,rank:t.y},f.push(t.distributeBox))})),y=b+r-y,t.distribute(f,y,y/5)}for(m=0;m<p;m++){if(e=i[m],l=e.labelPosition,a=e.dataLabel,g=!1===e.visible?"hidden":"inherit",d=y=l.natural.y,f&&o(e.distributeBox)&&(void 0===e.distributeBox.pos?g="hidden":(h=e.distributeBox.size,d=I.radialDistributionY(e))),delete e.positionIndex,w.justify)u=I.justify(e,A,T);else switch(w.alignTo){case"connectors":u=I.alignToConnectors(i,n,S,k);break;case"plotEdges":u=I.alignToPlotEdges(a,n,S,k);break;default:u=I.radialDistributionX(v,e,d,y)}a._attr={visibility:g,align:l.alignment},a._pos={x:u+w.x+({left:_,right:-_}[l.alignment]||0),y:d+w.y-10},l.final.x=u,l.final.y=d,c(w.crop,!0)&&(s=a.getBBox().width,y=null,u-s<_&&1===n?(y=Math.round(s-u+_),E[3]=Math.max(y,E[3])):u+s>S-_&&0===n&&(y=Math.round(u+s-S+_),E[1]=Math.max(y,E[1])),0>d-h/2?E[0]=Math.max(Math.round(h/2-d),E[0]):d+h/2>P&&(E[2]=Math.max(Math.round(d+h/2-P),E[2])),a.sideOverflow=y)}}})),0===n(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach((function(t){var e;(y=p(w,t.options.dataLabels),i=c(y.connectorWidth,1))&&(r=t.connector,(a=t.dataLabel)&&a._pos&&t.visible&&0<t.labelDistance?(g=a._attr.visibility,(e=!r)&&(t.connector=r=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),x.styledMode||r.attr({"stroke-width":i,stroke:y.connectorColor||t.color||"#666666"})),r[e?"attr":"animate"]({d:t.getConnectorPath()}),r.attr("visibility",g)):r&&(t.connector=r.destroy()))})))},g.pie.prototype.placeDataLabels=function(){this.points.forEach((function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox}),this)},g.pie.prototype.alignDataLabel=e,g.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,n=i.center,o=i.minSize||80,a=null!==i.size;if(!a){if(null!==n[0])var s=Math.max(e[2]-Math.max(t[1],t[3]),o);else s=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2;null!==n[1]?s=r(s,o,e[2]-Math.max(t[0],t[2])):(s=r(s,o,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(h(i.innerSize||0,s),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):a=!0}return a}),g.column&&(g.column.prototype.alignDataLabel=function(t,e,i,n,r){var o=this.chart.inverted,a=t.series,s=t.dlBox||t.shapeArgs,l=c(t.below,t.plotY>c(this.translatedThreshold,a.yAxis.len)),h=c(i.inside,!!this.options.stacking);s&&(0>(n=p(s)).y&&(n.height+=n.y,n.y=0),0<(s=n.y+n.height-a.yAxis.len)&&(n.height-=s),o&&(n={x:a.yAxis.len-n.y-n.height,y:a.xAxis.len-n.x-n.width,width:n.height,height:n.width}),h||(o?(n.x+=l?0:n.width,n.width=0):(n.y+=l?n.height:0,n.height=0))),i.align=c(i.align,!o||h?"center":l?"right":"left"),i.verticalAlign=c(i.verticalAlign,o||h?"middle":l?"top":"bottom"),f.prototype.alignDataLabel.call(this,t,e,i,n,r),n&&(0>=n.height&&n.y===this.chart.plotHeight||0>=n.width&&0===n.x)&&(e.hide(!0),e.placed=!1),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})})),e(i,"modules/overlapping-datalabels.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isArray,n=e.objectEach,r=e.pick;e=t.Chart;var o=t.addEvent,a=t.fireEvent;o(e,"render",(function(){var t=[];(this.labelCollectors||[]).forEach((function(e){t=t.concat(e())})),(this.yAxis||[]).forEach((function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&n(e.stacks,(function(e){n(e,(function(e){t.push(e.label)}))}))})),(this.series||[]).forEach((function(e){var n=e.options.dataLabels;e.visible&&(!1!==n.enabled||e._hasPointLabels)&&e.points.forEach((function(e){e.visible&&(i(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[]).forEach((function(i){var n=i.options;i.labelrank=r(n.labelrank,e.labelrank,e.shapeArgs&&e.shapeArgs.height),n.allowOverlap||t.push(i)}))}))})),this.hideOverlappingLabels(t)})),e.prototype.hideOverlappingLabels=function(t){var e,i,n,r=this,o=t.length,s=r.renderer,l=!1,c=function(t){var e=t.box?0:t.padding||0,i=0;if(t&&(!t.alignAttr||t.placed)){var n=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},r=t.parentGroup;return t.width||(i=t.getBBox(),t.width=i.width,t.height=i.height,i=s.fontMetrics(null,t.element).h),{x:n.x+(r.translateX||0)+e,y:n.y+(r.translateY||0)+e-i,width:t.width-2*e,height:t.height-2*e}}};for(i=0;i<o;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=c(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),i=0;i<o;i++){var h=(c=t[i])&&c.absoluteBox;for(e=i+1;e<o;++e){var u=(n=t[e])&&n.absoluteBox;!h||!u||c===n||0===c.newOpacity||0===n.newOpacity||u.x>h.x+h.width||u.x+u.width<h.x||u.y>h.y+h.height||u.y+u.height<h.y||((c.labelrank<n.labelrank?c:n).newOpacity=0)}}t.forEach((function(t){var e;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(i?t.show(!0):e=function(){t.hide(!0),t.placed=!1},l=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e),a(r,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0}})),l&&a(r,"afterHideAllOverlappingLabels")}})),e(i,"parts/Interaction.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,n=e.extend,r=e.isArray,o=e.isObject,a=e.objectEach,s=e.pick,l=t.addEvent;e=t.Chart;var c=t.createElement,h=t.css,u=t.defaultOptions,d=t.defaultPlotOptions,p=t.fireEvent,f=t.hasTouch,g=t.Legend,m=t.merge,y=t.Point,v=t.Series,b=t.seriesTypes,x=t.svg,w=t.TrackerMixin={drawTrackerPoint:function(){var t,e=this,i=e.chart,n=i.pointer,o=function(t){var e=n.getPointFromEvent(t);void 0!==e&&(n.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=r(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",(function(t){n.onTrackerMouseOut(t)})),f&&e[t].on("touchstart",o),!i.styledMode&&e.options.cursor&&e[t].css(h).css({cursor:e.options.cursor}))})),e._hasTracking=!0),p(this,"afterDrawTracker")},drawTrackerGraph:function(){var t,e=this,i=e.options,n=i.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),o=r.length,a=e.chart,s=a.pointer,l=a.renderer,c=a.options.tooltip.snap,h=e.tracker,u=function(){a.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(x?1e-4:.002)+")";if(o&&!n)for(t=o+1;t--;)"M"===r[t]&&r.splice(t+1,0,r[t+1]-c,r[t+2],"L"),(t&&"M"===r[t]||t===o)&&r.splice(t,0,"L",r[t-2]+c,r[t-1]);h?h.attr({d:r}):e.graph&&(e.tracker=l.path(r).attr({visibility:e.visible?"visible":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),a.styledMode||e.tracker.attr({"stroke-linejoin":"round",stroke:d,fill:n?d:"none","stroke-width":e.graph.strokeWidth()+(n?0:2*c)}),[e.tracker,e.markerGroup].forEach((function(t){t.addClass("highcharts-tracker").on("mouseover",u).on("mouseout",(function(t){s.onTrackerMouseOut(t)})),i.cursor&&!a.styledMode&&t.css({cursor:i.cursor}),f&&t.on("touchstart",u)}))),p(this,"afterDrawTracker")}};b.column&&(b.column.prototype.drawTracker=w.drawTrackerPoint),b.pie&&(b.pie.prototype.drawTracker=w.drawTrackerPoint),b.scatter&&(b.scatter.prototype.drawTracker=w.drawTrackerPoint),n(g.prototype,{setItemEvents:function(t,e,i){var n=this,r=n.chart.renderer.boxWrapper,o=t instanceof y,a="highcharts-legend-"+(o?"point":"series")+"-active",s=n.chart.styledMode;(i?e:t.legendGroup).on("mouseover",(function(){t.visible&&n.allItems.forEach((function(e){t!==e&&e.setState("inactive",!o)})),t.setState("hover"),t.visible&&r.addClass(a),s||e.css(n.options.itemHoverStyle)})).on("mouseout",(function(){n.chart.styledMode||e.css(m(t.visible?n.itemStyle:n.itemHiddenStyle)),n.allItems.forEach((function(e){t!==e&&e.setState("",!o)})),r.removeClass(a),t.setState()})).on("click",(function(e){var i=function(){t.setVisible&&t.setVisible(),n.allItems.forEach((function(e){t!==e&&e.setState(t.visible?"inactive":"",!o)}))};r.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):p(t,"legendItemClick",e,i)}))},createCheckboxForItem:function(t){t.checkbox=c("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),l(t.checkbox,"click",(function(e){p(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))}}),n(e.prototype,{showResetZoom:function(){function t(){e.zoomOut()}var e=this,i=u.lang,n=e.options.chart.resetZoomButton,r=n.theme,o=r.states,a="chart"===n.relativeTo||"spaceBox"===n.relativeTo?null:"plotBox";p(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,r,o&&o.hover).attr({align:n.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,a)})),p(this,"afterShowResetZoom")},zoomOut:function(){p(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(t){var e,n=this,r=n.pointer,a=!1,l=n.inverted?r.mouseDownX:r.mouseDownY;!t||t.resetSelection?(n.axes.forEach((function(t){e=t.zoom()})),r.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var o=t.axis,s=n.inverted?o.left:o.top,c=n.inverted?s+o.width:s+o.height,h=o.isXAxis,u=!1;(!h&&l>=s&&l<=c||h||!i(l))&&(u=!0),r[h?"zoomX":"zoomY"]&&u&&(e=o.zoom(t.min,t.max),o.displayBtn&&(a=!0))}));var c=n.resetZoomButton;a&&!c?n.showResetZoom():!a&&o(c)&&(n.resetZoomButton=c.destroy()),e&&n.redraw(s(n.options.chart.animation,t&&t.animation,100>n.pointCount))},pan:function(t,e){var i,n=this,r=n.hoverPoints,o=n.options.chart;e="object"==typeof e?e:{enabled:e,type:"x"},o&&o.panning&&(o.panning=e);var a=e.type;p(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var e=[1];"xy"===a?e=[1,0]:"y"===a&&(e=[0]),e.forEach((function(e){var r=n[e?"xAxis":"yAxis"][0],o=r.options,a=r.horiz,s=t[a?"chartX":"chartY"],l=n[a=a?"mouseDownX":"mouseDownY"],c=(r.pointRange||0)/2,h=r.reversed&&!n.inverted||!r.reversed&&n.inverted?-1:1,u=r.getExtremes(),d=r.toValue(l-s,!0)+c*h,p=(h=r.toValue(l+r.len-s,!0)-c*h)<d;l=p?h:d,d=p?d:h,h=Math.min(u.dataMin,c?u.min:r.toValue(r.toPixels(u.min)-r.minPixelPadding)),c=Math.max(u.dataMax,c?u.max:r.toValue(r.toPixels(u.max)+r.minPixelPadding)),o.ordinal||(e&&(0<(o=h-l)&&(d+=o,l=h),0<(o=d-c)&&(d=c,l-=o)),(r.series.length&&l!==u.min&&d!==u.max&&e||r.panningState&&l>=r.panningState.startMin&&d<=r.panningState.startMax)&&(r.setExtremes(l,d,!1,!1,{trigger:"pan"}),i=!0),n[a]=s)})),i&&n.redraw(!1),h(n.container,{cursor:"move"})}))}}),n(y.prototype,{select:function(t,e){var i=this,n=i.series,r=n.chart;this.selectedStaging=t=s(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,n.options.data[n.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||r.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var e=this,i=m(e.series.options.point,e.options).events;e.events=i,a(i,(function(i,n){t.isFunction(i)&&l(e,n,i)})),this.hasImportedEvents=!0}},setState:function(t,e){var i,r=this.series,o=this.state,a=r.options.states[t||"normal"]||{},l=d[r.type].marker&&r.options.marker,c=l&&!1===l.enabled,h=l&&l.states&&l.states[t||"normal"]||{},u=!1===h.enabled,f=r.stateMarkerGraphic,g=this.marker||{},m=r.chart,y=r.halo,v=l&&r.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===a.enabled||t&&(u||c&&!1===h.enabled)||t&&g.states&&g.states[t]&&!1===g.states[t].enabled)){if(this.state=t,v&&(i=r.markerAttribs(this,t)),this.graphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),t&&this.graphic.addClass("highcharts-point-"+t),!m.styledMode){var b=r.pointAttribs(this,t),x=s(m.options.chart.animation,a.animation);r.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:b.opacity},x)})),this.connector&&this.connector.animate({opacity:b.opacity},x)),this.graphic.animate(b,x)}i&&this.graphic.animate(i,s(m.options.chart.animation,h.animation,l.animation)),f&&f.hide()}else t&&h&&(o=g.symbol||r.symbol,f&&f.currentSymbol!==o&&(f=f.destroy()),i&&(f?f[e?"animate":"attr"]({x:i.x,y:i.y}):o&&(r.stateMarkerGraphic=f=m.renderer.symbol(o,i.x,i.y,i.width,i.height).add(r.markerGroup),f.currentSymbol=o)),!m.styledMode&&f&&f.attr(r.pointAttribs(this,t))),f&&(f[t&&this.isInside?"show":"hide"](),f.element.point=this);t=a.halo,a=(f=this.graphic||f)&&f.visibility||"inherit",t&&t.size&&f&&"hidden"!==a&&!this.isCluster?(y||(r.halo=y=m.renderer.path().add(f.parentGroup)),y.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),y.attr({class:"highcharts-halo highcharts-color-"+s(this.colorIndex,r.colorIndex)+(this.className?" "+this.className:""),visibility:a,zIndex:-1}),y.point=this,m.styledMode||y.attr(n({fill:this.color||r.color,"fill-opacity":t.opacity},t.attributes))):y&&y.point&&y.point.haloPath&&y.animate({d:y.point.haloPath(0)},null,y.hide),p(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),n(v.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&p(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&p(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},setState:function(t,e){var i=this,n=i.options,r=i.graph,o=n.inactiveOtherPoints,a=n.states,l=n.lineWidth,c=n.opacity,h=s(a[t||"normal"]&&a[t||"normal"].animation,i.chart.options.chart.animation);if(n=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),c=s(a[t].opacity,c)),r&&!r.dashstyle)for(a={"stroke-width":l},r.animate(a,h);i["zone-graph-"+n];)i["zone-graph-"+n].attr(a),n+=1;o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:c},h)}))}e&&o&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},setVisible:function(t,e){var i=this,n=i.chart,r=i.legendItem,o=n.options.chart.ignoreHiddenSeries,a=i.visible,s=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][s]()})),n.hoverSeries!==i&&(n.hoverPoint&&n.hoverPoint.series)!==i||i.onMouseOut(),r&&n.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&n.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(n.isDirtyBox=!0),p(i,s),!1!==e&&n.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),p(this,t?"select":"unselect")},drawTracker:w.drawTrackerGraph})})),e(i,"parts/Responsive.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isArray,n=e.isObject,r=e.objectEach,o=e.pick,a=e.splat;(e=t.Chart).prototype.setResponsive=function(e,i){var n=this.options.responsive,r=[],o=this.currentResponsive;!i&&n&&n.rules&&n.rules.forEach((function(e){void 0===e._id&&(e._id=t.uniqueKey()),this.matchResponsiveRule(e,r)}),this),(i=t.merge.apply(0,r.map((function(e){return t.find(n.rules,(function(t){return t._id===e})).chartOptions})))).isResponsiveOptions=!0,(r=r.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e,!0),r?((o=this.currentOptions(i)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:r,mergedOptions:i,undoOptions:o},this.update(i,e,!0)):this.currentResponsive=void 0)},e.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=o(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=o(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(t){var e=this,o={};return function t(o,s,l,c){var h;r(o,(function(r,o){if(!c&&-1<e.collectionsWithUpdate.indexOf(o))for(r=a(r),l[o]=[],h=0;h<r.length;h++)s[o][h]&&(l[o][h]={},t(r[h],s[o][h],l[o][h],c+1));else n(r)?(l[o]=i(r)?[]:{},t(r,s[o]||{},l[o],c+1)):l[o]=void 0===s[o]?null:s[o]}))}(t,this.options,o,0),o}})),e(i,"masters/highcharts.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){return(0,e.extend)(t,{animObject:e.animObject,arrayMax:e.arrayMax,arrayMin:e.arrayMin,attr:e.attr,correctFloat:e.correctFloat,defined:e.defined,destroyObjectProperties:e.destroyObjectProperties,discardElement:e.discardElement,erase:e.erase,extend:e.extend,extendClass:e.extendClass,isArray:e.isArray,isClass:e.isClass,isDOMElement:e.isDOMElement,isNumber:e.isNumber,isObject:e.isObject,isString:e.isString,numberFormat:e.numberFormat,objectEach:e.objectEach,offset:e.offset,pad:e.pad,pick:e.pick,pInt:e.pInt,relativeLength:e.relativeLength,setAnimation:e.setAnimation,splat:e.splat,syncTimeout:e.syncTimeout,wrap:e.wrap}),t})),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]})),function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/highcharts-3d",["highcharts"],(function(e){return t(e),t.Highcharts=e,t})):t("undefined"!=typeof Highcharts?Highcharts:void 0)}((function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}e(t=t?t._modules:{},"parts-3d/Math.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.pick,n=t.deg2rad;t.perspective3D=function(t,e,i){return e=0<i&&i<Number.POSITIVE_INFINITY?i/(t.z+e.z+i):1,{x:t.x*e,y:t.y*e}},t.perspective=function(e,r,o){var a=r.options.chart.options3d,s=!!o&&r.inverted,l={x:r.plotWidth/2,y:r.plotHeight/2,z:a.depth/2,vd:i(a.depth,1)*i(a.viewDistance,0)},c=r.scale3d||1,h=n*a.beta*(s?-1:1);a=n*a.alpha*(s?-1:1);var u=Math.cos(a),d=Math.cos(-h),p=Math.sin(a),f=Math.sin(-h);return o||(l.x+=r.plotLeft,l.y+=r.plotTop),e.map((function(e){var i=(s?e.y:e.x)-l.x,n=(s?e.x:e.y)-l.y;return e=(e.z||0)-l.z,i={x:d*i-f*e,y:-p*f*i+u*n-d*p*e,z:u*f*i+p*n+u*d*e},(n=t.perspective3D(i,l,l.vd)).x=n.x*c+l.x,n.y=n.y*c+l.y,n.z=i.z*c+l.z,{x:s?n.y:n.x,y:s?n.x:n.y,z:n.z}}))},t.pointCameraDistance=function(t,e){var n=e.options.chart.options3d,r=e.plotWidth/2;return e=e.plotHeight/2,n=i(n.depth,1)*i(n.viewDistance,0)+n.depth,Math.sqrt(Math.pow(r-t.plotX,2)+Math.pow(e-t.plotY,2)+Math.pow(n-t.plotZ,2))},t.shapeArea=function(t){var e,i=0;for(e=0;e<t.length;e++){var n=(e+1)%t.length;i+=t[e].x*t[n].y-t[n].x*t[e].y}return i/2},t.shapeArea3d=function(e,i,n){return t.shapeArea(t.perspective(e,i,n))}})),e(t,"parts-3d/SVGRenderer.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){function i(t,e,n,r,o,a,s,l){var c=[],h=a-o;return a>o&&a-o>Math.PI/2+1e-4?c=(c=c.concat(i(t,e,n,r,o,o+Math.PI/2,s,l))).concat(i(t,e,n,r,o+Math.PI/2,a,s,l)):a<o&&o-a>Math.PI/2+1e-4?c=(c=c.concat(i(t,e,n,r,o,o-Math.PI/2,s,l))).concat(i(t,e,n,r,o-Math.PI/2,a,s,l)):["C",t+n*Math.cos(o)-n*y*h*Math.sin(o)+s,e+r*Math.sin(o)+r*y*h*Math.cos(o)+l,t+n*Math.cos(a)+n*y*h*Math.sin(a)+s,e+r*Math.sin(a)-r*y*h*Math.cos(a)+l,t+n*Math.cos(a)+s,e+r*Math.sin(a)+l]}var n=e.animObject,r=e.defined,o=e.extend,a=e.objectEach,s=e.pick,l=Math.cos,c=Math.PI,h=Math.sin,u=t.charts,d=t.color,p=t.deg2rad,f=t.merge,g=t.perspective,m=t.SVGElement;e=t.SVGRenderer;var y=4*(Math.sqrt(2)-1)/3/(c/2);e.prototype.toLinePath=function(t,e){var i=[];return t.forEach((function(t){i.push("L",t.x,t.y)})),t.length&&(i[0]="M",e&&i.push("Z")),i},e.prototype.toLineSegments=function(t){var e=[],i=!0;return t.forEach((function(t){e.push(i?"M":"L",t.x,t.y),i=!i})),e},e.prototype.face3d=function(e){var i=this,n=this.createElement("path");return n.vertexes=[],n.insidePlotArea=!1,n.enabled=!0,n.attr=function(e){if("object"==typeof e&&(r(e.enabled)||r(e.vertexes)||r(e.insidePlotArea))){this.enabled=s(e.enabled,this.enabled),this.vertexes=s(e.vertexes,this.vertexes),this.insidePlotArea=s(e.insidePlotArea,this.insidePlotArea),delete e.enabled,delete e.vertexes,delete e.insidePlotArea;var n=g(this.vertexes,u[i.chartIndex],this.insidePlotArea),o=i.toLinePath(n,!0);n=t.shapeArea(n),n=this.enabled&&0<n?"visible":"hidden",e.d=o,e.visibility=n}return m.prototype.attr.apply(this,arguments)},n.animate=function(e){if("object"==typeof e&&(r(e.enabled)||r(e.vertexes)||r(e.insidePlotArea))){this.enabled=s(e.enabled,this.enabled),this.vertexes=s(e.vertexes,this.vertexes),this.insidePlotArea=s(e.insidePlotArea,this.insidePlotArea),delete e.enabled,delete e.vertexes,delete e.insidePlotArea;var n=g(this.vertexes,u[i.chartIndex],this.insidePlotArea),o=i.toLinePath(n,!0);n=t.shapeArea(n),n=this.enabled&&0<n?"visible":"hidden",e.d=o,this.attr("visibility",n)}return m.prototype.animate.apply(this,arguments)},n.attr(e)},e.prototype.polyhedron=function(t){var e=this,i=this.g(),n=i.destroy;return this.styledMode||i.attr({"stroke-linejoin":"round"}),i.faces=[],i.destroy=function(){for(var t=0;t<i.faces.length;t++)i.faces[t].destroy();return n.call(this)},i.attr=function(t,n,o,a){if("object"==typeof t&&r(t.faces)){for(;i.faces.length>t.faces.length;)i.faces.pop().destroy();for(;i.faces.length<t.faces.length;)i.faces.push(e.face3d().add(i));for(var s=0;s<t.faces.length;s++)e.styledMode&&delete t.faces[s].fill,i.faces[s].attr(t.faces[s],null,o,a);delete t.faces}return m.prototype.attr.apply(this,arguments)},i.animate=function(t,n,r){if(t&&t.faces){for(;i.faces.length>t.faces.length;)i.faces.pop().destroy();for(;i.faces.length<t.faces.length;)i.faces.push(e.face3d().add(i));for(var o=0;o<t.faces.length;o++)i.faces[o].animate(t.faces[o],n,r);delete t.faces}return m.prototype.animate.apply(this,arguments)},i.attr(t)};var v={initArgs:function(t){var e=this,i=e.renderer,n=i[e.pathType+"Path"](t),r=n.zIndexes;e.parts.forEach((function(t){e[t]=i.path(n[t]).attr({class:"highcharts-3d-"+t,zIndex:r[t]||0}).add(e)})),e.attr({"stroke-linejoin":"round",zIndex:r.group}),e.originalDestroy=e.destroy,e.destroy=e.destroyParts},singleSetterForParts:function(t,e,i,n,r,o){var s={};n=[null,null,n||"attr",r,o];var l=i&&i.zIndexes;return i?(a(i,(function(e,n){s[n]={},s[n][t]=e,l&&(s[n].zIndex=i.zIndexes[n]||0)})),n[1]=s):(s[t]=e,n[0]=s),this.processParts.apply(this,n)},processParts:function(t,e,i,n,r){var o=this;return o.parts.forEach((function(a){e&&(t=s(e[a],!1)),!1!==t&&o[a][i](t,n,r)})),o},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},b=t.merge(v,{parts:["front","top","side"],pathType:"cuboid",attr:function(t,e,i,n){if("string"==typeof t&&void 0!==e){var o=t;(t={})[o]=e}return t.shapeArgs||r(t.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](t.shapeArgs||t)):m.prototype.attr.call(this,t,void 0,i,n)},animate:function(t,e,i){return r(t.x)&&r(t.y)?(t=this.renderer[this.pathType+"Path"](t),this.singleSetterForParts("d",null,t,"animate",e,i),this.attr({zIndex:t.zIndexes.group})):m.prototype.animate.call(this,t,e,i),this},fillSetter:function(t){return this.singleSetterForParts("fill",null,{front:t,top:d(t).brighten(.1).get(),side:d(t).brighten(-.1).get()}),this.color=this.fill=t,this}});e.prototype.elements3d={base:v,cuboid:b},e.prototype.element3d=function(t,e){var i=this.g();return o(i,this.elements3d[t]),i.initArgs(e),i},e.prototype.cuboid=function(t){return this.element3d("cuboid",t)},t.SVGRenderer.prototype.cuboidPath=function(e){function i(t){return p[t]}var n=e.x,r=e.y,o=e.z,a=e.height,s=e.width,l=e.depth,c=u[this.chartIndex],h=c.options.chart.options3d.alpha,d=0,p=[{x:n,y:r,z:o},{x:n+s,y:r,z:o},{x:n+s,y:r+a,z:o},{x:n,y:r+a,z:o},{x:n,y:r+a,z:o+l},{x:n+s,y:r+a,z:o+l},{x:n+s,y:r,z:o+l},{x:n,y:r,z:o+l}];p=g(p,c,e.insidePlotArea);var f=function(e,n){var r=[[],-1];return e=e.map(i),n=n.map(i),0>t.shapeArea(e)?r=[e,0]:0>t.shapeArea(n)&&(r=[n,1]),r},m=f([3,2,1,0],[7,6,5,4]);return e=m[0],s=m[1],a=(m=f([1,6,7,0],[4,5,2,3]))[0],l=m[1],m=f([1,2,5,6],[0,7,4,3]),f=m[0],1===(m=m[1])?d+=1e4*(1e3-n):m||(d+=1e4*n),d+=10*(!l||0<=h&&180>=h||360>h&&357.5<h?c.plotHeight-r:10+r),1===s?d+=100*o:s||(d+=100*(1e3-o)),{front:this.toLinePath(e,!0),top:this.toLinePath(a,!0),side:this.toLinePath(f,!0),zIndexes:{group:Math.round(d)},isFront:s,isTop:l}},t.SVGRenderer.prototype.arc3d=function(e){function i(t){var e,i=!1,n={};for(e in t=f(t))-1!==l.indexOf(e)&&(n[e]=t[e],delete t[e],i=!0);return!!i&&n}var r=this.g(),a=r.renderer,l="x y r innerR start end".split(" ");return(e=f(e)).alpha=(e.alpha||0)*p,e.beta=(e.beta||0)*p,r.top=a.path(),r.side1=a.path(),r.side2=a.path(),r.inn=a.path(),r.out=a.path(),r.onAdd=function(){var t=r.parentGroup,e=r.attr("class");r.top.add(r),["out","inn","side1","side2"].forEach((function(i){r[i].attr({class:e+" highcharts-3d-side"}).add(t)}))},["addClass","removeClass"].forEach((function(t){r[t]=function(){var e=arguments;["top","out","inn","side1","side2"].forEach((function(i){r[i][t].apply(r[i],e)}))}})),r.setPaths=function(t){var e=r.renderer.arc3dPath(t),i=100*e.zTop;r.attribs=t,r.top.attr({d:e.top,zIndex:e.zTop}),r.inn.attr({d:e.inn,zIndex:e.zInn}),r.out.attr({d:e.out,zIndex:e.zOut}),r.side1.attr({d:e.side1,zIndex:e.zSide1}),r.side2.attr({d:e.side2,zIndex:e.zSide2}),r.zIndex=i,r.attr({zIndex:i}),t.center&&(r.top.setRadialReference(t.center),delete t.center)},r.setPaths(e),r.fillSetter=function(t){var e=d(t).brighten(-.1).get();return this.fill=t,this.side1.attr({fill:e}),this.side2.attr({fill:e}),this.inn.attr({fill:e}),this.out.attr({fill:e}),this.top.attr({fill:t}),this},["opacity","translateX","translateY","visibility"].forEach((function(t){r[t+"Setter"]=function(t,e){r[e]=t,["out","inn","side1","side2","top"].forEach((function(i){r[i].attr(e,t)}))}})),r.attr=function(t){var e;return"object"==typeof t&&(e=i(t))&&(o(r.attribs,e),r.setPaths(r.attribs)),m.prototype.attr.apply(r,arguments)},r.animate=function(e,o,a){var l=this.attribs,c="data-"+Math.random().toString(26).substring(2,9);delete e.center,delete e.z,delete e.depth,delete e.alpha,delete e.beta;var h=n(s(o,this.renderer.globalAnimation));if(h.duration){var u=i(e);r[c]=0,e[c]=1,r[c+"Setter"]=t.noop,u&&(h.step=function(t,e){function i(t){return l[t]+(s(u[t],l[t])-l[t])*e.pos}e.prop===c&&e.elem.setPaths(f(l,{x:i("x"),y:i("y"),r:i("r"),innerR:i("innerR"),start:i("start"),end:i("end")}))}),o=h}return m.prototype.animate.call(this,e,o,a)},r.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),m.prototype.destroy.call(this)},r.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},r.show=function(t){this.top.show(t),this.out.show(t),this.inn.show(t),this.side1.show(t),this.side2.show(t)},r},e.prototype.arc3dPath=function(t){function e(t){return(t%=2*Math.PI)>Math.PI&&(t=2*Math.PI-t),t}var n=t.x,r=t.y,o=t.start,a=t.end-1e-5,s=t.r,u=t.innerR||0,d=t.depth||0,p=t.alpha,f=t.beta,g=Math.cos(o),m=Math.sin(o);t=Math.cos(a);var y=Math.sin(a),v=s*Math.cos(f);s*=Math.cos(p);var b=u*Math.cos(f),x=u*Math.cos(p);u=d*Math.sin(f);var w=d*Math.sin(p);d=(d=(d=(d=(d=["M",n+v*g,r+s*m]).concat(i(n,r,v,s,o,a,0,0))).concat(["L",n+b*t,r+x*y])).concat(i(n,r,b,x,a,o,0,0))).concat(["Z"]);var _=0<f?Math.PI/2:0;f=0<p?0:Math.PI/2;var S=a<c-f?a:o<c-f?c-f:a,P=2*c-f;return p=(p=["M",n+v*l(_=o>-_?o:a>-_?-_:o),r+s*h(_)]).concat(i(n,r,v,s,_,S,0,0)),a>P&&o<P?p=(p=(p=(p=(p=(p=(p=(p=p.concat(["L",n+v*l(S)+u,r+s*h(S)+w])).concat(i(n,r,v,s,S,P,u,w))).concat(["L",n+v*l(P),r+s*h(P)])).concat(i(n,r,v,s,P,a,0,0))).concat(["L",n+v*l(a)+u,r+s*h(a)+w])).concat(i(n,r,v,s,a,P,u,w))).concat(["L",n+v*l(P),r+s*h(P)])).concat(i(n,r,v,s,P,S,0,0)):a>c-f&&o<c-f&&(p=(p=(p=(p=p.concat(["L",n+v*Math.cos(S)+u,r+s*Math.sin(S)+w])).concat(i(n,r,v,s,S,a,u,w))).concat(["L",n+v*Math.cos(a),r+s*Math.sin(a)])).concat(i(n,r,v,s,a,S,0,0))),p=(p=(p=p.concat(["L",n+v*Math.cos(S)+u,r+s*Math.sin(S)+w])).concat(i(n,r,v,s,S,_,u,w))).concat(["Z"]),f=(f=(f=(f=(f=["M",n+b*g,r+x*m]).concat(i(n,r,b,x,o,a,0,0))).concat(["L",n+b*Math.cos(a)+u,r+x*Math.sin(a)+w])).concat(i(n,r,b,x,a,o,u,w))).concat(["Z"]),g=["M",n+v*g,r+s*m,"L",n+v*g+u,r+s*m+w,"L",n+b*g+u,r+x*m+w,"L",n+b*g,r+x*m,"Z"],n=["M",n+v*t,r+s*y,"L",n+v*t+u,r+s*y+w,"L",n+b*t+u,r+x*y+w,"L",n+b*t,r+x*y,"Z"],y=Math.atan2(w,-u),r=Math.abs(a+y),t=Math.abs(o+y),o=Math.abs((o+a)/2+y),r=e(r),t=e(t),o=e(o),o*=1e5,a=1e5*t,r*=1e5,{top:d,zTop:1e5*Math.PI+1,out:p,zOut:Math.max(o,a,r),inn:f,zInn:Math.max(o,a,r),side1:g,zSide1:.99*r,side2:n,zSide2:.99*a}}})),e(t,"parts-3d/Chart.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.isArray,n=e.pick;e=e.wrap;var r=t.addEvent,o=t.Chart,a=t.merge,s=t.perspective;o.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled},o.prototype.propsRequireDirtyBox.push("chart.options3d"),o.prototype.propsRequireUpdateSeries.push("chart.options3d"),r(o,"afterInit",(function(){var t=this.options;this.is3d()&&(t.series||[]).forEach((function(e){"scatter"===(e.type||t.chart.type||t.chart.defaultSeriesType)&&(e.type="scatter3d")}))})),r(o,"addSeries",(function(t){this.is3d()&&"scatter"===t.options.type&&(t.options.type="scatter3d")})),e(t.Chart.prototype,"isInsidePlot",(function(t){return this.is3d()||t.apply(this,[].slice.call(arguments,1))})),a(!0,t.getOptions(),{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}}),r(o,"afterGetContainer",(function(){this.styledMode&&(this.renderer.definition({tagName:"style",textContent:".highcharts-3d-top{filter: url(#highcharts-brighter)}\n.highcharts-3d-side{filter: url(#highcharts-darker)}\n"}),[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach((function(t){this.renderer.definition({tagName:"filter",id:"highcharts-"+t.name,children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",type:"linear",slope:t.slope},{tagName:"feFuncG",type:"linear",slope:t.slope},{tagName:"feFuncB",type:"linear",slope:t.slope}]}]})}),this))})),e(o.prototype,"setClassName",(function(t){t.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")})),r(t.Chart,"afterSetChartSize",(function(){var t=this.options.chart.options3d;if(this.is3d()){var e=this.inverted,i=this.clipBox,n=this.margin;i[e?"y":"x"]=-(n[3]||0),i[e?"x":"y"]=-(n[0]||0),i[e?"height":"width"]=this.chartWidth+(n[3]||0)+(n[1]||0),i[e?"width":"height"]=this.chartHeight+(n[0]||0)+(n[2]||0),this.scale3d=1,!0===t.fitToPlot&&(this.scale3d=function(t,e){var i=t.plotLeft,n=t.plotWidth+i,r=t.plotTop,o=t.plotHeight+r,a=i+t.plotWidth/2,l=r+t.plotHeight/2,c=Number.MAX_VALUE,h=-Number.MAX_VALUE,u=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=1,f=[{x:i,y:r,z:0},{x:i,y:r,z:e}];return[0,1].forEach((function(t){f.push({x:n,y:f[t].y,z:f[t].z})})),[0,1,2,3].forEach((function(t){f.push({x:f[t].x,y:o,z:f[t].z})})),(f=s(f,t,!1)).forEach((function(t){c=Math.min(c,t.x),h=Math.max(h,t.x),u=Math.min(u,t.y),d=Math.max(d,t.y)})),i>c&&(p=Math.min(p,1-Math.abs((i+a)/(c+a))%1)),n<h&&(p=Math.min(p,(n-a)/(h-a))),r>u&&(p=0>u?Math.min(p,(r+l)/(-u+r+l)):Math.min(p,1-(r+l)/(u+l)%1)),o<d&&(p=Math.min(p,Math.abs((o-l)/(d-l)))),p}(this,t.depth)),this.frame3d=this.get3dFrame()}})),r(o,"beforeRedraw",(function(){this.is3d()&&(this.isDirtyBox=!0)})),r(o,"beforeRender",(function(){this.is3d()&&(this.frame3d=this.get3dFrame())})),e(o.prototype,"renderSeries",(function(t){var e=this.series.length;if(this.is3d())for(;e--;)(t=this.series[e]).translate(),t.render();else t.call(this)})),r(o,"afterDrawChartBox",(function(){if(this.is3d()){var e=this.renderer,i=this.options.chart.options3d,n=this.get3dFrame(),r=this.plotLeft,o=this.plotLeft+this.plotWidth,a=this.plotTop,s=this.plotTop+this.plotHeight;i=i.depth;var l=r-(n.left.visible?n.left.size:0),c=o+(n.right.visible?n.right.size:0),h=a-(n.top.visible?n.top.size:0),u=s+(n.bottom.visible?n.bottom.size:0),d=0-(n.front.visible?n.front.size:0),p=i+(n.back.visible?n.back.size:0),f=this.hasRendered?"animate":"attr";this.frame3d=n,this.frameShapes||(this.frameShapes={bottom:e.polyhedron().add(),top:e.polyhedron().add(),left:e.polyhedron().add(),right:e.polyhedron().add(),back:e.polyhedron().add(),front:e.polyhedron().add()}),this.frameShapes.bottom[f]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:n.bottom.frontFacing?-1e3:1e3,faces:[{fill:t.color(n.bottom.color).brighten(.1).get(),vertexes:[{x:l,y:u,z:d},{x:c,y:u,z:d},{x:c,y:u,z:p},{x:l,y:u,z:p}],enabled:n.bottom.visible},{fill:t.color(n.bottom.color).brighten(.1).get(),vertexes:[{x:r,y:s,z:i},{x:o,y:s,z:i},{x:o,y:s,z:0},{x:r,y:s,z:0}],enabled:n.bottom.visible},{fill:t.color(n.bottom.color).brighten(-.1).get(),vertexes:[{x:l,y:u,z:d},{x:l,y:u,z:p},{x:r,y:s,z:i},{x:r,y:s,z:0}],enabled:n.bottom.visible&&!n.left.visible},{fill:t.color(n.bottom.color).brighten(-.1).get(),vertexes:[{x:c,y:u,z:p},{x:c,y:u,z:d},{x:o,y:s,z:0},{x:o,y:s,z:i}],enabled:n.bottom.visible&&!n.right.visible},{fill:t.color(n.bottom.color).get(),vertexes:[{x:c,y:u,z:d},{x:l,y:u,z:d},{x:r,y:s,z:0},{x:o,y:s,z:0}],enabled:n.bottom.visible&&!n.front.visible},{fill:t.color(n.bottom.color).get(),vertexes:[{x:l,y:u,z:p},{x:c,y:u,z:p},{x:o,y:s,z:i},{x:r,y:s,z:i}],enabled:n.bottom.visible&&!n.back.visible}]}),this.frameShapes.top[f]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:n.top.frontFacing?-1e3:1e3,faces:[{fill:t.color(n.top.color).brighten(.1).get(),vertexes:[{x:l,y:h,z:p},{x:c,y:h,z:p},{x:c,y:h,z:d},{x:l,y:h,z:d}],enabled:n.top.visible},{fill:t.color(n.top.color).brighten(.1).get(),vertexes:[{x:r,y:a,z:0},{x:o,y:a,z:0},{x:o,y:a,z:i},{x:r,y:a,z:i}],enabled:n.top.visible},{fill:t.color(n.top.color).brighten(-.1).get(),vertexes:[{x:l,y:h,z:p},{x:l,y:h,z:d},{x:r,y:a,z:0},{x:r,y:a,z:i}],enabled:n.top.visible&&!n.left.visible},{fill:t.color(n.top.color).brighten(-.1).get(),vertexes:[{x:c,y:h,z:d},{x:c,y:h,z:p},{x:o,y:a,z:i},{x:o,y:a,z:0}],enabled:n.top.visible&&!n.right.visible},{fill:t.color(n.top.color).get(),vertexes:[{x:l,y:h,z:d},{x:c,y:h,z:d},{x:o,y:a,z:0},{x:r,y:a,z:0}],enabled:n.top.visible&&!n.front.visible},{fill:t.color(n.top.color).get(),vertexes:[{x:c,y:h,z:p},{x:l,y:h,z:p},{x:r,y:a,z:i},{x:o,y:a,z:i}],enabled:n.top.visible&&!n.back.visible}]}),this.frameShapes.left[f]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:n.left.frontFacing?-1e3:1e3,faces:[{fill:t.color(n.left.color).brighten(.1).get(),vertexes:[{x:l,y:u,z:d},{x:r,y:s,z:0},{x:r,y:s,z:i},{x:l,y:u,z:p}],enabled:n.left.visible&&!n.bottom.visible},{fill:t.color(n.left.color).brighten(.1).get(),vertexes:[{x:l,y:h,z:p},{x:r,y:a,z:i},{x:r,y:a,z:0},{x:l,y:h,z:d}],enabled:n.left.visible&&!n.top.visible},{fill:t.color(n.left.color).brighten(-.1).get(),vertexes:[{x:l,y:u,z:p},{x:l,y:h,z:p},{x:l,y:h,z:d},{x:l,y:u,z:d}],enabled:n.left.visible},{fill:t.color(n.left.color).brighten(-.1).get(),vertexes:[{x:r,y:a,z:i},{x:r,y:s,z:i},{x:r,y:s,z:0},{x:r,y:a,z:0}],enabled:n.left.visible},{fill:t.color(n.left.color).get(),vertexes:[{x:l,y:u,z:d},{x:l,y:h,z:d},{x:r,y:a,z:0},{x:r,y:s,z:0}],enabled:n.left.visible&&!n.front.visible},{fill:t.color(n.left.color).get(),vertexes:[{x:l,y:h,z:p},{x:l,y:u,z:p},{x:r,y:s,z:i},{x:r,y:a,z:i}],enabled:n.left.visible&&!n.back.visible}]}),this.frameShapes.right[f]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:n.right.frontFacing?-1e3:1e3,faces:[{fill:t.color(n.right.color).brighten(.1).get(),vertexes:[{x:c,y:u,z:p},{x:o,y:s,z:i},{x:o,y:s,z:0},{x:c,y:u,z:d}],enabled:n.right.visible&&!n.bottom.visible},{fill:t.color(n.right.color).brighten(.1).get(),vertexes:[{x:c,y:h,z:d},{x:o,y:a,z:0},{x:o,y:a,z:i},{x:c,y:h,z:p}],enabled:n.right.visible&&!n.top.visible},{fill:t.color(n.right.color).brighten(-.1).get(),vertexes:[{x:o,y:a,z:0},{x:o,y:s,z:0},{x:o,y:s,z:i},{x:o,y:a,z:i}],enabled:n.right.visible},{fill:t.color(n.right.color).brighten(-.1).get(),vertexes:[{x:c,y:u,z:d},{x:c,y:h,z:d},{x:c,y:h,z:p},{x:c,y:u,z:p}],enabled:n.right.visible},{fill:t.color(n.right.color).get(),vertexes:[{x:c,y:h,z:d},{x:c,y:u,z:d},{x:o,y:s,z:0},{x:o,y:a,z:0}],enabled:n.right.visible&&!n.front.visible},{fill:t.color(n.right.color).get(),vertexes:[{x:c,y:u,z:p},{x:c,y:h,z:p},{x:o,y:a,z:i},{x:o,y:s,z:i}],enabled:n.right.visible&&!n.back.visible}]}),this.frameShapes.back[f]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:n.back.frontFacing?-1e3:1e3,faces:[{fill:t.color(n.back.color).brighten(.1).get(),vertexes:[{x:c,y:u,z:p},{x:l,y:u,z:p},{x:r,y:s,z:i},{x:o,y:s,z:i}],enabled:n.back.visible&&!n.bottom.visible},{fill:t.color(n.back.color).brighten(.1).get(),vertexes:[{x:l,y:h,z:p},{x:c,y:h,z:p},{x:o,y:a,z:i},{x:r,y:a,z:i}],enabled:n.back.visible&&!n.top.visible},{fill:t.color(n.back.color).brighten(-.1).get(),vertexes:[{x:l,y:u,z:p},{x:l,y:h,z:p},{x:r,y:a,z:i},{x:r,y:s,z:i}],enabled:n.back.visible&&!n.left.visible},{fill:t.color(n.back.color).brighten(-.1).get(),vertexes:[{x:c,y:h,z:p},{x:c,y:u,z:p},{x:o,y:s,z:i},{x:o,y:a,z:i}],enabled:n.back.visible&&!n.right.visible},{fill:t.color(n.back.color).get(),vertexes:[{x:r,y:a,z:i},{x:o,y:a,z:i},{x:o,y:s,z:i},{x:r,y:s,z:i}],enabled:n.back.visible},{fill:t.color(n.back.color).get(),vertexes:[{x:l,y:u,z:p},{x:c,y:u,z:p},{x:c,y:h,z:p},{x:l,y:h,z:p}],enabled:n.back.visible}]}),this.frameShapes.front[f]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:n.front.frontFacing?-1e3:1e3,faces:[{fill:t.color(n.front.color).brighten(.1).get(),vertexes:[{x:l,y:u,z:d},{x:c,y:u,z:d},{x:o,y:s,z:0},{x:r,y:s,z:0}],enabled:n.front.visible&&!n.bottom.visible},{fill:t.color(n.front.color).brighten(.1).get(),vertexes:[{x:c,y:h,z:d},{x:l,y:h,z:d},{x:r,y:a,z:0},{x:o,y:a,z:0}],enabled:n.front.visible&&!n.top.visible},{fill:t.color(n.front.color).brighten(-.1).get(),vertexes:[{x:l,y:h,z:d},{x:l,y:u,z:d},{x:r,y:s,z:0},{x:r,y:a,z:0}],enabled:n.front.visible&&!n.left.visible},{fill:t.color(n.front.color).brighten(-.1).get(),vertexes:[{x:c,y:u,z:d},{x:c,y:h,z:d},{x:o,y:a,z:0},{x:o,y:s,z:0}],enabled:n.front.visible&&!n.right.visible},{fill:t.color(n.front.color).get(),vertexes:[{x:o,y:a,z:0},{x:r,y:a,z:0},{x:r,y:s,z:0},{x:o,y:s,z:0}],enabled:n.front.visible},{fill:t.color(n.front.color).get(),vertexes:[{x:c,y:u,z:d},{x:l,y:u,z:d},{x:l,y:h,z:d},{x:c,y:h,z:d}],enabled:n.front.visible}]})}})),o.prototype.retrieveStacks=function(t){var e,i=this.series,r={},o=1;return this.series.forEach((function(a){e=n(a.options.stack,t?0:i.length-1-a.index),r[e]?r[e].series.push(a):(r[e]={series:[a],position:o},o++)})),r.totalStacks=o+1,r},o.prototype.get3dFrame=function(){var e=this,i=e.options.chart.options3d,r=i.frame,o=e.plotLeft,a=e.plotLeft+e.plotWidth,l=e.plotTop,c=e.plotTop+e.plotHeight,h=i.depth,u=function(i){return.5<(i=t.shapeArea3d(i,e))?1:-.5>i?-1:0},d=u([{x:o,y:c,z:h},{x:a,y:c,z:h},{x:a,y:c,z:0},{x:o,y:c,z:0}]),p=u([{x:o,y:l,z:0},{x:a,y:l,z:0},{x:a,y:l,z:h},{x:o,y:l,z:h}]),f=u([{x:o,y:l,z:0},{x:o,y:l,z:h},{x:o,y:c,z:h},{x:o,y:c,z:0}]),g=u([{x:a,y:l,z:h},{x:a,y:l,z:0},{x:a,y:c,z:0},{x:a,y:c,z:h}]),m=u([{x:o,y:c,z:0},{x:a,y:c,z:0},{x:a,y:l,z:0},{x:o,y:l,z:0}]);u=u([{x:o,y:l,z:h},{x:a,y:l,z:h},{x:a,y:c,z:h},{x:o,y:c,z:h}]);var y=!1,v=!1,b=!1,x=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach((function(t){t&&(t.horiz?t.opposite?v=!0:y=!0:t.opposite?x=!0:b=!0)}));var w=function(t,e,i){for(var r=["size","color","visible"],o={},a=0;a<r.length;a++)for(var s=r[a],l=0;l<t.length;l++)if("object"==typeof t[l]){var c=t[l][s];if(null!=c){o[s]=c;break}}return t=i,!0===o.visible||!1===o.visible?t=o.visible:"auto"===o.visible&&(t=0<e),{size:n(o.size,1),color:n(o.color,"none"),frontFacing:0<e,visible:t}};return r={axes:{},bottom:w([r.bottom,r.top,r],d,y),top:w([r.top,r.bottom,r],p,v),left:w([r.left,r.right,r.side,r],f,b),right:w([r.right,r.left,r.side,r],g,x),back:w([r.back,r.front,r],u,!0),front:w([r.front,r.back,r],m,!1)},"auto"===i.axisLabelPosition?(i=[],(g=function(t,e){return t.visible!==e.visible||t.visible&&e.visible&&t.frontFacing!==e.frontFacing})(r.left,r.front)&&i.push({y:(l+c)/2,x:o,z:0,xDir:{x:1,y:0,z:0}}),g(r.left,r.back)&&i.push({y:(l+c)/2,x:o,z:h,xDir:{x:0,y:0,z:-1}}),g(r.right,r.front)&&i.push({y:(l+c)/2,x:a,z:0,xDir:{x:0,y:0,z:1}}),g(r.right,r.back)&&i.push({y:(l+c)/2,x:a,z:h,xDir:{x:-1,y:0,z:0}}),d=[],g(r.bottom,r.front)&&d.push({x:(o+a)/2,y:c,z:0,xDir:{x:1,y:0,z:0}}),g(r.bottom,r.back)&&d.push({x:(o+a)/2,y:c,z:h,xDir:{x:-1,y:0,z:0}}),p=[],g(r.top,r.front)&&p.push({x:(o+a)/2,y:l,z:0,xDir:{x:1,y:0,z:0}}),g(r.top,r.back)&&p.push({x:(o+a)/2,y:l,z:h,xDir:{x:-1,y:0,z:0}}),f=[],g(r.bottom,r.left)&&f.push({z:(0+h)/2,y:c,x:o,xDir:{x:0,y:0,z:-1}}),g(r.bottom,r.right)&&f.push({z:(0+h)/2,y:c,x:a,xDir:{x:0,y:0,z:1}}),c=[],g(r.top,r.left)&&c.push({z:(0+h)/2,y:l,x:o,xDir:{x:0,y:0,z:-1}}),g(r.top,r.right)&&c.push({z:(0+h)/2,y:l,x:a,xDir:{x:0,y:0,z:1}}),o=function(t,i,n){if(0===t.length)return null;if(1===t.length)return t[0];for(var r=0,o=s(t,e,!1),a=1;a<o.length;a++)(n*o[a][i]>n*o[r][i]||n*o[a][i]==n*o[r][i]&&o[a].z<o[r].z)&&(r=a);return t[r]},r.axes={y:{left:o(i,"x",-1),right:o(i,"x",1)},x:{top:o(p,"y",-1),bottom:o(d,"y",1)},z:{top:o(c,"y",-1),bottom:o(f,"y",1)}}):r.axes={y:{left:{x:o,z:0,xDir:{x:1,y:0,z:0}},right:{x:a,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:l,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:c,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:b?a:o,y:l,xDir:b?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:b?a:o,y:c,xDir:b?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}},r},t.Fx.prototype.matrixSetter=function(){if(1>this.pos&&(i(this.start)||i(this.end)))for(var t=this.start||[1,0,0,1,0,0],e=this.end||[1,0,0,1,0,0],n=[],r=0;6>r;r++)n.push(this.pos*e[r]+(1-this.pos)*t[r]);else n=this.end;this.elem.attr(this.prop,n,null,!0)}})),e(t,"parts-3d/Axis.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){function i(t,e,i){if(!t.chart.is3d()||"colorAxis"===t.coll)return e;var n=t.chart,o=c*n.options.chart.options3d.alpha,a=c*n.options.chart.options3d.beta,s=r(i&&t.options.title.position3d,t.options.labels.position3d);i=r(i&&t.options.title.skew3d,t.options.labels.skew3d);var l=n.frame3d,h=n.plotLeft,d=n.plotWidth+h,f=n.plotTop,g=n.plotHeight+f;n=!1;var m=0,y=0,v={x:0,y:1,z:0};if(e=t.swapZ({x:e.x,y:e.y,z:0}),t.isZAxis)if(t.opposite){if(null===l.axes.z.top)return{};y=e.y-f,e.x=l.axes.z.top.x,e.y=l.axes.z.top.y,h=l.axes.z.top.xDir,n=!l.top.frontFacing}else{if(null===l.axes.z.bottom)return{};y=e.y-g,e.x=l.axes.z.bottom.x,e.y=l.axes.z.bottom.y,h=l.axes.z.bottom.xDir,n=!l.bottom.frontFacing}else if(t.horiz)if(t.opposite){if(null===l.axes.x.top)return{};y=e.y-f,e.y=l.axes.x.top.y,e.z=l.axes.x.top.z,h=l.axes.x.top.xDir,n=!l.top.frontFacing}else{if(null===l.axes.x.bottom)return{};y=e.y-g,e.y=l.axes.x.bottom.y,e.z=l.axes.x.bottom.z,h=l.axes.x.bottom.xDir,n=!l.bottom.frontFacing}else if(t.opposite){if(null===l.axes.y.right)return{};m=e.x-d,e.x=l.axes.y.right.x,e.z=l.axes.y.right.z,h={x:(h=l.axes.y.right.xDir).z,y:h.y,z:-h.x}}else{if(null===l.axes.y.left)return{};m=e.x-h,e.x=l.axes.y.left.x,e.z=l.axes.y.left.z,h=l.axes.y.left.xDir}return"chart"!==s&&("flap"===s?t.horiz?(a=Math.sin(o),o=Math.cos(o),t.opposite&&(a=-a),n&&(a=-a),v={x:h.z*a,y:o,z:-h.x*a}):h={x:Math.cos(a),y:0,z:Math.sin(a)}:"ortho"===s?t.horiz?(v=Math.cos(o),s=Math.sin(a)*v,o=-Math.sin(o),a=-v*Math.cos(a),v={x:h.y*a-h.z*o,y:h.z*s-h.x*a,z:h.x*o-h.y*s},o=1/Math.sqrt(v.x*v.x+v.y*v.y+v.z*v.z),n&&(o=-o),v={x:o*v.x,y:o*v.y,z:o*v.z}):h={x:Math.cos(a),y:0,z:Math.sin(a)}:t.horiz?v={x:Math.sin(a)*Math.sin(o),y:Math.cos(o),z:-Math.cos(a)*Math.sin(o)}:h={x:Math.cos(a),y:0,z:Math.sin(a)}),e.x+=m*h.x+y*v.x,e.y+=m*h.y+y*v.y,e.z+=m*h.z+y*v.z,n=u([e],t.chart)[0],i&&(0>p(u([e,{x:e.x+h.x,y:e.y+h.y,z:e.z+h.z},{x:e.x+v.x,y:e.y+v.y,z:e.z+v.z}],t.chart))&&(h={x:-h.x,y:-h.y,z:-h.z}),t=u([{x:e.x,y:e.y,z:e.z},{x:e.x+h.x,y:e.y+h.y,z:e.z+h.z},{x:e.x+v.x,y:e.y+v.y,z:e.z+v.z}],t.chart),n.matrix=[t[1].x-t[0].x,t[1].y-t[0].y,t[2].x-t[0].x,t[2].y-t[0].y,n.x,n.y],n.matrix[4]-=n.x*n.matrix[0]+n.y*n.matrix[2],n.matrix[5]-=n.x*n.matrix[1]+n.y*n.matrix[3]),n}var n=e.extend,r=e.pick,o=e.splat;e=e.wrap;var a=t.addEvent,s=t.Axis,l=t.Chart,c=t.deg2rad,h=t.merge,u=t.perspective,d=t.perspective3D,p=t.shapeArea,f=t.Tick;h(!0,s.prototype.defaultOptions,{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}),a(s,"afterSetOptions",(function(){if(this.chart.is3d&&this.chart.is3d()&&"colorAxis"!==this.coll){var t=this.options;t.tickWidth=r(t.tickWidth,0),t.gridLineWidth=r(t.gridLineWidth,1)}})),e(s.prototype,"getPlotLinePath",(function(t){var e=t.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===e)return e;var i=this.chart,n=i.options.chart.options3d;return n=this.isZAxis?i.plotWidth:n.depth,i=i.frame3d,e=[this.swapZ({x:e[1],y:e[2],z:0}),this.swapZ({x:e[1],y:e[2],z:n}),this.swapZ({x:e[4],y:e[5],z:0}),this.swapZ({x:e[4],y:e[5],z:n})],n=[],this.horiz?(this.isZAxis?(i.left.visible&&n.push(e[0],e[2]),i.right.visible&&n.push(e[1],e[3])):(i.front.visible&&n.push(e[0],e[2]),i.back.visible&&n.push(e[1],e[3])),i.top.visible&&n.push(e[0],e[1]),i.bottom.visible&&n.push(e[2],e[3])):(i.front.visible&&n.push(e[0],e[2]),i.back.visible&&n.push(e[1],e[3]),i.left.visible&&n.push(e[0],e[1]),i.right.visible&&n.push(e[2],e[3])),n=u(n,this.chart,!1),this.chart.renderer.toLineSegments(n)})),e(s.prototype,"getLinePath",(function(t){return this.chart.is3d()&&"colorAxis"!==this.coll?[]:t.apply(this,[].slice.call(arguments,1))})),e(s.prototype,"getPlotBandPath",(function(t){if(!this.chart.is3d()||"colorAxis"===this.coll)return t.apply(this,[].slice.call(arguments,1));var e=arguments,i=e[2],n=[];if(e=this.getPlotLinePath({value:e[1]}),i=this.getPlotLinePath({value:i}),e&&i)for(var r=0;r<e.length;r+=6)n.push("M",e[r+1],e[r+2],"L",e[r+4],e[r+5],"L",i[r+4],i[r+5],"L",i[r+1],i[r+2],"Z");return n})),e(f.prototype,"getMarkPath",(function(t){var e=t.apply(this,[].slice.call(arguments,1));return e=[i(this.axis,{x:e[1],y:e[2],z:0}),i(this.axis,{x:e[4],y:e[5],z:0})],this.axis.chart.renderer.toLineSegments(e)})),a(f,"afterGetLabelPosition",(function(t){n(t.pos,i(this.axis,t.pos))})),e(s.prototype,"getTitlePosition",(function(t){var e=t.apply(this,[].slice.call(arguments,1));return i(this,e,!0)})),a(s,"drawCrosshair",(function(t){this.chart.is3d()&&"colorAxis"!==this.coll&&t.point&&(t.point.crosshairPos=this.isXAxis?t.point.axisXpos:this.len-t.point.axisYpos)})),a(s,"destroy",(function(){["backFrame","bottomFrame","sideFrame"].forEach((function(t){this[t]&&(this[t]=this[t].destroy())}),this)})),l.prototype.addZAxis=function(t){return new g(this,t)},l.prototype.collectionsWithUpdate.push("zAxis"),l.prototype.collectionsWithInit.zAxis=[l.prototype.addZAxis],s.prototype.swapZ=function(t,e){return this.isZAxis?{x:(e=e?0:this.chart.plotLeft)+t.z,y:t.y,z:t.x-e}:t};var g=t.ZAxis=function(){this.init.apply(this,arguments)};n(g.prototype,s.prototype),n(g.prototype,{isZAxis:!0,setOptions:function(t){t=h({offset:0,lineWidth:0},t),s.prototype.setOptions.call(this,t),this.coll="zAxis"},setAxisSize:function(){s.prototype.setAxisSize.call(this),this.width=this.len=this.chart.options.chart.options3d.depth,this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.ignoreMinPadding=t.ignoreMaxPadding=null,t.buildStacks&&t.buildStacks(),t.series.forEach((function(i){!i.visible&&e.options.chart.ignoreHiddenSeries||(t.hasVisibleSeries=!0,(i=i.zData).length&&(t.dataMin=Math.min(r(t.dataMin,i[0]),Math.min.apply(null,i)),t.dataMax=Math.max(r(t.dataMax,i[0]),Math.max.apply(null,i))))}))}}),a(l,"afterGetAxes",(function(){var t=this,e=this.options;e=e.zAxis=o(e.zAxis||{}),t.is3d()&&(this.zAxis=[],e.forEach((function(e,i){e.index=i,e.isX=!0,t.addZAxis(e).setScale()})))})),e(s.prototype,"getSlotWidth",(function(t,e){if(this.chart.is3d()&&e&&e.label&&this.categories&&this.chart.frameShapes){var i,n,o=this.chart,a=this.ticks,s=this.gridGroup.element.childNodes[0].getBBox(),l=o.frameShapes.left.getBBox(),c=o.options.chart.options3d;o={x:o.plotWidth/2,y:o.plotHeight/2,z:c.depth/2,vd:r(c.depth,1)*r(c.viewDistance,0)};var h=a[(c=e.pos)-1];return a=a[c+1],0!==c&&h&&h.label.xy&&(i=d({x:h.label.xy.x,y:h.label.xy.y,z:null},o,o.vd)),a&&a.label.xy&&(n=d({x:a.label.xy.x,y:a.label.xy.y,z:null},o,o.vd)),a={x:e.label.xy.x,y:e.label.xy.y,z:null},a=d(a,o,o.vd),Math.abs(i?a.x-i.x:n?n.x-a.x:s.x-l.x)}return t.apply(this,[].slice.call(arguments,1))}))})),e(t,"parts-3d/Series.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.pick;e=t.addEvent;var n=t.perspective;e(t.Series,"afterTranslate",(function(){this.chart.is3d()&&this.translate3dPoints()})),t.Series.prototype.translate3dPoints=function(){var t,e=this.chart,r=i(this.zAxis,e.options.zAxis[0]),o=[];for(t=0;t<this.data.length;t++){var a=this.data[t];if(r&&r.translate){var s=r.isLog&&r.val2lin?r.val2lin(a.z):a.z;a.plotZ=r.translate(s),a.isInside=!!a.isInside&&(s>=r.min&&s<=r.max)}else a.plotZ=0;a.axisXpos=a.plotX,a.axisYpos=a.plotY,a.axisZpos=a.plotZ,o.push({x:a.plotX,y:a.plotY,z:a.plotZ})}for(e=n(o,e,!0),t=0;t<this.data.length;t++)a=this.data[t],r=e[t],a.plotX=r.x,a.plotY=r.y,a.plotZ=r.z}})),e(t,"parts-3d/Column.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){function i(t){var e=t.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(e.stroke=this.options.edgeColor||e.fill,e["stroke-width"]=o(this.options.edgeWidth,1)),e}function n(t,e,i){var n=this.chart.is3d&&this.chart.is3d();n&&(this.options.inactiveOtherPoints=!0),t.call(this,e,i),n&&(this.options.inactiveOtherPoints=!1)}function r(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return this.series.chart.is3d()?this.graphic&&"g"!==this.graphic.element.nodeName:t.apply(this,e)}var o=e.pick;e=e.wrap;var a=t.addEvent,s=t.perspective,l=t.Series,c=t.seriesTypes,h=t.svg;e(c.column.prototype,"translate",(function(t){t.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()})),e(t.Series.prototype,"alignDataLabel",(function(t){arguments[3].outside3dPlot=arguments[1].outside3dPlot,t.apply(this,[].slice.call(arguments,1))})),e(t.Series.prototype,"justifyDataLabel",(function(t){return!arguments[2].outside3dPlot&&t.apply(this,[].slice.call(arguments,1))})),c.column.prototype.translate3dPoints=function(){},c.column.prototype.translate3dShapes=function(){var t=this,e=t.chart,i=t.options,n=i.depth||25,r=(i.stacking?i.stack||0:t.index)*(n+(i.groupZPadding||1)),o=t.borderWidth%2?.5:0;e.inverted&&!t.yAxis.reversed&&(o*=-1),!1!==i.grouping&&(r=0),r+=i.groupZPadding||1,t.data.forEach((function(i){if(i.outside3dPlot=null,null!==i.y){var a,l=i.shapeArgs,c=i.tooltipPos;[["x","width"],["y","height"]].forEach((function(e){if(0>(a=l[e[0]]-o)&&(l[e[1]]+=l[e[0]]+o,l[e[0]]=-o,a=0),a+l[e[1]]>t[e[0]+"Axis"].len&&0!==l[e[1]]&&(l[e[1]]=t[e[0]+"Axis"].len-l[e[0]]),0!==l[e[1]]&&(l[e[0]]>=t[e[0]+"Axis"].len||l[e[0]]+l[e[1]]<=o)){for(var n in l)l[n]=0;i.outside3dPlot=!0}})),"rect"===i.shapeType&&(i.shapeType="cuboid"),l.z=r,l.depth=n,l.insidePlotArea=!0,c=s([{x:c[0],y:c[1],z:r}],e,!0)[0],i.tooltipPos=[c.x,c.y]}})),t.z=r},e(c.column.prototype,"animate",(function(t){if(this.chart.is3d()){var e=arguments[1],i=this.yAxis,n=this,r=this.yAxis.reversed;h&&(e?n.data.forEach((function(t){null!==t.y&&(t.height=t.shapeArgs.height,t.shapey=t.shapeArgs.y,t.shapeArgs.height=1,r||(t.shapeArgs.y=t.stackY?t.plotY+i.translate(t.stackY):t.plotY+(t.negative?-t.height:t.height)))})):(n.data.forEach((function(t){null!==t.y&&(t.shapeArgs.height=t.height,t.shapeArgs.y=t.shapey,t.graphic&&t.graphic.animate(t.shapeArgs,n.options.animation))})),this.drawDataLabels(),n.animate=null))}else t.apply(this,[].slice.call(arguments,1))})),e(c.column.prototype,"plotGroup",(function(t,e,i,n,r,o){return"dataLabelsGroup"!==e&&this.chart.is3d()&&(this[e]&&delete this[e],o&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(o)),this[e]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[e].survive=!0,"group"===e||"markerGroup"===e))&&(arguments[3]="visible"),t.apply(this,Array.prototype.slice.call(arguments,1))})),e(c.column.prototype,"setVisible",(function(t,e){var i,n=this;n.chart.is3d()&&n.data.forEach((function(t){i=(t.visible=t.options.visible=e=void 0===e?!o(n.visible,t.visible):e)?"visible":"hidden",n.options.data[n.data.indexOf(t)]=t.options,t.graphic&&t.graphic.attr({visibility:i})})),t.apply(this,Array.prototype.slice.call(arguments,1))})),c.column.prototype.handle3dGrouping=!0,a(l,"afterInit",(function(){if(this.chart.is3d()&&this.handle3dGrouping){var t=this.options,e=t.grouping,i=t.stacking,n=o(this.yAxis.options.reversedStacks,!0),r=0;if(void 0===e||e){for(e=this.chart.retrieveStacks(i),r=t.stack||0,i=0;i<e[r].series.length&&e[r].series[i]!==this;i++);r=10*(e.totalStacks-e[r].position)+(n?i:-i),this.xAxis.reversed||(r=10*e.totalStacks-r)}t.zIndex=r}})),e(c.column.prototype,"pointAttribs",i),e(c.column.prototype,"setState",n),e(c.column.prototype.pointClass.prototype,"hasNewShapeType",r),c.columnrange&&(e(c.columnrange.prototype,"pointAttribs",i),e(c.columnrange.prototype,"setState",n),e(c.columnrange.prototype.pointClass.prototype,"hasNewShapeType",r),c.columnrange.prototype.plotGroup=c.column.prototype.plotGroup,c.columnrange.prototype.setVisible=c.column.prototype.setVisible),e(l.prototype,"alignDataLabel",(function(t){if(this.chart.is3d()&&this instanceof c.column){var e=arguments,i=e[4];e=e[1];var n={x:i.x,y:i.y,z:this.z};n=s([n],this.chart,!0)[0],i.x=n.x,i.y=e.outside3dPlot?-9e9:n.y}t.apply(this,[].slice.call(arguments,1))})),e(t.StackItem.prototype,"getStackBox",(function(e,i){var n=e.apply(this,[].slice.call(arguments,1));if(i.is3d()){var r={x:n.x,y:n.y,z:0};r=t.perspective([r],i,!0)[0],n.x=r.x,n.y=r.y}return n}))})),e(t,"parts-3d/Pie.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.pick;e=e.wrap;var n=t.deg2rad,r=t.seriesTypes,o=t.svg;e(r.pie.prototype,"translate",(function(t){if(t.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var e=this,i=e.options,r=i.depth||0,o=e.chart.options.chart.options3d,a=o.alpha,s=o.beta,l=i.stacking?(i.stack||0)*r:e._i*r;l+=r/2,!1!==i.grouping&&(l=0),e.data.forEach((function(t){var o=t.shapeArgs;t.shapeType="arc3d",o.z=l,o.depth=.75*r,o.alpha=a,o.beta=s,o.center=e.center,o=(o.end+o.start)/2,t.slicedTranslation={translateX:Math.round(Math.cos(o)*i.slicedOffset*Math.cos(a*n)),translateY:Math.round(Math.sin(o)*i.slicedOffset*Math.cos(a*n))}}))}})),e(r.pie.prototype.pointClass.prototype,"haloPath",(function(t){var e=arguments;return this.series.chart.is3d()?[]:t.call(this,e[1])})),e(r.pie.prototype,"pointAttribs",(function(t,e,n){return t=t.call(this,e,n),n=this.options,this.chart.is3d()&&!this.chart.styledMode&&(t.stroke=n.edgeColor||e.color||this.color,t["stroke-width"]=i(n.edgeWidth,1)),t})),e(r.pie.prototype,"drawDataLabels",(function(t){if(this.chart.is3d()){var e=this.chart.options.chart.options3d;this.data.forEach((function(t){var i=t.shapeArgs,r=i.r,o=(i.start+i.end)/2,a=(t=t.labelPosition).connectorPosition,s=-r*(1-Math.cos((i.alpha||e.alpha)*n))*Math.sin(o),l=r*(Math.cos((i.beta||e.beta)*n)-1)*Math.cos(o);[t.natural,a.breakAt,a.touchingSliceAt].forEach((function(t){t.x+=l,t.y+=s}))}))}t.apply(this,[].slice.call(arguments,1))})),e(r.pie.prototype,"addPoint",(function(t){t.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.update(this.userOptions,!0)})),e(r.pie.prototype,"animate",(function(t){if(this.chart.is3d()){var e=arguments[1],i=this.options.animation,n=this.center,r=this.group,a=this.markerGroup;o&&(!0===i&&(i={}),e?(r.oldtranslateX=r.translateX,r.oldtranslateY=r.translateY,e={translateX:n[0],translateY:n[1],scaleX:.001,scaleY:.001},r.attr(e),a&&(a.attrSetters=r.attrSetters,a.attr(e))):(e={translateX:r.oldtranslateX,translateY:r.oldtranslateY,scaleX:1,scaleY:1},r.animate(e,i),a&&a.animate(e,i),this.animate=null))}else t.apply(this,[].slice.call(arguments,1))}))})),e(t,"parts-3d/Scatter.js",[t["parts/Globals.js"]],(function(t){var e=t.Point,i=t.seriesType,n=t.seriesTypes;i("scatter3d","scatter",{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}},{pointAttribs:function(e){var i=n.scatter.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&e&&(i.zIndex=t.pointCameraDistance(e,this.chart)),i},axisTypes:["xAxis","yAxis","zAxis"],pointArrayMap:["x","y","z"],parallelArrays:["x","y","z"],directTouch:!0},{applyOptions:function(){return e.prototype.applyOptions.apply(this,arguments),void 0===this.z&&(this.z=0),this}})})),e(t,"parts-3d/VMLRenderer.js",[t["parts/Globals.js"]],(function(t){var e=t.addEvent,i=t.Axis,n=t.SVGRenderer,r=t.VMLRenderer;r&&(t.setOptions({animate:!1}),r.prototype.face3d=n.prototype.face3d,r.prototype.polyhedron=n.prototype.polyhedron,r.prototype.elements3d=n.prototype.elements3d,r.prototype.element3d=n.prototype.element3d,r.prototype.cuboid=n.prototype.cuboid,r.prototype.cuboidPath=n.prototype.cuboidPath,r.prototype.toLinePath=n.prototype.toLinePath,r.prototype.toLineSegments=n.prototype.toLineSegments,r.prototype.arc3d=function(t){return(t=n.prototype.arc3d.call(this,t)).css({zIndex:t.zIndex}),t},t.VMLRenderer.prototype.arc3dPath=t.SVGRenderer.prototype.arc3dPath,e(i,"render",(function(){this.sideFrame&&(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color})),this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color})),this.backFrame&&(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))})))})),e(t,"masters/highcharts-3d.src.js",[],(function(){}))})),function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],(function(e){return t(e),t.Highcharts=e,t})):t("undefined"!=typeof Highcharts?Highcharts:void 0)}((function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}e(t=t?t._modules:{},"parts-more/Pane.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){function i(t,e){this.init(t,e)}var n=e.extend,r=e.splat,o=t.CenteredSeriesMixin,a=t.merge;t.Chart.prototype.collectionsWithUpdate.push("pane"),n(i.prototype,{coll:"pane",init:function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},setOptions:function(t){this.options=a(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},render:function(){var t=this.options,e=this.options.background,i=this.chart.renderer;if(this.group||(this.group=i.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=r(e),t=Math.max(e.length,this.background.length||0),i=0;i<t;i++)e[i]&&this.axis?this.renderBackground(a(this.defaultBackgroundOptions,e[i]),i):this.background[i]&&(this.background[i]=this.background[i].destroy(),this.background.splice(i,1))},renderBackground:function(t,e){var i="animate",r={class:"highcharts-pane "+(t.className||"")};this.chart.styledMode||n(r,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),i="attr"),this.background[e][i]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(r)},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(t){this.center=(t||this.axis||{}).center=o.getCenter.call(this)},update:function(t,e){a(!0,this.options,t),a(!0,this.chart.options.pane,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach((function(t){t.pane===this&&(t.pane=null,t.update({},e))}),this)}}),t.Pane=i})),e(t,"parts-more/RadialAxis.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.correctFloat,n=e.defined,r=e.extend,o=e.pick,a=e.pInt,s=e.relativeLength;e=e.wrap;var l=t.addEvent,c=t.Axis,h=t.merge,u=t.noop,d=t.Tick,p=c.prototype,f=d.prototype,g={getOffset:u,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},createLabelCollector:function(){return!1},setScale:u,setCategories:u,setTitle:u},m={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultCircularOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialOptions:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(e){(e=this.options=h(this.defaultOptions,this.defaultPolarOptions,e)).plotBands||(e.plotBands=[]),t.fireEvent(this,"afterSetOptions")},getOffset:function(){p.getOffset.call(this),this.chart.axisOffset[this.side]=0},getLinePath:function(t,e){t=this.center;var i=this.chart,n=o(e,t[2]/2-this.offset);return this.isCircular||void 0!==e?((e=this.chart.renderer.symbols.arc(this.left+t[0],this.top+t[1],n,n,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[this.left+t[0]],e.yBounds=[this.top+t[1]-n]):(e=this.postTranslate(this.angleRad,n),e=["M",t[0]+i.plotLeft,t[1]+i.plotTop,"L",e.x,e.y]),e},setAxisTranslation:function(){p.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){this.autoConnect=this.isCircular&&void 0===o(this.userMax,this.options.max)&&i(this.endAngleRad-this.startAngleRad)===i(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)},setAxisSize:function(){p.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*o(this.sector,1)/2)},getPosition:function(t,e){return t=this.translate(t),this.postTranslate(this.isCircular?t:this.angleRad,o(this.isCircular?e:0>t?0:t,this.center[2]/2)-this.offset)},postTranslate:function(t,e){var i=this.chart,n=this.center;return t=this.startAngleRad+t,{x:i.plotLeft+n[0]+Math.cos(t)*e,y:i.plotTop+n[1]+Math.sin(t)*e}},getPlotBandPath:function(t,e,i){var n=this.center,r=this.startAngleRad,s=n[2]/2,l=[o(i.outerRadius,"100%"),i.innerRadius,o(i.thickness,10)],c=Math.min(this.offset,0),h=/%$/,u=this.isCircular;if("polygon"===this.options.gridLineInterpolation)l=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0}));else{if(t=Math.max(t,this.min),e=Math.min(e,this.max),u||(l[0]=this.translate(t),l[1]=this.translate(e)),l=l.map((function(t){return h.test(t)&&(t=a(t,10)*s/100),t})),"circle"!==i.shape&&u)t=r+this.translate(t),e=r+this.translate(e);else{t=-Math.PI/2,e=1.5*Math.PI;var d=!0}l[0]-=c,l[2]-=c,l=this.chart.renderer.symbols.arc(this.left+n[0],this.top+n[1],l[0],l[0],{start:Math.min(t,e),end:Math.max(t,e),innerR:o(l[1],l[0]-l[2]),open:d}),u&&(u=(e+t)/2,c=this.left+n[0]+n[2]/2*Math.cos(u),l.xBounds=u>-Math.PI/2&&u<Math.PI/2?[c,this.chart.plotWidth]:[0,c],l.yBounds=[this.top+n[1]+n[2]/2*Math.sin(u)],l.yBounds[0]+=u>-Math.PI&&0>u||u>Math.PI?-10:10)}return l},getCrosshairPosition:function(t,e,i){var r=t.value;if(this.isCircular){if(n(r))t.point&&((o=t.point.shapeArgs||{}).start&&(r=this.translate(t.point.rectPlotY,!0)));else{var o=t.chartX||0,a=t.chartY||0;r=this.translate(Math.atan2(a-i,o-e)-this.startAngleRad,!0)}o=(t=this.getPosition(r)).x,a=t.y}else n(r)||(o=t.chartX,a=t.chartY),n(o)&&n(a)&&(r=this.translate(Math.min(Math.sqrt(Math.pow(o-e,2)+Math.pow(a-i,2)),this.len),!0));return[r,o||0,a||0]},getPlotLinePath:function(t){var e=this,i=e.center,n=e.chart,r=n.inverted,o=t.value,a=t.reverse,l=e.getPosition(o),c=e.pane.options.background?e.pane.options.background[0]||e.pane.options.background:{},h=c.innerRadius||"0%",u=c.outerRadius||"100%";c=i[0]+n.plotLeft,i=i[1]+n.plotTop;var d,p,f=l.x;if(l=l.y,t.isCrosshair&&(l=this.getCrosshairPosition(t,c,i),o=l[0],f=l[1],l=l[2]),e.isCircular)var g=["M",c+(a="string"==typeof h?s(h,1):h/Math.sqrt(Math.pow(f-c,2)+Math.pow(l-i,2)))*(f-c),i-a*(i-l),"L",f-(1-(t="string"==typeof u?s(u,1):u/Math.sqrt(Math.pow(f-c,2)+Math.pow(l-i,2))))*(f-c),l+(1-t)*(i-l)];else o=e.translate(o),!t.isCrosshair&&(0>o||o>e.height)&&r&&(o=0),"circle"===e.options.gridLineInterpolation?g=e.getLinePath(0,o):(n[r?"yAxis":"xAxis"].forEach((function(t){t.pane===e.pane&&(d=t)})),g=[],c=d.tickPositions,d.autoConnect&&(c=c.concat([c[0]])),a&&(c=[].concat(c).reverse()),c.forEach((function(t,e){p=d.getPosition(t,o),g.push(e?"L":"M",p.x,p.y)})));return g},getTitlePosition:function(){var t=this.center,e=this.chart,i=this.options.title;return{x:e.plotLeft+t[0]+(i.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[i.align]*t[2]+(i.y||0)}},createLabelCollector:function(){var t=this;return function(){if(t.isRadial&&t.tickPositions&&!0!==t.options.labels.allowOverlap)return t.tickPositions.map((function(e){return t.ticks[e]&&t.ticks[e].label})).filter((function(t){return!!t}))}}};l(c,"init",(function(t){var e,i=this.chart,n=i.inverted,o=i.angular,a=i.polar,s=this.isXAxis,l=this.coll,c=o&&s,u=i.options;t=t.userOptions.pane||0,t=this.pane=i.pane&&i.pane[t],"colorAxis"===l?this.isRadial=!1:(o?(r(this,c?g:m),(e=!s)&&(this.defaultPolarOptions=this.defaultRadialGaugeOptions)):a&&(r(this,m),this.defaultPolarOptions=(e=this.horiz)?this.defaultCircularOptions:h("xAxis"===l?this.defaultOptions:this.defaultYAxisOptions,this.defaultRadialOptions),n&&"yAxis"===l&&(this.defaultPolarOptions.stackLabels=this.defaultYAxisOptions.stackLabels)),o||a?(this.isRadial=!0,u.chart.zoomType=null,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&i.labelCollectors.push(this.labelCollector)):this.isRadial=!1,t&&e&&(t.axis=this),this.isCircular=e)})),l(c,"afterInit",(function(){var t=this.chart,e=this.options,i=this.pane,n=i&&i.options;t.angular&&this.isXAxis||!i||!t.angular&&!t.polar||(this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=(n.startAngle-90)*Math.PI/180,this.endAngleRad=(o(n.endAngle,n.startAngle+360)-90)*Math.PI/180,this.offset=e.offset||0)})),l(c,"autoLabelAlign",(function(t){this.isRadial&&(t.align=void 0,t.preventDefault())})),l(c,"destroy",(function(){if(this.chart&&this.chart.labelCollectors){var t=this.chart.labelCollectors.indexOf(this.labelCollector);0<=t&&this.chart.labelCollectors.splice(t,1)}})),l(d,"afterGetPosition",(function(t){this.axis.getPosition&&r(t.pos,this.axis.getPosition(this.pos))})),l(d,"afterGetLabelPosition",(function(t){var e=this.axis,i=this.label,n=i.getBBox(),r=e.options.labels,a=r.y,l=20,c=r.align,h=(e.translate(this.pos)+e.startAngleRad+Math.PI/2)/Math.PI*180%360,u=Math.round(h),d="end",p=0>u?u+360:u,f=p,g=0,m=0,y=null===r.y?.3*-n.height:0;if(e.isRadial){var v=e.getPosition(this.pos,e.center[2]/2+s(o(r.distance,-25),e.center[2]/2,-e.center[2]/2));"auto"===r.rotation?i.attr({rotation:h}):null===a&&(a=e.chart.renderer.fontMetrics(i.styles&&i.styles.fontSize).b-n.height/2),null===c&&(e.isCircular?(n.width>e.len*e.tickInterval/(e.max-e.min)&&(l=0),c=h>l&&h<180-l?"left":h>180+l&&h<360-l?"right":"center"):c="center",i.attr({align:c})),"auto"===c&&2===e.tickPositions.length&&e.isCircular&&(90<p&&180>p?p=180-p:270<p&&360>=p&&(p=540-p),180<f&&360>=f&&(f=360-f),e.pane.options.startAngle!==u&&e.pane.options.startAngle!==u+360&&e.pane.options.startAngle!==u-360||(d="start"),c=-90<=u&&90>=u||-360<=u&&-270>=u||270<=u&&360>=u?"start"===d?"right":"left":"start"===d?"left":"right",70<f&&110>f&&(c="center"),15>p||180<=p&&195>p?g=.3*n.height:15<=p&&35>=p?g="start"===d?0:.75*n.height:195<=p&&215>=p?g="start"===d?.75*n.height:0:35<p&&90>=p?g="start"===d?.25*-n.height:n.height:215<p&&270>=p&&(g="start"===d?n.height:.25*-n.height),15>f?m="start"===d?.15*-n.height:.15*n.height:165<f&&180>=f&&(m="start"===d?.15*n.height:.15*-n.height),i.attr({align:c}),i.translate(m,g+y)),t.pos.x=v.x+r.x,t.pos.y=v.y+a}})),e(f,"getMarkPath",(function(t,e,i,n,r,o,a){var s=this.axis;return s.isRadial?e=["M",e,i,"L",(t=s.getPosition(this.pos,s.center[2]/2+n)).x,t.y]:e=t.call(this,e,i,n,r,o,a),e}))})),e(t,"parts-more/AreaRangeSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.defined,n=e.extend,r=e.isArray,o=e.isNumber,a=e.pick;e=t.seriesType;var s=t.seriesTypes,l=t.Series.prototype,c=t.Point.prototype;e("arearange","area",{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],pointValKey:"low",deferTranslatePolar:!0,toYData:function(t){return[t.low,t.high]},highToXY:function(t){var e=this.chart,i=this.xAxis.postTranslate(t.rectPlotX,this.yAxis.len-t.plotHigh);t.plotHighX=i.x-e.plotLeft,t.plotHigh=i.y-e.plotTop,t.plotLowX=t.plotX},translate:function(){var t=this,e=t.yAxis,i=!!t.modifyValue;s.area.prototype.translate.apply(t),t.points.forEach((function(n){var r=n.high,o=n.plotY;n.isNull?n.plotY=null:(n.plotLow=o,n.plotHigh=e.translate(i?t.modifyValue(r,n):r,0,1,0,1),i&&(n.yBottom=n.plotHigh))})),this.chart.polar&&this.points.forEach((function(e){t.highToXY(e),e.tooltipPos=[(e.plotHighX+e.plotLowX)/2,(e.plotHigh+e.plotLow)/2]}))},getGraphPath:function(t){var e,i=[],n=[],r=s.area.prototype.getGraphPath,o=this.options,l=this.chart.polar&&!1!==o.connectEnds,c=o.connectNulls,h=o.step;for(e=(t=t||this.points).length;e--;){var u=t[e];u.isNull||l||c||t[e+1]&&!t[e+1].isNull||n.push({plotX:u.plotX,plotY:u.plotY,doCurve:!1});var d={polarPlotY:u.polarPlotY,rectPlotX:u.rectPlotX,yBottom:u.yBottom,plotX:a(u.plotHighX,u.plotX),plotY:u.plotHigh,isNull:u.isNull};n.push(d),i.push(d),u.isNull||l||c||t[e-1]&&!t[e-1].isNull||n.push({plotX:u.plotX,plotY:u.plotY,doCurve:!1})}return t=r.call(this,t),h&&(!0===h&&(h="left"),o.step={left:"right",center:"center",right:"left"}[h]),i=r.call(this,i),n=r.call(this,n),o.step=h,o=[].concat(t,i),this.chart.polar||"M"!==n[0]||(n[0]="L"),this.graphPath=o,this.areaPath=t.concat(n),o.isArea=!0,o.xMap=t.xMap,this.areaPath.xMap=t.xMap,o},drawDataLabels:function(){var t,e,i=this.points,o=i.length,a=[],s=this.options.dataLabels,c=this.chart.inverted;if(r(s))if(1<s.length)var h=s[0],u=s[1];else h=s[0],u={enabled:!1};else(h=n({},s)).x=s.xHigh,h.y=s.yHigh,(u=n({},s)).x=s.xLow,u.y=s.yLow;if(h.enabled||this._hasPointLabels){for(t=o;t--;)if(e=i[t]){var d=h.inside?e.plotHigh<e.plotLow:e.plotHigh>e.plotLow;e.y=e.high,e._plotY=e.plotY,e.plotY=e.plotHigh,a[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=d,c?h.align||(h.align=d?"right":"left"):h.verticalAlign||(h.verticalAlign=d?"top":"bottom")}for(this.options.dataLabels=h,l.drawDataLabels&&l.drawDataLabels.apply(this,arguments),t=o;t--;)(e=i[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=a[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(u.enabled||this._hasPointLabels){for(t=o;t--;)(e=i[t])&&(d=u.inside?e.plotHigh<e.plotLow:e.plotHigh>e.plotLow,e.below=!d,c?u.align||(u.align=d?"left":"right"):u.verticalAlign||(u.verticalAlign=d?"bottom":"top"));this.options.dataLabels=u,l.drawDataLabels&&l.drawDataLabels.apply(this,arguments)}if(h.enabled)for(t=o;t--;)(e=i[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter((function(t){return!!t})));this.options.dataLabels=s},alignDataLabel:function(){s.column.prototype.alignDataLabel.apply(this,arguments)},drawPoints:function(){var t,e=this.points.length;for(l.drawPoints.apply(this,arguments),t=0;t<e;){var r=this.points[t];r.origProps={plotY:r.plotY,plotX:r.plotX,isInside:r.isInside,negative:r.negative,zone:r.zone,y:r.y},r.lowerGraphic=r.graphic,r.graphic=r.upperGraphic,r.plotY=r.plotHigh,i(r.plotHighX)&&(r.plotX=r.plotHighX),r.y=r.high,r.negative=r.high<(this.options.threshold||0),r.zone=this.zones.length&&r.getZone(),this.chart.polar||(r.isInside=r.isTopInside=void 0!==r.plotY&&0<=r.plotY&&r.plotY<=this.yAxis.len&&0<=r.plotX&&r.plotX<=this.xAxis.len),t++}for(l.drawPoints.apply(this,arguments),t=0;t<e;)(r=this.points[t]).upperGraphic=r.graphic,r.graphic=r.lowerGraphic,n(r,r.origProps),delete r.origProps,t++},setStackedPoints:t.noop},{setState:function(){var t=this.state,e=this.series,n=e.chart.polar;i(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),i(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.stateMarkerGraphic&&(e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic),this.graphic=this.upperGraphic,this.plotY=this.plotHigh,n&&(this.plotX=this.plotHighX),c.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.lowerGraphic,n&&(this.plotX=this.plotLowX),e.stateMarkerGraphic&&(e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0),c.setState.apply(this,arguments)},haloPath:function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&(this.plotX=this.plotLowX),this.isInside&&(e=c.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(c.haloPath.apply(this,arguments))),e},destroyElements:function(){return["lowerGraphic","upperGraphic"].forEach((function(t){this[t]&&(this[t]=this[t].destroy())}),this),this.graphic=null,c.destroyElements.apply(this,arguments)},isValid:function(){return o(this.low)&&o(this.high)}})})),e(t,"parts-more/AreaSplineRangeSeries.js",[t["parts/Globals.js"]],(function(t){(0,t.seriesType)("areasplinerange","arearange",null,{getPointSpline:t.seriesTypes.spline.prototype.getPointSpline})})),e(t,"parts-more/ColumnRangeSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.pick;e=t.defaultPlotOptions;var r=t.merge,o=t.noop,a=t.seriesType,s=t.seriesTypes.column.prototype;a("columnrange","arearange",r(e.column,e.arearange,{pointRange:null,marker:null,states:{hover:{halo:!1}}}),{translate:function(){var t,e,r=this,o=r.yAxis,a=r.xAxis,l=a.startAngleRad,c=r.chart,h=r.xAxis.isRadial,u=Math.max(c.chartWidth,c.chartHeight)+999;s.translate.apply(r),r.points.forEach((function(s){var d=s.shapeArgs,p=r.options.minPointLength;s.plotHigh=e=i(o.translate(s.high,0,1,0,1),-u,u),s.plotLow=i(s.plotY,-u,u);var f=e,g=n(s.rectPlotY,s.plotY)-e;Math.abs(g)<p?(g+=p-=g,f-=p/2):0>g&&(f-=g*=-1),h?(t=s.barX+l,s.shapeType="path",s.shapeArgs={d:r.polarArc(f+g,f,t,t+s.pointWidth)}):(d.height=g,d.y=f,s.tooltipPos=c.inverted?[o.len+o.pos-c.plotLeft-f-g/2,a.len+a.pos-c.plotTop-d.x-d.width/2,g]:[a.left-c.plotLeft+d.x+d.width/2,o.pos-c.plotTop+f+g/2,g])}))},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:o,getSymbol:o,crispCol:function(){return s.crispCol.apply(this,arguments)},drawPoints:function(){return s.drawPoints.apply(this,arguments)},drawTracker:function(){return s.drawTracker.apply(this,arguments)},getColumnMetrics:function(){return s.getColumnMetrics.apply(this,arguments)},pointAttribs:function(){return s.pointAttribs.apply(this,arguments)},animate:function(){return s.animate.apply(this,arguments)},polarArc:function(){return s.polarArc.apply(this,arguments)},translate3dPoints:function(){return s.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return s.translate3dShapes.apply(this,arguments)}},{setState:s.pointClass.prototype.setState})})),e(t,"parts-more/ColumnPyramidSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.pick;e=t.seriesType;var r=t.seriesTypes.column.prototype;e("columnpyramid","column",{},{translate:function(){var t=this,e=t.chart,o=t.options,a=t.dense=2>t.closestPointRange*t.xAxis.transA;a=t.borderWidth=n(o.borderWidth,a?0:1);var s=t.yAxis,l=o.threshold,c=t.translatedThreshold=s.getThreshold(l),h=n(o.minPointLength,5),u=t.getColumnMetrics(),d=u.width,p=t.barW=Math.max(d,1+2*a),f=t.pointXOffset=u.offset;e.inverted&&(c-=.5),o.pointPadding&&(p=Math.ceil(p)),r.translate.apply(t),t.points.forEach((function(r){var a=n(r.yBottom,c),u=999+Math.abs(a),g=i(r.plotY,-u,s.len+u);u=r.plotX+f;var m=p/2,y=Math.min(g,a);a=Math.max(g,a)-y,r.barX=u,r.pointWidth=d,r.tooltipPos=e.inverted?[s.len+s.pos-e.plotLeft-g,t.xAxis.len-u-m,a]:[u+m,g+s.pos-e.plotTop,a],g=l+(r.total||r.y),"percent"===o.stacking&&(g=l+(0>r.y)?-100:100),g=s.toPixels(g,!0);var v=e.plotHeight-g-(e.plotHeight-c),b=m*(y-g)/v,x=m*(y+a-g)/v;v=u-b+m,b=u+b+m;var w=u+x+m;x=u-x+m;var _=y-h,S=y+a;0>r.y&&(_=y,S=y+a+h),e.inverted&&(x=m*(g-((w=e.plotWidth-y)-a))/(v=g-(e.plotWidth-c)),b=(v=u+m+(b=m*(g-w)/v))-2*b,w=u-x+m,x=u+x+m,_=y,S=y+a-h,0>r.y&&(S=y+a+h)),r.shapeType="path",r.shapeArgs={x:v,y:_,width:b-v,height:a,d:["M",v,_,"L",b,_,w,S,x,S,"Z"]}}))}})})),e(t,"parts-more/GaugeSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.isNumber,r=e.pick,o=e.pInt,a=t.merge,s=t.Series;e=t.seriesType;var l=t.TrackerMixin;e("gauge","line",{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:t.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var t=this.yAxis,e=this.options,s=t.center;this.generatePoints(),this.points.forEach((function(l){var c=a(e.dial,l.dial),h=o(r(c.radius,"80%"))*s[2]/200,u=o(r(c.baseLength,"70%"))*h/100,d=o(r(c.rearLength,"10%"))*h/100,p=c.baseWidth||3,f=c.topWidth||1,g=e.overshoot,m=t.startAngleRad+t.translate(l.y,null,null,null,!0);(n(g)||!1===e.wrap)&&(g=n(g)?g/180*Math.PI:0,m=i(m,t.startAngleRad-g,t.endAngleRad+g)),m=180*m/Math.PI,l.shapeType="path",l.shapeArgs={d:c.path||["M",-d,-p/2,"L",u,-p/2,h,-f/2,h,f/2,u,p/2,-d,p/2,"z"],translateX:s[0],translateY:s[1],rotation:m},l.plotX=s[0],l.plotY=s[1]}))},drawPoints:function(){var t=this,e=t.chart,i=t.yAxis.center,n=t.pivot,o=t.options,s=o.pivot,l=e.renderer;t.points.forEach((function(i){var n=i.graphic,r=i.shapeArgs,s=r.d,c=a(o.dial,i.dial);n?(n.animate(r),r.d=s):i.graphic=l[i.shapeType](r).attr({rotation:r.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.styledMode||i.graphic[n?"animate":"attr"]({stroke:c.borderColor||"none","stroke-width":c.borderWidth||0,fill:c.backgroundColor||"#000000"})})),n?n.animate({translateX:i[0],translateY:i[1]}):(t.pivot=l.circle(0,0,r(s.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(i[0],i[1]).add(t.group),e.styledMode||t.pivot.attr({"stroke-width":s.borderWidth||0,stroke:s.borderColor||"#cccccc",fill:s.backgroundColor||"#000000"}))},animate:function(t){var e=this;t||(e.points.forEach((function(t){var i=t.graphic;i&&(i.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),i.animate({rotation:t.shapeArgs.rotation},e.options.animation))})),e.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),s.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(t,e){s.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),r(e,!0)&&this.chart.redraw()},hasData:function(){return!!this.points.length},drawTracker:l&&l.drawTrackerPoint},{setState:function(t){this.state=t}})})),e(t,"parts-more/BoxPlotSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.pick;e=t.noop;var n=t.seriesType,r=t.seriesTypes;n("boxplot","column",{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttribs:function(){return{}},drawDataLabels:e,translate:function(){var t=this.yAxis,e=this.pointArrayMap;r.column.prototype.translate.apply(this),this.points.forEach((function(i){e.forEach((function(e){null!==i[e]&&(i[e+"Plot"]=t.translate(i[e],0,1,0,1))}))}))},drawPoints:function(){var t,e,n,r,o,a,s,l,c,h,u,d=this,p=d.options,f=d.chart,g=f.renderer,m=0,y=!1!==d.doQuartiles,v=d.options.whiskerLength;d.points.forEach((function(b){var x=b.graphic,w=x?"animate":"attr",_=b.shapeArgs,S={},P={},k={},C={},T=b.color||d.color;void 0!==b.plotY&&(s=_.width,l=Math.floor(_.x),c=l+s,h=Math.round(s/2),t=Math.floor(y?b.q1Plot:b.lowPlot),e=Math.floor(y?b.q3Plot:b.lowPlot),n=Math.floor(b.highPlot),r=Math.floor(b.lowPlot),x||(b.graphic=x=g.g("point").add(d.group),b.stem=g.path().addClass("highcharts-boxplot-stem").add(x),v&&(b.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(x)),y&&(b.box=g.path(void 0).addClass("highcharts-boxplot-box").add(x)),b.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(x)),f.styledMode||(P.stroke=b.stemColor||p.stemColor||T,P["stroke-width"]=i(b.stemWidth,p.stemWidth,p.lineWidth),P.dashstyle=b.stemDashStyle||p.stemDashStyle,b.stem.attr(P),v&&(k.stroke=b.whiskerColor||p.whiskerColor||T,k["stroke-width"]=i(b.whiskerWidth,p.whiskerWidth,p.lineWidth),b.whiskers.attr(k)),y&&(S.fill=b.fillColor||p.fillColor||T,S.stroke=p.lineColor||T,S["stroke-width"]=p.lineWidth||0,b.box.attr(S)),C.stroke=b.medianColor||p.medianColor||T,C["stroke-width"]=i(b.medianWidth,p.medianWidth,p.lineWidth),b.medianShape.attr(C)),a=b.stem.strokeWidth()%2/2,m=l+h+a,b.stem[w]({d:["M",m,e,"L",m,n,"M",m,t,"L",m,r]}),y&&(a=b.box.strokeWidth()%2/2,t=Math.floor(t)+a,e=Math.floor(e)+a,l+=a,c+=a,b.box[w]({d:["M",l,e,"L",l,t,"L",c,t,"L",c,e,"L",l,e,"z"]})),v&&(a=b.whiskers.strokeWidth()%2/2,n+=a,r+=a,u=/%$/.test(v)?h*parseFloat(v)/100:v/2,b.whiskers[w]({d:["M",m-u,n,"L",m+u,n,"M",m-u,r,"L",m+u,r]})),o=Math.round(b.medianPlot),a=b.medianShape.strokeWidth()%2/2,o+=a,b.medianShape[w]({d:["M",l,o,"L",c,o]}))}))},setStackedPoints:e})})),e(t,"parts-more/ErrorBarSeries.js",[t["parts/Globals.js"]],(function(t){var e=t.noop,i=t.seriesType,n=t.seriesTypes;i("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:n.arearange?function(){var t=this.pointValKey;n.arearange.prototype.drawDataLabels.call(this),this.data.forEach((function(e){e.y=e[t]}))}:e,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||n.column.prototype.getColumnMetrics.call(this)}})})),e(t,"parts-more/WaterfallSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,n=e.arrayMin,r=e.correctFloat,o=e.isNumber,a=e.objectEach,s=e.pick;e=t.addEvent;var l=t.Axis,c=t.Chart,h=t.Point,u=t.Series,d=t.StackItem,p=t.seriesType,f=t.seriesTypes;e(l,"afterInit",(function(){this.isXAxis||(this.waterfallStacks={changed:!1})})),e(l,"afterBuildStacks",(function(){this.waterfallStacks.changed=!1,delete this.waterfallStacks.alreadyChanged})),e(c,"beforeRedraw",(function(){for(var t=this.axes,e=this.series,i=e.length;i--;)e[i].options.stacking&&(t.forEach((function(t){t.isXAxis||(t.waterfallStacks.changed=!0)})),i=0)})),e(l,"afterRender",(function(){var t=this.options.stackLabels;t&&t.enabled&&this.waterfallStacks&&this.renderWaterfallStackTotals()})),l.prototype.renderWaterfallStackTotals=function(){var t=this.waterfallStacks,e=this.stackTotalGroup,i=new d(this,this.options.stackLabels,!1,0,void 0);this.dummyStackItem=i,a(t,(function(t){a(t,(function(t){i.total=t.stackTotal,t.label&&(i.label=t.label),d.prototype.render.call(i,e),t.label=i.label,delete i.label}))})),i.total=null},p("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",showLine:!0,generatePoints:function(){var t;f.column.prototype.generatePoints.apply(this);var e=0;for(t=this.points.length;e<t;e++){var i=this.points[e],n=this.processedYData[e];(i.isIntermediateSum||i.isSum)&&(i.y=r(n))}},translate:function(){var t,e=this.options,i=this.yAxis,n=s(e.minPointLength,5),r=n/2,o=e.threshold,a=e.stacking,l=i.waterfallStacks[this.stackKey];f.column.prototype.translate.apply(this);var c=t=o,h=this.points,u=0;for(e=h.length;u<e;u++){var d=h[u],p=this.processedYData[u],g=d.shapeArgs,m=[0,p],y=d.y;if(a){if(l){if(m=l[u],"overlap"===a){var v=m.stackState[m.stateIndex--];v=0<=y?v:v-y,Object.hasOwnProperty.call(m,"absolutePos")&&delete m.absolutePos,Object.hasOwnProperty.call(m,"absoluteNeg")&&delete m.absoluteNeg}else 0<=y?(v=m.threshold+m.posTotal,m.posTotal-=y):(v=m.threshold+m.negTotal,m.negTotal-=y,v-=y),!m.posTotal&&Object.hasOwnProperty.call(m,"absolutePos")&&(m.posTotal=m.absolutePos,delete m.absolutePos),!m.negTotal&&Object.hasOwnProperty.call(m,"absoluteNeg")&&(m.negTotal=m.absoluteNeg,delete m.absoluteNeg);d.isSum||(m.connectorThreshold=m.threshold+m.stackTotal),i.reversed?(p=0<=y?v-y:v+y,y=v):(p=v,y=v-y),d.below=p<=s(o,0),g.y=i.translate(p,0,1,0,1),g.height=Math.abs(g.y-i.translate(y,0,1,0,1))}(y=i.dummyStackItem)&&(y.x=u,y.label=l[u].label,y.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[u],this.stackedYPos[u]))}else v=Math.max(c,c+y)+m[0],g.y=i.translate(v,0,1,0,1),d.isSum?(g.y=i.translate(m[1],0,1,0,1),g.height=Math.min(i.translate(m[0],0,1,0,1),i.len)-g.y):d.isIntermediateSum?(0<=y?(p=m[1]+t,y=t):(p=t,y=m[1]+t),i.reversed&&(p^=y,p^=y^=p),g.y=i.translate(p,0,1,0,1),g.height=Math.abs(g.y-Math.min(i.translate(y,0,1,0,1),i.len)),t+=m[1]):(g.height=0<p?i.translate(c,0,1,0,1)-g.y:i.translate(c,0,1,0,1)-i.translate(c-p,0,1,0,1),c+=p,d.below=c<s(o,0)),0>g.height&&(g.y+=g.height,g.height*=-1);d.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),d.yBottom=g.y+g.height,g.height<=n&&!d.isNull?(g.height=n,g.y-=r,d.plotY=g.y,d.minPointLengthOffset=0>d.y?-r:r):(d.isNull&&(g.width=0),d.minPointLengthOffset=0),g=d.plotY+(d.negative?g.height:0),this.chart.inverted?d.tooltipPos[0]=i.len-g:d.tooltipPos[1]=g}},processData:function(t){var e,i,n,o,a,s=this.options,l=this.yData,c=s.data,h=l.length,d=s.threshold||0;for(a=i=e=n=o=0;a<h;a++){var p=l[a],f=c&&c[a]?c[a]:{};"sum"===p||f.isSum?l[a]=r(i):"intermediateSum"===p||f.isIntermediateSum?(l[a]=r(e),e=0):(i+=p,e+=p),n=Math.min(i,n),o=Math.max(i,o)}u.prototype.processData.call(this,t),s.stacking||(this.dataMin=n+d,this.dataMax=o)},toYData:function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y},updateParallelArrays:function(t,e){u.prototype.updateParallelArrays.call(this,t,e),"sum"!==this.yData[0]&&"intermediateSum"!==this.yData[0]||(this.yData[0]=null)},pointAttribs:function(t,e){var i=this.options.upColor;return i&&!t.options.color&&(t.color=0<t.y?i:null),delete(t=f.column.prototype.pointAttribs.call(this,t,e)).dashstyle,t},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var t,e=this.data,i=this.yAxis,n=e.length,r=Math.round(this.graph.strokeWidth())%2/2,o=Math.round(this.borderWidth)%2/2,a=this.xAxis.reversed,s=this.yAxis.reversed,l=this.options.stacking,c=[];for(t=1;t<n;t++){var h=e[t].shapeArgs,u=e[t-1],d=e[t-1].shapeArgs,p=i.waterfallStacks[this.stackKey],f=0<u.y?-d.height:0;if(p){p=p[t-1],l?(p=p.connectorThreshold,f=Math.round(i.translate(p,0,1,0,1)+(s?f:0))-r):f=d.y+u.minPointLengthOffset+o-r;var g=["M",d.x+(a?0:d.width),f,"L",h.x+(a?h.width:0),f]}(!l&&g&&0>u.y&&!s||0<u.y&&s)&&(g[2]+=d.height,g[5]+=d.height),c=c.concat(g)}return c},drawGraph:function(){u.prototype.drawGraph.call(this),this.graph.attr({d:this.getCrispPath()})},setStackedPoints:function(){function t(t,e,i,n){if(x)for(;i<x;i++)m.stackState[i]+=n;else m.stackState[0]=t,x=m.stackState.length;m.stackState.push(m.stackState[x-1]+e)}var e,i,n,r=this.options,o=this.yAxis.waterfallStacks,a=r.threshold,s=a||0,l=s,c=this.stackKey,h=this.xData,u=h.length;this.yAxis.usePercentage=!1;var d=i=n=s;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var p=o.changed;(e=o.alreadyChanged)&&0>e.indexOf(c)&&(p=!0),o[c]||(o[c]={}),e=o[c];for(var f=0;f<u;f++){var g=h[f];e[g]&&!p||(e[g]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:p&&e[g]?e[g].label:void 0});var m=e[g],y=this.yData[f];0<=y?m.posTotal+=y:m.negTotal+=y;var v=r.data[f];g=m.absolutePos=m.posTotal;var b=m.absoluteNeg=m.negTotal;m.stackTotal=g+b;var x=m.stackState.length;v&&v.isIntermediateSum?(t(n,i,0,n),n=i,i=a,s^=l,s^=l^=s):v&&v.isSum?(t(a,d,x),s=a):(t(s,y,0,d),v&&(d+=y,i+=y)),m.stateIndex++,m.threshold=s,s+=m.stackTotal}o.changed=!1,o.alreadyChanged||(o.alreadyChanged=[]),o.alreadyChanged.push(c)}},getExtremes:function(){var t=this.options.stacking;if(t){var e=this.yAxis;e=e.waterfallStacks;var r=this.stackedYNeg=[],o=this.stackedYPos=[];a(e[this.stackKey],"overlap"===t?function(t){r.push(n(t.stackState)),o.push(i(t.stackState))}:function(t){r.push(t.negTotal+t.threshold),o.push(t.posTotal+t.threshold)}),this.dataMin=n(r),this.dataMax=i(o)}}},{getClassName:function(){var t=h.prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t},isValid:function(){return o(this.y)||this.isSum||this.isIntermediateSum}})})),e(t,"parts-more/PolygonSeries.js",[t["parts/Globals.js"]],(function(t){var e=t.Series,i=t.seriesType,n=t.seriesTypes;i("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var t=e.prototype.getGraphPath.call(this),i=t.length+1;i--;)(i===t.length||"M"===t[i])&&0<i&&t.splice(i,0,"z");return this.areaPath=t},drawGraph:function(){this.options.fillColor=this.color,n.area.prototype.drawGraph.call(this)},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawTracker:e.prototype.drawTracker,setStackedPoints:t.noop})})),e(t,"parts-more/BubbleLegend.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,n=e.arrayMin,r=e.isNumber,o=e.objectEach,a=e.pick;e=e.wrap;var s=t.Series,l=t.Legend,c=t.Chart,h=t.addEvent,u=t.color,d=t.merge,p=t.noop,f=t.stableSort;(0,t.setOptions)({legend:{bubbleLegend:{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:10,color:void 0},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}}),t.BubbleLegend=function(t,e){this.init(t,e)},t.BubbleLegend.prototype={init:function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},setState:p,addToLegend:function(t){t.splice(this.options.legendIndex,0,this)},drawLegendSymbol:function(t){var e=this.chart,i=this.options,n=a(t.options.itemDistance,20),o=i.ranges,s=i.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(i.labels.style.fontSize.toString()+"px"),o&&o.length&&r(o[0].value)?(f(o,(function(t,e){return e.value-t.value})),this.ranges=o,this.setOptions(),this.render(),e=this.getMaxLabelSize(),t=2*(o=this.ranges[0].radius),s=0<(s=s-o+e.width)?s:0,this.maxLabel=e,this.movementX="left"===i.labels.align?s:0,this.legendItemWidth=t+s+n,this.legendItemHeight=t+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},setOptions:function(){var t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],n=this.legend.baseline,r={"z-index":e.zIndex,"stroke-width":e.borderWidth},o={"z-index":e.zIndex,"stroke-width":e.connectorWidth},s=this.getLabelStyles(),l=i.options.marker.fillOpacity,c=this.chart.styledMode;t.forEach((function(h,p){c||(r.stroke=a(h.borderColor,e.borderColor,i.color),r.fill=a(h.color,e.color,1!==l?u(i.color).setOpacity(l).get("rgba"):i.color),o.stroke=a(h.connectorColor,e.connectorColor,i.color)),t[p].radius=this.getRangeRadius(h.value),t[p]=d(t[p],{center:t[0].radius-t[p].radius+n}),c||d(!0,t[p],{bubbleStyle:d(!1,r),connectorStyle:d(!1,o),labelStyle:s})}),this)},getLabelStyles:function(){var t=this.options,e={},i="left"===t.labels.align,n=this.legend.options.rtl;return o(t.labels.style,(function(t,i){"color"!==i&&"fontSize"!==i&&"z-index"!==i&&(e[i]=t)})),d(!1,e,{"font-size":t.labels.style.fontSize,fill:a(t.labels.style.color,"#000000"),"z-index":t.zIndex,align:n||i?"right":"left"})},getRangeRadius:function(t){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,t)},render:function(){var t=this.chart.renderer,e=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),this.legendSymbol=t.g("bubble-legend"),this.legendItem=t.g("bubble-legend-item"),this.legendSymbol.translateX=0,this.legendSymbol.translateY=0,this.ranges.forEach((function(t){t.value>=e&&this.renderRange(t)}),this),this.legendSymbol.add(this.legendItem),this.legendItem.add(this.legendGroup),this.hideOverlappingLabels()},renderRange:function(t){var e=this.options,i=e.labels,n=this.chart.renderer,r=this.symbols,o=r.labels,a=t.center,s=Math.abs(t.radius),l=e.connectorDistance,c=i.align,h=i.style.fontSize;l=this.legend.options.rtl||"left"===c?-l:l,i=e.connectorWidth;var u=this.ranges[0].radius,d=a-s-e.borderWidth/2+i/2;h=h/2-(this.fontMetrics.h-h)/2;var p=n.styledMode;"center"===c&&(l=0,e.connectorDistance=0,t.labelStyle.align="center"),c=d+e.labels.y;var f=u+l+e.labels.x;r.bubbleItems.push(n.circle(u,a+((d%1?1:.5)-(i%2?0:.5)),s).attr(p?{}:t.bubbleStyle).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendSymbol)),r.connectors.push(n.path(n.crispLine(["M",u,d,"L",u+l,d],e.connectorWidth)).attr(p?{}:t.connectorStyle).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendSymbol)),t=n.text(this.formatLabel(t),f,c+h).attr(p?{}:t.labelStyle).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendSymbol),o.push(t),t.placed=!0,t.alignAttr={x:f,y:c+h}},getMaxLabelSize:function(){var t,e;return this.symbols.labels.forEach((function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e})),t||{}},formatLabel:function(e){var i=this.options,n=i.labels.formatter;i=i.labels.format;var r=this.chart.numberFormatter;return i?t.format(i,e):n?n.call(e):r(e.value,1)},hideOverlappingLabels:function(){var t=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(t.hideOverlappingLabels(e.labels),e.labels.forEach((function(t,i){t.newOpacity?t.newOpacity!==t.oldOpacity&&e.connectors[i].show():e.connectors[i].hide()})))},getRanges:function(){var t,e=this.legend.bubbleLegend,o=e.options.ranges,s=Number.MAX_VALUE,l=-Number.MAX_VALUE;e.chart.series.forEach((function(e){e.isBubble&&!e.ignoreSeries&&((t=e.zData.filter(r)).length&&(s=a(e.options.zMin,Math.min(s,Math.max(n(t),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),l=a(e.options.zMax,Math.max(l,i(t)))))}));var c=s===l?[{value:l}]:[{value:s},{value:(s+l)/2},{value:l,autoRanges:!0}];return o.length&&o[0].radius&&c.reverse(),c.forEach((function(t,e){o&&o[e]&&(c[e]=d(!1,o[e],t))})),c},predictBubbleSizes:function(){var t=this.chart,e=this.fontMetrics,i=t.legend.options,n="horizontal"===i.layout,r=n?t.legend.lastLineHeight:0,o=t.plotSizeX,a=t.plotSizeY,s=t.series[this.options.seriesIndex];t=Math.ceil(s.minPxSize);var l=Math.ceil(s.maxPxSize);s=s.options.maxSize;var c=Math.min(a,o);return i.floating||!/%$/.test(s)?e=l:(s=parseFloat(s),e=(c+r-e.h/2)*s/100/(s/100+1),(n&&a-e>=o||!n&&o-e>=a)&&(e=l)),[t,Math.ceil(e)]},updateRanges:function(t,e){var i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()},correctSizes:function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}},h(t.Legend,"afterGetAllItems",(function(e){var i=this.bubbleLegend,n=this.options,r=n.bubbleLegend,o=this.chart.getVisibleBubbleSeriesIndex();i&&i.ranges&&i.ranges.length&&(r.ranges.length&&(r.autoRanges=!!r.ranges[0].autoRanges),this.destroyItem(i)),0<=o&&n.enabled&&r.enabled&&(r.seriesIndex=o,this.bubbleLegend=new t.BubbleLegend(r,this),this.bubbleLegend.addToLegend(e.allItems))})),c.prototype.getVisibleBubbleSeriesIndex=function(){for(var t=this.series,e=0;e<t.length;){if(t[e]&&t[e].isBubble&&t[e].visible&&t[e].zData.length)return e;e++}return-1},l.prototype.getLinesHeights=function(){var t,e=this.allItems,i=[],n=e.length,r=0;for(t=0;t<n;t++)if(e[t].legendItemHeight&&(e[t].itemHeight=e[t].legendItemHeight),e[t]===e[n-1]||e[t+1]&&e[t]._legendItemPos[1]!==e[t+1]._legendItemPos[1]){i.push({height:0});for(var o=i[i.length-1];r<=t;r++)e[r].itemHeight>o.height&&(o.height=e[r].itemHeight);o.step=t}return i},l.prototype.retranslateItems=function(t){var e,i,n,r=this.options.rtl,o=0;this.allItems.forEach((function(a,s){e=a.legendGroup.translateX,i=a._legendItemPos[1],((n=a.movementX)||r&&a.ranges)&&(n=r?e-a.options.maxSize/2:e+n,a.legendGroup.attr({translateX:n})),s>t[o].step&&o++,a.legendGroup.attr({translateY:Math.round(i+t[o].height/2)}),a._legendItemPos[1]=i+t[o].height/2}))},h(s,"legendItemClick",(function(){var t=this.chart,e=this.visible,i=this.chart.legend;i&&i.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=t.getVisibleBubbleSeriesIndex(),i.bubbleLegend.visible!==t&&(i.update({bubbleLegend:{enabled:t}}),i.bubbleLegend.visible=t),this.visible=e)})),e(c.prototype,"drawChartBox",(function(t,e,i){var n=this.legend,r=0<=this.getVisibleBubbleSeriesIndex();if(n&&n.options.enabled&&n.bubbleLegend&&n.options.bubbleLegend.autoRanges&&r){var a=n.bubbleLegend.options;r=n.bubbleLegend.predictBubbleSizes(),n.bubbleLegend.updateRanges(r[0],r[1]),a.placed||(n.group.placed=!1,n.allItems.forEach((function(t){t.legendGroup.translateY=null}))),n.render(),this.getMargins(),this.axes.forEach((function(t){t.visible&&t.render(),a.placed||(t.setScale(),t.updateNames(),o(t.ticks,(function(t){t.isNew=!0,t.isNewLabel=!0})))})),a.placed=!0,this.getMargins(),t.call(this,e,i),n.bubbleLegend.correctSizes(),n.retranslateItems(n.getLinesHeights())}else t.call(this,e,i),n&&n.options.enabled&&n.bubbleLegend&&(n.render(),n.retranslateItems(n.getLinesHeights()))}))})),e(t,"parts-more/BubbleSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,n=e.arrayMin,r=e.clamp,o=e.extend,a=e.isNumber,s=e.pick,l=e.pInt;e=t.Axis;var c=t.color,h=t.noop,u=t.Point,d=t.Series,p=t.seriesType,f=t.seriesTypes;p("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,isBubble:!0,pointAttribs:function(t,e){var i=this.options.marker.fillOpacity;return t=d.prototype.pointAttribs.call(this,t,e),1!==i&&(t.fill=c(t.fill).setOpacity(i).get("rgba")),t},getRadii:function(t,e,i){var n=this.zData,r=this.yData,o=i.minPxSize,a=i.maxPxSize,s=[],l=0;for(i=n.length;l<i;l++){var c=n[l];s.push(this.getRadius(t,e,o,a,c,r[l]))}this.radii=s},getRadius:function(t,e,i,n,r,o){var s=this.options,l="width"!==s.sizeBy,c=s.zThreshold,h=e-t,u=.5;if(null===o||null===r)return null;if(a(r)){if(s.sizeByAbsoluteValue&&(r=Math.abs(r-c),h=Math.max(e-c,Math.abs(t-c)),t=0),r<t)return i/2-1;0<h&&(u=(r-t)/h)}return l&&0<=u&&(u=Math.sqrt(u)),Math.ceil(i+u*(n-i))/2},animate:function(t){!t&&this.points.length<this.options.animationLimit&&(this.points.forEach((function(t){var e=t.graphic;if(e&&e.width){var i={x:e.x,y:e.y,width:e.width,height:e.height};e.attr({x:t.plotX,y:t.plotY,width:1,height:1}),e.animate(i,this.options.animation)}}),this),this.animate=null)},hasData:function(){return!!this.processedXData.length},translate:function(){var t,e=this.data,i=this.radii;for(f.scatter.prototype.translate.call(this),t=e.length;t--;){var n=e[t],r=i?i[t]:0;a(r)&&r>=this.minPxSize/2?(n.marker=o(n.marker,{radius:r,width:2*r,height:2*r}),n.dlBox={x:n.plotX-r,y:n.plotY-r,width:2*r,height:2*r}):n.shapeArgs=n.plotY=n.dlBox=void 0}},alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(t){return u.prototype.haloPath.call(this,0===t?0:(this.marker&&this.marker.radius||0)+t)},ttBelow:!1}),e.prototype.beforePadding=function(){var t=this,e=this.len,o=this.chart,c=0,h=e,u=this.isXAxis,d=u?"xData":"yData",p=this.min,f={},g=Math.min(o.plotWidth,o.plotHeight),m=Number.MAX_VALUE,y=-Number.MAX_VALUE,v=this.max-p,b=e/v,x=[];this.series.forEach((function(e){var c=e.options;!e.bubblePadding||!e.visible&&o.options.chart.ignoreHiddenSeries||(t.allowZoomOutside=!0,x.push(e),u&&(["minSize","maxSize"].forEach((function(t){var e=c[t],i=/%$/.test(e);e=l(e),f[t]=i?g*e/100:e})),e.minPxSize=f.minSize,e.maxPxSize=Math.max(f.maxSize,f.minSize),(e=e.zData.filter(a)).length&&(m=s(c.zMin,r(n(e),!1===c.displayNegative?c.zThreshold:-Number.MAX_VALUE,m)),y=s(c.zMax,Math.max(y,i(e))))))})),x.forEach((function(e){var i=e[d],n=i.length;if(u&&e.getRadii(m,y,e),0<v)for(;n--;)if(a(i[n])&&t.dataMin<=i[n]&&i[n]<=t.max){var r=e.radii?e.radii[n]:0;c=Math.min((i[n]-p)*b-r,c),h=Math.max((i[n]-p)*b+r,h)}})),x.length&&0<v&&!this.isLog&&(h-=e,b*=(e+Math.max(0,c)-Math.min(h,e))/e,[["min","userMin",c],["max","userMax",h]].forEach((function(e){void 0===s(t.options[e[0]],t[e[1]])&&(t[e[0]]+=e[2]/b)})))}})),e(t,"modules/networkgraph/integrations.js",[t["parts/Globals.js"]],(function(t){t.networkgraphIntegrations={verlet:{attractiveForceFunction:function(t,e){return(e-t)/t},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t?1:0)},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor;e=(e-(this.box.left+this.box.width)/2)*t,i=(i-(this.box.top+this.box.height)/2)*t,this.nodes.forEach((function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=i/t.mass/t.degree)}))},repulsive:function(t,e,i){e=e*this.diffTemperature/t.mass/t.degree,t.fixedPosition||(t.plotX+=i.x*e,t.plotY+=i.y*e)},attractive:function(t,e,i){var n=t.getMass(),r=-i.x*e*this.diffTemperature;e=-i.y*e*this.diffTemperature,t.fromNode.fixedPosition||(t.fromNode.plotX-=r*n.fromNode/t.fromNode.degree,t.fromNode.plotY-=e*n.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=r*n.toNode/t.toNode.degree,t.toNode.plotY+=e*n.toNode/t.toNode.degree)},integrate:function(t,e){var i=-t.options.friction,n=t.options.maxSpeed,r=(e.plotX+e.dispX-e.prevX)*i;i*=e.plotY+e.dispY-e.prevY;var o=Math.abs,a=o(r)/(r||1);o=o(i)/(i||1),r=a*Math.min(n,Math.abs(r)),i=o*Math.min(n,Math.abs(i)),e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=r,e.plotY+=i,e.temperature=t.vectorLength({x:r,y:i})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)}},euler:{attractiveForceFunction:function(t,e){return t*t/e},repulsiveForceFunction:function(t,e){return e*e/t},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor;this.nodes.forEach((function(n){if(!n.fixedPosition){var r=n.getDegree();r*=1+r/2,n.dispX+=(e-n.plotX)*t*r/n.degree,n.dispY+=(i-n.plotY)*t*r/n.degree}}))},repulsive:function(t,e,i,n){t.dispX+=i.x/n*e/t.degree,t.dispY+=i.y/n*e/t.degree},attractive:function(t,e,i,n){var r=t.getMass(),o=i.x/n*e;e*=i.y/n,t.fromNode.fixedPosition||(t.fromNode.dispX-=o*r.fromNode/t.fromNode.degree,t.fromNode.dispY-=e*r.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=o*r.toNode/t.toNode.degree,t.toNode.dispY+=e*r.toNode/t.toNode.degree)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;var i=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==i&&(e.plotX+=e.dispX/i*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/i*Math.min(Math.abs(e.dispY),t.temperature))},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)}}}})),e(t,"modules/networkgraph/QuadTree.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){e=e.extend;var i=t.QuadTreeNode=function(t){this.box=t,this.boxSize=Math.min(t.width,t.height),this.nodes=[],this.body=this.isInternal=!1,this.isEmpty=!0};e(i.prototype,{insert:function(t,e){this.isInternal?this.nodes[this.getBoxPosition(t)].insert(t,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,e-1),this.body=!0),this.nodes[this.getBoxPosition(t)].insert(t,e-1)):((e=new i({top:t.plotX,left:t.plotY,width:.1,height:.1})).body=t,e.isInternal=!1,this.nodes.push(e)):(this.isInternal=!1,this.body=t))},updateMassAndCenter:function(){var t=0,e=0,i=0;this.isInternal?(this.nodes.forEach((function(n){n.isEmpty||(t+=n.mass,e+=n.plotX*n.mass,i+=n.plotY*n.mass)})),e/=t,i/=t):this.body&&(t=this.body.mass,e=this.body.plotX,i=this.body.plotY),this.mass=t,this.plotX=e,this.plotY=i},divideBox:function(){var t=this.box.width/2,e=this.box.height/2;this.nodes[0]=new i({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new i({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new i({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new i({left:this.box.left,top:this.box.top+e,width:t,height:e})},getBoxPosition:function(t){var e=t.plotY<this.box.top+this.box.height/2;return t.plotX<this.box.left+this.box.width/2?e?0:3:e?1:2}}),e((t=t.QuadTree=function(t,e,n,r){this.box={left:t,top:e,width:n,height:r},this.maxDepth=25,this.root=new i(this.box,"0"),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}).prototype,{insertNodes:function(t){t.forEach((function(t){this.root.insert(t,this.maxDepth)}),this)},visitNodeRecursive:function(t,e,i){var n;t||(t=this.root),t===this.root&&e&&(n=e(t)),!1!==n&&(t.nodes.forEach((function(t){if(t.isInternal){if(e&&(n=e(t)),!1===n)return;this.visitNodeRecursive(t,e,i)}else t.body&&e&&e(t.body);i&&i(t)}),this),t===this.root&&i&&i(t))},calculateMassAndCenter:function(){this.visitNodeRecursive(null,null,(function(t){t.updateMassAndCenter()}))}})})),e(t,"modules/networkgraph/layouts.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.defined,r=e.extend,o=e.pick,a=e.setAnimation;e=t.addEvent;var s=t.Chart;t.layouts={"reingold-fruchterman":function(){}},r(t.layouts["reingold-fruchterman"].prototype,{init:function(e){this.options=e,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=t.networkgraphIntegrations[e.integration],this.attractiveForce=o(e.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=o(e.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=e.approximation},start:function(){var t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.initialRendering&&(this.initPositions(),t.forEach((function(t){t.render()}))),this.setK(),this.resetSimulation(e),e.enableSimulation&&this.step()},step:function(){var e=this,i=this.series,n=this.options;e.currentStep++,"barnes-hut"===e.approximation&&(e.createQuadTree(),e.quadTree.calculateMassAndCenter()),e.forces.forEach((function(t){e[t+"Forces"](e.temperature)})),e.applyLimits(e.temperature),e.temperature=e.coolDown(e.startTemperature,e.diffTemperature,e.currentStep),e.prevSystemTemperature=e.systemTemperature,e.systemTemperature=e.getSystemTemperature(),n.enableSimulation&&(i.forEach((function(t){t.chart&&t.render()})),e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()?(e.simulation&&t.win.cancelAnimationFrame(e.simulation),e.simulation=t.win.requestAnimationFrame((function(){e.step()}))):e.simulation=!1)},stop:function(){this.simulation&&t.win.cancelAnimationFrame(this.simulation)},setArea:function(t,e,i,n){this.box={left:t,top:e,width:i,height:n}},setK:function(){this.k=this.options.linkLength||this.integration.getK(this)},addElementsToCollection:function(t,e){t.forEach((function(t){-1===e.indexOf(t)&&e.push(t)}))},removeElementFromCollection:function(t,e){-1!==(t=e.indexOf(t))&&e.splice(t,1)},clear:function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},resetSimulation:function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},setMaxIterations:function(t){this.maxIterations=o(t,this.options.maxIterations)},setTemperature:function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},setDiffTemperature:function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},setInitialRendering:function(t){this.initialRendering=t},createQuadTree:function(){this.quadTree=new t.QuadTree(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},initPositions:function(){var e=this.options.initialPositions;t.isFunction(e)?(e.call(this),this.nodes.forEach((function(t){n(t.prevX)||(t.prevX=t.plotX),n(t.prevY)||(t.prevY=t.plotY),t.dispX=0,t.dispY=0}))):"circle"===e?this.setCircularPositions():this.setRandomPositions()},setCircularPositions:function(){function t(e){e.linksFrom.forEach((function(e){s[e.toNode.id]||(s[e.toNode.id]=!0,a.push(e.toNode),t(e.toNode))}))}var e=this.box,i=this.nodes,n=2*Math.PI/(i.length+1),r=i.filter((function(t){return 0===t.linksTo.length})),a=[],s={},l=this.options.initialPositionRadius;r.forEach((function(e){a.push(e),t(e)})),a.length?i.forEach((function(t){-1===a.indexOf(t)&&a.push(t)})):a=i,a.forEach((function(t,i){t.plotX=t.prevX=o(t.plotX,e.width/2+l*Math.cos(i*n)),t.plotY=t.prevY=o(t.plotY,e.height/2+l*Math.sin(i*n)),t.dispX=0,t.dispY=0}))},setRandomPositions:function(){function t(t){return(t=t*t/Math.PI)-Math.floor(t)}var e=this.box,i=this.nodes,n=i.length+1;i.forEach((function(i,r){i.plotX=i.prevX=o(i.plotX,e.width*t(r)),i.plotY=i.prevY=o(i.plotY,e.height*t(n+r)),i.dispX=0,i.dispY=0}))},force:function(t){this.integration[t].apply(this,Array.prototype.slice.call(arguments,1))},barycenterForces:function(){this.getBarycenter(),this.force("barycenter")},getBarycenter:function(){var t=0,e=0,i=0;return this.nodes.forEach((function(n){e+=n.plotX*n.mass,i+=n.plotY*n.mass,t+=n.mass})),this.barycenter={x:e,y:i,xFactor:e/t,yFactor:i/t}},barnesHutApproximation:function(t,e){var i=this.getDistXY(t,e),n=this.vectorLength(i);if(t!==e&&0!==n)if(e.isInternal)if(e.boxSize/n<this.options.theta&&0!==n){var r=this.repulsiveForce(n,this.k);this.force("repulsive",t,r*e.mass,i,n);var o=!1}else o=!0;else r=this.repulsiveForce(n,this.k),this.force("repulsive",t,r*e.mass,i,n);return o},repulsiveForces:function(){var t=this;"barnes-hut"===t.approximation?t.nodes.forEach((function(e){t.quadTree.visitNodeRecursive(null,(function(i){return t.barnesHutApproximation(e,i)}))})):t.nodes.forEach((function(e){t.nodes.forEach((function(i){if(e!==i&&!e.fixedPosition){var n=t.getDistXY(e,i),r=t.vectorLength(n);if(0!==r){var o=t.repulsiveForce(r,t.k);t.force("repulsive",e,o*i.mass,n,r)}}}))}))},attractiveForces:function(){var t,e,i,n=this;n.links.forEach((function(r){r.fromNode&&r.toNode&&(t=n.getDistXY(r.fromNode,r.toNode),0!==(e=n.vectorLength(t))&&(i=n.attractiveForce(e,n.k),n.force("attractive",r,i,t,e)))}))},applyLimits:function(){var t=this;t.nodes.forEach((function(e){e.fixedPosition||(t.integration.integrate(t,e),t.applyLimitBox(e,t.box),e.dispX=0,e.dispY=0)}))},applyLimitBox:function(t,e){var n=t.radius;t.plotX=i(t.plotX,e.left+n,e.width-n),t.plotY=i(t.plotY,e.top+n,e.height-n)},coolDown:function(t,e,i){return t-e*i},isStable:function(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature},getSystemTemperature:function(){return this.nodes.reduce((function(t,e){return t+e.temperature}),0)},vectorLength:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},getDistR:function(t,e){return t=this.getDistXY(t,e),this.vectorLength(t)},getDistXY:function(t,e){var i=t.plotX-e.plotX;return{x:i,y:t=t.plotY-e.plotY,absX:Math.abs(i),absY:Math.abs(t)}}}),e(s,"predraw",(function(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach((function(t){t.stop()}))})),e(s,"render",(function(){function t(t){t.maxIterations--&&isFinite(t.temperature)&&!t.isStable()&&!t.options.enableSimulation&&(t.beforeStep&&t.beforeStep(),t.step(),i=!1,e=!0)}var e=!1;if(this.graphLayoutsLookup){for(a(!1,this),this.graphLayoutsLookup.forEach((function(t){t.start()}));!i;){var i=!0;this.graphLayoutsLookup.forEach(t)}e&&this.series.forEach((function(t){t&&t.layout&&t.render()}))}}))})),e(t,"modules/networkgraph/draggable-nodes.js",[t["parts/Globals.js"]],(function(t){var e=t.Chart,i=t.addEvent;t.dragNodesMixin={onMouseDown:function(t,e){e=this.chart.pointer.normalize(e),t.fixedPosition={chartX:e.chartX,chartY:e.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){var i=this.chart,n=i.pointer.normalize(e);e=t.fixedPosition.chartX-n.chartX,n=t.fixedPosition.chartY-n.chartY,(5<Math.abs(e)||5<Math.abs(n))&&(e=t.fixedPosition.plotX-e,n=t.fixedPosition.plotY-n,i.isInsidePlot(e,n)&&(t.plotX=e,t.plotY=n,t.hasDragged=!0,this.redrawHalo(t),this.layout.simulation?this.layout.resetSimulation():(this.layout.setInitialRendering(!1),this.layout.enableSimulation?this.layout.start():this.layout.setMaxIterations(1),this.chart.redraw(),this.layout.setInitialRendering(!0))))}},onMouseUp:function(t,e){t.fixedPosition&&t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw(),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}},i(e,"load",(function(){var t,e,n,r=this;r.container&&(t=i(r.container,"mousedown",(function(t){var o=r.hoverPoint;o&&o.series&&o.series.hasDraggableNodes&&o.series.options.draggable&&(o.series.onMouseDown(o,t),e=i(r.container,"mousemove",(function(t){return o&&o.series&&o.series.onMouseMove(o,t)})),n=i(r.container.ownerDocument,"mouseup",(function(t){return e(),n(),o&&o.series&&o.series.onMouseUp(o,t)})))}))),i(r,"destroy",(function(){t()}))}))})),e(t,"parts-more/PackedBubbleSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.clamp,n=e.defined,r=e.extend,o=e.extendClass,a=e.isArray,s=e.isNumber,l=e.pick;e=t.seriesType;var c=t.Series,h=t.Point,u=t.addEvent,d=t.fireEvent,p=t.Chart,f=t.Color,g=t.layouts["reingold-fruchterman"],m=t.seriesTypes.bubble.prototype.pointClass,y=t.dragNodesMixin;t.networkgraphIntegrations.packedbubble={repulsiveForceFunction:function(t,e,i,n){return Math.min(t,(i.marker.radius+n.marker.radius)/2)},barycenter:function(){var t,e,i=this,n=i.options.gravitationalConstant,r=i.box,o=i.nodes;o.forEach((function(a){i.options.splitSeries&&!a.isParentNode?(t=a.series.parentNode.plotX,e=a.series.parentNode.plotY):(t=r.width/2,e=r.height/2),a.fixedPosition||(a.plotX-=(a.plotX-t)*n/(a.mass*Math.sqrt(o.length)),a.plotY-=(a.plotY-e)*n/(a.mass*Math.sqrt(o.length)))}))},repulsive:function(t,e,i,n){var r=e*this.diffTemperature/t.mass/t.degree;e=i.x*r,i=i.y*r,t.fixedPosition||(t.plotX+=e,t.plotY+=i),n.fixedPosition||(n.plotX-=e,n.plotY-=i)},integrate:t.networkgraphIntegrations.verlet.integrate,getK:t.noop},t.layouts.packedbubble=o(g,{beforeStep:function(){this.options.marker&&this.series.forEach((function(t){t&&t.calculateParentRadius()}))},setCircularPositions:function(){var t,e,i=this,n=i.box,r=i.nodes,o=2*Math.PI/(r.length+1),a=i.options.initialPositionRadius;r.forEach((function(r,s){i.options.splitSeries&&!r.isParentNode?(t=r.series.parentNode.plotX,e=r.series.parentNode.plotY):(t=n.width/2,e=n.height/2),r.plotX=r.prevX=l(r.plotX,t+a*Math.cos(r.index||s*o)),r.plotY=r.prevY=l(r.plotY,e+a*Math.sin(r.index||s*o)),r.dispX=0,r.dispY=0}))},repulsiveForces:function(){var t,e,i,n=this,r=n.options.bubblePadding;n.nodes.forEach((function(o){o.degree=o.mass,o.neighbours=0,n.nodes.forEach((function(a){t=0,o===a||o.fixedPosition||!n.options.seriesInteraction&&o.series!==a.series||(i=n.getDistXY(o,a),0>(e=n.vectorLength(i)-(o.marker.radius+a.marker.radius+r))&&(o.degree+=.01,o.neighbours++,t=n.repulsiveForce(-e/Math.sqrt(o.neighbours),n.k,o,a)),n.force("repulsive",o,t*a.mass,i,a,e))}))}))},applyLimitBox:function(t){if(this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit){var e=this.getDistXY(t,t.series.parentNode),i=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(e);0>i&&i>-2*t.marker.radius&&(t.plotX-=.01*e.x,t.plotY-=.01*e.y)}g.prototype.applyLimitBox.apply(this,arguments)},isStable:function(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature||0<this.systemTemperature&&.02>this.systemTemperature/this.nodes.length&&this.enableSimulation}}),e("packedbubble","bubble",{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,dataLabels:{formatter:function(){return this.point.value},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:1,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}},{hasDraggableNodes:!0,forces:["barycenter","repulsive"],pointArrayMap:["value"],pointValKey:"value",isCartesian:!1,requireSorting:!1,directTouch:!0,axisTypes:[],noSharedTooltip:!0,searchPoint:t.noop,accumulateAllPoints:function(t){var e,i,n=t.chart,r=[];for(e=0;e<n.series.length;e++)if((t=n.series[e]).visible||!n.options.chart.ignoreHiddenSeries)for(i=0;i<t.yData.length;i++)r.push([null,null,t.yData[i],t.index,i,{id:i,marker:{radius:0}}]);return r},init:function(){return c.prototype.init.apply(this,arguments),u(this,"updatedData",(function(){this.chart.series.forEach((function(t){t.type===this.type&&(t.isDirty=!0)}),this)})),this},render:function(){var t=[];c.prototype.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach((function(e){a(e.dataLabels)&&e.dataLabels.forEach((function(e){t.push(e)}))})),this.chart.hideOverlappingLabels(t))},setVisible:function(){var t=this;c.prototype.setVisible.apply(t,arguments),t.parentNodeLayout&&t.graph?t.visible?(t.graph.show(),t.parentNode.dataLabel&&t.parentNode.dataLabel.show()):(t.graph.hide(),t.parentNodeLayout.removeElementFromCollection(t.parentNode,t.parentNodeLayout.nodes),t.parentNode.dataLabel&&t.parentNode.dataLabel.hide()):t.layout&&(t.visible?t.layout.addElementsToCollection(t.points,t.layout.nodes):t.points.forEach((function(e){t.layout.removeElementFromCollection(e,t.layout.nodes)})))},drawDataLabels:function(){var t=this.options.dataLabels.textPath,e=this.points;c.prototype.drawDataLabels.apply(this,arguments),this.parentNode&&(this.parentNode.formatPrefix="parentNode",this.points=[this.parentNode],this.options.dataLabels.textPath=this.options.dataLabels.parentNodeTextPath,c.prototype.drawDataLabels.apply(this,arguments),this.points=e,this.options.dataLabels.textPath=t)},seriesBox:function(){var t,e=this.chart,i=Math.max,r=Math.min,o=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return this.data.forEach((function(e){n(e.plotX)&&n(e.plotY)&&e.marker.radius&&(t=e.marker.radius,o[0]=r(o[0],e.plotX-t),o[1]=i(o[1],e.plotX+t),o[2]=r(o[2],e.plotY-t),o[3]=i(o[3],e.plotY+t))})),s(o.width/o.height)?o:null},calculateParentRadius:function(){var t=this.seriesBox();this.parentNodeRadius=i(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},drawGraph:function(){if(this.layout&&this.layout.options.splitSeries){var e=this.chart,i=this.layout.options.parentNodeOptions.marker;i={fill:i.fillColor||f(this.color).brighten(.4).get(),opacity:i.fillOpacity,stroke:i.lineColor||this.color,"stroke-width":i.lineWidth};var n=this.visible?"inherit":"hidden";this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",n,.1,e.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),n=t.merge({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},i),this.parentNode.graphic||(this.graph=this.parentNode.graphic=e.renderer.symbol(i.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(n)}},createParentNodes:function(){var t,e=this,i=e.chart,n=e.parentNodeLayout,r=e.parentNode;e.parentNodeMass=0,e.points.forEach((function(t){e.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)})),e.calculateParentRadius(),n.nodes.forEach((function(i){i.seriesIndex===e.index&&(t=!0)})),n.setArea(0,0,i.plotWidth,i.plotHeight),t||(r||(r=(new m).init(this,{mass:e.parentNodeRadius/2,marker:{radius:e.parentNodeRadius},dataLabels:{inside:!1},dataLabelOnNull:!0,degree:e.parentNodeRadius,isParentNode:!0,seriesIndex:e.index})),e.parentNode&&(r.plotX=e.parentNode.plotX,r.plotY=e.parentNode.plotY),e.parentNode=r,n.addElementsToCollection([e],n.series),n.addElementsToCollection([r],n.nodes))},addSeriesLayout:function(){var e=this.options.layoutAlgorithm,i=this.chart.graphLayoutsStorage,n=this.chart.graphLayoutsLookup,r=t.merge(e,e.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),o=i[e.type+"-series"];o||(i[e.type+"-series"]=o=new t.layouts[e.type],o.init(r),n.splice(o.index,0,o)),this.parentNodeLayout=o,this.createParentNodes()},addLayout:function(){var e=this.options.layoutAlgorithm,i=this.chart.graphLayoutsStorage,r=this.chart.graphLayoutsLookup,o=this.chart.options.chart;i||(this.chart.graphLayoutsStorage=i={},this.chart.graphLayoutsLookup=r=[]);var a=i[e.type];a||(e.enableSimulation=n(o.forExport)?!o.forExport:e.enableSimulation,i[e.type]=a=new t.layouts[e.type],a.init(e),r.splice(a.index,0,a)),this.layout=a,this.points.forEach((function(t){t.mass=2,t.degree=1,t.collisionNmb=1})),a.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),a.addElementsToCollection([this],a.series),a.addElementsToCollection(this.points,a.nodes)},deferLayout:function(){var t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())},translate:function(){var t,e=this.chart,i=this.data,o=this.index,a=this.options.useSimulation;if(this.processedXData=this.xData,this.generatePoints(),n(e.allDataPoints)||(e.allDataPoints=this.accumulateAllPoints(this),this.getPointRadius()),a)var s=e.allDataPoints;else s=this.placeBubbles(e.allDataPoints),this.options.draggable=!1;for(t=0;t<s.length;t++)if(s[t][3]===o){var l=i[s[t][4]],c=s[t][2];a||(l.plotX=s[t][0]-e.plotLeft+e.diffX,l.plotY=s[t][1]-e.plotTop+e.diffY),l.marker=r(l.marker,{radius:c,width:2*c,height:2*c}),l.radius=c}a&&this.deferLayout(),d(this,"afterTranslate")},checkOverlap:function(t,e){var i=t[0]-e[0],n=t[1]-e[1];return-.001>Math.sqrt(i*i+n*n)-Math.abs(t[2]+e[2])},positionBubble:function(t,e,i){var n=Math.sqrt,r=Math.asin,o=Math.acos,a=Math.pow,s=Math.abs;return n=n(a(t[0]-e[0],2)+a(t[1]-e[1],2)),o=o((a(n,2)+a(i[2]+e[2],2)-a(i[2]+t[2],2))/(2*(i[2]+e[2])*n)),r=r(s(t[0]-e[0])/n),t=(0>t[1]-e[1]?0:Math.PI)+o+r*(0>(t[0]-e[0])*(t[1]-e[1])?1:-1),[e[0]+(e[2]+i[2])*Math.sin(t),e[1]-(e[2]+i[2])*Math.cos(t),i[2],i[3],i[4]]},placeBubbles:function(t){var e,i=this.checkOverlap,n=this.positionBubble,r=[],o=1,a=0,s=0,l=[];if((t=t.sort((function(t,e){return e[2]-t[2]}))).length){if(r.push([[0,0,t[0][2],t[0][3],t[0][4]]]),1<t.length)for(r.push([[0,0-t[1][2]-t[0][2],t[1][2],t[1][3],t[1][4]]]),e=2;e<t.length;e++)t[e][2]=t[e][2]||1,i(l=n(r[o][a],r[o-1][s],t[e]),r[o][0])?(r.push([]),s=0,r[o+1].push(n(r[o][a],r[o][0],t[e])),o++,a=0):1<o&&r[o-1][s+1]&&i(l,r[o-1][s+1])?(s++,r[o].push(n(r[o][a],r[o-1][s],t[e])),a++):(a++,r[o].push(l));this.chart.stages=r,this.chart.rawPositions=[].concat.apply([],r),this.resizeRadius(),l=this.chart.rawPositions}return l},resizeRadius:function(){var t,e,i,n=this.chart,r=n.rawPositions,o=Math.min,a=Math.max,s=n.plotLeft,l=n.plotTop,c=n.plotHeight,h=n.plotWidth,u=t=Number.POSITIVE_INFINITY,d=e=Number.NEGATIVE_INFINITY;for(i=0;i<r.length;i++){var p=r[i][2];u=o(u,r[i][0]-p),d=a(d,r[i][0]+p),t=o(t,r[i][1]-p),e=a(e,r[i][1]+p)}if(i=[d-u,e-t],o=o.apply([],[(h-s)/i[0],(c-l)/i[1]]),1e-10<Math.abs(o-1)){for(i=0;i<r.length;i++)r[i][2]*=o;this.placeBubbles(r)}else n.diffY=c/2+l-t-(e-t)/2,n.diffX=h/2+s-u-(d-u)/2},calculateZExtremes:function(){var t=this.options.zMin,e=this.options.zMax,i=1/0,r=-1/0;return t&&e?[t,e]:(this.chart.series.forEach((function(t){t.yData.forEach((function(t){n(t)&&(t>r&&(r=t),t<i&&(i=t))}))})),[t=l(t,i),e=l(e,r)])},getPointRadius:function(){var t,e,n,r,o=this,a=o.chart,s=o.options,l=s.useSimulation,c=Math.min(a.plotWidth,a.plotHeight),h={},u=[],d=a.allDataPoints;["minSize","maxSize"].forEach((function(t){var e=parseInt(s[t],10),i=/%$/.test(s[t]);h[t]=i?c*e/100:e*Math.sqrt(d.length)})),a.minRadius=t=h.minSize/Math.sqrt(d.length),a.maxRadius=e=h.maxSize/Math.sqrt(d.length);var p=l?o.calculateZExtremes():[t,e];(d||[]).forEach((function(a,s){n=l?i(a[2],p[0],p[1]):a[2],0===(r=o.getRadius(p[0],p[1],t,e,n))&&(r=null),d[s][2]=r,u.push(r)})),o.radii=u},redrawHalo:y.redrawHalo,onMouseDown:y.onMouseDown,onMouseMove:y.onMouseMove,onMouseUp:function(e){if(e.fixedPosition&&!e.removed){var i,n=this.layout,r=this.parentNodeLayout;r&&n.options.dragBetweenSeries&&r.nodes.forEach((function(r){e&&e.marker&&r!==e.series.parentNode&&(i=n.getDistXY(e,r),0>n.vectorLength(i)-r.marker.radius-e.marker.radius&&(r.series.addPoint(t.merge(e.options,{plotX:e.plotX,plotY:e.plotY}),!1),n.removeElementFromCollection(e,n.nodes),e.remove()))})),y.onMouseUp.apply(this,arguments)}},destroy:function(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach((function(t){t.removeElementFromCollection(this,t.series)}),this),this.parentNode&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),t.Series.prototype.destroy.apply(this,arguments)},alignDataLabel:t.Series.prototype.alignDataLabel},{destroy:function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),h.prototype.destroy.apply(this,arguments)}}),u(p,"beforeRedraw",(function(){this.allDataPoints&&delete this.allDataPoints}))})),e(t,"parts-more/Polar.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.defined,n=e.pick,r=e.splat,o=e.wrap,a=t.Series,s=t.seriesTypes,l=a.prototype,c=t.Pointer.prototype;l.searchPointByAngle=function(t){var e=this.chart,i=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(t.chartX-i[0]-e.plotLeft,t.chartY-i[1]-e.plotTop)})},l.getConnectors=function(t,e,i,n){var r=n?1:0,o=0<=e&&e<=t.length-1?e:0>e?t.length-1+e:0;e=0>o-1?t.length-(1+r):o-1,r=o+1>t.length-1?r:o+1;var a=t[e];r=t[r];var s=a.plotX;a=a.plotY;var l=r.plotX,c=r.plotY;s=(1.5*(r=t[o].plotX)+s)/2.5,a=(1.5*(o=t[o].plotY)+a)/2.5,l=(1.5*r+l)/2.5;var h=(1.5*o+c)/2.5;c=Math.sqrt(Math.pow(s-r,2)+Math.pow(a-o,2));var u=Math.sqrt(Math.pow(l-r,2)+Math.pow(h-o,2));return s=Math.atan2(a-o,s-r),h=Math.PI/2+(s+Math.atan2(h-o,l-r))/2,Math.abs(s-h)>Math.PI/2&&(h-=Math.PI),s=r+Math.cos(h)*c,a=o+Math.sin(h)*c,r={rightContX:l=r+Math.cos(Math.PI+h)*u,rightContY:h=o+Math.sin(Math.PI+h)*u,leftContX:s,leftContY:a,plotX:r,plotY:o},i&&(r.prevPointCont=this.getConnectors(t,e,!1,n)),r},l.toXY=function(t){var e=this.chart,i=this.xAxis,n=this.yAxis,r=t.plotX,o=t.plotY,a=t.series,s=e.inverted,l=t.y;s&&a&&!a.isRadialBar&&(t.plotY=o="number"==typeof l&&n.translate(l)||0),t.rectPlotX=r,t.rectPlotY=o,n=s?i.postTranslate(o,r):i.postTranslate(r,n.len-o),t.plotX=t.polarPlotX=n.x-e.plotLeft,t.plotY=t.polarPlotY=n.y-e.plotTop,this.kdByAngle?(0>(e=(r/Math.PI*180+i.pane.options.startAngle)%360)&&(e+=360),t.clientX=e):t.clientX=t.plotX},s.spline&&(o(s.spline.prototype,"getPointSpline",(function(t,e,i,n){return this.chart.polar?n?t=["C",(t=this.getConnectors(e,n,!0,this.connectEnds)).prevPointCont.rightContX,t.prevPointCont.rightContY,t.leftContX,t.leftContY,t.plotX,t.plotY]:t=["M",i.plotX,i.plotY]:t=t.call(this,e,i,n),t})),s.areasplinerange&&(s.areasplinerange.prototype.getPointSpline=s.spline.prototype.getPointSpline)),t.addEvent(a,"afterTranslate",(function(){var e=this.chart;if(e.polar&&this.xAxis){if((this.kdByAngle=e.tooltip&&e.tooltip.shared)?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy",!this.preventPostTranslate)for(var i=this.points,n=i.length;n--;)this.toXY(i[n]),!e.hasParallelCoordinates&&!this.yAxis.reversed&&i[n].y<this.yAxis.min&&(i[n].isNull=!0);this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(t.addEvent(this,"afterRender",(function(){if(e.polar){var i=this.yAxis.center;this.clipCircle?this.clipCircle.animate({x:i[0],y:i[1],r:i[2]/2}):this.clipCircle=e.renderer.clipCircle(i[0],i[1],i[2]/2),this.group.clip(this.clipCircle),this.setClip=t.noop}}))))}}),{order:2}),o(l,"getGraphPath",(function(t,e){var i,n=this;if(this.chart.polar){for(e=e||this.points,i=0;i<e.length;i++)if(!e[i].isNull){var r=i;break}if(!1!==this.options.connectEnds&&void 0!==r){this.connectEnds=!0,e.splice(e.length,0,e[r]);var o=!0}e.forEach((function(t){void 0===t.polarPlotY&&n.toXY(t)}))}return i=t.apply(this,[].slice.call(arguments,1)),o&&e.pop(),i}));var h=function(e,i){var r=this.chart,o=this.options.animation,a=this.group,s=this.markerGroup,l=this.xAxis.center,c=r.plotLeft,h=r.plotTop;r.polar?this.isRadialBar?i||(this.startAngleRad=n(this.translatedThreshold,this.xAxis.startAngleRad),t.seriesTypes.pie.prototype.animate.call(this,i)):r.renderer.isSVG&&(o=t.animObject(o),i?(e={translateX:l[0]+c,translateY:l[1]+h,scaleX:.001,scaleY:.001},a.attr(e),s&&s.attr(e)):(e={translateX:c,translateY:h,scaleX:1,scaleY:1},a.animate(e,o),s&&s.animate(e,o),this.animate=null)):e.call(this,i)};o(l,"animate",h),s.column&&((a=s.column.prototype).polarArc=function(t,e,i,r){var o=this.xAxis.center,a=this.yAxis.len;return this.chart.renderer.symbols.arc(o[0],o[1],a-e,null,{start:i,end:r,innerR:a-n(t,a)})},o(a,"animate",h),o(a,"translate",(function(n){var r=this.options,o=r.stacking,a=this.chart,s=this.xAxis,l=this.yAxis,c=l.reversed,h=s.center,u=s.startAngleRad,d=s.endAngleRad-u;if(this.preventPostTranslate=!0,n.call(this),s.isRadial){var p=(n=this.points).length,f=l.translate(l.min),g=l.translate(l.max);if(r=r.threshold||0,a.inverted&&t.isNumber(r)){var m=l.translate(r);i(m)&&(0>m?m=0:m>d&&(m=d),this.translatedThreshold=m+u)}for(;p--;){var y=(r=n[p]).barX,v=r.x,b=r.y;if(a.inverted){if(r.shapeType="arc",r.plotY=l.translate(b),o){if(b=l.stacks[(0>b?"-":"")+this.stackKey],this.visible&&b&&b[v]&&!r.isNull){var x=b[v].points[this.getStackIndicator(void 0,v,this.index).key],w=l.translate(x[0]);x=l.translate(x[1]),i(w)&&(w=e.clamp(w,0,d))}}else w=m,x=r.plotY;w>x&&(x=[w,w=x][0]),c?x>f?x=f:w<g?w=g:(w>f||x<g)&&(w=x=d):w<f?w=f:x>g?x=g:(x<f||w>g)&&(w=x=0),l.min>l.max&&(w=x=c?d:0),w+=u,x+=u,v=Math.max(y,0),y=Math.max(y+r.pointWidth,0),r.shapeArgs={x:h[0],y:h[1],r:y,innerR:v,start:w,end:x},r.opacity=w===x?0:void 0,r.plotY=(i(this.translatedThreshold)&&(w<this.translatedThreshold?w:x))-u}else r.shapeType="path",w=y+u,r.shapeArgs={d:this.polarArc(r.yBottom,r.plotY,w,w+r.pointWidth)};this.toXY(r),a.inverted?(y=s.postTranslate(r.rectPlotY,r.barX+r.pointWidth/2),r.tooltipPos=[y.x-a.plotLeft,y.y-a.plotTop]):r.tooltipPos=[r.plotX,r.plotY],r.ttBelow=r.plotY>h[1]}}})),a.findAlignments=function(t,e){return null===e.align&&(e.align=20<t&&160>t?"left":200<t&&340>t?"right":"center"),null===e.verticalAlign&&(e.verticalAlign=45>t||315<t?"bottom":135<t&&225>t?"top":"middle"),e},o(a,"alignDataLabel",(function(t,e,i,r,o,a){var s=this.chart,c=n(r.inside,!!this.options.stacking);s.polar?(t=e.rectPlotX/Math.PI*180,s.inverted?(this.forceDL=s.isInsidePlot(e.plotX,Math.round(e.plotY),!1),c&&e.shapeArgs?(o=e.shapeArgs,o={x:(o=this.xAxis.postTranslate((o.start+o.end)/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-s.plotLeft,y:o.y-s.plotTop}):e.tooltipPos&&(o={x:e.tooltipPos[0],y:e.tooltipPos[1]}),r.align=n(r.align,"center"),r.verticalAlign=n(r.verticalAlign,"middle")):r=this.findAlignments(t,r),l.alignDataLabel.call(this,e,i,r,o,a),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end&&i.hide(!0)):t.call(this,e,i,r,o,a)}))),o(c,"getCoordinates",(function(t,e){var i=this.chart,n={xAxis:[],yAxis:[]};return i.polar?i.axes.forEach((function(t){var r=t.isXAxis,o=t.center;if("colorAxis"!==t.coll){var a=e.chartX-o[0]-i.plotLeft;o=e.chartY-o[1]-i.plotTop,n[r?"xAxis":"yAxis"].push({axis:t,value:t.translate(r?Math.PI-Math.atan2(a,o):Math.sqrt(Math.pow(a,2)+Math.pow(o,2)),!0)})}})):n=t.call(this,e),n})),t.SVGRenderer.prototype.clipCircle=function(e,i,n){var r=t.uniqueKey(),o=this.createElement("clipPath").attr({id:r}).add(this.defs);return(e=this.circle(e,i,n).add(o)).id=r,e.clipPath=o,e},t.addEvent(t.Chart,"getAxes",(function(){this.pane||(this.pane=[]),r(this.options.pane).forEach((function(e){new t.Pane(e,this)}),this)})),t.addEvent(t.Chart,"afterDrawChartBox",(function(){this.pane.forEach((function(t){t.render()}))})),t.addEvent(t.Series,"afterInit",(function(){var t=this.chart;t.inverted&&t.polar&&(this.isRadialSeries=!0,this instanceof s.column&&(this.isRadialBar=!0))})),o(t.Chart.prototype,"get",(function(e,i){return t.find(this.pane,(function(t){return t.options.id===i}))||e.call(this,i)}))})),e(t,"masters/highcharts-more.src.js",[],(function(){}))})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Cropper=e()}(this,(function(){"use strict";function t(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)),n}function e(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){var i,r;i=e,t=n[r=t],r in i?Object.defineProperty(i,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[r]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t){return(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})(t)}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(i="Object"===i&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var a=(Ft="undefined"!=typeof window&&void 0!==window.document)?window:{},s=!(!Ft||!a.document.documentElement)&&"ontouchstart"in a.document.documentElement,l=Ft&&"PointerEvent"in a,c="cropper",h="all",u="crop",d="move",p="zoom",f="e",g="w",m="s",y="n",v="ne",b="nw",x="se",w="sw",_="".concat(c,"-crop"),S="".concat(c,"-disabled"),P="".concat(c,"-hidden"),k="".concat(c,"-hide"),C="".concat(c,"-invisible"),T="".concat(c,"-modal"),A="".concat(c,"-move"),O="".concat(c,"Action"),M="".concat(c,"Preview"),E="crop",I="move",D="none",L="crop",j="cropend",N="cropmove",F="cropstart",R="dblclick",V=l?"pointerdown":s?"touchstart":"mousedown",z=l?"pointermove":s?"touchmove":"mousemove",B=l?"pointerup pointercancel":s?"touchend touchcancel":"mouseup",H="zoom",W="image/jpeg",X=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Y=/^data:/,G=/^data:image\/jpeg;base64,/,U=/^img|canvas$/i,q={viewMode:0,dragMode:E,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},$=Number.isNaN||a.isNaN;function K(t){return"number"==typeof t&&!$(t)}var Z=function(t){return 0<t&&t<1/0};function J(t){return void 0===t}function Q(t){return"object"===i(t)&&null!==t}var tt=Object.prototype.hasOwnProperty;function et(t){if(!Q(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&tt.call(i,"isPrototypeOf")}catch(t){return!1}}function it(t){return"function"==typeof t}var nt=Array.prototype.slice;function rt(t){return Array.from?Array.from(t):nt.call(t)}function ot(t,e){return t&&it(e)&&(Array.isArray(t)||K(t.length)?rt(t).forEach((function(i,n){e.call(t,i,n,t)})):Q(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var at=Object.assign||function(t){for(var e=arguments.length,i=new Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return Q(t)&&0<i.length&&i.forEach((function(e){Q(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},st=/\.\d*(?:0|9){12}\d*$/;function lt(t,e){return e=1<arguments.length&&void 0!==e?e:1e11,st.test(t)?Math.round(t*e)/e:t}var ct=/^width|height|left|top|marginLeft|marginTop$/;function ht(t,e){var i=t.style;ot(e,(function(t,e){ct.test(e)&&K(t)&&(t="".concat(t,"px")),i[e]=t}))}function ut(t,e){var i;e&&(K(t.length)?ot(t,(function(t){ut(t,e)})):t.classList?t.classList.add(e):(i=t.className.trim())?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e)}function dt(t,e){e&&(K(t.length)?ot(t,(function(t){dt(t,e)})):t.classList?t.classList.remove(e):0<=t.className.indexOf(e)&&(t.className=t.className.replace(e,"")))}function pt(t,e,i){e&&(K(t.length)?ot(t,(function(t){pt(t,e,i)})):(i?ut:dt)(t,e))}var ft=/([a-z\d])([A-Z])/g;function gt(t){return t.replace(ft,"$1-$2").toLowerCase()}function mt(t,e){return Q(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(gt(e)))}function yt(t,e,i){Q(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(gt(e)),i)}var vt,bt,xt=/\s\s*/,wt=(bt=!1,Ft&&(vt=!1,Rt=function(){},zt=Object.defineProperty({},"once",{get:function(){return bt=!0,vt},set:function(t){vt=t}}),a.addEventListener("test",Rt,zt),a.removeEventListener("test",Rt,zt)),bt);function _t(t,e,i,n){var r=3<arguments.length&&void 0!==n?n:{},o=i;e.trim().split(xt).forEach((function(e){var n;wt||(n=t.listeners)&&n[e]&&n[e][i]&&(o=n[e][i],delete n[e][i],0===Object.keys(n[e]).length&&delete n[e],0===Object.keys(n).length&&delete t.listeners),t.removeEventListener(e,o,r)}))}function St(t,e,i,n){var r=3<arguments.length&&void 0!==n?n:{},o=i;e.trim().split(xt).forEach((function(e){var n,a;r.once&&!wt&&(n=t.listeners,o=function(){delete a[e][i],t.removeEventListener(e,o,r);for(var n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];i.apply(t,s)},(a=void 0===n?{}:n)[e]||(a[e]={}),a[e][i]&&t.removeEventListener(e,a[e][i],r),a[e][i]=o,t.listeners=a),t.addEventListener(e,o,r)}))}function Pt(t,e,i){var n;return it(Event)&&it(CustomEvent)?n=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(n)}function kt(t){return{left:(t=t.getBoundingClientRect()).left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var Ct=a.location,Tt=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function At(t){return null!==(t=t.match(Tt))&&(t[1]!==Ct.protocol||t[2]!==Ct.hostname||t[3]!==Ct.port)}function Ot(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function Mt(t){var e=t.rotate,i=t.scaleX,n=t.scaleY,r=t.translateX,o=t.translateY;t=[];return K(r)&&0!==r&&t.push("translateX(".concat(r,"px)")),K(o)&&0!==o&&t.push("translateY(".concat(o,"px)")),K(e)&&0!==e&&t.push("rotate(".concat(e,"deg)")),K(i)&&1!==i&&t.push("scaleX(".concat(i,")")),K(n)&&1!==n&&t.push("scaleY(".concat(n,")")),{WebkitTransform:t=t.length?t.join(" "):"none",msTransform:t,transform:t}}function Et(t,i){var n=t.pageX,r=t.pageY;t={endX:n,endY:r};return i?t:e({startX:n,startY:r},t)}function It(t,e){var i=t.aspectRatio,n=t.height,r=t.width,o=1<arguments.length&&void 0!==e?e:"contain",a=Z(r);t=Z(n);return a&&t?(e=n*i,"contain"===o&&r<e||"cover"===o&&e<r?n=r/i:r=n*i):a?n=r/i:t&&(r=n*i),{width:r,height:n}}var Dt=String.fromCharCode,Lt=/^data:.*,/;var jt={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,n=this.cropper,r=Number(e.minContainerWidth);e=Number(e.minContainerHeight);ut(n,P),dt(t,P),e={width:Math.max(i.offsetWidth,0<=r?r:200),height:Math.max(i.offsetHeight,0<=e?e:100)},ht(n,{width:(this.containerData=e).width,height:e.height}),ut(t,P),dt(n,P)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,n=(a=Math.abs(e.rotate)%180==90)?e.naturalHeight:e.naturalWidth,r=a?e.naturalWidth:e.naturalHeight,o=n/r,a=t.width;e=t.height;t.height*o>t.width?3===i?a=t.height*o:e=t.width/o:3===i?e=t.width/o:a=t.height*o,e={aspectRatio:o,naturalWidth:n,naturalHeight:r,width:a,height:e},this.canvasData=e,this.limited=1===i||2===i,this.limitCanvas(!0,!0),e.width=Math.min(Math.max(e.width,e.minWidth),e.maxWidth),e.height=Math.min(Math.max(e.height,e.minHeight),e.maxHeight),e.left=(t.width-e.width)/2,e.top=(t.height-e.height)/2,e.oldLeft=e.left,e.oldTop=e.top,this.initialCanvasData=at({},e)},limitCanvas:function(t,e){var i,n=this.options,r=this.containerData,o=this.canvasData,a=this.cropBoxData,s=n.viewMode,l=o.aspectRatio,c=this.cropped&&a;t&&(t=Number(n.minCanvasWidth)||0,i=Number(n.minCanvasHeight)||0,1<s?(t=Math.max(t,r.width),i=Math.max(i,r.height),3===s&&(t<i*l?t=i*l:i=t/l)):0<s&&(t?t=Math.max(t,c?a.width:0):i?i=Math.max(i,c?a.height:0):c&&((t=a.width)<(i=a.height)*l?t=i*l:i=t/l)),t=(l=It({aspectRatio:l,width:t,height:i})).width,i=l.height,o.minWidth=t,o.minHeight=i,o.maxWidth=1/0,o.maxHeight=1/0),e&&((c?0:1)<s?(i=r.width-o.width,e=r.height-o.height,o.minLeft=Math.min(0,i),o.minTop=Math.min(0,e),o.maxLeft=Math.max(0,i),o.maxTop=Math.max(0,e),c&&this.limited&&(o.minLeft=Math.min(a.left,a.left+(a.width-o.width)),o.minTop=Math.min(a.top,a.top+(a.height-o.height)),o.maxLeft=a.left,o.maxTop=a.top,2===s&&(o.width>=r.width&&(o.minLeft=Math.min(0,i),o.maxLeft=Math.max(0,i)),o.height>=r.height&&(o.minTop=Math.min(0,e),o.maxTop=Math.max(0,e))))):(o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=r.width,o.maxTop=r.height))},renderCanvas:function(t,e){var i,n,r=this.canvasData,o=this.imageData;e&&(i=(n=function(t){var e=t.width,i=t.height,n=t.degree;if(90==(n=Math.abs(n)%180))return{width:i,height:e};var r=n%90*Math.PI/180,o=Math.sin(r);r=e*(t=Math.cos(r))+i*o,t=e*o+i*t;return 90<n?{width:t,height:r}:{width:r,height:t}}({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0})).width,e=n.height,o=r.width*(i/r.naturalWidth),n=r.height*(e/r.naturalHeight),r.left-=(o-r.width)/2,r.top-=(n-r.height)/2,r.width=o,r.height=n,r.aspectRatio=i/e,r.naturalWidth=i,r.naturalHeight=e,this.limitCanvas(!0,!1)),(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCanvas(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,ht(this.canvas,at({width:r.width,height:r.height},Mt({translateX:r.left,translateY:r.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,n=i.naturalWidth*(e.width/e.naturalWidth),r=i.naturalHeight*(e.height/e.naturalHeight);at(i,{width:n,height:r,left:(e.width-n)/2,top:(e.height-r)/2}),ht(this.image,at({width:i.width,height:i.height},Mt(at({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,n=Number(t.autoCropArea)||.8;t={width:e.width,height:e.height};i&&(e.height*i>e.width?t.height=t.width/i:t.width=t.height*i),this.cropBoxData=t,this.limitCropBox(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.width=Math.max(t.minWidth,t.width*n),t.height=Math.max(t.minHeight,t.height*n),t.left=e.left+(e.width-t.width)/2,t.top=e.top+(e.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCropBoxData=at({},t)},limitCropBox:function(t,e){var i,n,r=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=this.limited,c=r.aspectRatio;t&&(i=Number(r.minCropBoxWidth)||0,n=Number(r.minCropBoxHeight)||0,t=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,r=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height,i=Math.min(i,o.width),n=Math.min(n,o.height),c&&(i&&n?i<n*c?n=i/c:i=n*c:i?n=i/c:n&&(i=n*c),t<r*c?r=t/c:t=r*c),s.minWidth=Math.min(i,t),s.minHeight=Math.min(n,r),s.maxWidth=t,s.maxHeight=r),e&&(l?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(o.width,a.left+a.width)-s.width,s.maxTop=Math.min(o.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&yt(this.face,O,i.width>=e.width&&i.height>=e.height?d:h),ht(this.cropBox,at({width:i.width,height:i.height},Mt({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Pt(this.element,L,this.getData())}},Nt={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,n=e?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",o=document.createElement("img");e&&(o.crossOrigin=e),o.src=n,o.alt=r,this.viewBox.appendChild(o),this.viewBoxImage=o,i&&("string"==typeof(o=i)?o=t.ownerDocument.querySelectorAll(i):i.querySelector&&(o=[i]),ot(this.previews=o,(function(t){var i=document.createElement("img");yt(t,M,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=n,i.alt=r,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)})))},resetPreview:function(){ot(this.previews,(function(t){var e=mt(t,M);ht(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(Q(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(gt(e)))}(t,M)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,n=i.width,r=i.height,o=t.width,a=t.height,s=i.left-e.left-t.left,l=i.top-e.top-t.top;this.cropped&&!this.disabled&&(ht(this.viewBoxImage,at({width:o,height:a},Mt(at({translateX:-s,translateY:-l},t)))),ot(this.previews,(function(e){var i=(d=mt(e,M)).width,c=d.height,h=i,u=c,d=1;n&&(u=r*(d=i/n)),r&&c<u&&(h=n*(d=c/r),u=c),ht(e,{width:h,height:u}),ht(e.getElementsByTagName("img")[0],at({width:o*d,height:a*d},Mt(at({translateX:-s*d,translateY:-l*d},t))))})))}},Ft=(l={bind:function(){var t=this.element,e=this.options,i=this.cropper;it(e.cropstart)&&St(t,F,e.cropstart),it(e.cropmove)&&St(t,N,e.cropmove),it(e.cropend)&&St(t,j,e.cropend),it(e.crop)&&St(t,L,e.crop),it(e.zoom)&&St(t,H,e.zoom),St(i,V,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&St(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&St(i,R,this.onDblclick=this.dblclick.bind(this)),St(t.ownerDocument,z,this.onCropMove=this.cropMove.bind(this)),St(t.ownerDocument,B,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&St(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;it(e.cropstart)&&_t(t,F,e.cropstart),it(e.cropmove)&&_t(t,N,e.cropmove),it(e.cropend)&&_t(t,j,e.cropend),it(e.crop)&&_t(t,L,e.crop),it(e.zoom)&&_t(t,H,e.zoom),_t(i,V,this.onCropStart),e.zoomable&&e.zoomOnWheel&&_t(i,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&_t(i,R,this.onDblclick),_t(t.ownerDocument,z,this.onCropMove),_t(t.ownerDocument,B,this.onCropEnd),e.responsive&&_t(window,"resize",this.onResize)}},s={resize:function(){var t,e,i,n,r,o,a;this.disabled||(t=this.options,e=this.container,n=this.containerData,i=e.offsetWidth/n.width,n=e.offsetHeight/n.height,1!=(r=Math.abs(i-1)>Math.abs(n-1)?i:n)&&(t.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(ot(o,(function(t,e){o[e]=t*r}))),this.setCropBoxData(ot(a,(function(t,e){a[e]=t*r}))))))},dblclick:function(){var t,e;this.disabled||this.options.dragMode===D||this.setDragMode((t=this.dragBox,e=_,(t.classList?t.classList.contains(e):-1<t.className.indexOf(e))?I:E))},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,n=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?n=0<t.deltaY?1:-1:t.wheelDelta?n=-t.wheelDelta/120:t.detail&&(n=0<t.detail?1:-1),this.zoom(-n*i,t)))},cropStart:function(t){var e,i=t.buttons,n=t.button;this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(K(i)&&1!==i||K(n)&&0!==n||t.ctrlKey)||(n=this.options,e=this.pointers,t.changedTouches?ot(t.changedTouches,(function(t){e[t.identifier]=Et(t)})):e[t.pointerId||0]=Et(t),n=1<Object.keys(e).length&&n.zoomable&&n.zoomOnTouch?p:mt(t.target,O),X.test(n)&&!1!==Pt(this.element,F,{originalEvent:t,action:n})&&(t.preventDefault(),this.action=n,this.cropping=!1,n===u&&(this.cropping=!0,ut(this.dragBox,T))))},cropMove:function(t){var e,i=this.action;!this.disabled&&i&&(e=this.pointers,t.preventDefault(),!1!==Pt(this.element,N,{originalEvent:t,action:i})&&(t.changedTouches?ot(t.changedTouches,(function(t){at(e[t.identifier]||{},Et(t,!0))})):at(e[t.pointerId||0]||{},Et(t,!0)),this.change(t)))},cropEnd:function(t){var e,i;this.disabled||(e=this.action,i=this.pointers,t.changedTouches?ot(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,pt(this.dragBox,T,this.cropped&&this.options.modal)),Pt(this.element,j,{originalEvent:t,action:e})))}},{change:function(t){var i=this.options,n=this.canvasData,r=this.containerData,o=this.cropBoxData,a=this.pointers,s=this.action,l=i.aspectRatio,c=o.left,_=o.top,S=o.width,k=o.height,C=c+S,T=_+k,A=0,O=0,M=r.width,E=r.height,I=!0;function D(t){switch(t){case f:C+R.x>M&&(R.x=M-C);break;case g:c+R.x<A&&(R.x=A-c);break;case y:_+R.y<O&&(R.y=O-_);break;case m:T+R.y>E&&(R.y=E-T)}}!l&&t.shiftKey&&(l=S&&k?S/k:1),this.limited&&(A=o.minLeft,O=o.minTop,M=A+Math.min(r.width,n.width,n.left+n.width),E=O+Math.min(r.height,n.height,n.top+n.height));var L,j,N,F=a[Object.keys(a)[0]],R={x:F.endX-F.startX,y:F.endY-F.startY};switch(s){case h:c+=R.x,_+=R.y;break;case f:if(0<=R.x&&(M<=C||l&&(_<=O||E<=T))){I=!1;break}D(f),(S+=R.x)<0&&(s=g,c-=S=-S),l&&(_+=(o.height-(k=S/l))/2);break;case y:if(R.y<=0&&(_<=O||l&&(c<=A||M<=C))){I=!1;break}D(y),k-=R.y,_+=R.y,k<0&&(s=m,_-=k=-k),l&&(c+=(o.width-(S=k*l))/2);break;case g:if(R.x<=0&&(c<=A||l&&(_<=O||E<=T))){I=!1;break}D(g),S-=R.x,c+=R.x,S<0&&(s=f,c-=S=-S),l&&(_+=(o.height-(k=S/l))/2);break;case m:if(0<=R.y&&(E<=T||l&&(c<=A||M<=C))){I=!1;break}D(m),(k+=R.y)<0&&(s=y,_-=k=-k),l&&(c+=(o.width-(S=k*l))/2);break;case v:if(l){if(R.y<=0&&(_<=O||M<=C)){I=!1;break}D(y),k-=R.y,_+=R.y,S=k*l}else D(y),D(f),!(0<=R.x)||C<M?S+=R.x:R.y<=0&&_<=O&&(I=!1),R.y<=0&&!(O<_)||(k-=R.y,_+=R.y);S<0&&k<0?(s=w,_-=k=-k,c-=S=-S):S<0?(s=b,c-=S=-S):k<0&&(s=x,_-=k=-k);break;case b:if(l){if(R.y<=0&&(_<=O||c<=A)){I=!1;break}D(y),k-=R.y,_+=R.y,c+=o.width-(S=k*l)}else D(y),D(g),!(R.x<=0)||A<c?(S-=R.x,c+=R.x):R.y<=0&&_<=O&&(I=!1),R.y<=0&&!(O<_)||(k-=R.y,_+=R.y);S<0&&k<0?(s=x,_-=k=-k,c-=S=-S):S<0?(s=v,c-=S=-S):k<0&&(s=w,_-=k=-k);break;case w:if(l){if(R.x<=0&&(c<=A||E<=T)){I=!1;break}D(g),S-=R.x,c+=R.x,k=S/l}else D(m),D(g),!(R.x<=0)||A<c?(S-=R.x,c+=R.x):0<=R.y&&E<=T&&(I=!1),0<=R.y&&!(T<E)||(k+=R.y);S<0&&k<0?(s=v,_-=k=-k,c-=S=-S):S<0?(s=x,c-=S=-S):k<0&&(s=b,_-=k=-k);break;case x:if(l){if(0<=R.x&&(M<=C||E<=T)){I=!1;break}D(f),k=(S+=R.x)/l}else D(m),D(f),!(0<=R.x)||C<M?S+=R.x:0<=R.y&&E<=T&&(I=!1),0<=R.y&&!(T<E)||(k+=R.y);S<0&&k<0?(s=b,_-=k=-k,c-=S=-S):S<0?(s=w,c-=S=-S):k<0&&(s=v,_-=k=-k);break;case d:this.move(R.x,R.y),I=!1;break;case p:this.zoom((j=e({},L=a),N=0,ot(L,(function(t,e){delete j[e],ot(j,(function(e){var i=Math.abs(t.startX-e.startX),n=Math.abs(t.startY-e.startY),r=Math.abs(t.endX-e.endX);e=Math.abs(t.endY-e.endY),n=Math.sqrt(i*i+n*n),n=(Math.sqrt(r*r+e*e)-n)/n;Math.abs(n)>Math.abs(N)&&(N=n)}))})),N),t),I=!1;break;case u:if(!R.x||!R.y){I=!1;break}L=kt(this.cropper),c=F.startX-L.left,_=F.startY-L.top,S=o.minWidth,k=o.minHeight,0<R.x?s=0<R.y?x:v:R.x<0&&(c-=S,s=0<R.y?w:b),R.y<0&&(_-=k),this.cropped||(dt(this.cropBox,P),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}I&&(o.width=S,o.height=k,o.left=c,o.top=_,this.action=s,this.renderCropBox()),ot(a,(function(t){t.startX=t.endX,t.startY=t.endY}))}}),Rt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&ut(this.dragBox,T),dt(this.cropBox,P),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=at({},this.initialImageData),this.canvasData=at({},this.initialCanvasData),this.cropBoxData=at({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(at(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),dt(this.dragBox,T),ut(this.cropBox,P)),this},replace:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,ot(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,dt(this.cropper,S)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,ut(this.cropper,S)),this},destroy:function(){var t=this.element;return t[c]&&(t[c]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate()),this},move:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=(n=this.canvasData).left,n=n.top;return this.moveTo(J(t)?t:i+Number(t),J(e)?e:n+Number(e))},moveTo:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(K(t)&&(i.left=t,n=!0),K(e)&&(i.top=e,n=!0),n&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=Number(t),this.zoomTo(i.width*(t=t<0?1/(1-t):1+t)/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var n,r,o,a=this.options,s=this.canvasData,l=s.width,c=s.height,h=s.naturalWidth,u=s.naturalHeight;if(0<=(t=Number(t))&&this.ready&&!this.disabled&&a.zoomable){if(a=h*t,u*=t,!1===Pt(this.element,H,{ratio:t,oldRatio:l/h,originalEvent:i}))return this;i?(t=this.pointers,h=kt(this.cropper),i=t&&Object.keys(t).length?(o=r=n=0,ot(t,(function(t){var e=t.startX;t=t.startY;n+=e,r+=t,o+=1})),{pageX:n/=o,pageY:r/=o}):{pageX:i.pageX,pageY:i.pageY},s.left-=(a-l)*((i.pageX-h.left-s.left)/l),s.top-=(u-c)*((i.pageY-h.top-s.top)/c)):et(e)&&K(e.x)&&K(e.y)?(s.left-=(a-l)*((e.x-s.left)/l),s.top-=(u-c)*((e.y-s.top)/c)):(s.left-=(a-l)/2,s.top-=(u-c)/2),s.width=a,s.height=u,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return K(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,K(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(K(e)?e:1,t)},scale:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(K(t)&&(i.scaleX=t,n=!0),K(e)&&(i.scaleY=e,n=!0),n&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e,i=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,o=this.canvasData,a=this.cropBoxData;return this.ready&&this.cropped?(t={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height},e=r.width/r.naturalWidth,ot(t,(function(i,n){t[n]=i/e})),i&&(a=Math.round(t.y+t.height),i=Math.round(t.x+t.width),t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=i-t.x,t.height=a-t.y)):t={x:0,y:0,width:0,height:0},n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e,i=this.options,n=this.imageData,r=this.canvasData,o={};return this.ready&&!this.disabled&&et(t)&&(e=!1,i.rotatable&&K(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,e=!0),i.scalable&&(K(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,e=!0),K(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,e=!0)),e&&this.renderCanvas(!0,!0),n=n.width/n.naturalWidth,K(t.x)&&(o.left=t.x*n+r.left),K(t.y)&&(o.top=t.y*n+r.top),K(t.width)&&(o.width=t.width*n),K(t.height)&&(o.height=t.height*n),this.setCropBoxData(o)),this},getContainerData:function(){return this.ready?at({},this.containerData):{}},getImageData:function(){return this.sized?at({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&ot(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&et(t)&&(K(t.left)&&(e.left=t.left),K(t.top)&&(e.top=t.top),K(t.width)?(e.width=t.width,e.height=t.width/i):K(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return(t=this.ready&&this.cropped?{left:e.left,top:e.top,width:e.width,height:e.height}:t)||{}},setCropBoxData:function(t){var e,i,n=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&et(t)&&(K(t.left)&&(n.left=t.left),K(t.top)&&(n.top=t.top),K(t.width)&&t.width!==n.width&&(e=!0,n.width=t.width),K(t.height)&&t.height!==n.height&&(i=!0,n.height=t.height),r&&(e?n.height=n.width/r:i&&(n.width=n.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e,i,n,o,a,s,l,c,h,u,d,p,f=this.canvasData,g=(v=this.image,i=f,w=t,n=(e=this.imageData).aspectRatio,o=e.naturalWidth,b=e.naturalHeight,a=void 0===(p=e.rotate)?0:p,g=void 0===(y=e.scaleX)?1:y,x=void 0===(u=e.scaleY)?1:u,s=i.aspectRatio,l=i.naturalWidth,c=i.naturalHeight,h=void 0===(d=w.fillColor)?"transparent":d,m=void 0===(_=w.imageSmoothingEnabled)||_,y=void 0===(p=w.imageSmoothingQuality)?"low":p,u=void 0===(e=w.maxWidth)?1/0:e,d=void 0===(i=w.maxHeight)?1/0:i,p=void 0===(_=w.minWidth)?0:_,i=void 0===(e=w.minHeight)?0:e,w=(_=document.createElement("canvas")).getContext("2d"),e=It({aspectRatio:s,width:u,height:d}),s=It({aspectRatio:s,width:p,height:i},"cover"),l=Math.min(e.width,Math.max(s.width,l)),c=Math.min(e.height,Math.max(s.height,c)),d=It({aspectRatio:n,width:u,height:d}),i=It({aspectRatio:n,width:p,height:i},"cover"),b=[-(o=Math.min(d.width,Math.max(i.width,o)))/2,-(b=Math.min(d.height,Math.max(i.height,b)))/2,o,b],_.width=lt(l),_.height=lt(c),w.fillStyle=h,w.fillRect(0,0,l,c),w.save(),w.translate(l/2,c/2),w.rotate(a*Math.PI/180),w.scale(g,x),w.imageSmoothingEnabled=m,w.imageSmoothingQuality=y,w.drawImage.apply(w,[v].concat(r(b.map((function(t){return Math.floor(lt(t))}))))),w.restore(),_);if(!this.cropped)return g;var m=(x=this.getData()).x,y=x.y,v=x.width,b=x.height;1!=(w=g.width/Math.floor(f.naturalWidth))&&(m*=w,y*=w,v*=w,b*=w);var x=It({aspectRatio:_=v/b,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),w=(f=It({aspectRatio:_,width:t.minWidth||0,height:t.minHeight||0},"cover"),(_=It({aspectRatio:_,width:t.width||(1!=w?g.width:v),height:t.height||(1!=w?g.height:b)})).width),_=_.height;w=Math.min(x.width,Math.max(f.width,w)),_=Math.min(x.height,Math.max(f.height,_)),f=(x=document.createElement("canvas")).getContext("2d");x.width=lt(w),x.height=lt(_),f.fillStyle=t.fillColor||"transparent",f.fillRect(0,0,w,_),_=t.imageSmoothingEnabled,t=t.imageSmoothingQuality,f.imageSmoothingEnabled=void 0===_||_,t&&(f.imageSmoothingQuality=t);var S,P,k,C,T;_=g.width,t=g.height,y=y;(m=m)<=-v||_<m?C=P=S=m=0:m<=0?(P=-m,m=0,C=S=Math.min(_,v+m)):m<=_&&(P=0,C=S=Math.min(v,_-m)),S<=0||y<=-b||t<y?T=k=A=y=0:y<=0?(k=-y,y=0,T=A=Math.min(t,b+y)):y<=t&&(k=0,T=A=Math.min(b,t-y));var A=[m,y,S,A];return 0<C&&0<T&&A.push(P*(v=w/v),k*v,C*v,T*v),f.drawImage.apply(f,[g].concat(r(A.map((function(t){return Math.floor(lt(t))}))))),x},setAspectRatio:function(t){var e=this.options;return this.disabled||J(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e,i,n=this.options,r=this.dragBox,o=this.face;return this.ready&&!this.disabled&&(i=n.movable&&t===I,n.dragMode=t=(e=t===E)||i?t:D,yt(r,O,t),pt(r,_,e),pt(r,A,i),n.cropBoxMovable||(yt(o,O,t),pt(o,_,e),pt(o,A,i))),this}},Vt=a.Cropper,zt=function(){function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!U.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=at({},q,et(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e,i,r;return e=t,r=[{key:"noConflict",value:function(){return window.Cropper=Vt,t}},{key:"setDefaults",value:function(t){at(q,et(t)&&t)}}],(i=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[c]){if(e[c]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",!(this.originalUrl=t))return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,n,r,o,a,s=this;t&&(this.url=t,this.imageData={},e=this.element,(i=this.options).rotatable||i.scalable||(i.checkOrientation=!1),i.checkOrientation&&window.ArrayBuffer?Y.test(t)?G.test(t)?this.read((a=(a=t).replace(Lt,""),n=atob(a),a=new ArrayBuffer(n.length),ot(r=new Uint8Array(a),(function(t,e){r[e]=n.charCodeAt(e)})),a)):this.clone():(o=new XMLHttpRequest,a=this.clone.bind(this),this.reloading=!0,(this.xhr=o).onabort=a,o.onerror=a,o.ontimeout=a,o.onprogress=function(){o.getResponseHeader("content-type")!==W&&o.abort()},o.onload=function(){s.read(o.response)},o.onloadend=function(){s.reloading=!1,s.xhr=null},i.checkCrossOrigin&&At(t)&&e.crossOrigin&&(t=Ot(t)),o.open("GET",t,!0),o.responseType="arraybuffer",o.withCredentials="use-credentials"===e.crossOrigin,o.send()):this.clone())}},{key:"read",value:function(t){var e=this.options,i=this.imageData,n=function(t){var e,i,n,r,o,a,s,l=new DataView(t);try{if(255===l.getUint8(0)&&216===l.getUint8(1))for(var c=l.byteLength,h=2;h+1<c;){if(255===l.getUint8(h)&&225===l.getUint8(h+1)){i=h;break}h+=1}if(i&&(r=i+10,"Exif"===function(t,e,i){var n="";i+=e;for(var r=e;r<i;r+=1)n+=Dt(t.getUint8(r));return n}(l,i+4,4)&&(!(s=18761===(o=l.getUint16(r)))&&19789!==o||42!==l.getUint16(r+2,s)||8<=(a=l.getUint32(r+4,s))&&(n=r+a))),n)for(var u,d=l.getUint16(n,s),p=0;p<d;p+=1)if(u=n+12*p+2,274===l.getUint16(u,s)){u+=8,e=l.getUint16(u,s),l.setUint16(u,1,s);break}}catch(t){e=1}return e}(t),r=0,o=1,a=1;1<n&&(this.url=function(t,e){for(var i=[],n=new Uint8Array(t);0<n.length;)i.push(Dt.apply(null,rt(n.subarray(0,8192)))),n=n.subarray(8192);return"data:".concat("image/jpeg",";base64,").concat(btoa(i.join("")))}(t),r=(n=function(t){var e=0,i=1,n=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:n}}(n)).rotate,o=n.scaleX,a=n.scaleY),e.rotatable&&(i.rotate=r),e.scalable&&(i.scaleX=o,i.scaleY=a),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,n=e;this.options.checkCrossOrigin&&At(e)&&(i=i||"anonymous",n=Ot(e)),this.crossOrigin=i,this.crossOriginUrl=n;var r=document.createElement("img");i&&(r.crossOrigin=i),r.src=n||e,r.alt=t.alt||"The image to crop",(this.image=r).onload=this.start.bind(this),r.onerror=this.stop.bind(this),ut(r,k),t.parentNode.insertBefore(r,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;function i(e,i){at(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.initialImageData=at({},t.imageData),t.sizing=!1,t.sized=!0,t.build()}e.onload=null,e.onerror=null,this.sizing=!0;var n,r,o=a.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(a.navigator.userAgent);!e.naturalWidth||o?(n=document.createElement("img"),r=document.body||document.documentElement,(this.sizingImage=n).onload=function(){i(n.width,n.height),o||r.removeChild(n)},n.src=e.src,o||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(n))):i(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){var t,e,i,n,r,o,a,s,l;this.sized&&!this.ready&&(t=this.element,e=this.options,i=this.image,n=t.parentNode,(l=document.createElement("div")).innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',o=(r=l.querySelector(".".concat(c,"-container"))).querySelector(".".concat(c,"-canvas")),a=r.querySelector(".".concat(c,"-drag-box")),l=(s=r.querySelector(".".concat(c,"-crop-box"))).querySelector(".".concat(c,"-face")),this.container=n,this.cropper=r,this.canvas=o,this.dragBox=a,this.cropBox=s,this.viewBox=r.querySelector(".".concat(c,"-view-box")),this.face=l,o.appendChild(i),ut(t,P),n.insertBefore(r,t.nextSibling),this.isImg||dt(i,k),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,ut(s,P),e.guides||ut(s.getElementsByClassName("".concat(c,"-dashed")),P),e.center||ut(s.getElementsByClassName("".concat(c,"-center")),P),e.background&&ut(r,"".concat(c,"-bg")),e.highlight||ut(l,C),e.cropBoxMovable&&(ut(l,A),yt(l,O,h)),e.cropBoxResizable||(ut(s.getElementsByClassName("".concat(c,"-line")),P),ut(s.getElementsByClassName("".concat(c,"-point")),P)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),it(e.ready)&&St(t,"ready",e.ready,{once:!0}),Pt(t,"ready"))}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),dt(this.element,P))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(e.prototype,i),r&&n(e,r),t}();return at(zt.prototype,jt,Nt,l,s,Ft,Rt),zt})); |